- <?
- /**
- * This file is the global head file
- * The page is build with the myPHP TagLib
- *
- * @package template
- * @filesource
- * @see INC_PATH.PAGE_HEAD_FILE_NAME
- * @copyright (c) http://Finn-Rasmussen.com
- * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
- * @author http://Finn-Rasmussen.com
- * @version 1.9
- * @since 21-oct-2005
- */
-
- /**
- * The Document Type
- */
- if (defined('HTML_BASE_PAGE_PATH')) {
- DocType::display();
- }
-
- /**
- * The Info, about who did this
- */
- if (defined('HTML_BASE_PAGE_PATH')) {
- Info::display();
- }
-
- if (defined('HTML_LOG_UTIL_PATH')) {
- /**
- * The Log system
- * @see HTML_LOG_UTIL_PATH.'/Log.php', The Log System
- */
- Log::user();
- }
- if (defined('HTML_UTIL_COMPONENT_PATH')) {
- /**
- * The Referer system, Where did the user come from
- * @see HTML_UTIL_COMPONENT_PATH.'/Referer.php', The Referer
- */
- Referer::log();
- }
- if (defined('HTML_PROFILER_COMPONENT_PATH')) {
- /**
- * Initialize the Profiler system
- * @see HTML_PROFILER_COMPONENT_PATH.'/Timer.php', The Timer
- */
- Timer::init(); // Start Profiler
- Timer::display('','Start Profiler');
- }
-
-
- /**
- * The Head html File name, if exists
- * @see HEAD_HTML_FILE_NAME, The Head Html File Name
- */
- $head = Html::read(HEAD_HTML_FILE_NAME,LANGUAGE,DOMAIN_NAME);
- if ($head!='') {
- Html::display($head);
- } else {
- Html::display('<!-- '.DEFAULT_PAGE_START_FILE_NAME.", Missing local head file name=".HEAD_HTML_FILE_NAME." -->");
- if (defined('HTML_BASE_PAGE_PATH')) {
- $pageTitle = empty($pageTitle)?'':$pageTitle;
- $pageDescription = empty($pageDescription)?'':$pageDescription;
- $pageKeyword = empty($pageKeyword)?'':$pageKeyword;
- $pageKeywords = empty($pageKeywords)?'':$pageKeywords;
- HeadStart::display(LANGUAGE);
- Title::display($pageTitle);
- Meta::display($pageTitle,$pageDescription,$pageKeyword,$pageKeywords,LANGUAGE);
- }
- }
-
- if (defined('HTML_BASE_PAGE_PATH')) {
- Javascript::display();
- ShortcutIcon::display();
- }
-
- /**
- * TODO, how to add inline css->add($inlineCSS) ? i.e. $inlineCSS='<style>.xyz{...}</style>'
- */
- if (defined('HTML_BASE_PAGE_PATH')) {
- CssBase::display(); // Always required
- }
- if (defined('HTML_TABLE_PAGE_PATH')) {
- CssTable::display();
- }
- if (defined('HTML_FORM_PAGE_PATH')) {
- CssForm::display();
- }
- if (defined('HTML_LAYOUT_PAGE_PATH')) {
- CssLayout::display();
- }
- if (defined('HTML_MENU_PAGE_PATH')) {
- CssMenu::display();
- }
- if (defined('HTML_TAB_PAGE_PATH')) {
- CssTab::display();
- }
- if (defined('HTML_COMPONENT_PAGE_PATH')) {
- //CssComponent::display();
- }
- ?>