b2evolution PHP Cross Reference Blogging Systems

Source: /skins/_html_header.inc.php - 97 lines - 3428 bytes - Text - Print

Description: This is the HTML header include template.

   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://b2evolution.net/man/skin-structure}
   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   */
  13  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  14  
  15  global $xmlsrv_url, $app_version;
  16  
  17  $params = array_merge( array(
  18      'auto_pilot'    => 'seo_title',
  19      'generator_tag' => '<meta name="generator" content="b2evolution '.$app_version.'" /> <!-- Please leave this for stats -->'."\n"
  20  ), $params );
  21  
  22  require_css( 'style.css', 'relative' );
  23  
  24  add_js_for_toolbar( 'blog' );        // Registers all the javascripts needed by the toolbar menu
  25  init_bubbletip_js( 'blog' ); // Add jQuery bubbletip plugin
  26  require_js( 'ajax.js', 'blog' );    // Functions to work with AJAX response data
  27  // CSS for IE9
  28  add_headline( '<!--[if IE 9 ]>' );
  29  require_css( 'ie9.css', 'rsc_url' );
  30  add_headline( '<![endif]-->' );
  31  ?>
  32  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  33  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>">
  34  <head>
  35      <?php skin_content_meta(); /* Charset for static pages */ ?>
  36      <?php skin_base_tag(); /* Base URL for this skin. You need this to fix relative links! */ ?>
  37      <?php $Plugins->trigger_event( 'SkinBeginHtmlHead' ); ?>
  38      <title><?php
  39          // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
  40          request_title( $params );
  41          // ------------------------------ END OF REQUEST TITLE -----------------------------
  42      ?></title>
  43      <?php skin_description_tag(); ?>
  44      <?php skin_keywords_tag(); ?>
  45      <?php robots_tag(); ?>
  46      <?php
  47      global $htsrv_url;
  48      $js_blog_id = "";
  49      if( ! empty( $Blog ) )
  50      { // Set global js var "blog_id"
  51          $js_blog_id = "\r\n        var blog_id = '".$Blog->ID."';";
  52      }
  53  
  54      add_js_headline( "// Paths used by JS functions:
  55          var htsrv_url = '".get_samedomain_htsrv_url()."';"
  56          .$js_blog_id );
  57  
  58      // Meta tag with generator info (Please leave this for stats)
  59      echo $params['generator_tag'];
  60  
  61      if( $Blog->get_setting( 'feed_content' ) != 'none' )
  62      { // auto-discovery urls
  63          ?>
  64      <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" />
  65      <link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" />
  66          <?php
  67      }
  68      ?>
  69      <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php echo $Blog->disp( 'rsd_url', 'raw' ) ?>" />
  70      <?php /*<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />*/ ?>
  71      <?php include_headlines() /* Add javascript and css files included by plugins and skin */ ?>
  72      <?php
  73          $Blog->disp( 'blog_css', 'raw');
  74          $Blog->disp( 'user_css', 'raw');
  75          $Blog->disp_setting( 'head_includes', 'raw');
  76      ?>
  77  </head>
  78  
  79  <body>
  80  
  81  <?php
  82  // ---------------------------- TOOLBAR INCLUDED HERE ----------------------------
  83  require $skins_path.'_toolbar.inc.php';
  84  // ------------------------------- END OF TOOLBAR --------------------------------
  85  
  86  echo "\n";
  87  if( show_toolbar() )
  88  {
  89      echo '<div id="skin_wrapper" class="skin_wrapper_loggedin">';
  90  }
  91  else
  92  {
  93      echo '<div id="skin_wrapper" class="skin_wrapper_anonymous">';
  94  }
  95  echo "\n";
  96  ?>
  97  <!-- Start of skin_wrapper -->

title

Description

title

Description

title

Description

title

title

Body