Return to Snippet

Revision: 11913
at February 23, 2009 13:46 by zachharkey


Initial Code
<?php if ($logo or $site_name or $site_slogan): ?>

  <div id="logo-title">
    <?php if ($logo): ?>
      <div id="logo"><a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>" rel="home"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" id="logo-image" /></a></div>
    <?php endif ?>
    
    <?php if ($site_name): ?>
      <?php if ($is_front): ?>
        <h1 id="site-name">
          <a href="<?php print $base_path ?>" title="<?php print t('Home') ?>" rel="home">
          <?php print $site_name ?>
          </a>
        </h1>
      <?php else: ?>
        <div id="site-name"><strong>
          <a href="<?php print $base_path ?>" title="<?php print t('Home') ?>" rel="home">
          <?php print $site_name ?>
          </a>
        </strong></div>
      <?php endif ?>
    <?php endif ?>

    <?php if ($site_slogan): ?>
      <div id="site-slogan"><?php print $site_slogan ?></div>
    <?php endif ?>

  </div> <!-- /#logo-title -->
<?php endif ?>

Initial URL


Initial Description


Initial Title
Drupal header logo and site-name snippet for page.tpl.php

Initial Tags
textmate, drupal

Initial Language
Other