Your IP : 216.73.216.170


Current Path : /var/www/iplanru/data/www/i-plan.ru/modules/mod_seotext/tmpl/
Upload File :
Current File : /var/www/iplanru/data/www/i-plan.ru/modules/mod_seotext/tmpl/default.php

<?php
// No direct access
defined( '_JEXEC' ) or die;

$url1	=	$_SERVER['REQUEST_URI'];
$url2 	= 	$_SERVER['REDIRECT_URL'];
$url3 	= 	$_SERVER['HTTP_HOST'];

$doc =& JFactory::getDocument();
//$doc->setMetaData( 'seo', $url1 );


$text='';

//zoo

$user = JFactory::getUser();
$db = JFactory::getDbo();
if ($url1=="/") $url1="/special";
$list = $db->setQuery('SELECT elements,name FROM `#__zoo_item` where application_id=12 and name="'.$url1.'"')->loadAssoc();
if (count($list)<>0)
{
	$a=json_decode($list['elements'],true);
	$text=$a['e7be6726-40cb-4608-8ecd-fd5453a3573b']['0']['value'];
}

if ($text=="")
{
	echo "	<style>
				.seo-text {display: none;}
			</style>";
}
else
{
	echo '<div class="seotext">'.$text.'</div>';
}


?>