aboutsummaryrefslogtreecommitdiffstats
path: root/include/page_header.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-03-02 00:29:27 +0000
committerrvelices <rv-github@modusoptimus.com>2008-03-02 00:29:27 +0000
commit6e932e8752faae824cdcb1073014771163a600a7 (patch)
tree384e84cbf6ca9b0f205764b948895ec8682d6a3a /include/page_header.php
parent1f271ceca3e74c7b077f8462086db020121e81c3 (diff)
header.tpl goes smart
git-svn-id: http://piwigo.org/svn/trunk@2240 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/page_header.php')
-rw-r--r--include/page_header.php38
1 files changed, 13 insertions, 25 deletions
diff --git a/include/page_header.php b/include/page_header.php
index 8f6e1a87b..dc0fe615f 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -4,7 +4,6 @@
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
-// | branch : BSF (Best So Far)
// | file : $Id$
// | last update : $Date$
// | last modifier : $Author$
@@ -32,7 +31,7 @@ $template->set_filenames(array('header'=>'header.tpl'));
trigger_action('loc_begin_page_header');
-$template->assign_vars(
+$template->assign(
array(
'GALLERY_TITLE' =>
isset($page['gallery_title']) ?
@@ -55,31 +54,19 @@ $template->assign_vars(
'U_HOME' => make_index_url(),
));
-// picture header infos
-if (isset($header_infos))
-{
- $template->assign_block_vars( 'header_meta', $header_infos);
-}
// Header notes
-if ( isset($header_notes) and count($header_notes)>0)
+if ( !empty($header_notes) )
{
- foreach ($header_notes as $header_note)
- {
- $template->assign_block_vars('header_notes.header_note',
- array('HEADER_NOTE' => $header_note));
- }
+ $template->assign('header_notes',$header_notes);
}
if ( !empty($page['meta_robots']) )
{
- $template->assign_block_vars('head_element',
- array(
- 'CONTENT' =>
- '<meta name="robots" content="'
- .implode(',', array_keys($page['meta_robots']))
- .'">'
- )
+ $template->append('head_elements',
+ '<meta name="robots" content="'
+ .implode(',', array_keys($page['meta_robots']))
+ .'">'
);
}
@@ -87,13 +74,14 @@ if ( !empty($page['meta_robots']) )
if ( isset( $refresh ) and intval($refresh) >= 0
and isset( $url_link ) and isset( $redirect_msg ) )
{
- $template->assign_vars(
+ $template->assign(
array(
- 'U_REDIRECT_MSG' => $redirect_msg,
- 'REFRESH_TIME' => $refresh,
- 'U_REFRESH' => $url_link
+ 'REDIRECT_MSG' => $redirect_msg,
+ 'page_refresh' => array(
+ 'TIME' => $refresh,
+ 'U_REFRESH' => $url_link
+ )
));
- $template->assign_block_vars('refresh', array());
}
trigger_action('loc_end_page_header');