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
This commit is contained in:
patdenice
2010-03-29 13:30:02 +00:00
parent 034e75f8ea
commit 29d36ffdc3
6 changed files with 113 additions and 35 deletions

View File

@@ -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_filenames(
array(
'about'=>'about.tpl',
)
);
if ( isset($lang['Theme: '.$user['theme']]) )
{
$template->assign(
'THEME_ABOUT',l10n('Theme: '.$user['theme'])
);
}
$template->set_filename('about', 'about.tpl');
$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', $theme_about);
}
$template->pparse('about');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>