Пример #1
0
 public static function HeadStart()
 {
     $headStart = '<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">';
     $LoadHeader = new \CmsDev\Security\LoadHeader();
     echo $headStart . $LoadHeader->loadAdmin();
 }
Пример #2
0
 public function RenderHeader($loadThemeJSCSS = false)
 {
     if ($this->instanciaCount === 0) {
         $loadEveryTime = '';
         $loadAdmin = '';
         if ($loadThemeJSCSS == true) {
             $Administrator = new \CmsDev\Security\LoadHeader();
             $loadAdmin = $Administrator->loadAdmin();
             $loadEveryTime = $Administrator->loadEveryTime();
         }
         $this->renderFirst = $loadEveryTime . $loadAdmin . $this->renderFirst;
         return self::clean(str_replace('{htmlLanguage}', $this->htmlLanguage, $this->before) . $this->addcharset . $this->addtitle . $this->addMeta . $this->addbase . $this->addIcon . $this->renderFirst . $this->addCss . $this->render . $this->after);
         $this->instanciaCount = 1;
     }
 }