/**
  * Display the HTML-Header
  */
 public function displayHeader()
 {
     FrontendShared::$IS_SHOWN = true;
     $this->setEncoding();
     $this->initUser();
     $User = $this->User;
     if (!Request::isAjax()) {
         include 'tpl/tpl.FrontendShared.header.php';
     }
     Error::getInstance()->header_sent = true;
 }
Exemplo n.º 2
0
 /**
  * Function to display the HTML-Header
  */
 public function displayHeader()
 {
     self::$IS_SHOWN = true;
     self::$IS_IFRAME = Request::param('mode') == 'iframe';
     $this->setEncoding();
     $this->initTraining();
     $UserId = !is_null($this->ActivityContext) ? SessionAccountHandler::getId() : 0;
     $User = AccountHandler::getDataForId($UserId);
     if (!Request::isAjax()) {
         if (self::$IS_IFRAME) {
             include 'tpl/tpl.FrontendSharedIframe.header.php';
         } else {
             include 'tpl/tpl.FrontendShared.header.php';
         }
     }
     Error::getInstance()->header_sent = true;
 }