includes/template.php
changeset 396 3289e4dcb4b8
parent 391 85f91037cd4f
child 411 d1a95497b68f
equal deleted inserted replaced
395:fa4c5ecb7c9a 396:3289e4dcb4b8
   839     }
   839     }
   840   }
   840   }
   841   
   841   
   842   function footer($simple = false)
   842   function footer($simple = false)
   843   {
   843   {
   844     echo $this->getFooter();
   844     echo $this->getFooter($simple);
   845     ob_end_flush();
   845     ob_end_flush();
   846   }
   846   }
   847   
   847   
   848   function getHeader()
   848   function getHeader()
   849   {
   849   {
   850     $headers_sent = true;
   850     $headers_sent = true;
   851     if(!defined('ENANO_HEADERS_SENT'))
   851     if(!defined('ENANO_HEADERS_SENT'))
   852       define('ENANO_HEADERS_SENT', '');
   852       define('ENANO_HEADERS_SENT', '');
   853     if(!$this->no_headers) return $this->process_template('header.tpl');
   853     if(!$this->no_headers) return $this->process_template('header.tpl');
   854   }
   854   }
   855   function getFooter()
   855   function getFooter($simple = false)
   856   {
   856   {
   857     global $db, $session, $paths, $template, $plugins; // Common objects
   857     global $db, $session, $paths, $template, $plugins; // Common objects
   858     global $lang;
   858     global $lang;
   859     if ( !$this->no_headers )
   859     if ( !$this->no_headers )
   860     {
   860     {