Backport 1745-1747
[platal.git] / templates / skin / common.header.tpl
index 9b12bdd..fa535d8 100644 (file)
@@ -28,7 +28,9 @@
     <link rel="index"  href="" />
     <link rel="author" href="changelog" />
     <link rel="search" href="search" />
-    <link rel="search" type="application/opensearchdescription+xml" href="/xorg.opensearch.xml" title="Annuaire Polytechnique.org" />
+    {if $smarty.session.perms->hasFlag('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" />
@@ -37,6 +39,7 @@
     <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="stylesheet" type="text/css" href="css/base.css" media="all"/>
     {foreach from=$xorg_css item=css}
     <link rel="stylesheet" type="text/css" href="css/{$css}" media="all"/>
     {/foreach}
     </style>
     {/foreach}
     <link rel="stylesheet" type="text/css" href="css/print.css" media="print"/>
-    <script type="text/javascript">//<![CDATA[
-    if (window.top != window)
-      document.write('<link rel="stylesheet" type="text/css" href="css/onlycontent.css" media="all"/>');
-    //]]></script>
+    <script type="text/javascript">
+      var platal_baseurl = "{$globals->baseurl}/";
+    </script>
     {foreach from=$xorg_js item=js}
     <script type="text/javascript" src="javascript/{$js}"></script>
     {/foreach}