-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.tpl.php
164 lines (103 loc) · 3.84 KB
/
page.tpl.php
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!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" lang="<?php print $language->language; ?>" xml:lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>">
<head>
<title><?php print $head_title ?></title>
<meta http-equiv="Content-Style-Type" content="text/css" />
<?php /* Setting the default style sheet language for validation */ ?>
<?php print $head ?>
<?php print $styles ?>
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="<?php print base_path(). path_to_theme(); ?>/iestyles/ie6.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="<?php print base_path(). path_to_theme(); ?>/iestyles/ie7.css" />
<![endif]-->
<?php print $scripts ?>
</head>
<body>
<div id="utilities">
<?php if (isset($primary_links)) : ?>
<?php print '<div id="plinks">'; ?>
<?php
if(theme_get_setting('menutype')== '0'){
print theme('links', $primary_links, array('class' => 'links primary-links'));
}
else {
print phptemplate_get_primary_links();
}
?>
<?php print '</div>'; ?>
<?php endif; ?>
</div>
<div id="page">
<div id="header">
<?php if ($site_name) : ?>
<?php if ($is_front) : /* if we are on the front page use <h1> for site title */ ?>
<h1 class="sitetitle">
<a href="<?php print $base_path ?>" title="<?php print t('Home') ?>">
<?php print $site_name ?>
</a>
</h1>
<?php endif; ?>
<?php if (!$is_front) : /* otherwise use <p> and let node title use <h1> for SEO */ ?>
<p class="sitetitle">
<a href="<?php print $base_path ?>" title="<?php print t('Home') ?>">
<?php print $site_name ?>
</a>
</p>
<?php endif; ?>
<?php endif; ?>
<?php if ($site_slogan){?>
<p class="slogan"><?php print $site_slogan ?></p>
<?php } ?>
</div>
<?php if (($secondary_links)) : ?>
<?php print '<div id="submenu">' ?>
<?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
<?php print '</div><div class="stopfloat"></div>' ?>
<?php endif; ?>
<div class="wrapper"><!--wrapper:defines whole content margins-->
<div id="primary" class=<?php print '"'.marinelli_width( $left, $right).'">' ?>
<div class="singlepage">
<?php print $breadcrumb; ?>
<?php if ($mission): print '<div id="sitemission"><p>'. $mission .'</p></div>'; endif; ?>
<?php
if ($title):
if ($is_front){/* if we are on the front page use <h2> for title */
print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>';
}
else {print '<h1'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h1>'; /* otherwise use <h1> for node title */
}
endif; ?>
<?php if ($tabs): print '<div class="tabs">'.$tabs.'</div>'; endif; ?>
<?php if ($help) { ?><div class="help"><?php print $help ?></div><?php } ?>
<?php if ($messages) { ?><div class="messages"><?php print $messages ?></div><?php } ?>
<div class="drdot">
<hr />
</div>
<?php print $content ?>
</div>
</div>
<!-- left -->
<?php if ($left) { ?>
<div class="lsidebar">
<?php print $left ?>
</div><!-- end left -->
<?php } ?>
<!-- right -->
<?php if ($right) { ?>
<div class="rsidebar">
<?php print $right ?>
</div><!-- end right -->
<?php } ?>
<div class="clear"></div>
</div>
</div>
<!-- Close Page -->
<div id="footer">
<?php print $footer ?>
<?php print $footer_message ?>
</div>
<?php print $closure ?>
</body>
</html>