includes/template.php
changeset 674 f514dc675f32
parent 669 9243d01c0716
child 677 2a263b598a2b
equal deleted inserted replaced
673:99c617146a34 674:f514dc675f32
   192   {
   192   {
   193     global $db, $session, $paths, $template, $plugins; // Common objects
   193     global $db, $session, $paths, $template, $plugins; // Common objects
   194     global $lang;
   194     global $lang;
   195     
   195     
   196     // generate the fading button - needs to be done after sessions are started
   196     // generate the fading button - needs to be done after sessions are started
   197     $admintitle = ( $session->user_level >= USER_LEVEL_ADMIN ) ? ' title="' . $lang->get('sidebar_btn_enanopowered_admin_tip') . '"' : '';
   197     $admintitle = ( $session->user_level >= USER_LEVEL_ADMIN && is_object(@$lang) ) ? ' title="' . $lang->get('sidebar_btn_enanopowered_admin_tip') . '"' : '';
   198     $this->fading_button = '<div style="background-image: url('.cdnPath.'/images/about-powered-enano-hover.png); background-repeat: no-repeat; width: 88px; height: 31px; margin: 0 auto 5px auto;">
   198     $this->fading_button = '<div style="background-image: url('.cdnPath.'/images/about-powered-enano-hover.png); background-repeat: no-repeat; width: 88px; height: 31px; margin: 0 auto 5px auto;">
   199                               <a style="background-image: none; padding-right: 0;" href="http://enanocms.org/" onclick="window.open(this.href); return false;"' . $admintitle . '><img style="border-width: 0;" alt=" " src="'.cdnPath.'/images/about-powered-enano.png" onmouseover="domOpacity(this, 100, 0, 500);" onmouseout="domOpacity(this, 0, 100, 500);" /></a>
   199                               <a style="background-image: none; padding-right: 0;" href="http://enanocms.org/" onclick="window.open(this.href); return false;"' . $admintitle . '><img style="border-width: 0;" alt=" " src="'.cdnPath.'/images/about-powered-enano.png" onmouseover="domOpacity(this, 100, 0, 500);" onmouseout="domOpacity(this, 0, 100, 500);" /></a>
   200                             </div>';
   200                             </div>';
   201     
   201     
   202     // For each theme, check ACLs and delete from RAM if not authorized
   202     // For each theme, check ACLs and delete from RAM if not authorized