Posted By

zachharkey on 02/23/09


Tagged

textmate drupal page-tpl-php


Versions (?)

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


 / Published in: Other
 

  1. <?php if ($logo or $site_name or $site_slogan): ?>
  2.  
  3. <div id="logo-title">
  4. <?php if ($logo): ?>
  5. <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>
  6. <?php endif ?>
  7.  
  8. <?php if ($site_name): ?>
  9. <?php if ($is_front): ?>
  10. <h1 id="site-name">
  11. <a href="<?php print $base_path ?>" title="<?php print t('Home') ?>" rel="home">
  12. <?php print $site_name ?>
  13. </a>
  14. </h1>
  15. <?php else: ?>
  16. <div id="site-name"><strong>
  17. <a href="<?php print $base_path ?>" title="<?php print t('Home') ?>" rel="home">
  18. <?php print $site_name ?>
  19. </a>
  20. </strong></div>
  21. <?php endif ?>
  22. <?php endif ?>
  23.  
  24. <?php if ($site_slogan): ?>
  25. <div id="site-slogan"><?php print $site_slogan ?></div>
  26. <?php endif ?>
  27.  
  28. </div> <!-- /#logo-title -->
  29. <?php endif ?>

Report this snippet  

You need to login to post a comment.