From 85f2c6b6665360b60164330f88f89ad4d2a14f7f Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 12 Mar 2009 16:06:13 +0000 Subject: Move the setting of the page title into the controller that is creating the page. Provide for a default page title if none is set. This allows less changes to page.html.php as different modules want to change the page title. --- themes/default/views/page.html.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'themes') diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php index d463af1b..6bbce475 100644 --- a/themes/default/views/page.html.php +++ b/themes/default/views/page.html.php @@ -5,10 +5,13 @@ - <? if ($page_type == "tag"): ?> - <?= t("Browse Tags") ?> :: <?= $tag->name ?> + <? if (empty($page_title)): ?> + <?= t("Browse Photos") ?> + <? if (!empty($item)): ?> + :: <?= $item->title ?> + <? endif ?> <? else: ?> - <?= t("Browse Photos") ?> :: <?= $item->title ?> + <?= $page_title ?> <? endif ?> " type="image/x-icon" /> -- cgit v1.2.3