summaryrefslogtreecommitdiff
path: root/modules/gallery/views/admin_themes_buttonset.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-04-23 14:43:33 -0700
committerBharat Mediratta <bharat@menalto.com>2011-04-23 14:43:33 -0700
commita469146084e7ba064f171609849c4d8590424f88 (patch)
tree0ec5ac816cfbe9b52a49a22d6b47b72781056e0d /modules/gallery/views/admin_themes_buttonset.html.php
parentcab5f15c319c4ae1ebf261fb1b5c172032957733 (diff)
module.info and theme.info files now support author name, author url,
info url and discussion url fields. Those fields show up in the Admin > Modules and Admin > Appearance > Theme Choice pages. All official modules and themes updated to contain these values. Fixes #1696, #1698.
Diffstat (limited to 'modules/gallery/views/admin_themes_buttonset.html.php')
-rw-r--r--modules/gallery/views/admin_themes_buttonset.html.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/modules/gallery/views/admin_themes_buttonset.html.php b/modules/gallery/views/admin_themes_buttonset.html.php
new file mode 100644
index 00000000..5166f36c
--- /dev/null
+++ b/modules/gallery/views/admin_themes_buttonset.html.php
@@ -0,0 +1,47 @@
+ <ul class="g-buttonset">
+ <li>
+ <a target="_blank"
+ <? if (isset($info['author_url'])): ?>
+ class="ui-state-default ui-icon ui-icon-person ui-corner-left"
+ href="<?= $info['author_url'] ?>"
+ <? else: ?>
+ class="ui-state-disabled ui-icon ui-icon-person ui-corner-left"
+ href="#"
+ <? endif ?>
+
+ <? if (isset($info['author_name'])): ?>
+ title="<?= $info['author_name'] ?>"
+ <? endif ?>
+ >
+ <? if (isset($info['author_name'])): ?>
+ <?= $info['author_name'] ?>
+ <? endif ?>
+ </a>
+ </li>
+ <li>
+ <a target="_blank"
+ <? if (isset($info['info_url'])): ?>
+ class="ui-state-default ui-icon ui-icon-info"
+ href="<?= $info['info_url'] ?>"
+ <? else: ?>
+ class="ui-state-disabled ui-icon ui-icon-info"
+ href="#"
+ <? endif ?>
+ >
+ <?= t("info") ?>
+ </a>
+ </li>
+ <li>
+ <a target="_blank"
+ <? if (isset($info['discuss_url'])): ?>
+ class="ui-state-default ui-icon ui-icon-comment ui-corner-right"
+ href="<?= $info['discuss_url'] ?>"
+ <? else: ?>
+ class="ui-state-disabled ui-icon ui-icon-comment ui-corner-right"
+ href="#"
+ <? endif ?>
+ >
+ <?= t("discuss") ?>
+ </a>
+ </li>
+ </ul>