Re : Erreur introuvable dans le code php de mon template
En fait mon site est dans un sous dossier dans htdocs.
(lol c'est le nom que je mets pour mes fichiers tests comme tu l'auras compris )
Voici mon nouveau code
Envoyé par dolmenhir
Voir le message
(lol c'est le nom que je mets pour mes fichiers tests comme tu l'auras compris )
Voici mon nouveau code
Code PHP:
<?php defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<!DOCTYPE html>
<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>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<?php $nbColonneNews = (bool)$this->countModules('slider') + (bool)$this->countModules('actus')?>
<?php $nbColonneContenu = (bool)$this->countModules('focus') + (bool)$this->countModules('pratique')?>
<?php $nbColonneInfos = (bool)$this->countModules('international') + (bool)$this->countModules('newsletter'); ?>
</head>
<body>
<div class="wrapper">
<div id="header">
<a id="banniere" href="<?php echo $this->baseurl; ?>">
<img src="<?php echo JURI::root() ?>templates/<?php echo $this->template ?>/images/banner.png" alt="<?php echo JFactory::getApplication()->getCfg('sitename') ?>"/> </a>
<div id="facebook">
<jdoc:include type="modules" name="facebook" style="none" />
</div>
</div>
<?php if($this->countModules('menus')) : ?>
<div id="nav">
<jdoc:include type="modules" name="nav" style="none" />
</div>
<?php endif; ?>
<?php if($nbColonneNews) : ?>
<div id="news" class="clearfix <?php echo 'n'.$nbColonneNews ?>">
<?php if($this->countModules('slider')) : ?>
<div class="rangee">
<div id="slider" class="inner rounded">
<jdoc:include type="modules" name="slider" style="xhtml" />
</div>
</div>
<?php endif; ?>
<?php if ($this->countModules('actus')) : ?>
<div class="rangee">
<div id="actus" class="inner rounded">
<jdoc:include type="modules" name="actus" style="xhtml" />
</div>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if($nbColonneContenu) : ?>
<div id="contenu" class="clearfix <?php echo 'n'.$nbColonneContenu ?>">
<?php if ($this->countModules('focus')) : ?>
<div class="rangee2">
<div id="focus" class="inner rounded">
<jdoc:include type="modules" name="focus" style="xhtml" />
</div>
</div>
<?php endif; ?>
<?php if ($this->countModules('pratique')) : ?>
<div class="rangee2">
<div id="pratique" class="inner rounded">
<jdoc:include type="modules" name="pratique" style="xhtml" />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if($nbColonneInfos) : ?>
<div id="infos" class="clearfix <?php echo 'n'.$nbColonneInfos ?>">
<?php if ($this->countModules('international')) : ?>
<div class="rangee3">
<div id="international" class="inner rounded">
<jdoc:include type="modules" name="international" style="xhtml" />
</div></div>
<?php endif; ?>
<?php if ($this->countModules('newsletter')) : ?>
<div class="rangee3">
<div id="newsletter" class="inner rounded ">
<jdoc:include type="modules" name="newsletter" style="xhtml" /> </div>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->countModules('footer')) : ?>
<div id="footer">
<jdoc:include type="modules" name="footer" style="none" />
</div>
<?php endif; ?>
</div>
</div>
</body>
</html>
Commentaire