page.tpl.php
Same filename in this branch
1 theme call to page.tpl.php
- system_element_info in modules/
system/ system.module - Implements hook_element_info().
File
-
themes/
garland/ page.tpl.php
View source
<?php
print render($page['header']);
?>
<div id="wrapper">
<div id="container" class="clearfix">
<div id="header">
<div id="logo-floater">
<?php
if ($logo || $site_title) {
?>
<?php
if ($title) {
?>
<div id="branding"><strong><a href="<?php
print $front_page;
?>">
<?php
if ($logo) {
?>
<img src="<?php
print $logo;
?>" alt="<?php
print $site_name_and_slogan;
?>" title="<?php
print $site_name_and_slogan;
?>" id="logo" />
<?php
}
?>
<?php
print $site_html;
?>
</a></strong></div>
<?php
}
else {
/* Use h1 when the content title is empty */
?>
<h1 id="branding"><a href="<?php
print $front_page;
?>">
<?php
if ($logo) {
?>
<img src="<?php
print $logo;
?>" alt="<?php
print $site_name_and_slogan;
?>" title="<?php
print $site_name_and_slogan;
?>" id="logo" />
<?php
}
?>
<?php
print $site_html;
?>
</a></h1>
<?php
}
?>
<?php
}
?>
</div>
<?php
if ($primary_nav) {
print $primary_nav;
}
?>
<?php
if ($secondary_nav) {
print $secondary_nav;
}
?>
</div> <!-- /#header -->
<?php
if ($page['sidebar_first']) {
?>
<div id="sidebar-first" class="sidebar">
<?php
print render($page['sidebar_first']);
?>
</div>
<?php
}
?>
<div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
<?php
print $breadcrumb;
?>
<?php
if ($page['highlighted']) {
?><div id="highlighted"><?php
print render($page['highlighted']);
?></div><?php
}
?>
<a id="main-content"></a>
<?php
if ($tabs) {
?><div id="tabs-wrapper" class="clearfix"><?php
}
?>
<?php
print render($title_prefix);
?>
<?php
if ($title) {
?>
<h1<?php
print $tabs ? ' class="with-tabs"' : '';
?>><?php
print $title;
?></h1>
<?php
}
?>
<?php
print render($title_suffix);
?>
<?php
if ($tabs) {
print render($tabs);
?></div><?php
}
?>
<?php
print render($tabs2);
?>
<?php
print $messages;
?>
<?php
print render($page['help']);
?>
<?php
if ($action_links) {
?><ul class="action-links"><?php
print render($action_links);
?></ul><?php
}
?>
<div class="clearfix">
<?php
print render($page['content']);
?>
</div>
<?php
print $feed_icons;
?>
<?php
print render($page['footer']);
?>
</div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->
<?php
if ($page['sidebar_second']) {
?>
<div id="sidebar-second" class="sidebar">
<?php
print render($page['sidebar_second']);
?>
</div>
<?php
}
?>
</div> <!-- /#container -->
</div> <!-- /#wrapper -->
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.