12/11/2019, 23:47:39
voici finalement le gabarit. Je n'ai mis que la partie entre les balises <body></body> le head est commun aux 2 gabarits
Code :
<body >
{if isset($smarty.get.tpl) and $smarty.get.tpl eq 2}
{*On crée le gabarit de la fenêtre popup*}
<div id="ncleanblue" >
<div id="pagewrapper" class="core-wrap-100 core-center">
{* start accessibility skip links *}
<ul class="accessibility">
<li>{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}</li>
<li>{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}</li>
</ul>
{* end accessibility skip links *}
<hr class="accessibility" />
{* Horizontal ruler that is hidden for visual browsers by CSS *}
{* Start Content (Navigation and Content columns) *}
<div id="content" class="util-clearfix">
{* Start Bar *}
<div class="util-clearfix" >
<div class="core-float-left" >
{* Start Navigation, style sheet "Layout: NCleanBlue", starting at Menu ROOT *}
<h2 class="accessibility util-clearb">Navigation</h2>
{* anything class="accessibility" is hidden for visual browsers by CSS *}
<hr class="accessibility util-clearb" />
{* End Navigation *}
</div>
<hr class="accessibility util-clearb" />
</div>
{* End Bar *}
{* Start Content Area, right side *}
<div id="main" class="core-float-left">
{* main content *}
<div class="main-main util-clearfix " >
<h1 class="title">{title}</h1>
{content}
</div>
</div>
{* End Content Area, right side *}
</div>
{* End Content *}
</div>
{* end pagewrapper *}
<span class="util-clearb"></span>
</div>
{* End Div *}
{global_content name='xiti'}
{else}
{*On crée le gabarit général*}
{global_content name='suivre'}
<div id="ncleanblue">
<div id="pagewrapper" class="core-wrap-960 core-center">
{* start accessibility skip links *}
<ul class="accessibility">
<li> {*content block="titre_html" label="Titre formaté en html" online="true" size="1" maxlength="50"*}</li>
<li>{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}</li>
<li>{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}</li>
</ul>
{* end accessibility skip links *}
<hr class="accessibility" />
{* Horizontal ruler that is hidden for visual browsers by CSS *}
{* Start Header, with logo image that links to the default start page *}
<div id="header" class="util-clearfix">
{* logo image that links to the default start page. Logo image is changed in the style sheet "Layout: NCleanBlue" *}
<div id="logo" class="core-float-left ">
{*cms_selflink lang='fr' dir='start' *}
<div class="noprint">{cms_selflink lang='fr' dir='start' text=' ' image={uploads_url}|cat : '/design/logo_site.jpg' width ='960' height='120'}</div>
<div class="toprint">{cms_selflink lang='fr' dir='start' text='Evolution biologique ' width ='960' height='120'}</div>
</div>
{* Start Search, the input "Submit" is using an image, CSS: div#search input.search-button *}
<div id="search" class="core-float-right ">
<div class="noprint">{search lang='fr_FR' submit='OK' search_method="post" searchtext="Rechercher sur le site" passthru_News_detailpage='actualite' detailpage='353' }</div>
</div>
{* End Search *}
<span class="util-clearb"> </span>
</div>
{* End Header *}
{* Start Content (Navigation and Content columns) *}
<div id="content" class="util-clearfix">
{* Start Bar *}
<div id="bar" class="util-clearfix noprint" >
<div class="core-float-left" >
{* Start Navigation, style sheet "Layout: NCleanBlue", starting at Menu ROOT *}
<h2 class="accessibility util-clearb">Navigation</h2>
{* anything class="accessibility" is hidden for visual browsers by CSS *}
<div class="util-clearfix" >
{Navigator template='menu_horizontal' number_of_levels="2"}
</div>
<hr class="accessibility util-clearb" />
{* End Navigation *}
</div>
<hr class="accessibility util-clearb" />
</div>
{* End Bar *}
{* Start left side *}
<div id="left" class="core-float-left">
<div class="sbar-top" >
{print showbutton=true text=" Imprimer cette page" popup="true" script="true" includetemplate="false"}
{cms_module module='PrintingPDF' pdf="true" showbutton="true" text="Cliquer pour générer le PDF"}
</div>
<div class="sbar-main noprint" >
<h2 class="accessibility">Navigation</h2>
{Navigator template="menu_vertical" start_level="2" number_of_levels="1"}
<hr class="accessibility" />
</div >
<div class="sbar-bottom">
</div >
</div>
{* End left side *}
{* Start Content Area, right side *}
<div id="main" class="core-float-left page811" >
{* Start News *}
<div id="news" class="noprint" >
<div id="titre-news">
l'actualité
</div>
{news number="40" summarytemplate ='actualites_mini_select_detailpage_detailtemplate' number ="1" lang='fr_FR' category="actualités,Mise à jour du site,Travaux en cours,Techniques 3D,Pédagogie,musées" }
<div class="NewsSummary NewsSummaryLink">
<a href="{cms_selflink href='archives' }">Archives des articles >></a>
</div>
<div class="sbar-bottom" >
</div>
</div>
{* End News *}
{* main top, holds top image and print image *}
<div class="main-top noprint">
<div id = "decoration" class="core-float-left">
{global_content name='menu_temps'}
{*global_content name='avez_vous_lu'*}
</div>
{* Start Breadcrumbs, a bit of letting you know where your at *}
<div class="breadcrumbs " >
<div class="core-float-left">
{global_content name='page_precedante'}
</div>
{Navigator action='breadcrumbs'}
</div>
{* End Breadcrumbs *}
</div>
{* main content *}
<div class="main-main util-clearfix">
{if $content_obj->GetPropertyValue('extra1')=='sans-menu-3'}
{else}
{root_page_hierarchy start_level='4' assign='hierarchy'}
{if $hierarchy==""}
{else}
<div class="core-float-right" id="menu_3">
<div class="noprint"> {Navigator template="menu_3" number_of_levels="4" start_element=$hierarchy collapse="1"} </div>
</div>
{/if}
{/if}
{*content block="titre_html" assign=titre_html*}
<h1 class="title">
{title}
</h1>
{$contenu}
</div>
<div >
</div >
{* Start main bottom and relational links *}
<div class="main-bottom noprint">
{global_content name='info_page'}
<div class="right49 core-float-right">
{global_content name='haut_page_icone'}
</div>
{* End relational links *}
<hr class="accessibility" />
</div>
{* End main bottom *}
</div>
{* End Content Area, right side *}
</div>
{* End Content *}
</div>
{* end pagewrapper *}
<span class="util-clearb"></span>
{* Start Footer *}
<div id="footer-wrapper">
<div id="footer" class="core-wrap-960">
{* edit the footer in the Global Content Block called "footer" *}
<div class="block cms core-float-left">
{global_content name='footer'}
{global_content name='xiti'}
</div>
<span class="util-clearb"></span>
</div>
</div>
{* End Footer *}
{* End Div *}
</div>
{/if}
</body>
MS-Dos, Gem, geoworks, Windows 1, 2, 3, 3.1, 95, 98, XP, seven, 8, 10
Mac system 1 à 6
Wampserver 3.1.9,
PhP 7.3.5,
CMS version 2.2.11