pane-header.tpl.php in Panels Everywhere 6
Same filename and directory in other branches
Theme implementation to display the header block on a Drupal page.
This utilizes the following variables thata re normally found in page.tpl.php:
- $front_page
- $logo
- $site_name
- $site_slogan
- $search_box
Additional items can be added via theme_preprocess_pane_header(). See template_preprocess_pane_header() for examples.
1 theme call to pane-header.tpl.php
- panels_everywhere_pane_header_content_type_render in plugins/
content_types/ pane_header.inc - Output function for the 'pane_tabs' content type.
File
theme/pane-header.tpl.phpView source
<?php
/**
* @file
*
* Theme implementation to display the header block on a Drupal page.
*
* This utilizes the following variables thata re normally found in
* page.tpl.php:
* - $front_page
* - $logo
* - $site_name
* - $site_slogan
* - $search_box
*
* Additional items can be added via theme_preprocess_pane_header(). See
* template_preprocess_pane_header() for examples.
*/
?>
<div id="header">
<div id="logo-title">
<?php
if (!empty($logo)) {
?>
<a href="<?php
print $front_page;
?>" title="<?php
print t('Home');
?>" rel="home" id="logo"><img src="<?php
print $logo;
?>" alt="<?php
print t('Home');
?>" /></a>
<?php
}
?>
<div id="name-and-slogan">
<?php
if (!empty($site_name)) {
?>
<h1 id="site-name">
<a href="<?php
print $front_page;
?>" title="<?php
print t('Home');
?>" rel="home"><span><?php
print $site_name;
?></span></a>
</h1>
<?php
}
?>
<?php
if (!empty($site_slogan)) {
?>
<div id="site-slogan"><?php
print $site_slogan;
?></div>
<?php
}
?>
</div> <!-- /name-and-slogan -->
</div> <!-- /logo-title -->
<?php
if (!empty($search_box)) {
?>
<div id="search-box"><?php
print $search_box;
?></div>
<?php
}
?>
</div> <!-- /header -->