includes/template.php
changeset 276 acfdccf7a2bf
parent 272 e0ec986c0af3
child 279 8acd77a6c19d
child 286 b2f985e4cef3
equal deleted inserted replaced
275:956263992d48 276:acfdccf7a2bf
  1793  * A version of the template compiler that does not rely at all on the other parts of Enano. Used during installation and for showing
  1793  * A version of the template compiler that does not rely at all on the other parts of Enano. Used during installation and for showing
  1794  * "critical error" messages. ** REQUIRES ** the Oxygen theme.
  1794  * "critical error" messages. ** REQUIRES ** the Oxygen theme.
  1795  */
  1795  */
  1796 
  1796 
  1797 class template_nodb {
  1797 class template_nodb {
  1798   var $tpl_strings, $tpl_bool, $theme, $style, $no_headers, $additional_headers, $sidebar_extra, $sidebar_widgets, $toolbar_menu, $theme_list;
  1798   var $fading_button, $tpl_strings, $tpl_bool, $theme, $style, $no_headers, $additional_headers, $sidebar_extra, $sidebar_widgets, $toolbar_menu, $theme_list;
  1799   function __construct() {
  1799   function __construct() {
  1800     
  1800     
  1801     $this->tpl_bool    = Array();
  1801     $this->tpl_bool    = Array();
  1802     $this->tpl_strings = Array();
  1802     $this->tpl_strings = Array();
  1803     $this->sidebar_extra = '';
  1803     $this->sidebar_extra = '';
  1804     $this->sidebar_widgets = '';
  1804     $this->sidebar_widgets = '';
  1805     $this->toolbar_menu = '';
  1805     $this->toolbar_menu = '';
  1806     $this->additional_headers = '<style type="text/css">div.pagenav { border-top: 1px solid #CCC; padding-top: 7px; margin-top: 10px; }</style>';
  1806     $this->additional_headers = '<style type="text/css">div.pagenav { border-top: 1px solid #CCC; padding-top: 7px; margin-top: 10px; }</style>';
       
  1807     
       
  1808     $this->fading_button = '<div style="background-image: url('.scriptPath.'/images/about-powered-enano-hover.png); background-repeat: no-repeat; width: 88px; height: 31px; margin: 0 auto 5px auto;">
       
  1809                               <a href="http://enanocms.org/" onclick="window.open(this.href); return false;"><img style="border-width: 0;" alt=" " src="'.scriptPath.'/images/about-powered-enano.png" onmouseover="domOpacity(this, 100, 0, 500);" onmouseout="domOpacity(this, 0, 100, 500);" /></a>
       
  1810                             </div>';
  1807     
  1811     
  1808     $this->theme_list = Array(Array(
  1812     $this->theme_list = Array(Array(
  1809       'theme_id'=>'oxygen',
  1813       'theme_id'=>'oxygen',
  1810       'theme_name'=>'Oxygen',
  1814       'theme_name'=>'Oxygen',
  1811       'theme_order'=>1,
  1815       'theme_order'=>1,