siteBaseurl : ""; // Fetch del JSON. se trovo l'articolo nella lingua attiva imposto gli alternate $disableTranslation = true; if ($currentPageURL != "") { foreach($jsonPages->sitePages as $currentPage) { if($currentPage->$currentLanguage == $currentPageURL) { $disableTranslation = false; echo 'en) : $currentLanguage ."/" . trim($currentPage->$currentLanguage)) . '" hreflang="x-default" />' ."\r\n"; if (trim($currentPage->it) <> "") { echo 'it) . '" hreflang="it" />' ."\r\n"; } if (trim($currentPage->de) <> "") { echo 'de) . '" hreflang="de" />' ."\r\n"; } if (trim($currentPage->en) <> "") { echo 'en) . '" hreflang="en" />' ."\r\n"; } if (trim($currentPage->es) <> "") { echo 'es) . '" hreflang="es" />' ."\r\n"; } if (trim($currentPage->fr) <> "") { echo 'fr) . '" hreflang="fr" />' ."\r\n"; } if (trim($currentPage->pl) <> "") { echo 'pl) . '" hreflang="pl" />' ."\r\n"; } if (trim($currentPage->pt) <> "") { echo 'pt) . '" hreflang="pt" />' ."\r\n"; } if (trim($currentPage->ru) <> "") { echo 'ru) . '" hreflang="ru" />' ."\r\n"; } } } if ($disableTranslation) { //echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } } else { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } ?>