aboutsummaryrefslogtreecommitdiffstats
path: root/include/page_header.php
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-03-20 00:52:37 +0000
committergweltas <gweltas@piwigo.org>2004-03-20 00:52:37 +0000
commit4128835db8d7b8e619951d4c31e23bd934758f09 (patch)
tree4fddd9ea03f3ebeeaba73c3a42f7130e29a54b58 /include/page_header.php
parent8850aabc34e524e1a7816c363657e3176502a708 (diff)
- Template migration
- Admin Control Panel migration - Language migration git-svn-id: http://piwigo.org/svn/trunk@393 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/page_header.php')
-rw-r--r--include/page_header.php20
1 files changed, 13 insertions, 7 deletions
diff --git a/include/page_header.php b/include/page_header.php
index af28eba0e..6067c65e8 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -30,20 +30,27 @@
//
$template->set_filenames(array('header'=>'header.tpl'));
-$css = './template/'.$user['template'].'/'.$user['template'].'.css';
+$charset = empty($lang_info['charset'][$lang_info['current_code']])?
+ $lang_info['default']['charset']:$lang_info['charset'][$lang_info['current_code']];
+$dir = empty($lang_info['direction'][$lang_info['current_code']])?
+ $lang_info['default']['direction']:$lang_info['direction'][$lang_info['current_code']];
+$css = PHPWG_ROOT_PATH.'template/'.$user['template'].'/'.$user['template'].'.css';
$template->assign_vars(array(
- 'S_CONTENT_ENCODING' => $lang['charset'],
- 'T_STYLE' => $css,
- 'PAGE_TITLE' => $title
- ));
+ 'CONTENT_ENCODING' => $charset,
+ 'PAGE_TITLE' => $title,
+ 'LANG'=>substr($lang_info['current_code'],0,2),
+ 'DIR'=>$dir,
+
+ 'T_STYLE' => $css
+ ));
// refresh
if ( isset( $refresh ) && $refresh >0 && isset($url_link))
{
$url = $url_link.'&amp;slideshow='.$refresh;
$template->assign_vars(array(
- 'S_REFRESH_TIME' => $refresh,
+ 'REFRESH_TIME' => $refresh,
'U_REFRESH' => add_session_id( $url )
));
$template->assign_block_vars('refresh', array());
@@ -64,5 +71,4 @@ header( 'Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT' );
header( 'Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT' );
$template->pparse('header');
-$vtp=new VTemplate;
?>