summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-02-26 02:47:38 +0000
committerBharat Mediratta <bharat@menalto.com>2009-02-26 02:47:38 +0000
commit4f77e7bdced8352c458da2b987917e6d3f32d1b8 (patch)
tree0bbcd82ca681b3f55273bdaf126556050c4068c4 /themes
parent30fdedfb508392c9f76ff9ae5ccade90a80fc910 (diff)
Support adding custom header/footer text to themes via admin/theme_details
Diffstat (limited to 'themes')
-rw-r--r--themes/default/views/footer.html.php4
-rw-r--r--themes/default/views/header.html.php4
2 files changed, 8 insertions, 0 deletions
diff --git a/themes/default/views/footer.html.php b/themes/default/views/footer.html.php
index 1944dbb0..0091afde 100644
--- a/themes/default/views/footer.html.php
+++ b/themes/default/views/footer.html.php
@@ -1,7 +1,11 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?= $theme->footer() ?>
+<? if ($footer_text = module::get_var("core", "footer_text")): ?>
+<?= $footer_text ?>
+<? else: ?>
<ul id="gCredits">
<li class="first"> Powered by <a href="http://gallery.menalto.com">Gallery3</a> </li>
<?= $theme->credits() ?>
<li> <a href="#">About this Gallery</a> </li>
</ul>
+<? endif ?> \ No newline at end of file
diff --git a/themes/default/views/header.html.php b/themes/default/views/header.html.php
index 110b6c22..40261819 100644
--- a/themes/default/views/header.html.php
+++ b/themes/default/views/header.html.php
@@ -1,8 +1,12 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?= $theme->header_top() ?>
+<? if ($header_text = module::get_var("core", "header_text")): ?>
+<?= $header_text ?>
+<? else: ?>
<a href="<?= url::site("albums/1") ?>">
<img id="gLogo" alt="<?= t("Logo") ?>" src="<?= $theme->url("images/logo.png") ?>" />
</a>
+<? endif ?>
<div id="gSiteMenu" style="display: none">
<?= $theme->site_menu() ?>