Bonjour,
Cela fait un moment que je n'avais pas mis à jour mon template et je cherche à ajouter 2 nouvelles positions après être passer dans le forum des templates, on m'a conseillé de venir ici si j'ai bien compris.
Je donne le code de mon index de mon template et je cherche à rajouter les positions "content-top-left" et "content-top-right" :
Voila, le lien dans le forum template (Je m'excuse d'avance pour ce doublon) c'est :
lien forum
Et voila mon code (j'ai surtout modifier à partir de la ligne 190) :
En tout cas, un grand merci de votre aide qui m'est tres précieuse à tous.
Cela fait un moment que je n'avais pas mis à jour mon template et je cherche à ajouter 2 nouvelles positions après être passer dans le forum des templates, on m'a conseillé de venir ici si j'ai bien compris.
Je donne le code de mon index de mon template et je cherche à rajouter les positions "content-top-left" et "content-top-right" :
Voila, le lien dans le forum template (Je m'excuse d'avance pour ce doublon) c'est :
lien forum
Et voila mon code (j'ai surtout modifier à partir de la ligne 190) :
<body id="jsn-master" class="jsn-textstyle-<?php echo $template_textstyle; ?> jsn-textsize-<?php echo $template_textsize; ?> jsn-color-<?php echo $template_color; ?> jsn-direction-<?php echo $template_direction; ?><?php echo ($pageclass != '')?' '.$pageclass:''; ?><?php echo ($is_ie7)?' jsn-ie7':''; ?>">
<div id="jsn-page">
<?php
/*====== Show modules in position "stick-lefttop" ======*/
if ($this->countModules('stick-lefttop') > 0) {
?>
<div id="jsn-pos-stick-lefttop">
<jdoc:include type="modules" name="stick-lefttop" style="jsnmodule" />
</div>
<?php
}
/*====== Show modules in position "stick-leftmiddle" ======*/
if ($this->countModules('stick-leftmiddle') > 0) {
?>
<div id="jsn-pos-stick-leftmiddle">
<jdoc:include type="modules" name="stick-leftmiddle" style="jsnmodule" />
</div>
<?php
}
/*====== Show modules in position "stick-leftbottom" ======*/
if ($this->countModules('stick-leftbottom') > 0) {
?>
<div id="jsn-pos-stick-leftbottom">
<jdoc:include type="modules" name="stick-leftbottom" style="jsnmodule" />
</div>
<?php
}
/*====== Show modules in position "stick-righttop" ======*/
if ($this->countModules('stick-righttop') > 0) {
?>
<div id="jsn-pos-stick-righttop">
<jdoc:include type="modules" name="stick-righttop" style="jsnmodule" />
</div>
<?php
}
/*====== Show modules in position "stick-rightmiddle" ======*/
if ($this->countModules('stick-rightmiddle') > 0) {
?>
<div id="jsn-pos-stick-rightmiddle">
<jdoc:include type="modules" name="stick-rightmiddle" style="jsnmodule" />
</div>
<?php
}
/*====== Show modules in position "stick-rightbottom" ======*/
if ($this->countModules('stick-rightbottom') > 0) {
?>
<div id="jsn-pos-stick-rightbottom">
<jdoc:include type="modules" name="stick-rightbottom" style="jsnmodule" />
</div>
<?php
}
?>
<div id="jsn-headerright">
<?php
/*====== Show modules in position "top" ======*/
if ($this->countModules('top') > 0) {
?>
<div id="jsn-pos-top">
<jdoc:include type="modules" name="top" style="jsnmodule" />
</div>
<?php
}
?>
</div>
</div>
<div id="jsn-body">
<?php
if ($jsnutils->countPositions($this, array('logo', 'mainmenu', 'toolbar'))) {
?>
<div id="jsn-menu">
<div id="jsn-header">
<div id="jsn-logo">
<?php
/*====== Show modules in position "logo" ======*/
if ($this->countModules('logo') > 0) {
?>
<div id="jsn-pos-logo">
<jdoc:include type="modules" name="logo" style="jsnmodule" />
</div>
<?php
/*====== If there are NO modules in position "logo", then show logo image file "logo_IG.jpg" ======*/
} else {
/*====== Attach link to logo image ======*/
if ($this->countModules('logo') > 0) {
echo '<a href="'.$logo_link.'" title="'.$logo_slogan.'">';
}
if ($logo_path == "") {
$logo_path = $template_path."/images/".($enable_colored_logo?"colors/$template_color/":'')."logo_IG.jpg";
}
?>
<img src="<?php echo $logo_path; ?>" alt="<?php echo $logo_slogan; ?>" />
<?php
if ($logo_link != "") {
echo '</a>';
}
}
?>
<?php
/*====== Show modules in position "mainmenu" ======*/
if ($this->countModules('mainmenu') > 0) {
?>
<div id="jsn-pos-mainmenu">
<jdoc:include type="modules" name="mainmenu" style="jsnmodule" />
</div>
<?php
}
/*====== Show modules in position "toolbar" ======*/
if ($this->countModules('toolbar') > 0) {
?>
<div id="jsn-pos-toolbar">
<jdoc:include type="modules" name="toolbar" style="jsnmodule" />
</div>
<?php
}
?>
<div class="clearbreak"></div>
</div>
</div>
<?php
}
/*====== Show modules in content top area ======*/
if ($jsnutils->countPositions($this, array('promo-left', 'promo', 'promo-right', 'content-top'))) {
?>
<div id="jsn-content-top" class="<?php echo (($has_promoleft)?'jsn-haspromoleft ':'') ?><?php echo (($has_promoright)?'jsn-haspromoright ':'') ?>">
<div id="jsn-promo">
<?php
/*====== Show modules in position "promo-left" ======*/
if ($this->countModules('promo-left') > 0) {
?>
<div id="jsn-pos-promo-left">
<jdoc:include type="modules" name="promo-left" style="jsnmodule" class="jsn-roundedbox" />
</div>
<?php
}
/*====== Show modules in position "promo" ======*/
if ($this->countModules('promo') > 0) {
?>
<div id="jsn-pos-promo">
<jdoc:include type="modules" name="promo" style="jsnmodule" class="jsn-roundedbox" />
</div>
<?php
}
/*====== Show modules in position "promo-right" ======*/
if ($this->countModules('promo-right') > 0) {
?>
<div id="jsn-pos-promo-right">
<jdoc:include type="modules" name="promo-right" style="jsnmodule" class="jsn-roundedbox" />
</div>
<?php
}
?>
<div class="clearbreak"></div>
</div>
<?php
<?php
/*====== Show modules in content-top container ======*/
$show = ($this->countModules('content-top') > 0) || ($this->countModules('content-top-left') > 0) || ($this->countModules('content-top-right') > 0) ;
if ($show) {
/*====== Show modules in position "content-top-left" ======*/
if ($this->countModules('content-top-left') > 0) {
?>
<div id="jsn-pos-content-top-left">
<jdoc:include type="modules" name="content-top-left" style="jsnmodule" class="jsn-modulescontainer" />
<div class="clearbreak"></div>
</div>
<?php
}
/*====== Show modules in position "content-top" ======*/
if ($this->countModules('content-top') > 0) {
?>
<div id="jsn-pos-content-top">
<jdoc:include type="modules" name="content-top" style="jsnmodule" class="jsn-modulescontainer" />
<div class="clearbreak"></div>
</div>
<?php
}
/*====== Show modules in position "content-top-right" ======*/
if ($this->countModules('content-top-right') > 0) {
?>
<div id="jsn-pos-content-top-right">
<jdoc:include type="modules" name="content-top-right" style="jsnmodule" class="jsn-modulescontainer" />
<div class="clearbreak"></div>
</div>
<?php
}
}
?>
<?php
}
?>
</div>
<?php
}
?>
<div id="jsn-content" class="<?php echo (($has_left)?'jsn-hasleft ':'') ?><?php echo (($has_right)?'jsn-hasright ':'') ?><?php echo (($has_innerleft)?'jsn-hasinnerleft ':'') ?><?php echo (($has_innerright)?'jsn-hasinnerright ':'') ?>">
<div id="jsn-content_inner"><div id="jsn-content_inner1"><div id="jsn-content_inner2"><div id="jsn-content_inner3"><div id="jsn-content_inner4"><div id="jsn-content_inner5"><div id="jsn-content_inner6"><div id="jsn-content_inner7">
<div id="jsn-maincontent">
<div id="jsn-centercol">
<div id="jsn-centercol_inner">
<?php
/*====== Show modules in position "breadcrumbs" ======*/
if ($this->countModules('breadcrumbs') > 0) {
?>
<div id="jsn-pos-breadcrumbs">
<jdoc:include type="modules" name="breadcrumbs" />
</div>
<?php
}
?>
<jdoc:include type="message" />
<?php
/*====== Show modules in position "user-top" ======*/
if ($this->countModules('user-top') > 0) {
?>
<div id="jsn-pos-user-top" class="jsn-modulescontainer jsn-horizontallayout jsn-modulescontainer<?php echo $this->countModules('user-top'); ?>">
<jdoc:include type="modules" name="user-top" style="jsnmodule" class="jsn-roundedbox" />
<div class="clearbreak"></div>
</div>
<?php
}
/*====== Show modules in position "user1" and "user2" ======*/
$positionCount = $jsnutils->countPositions($this, array('user1', 'user2'));
if ($positionCount)
{
$grid_suffix = $positionCount;
?>
<div id="jsn-usermodules1" class="jsn-modulescontainer jsn-modulescontainer<?php echo $grid_suffix; ?>">
<div id="jsn-usermodules1_inner_grid<?php echo $grid_suffix; ?>">
<?php
/*====== Show modules in position "user1" ======*/
if ($this->countModules('user1') > 0) {
?>
<div id="jsn-pos-user1">
<jdoc:include type="modules" name="user1" style="jsnmodule" class="jsn-roundedbox" />
</div>
<?php
}
/*====== Show modules in position "user2" ======*/
if ($this->countModules('user2') > 0) {
?>
<div id="jsn-pos-user2">
<jdoc:include type="modules" name="user2" style="jsnmodule" class="jsn-roundedbox" />
</div>
<?php
}
?>
<div class="clearbreak"></div>
</div>
</div>
<?php
}
?>
<div id="jsn-mainbody-content">
<div id="jsn-page">
<?php
/*====== Show modules in position "stick-lefttop" ======*/
if ($this->countModules('stick-lefttop') > 0) {
?>
<div id="jsn-pos-stick-lefttop">
<jdoc:include type="modules" name="stick-lefttop" style="jsnmodule" />
</div>
<?php
}
/*====== Show modules in position "stick-leftmiddle" ======*/
if ($this->countModules('stick-leftmiddle') > 0) {
?>
<div id="jsn-pos-stick-leftmiddle">
<jdoc:include type="modules" name="stick-leftmiddle" style="jsnmodule" />
</div>
<?php
}
/*====== Show modules in position "stick-leftbottom" ======*/
if ($this->countModules('stick-leftbottom') > 0) {
?>
<div id="jsn-pos-stick-leftbottom">
<jdoc:include type="modules" name="stick-leftbottom" style="jsnmodule" />
</div>
<?php
}
/*====== Show modules in position "stick-righttop" ======*/
if ($this->countModules('stick-righttop') > 0) {
?>
<div id="jsn-pos-stick-righttop">
<jdoc:include type="modules" name="stick-righttop" style="jsnmodule" />
</div>
<?php
}
/*====== Show modules in position "stick-rightmiddle" ======*/
if ($this->countModules('stick-rightmiddle') > 0) {
?>
<div id="jsn-pos-stick-rightmiddle">
<jdoc:include type="modules" name="stick-rightmiddle" style="jsnmodule" />
</div>
<?php
}
/*====== Show modules in position "stick-rightbottom" ======*/
if ($this->countModules('stick-rightbottom') > 0) {
?>
<div id="jsn-pos-stick-rightbottom">
<jdoc:include type="modules" name="stick-rightbottom" style="jsnmodule" />
</div>
<?php
}
?>
<div id="jsn-headerright">
<?php
/*====== Show modules in position "top" ======*/
if ($this->countModules('top') > 0) {
?>
<div id="jsn-pos-top">
<jdoc:include type="modules" name="top" style="jsnmodule" />
</div>
<?php
}
?>
</div>
</div>
<div id="jsn-body">
<?php
if ($jsnutils->countPositions($this, array('logo', 'mainmenu', 'toolbar'))) {
?>
<div id="jsn-menu">
<div id="jsn-header">
<div id="jsn-logo">
<?php
/*====== Show modules in position "logo" ======*/
if ($this->countModules('logo') > 0) {
?>
<div id="jsn-pos-logo">
<jdoc:include type="modules" name="logo" style="jsnmodule" />
</div>
<?php
/*====== If there are NO modules in position "logo", then show logo image file "logo_IG.jpg" ======*/
} else {
/*====== Attach link to logo image ======*/
if ($this->countModules('logo') > 0) {
echo '<a href="'.$logo_link.'" title="'.$logo_slogan.'">';
}
if ($logo_path == "") {
$logo_path = $template_path."/images/".($enable_colored_logo?"colors/$template_color/":'')."logo_IG.jpg";
}
?>
<img src="<?php echo $logo_path; ?>" alt="<?php echo $logo_slogan; ?>" />
<?php
if ($logo_link != "") {
echo '</a>';
}
}
?>
<?php
/*====== Show modules in position "mainmenu" ======*/
if ($this->countModules('mainmenu') > 0) {
?>
<div id="jsn-pos-mainmenu">
<jdoc:include type="modules" name="mainmenu" style="jsnmodule" />
</div>
<?php
}
/*====== Show modules in position "toolbar" ======*/
if ($this->countModules('toolbar') > 0) {
?>
<div id="jsn-pos-toolbar">
<jdoc:include type="modules" name="toolbar" style="jsnmodule" />
</div>
<?php
}
?>
<div class="clearbreak"></div>
</div>
</div>
<?php
}
/*====== Show modules in content top area ======*/
if ($jsnutils->countPositions($this, array('promo-left', 'promo', 'promo-right', 'content-top'))) {
?>
<div id="jsn-content-top" class="<?php echo (($has_promoleft)?'jsn-haspromoleft ':'') ?><?php echo (($has_promoright)?'jsn-haspromoright ':'') ?>">
<div id="jsn-promo">
<?php
/*====== Show modules in position "promo-left" ======*/
if ($this->countModules('promo-left') > 0) {
?>
<div id="jsn-pos-promo-left">
<jdoc:include type="modules" name="promo-left" style="jsnmodule" class="jsn-roundedbox" />
</div>
<?php
}
/*====== Show modules in position "promo" ======*/
if ($this->countModules('promo') > 0) {
?>
<div id="jsn-pos-promo">
<jdoc:include type="modules" name="promo" style="jsnmodule" class="jsn-roundedbox" />
</div>
<?php
}
/*====== Show modules in position "promo-right" ======*/
if ($this->countModules('promo-right') > 0) {
?>
<div id="jsn-pos-promo-right">
<jdoc:include type="modules" name="promo-right" style="jsnmodule" class="jsn-roundedbox" />
</div>
<?php
}
?>
<div class="clearbreak"></div>
</div>
<?php
<?php
/*====== Show modules in content-top container ======*/
$show = ($this->countModules('content-top') > 0) || ($this->countModules('content-top-left') > 0) || ($this->countModules('content-top-right') > 0) ;
if ($show) {
/*====== Show modules in position "content-top-left" ======*/
if ($this->countModules('content-top-left') > 0) {
?>
<div id="jsn-pos-content-top-left">
<jdoc:include type="modules" name="content-top-left" style="jsnmodule" class="jsn-modulescontainer" />
<div class="clearbreak"></div>
</div>
<?php
}
/*====== Show modules in position "content-top" ======*/
if ($this->countModules('content-top') > 0) {
?>
<div id="jsn-pos-content-top">
<jdoc:include type="modules" name="content-top" style="jsnmodule" class="jsn-modulescontainer" />
<div class="clearbreak"></div>
</div>
<?php
}
/*====== Show modules in position "content-top-right" ======*/
if ($this->countModules('content-top-right') > 0) {
?>
<div id="jsn-pos-content-top-right">
<jdoc:include type="modules" name="content-top-right" style="jsnmodule" class="jsn-modulescontainer" />
<div class="clearbreak"></div>
</div>
<?php
}
}
?>
<?php
}
?>
</div>
<?php
}
?>
<div id="jsn-content" class="<?php echo (($has_left)?'jsn-hasleft ':'') ?><?php echo (($has_right)?'jsn-hasright ':'') ?><?php echo (($has_innerleft)?'jsn-hasinnerleft ':'') ?><?php echo (($has_innerright)?'jsn-hasinnerright ':'') ?>">
<div id="jsn-content_inner"><div id="jsn-content_inner1"><div id="jsn-content_inner2"><div id="jsn-content_inner3"><div id="jsn-content_inner4"><div id="jsn-content_inner5"><div id="jsn-content_inner6"><div id="jsn-content_inner7">
<div id="jsn-maincontent">
<div id="jsn-centercol">
<div id="jsn-centercol_inner">
<?php
/*====== Show modules in position "breadcrumbs" ======*/
if ($this->countModules('breadcrumbs') > 0) {
?>
<div id="jsn-pos-breadcrumbs">
<jdoc:include type="modules" name="breadcrumbs" />
</div>
<?php
}
?>
<jdoc:include type="message" />
<?php
/*====== Show modules in position "user-top" ======*/
if ($this->countModules('user-top') > 0) {
?>
<div id="jsn-pos-user-top" class="jsn-modulescontainer jsn-horizontallayout jsn-modulescontainer<?php echo $this->countModules('user-top'); ?>">
<jdoc:include type="modules" name="user-top" style="jsnmodule" class="jsn-roundedbox" />
<div class="clearbreak"></div>
</div>
<?php
}
/*====== Show modules in position "user1" and "user2" ======*/
$positionCount = $jsnutils->countPositions($this, array('user1', 'user2'));
if ($positionCount)
{
$grid_suffix = $positionCount;
?>
<div id="jsn-usermodules1" class="jsn-modulescontainer jsn-modulescontainer<?php echo $grid_suffix; ?>">
<div id="jsn-usermodules1_inner_grid<?php echo $grid_suffix; ?>">
<?php
/*====== Show modules in position "user1" ======*/
if ($this->countModules('user1') > 0) {
?>
<div id="jsn-pos-user1">
<jdoc:include type="modules" name="user1" style="jsnmodule" class="jsn-roundedbox" />
</div>
<?php
}
/*====== Show modules in position "user2" ======*/
if ($this->countModules('user2') > 0) {
?>
<div id="jsn-pos-user2">
<jdoc:include type="modules" name="user2" style="jsnmodule" class="jsn-roundedbox" />
</div>
<?php
}
?>
<div class="clearbreak"></div>
</div>
</div>
<?php
}
?>
<div id="jsn-mainbody-content">
Commentaire