Ejemplo n.º 1
0
 protected function getHeader()
 {
     $header = new Header();
     $header->title = $this->title;
     $header->meta("Content-Type", "text/html; charset=utf-8", true);
     $header->meta("description", $this->meta_desc, false);
     $header->meta("keywords", $this->meta_key, false);
     $header->meta("viewport", "width=device-width", false);
     $header->favicon = "/favicon.ico";
     if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8.0')) {
         $header->css = array("/styles/main.css", "/styles/prettify.css", "/styles/unite-gallery.css", "/styles/ie.css");
     } elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'Safari/525.29')) {
         $header->css = array("/styles/main.css", "/styles/prettify.css", "/styles/unite-gallery.css", "/styles/safari3.css");
     } elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7.0')) {
         $header->css = array("/styles/reject.css");
     } elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0')) {
         $header->css = array("/styles/reject.css");
     } elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 5.5')) {
         $header->css = array("/styles/reject.css");
     } else {
         $header->css = array("/styles/main.css", "/styles/prettify.css", "/styles/unite-gallery.css");
     }
     if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7.0')) {
         $header->js = array("/js/reject.min.js");
     } elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0')) {
         $header->js = array("/js/reject.min.js");
     } elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 5.5')) {
         $header->js = array("/js/reject.min.js");
     } else {
         $header->js = array("/js/jquery-11.0.min.js", "/js/functions.js", "/js/validator.js", "/js/prettify.js", "/js/unitegallery.min.js", "/js/ug-theme-compact.js");
     }
     return $header;
 }
 protected function getHeader()
 {
     $header = new Header();
     $header->title = $this->title;
     $header->meta("Content-Type", "text/html; charset=utf-8", true);
     $header->meta("description", $this->meta_desc, false);
     $header->meta("keywords", $this->meta_key, false);
     $header->meta("viewport", "width=device-width", false);
     $header->favicon = "/favicon.ico";
     $header->css = array("/styles/main.css", "/styles/prettify.css");
     $header->js = array("/js/jquery-1.10.2.min.js", "/js/functions.js", "/js/validator.js", "/js/prettify.js");
     return $header;
 }