class seometatags { public function dispseometatags() { global $mainframe, $lang, $option; if ($lang == 'english') { // display english meta data }else{ // display greek meta data }
public function getUriLang()
$eDoc->setMetaTag('viewport', 'width=device-width, initial-scale=1.0');
eFactory::getDocument->addCustom('<meta name="geo.placename" content="Athens, Greece"/>');eFactory::getDocument->addCustom('<meta name="geo.position" content=37.9; -23.7"/>');eFactory::getDocument->addCustom('<meta name="geo.region" content="GR-Attiki"/>');eFactory::getDocument->addCustom('<meta name="ICBM" content="37.9; -23.7"/>');eFactory::getDocument->addCustom('<meta name="DCTERMS.created" scheme="ISO8601" content="2016-01-01"/>');
echo '<!-- geo metadata --> <meta name="geo.placename" content="Athens, Greece"> <meta name="geo.position" content="37.9; -23.7"> <meta name="geo.region" content="GR-Attiki"> <meta name="ICBM" content="37.9; -23.7"> <meta name="DCTERMS.created" scheme="ISO8601" content="2016-01-01">';
<?php $eDoc->showHead(); ?><?php // to load the seo meta tags through a separate file//elxisloader::loadFile('templates/flex/includes/seometatags.class.php'); $currentlang = eFactory::getLang()->currentLang();if ($currentlang == 'en') { eFactory::getDocument->addCustom('<meta name="geo.placename" content="Athens, Greece"/>'); eFactory::getDocument->addCustom('<meta name="geo.position" content=37.9; -23.7"/>'); eFactory::getDocument->addCustom('<meta name="geo.region" content="GR-Attiki"/>'); eFactory::getDocument->addCustom('<meta name="ICBM" content="37.9; -23.7"/>'); eFactory::getDocument->addCustom('<meta name="DCTERMS.created" scheme="ISO8601" content="2016-01-01"/>');/* echo '<!-- geo metadata --> <meta name="geo.placename" content="Athens, Greece"> <meta name="geo.position" content="37.9; -23.7"> <meta name="geo.region" content="GR-Attiki"> <meta name="ICBM" content="37.9; -23.7"> <meta name="DCTERMS.created" scheme="ISO8601" content="2016-01-01"> ';*/} else if ($currentlang == 'el') { }?>
defined('_ELXIS_') or die ('Direct access to this location is not allowed');$eLang = eFactory::getLang();$eDoc = eFactory::getDocument();$elxis = eFactory::getElxis();$touch_icon = $elxis->secureBase().'/templates/flex/images/touch.png';$eDoc->setMetaTag('viewport', 'width=device-width, initial-scale=1.0');$eDoc->addLink($touch_icon, '', 'apple-touch-icon');$jslink = $elxis->secureBase().'/templates/flex/includes/flex.js';$eDoc->addJQuery();$eDoc->addScriptLink($jslink);unset($touch_icon, $jslink);elxisloader::loadFile('templates/flex/includes/flex.class.php')."\n";//elxisloader::loadFile('templates/flex/includes/seometatags.class.php')."\n";$flex = new templateFlex();//elxisloader::loadFile('templates/flex/includes/seometatags.class.php')."\n";echo $eDoc->getDocType()."\n";?><html<?php echo $eDoc->htmlAttributes(); ?>><head><?php $eDoc->showHead(); ?>
defined('_ELXIS_') or die ('Direct access to this location is not allowed.');class seometatags { $currentlang = eFactory::getLang()->currentLang(); if ($currentlang == 'en') { //$eDoc = eFactory::getDocument(); already included in index.php echo "<!-- geo metadata -->"; $eDoc->setMetaTag('geo.placename', 'Athens, Greece'); $eDoc->setMetaTag('geo.position', '37.9; -23.7'); $eDoc->setMetaTag('geo.region', 'GR-Attiki'); $eDoc->setMetaTag('ICBM', '37.9; -23.7'); $eDoc->addCustom('<meta name="DCTERMS.created" scheme="ISO8601" content="2016-01-01">'); eFactory::getDocument()->addCustom('<meta name="geo.placename" content="Athens, Greece"/>'); eFactory::getDocument()->addCustom('<meta name="geo.position" content=37.9; -23.7"/>'); eFactory::getDocument()->addCustom('<meta name="geo.region" content="GR-Attiki"/>'); eFactory::getDocument()->addCustom('<meta name="ICBM" content="37.9; -23.7"/>'); eFactory::getDocument()->addCustom('<meta name="DCTERMS.created" scheme="ISO8601" content="2016-01-01"/>'); } else if ($currentlang == 'el') { }}