Cleanup, use PlDict and last core.
[platal.git] / templates / skin / common.bandeau.tpl
index a8cf7ee..71d84e5 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2004 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2009 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {*                                                                        *}
 {**************************************************************************}
 
+<!-- Pour récupérer ce bandeau sur votre site&nbsp;:
+  incluez le fichier http://www.polytechnique.org/bandeau dans vos php
+  ou http://www.polytechnique.org/bandeau/login pour profiter du login
+  automatique. Et rajoutez à la liste de css de vos pages
+  http://www.polytechnique.org/bandeau.css.
+  Pour avoir l'icone, pour des raisons de sécurité il n'y a pas d'accès
+  direct, il faut alors rediriger bandeau/icone.png vers celle du site&nbsp;:
+  http://www.polytechnique.org/bandeau/icone.png 
+-->
 
-    <!-- BANDEAU DEBUT -->
+<!-- Don't copy this list of emails!!!
 
-    <!-- ligne grise de 1px -->
-    <table class="ligne" cellspacing="0" cellpadding="0" style="width:100%; border:none;" summary=""><tr><td class="ligne"></td></tr></table>
+{if !t($login)}
+  {if t($smarty.session.auth)}
+  {assign var="login" value="true"}
+  {/if}
+{/if}
 
-    <table cellspacing="0" cellpadding="1" style="width:100%; border:none;" summary=""><tr><td class="xdx"><img alt="" src="/images/x.png" />&nbsp;&nbsp;<a class="xdx" href="http://www.polytechnique.fr/">L'&Eacute;cole</a>&nbsp;&middot;&nbsp;<a class="xdx" href="http://www.polytechnique.edu/">Institutional site</a>&nbsp;&nbsp;~~&nbsp;&nbsp;<a class="xdx" href="http://www.fondationx.org/">FX</a>&nbsp;&middot;&nbsp;<a class="xdx" href="http://www.polytechniciens.com/">AX</a>&nbsp;&nbsp;~~&nbsp;&nbsp;<a class="xdx" href="http://www.polytechnique.org/">Polytechnique.org</a>&nbsp;&middot;&nbsp;<a class="xdx" href="http://www.polytechnique.net/">Associations polytechniciennes</a>&nbsp;&middot;&nbsp;<a class="xdx" href="http://www.polytechnique.fr/eleves/">&Eacute;l&egrave;ves</a>&nbsp;&middot;&nbsp;<a class="xdx" href="http://www.mangeurs.com/">Manageurs</a></td></tr></table>
-    <!-- ligne grise de 1px -->
-    <table class="ligne" cellspacing="0" cellpadding="0" style="width:100%; border:none;" summary=""><tr><td class="ligne"></td></tr></table>
+  {poison seed=$login}
 
-    <!-- BANDEAU FIN -->
+  -->
 
-{* vim:set et sw=2 sts=2 sws=2: *}
+
+<div id="bandeau-X">
+  <img src="bandeau/icone.png" alt=""/>
+  <a href="http://www.polytechnique.fr/">L'&Eacute;cole</a> &middot;
+  <a href="http://www.polytechnique.edu/">Institutional site</a>
+  &tilde;&tilde;
+  <a href="http://www.fondationx.org/">FX</a> &middot;
+  <a href="http://www.polytechniciens.com/">AX</a>
+  &tilde;&tilde;
+  <a href="https://www.polytechnique.org">Polytechnique.org</a> &middot;
+  <a href="http://www.polytechnique.net{if t($login)}/login{/if}">Associations polytechniciennes</a> &middot;
+  <a href="http://www.polytechnique.fr/eleves/">&Eacute;l&egrave;ves</a> &middot;
+  <a href="http://www.manageurs.com/{if t($login)}anciens_accueil.php?asso=X.org{/if}">Manageurs</a>
+</div>
+
+{* vim:set et sw=2 sts=2 sws=2 enc=utf8: *}