Can configure spool root
[banana.git] / banana / page.inc.php
index d4f13e9..41576f6 100644 (file)
@@ -18,6 +18,8 @@ class BananaPage extends Smarty
     private $killed  = array();
     private $actions = array();
 
+    public $css = '';
+
     public function __construct()
     {
         $this->Smarty();
@@ -88,6 +90,14 @@ class BananaPage extends Smarty
         $this->killed[] = $page;
     }
 
+    /** Add Inline CSS to put in the page headers
+     * @param css CSS code
+     */
+    public function addCssInline($css)
+    {
+        $this->css .= $css;
+    }
+
     /** Preparte the page generation
      * @return template to use
      */
@@ -139,6 +149,9 @@ class BananaPage extends Smarty
         $this->assign('profile',   Banana::$profile);
         $this->assign('spool',     Banana::$spool);
         $this->assign('protocole', Banana::$protocole);
+        $this->assign('showboxlist', Banana::$spool_boxlist);
+        $this->assign('showthread',  Banana::$msgshow_withthread);
+        $this->assign('withtabs'   , Banana::$withtabs);
 
         $this->register_function('url',     array($this, 'makeUrl'));
         $this->register_function('link',    array($this, 'makeLink'));