phpDocumentor template
[ class tree: template ] [ index: template ] [ all elements ]

Source for file head.php

Documentation is available at head.php

  1. <?
  2. /**
  3. * This file is the global head file
  4. * The page is build with the myPHP TagLib
  5. *
  6. * @package template
  7. * @filesource
  8. * @see INC_PATH.PAGE_HEAD_FILE_NAME
  9. * @copyright (c) http://Finn-Rasmussen.com
  10. * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
  11. * @author http://Finn-Rasmussen.com
  12. * @version 1.9
  13. * @since 21-oct-2005
  14. */
  15.  
  16. /**
  17. * The Document Type
  18. */
  19. if (defined('HTML_BASE_PAGE_PATH')) {
  20. DocType::display();
  21. }
  22.  
  23. /**
  24. * The Info, about who did this
  25. */
  26. if (defined('HTML_BASE_PAGE_PATH')) {
  27. Info::display();
  28. }
  29.  
  30. if (defined('HTML_LOG_UTIL_PATH')) {
  31. /**
  32. * The Log system
  33. * @see HTML_LOG_UTIL_PATH.'/Log.php', The Log System
  34. */
  35. Log::user();
  36. }
  37. if (defined('HTML_UTIL_COMPONENT_PATH')) {
  38. /**
  39. * The Referer system, Where did the user come from
  40. * @see HTML_UTIL_COMPONENT_PATH.'/Referer.php', The Referer
  41. */
  42. Referer::log();
  43. }
  44. if (defined('HTML_PROFILER_COMPONENT_PATH')) {
  45. /**
  46. * Initialize the Profiler system
  47. * @see HTML_PROFILER_COMPONENT_PATH.'/Timer.php', The Timer
  48. */
  49. Timer::init(); // Start Profiler
  50. Timer::display('','Start Profiler');
  51. }
  52.  
  53.  
  54. /**
  55. * The Head html File name, if exists
  56. * @see HEAD_HTML_FILE_NAME, The Head Html File Name
  57. */
  58. $head = Html::read(HEAD_HTML_FILE_NAME,LANGUAGE,DOMAIN_NAME);
  59. if ($head!='') {
  60. Html::display($head);
  61. } else {
  62. Html::display('<!-- '.DEFAULT_PAGE_START_FILE_NAME.", Missing local head file name=".HEAD_HTML_FILE_NAME." -->");
  63. if (defined('HTML_BASE_PAGE_PATH')) {
  64. $pageTitle = empty($pageTitle)?'':$pageTitle;
  65. $pageDescription = empty($pageDescription)?'':$pageDescription;
  66. $pageKeyword = empty($pageKeyword)?'':$pageKeyword;
  67. $pageKeywords = empty($pageKeywords)?'':$pageKeywords;
  68. HeadStart::display(LANGUAGE);
  69. Title::display($pageTitle);
  70. Meta::display($pageTitle,$pageDescription,$pageKeyword,$pageKeywords,LANGUAGE);
  71. }
  72. }
  73.  
  74. if (defined('HTML_BASE_PAGE_PATH')) {
  75. Javascript::display();
  76. ShortcutIcon::display();
  77. }
  78.  
  79. /**
  80. * TODO, how to add inline css->add($inlineCSS) ? i.e. $inlineCSS='<style>.xyz{...}</style>'
  81. */
  82. if (defined('HTML_BASE_PAGE_PATH')) {
  83. CssBase::display(); // Always required
  84. }
  85. if (defined('HTML_TABLE_PAGE_PATH')) {
  86. CssTable::display();
  87. }
  88. if (defined('HTML_FORM_PAGE_PATH')) {
  89. CssForm::display();
  90. }
  91. if (defined('HTML_LAYOUT_PAGE_PATH')) {
  92. CssLayout::display();
  93. }
  94. if (defined('HTML_MENU_PAGE_PATH')) {
  95. CssMenu::display();
  96. }
  97. if (defined('HTML_TAB_PAGE_PATH')) {
  98. CssTab::display();
  99. }
  100. if (defined('HTML_COMPONENT_PAGE_PATH')) {
  101. //CssComponent::display();
  102. }
  103. ?>

Documentation generated on Thu, 22 Dec 2005 17:09:06 +0100 by phpDocumentor 1.3.0RC3