Exemplo n.º 1
0
 /**
  * addStyleSheets 
  * 
  * @param mixed $css 
  * @access public
  * @return void
  */
 function addStyleSheets($css)
 {
     $stylesheet_array = array($css);
     if (strpos($css, ",") !== FALSE) {
         $stylesheet_array = preg_split("/\\s?,\\s?/", $css);
     }
     foreach ($stylesheet_array as $sheet_url) {
         $this->_header->addStyleSheet($sheet_url);
     }
 }
Exemplo n.º 2
0
 function &AMP_getHeader()
 {
     if (defined('AMP_USERMODE_ADMIN') && AMP_USERMODE_ADMIN) {
         require_once 'AMP/System/Header.inc.php';
         return AMPSystem_Header::instance();
     }
     require_once 'AMP/Content/Header.inc.php';
     require_once 'AMP/Content/Page.inc.php';
     return AMPContent_Header::instance(AMPContent_Page::instance());
 }