/b2evolution/emerald/_html_header.inc.php

http://laibcomsthemes.googlecode.com/ · PHP · 97 lines · 75 code · 6 blank · 16 comment · 8 complexity · 17e76e036fdad28b2d337837fd8005f4 MD5 · raw file

  1. <?php
  2. /**
  3. * This is the HTML header include template.
  4. *
  5. * For a quick explanation of b2evo 2.0 skins, please start here:
  6. * {@link http://manual.b2evolution.net/Skins_2.0}
  7. *
  8. * This is meant to be included in a page template.
  9. * Note: This is also included in the popup: do not include site navigation!
  10. *
  11. * @package evoskins
  12. * @subpackage emerald
  13. */
  14. if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  15. global $xmlsrv_url;
  16. add_js_for_toolbar(); // Registers all the javascripts needed by the toolbar menu
  17. header_content_type(); // Sets charset!
  18. ?>
  19. <?php
  20. if( $Skin->get_setting('html5_support') == '1' )
  21. {
  22. echo '<!DOCTYPE html>
  23. <html lang="'; locale_lang(); echo '">
  24. ';
  25. }
  26. else
  27. {
  28. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  29. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'; locale_lang(); echo '" lang="'; locale_lang(); echo '">
  30. ';
  31. }
  32. ?>
  33. <!--
  34. Design by Free CSS Templates
  35. http://www.freecsstemplates.org
  36. Released for free under a Creative Commons Attribution 2.5 License
  37. -->
  38. <head>
  39. <?php skin_content_meta(); /* Charset for static pages */ ?>
  40. <?php skin_description_tag(); ?>
  41. <?php skin_keywords_tag(); ?>
  42. <title><?php
  43. // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
  44. request_title( array(
  45. 'auto_pilot' => 'seo_title',
  46. ) );
  47. // ------------------------------ END OF REQUEST TITLE -----------------------------
  48. ?></title>
  49. <!--[if gte IE 8]>
  50. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  51. <![endif]-->
  52. <?php skin_base_tag(); /* Base URL for this skin. You need this to fix relative links! */ ?>
  53. <?php $Plugins->trigger_event( 'SkinBeginHtmlHead' ); ?>
  54. <?php robots_tag(); ?>
  55. <meta name="generator" content="b2evolution <?php app_version(); ?>" /> <!-- Please leave this for stats -->
  56. <link rel="stylesheet" href="rsc/css/style.css" type="text/css" />
  57. <?php include_headlines() /* Add javascript and css files included by plugins and skin */ ?>
  58. <?php
  59. $Blog->disp( 'blog_css', 'raw');
  60. $Blog->disp( 'user_css', 'raw');
  61. ?>
  62. <?php
  63. if( $Blog->get_setting( 'feed_content' ) != 'none' )
  64. { // auto-discovery urls
  65. ?>
  66. <link rel="feed alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" />
  67. <link rel="feed alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" />
  68. <?php
  69. }
  70. ?>
  71. <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php echo $xmlsrv_url; ?>rsd.php?blog=<?php echo $Blog->ID; ?>" />
  72. <link rel="icon" type="image/vnd.microsoft.icon" href="/favicon.ico" sizes="16x16 32x32 48x48" />
  73. <meta name="viewport" content="width = 750" />
  74. </head>
  75. <body>
  76. <?php
  77. // ---------------------------- TOOLBAR INCLUDED HERE ----------------------------
  78. require $skins_path.'_toolbar.inc.php';
  79. // ------------------------------- END OF TOOLBAR --------------------------------
  80. echo "\n";
  81. if( is_logged_in() )
  82. {
  83. echo '<div id="skin_wrapper" class="skin_wrapper_loggedin">';
  84. }
  85. else
  86. {
  87. echo '<div id="skin_wrapper" class="skin_wrapper_anonymous">';
  88. }
  89. echo "\n";
  90. ?>
  91. <!-- Start of skin_wrapper -->