schema.id='glanzia-entity-schema'; schema.type='application/ld+json'; schema.text=JSON.stringify(graph); document.head.appendChild(schema); } var path=window.location.pathname; var breadcrumbs=document.querySelector('#breadcrumbs'); if(path.indexOf('/kategori/')===0 && breadcrumbs){ var lastLi=breadcrumbs.querySelector('li:last-child'); var nameNode=lastLi && lastLi.querySelector('[property="name"]'); var categoryName=nameNode ? nameNode.textContent.trim() : ''; if(categoryName && !document.querySelector('h1.glanzia-category-title')){ var h1=document.createElement('h1'); h1.className='glanzia-category-title'; h1.textContent=categoryName; breadcrumbs.insertAdjacentElement('afterend',h1); } if(lastLi){ lastLi.setAttribute('property','itemListElement'); lastLi.setAttribute('typeof','ListItem'); var lastLink=lastLi.querySelector('a'); if(lastLink) lastLink.setAttribute('property','item'); if(!lastLi.querySelector('meta[property="position"]')){ var position=document.createElement('meta'); position.setAttribute('property','position'); position.setAttribute('content',String(breadcrumbs.querySelectorAll('li').length)); lastLi.appendChild(position); } } } var altMap={ 'slider_1.jpg':'GLANZIA Kadın Çanta Koleksiyonu', 'slider_2.jpg':'GLANZIA Oversize Tişört Koleksiyonu', 'slider_3.png':'GLANZIA Çift Tişört ve Sevgili Kombinleri', 'theme_banner_image_1.png':'GLANZIA Oversize Tişört', 'theme_banner_image_2.png':'GLANZIA Çift Tişört ve Sevgili Kombini', 'theme_banner_image_3.png':'GLANZIA Baby Tee ve Crop Tişört', 'theme_banner_image_4_1.png':'GLANZIA Kadın Çanta Koleksiyonu', 'theme_banner_image_4_2.png':'GLANZIA Kadın Çanta Koleksiyonu' }; document.querySelectorAll('img').forEach(function(img){ if(img.getAttribute('alt')) return; var src=(img.getAttribute('src')||'').split('?')[0]; var file=src.substring(src.lastIndexOf('/')+1); if(altMap[file]) img.setAttribute('alt',altMap[file]); }); var isBagProduct=!!document.querySelector('#breadcrumbs a[href="/kategori/kadin-cantalari"],#breadcrumbs a[href^="/kategori/kadin-canta"]'); if(isBagProduct){ document.querySelectorAll('.variant-image-modal').forEach(function(guide){guide.style.display='none';}); } } if(document.readyState==='loading'){ document.addEventListener('DOMContentLoaded',applyGlanziaFixes); }else{ applyGlanziaFixes(); } })();