Rename xorg_ constants to pl_
[platal.git] / templates / skin / common.header.tpl
index cfe1a38..568297d 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2006 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {*                                                                        *}
 {**************************************************************************}
 
-    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <meta name="description" content="Le Portail des Polytechniciens" />
     <meta name="keywords" content="Ecole polytechnique, anciens eleves, portail, alumni, AX, X, routage, reroutage, e-mail, email, mail" />
-    <link rel="icon" type="image/png" href="images/favicon.png" />
-
+    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
+    <link rel="icon" href="/images/favicon.png" type="image/png" />
+    <link rel="apple-touch-icon" href="images/logo.png" type="image/png" />
     <link rel="index"  href="" />
     <link rel="author" href="changelog" />
     <link rel="search" href="search" />
-    <link rel="help"   href="Docs/FAQ" />
-    <link rel="bookmark" href="http://www.polytechnique.fr/"        title="| École polytechnique" />
+    {if hasPerm('user')}
+    <link rel="search" type="application/opensearchdescription+xml" href="http://www.polytechnique.org/xorg.opensearch.xml" title="Annuaire Polytechnique.org" />
+    {/if}
+    <link rel="help"   href="Xorg/FAQ" />
+    <link rel="bookmark" href="http://www.polytechnique.fr/"        title="| École polytechnique" />
     <link rel="bookmark" href="http://www.polytechnique.edu/"       title="| Institutionnal site" />
     <link rel="bookmark" href="http://www.fondationx.org/"          title="| FX" />
     <link rel="bookmark" href="http://www.polytechniciens.com/"     title="| AX" />
     <link rel="bookmark" href="http://www.polytechnique.org/"       title="| Polytechnique.org" />
-    <link rel="bookmark" href="http://www.polytechnique.fr/eleves/" title="| Site d'élèves" />
+    <link rel="bookmark" href="http://www.polytechnique.fr/eleves/" title="| Site d'élèves" />
 
-    {foreach from=$xorg_css item=css}
-    <link rel="stylesheet" type="text/css" href="css/{$css}" />
+    <link rel="stylesheet" type="text/css" href="css/base.css" media="all"/>
+    {foreach from=$pl_css item=css}
+    <link rel="stylesheet" type="text/css" href="css/{$css}" media="all"/>
+    {/foreach}
+    {foreach from=$pl_inline_css item=css}
+    <style type="text/css">
+    {$css|smarty:nodefaults}
+    </style>
     {/foreach}
-    {foreach from=$xorg_js item=js}
+    <link rel="stylesheet" type="text/css" href="css/print.css" media="print"/>
+    <script type="text/javascript">
+      var platal_baseurl = "{$globals->baseurl}/";
+    </script>
+    {foreach from=$pl_js item=js}
     <script type="text/javascript" src="javascript/{$js}"></script>
     {/foreach}
-    <script type="text/javascript" src="javascript/overlib.js"></script>
-    <script type="text/javascript" src="javascript/md5.js"></script>
-    <script type="text/javascript" src="javascript/sha1.js"></script>
-    <script type="text/javascript" src="javascript/secure_hash.js"></script>
+    {javascript name=overlib}
+    {javascript name=md5}
+    {javascript name=sha1}
+    {javascript name=secure_hash}
 
-    {if $xorg_rss}
-    <link rel="alternate" type="application/rss+xml" title="{$xorg_rss.title}" href="{$xorg_rss.href}" />
+    {if $pl_rss}
+    <link rel="alternate" type="application/rss+xml" title="{$pl_rss.title}" href="{$pl_rss.href}" />
     {/if}
 
-    {if $xorg_extra_header}
-    {$xorg_extra_header|smarty:nodefaults}
+    {if $pl_extra_header}
+    {$pl_extra_header|smarty:nodefaults}
     {/if}
 
-    <title>{$xorg_title|default:"Anciens eleves Polytechnique, annuaire email, Alumni"}</title>
+    <title>{$pl_title|default:"Polytechnique.org&nbsp;: le site des élèves et anciens élèves de l'École polytechnique"}</title>
 
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}