aboutsummaryrefslogtreecommitdiffstats
path: root/include/page_header.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-10-26 03:35:20 +0000
committerrvelices <rv-github@modusoptimus.com>2006-10-26 03:35:20 +0000
commit12182ddcfeced9934f45f20a3859049066ce0726 (patch)
tree01112ee697fa5f7cfb421fee0e6d212069ed1d58 /include/page_header.php
parent9e770f68a31109748880b9027dfd43d1495f13df (diff)
plugins: first prototype version
git-svn-id: http://piwigo.org/svn/trunk@1578 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/page_header.php')
-rw-r--r--include/page_header.php29
1 files changed, 15 insertions, 14 deletions
diff --git a/include/page_header.php b/include/page_header.php
index a729e0ebc..af571ab19 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -37,8 +37,9 @@ $template->assign_vars(
$page['gallery_title'] : $conf['gallery_title'],
'PAGE_BANNER' =>
- isset($page['page_banner']) ?
- $page['page_banner'] : $conf['page_banner'],
+ trigger_event('page_banner',
+ isset($page['page_banner']) ?
+ $page['page_banner'] : $conf['page_banner'] ),
'BODY_ID' =>
isset($page['body_id']) ?
@@ -49,22 +50,22 @@ $template->assign_vars(
'LANG'=>$lang_info['code'],
'DIR'=>$lang_info['direction'],
- 'TAG_INPUT_ENABLED' =>
+ 'TAG_INPUT_ENABLED' =>
((is_adviser()) ? 'disabled onclick="return false;"' : '')
));
-// refresh
-if ( isset( $refresh ) and intval($refresh) >= 0
+// refresh
+if ( isset( $refresh ) and intval($refresh) >= 0
and isset( $url_link ) and isset( $redirect_msg ) )
-{
- $template->assign_vars(
- array(
- 'U_REDIRECT_MSG' => $redirect_msg,
- 'REFRESH_TIME' => $refresh,
- 'U_REFRESH' => $url_link
- ));
- $template->assign_block_vars('refresh', array());
-}
+{
+ $template->assign_vars(
+ array(
+ 'U_REDIRECT_MSG' => $redirect_msg,
+ 'REFRESH_TIME' => $refresh,
+ 'U_REFRESH' => $url_link
+ ));
+ $template->assign_block_vars('refresh', array());
+}
header('Content-Type: text/html; charset='.$lang_info['charset']);
$template->parse('header');