Default skin can be specified in the configuration file.
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 5 Aug 2007 13:04:40 +0000 (13:04 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 5 Aug 2007 13:04:40 +0000 (13:04 +0000)
skin = external/default skin
register_skin = skin for registration (ligth version of the
default skin)

 configs/platal.ini         |    3 +++
 include/globals.inc.php.in |    4 ++++
 include/xorg.inc.php       |    4 ++--
 3 files changed, 9 insertions(+), 2 deletions(-)

git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1898 839d8a87-29fc-0310-9880-83ba4fa771e5

configs/platal.ini
include/globals.inc.php.in
include/xorg.inc.php

index d6b1e63..d8237f0 100644 (file)
@@ -3,6 +3,9 @@ locale   = "fr_FR.UTF-8"
 timezone = "Europe/Paris"
 secure_domain = ""
 
+skin = "default"
+register_skin = "register"
+
 [Banana]
 server = "localhost"
 port   = 119
index 1c2661b..6ad5a3c 100644 (file)
@@ -34,6 +34,10 @@ class PlatalGlobals
     public $dbpwd              = 'x4dat';
     public $dbcharset          = 'utf8';
 
+    /** default skin */
+    public $skin;
+    public $register_skin;
+
     /** paths */
     public $baseurl;
     public $spoolroot;
index 62bfbe8..f37d2a7 100644 (file)
@@ -39,9 +39,9 @@ class XorgPage extends PlatalPage
         global $globals, $platal;
         $this->assign('globals', $globals);
         if (isset($platal) && $platal->path == 'register') {
-            $skin = 'register.tpl';
+            $skin = $globals->register_skin . ".tpl";
         } else {
-            $skin = S::v('skin', 'default.tpl');
+            $skin = S::v('skin', $globals->skin . ".tpl");
         }
         $this->_run('skin/' . $skin);
     }