summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-28 09:46:29 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-28 09:46:29 +0000
commit4d71975f37fe00efb19bebc5efd23f056165ba56 (patch)
treeef80ad330cf730ad196a266a545d4bc44cc490fc
parent6fbd79928c36f33064103b410cdaa69111400046 (diff)
Add credits theme callback, point the powered-by link at GMC
-rw-r--r--core/libraries/Theme_View.php1
-rw-r--r--themes/default/css/screen.css16
-rw-r--r--themes/default/views/footer.html.php6
3 files changed, 22 insertions, 1 deletions
diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php
index 0ec3876a..5a29a84a 100644
--- a/core/libraries/Theme_View.php
+++ b/core/libraries/Theme_View.php
@@ -75,6 +75,7 @@ class Theme_View_Core extends View {
case "album_blocks":
case "album_bottom":
case "album_top":
+ case "credits";
case "head":
case "header_bottom":
case "header_top":
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index cd8cb288..ea593dfe 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -290,6 +290,22 @@ table.gMetadata td.toggle {
.gInfo {
}
+/* Credits ~~~~~~~~~~~~~~~~~~~~~~~ */
+
+#gCredits li {
+ display: inline;
+}
+
+#gCredits li:before {
+ padding: 0px 2px 0px 2px;
+ content: "|"
+}
+
+#gCredits li.first:before {
+ content: ""
+}
+
+
/** *******************************************************************
* 6) Navigation and menus
******************************************************************/
diff --git a/themes/default/views/footer.html.php b/themes/default/views/footer.html.php
index 6e0ef428..7f011735 100644
--- a/themes/default/views/footer.html.php
+++ b/themes/default/views/footer.html.php
@@ -1,2 +1,6 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
-Powered by <a href="#">Gallery3</a> | <a href="#">About this Gallery</a>
+<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>