diff options
author | Andy Staudacher <andy.st@gmail.com> | 2010-02-28 13:35:58 -0800 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2010-02-28 13:35:58 -0800 |
commit | a19b97f8d637ead3a4b038bdbd975be8a7583c59 (patch) | |
tree | 0316bd3dc835f36c200438769f0ae468833ac1c5 /themes | |
parent | 107909043add11045c76866564dead06a3385fb6 (diff) |
First step towards fixing ticket #1038: Allowing for custom page <title> in admin pages, just like in non-admin pages.
TODO: Set $view->page_title in the many admin controllers we have. I just set it for admin_maintenance.php to show how it's intended to be used. I copied the title from views/admin_maintenance.html.php to the controller.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/admin_wind/views/admin.html.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/themes/admin_wind/views/admin.html.php b/themes/admin_wind/views/admin.html.php index fa79119a..2f64c847 100644 --- a/themes/admin_wind/views/admin.html.php +++ b/themes/admin_wind/views/admin.html.php @@ -4,7 +4,13 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title><?= t("Admin dashboard") ?></title> + <title> + <? if ($page_title): ?> + <?= $page_title ?> + <? else: ?> + <?= t("Admin dashboard") ?> + <? endif ?> + </title> <link rel="shortcut icon" href="<?= url::file("lib/images/favicon.ico") ?>" type="image/x-icon" /> <?= $theme->css("yui/reset-fonts-grids.css") ?> |