diff options
Diffstat (limited to '')
-rw-r--r-- | about.php | 29 |
1 files changed, 6 insertions, 23 deletions
@@ -38,33 +38,16 @@ $title= l10n('About Piwigo'); $page['body_id'] = 'theAboutPage'; include(PHPWG_ROOT_PATH.'include/page_header.php'); -/** - * set in ./local/language/en_UK.lang.php (maybe to create) - * for example for clear theme: - $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '. - ' A standard template/theme of PhpWebgallery.'; - * - * Don't forget php tags !!! - * - * Another way is to code it thru the theme itself in ./themeconf.inc.php - */ -@include(PHPWG_ROOT_PATH.'template/'.$user['template']. - '/theme/'.$user['theme'].'/themeconf.inc.php'); +$template->set_filename('about', 'about.tpl'); -$template->set_filenames( - array( - 'about'=>'about.tpl', - ) - ); -if ( isset($lang['Theme: '.$user['theme']]) ) +$template->assign('ABOUT_MESSAGE', load_language('about.html','', array('return'=>true)) ); + +$theme_about = load_language('about.html', PHPWG_THEMES_PATH.$user['theme'].'/', array('return' => true)); +if ( $theme_about !== false ) { - $template->assign( - 'THEME_ABOUT',l10n('Theme: '.$user['theme']) - ); + $template->assign('THEME_ABOUT', $theme_about); } -$template->assign('ABOUT_MESSAGE', load_language('about.html','', array('return'=>true)) ); - $template->pparse('about'); include(PHPWG_ROOT_PATH.'include/page_tail.php'); ?> |