aboutsummaryrefslogtreecommitdiffstats
path: root/include/page_header.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-08-30 08:24:42 +0000
committerplegall <plg@piwigo.org>2011-08-30 08:24:42 +0000
commitf8226de8e6940234d53a8799a7f6e30364ce6ce7 (patch)
tree875221468b46cfd20b77ac08f86c2fcb98ee5b4e /include/page_header.php
parentf048a51feb11ce077b7cbb1250fc0ce71b8f26df (diff)
feature 2420 added: automatically use the gallery title in the page banner.
Just write %gallery_title% in the page banner (this is written by default). The default gallery title and tagline are now localized. git-svn-id: http://piwigo.org/svn/trunk@12008 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/page_header.php')
-rw-r--r--include/page_header.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/page_header.php b/include/page_header.php
index 381162dbd..506e93920 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -35,9 +35,14 @@ $template->assign(
$page['gallery_title'] : $conf['gallery_title'],
'PAGE_BANNER' =>
- trigger_event('render_page_banner',
- isset($page['page_banner']) ?
- $page['page_banner'] : $conf['page_banner']),
+ trigger_event(
+ 'render_page_banner',
+ str_replace(
+ '%gallery_title%',
+ $conf['gallery_title'],
+ isset($page['page_banner']) ? $page['page_banner'] : $conf['page_banner']
+ )
+ ),
'BODY_ID' =>
isset($page['body_id']) ?