summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Dudenhofer2013-02-12 17:36:34 (GMT)
committer Aaron Dudenhofer2013-02-12 17:36:34 (GMT)
commitd18599257046d7c677867e0162c9949a9d9126fa (patch)
treee92bc16eb66c8996cd54126d76a3e3d93054ee10
parent87f746d98e9218768dd4ad094f0efa107815a112 (diff)
Issue #1789672 by bojanz: Removing hard-coded logo from maintenance page template7.x-1.0
-rw-r--r--template.php9
-rw-r--r--templates/maintenance-page.tpl.php11
2 files changed, 14 insertions, 6 deletions
diff --git a/template.php b/template.php
index a9eb163..95da622 100644
--- a/template.php
+++ b/template.php
@@ -25,6 +25,15 @@ function shiny_preprocess_maintenance_page(&$vars) {
// shiny_preprocess_html() also happen on the maintenance page, it has to be
// called here.
shiny_preprocess_html($vars);
+ if (variable_get('install_task') != 'done') {
+ $footer_markup = '<div class="message">' . t('Proudly built by') . '</div>';
+ $footer_markup .= '<div class="logo">' . t('<a href="@url">Commerce Guys</a>', array('@url' => 'http://www.commerceguys.com')) . '</div>';
+ $vars['footer'] = array(
+ '#prefix' => '<div id="credit" class="clearfix">',
+ '#markup' => $footer_markup,
+ '#suffix' => '</div>',
+ );
+ }
}
/**
diff --git a/templates/maintenance-page.tpl.php b/templates/maintenance-page.tpl.php
index 3e20c1a..04cda7b 100644
--- a/templates/maintenance-page.tpl.php
+++ b/templates/maintenance-page.tpl.php
@@ -43,12 +43,11 @@
</div>
</div>
</div>
- <div id="footer" class="footer-messages clearfix">
- <div id="credit" class="clearfix">
- <div class="message">Proudly built by</div>
- <div class="logo"><a href="http://commerceguys.com">Commerce Guys</a></div>
- </div>
- </div>
+ <?php if (isset($footer)): ?>
+ <div id="footer" class="footer-messages clearfix">
+ <?php print render($footer); ?>
+ </div>
+ <?php endif; ?>
<?php print $page_bottom; ?>
</div>
</div>