Drupal region page-tpl-php


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <div id="header"><div id="header-inner" class="clear-block">
  2.  
  3. <?php if ($logo or $site_name or $site_slogan): ?>
  4. <div id="logo-title">
  5.  
  6. <?php if ($logo): ?>
  7. <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>
  8. <?php endif; ?>
  9.  
  10. <?php if ($site_name): ?>
  11. <?php if ($is_front): ?>
  12. <h1 id="site-name">
  13. <a href="<?php print $base_path ?>" title="<?php print t('Home') ?>" rel="home">
  14. <?php print $site_name ?>
  15. </a>
  16. </h1>
  17. <?php else: ?>
  18. <div id="site-name"><strong>
  19. <a href="<?php print $base_path ?>" title="<?php print t('Home') ?>" rel="home">
  20. <?php print $site_name ?>
  21. </a>
  22. </strong></div>
  23. <?php endif ?>
  24. <?php endif ?>
  25.  
  26. <?php if ($site_slogan): ?>
  27. <div id="site-slogan"><?php print $site_slogan ?></div>
  28. <?php endif ?>
  29.  
  30. </div> <!-- /#logo-title -->
  31. <?php endif ?>
  32.  
  33. <?php if ($header): ?>
  34. <div id="header-blocks" class="region region-header">
  35. <?php print $header ?>
  36. </div> <!-- /#header-blocks -->
  37. <?php endif ?>
  38.  
  39. </div></div> <!-- /#header-inner, /#header -->

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.