Move some templates in the core.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 2 Nov 2008 16:43:23 +0000 (17:43 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 2 Nov 2008 16:43:42 +0000 (17:43 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
templates/plpage.content.tpl [new file with mode: 0644]
templates/plpage.devel.tpl [new file with mode: 0644]
templates/plpage.header.tpl [new file with mode: 0644]

diff --git a/templates/plpage.content.tpl b/templates/plpage.content.tpl
new file mode 100644 (file)
index 0000000..7823905
--- /dev/null
@@ -0,0 +1,46 @@
+{**************************************************************************}
+{*                                                                        *}
+{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
+{*  http://opensource.polytechnique.org/                                  *}
+{*                                                                        *}
+{*  This program is free software; you can redistribute it and/or modify  *}
+{*  it under the terms of the GNU General Public License as published by  *}
+{*  the Free Software Foundation; either version 2 of the License, or     *}
+{*  (at your option) any later version.                                   *}
+{*                                                                        *}
+{*  This program is distributed in the hope that it will be useful,       *}
+{*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
+{*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
+{*  GNU General Public License for more details.                          *}
+{*                                                                        *}
+{*  You should have received a copy of the GNU General Public License     *}
+{*  along with this program; if not, write to the Free Software           *}
+{*  Foundation, Inc.,                                                     *}
+{*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
+{*                                                                        *}
+{**************************************************************************}
+
+{if !$smarty.server.HTTP_USER_AGENT|regex_replace:"/^Mozilla\/(3|4\.[^0]).*$/":""}
+<h1>ATTENTION !</h1>
+
+<p class="erreur">
+Netscape 4 et certains autres navigateurs très anciens ne sont pas supportés par ce site !!!
+</p>
+<p>
+En effet, ils ne comprenent qu'une trop faible partie des standards du web.
+Il faut donc s'attendre à ce que nombre des fonctionnalités de ce site soient de ce fait indisponnibles.
+</p>
+<p>
+Nous conseillons très vivement d'utiliser des navigateurs récents, tels
+<a href="http://www.mozilla.org/products/firefox/">Firefox</a>
+</p>
+<br />
+{/if}
+
+{if !$pl_no_errors || $pl_failure}
+{include core=triggers.tpl}
+{/if}
+
+{if !$pl_failure && $pl_tpl}{include file=$pl_tpl}{/if}
+
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
diff --git a/templates/plpage.devel.tpl b/templates/plpage.devel.tpl
new file mode 100644 (file)
index 0000000..029f04b
--- /dev/null
@@ -0,0 +1,39 @@
+{**************************************************************************}
+{*                                                                        *}
+{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
+{*  http://opensource.polytechnique.org/                                  *}
+{*                                                                        *}
+{*  This program is free software; you can redistribute it and/or modify  *}
+{*  it under the terms of the GNU General Public License as published by  *}
+{*  the Free Software Foundation; either version 2 of the License, or     *}
+{*  (at your option) any later version.                                   *}
+{*                                                                        *}
+{*  This program is distributed in the hope that it will be useful,       *}
+{*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
+{*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
+{*  GNU General Public License for more details.                          *}
+{*                                                                        *}
+{*  You should have received a copy of the GNU General Public License     *}
+{*  along with this program; if not, write to the Free Software           *}
+{*  Foundation, Inc.,                                                     *}
+{*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
+{*                                                                        *}
+{**************************************************************************}
+
+{if #globals.debug#}
+@@BACKTRACE@@
+
+{if $validate}
+  <div id="dev">
+    @HOOK@
+    Validation&nbsp;:
+    <a href="http://jigsaw.w3.org/css-validator/validator?uri={#globals.baseurl#}/valid.html">CSS</a>
+    &nbsp;&nbsp;|&nbsp;&nbsp;
+    références&nbsp;:
+    <a href="http://www.w3schools.com/xhtml/xhtml_reference.asp">XHTML</a>
+    <a href="http://www.w3schools.com/css/css_reference.asp">CSS2</a>
+  </div>
+{/if}
+{/if}
+
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
diff --git a/templates/plpage.header.tpl b/templates/plpage.header.tpl
new file mode 100644 (file)
index 0000000..aeee220
--- /dev/null
@@ -0,0 +1,48 @@
+{**************************************************************************}
+{*                                                                        *}
+{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
+{*  http://opensource.polytechnique.org/                                  *}
+{*                                                                        *}
+{*  This program is free software; you can redistribute it and/or modify  *}
+{*  it under the terms of the GNU General Public License as published by  *}
+{*  the Free Software Foundation; either version 2 of the License, or     *}
+{*  (at your option) any later version.                                   *}
+{*                                                                        *}
+{*  This program is distributed in the hope that it will be useful,       *}
+{*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
+{*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
+{*  GNU General Public License for more details.                          *}
+{*                                                                        *}
+{*  You should have received a copy of the GNU General Public License     *}
+{*  along with this program; if not, write to the Free Software           *}
+{*  Foundation, Inc.,                                                     *}
+{*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
+{*                                                                        *}
+{**************************************************************************}
+
+{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=$pl_link item=link}
+<link rel="{$link.rel}" href="{$link.href}" />
+{/foreach}
+<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}
+{if $pl_rss}
+<link rel="alternate" type="application/rss+xml" title="{$pl_rss.title}" href="{$pl_rss.href}" />
+{/if}
+{if $pl_extra_header}
+{$pl_extra_header|smarty:nodefaults}
+{/if}
+<title>{$pl_title}</title>
+
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}