Your IP : 216.73.216.240
<?php
/*
* GMapFP Component Google Map for Joomla! 3.x
* Version J3.33F
* Creation date: Ao�t 2015
* Author: Fabrice4821 - www.gmapfp.org
* Author email: webmaster@gmapfp.org
* License GNU/GPL
*/
defined('_JEXEC') or die();
$mainframe = JFactory::getApplication();
$config = JComponentHelper::getParams('com_gmapfp');
$document = JFactory::getDocument();
foreach ($this->lieux as $lieu) {
// insertion du lien canonique pour �viter l'indexation par les robbots des lien comporant le "tmpl=component"
$link =JRoute::_('index.php?option=com_gmapfp&view=gmapfp&layout=article&id='.$lieu->slug, false);
$document->addCustomTag( '<link rel="canonical" href="'.$link.'" />');
$active = $mainframe->getMenu()->getActive();
if ($lieu->metadesc) {
$this->document->setDescription( $lieu->metadesc );
}
elseif (isset($active->params) and $active->params->get('menu-meta_description'))
{
$this->document->setDescription($active->params->get('menu-meta_description'));
}
if ($lieu->metakey) {
$this->document->setMetadata('keywords', $lieu->metakey);
}
elseif (isset($active->params) and $active->params->get('menu-meta_keywords'))
{
$this->document->setMetadata('keywords', $active->params->get('menu-meta_keywords'));
}
if ($mainframe->getCfg('MetaTitle') == '1') {
$this->document->setTitle(@$lieu->ville.' : '.$lieu->nom.' ('.$lieu->title.')');
}
?>
<div class="gmapfp">
<?php
$this->lieu = $lieu;
//affichage du d�tail d'un lieu
$this->_layout='tmpl';
echo JViewLegacy::Display('article');
$this->_layout='default';
?>
<div class="gmapfp_message">
<?php
if ($config->get('gmapfp_afficher_intro_italique')==1) { ?>
<span><em><?php echo $lieu->intro; ?></em><?php echo $lieu->message; ?></span><?php ;
} else { ?>
<span><?php echo $lieu->intro; echo $lieu->message; ?></span><?php ;
}?>
</div >
<?php
//insertion de JComments
$jcomments = JPATH_SITE.'/components/com_jcomments/jcomments.php';
if ((file_exists($jcomments))and($this->params->get('gmapfp_jcomments'))) {
require_once($jcomments);
echo '<div style="clear: both;">';
echo JComments::showComments($lieu->id, 'com_gmapfp', $lieu->nom);
echo '</div>';
}
echo '<div\>';
};
?>