includes/template.php
changeset 54 84b56303cab5
parent 53 3dea509d88ae
child 57 b354deeaa4c4
equal deleted inserted replaced
53:3dea509d88ae 54:84b56303cab5
    26   /**
    26   /**
    27    * One of the absolute best parts of Enano :-P
    27    * One of the absolute best parts of Enano :-P
    28    * @var string
    28    * @var string
    29    */
    29    */
    30   
    30   
    31   var $fading_button = '<a href="http://enanocms.org" onclick="window.open(this.href); return false;" style="text-align: center; margin: 0 auto; display: table; background-image: none;">
    31   var $fading_button = '';
    32                           <img alt="Powered by Enano CMS" style="border-width: 0; position: absolute;" 
       
    33                                src="/images/about-powered-enano.png" id="enanoFader" onmouseover="domOpacity(this, 100, 0, 500);" 
       
    34                                onmouseout="opacity(this.id, 0, 100, 500);" />
       
    35                           <img alt="Powered by Enano CMS" style="border-width: 0px;" src="/images/about-powered-enano-hover.png" />
       
    36                         </a>';
       
    37   
    32   
    38   function __construct()
    33   function __construct()
    39   {
    34   {
    40     global $db, $session, $paths, $template, $plugins; // Common objects
    35     global $db, $session, $paths, $template, $plugins; // Common objects
    41     dc_here('template: initializing all class variables');
    36     dc_here('template: initializing all class variables');
    44     $this->sidebar_extra = '';
    39     $this->sidebar_extra = '';
    45     $this->toolbar_menu = '';
    40     $this->toolbar_menu = '';
    46     $this->additional_headers = '';
    41     $this->additional_headers = '';
    47     $this->plugin_blocks = Array();
    42     $this->plugin_blocks = Array();
    48     $this->theme_loaded = false;
    43     $this->theme_loaded = false;
       
    44     
       
    45     $fading_button = '<a href="http://enanocms.org" onclick="window.open(this.href); return false;" style="text-align: center; margin: 0 auto; display: table; background-image: none;">
       
    46                             <img alt="Powered by Enano CMS" style="border-width: 0; position: absolute;" 
       
    47                                  src="' . scriptPath . '/images/about-powered-enano.png" id="enanoFader" onmouseover="domOpacity(this, 100, 0, 500);" 
       
    48                                  onmouseout="opacity(this.id, 0, 100, 500);" />
       
    49                             <img alt="Powered by Enano CMS" style="border-width: 0px;" src="' . scriptPath . '/images/about-powered-enano-hover.png" />
       
    50                           </a>';
    49     
    51     
    50     $this->theme_list = Array();
    52     $this->theme_list = Array();
    51     $this->named_theme_list = Array();
    53     $this->named_theme_list = Array();
    52     $e = $db->sql_query('SELECT theme_id,theme_name,enabled,default_style FROM '.table_prefix.'themes WHERE enabled=1 ORDER BY theme_order;');
    54     $e = $db->sql_query('SELECT theme_id,theme_name,enabled,default_style FROM '.table_prefix.'themes WHERE enabled=1 ORDER BY theme_order;');
    53     if(!$e) $db->_die('The list of themes could not be selected.');
    55     if(!$e) $db->_die('The list of themes could not be selected.');