/**
  * 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;
 }
Exemple #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;
 }
<?php

/**
 * File for displaying a training.
 * Call:   call.SharedTraining.php?url=
 */
require '../inc/class.Frontend.php';
require '../inc/class.FrontendShared.php';
$Frontend = new FrontendShared();
if (FrontendShared::$IS_IFRAME) {
    echo '<div id="statistics-inner" class="panel" style="width:97%;margin:0 auto;">';
} elseif (!Request::isAjax()) {
    echo '<div id="statistics-inner" class="panel" style="width:960px;margin:5px auto;">';
} else {
    echo '<div>';
}
$Frontend->displaySharedView();
echo '</div>';