~quam-plures-core/quam-plures/multiple_user_adsense

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/**
 * "html header" sub-template

Need help doing something with this file?
http://docs.quamplures.net/li_templates.html - tutorials and autodocs

 * This is meant to be included via a .main.php (or other .inc.php) file
 *
 * Quam Plures - {@link http://quamplures.net/}
 * Released under GNU GPL License - {@link http://quamplures.net/license.html}
 * @copyright (c) 2009 - 2011 by the Quam Plures developers - {@link http://quamplures.net/}
 * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}
 * @package templates
 * @subpackage generics
 */
if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

global $rsc_url;
global $srvc_url;

add_js_for_toolbar(); // registers javascripts for the navbar
if( $disp == '404' )
{
	header('HTTP/1.0 404 Not Found');
}
header_content_type(); // sets charset
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang(); ?>" lang="<?php locale_lang(); ?>">
<head>
<?php
template_content_meta(); // Content-Type meta tag
template_base_tag(); // for css and img includes
// spark the plugin manager
$Plugins->trigger_event( 'TemplateBeginHtmlHead' );
?>
<title><?php // title for the current request
request_title( array(
	'auto_pilot' => 'seo_title'
) ); ?></title>
<?php
template_description_tag(); // description meta tag
template_keywords_tag(); // keywords meta tag
robots_tag(); // robots meta tag
if( $Blog->get_setting( 'feed_content' ) != 'none' )
{
	template_feed_tags();
}
?>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php echo $srvc_url; ?>rsd.php?blog=<?php echo $Blog->ID; ?>" />
<meta name="viewport" content="width = 750" />
<link rel="stylesheet" type="text/css" href="<?php echo $rsc_url; ?>css/basic.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo $rsc_url; ?>css/blog_base.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo $rsc_url; ?>css/item_base.css" media="screen" />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="print.css" media="print" />
<?php
include_headlines(); // output collected <head> lines
$Blog->disp( 'blog_css', 'raw'); // blog-specific css tweaks, if allowed
$Blog->disp( 'user_css', 'raw'); // user-specific css tweaks, if allowed
?>
</head>

<body>
<?php
// spark the plugin manager
$Plugins->trigger_event( 'TemplateBeginHtmlBody' );

// --- --- --- --- --- --- --- --- --- --- ---
// --- TOOLBAR INCLUDED HERE ---
template_include( '_toolbar.inc.php' );

if( is_logged_in() )
{
	echo "\n".'<div id="template_wrapper" class="template_wrapper_loggedin">'."\n";
}
else
{
	echo "\n".'<div id="template_wrapper" class="template_wrapper_anonymous">'."\n";
}
?>