feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It supports multiple level inheritance. git-svn-id: http://piwigo.org/svn/trunk@5123 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
c396f08708
commit
14778ce673
615 changed files with 652 additions and 648 deletions
|
|
@ -245,7 +245,11 @@ function build_user( $user_id, $use_cache )
|
|||
// calculation of the number of picture to display per page
|
||||
$user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
|
||||
|
||||
list($user['template'], $user['theme']) = explode('/', $user['template']);
|
||||
// Check user theme
|
||||
if (!file_exists(PHPWG_ROOT_PATH.'themes/'.$user['theme'].'/themeconf.inc.php'))
|
||||
{
|
||||
$user['theme'] = $conf['default_theme'];
|
||||
}
|
||||
|
||||
return $user;
|
||||
}
|
||||
|
|
@ -841,9 +845,9 @@ function get_default_user_value($value_name, $sos_value)
|
|||
* Returns the default template value
|
||||
*
|
||||
*/
|
||||
function get_default_template()
|
||||
function get_default_theme()
|
||||
{
|
||||
return get_default_user_value('template', PHPWG_DEFAULT_TEMPLATE);
|
||||
return get_default_user_value('theme', PHPWG_DEFAULT_TEMPLATE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue