Bonjour ou faut -il ajouter ce code dans l'index.php ? Et est ce que code est bon ? faut -il rajouter quelue chose ?.
<?php if($this->countModules('maposition')) : ?>
<div class="maposition">
<jdoc:include type="modules" name="maposition" style="none" />
</div>
Voila mon index.php :
<?php /** * @copyright Copyright (C) 2011 JoomlaThemes.co - All Rights Reserved. **/
defined( '_JEXEC' ) or die( 'Restricted access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
?>
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$slogandisable = $this->params->get("slogandisable");
$addthis = $this->params->get("addthis");
$footertext = $this->params->get("footertext");
$footerdisable = $this->params->get("footerdisable");
$googleanalytics = $this->params->get("googleanalytics");
$analyticsdisable = $this->params->get("analyticsdisable");
$socialbuttons = $this->params->get("socialbuttons");
$slidedisable = $this->params->get("slidedisable");
$slidedesc1 = $this->params->get("slidedesc1");
$url1 = $this->params->get("url1");
$slidedesc2 = $this->params->get("slidedesc2");
$url2 = $this->params->get("url2");
$slidedesc3 = $this->params->get("slidedesc3");
$url3 = $this->params->get("url3");
$slidedesc4 = $this->params->get("slidedesc4");
$url4 = $this->params->get("url4");
JHTML::_('behavior.framework', true);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
</td>
<tr>
</table>
</div>
<script type="text/javascript">
<!--
var DHTML = (document.getElementById || document.all || document.layers);
function ap_getObj(name)
{
if (document.getElementById)
{
return document.getElementById(name).style;
}
else if (document.all)
{
return document.all[name].style;
}
else if (document.layers)
{
return document.layers[name];
}
}
function ap_showWaitMessage(div, flag)
{
if (!DHTML) return;
var x = ap_getObj(div);
x.visibility = (flag) ? 'visible':'hidden'
if(! document.getElementById)
if(document.layers)
x.left=280/2;
return true;
}
ap_showWaitMessage('waitDiv', 1);
//-->
</script>
<link href='http://fonts.googleapis.com/css?family=Chivo' rel='stylesheet' type='text/css'>
<jdoc:include type="head" />
<?php require(YOURBASEPATH . DS . "functions.php"); ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/styles.css" type="text/css" />
<?php if ($this->params->get( 'analyticsdisable' )) : ?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<?php echo ($googleanalytics); ?>']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<?php endif; ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/NivooSlider.css" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/slideshow/NivooSlider.js"></script>
<script type="text/javascript">
window.addEvent('domready', function () {
// initialize Nivoo-Slider
new NivooSlider($('Slider'), {
effect: 'random',
interval: 5000,
orientation: 'random'
});
});
</script>
</head>
<body class="background">
<div id="main">
<div id="header-w">
<div id="header">
<div class="topmenu">
<jdoc:include type="modules" name="position-1" style="none" />
</div>
<?php if ($this->countModules('logo')) : ?>
<div class="logo">
<jdoc:include type="modules" name="logo" style="none" />
</div>
<?php else : ?>
<a href="<?php echo $this->baseurl ?>/">
</a>
<?php endif; ?>
<div class="slogan"><?php if ($this->params->get( 'slogandisable' )) : ?><?php echo ($slogan); ?><?php endif; ?></div>
<?php if ($this->countModules('top')) : ?>
<div class="top">
<jdoc:include type="modules" name="top" style="none"/>
</div>
<?php endif; ?>
</div>
</div>
<div id="wrapper">
<div id="navr">
<div class="tguser"><jdoc:include type="modules" name="position-0" style="none" /></div>
<div id="navl">
<div id="nav">
<div id="nav-left">
</html>
<?php if($this->countModules('maposition')) : ?>
<div class="maposition">
<jdoc:include type="modules" name="maposition" style="none" />
</div>
Voila mon index.php :
<?php /** * @copyright Copyright (C) 2011 JoomlaThemes.co - All Rights Reserved. **/
defined( '_JEXEC' ) or die( 'Restricted access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
?>
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$slogandisable = $this->params->get("slogandisable");
$addthis = $this->params->get("addthis");
$footertext = $this->params->get("footertext");
$footerdisable = $this->params->get("footerdisable");
$googleanalytics = $this->params->get("googleanalytics");
$analyticsdisable = $this->params->get("analyticsdisable");
$socialbuttons = $this->params->get("socialbuttons");
$slidedisable = $this->params->get("slidedisable");
$slidedesc1 = $this->params->get("slidedesc1");
$url1 = $this->params->get("url1");
$slidedesc2 = $this->params->get("slidedesc2");
$url2 = $this->params->get("url2");
$slidedesc3 = $this->params->get("slidedesc3");
$url3 = $this->params->get("url3");
$slidedesc4 = $this->params->get("slidedesc4");
$url4 = $this->params->get("url4");
JHTML::_('behavior.framework', true);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
</td>
<tr>
</table>
</div>
<script type="text/javascript">
<!--
var DHTML = (document.getElementById || document.all || document.layers);
function ap_getObj(name)
{
if (document.getElementById)
{
return document.getElementById(name).style;
}
else if (document.all)
{
return document.all[name].style;
}
else if (document.layers)
{
return document.layers[name];
}
}
function ap_showWaitMessage(div, flag)
{
if (!DHTML) return;
var x = ap_getObj(div);
x.visibility = (flag) ? 'visible':'hidden'
if(! document.getElementById)
if(document.layers)
x.left=280/2;
return true;
}
ap_showWaitMessage('waitDiv', 1);
//-->
</script>
<link href='http://fonts.googleapis.com/css?family=Chivo' rel='stylesheet' type='text/css'>
<jdoc:include type="head" />
<?php require(YOURBASEPATH . DS . "functions.php"); ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/styles.css" type="text/css" />
<?php if ($this->params->get( 'analyticsdisable' )) : ?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<?php echo ($googleanalytics); ?>']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<?php endif; ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/NivooSlider.css" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/slideshow/NivooSlider.js"></script>
<script type="text/javascript">
window.addEvent('domready', function () {
// initialize Nivoo-Slider
new NivooSlider($('Slider'), {
effect: 'random',
interval: 5000,
orientation: 'random'
});
});
</script>
</head>
<body class="background">
<div id="main">
<div id="header-w">
<div id="header">
<div class="topmenu">
<jdoc:include type="modules" name="position-1" style="none" />
</div>
<?php if ($this->countModules('logo')) : ?>
<div class="logo">
<jdoc:include type="modules" name="logo" style="none" />
</div>
<?php else : ?>
<a href="<?php echo $this->baseurl ?>/">
</a>
<?php endif; ?>
<div class="slogan"><?php if ($this->params->get( 'slogandisable' )) : ?><?php echo ($slogan); ?><?php endif; ?></div>
<?php if ($this->countModules('top')) : ?>
<div class="top">
<jdoc:include type="modules" name="top" style="none"/>
</div>
<?php endif; ?>
</div>
</div>
<div id="wrapper">
<div id="navr">
<div class="tguser"><jdoc:include type="modules" name="position-0" style="none" /></div>
<div id="navl">
<div id="nav">
<div id="nav-left">
</html>
Commentaire