ajout du numero de version dans le footer + lien vers le changelog
authorx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 18 Jun 2006 10:47:50 +0000 (10:47 +0000)
committerx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 18 Jun 2006 10:47:50 +0000 (10:47 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@328 839d8a87-29fc-0310-9880-83ba4fa771e5

plugins/function.version.php [new file with mode: 0644]
templates/skin/common.footer.tpl

diff --git a/plugins/function.version.php b/plugins/function.version.php
new file mode 100644 (file)
index 0000000..15d4e6c
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+/***************************************************************************
+ *  Copyright (C) 2003-2006 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                *
+ ***************************************************************************/
+
+function smarty_function_version()
+{
+    global $globals;
+    return $globals->version;
+}
+
+?>
index bd390b5..e698e42 100644 (file)
@@ -22,7 +22,7 @@
 
 
 <div>
-  Copyright © 1999-2006 <a href="http://x-org.polytechnique.org/">Polytechnique.org</a>
+  Plat/al <a href="{rel}/changeLog.php">{version}</a> - Copyright © 1999-2006 <a href="http://x-org.polytechnique.org/">Polytechnique.org</a>
   &nbsp;-&nbsp;
   <a href="{rel}/Docs/ConventionAX">Lien avec l'AX</a>
   &nbsp;-&nbsp;