<?xml 
version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
>

<channel xml:lang="fr">
	<title>osCSS boutique en ligne Open Source - Free ecommerce</title>
	<link>http://oscss.org/</link>
	<description>Official site team and community osCSS ecommerce engine, motor full GNU/GPL, Open Source ; Gratuite et communautaire</description>
	<language>fr</language>
	<generator>SPIP - www.spip.net</generator>




<item xml:lang="fr">
		<title>Convertion template osCSS 1 vers osCSS 2</title>
		<link>http://www.oscss.org/wiki/oscss-2-xxx/administrateur-webmasteur/article/convertion-template-oscss-1-vers</link>
		<guid isPermaLink="true">http://www.oscss.org/wiki/oscss-2-xxx/administrateur-webmasteur/article/convertion-template-oscss-1-vers</guid>
		<dc:date>2010-11-18T13:46:18Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Ayatus, cynic, j4k, Louis_Cypher, oscim</dc:creator>



		<description>Nous allons voir ici, comment transformer un template d'osCSS 1.xx vers le moteur de l'osCSS 2.xx Le template exemple que nous allons utiliser est le template clean. G&#233;n&#233;ralit&#233;s Pour commencer, il faut comprendre que l'ensemble des fichiers appel&#233;s via des include ou require dans le template, n'est plus la m&#233;thode pr&#233;conis&#233;e. En effet, afin de s&#233;parer le traitement ex&#233;cution du code, et celui de l'affichage, les boxes et modules ont &#233;t&#233; revu. Il est maintenant n&#233;cessaire d'initialiser les boxes et (...)

