';
printHtml += cleanHeaderHtml;
}
if (media) {
printHtml += media.outerHTML;
}
if (articleBody) {
const articleClone = articleBody.cloneNode(true);
articleClone.querySelectorAll('.post-flash').forEach(function (el) {
el.parentNode.removeChild(el);
});
printHtml += articleClone.outerHTML;
}
const iframe = document.createElement('iframe');
iframe.style.position = 'fixed';
iframe.style.right = '0';
iframe.style.bottom = '0';
iframe.style.width = '0';
iframe.style.height = '0';
iframe.style.border = '0';
document.body.appendChild(iframe);
const frameWindow = iframe.contentWindow || iframe;
const title = document.title || 'Yazdır';
// Yazdırma belgesi DOM API ile kurulur. Eskiden doc.write ile tam bir HTML
// belgesi metni yazılıyordu; o metin sayfa kaynağında fazladan head/body
// etiketleri gibi görünüp SEO denetim araçlarını yanıltıyordu.
// Yalnız doctype yazılır: standart modda (quirks değil) boş html/head/body oluşur.
const doc = frameWindow.document;
doc.open();
doc.write('');
doc.close();
doc.documentElement.lang = 'tr';
const charset = doc.createElement('meta');
charset.setAttribute('charset', 'utf-8');
doc.head.appendChild(charset);
doc.title = title;
// Sayfanın stilleri kopyalanır; 'ler yüklenince yazdırılır (aksi halde çıktı stilsiz kalır)
const styleLoads = [];
document.querySelectorAll('link[rel="stylesheet"], style').forEach(function (el) {
const clone = doc.importNode(el, true);
if (clone.tagName === 'LINK') {
styleLoads.push(new Promise(function (resolve) {
clone.onload = clone.onerror = resolve;
}));
}
doc.head.appendChild(clone);
});
const printStyle = doc.createElement('style');
printStyle.textContent =
'html, body { margin: 0; padding: 0; background: #ffffff; }' +
'.printed-article { margin: 0; padding: 20px; box-shadow: none; background: #ffffff; }';
doc.head.appendChild(printStyle);
const wrapper = doc.createElement('div');
wrapper.className = 'printed-article';
wrapper.innerHTML = printHtml;
doc.body.appendChild(wrapper);
// Stil dosyası takılırsa yazdırma sonsuza dek beklemesin
const stylesReady = Promise.race([
Promise.all(styleLoads),
new Promise(function (resolve) { setTimeout(resolve, 3000); })
]);
stylesReady.then(function () {
try {
frameWindow.focus();
frameWindow.print();
} finally {
setTimeout(function () {
document.body.removeChild(iframe);
}, 1000);
}
});
}
var dropdownButton = document.querySelector('.dropdownButton');
if (dropdownButton) {
var icon = dropdownButton.querySelector('#icon');
var parentDropdown = dropdownButton.closest('.dropdown');
if (parentDropdown && icon) {
parentDropdown.addEventListener('show.bs.dropdown', function () {
icon.classList.remove('fa-plus');
icon.classList.add('fa-minus');
});
parentDropdown.addEventListener('hide.bs.dropdown', function () {
icon.classList.remove('fa-minus');
icon.classList.add('fa-plus');
});
}
}
A-
A+
Kelime Kökeni ve Anlamı
- Efkâr: Arapça "fikir" kelimesinin çoğuludur ve düşünceler, fikirler anlamına gelir.
- Umumiye: Arapça kökenli olup genele ait, herkese açık, umumi demektir.
- Birleşik Anlam: İki kelimenin birleşimi doğrudan "genel düşünceler" veya "halkın ortak görüşü" anlamını taşır.
Kullanım Bağlamı
- Tarih ve Siyaset: Osmanlı'nın son dönemleri ile Cumhuriyet'in ilk yıllarında basın ve siyaset dilinde sıkça kullanılmıştır.
- Günümüzdeki Karşılığı: Günümüzde yerini büyük ölçüde "kamuoyu" kelimesine bırakmıştır ancak tarihi metinlerde ve edebi eserlerde hâlâ karşımıza çıkar.
Kaynak: HABER MERKEZİ





