From f734e828ef90b48ba709a84de92f5f95154cb111 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 2 Nov 2008 17:43:23 +0100 Subject: [PATCH] Move some templates in the core. Signed-off-by: Florent Bruneau --- templates/plpage.content.tpl | 46 ++++++++++++++++++++++++++++++++++++++++++ templates/plpage.devel.tpl | 39 +++++++++++++++++++++++++++++++++++ templates/plpage.header.tpl | 48 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 133 insertions(+) create mode 100644 templates/plpage.content.tpl create mode 100644 templates/plpage.devel.tpl create mode 100644 templates/plpage.header.tpl diff --git a/templates/plpage.content.tpl b/templates/plpage.content.tpl new file mode 100644 index 0000000..7823905 --- /dev/null +++ b/templates/plpage.content.tpl @@ -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]).*$/":""} +

ATTENTION !

+ +

+Netscape 4 et certains autres navigateurs très anciens ne sont pas supportés par ce site !!! +

+

+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. +

+

+Nous conseillons très vivement d'utiliser des navigateurs récents, tels +Firefox +

+
+{/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 index 0000000..029f04b --- /dev/null +++ b/templates/plpage.devel.tpl @@ -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} +
+ @HOOK@ + Validation : + CSS +   |   + références : + XHTML + CSS2 +
+{/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 index 0000000..aeee220 --- /dev/null +++ b/templates/plpage.header.tpl @@ -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} + +{/foreach} +{foreach from=$pl_inline_css item=css} + +{/foreach} +{foreach from=$pl_link item=link} + +{/foreach} + +{foreach from=$pl_js item=js} + +{/foreach} +{if $pl_rss} + +{/if} +{if $pl_extra_header} +{$pl_extra_header|smarty:nodefaults} +{/if} +{$pl_title} + +{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} -- 2.1.4