summaryrefslogtreecommitdiff
path: root/themes/wind
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-12-24 00:38:25 -0800
committerBharat Mediratta <bharat@menalto.com>2010-12-24 00:38:25 -0800
commitc989981041e66e336f1410b651173305ab184aba (patch)
treeda4da2edf9f80e7b5812a2606af15394c29275d2 /themes/wind
parentb5ba61fc53e44d55978dd0d35ada80da4c47715d (diff)
Use the item title wherever possible as the page title and get rid of
the "Browse Album" text which shows up way too much. Fixes #1520.
Diffstat (limited to 'themes/wind')
-rw-r--r--themes/wind/views/page.html.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/themes/wind/views/page.html.php b/themes/wind/views/page.html.php
index b3379416..5d0985e7 100644
--- a/themes/wind/views/page.html.php
+++ b/themes/wind/views/page.html.php
@@ -9,17 +9,11 @@
<?= $page_title ?>
<? else: ?>
<? if ($theme->item()): ?>
- <? if ($theme->item()->is_album()): ?>
- <?= t("Browse Album :: %album_title", array("album_title" => $theme->item()->title)) ?>
- <? elseif ($theme->item()->is_photo()): ?>
- <?= t("Photo :: %photo_title", array("photo_title" => $theme->item()->title)) ?>
- <? else: ?>
- <?= t("Movie :: %movie_title", array("movie_title" => $theme->item()->title)) ?>
- <? endif ?>
+ <?= $theme->item()->title ?>
<? elseif ($theme->tag()): ?>
- <?= t("Browse Tag :: %tag_title", array("tag_title" => $theme->tag()->name)) ?>
+ <?= t("Photos tagged with %tag_title", array("tag_title" => $theme->tag()->name)) ?>
<? else: /* Not an item, not a tag, no page_title specified. Help! */ ?>
- <?= t("Gallery") ?>
+ <?= item::root()->title ?>
<? endif ?>
<? endif ?>
</title>