diff options
author | patdenice <patdenice@piwigo.org> | 2010-03-29 13:30:02 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2010-03-29 13:30:02 +0000 |
commit | 29d36ffdc36bf20ab43840df9272fac160cbc476 (patch) | |
tree | 6df10661fe632fa6a8b78ab32fafba5a76b9851e /about.php | |
parent | 034e75f8ea2fc21f38a623df2f9a362048b4c2a5 (diff) |
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
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'); ?> |