-
&lt;a href="http://www.oscss.org/wiki/oscss-2-xxx/administrateur-webmasteur/" rel="directory"&gt;Administrateur / webmasteur&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;Nous allons voir ici, comment transformer un template d'osCSS 1.xx vers le moteur de l'osCSS 2.xx&lt;/p&gt; &lt;p&gt;Le template exemple que nous allons utiliser est le template clean.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;G&#233;n&#233;ralit&#233;s&lt;/h3&gt;
&lt;p&gt;Pour commencer, il faut comprendre que l'ensemble des fichiers appel&#233;s via des include ou require dans le template, n'est plus la m&#233;thode pr&#233;conis&#233;e.&lt;/p&gt; &lt;p&gt;En effet, afin de s&#233;parer le traitement ex&#233;cution du code, et celui de l'affichage, les boxes et modules ont &#233;t&#233; revu.&lt;/p&gt; &lt;p&gt;Il est maintenant n&#233;cessaire d'initialiser les boxes et modules, dans un premier temps, et ensuite de les appeler dans le template.&lt;/p&gt; &lt;p&gt;Petite note importante. Recuperer dans le template eletronix, fournis avec le moteur , les fichiers suivant , et ajouter les a dans voter repertoire de template&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://www.oscss.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; boxes.php
&lt;br /&gt;&lt;img src=&quot;http://www.oscss.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; modules.php&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;S&#233;paration des contenus &lt;/h3&gt;
&lt;p&gt;Pour commencer nous allons s&#233;parer les contenus, entre les appels generic, commun a toutes les pages (header et footer) ; et le corps de page.&lt;/p&gt; &lt;p&gt;Nous r&#233;partirons les contenus dans 3 fichier distinct,&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; header.php, &lt;/li&gt;&lt;li&gt; template.php&lt;/li&gt;&lt;li&gt; footer.php&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Le contenu du fichier header.php, comprend la d&#233;claration html, et le bloc head. De plus, cette ent&#234;te contient les bloc de retour d'erreur et de prise en charge des title, tag, plugins, javascripts et autres.&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;&lt;br /&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; HTML_PARAMS&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt; &gt;&lt;br /&gt;
&lt;head&gt;&lt;br /&gt; &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; CHARSET&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&quot; /&gt;&lt;br /&gt; &lt;meta name=&quot;author&quot; content=&quot;oscim&quot;/&gt;&lt;br /&gt; &lt;title&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$page&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;the_title&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/title&gt;&lt;br /&gt; &lt;meta name=&quot;description&quot; content=&quot;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$the_desc&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&quot; /&gt;&lt;br /&gt; &lt;meta name=&quot;keywords&quot; content=&quot;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$the_key_words&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&quot; /&gt;&lt;br /&gt; &lt;meta name=&quot;reply-to&quot; content=&quot;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; HEAD_REPLY_TAG_ALL &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&quot; /&gt;&lt;br /&gt; &lt;meta name=&quot;robots&quot; content=&quot;all&quot; /&gt;&lt;br /&gt; &lt;meta name=&quot;generator&quot; content=&quot;osCSS-2&quot; /&gt;&lt;br /&gt; &lt;base href=&quot;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;page&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'var'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'request_type'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'SSL'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; ? HTTPS_SERVER &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; HTTP_SERVER&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt; DIR_WS_CATALOG&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&quot; /&gt;&lt;br /&gt; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'templates/'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$template&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'/'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;stylesheet.css&quot; media=&quot;all&quot;/&gt;&lt;br /&gt; &lt;script type=&quot;text/javascript&quot; src=&quot;includes/general.js&quot; &gt;&lt;/script&gt;&lt;br /&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;draw_file_header&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;br /&gt; &lt;link rel=&quot;shortcut icon&quot; type=&quot;images/x-icon&quot; href=&quot;favicon.ico&quot;/&gt;&lt;br /&gt; &lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;global&quot; href=&quot;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; HTTP_SERVER&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;DIR_WS_HTTP_CATALOG&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'rss.php'&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&quot; /&gt;&lt;br /&gt; &lt;link rel=&quot;canonical&quot; href=&quot;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; CanonicalUrl&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&quot; /&gt;&lt;br /&gt;
&lt;/head&gt;&lt;br /&gt; &lt;body id=&quot;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; page&lt;span style=&quot;color: #339933;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_body_id&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&quot; class=&quot;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'Type_'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$page&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;the_type&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&quot;&gt;&lt;br /&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/** Retour d'erreur checkup sur la boutique */&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;messageStack&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_draw&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'header'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div id=&quot;page&quot;&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://www.oscss.org/local/cache-code/28d5115b0894a1d0bda5e5a96ebc7c62.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;D'autre part, nous allons reporter dans le fichier footer les &#233;l&#233;ments de fin de page&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt; &lt;div id=&quot;footer&quot;&gt;&lt;br /&gt; &lt;p class=&quot;copyright&quot;&gt;&lt;br /&gt; &amp;#126; copyright &amp;copy; CounterAct Design 2005 &amp;#126;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &amp;#126; Propuls&amp;eacute; par &lt;a href=&quot;http://www.oscss.org/blog/&quot; title=&quot; osCSS &quot;&gt;osCSS&lt;/a&gt;&lt;br /&gt; &amp;middot; &lt;a href=&quot;http://validator.w3.org/check?uri=referer&quot; title=&quot; validate XHTML &quot;&gt;XHTML&lt;/a&gt;&lt;br /&gt; &amp;middot; &lt;a href=&quot;http://jigsaw.w3.org/css-validator/check/referer&quot; title=&quot; validate CSS &quot;&gt;CSS&lt;/a&gt; &amp;#126;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &amp;#126; Bas&amp;eacute; sur &lt;a href=&quot;http://www.oscss.org&quot; title=&quot; osCSS &quot;&gt;osCommerce&lt;/a&gt; &amp;#126;&lt;br /&gt; &lt;/p&gt;&lt;br /&gt; &lt;/div&gt;&lt;br /&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/** Retour d'erreur sur la boutique */&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;messageStack&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_draw&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'error'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/** Fichier appel bottom page*/&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;draw_file_footer&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;!-- end #page --&gt;&lt;br /&gt;
&lt;/body&gt;&lt;br /&gt;
&lt;/html&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://www.oscss.org/local/cache-code/94be7c35642ea0f13959aacd1efe8585.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Enfin, le reste du contenu sera attribu&#233; au fichier template.php&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$page&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;tep_get_header&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;br /&gt; &lt;div id=&quot;top&quot;&gt;&lt;br /&gt; &lt;h1&gt;osCSS Demo shop&lt;/h1&gt;&lt;br /&gt; &lt;div id=&quot;nav&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'menu.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt; &lt;/div&gt;&lt;br /&gt; &lt;div id=&quot;breadCrumb&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$breadcrumb&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;trail&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;' &amp;raquo; '&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt; &lt;div id=&quot;pageContent&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'includes/content/'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$page_content&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div id=&quot;sidebar&quot;&gt;&lt;br /&gt; &lt;div id=&quot;languages&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;include&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'languages.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt; &lt;div id=&quot;loginBox&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;include&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'login_box.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt; &lt;div id=&quot;categoriesBox&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'categories.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt; &lt;div id=&quot;searchBox&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'search.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt; &lt;div id=&quot;cartBox&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'shopping_cart.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt; &lt;div id=&quot;informationBox&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'information.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$page&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;tep_get_footer&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://www.oscss.org/local/cache-code/a655b4978250d3c31f3ea96e41b0c3da.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Dans cet exemple, nous avons remplacer bloc header et footer, par les appels correspondant, &#224; savoir :&lt;/p&gt; &lt;p&gt;Appel du fichier header.php&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$page&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;tep_get_header&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Appel du fichier footer.php&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$page&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;tep_get_footer&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h3 class=&quot;spip&quot;&gt;Initialisation des boxes et modules&lt;/h3&gt;
&lt;p&gt;Pour initialiser les &#233;l&#233;ment pr&#233;sent et actif dans le template, nous avons recours au fichier init.php du template. Celui ci est appel&#233; avant le template, pour traiter et calculer l'affichage.&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;li&gt;&lt;strong&gt; Les boxes&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;si vous utilisez par ex, la boite languages, appel&#233;e comme suit :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;include&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'languages.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Son initialisation ce fera comme suit :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_boxes&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_add&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'languages'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'hidden'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Tous les chargement de boite ont lieux avec l'appel suivant :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_boxes&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_add&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'nom de la boxes'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'pile'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Avec pour argument :&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; Le nom de la boite, sans le &quot;.php&quot;, cad languages.php devient languages&lt;/li&gt;&lt;li&gt; Le nom de la &quot;pile&quot; dans laquelle on charge la boite. Cette pile est obligatoire , mais vous pouvez ne pas l'utiliser. Dans ce cas, utiliser la pile &quot;hidden&quot;
Dans d'autre circonstance, vous pouvez dans le template appeler les boxes, par leur nom, ou sous forme de boucle, avec la pile &#224; laquelle elles appartiennent. &lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;-* Dans notre exemple , template clean&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Dans notre exemple, nous allons donc transformer les appels de toutes les boites, et les report&#233; dans le fichier init.php&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;...&lt;br /&gt; &lt;div id=&quot;nav&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'menu.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
....&lt;br /&gt;
&lt;div id=&quot;sidebar&quot;&gt;&lt;br /&gt; &lt;div id=&quot;languages&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;include&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'languages.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt; &lt;div id=&quot;loginBox&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;include&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'login_box.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt; &lt;div id=&quot;categoriesBox&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'categories.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt; &lt;div id=&quot;searchBox&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'search.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt; &lt;div id=&quot;cartBox&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'shopping_cart.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt; &lt;div id=&quot;informationBox&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;DIR_WS_BOXES&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'information.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
...&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://www.oscss.org/local/cache-code/3a8f979c6cd20c36b4cb13bb518d66db.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Nous pouvons distinguer 2 espace de boite, l'une qui ne contient que menu , et qui s'affiche en haut de page, et l'autre , qui construit la pile du menu de droite .&lt;/p&gt; &lt;p&gt;Aussi, nous allons utiliser 2 pile pour les boites, celle du menu que nous appellerons 'haut&quot;, et celle de droite que nous appellerons &quot;droite&quot;&lt;/p&gt; &lt;p&gt;Donnera dans le fichier init&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/** Pile haut */&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_boxes&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_add&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'menu'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'haut'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/** Pile droite */&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_boxes&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_add&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'languages'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'droite'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_boxes&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_add&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'login_box'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'droite'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_boxes&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_add&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'categories'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'droite'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_boxes&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_add&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'search'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'droite'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_boxes&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_add&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'shopping_cart'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'droite'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_boxes&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_add&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'information'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'droite'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://www.oscss.org/local/cache-code/ea0574911ca05ab7ea73f5688f05229c.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;-* Les modules&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Les modules charg&#233;e par cette m&#233;thode sont les modules non typ&#233;, cad ceux contenu &#224; la racine du dossier module ;
Ces module sur la V1, &#233;tait appel&#233; directement par les page content, d&#233;sormais, elle sont appel&#233; par le template. Il est ainsi possible de choisir quel module sera pr&#233;sent sur quelle page.&lt;/p&gt; &lt;p&gt;La encore il est n&#233;cessaire d'initialiser le module&lt;/p&gt; &lt;p&gt;Pour charger le module new produts, ca donne ca :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_modules&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_add&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;FILENAME_NEW_PRODUCTS&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'center'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'sort'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;=&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Nous avons la m&#234;me logique que pour les boxe, un nom de module, suivi de la pile auquel il appartient .&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Fichier de template, appels &lt;/h3&gt;
&lt;p&gt;Dans notre fichier de template, nous allons pouvoir utiliser tous les elements d&#233;j&#224; initialis&#233;. aussi le template ne prend en charge scrupuleusement que l'affichage.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;-* Les boxes &lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Nous allons donc remplacer dans notre fichier template.php , les appels des boites et modules, par leur nouvelle forme&lt;/p&gt; &lt;p&gt;Pour commencer, nous allons appel&#233; la boite menu, de la pile haut. compte tenu que la pile &quot;haut&quot; ne contient qu'une boite, nous pouvons appel&#233; directement la boite dont nous avons besoin par son nom .&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$boxe&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$page&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_boxes&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_return&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'menu'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;br /&gt; &lt;div id=&quot;nav&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;include&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'boxe.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://www.oscss.org/local/cache-code/79c077c69816430263fcdff7d51b3119.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;L'appel ce d&#233;compose en 2 lignes, la premiere appel la boite precise que nous voulons, cad&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$boxe&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$page&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_boxes&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;_return&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'menu'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;La deuxi&#232;me, fournis le mod&#232;le html des boites et affiche le contenu de la boite&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;include&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'boxe.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;D'autre part, nous voulons aussi affich&#233; la colonne de droite qui est compos&#233; de plusieurs boites. Dans ce cas, la methode la plus simple, consiste a appel&#233; la &quot;pile&quot; droite, et ainsi faire une boucle . Nous ecrirons donc l'appel sous cette forme :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$boxe&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;templ_draw_list&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'type=boxes&amp;pile=droite'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;br /&gt; &lt;div id=&quot;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$boxe&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;name_clean&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;Box&quot; &gt;&lt;br /&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;include&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'boxe.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;br /&gt; &lt;/div&gt;&lt;br /&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;endwhile&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://www.oscss.org/local/cache-code/ae1d648b471f48d2d4e1b0c8e6aee763.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Le code ce decompose comme suit :&lt;/p&gt; &lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; Une boucle while, pour lister toutes les boites, avec l'appel &#224; la function templ_draw_list&lt;/li&gt;&lt;li&gt; L'ajout d'un div, contenant un id compos&#233; du nom de la boite et du mot Box, soit languagesBox par ex. &lt;/li&gt;&lt;li&gt; De l'appel au template boxe.php d'affichage de la boite. &lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;-* Les modules&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Pour appel&#233; les module non typ&#233;, utiliser la methode comme suit :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$themodule&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;templ_draw_list&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/** Appel des module (new_products, product_listing ...) */&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;br /&gt; &lt;div id=&quot;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$themodule&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;id&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&quot; class=&quot;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$themodule&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;css_class&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt; &quot;&gt;&lt;br /&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;include&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'module.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;br /&gt; &lt;/div&gt;&lt;br /&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;endwhile&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://www.oscss.org/local/cache-code/849fca441149afce5adb3acac2e9755d.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Nous utilisons une boucle pour charger tous les module de type center. Lors de l'uage de cette function, le type par defaut est module, et la pile par defaut et center. Aussi dans l'appel ci dessus, il n'est pas necessaire de preciser&lt;/p&gt; &lt;p&gt;On peut aussi ecrire :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;templ_draw_list&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'type=modules&amp;pile=center'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;dans notre appel de boucle, on fait appel au fichier de mod&#233;le module. tous les modules non type seront prise en charge par ce gabarit de template.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;-* Le contenu de page &lt;/strong&gt;
Dans ce moteur , le contenu de page et toujours pris en charge par les fichier contenu dans le r&#233;pertoire includes/content. Par contre les modules associ&#233; a ces page est appl&#233; directement par le template.&lt;/p&gt; &lt;p&gt;Le contenu de page : Il etait pr&#233;c&#233;ment appel&#233; par :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;&lt;div id=&quot;pageContent&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'includes/content/'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$page_content&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;La Forme a chang&#233; est s'ecrit :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;&lt;div id=&quot;pageContent&quot;&gt;&lt;br /&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$page&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_content&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://www.oscss.org/local/cache-code/ca1d86e0d2b01aedd67f05804af54146.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Si vous souhaitez utilis&#233; la partie CMS d'osCSS, par exemple pour les infirmation, ou autre, l'appel suivant vous permet de donner la priorit&#233; a un article de type cms, plutot qu'a la page contenu dans /content/&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;&lt;div id=&quot;pageContent&quot;&gt;&lt;br /&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt; &lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/** Page cms de contenu (Page_home, .. ), ou page contenu dans content */&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$conti&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;tep_get_cms_content&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$page&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_body_id&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #009900; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #009900; font-weight: bold;&quot;&gt;false&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;&amp;&amp;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$page&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_body_id&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'Page_contact_us'&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$conti&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require_once&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$page&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;-&gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;oscss_content&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://www.oscss.org/local/cache-code/2b3f3b7888fc8de29a1b235d5c736028.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Howto Installation</title>
		<link>http://www.oscss.org/wiki/oscss-2-xxx/article/howto-installation</link>
		<guid isPermaLink="true">http://www.oscss.org/wiki/oscss-2-xxx/article/howto-installation</guid>
		<dc:date>2010-09-09T19:37:10Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Ayatus, j4k, oscim</dc:creator>



		<description>Tuto pour mettre en &#339;uvre votre moteur de boutique en ligne. Pre-requis technique php &gt; 5.1 mysql &gt; 5 javascript actif cookie autoris&#233; Fortement conseill&#233; le mod_rewrite actif sur le serveur Avec la netinstall Lorsque vous utilisez la netinstall, vous n'avez pas besoins de r&#233;gler les droit sur les fichier est dossier, aussi l'installation en sera plus simple et beaucoup plus rapide. T&#233;l&#233;charger la netinstall pointez avec votre navigateur, http://monurl/netinstall.php Suivez la (...)

