PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  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 nonzero
 13 */
 14if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
 15
 16global $xmlsrv_url;
 17
 18add_js_for_toolbar();	// Registers all the javascripts needed by the toolbar menu
 19
 20header_content_type();	// Sets charset!
 21?>
 22<?php
 23if( $Skin->get_setting('html5_support') == '1' )
 24{
 25	echo '<!DOCTYPE html>
 26<html lang="'; locale_lang(); echo '">
 27';
 28}
 29else
 30{
 31	echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 32<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'; locale_lang(); echo '" lang="'; locale_lang(); echo '">
 33';
 34}
 35?>
 36<!--
 37
 38	Nonzero1.0 by nodethirtythree design
 39	http://www.nodethirtythree.com
 40	missing in a maze
 41
 42-->
 43<head>
 44	<?php skin_content_meta(); /* Charset for static pages */ ?>
 45	<?php skin_description_tag(); ?>
 46	<?php skin_keywords_tag(); ?>
 47	<title><?php
 48		// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
 49		request_title( array(
 50			'auto_pilot'      => 'seo_title',
 51		) );
 52		// ------------------------------ END OF REQUEST TITLE -----------------------------
 53	?></title>
 54	<!--[if gte IE 8]>
 55		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
 56	<![endif]-->
 57	<?php skin_base_tag(); /* Base URL for this skin. You need this to fix relative links! */ ?>
 58	<?php $Plugins->trigger_event( 'SkinBeginHtmlHead' ); ?>
 59	<?php robots_tag(); ?>
 60	<meta name="generator" content="b2evolution <?php app_version(); ?>" /> <!-- Please leave this for stats -->
 61	<link rel="stylesheet" href="rsc/css/style.css" type="text/css" />
 62		<?php
 63		/* --------------------------------------------------------------------------------- */
 64		/*	I am leaving this here for browsers that can read rel="alternate stylesheet" */
 65		/*	These are color styles ONLY                                                  */
 66		/* --------------------------------------------------------------------------------- */
 67		?>
 68		<link rel="alternate stylesheet" href="rsc/css/red.css" type="text/css" title="red" />
 69		<link rel="alternate stylesheet" href="rsc/css/blue.css" type="text/css" title="blue" />
 70		<link rel="alternate stylesheet" href="rsc/css/green.css" type="text/css" title="green" />
 71		<link rel="alternate stylesheet" href="rsc/css/brown.css" type="text/css" title="brown" />
 72		<link rel="alternate stylesheet" href="rsc/css/magenta.css" type="text/css" title="magenta" />
 73	<?php include_headlines() /* Add javascript and css files included by plugins and skin */ ?>
 74	<?php
 75		$Blog->disp( 'blog_css', 'raw');
 76		$Blog->disp( 'user_css', 'raw');
 77	?>
 78	<?php
 79		if( $Blog->get_setting( 'feed_content' ) != 'none' )
 80		{ // auto-discovery urls
 81	?>
 82	<link rel="feed alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" />
 83	<link rel="feed alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" />
 84	<?php
 85		}
 86	?>
 87 	<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php echo $xmlsrv_url; ?>rsd.php?blog=<?php echo $Blog->ID; ?>" />
 88	<link rel="icon" type="image/vnd.microsoft.icon" href="/favicon.ico" sizes="16x16 32x32 48x48" />
 89	<meta name="viewport" content="width = 750" />
 90</head>
 91
 92<body>
 93
 94<?php
 95// ---------------------------- TOOLBAR INCLUDED HERE ----------------------------
 96require $skins_path.'_toolbar.inc.php';
 97// ------------------------------- END OF TOOLBAR --------------------------------
 98
 99echo "\n";
100if( is_logged_in() )
101{
102	echo '<div id="skin_wrapper" class="skin_wrapper_loggedin">';
103}
104else
105{
106	echo '<div id="skin_wrapper" class="skin_wrapper_anonymous">';
107}
108echo "\n";
109?>
110<!-- Start of skin_wrapper -->