includes/template.php
changeset 170 4c5c2b66a34d
parent 164 199599eca89e
child 174 d74ff822acc9
equal deleted inserted replaced
169:250aeb408ed7 170:4c5c2b66a34d
   781     
   781     
   782     $headers_sent = true;
   782     $headers_sent = true;
   783     dc_here('template: generating and sending the page header');
   783     dc_here('template: generating and sending the page header');
   784     if(!defined('ENANO_HEADERS_SENT'))
   784     if(!defined('ENANO_HEADERS_SENT'))
   785       define('ENANO_HEADERS_SENT', '');
   785       define('ENANO_HEADERS_SENT', '');
   786     if(!$this->no_headers) echo ( $simple ) ? $this->process_template('simple-header.tpl') : $this->process_template('header.tpl');
   786     if ( !$this->no_headers )
       
   787     {
       
   788       $header = ( $simple ) ?
       
   789         $this->process_template('simple-header.tpl') :
       
   790         $this->process_template('header.tpl');
       
   791       echo $header;
       
   792     }
   787     if ( !$simple && $session->user_logged_in && $session->unread_pms > 0 )
   793     if ( !$simple && $session->user_logged_in && $session->unread_pms > 0 )
   788     {
   794     {
   789       echo $this->notify_unread_pms();
   795       echo $this->notify_unread_pms();
   790     }
   796     }
   791     if ( !$simple && $session->sw_timed_out )
   797     if ( !$simple && $session->sw_timed_out )