PageRenderTime 274ms CodeModel.GetById 161ms app.highlight 4ms RepoModel.GetById 107ms app.codeStats 0ms

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