/b2evolution/nonzero/_html_header.inc.php
http://laibcomsthemes.googlecode.com/ · PHP · 110 lines · 82 code · 8 blank · 20 comment · 7 complexity · e3aa791a5ad9961dc3dbe2334bf12fc5 MD5 · raw file
- <?php
- /**
- * This is the HTML header include template.
- *
- * For a quick explanation of b2evo 2.0 skins, please start here:
- * {@link http://manual.b2evolution.net/Skins_2.0}
- *
- * This is meant to be included in a page template.
- * Note: This is also included in the popup: do not include site navigation!
- *
- * @package evoskins
- * @subpackage nonzero
- */
- if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
- global $xmlsrv_url;
- add_js_for_toolbar(); // Registers all the javascripts needed by the toolbar menu
- header_content_type(); // Sets charset!
- ?>
- <?php
- if( $Skin->get_setting('html5_support') == '1' )
- {
- echo '<!DOCTYPE html>
- <html lang="'; locale_lang(); echo '">
- ';
- }
- else
- {
- echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'; locale_lang(); echo '" lang="'; locale_lang(); echo '">
- ';
- }
- ?>
- <!--
- Nonzero1.0 by nodethirtythree design
- http://www.nodethirtythree.com
- missing in a maze
- -->
- <head>
- <?php skin_content_meta(); /* Charset for static pages */ ?>
- <?php skin_description_tag(); ?>
- <?php skin_keywords_tag(); ?>
- <title><?php
- // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
- request_title( array(
- 'auto_pilot' => 'seo_title',
- ) );
- // ------------------------------ END OF REQUEST TITLE -----------------------------
- ?></title>
- <!--[if gte IE 8]>
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <![endif]-->
- <?php skin_base_tag(); /* Base URL for this skin. You need this to fix relative links! */ ?>
- <?php $Plugins->trigger_event( 'SkinBeginHtmlHead' ); ?>
- <?php robots_tag(); ?>
- <meta name="generator" content="b2evolution <?php app_version(); ?>" /> <!-- Please leave this for stats -->
- <link rel="stylesheet" href="rsc/css/style.css" type="text/css" />
- <?php
- /* --------------------------------------------------------------------------------- */
- /* I am leaving this here for browsers that can read rel="alternate stylesheet" */
- /* These are color styles ONLY */
- /* --------------------------------------------------------------------------------- */
- ?>
- <link rel="alternate stylesheet" href="rsc/css/red.css" type="text/css" title="red" />
- <link rel="alternate stylesheet" href="rsc/css/blue.css" type="text/css" title="blue" />
- <link rel="alternate stylesheet" href="rsc/css/green.css" type="text/css" title="green" />
- <link rel="alternate stylesheet" href="rsc/css/brown.css" type="text/css" title="brown" />
- <link rel="alternate stylesheet" href="rsc/css/magenta.css" type="text/css" title="magenta" />
- <?php include_headlines() /* Add javascript and css files included by plugins and skin */ ?>
- <?php
- $Blog->disp( 'blog_css', 'raw');
- $Blog->disp( 'user_css', 'raw');
- ?>
- <?php
- if( $Blog->get_setting( 'feed_content' ) != 'none' )
- { // auto-discovery urls
- ?>
- <link rel="feed alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" />
- <link rel="feed alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" />
- <?php
- }
- ?>
- <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php echo $xmlsrv_url; ?>rsd.php?blog=<?php echo $Blog->ID; ?>" />
- <link rel="icon" type="image/vnd.microsoft.icon" href="/favicon.ico" sizes="16x16 32x32 48x48" />
- <meta name="viewport" content="width = 750" />
- </head>
- <body>
- <?php
- // ---------------------------- TOOLBAR INCLUDED HERE ----------------------------
- require $skins_path.'_toolbar.inc.php';
- // ------------------------------- END OF TOOLBAR --------------------------------
- echo "\n";
- if( is_logged_in() )
- {
- echo '<div id="skin_wrapper" class="skin_wrapper_loggedin">';
- }
- else
- {
- echo '<div id="skin_wrapper" class="skin_wrapper_anonymous">';
- }
- echo "\n";
- ?>
- <!-- Start of skin_wrapper -->