/b2evolution/firebug/_html_header.inc.php

http://laibcomsthemes.googlecode.com/ · PHP · 92 lines · 70 code · 6 blank · 16 comment · 7 complexity · f54f224cc21636a1f431dc93f9469e59 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 firebug
  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. <head>
  34. <?php skin_content_meta(); /* Charset for static pages */ ?>
  35. <?php skin_description_tag(); ?>
  36. <?php skin_keywords_tag(); ?>
  37. <title><?php
  38. // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
  39. request_title( array(
  40. 'auto_pilot' => 'seo_title',
  41. ) );
  42. // ------------------------------ END OF REQUEST TITLE -----------------------------
  43. ?></title>
  44. <!--[if gte IE 8]>
  45. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  46. <![endif]-->
  47. <?php skin_base_tag(); /* Base URL for this skin. You need this to fix relative links! */ ?>
  48. <?php $Plugins->trigger_event( 'SkinBeginHtmlHead' ); ?>
  49. <?php robots_tag(); ?>
  50. <meta name="generator" content="b2evolution <?php app_version(); ?>" /> <!-- Please leave this for stats -->
  51. <link rel="stylesheet" href="rsc/css/style.css" type="text/css" />
  52. <?php include_headlines() /* Add javascript and css files included by plugins and skin */ ?>
  53. <?php
  54. $Blog->disp( 'blog_css', 'raw');
  55. $Blog->disp( 'user_css', 'raw');
  56. ?>
  57. <?php
  58. if( $Blog->get_setting( 'feed_content' ) != 'none' )
  59. { // auto-discovery urls
  60. ?>
  61. <link rel="feed alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" />
  62. <link rel="feed alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" />
  63. <?php
  64. }
  65. ?>
  66. <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php echo $xmlsrv_url; ?>rsd.php?blog=<?php echo $Blog->ID; ?>" />
  67. <link rel="icon" type="image/vnd.microsoft.icon" href="/favicon.ico" sizes="16x16 32x32 48x48" />
  68. <meta name="viewport" content="width = 750" />
  69. </head>
  70. <body>
  71. <?php
  72. // ---------------------------- TOOLBAR INCLUDED HERE ----------------------------
  73. require $skins_path.'_toolbar.inc.php';
  74. // ------------------------------- END OF TOOLBAR --------------------------------
  75. echo "\n";
  76. if( is_logged_in() )
  77. {
  78. echo '<div id="skin_wrapper" class="skin_wrapper_loggedin">';
  79. }
  80. else
  81. {
  82. echo '<div id="skin_wrapper" class="skin_wrapper_anonymous">';
  83. }
  84. echo "\n";
  85. ?>
  86. <!-- Start of skin_wrapper -->