From 29d36ffdc36bf20ab43840df9272fac160cbc476 Mon Sep 17 00:00:00 2001 From: patdenice Date: Mon, 29 Mar 2010 13:30:02 +0000 Subject: feature 1502: Allow to have configuration page for each theme.css. About string for theme has to be saved in language theme directory (about.html) git-svn-id: http://piwigo.org/svn/trunk@5446 68402e56-0260-453c-a942-63ccdbb3a9ee --- about.php | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) (limited to 'about.php') diff --git a/about.php b/about.php index c3958a5ec..e54505e27 100644 --- a/about.php +++ b/about.php @@ -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'); ?> -- cgit v1.2.3