-
&lt;a href="http://www.oscss.org/wiki/oscss-2-xxx/" rel="directory"&gt;osCSS 2.xxx&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;Tuto pour mettre en &#339;uvre votre moteur de boutique en ligne.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Pre-requis technique&lt;/h3&gt;
&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; php &gt; 5.1&lt;/li&gt;&lt;li&gt; mysql &gt; 5&lt;/li&gt;&lt;li&gt; javascript actif&lt;/li&gt;&lt;li&gt; cookie autoris&#233;&lt;/li&gt;&lt;li&gt; Fortement conseill&#233; le mod_rewrite actif sur le serveur&lt;/li&gt;&lt;/ul&gt;
&lt;h3 class=&quot;spip&quot;&gt;Avec la netinstall&lt;/h3&gt;
&lt;p&gt;Lorsque vous utilisez la netinstall, vous n'avez pas besoins de r&#233;gler les droit sur les fichier est dossier, aussi l'installation en sera plus simple et beaucoup plus rapide.&lt;/p&gt; &lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; T&#233;l&#233;charger la netinstall&lt;/li&gt;&lt;li&gt; pointez avec votre navigateur, http://monurl/netinstall.php&lt;/li&gt;&lt;li&gt; Suivez la proc&#233;dure&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Note : les droits sur les fichiers et r&#233;pertoire, seront h&#233;rit&#233;s du r&#233;pertoire parent, aussi, r&#233;gler les droit du dossier dans lequel vous installez le fichier de la netinstall&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Sans la netinstall&lt;/h3&gt;
&lt;p&gt;Lors d'une install semi manuel, vous devez t&#233;l&#233;charger le paquet, et le dezziper dans le r&#233;pertoire de votre domaine.&lt;/p&gt; &lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; Recuperer le paquet et extraire celui ci votre le domaine&lt;/li&gt;&lt;li&gt; pointez ensuite avec votre navigateur sur le dossier dans lesquel vous avez install&#233; oscss&lt;/li&gt;&lt;li&gt; Regler les droits sur les dossiers et fichiers comme suit :&lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; catalog/ &gt;&gt; ecrtiture &lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; Acces ecriture .htaccess&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt; catalog/includes/ &gt;&gt; ecriture&lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; Acces ecriture configure.php&lt;/li&gt;&lt;li&gt; Acces ecriture tables_files_modules.php&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt; catalog/oscs_data/ &gt;&gt; ecriture&lt;/li&gt;&lt;li&gt; catalog/session/ &gt;&gt; ecriture (normalement creer automatiquement)&lt;/li&gt;&lt;li&gt; catalog/pub/ &gt;&gt; ecriture&lt;/li&gt;&lt;li&gt; catalog/images/ &gt;&gt; ecriture&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;ol class=&quot;spip&quot;&gt;&lt;li&gt;&lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; catalog/admin/images/ &gt;&gt; ecriture&lt;/li&gt;&lt;li&gt; catalog/admin/images/ graphs &gt;&gt; ecriture&lt;/li&gt;&lt;li&gt; catalog/admin/session/ &gt;&gt; ecriture (normalement creer automatiquement)&lt;/li&gt;&lt;li&gt; catalog/admin/backup/ &gt;&gt; ecriture&lt;/li&gt;&lt;li&gt; catalog/admin/includes/tmp/ &gt;&gt; ecriture&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;h3 class=&quot;spip&quot;&gt;Utilisation de l'installateur d'extension&lt;/h3&gt;
&lt;p&gt;Pour permettre un fonctionnement correct du gestionnaire d'extensions, il est n&#233;cessaire que le serveur est des droit correct sur l'ensemble du moteur.&lt;/p&gt; &lt;p&gt;Dans le cas de l'utilisation restreinte &#224; l'ajout de module simple, paiement, livraison , dans ce cas, seul les r&#233;pertoires suivant sont n&#233;cessaire&lt;/p&gt; &lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; /includes/modules/&lt;/li&gt;&lt;li&gt; /includes/languages/&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Dans le front, comme dans le back&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Finalisation de l'installation de votre boutique&lt;/h3&gt;
&lt;p&gt;Pour finaliser l'installation de la boutique, il est n&#233;cessaire d'effectuer quelque op&#233;ration de base.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&#233;tape dans l'admin de la boutique&lt;/strong&gt;&lt;/p&gt; &lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; Configuration automatique du template public. Aller dans configuration &gt; apparence &gt; template , survoler le th&#232;me actif, et cliquer sur le bouton configuration&lt;/li&gt;&lt;li&gt; Regler les droits sur les fichier sensible, et ensuite desactiver le checkup du systeme Aller dans configuration &gt; backoffice&gt;general ; et placer sur off le checkup systeme , puis sauver &lt;/li&gt;&lt;li&gt; Regler les informations de base de votre boutique, pays , email , etc.. Aller dans configuration &gt; configuration &gt;ma boutique &lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;&#233;tape dans les fichiers configure.php&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Restructuration du d&#233;p&#244;t Subversion de SourceForge</title>
		<link>http://www.oscss.org/actualites/article/restructuration-du-svn-de-sf</link>
		<guid isPermaLink="true">http://www.oscss.org/actualites/article/restructuration-du-svn-de-sf</guid>
		<dc:date>2010-08-23T10:08:46Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Ayatus, oscim</dc:creator>



		<description>Une r&#233;organisation importante du d&#233;p&#244;t Subversion (SVN) de SourceForge a eu lieu, afin de replacer les dossiers et structure dans leur contexte. La version 1.2.2 Rc est pass&#233; dans une branche, afin conserver le suivi de cette version, et permettre de finaliser la 1.2.2Rc_c qui apportera quelques correction critiques La version 2.1.0, qui correspondait &#224; la branche de d&#233;veloppement oscss2, permet la finalisation des quelques taches restante, et les modifications suite aux tests en cours. La (...)

