Created
January 28, 2014 13:38
-
-
Save steinmb/8667790 to your computer and use it in GitHub Desktop.
page.tpl.php changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/themes/elmcip/templates/page.tpl.php b/themes/elmcip/templates/page.tpl.php | |
index e759d0b..f3d00c8 100644 | |
--- a/themes/elmcip/templates/page.tpl.php | |
+++ b/themes/elmcip/templates/page.tpl.php | |
@@ -73,10 +73,6 @@ | |
<?php print render($page['header_top']); ?> | |
<div id="header"><div class="section clearfix"> | |
- <?php if ($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 endif; ?> | |
- | |
<?php if ($site_name || $site_slogan): ?> | |
<div id="name-and-slogan"> | |
<?php if ($site_name): ?> | |
@@ -109,7 +105,18 @@ | |
'class' => array('element-invisible'), | |
), | |
)); ?> | |
- | |
+ <?php | |
+ if ($logo) { | |
+ $logo = array( | |
+ '#markup' => '<a href="' . $front_page . '" title="' . t('Home') . '" rel="home" id="logo"><img src="' . $logo . '" alt="' . t('Home') . '" /></a>', | |
+ '#prefix' => '<div class="logo-container">', | |
+ '#suffix' => '</div>', | |
+ '#weight' => '10', | |
+ ); | |
+ $page['header']['foo'] = $logo; | |
+ } | |
+ ?> | |
+ <?php dpm($page['header']); ?> | |
<?php print render($page['header']); ?> | |
<?php print render($page['header_bottom']); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment