You are here

pane-header.tpl.php in Panels Everywhere 7

Same filename and directory in other branches
  1. 6 theme/pane-header.tpl.php

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

Additional items can be added via theme_preprocess_pane_header(). See template_preprocess_pane_header() for examples.

File

theme/pane-header.tpl.php
View 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
 *
 * Additional items can be added via theme_preprocess_pane_header(). See
 * template_preprocess_pane_header() for examples.
 */
?>
<div id="header">
  <div class="section clearfix">
    <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 ($site_name) {
  ?>
          <?php

  if ($title) {
    ?>
            <div id="site-name"><strong>
              <a href="<?php

    print $front_page;
    ?>" title="<?php

    print t('Home');
    ?>" rel="home"><span><?php

    print $site_name;
    ?></span></a>
            </strong></div>
          <?php

  }
  else {

    /* Use h1 when the content title is empty */
    ?>
            <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

}
?>

        <?php

if (!empty($site_slogan)) {
  ?>
          <div id="site-slogan"><?php

  print $site_slogan;
  ?></div>
        <?php

}
?>
      </div> <!-- /name-and-slogan -->
    </div> <!-- /logo-title -->

  </div> <!-- /section -->
</div> <!-- /header -->