-
&lt;a href="http://www.oscss.org/actualites/" rel="directory"&gt;Actualit&#233;s&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;Une r&#233;organisation importante du d&#233;p&#244;t Subversion (SVN) de SourceForge a eu lieu, afin de replacer les dossiers et structure dans leur contexte.&lt;/p&gt; &lt;p&gt;La &lt;strong&gt;version 1.2.2 Rc&lt;/strong&gt; est pass&#233; dans une branche, afin conserver le suivi de cette version, et permettre de finaliser la 1.2.2Rc_c qui apportera quelques correction critiques&lt;/p&gt; &lt;p&gt;La &lt;strong&gt;version 2.1.0,&lt;/strong&gt; qui correspondait &#224; la branche de d&#233;veloppement oscss2, permet la finalisation des quelques taches restante, et les modifications suite aux tests en cours. La sortie de la version 2.1.0 en pre-final devrait avoir lieux d&#233;but septembre ; et la version 2.1.0 final dans les semaines suivantes. les derniers bugs corrig&#233;s&lt;/p&gt; &lt;p&gt;La &lt;strong&gt;version 2.1.1&lt;/strong&gt; est sur les rails, et correspond &#224; la version de d&#233;veloppement. Elle ce situe dans le r&#233;pertoire trunk, et nous n'avan&#231;ons pour celle ci aucune date de sortie.&lt;/p&gt; &lt;p&gt;Voir la &lt;a href=&quot;http://dev.oscss.org/roadmap/proj5&quot; class='spip_out' rel='external'&gt;roadmap&lt;/a&gt; sur les &#233;volutions entre les versions&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



</channel>

</rss>

