mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 01:32:59 +02:00
feature 2587: set theme "elegant" as default theme
git-svn-id: http://piwigo.org/svn/trunk@13467 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -134,7 +134,7 @@ function activate_core_themes()
|
||||
$themes = new themes();
|
||||
foreach ($themes->fs_themes as $theme_id => $fs_theme)
|
||||
{
|
||||
if (in_array($theme_id, array('Sylvia', 'clear', 'dark', 'smartpocket')))
|
||||
if (in_array($theme_id, array('elegant', 'Sylvia', 'clear', 'dark', 'smartpocket')))
|
||||
{
|
||||
$themes->perform_action('activate', $theme_id);
|
||||
}
|
||||
|
||||
@@ -119,6 +119,7 @@ function deactivate_non_standard_themes()
|
||||
'clear',
|
||||
'Sylvia',
|
||||
'dark',
|
||||
'elegant',
|
||||
);
|
||||
|
||||
$query = '
|
||||
@@ -162,7 +163,7 @@ SELECT theme
|
||||
{
|
||||
$query = '
|
||||
UPDATE '.PREFIX_TABLE.'user_infos
|
||||
SET theme = \'Sylvia\'
|
||||
SET theme = \'elegant\'
|
||||
WHERE user_id = '.$conf['default_user_id'].'
|
||||
;';
|
||||
pwg_query($query);
|
||||
|
||||
@@ -23,7 +23,7 @@ class updates
|
||||
{
|
||||
$this->types = array($page);
|
||||
}
|
||||
$this->default_themes = array('clear', 'dark', 'Sylvia');
|
||||
$this->default_themes = array('clear', 'dark', 'Sylvia', 'elegant');
|
||||
$this->default_plugins = array('admin_multi_view', 'c13y_upgrade', 'language_switch', 'LocalFilesEditor');
|
||||
|
||||
foreach ($this->types as $type)
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// Default settings
|
||||
define('PHPWG_VERSION', '2.4.0RC1');
|
||||
define('PHPWG_DEFAULT_LANGUAGE', 'en_UK');
|
||||
define('PHPWG_DEFAULT_TEMPLATE', 'Sylvia');
|
||||
define('PHPWG_DEFAULT_TEMPLATE', 'elegant');
|
||||
|
||||
define('PHPWG_THEMES_PATH', $conf['themes_dir'].'/');
|
||||
defined('PWG_COMBINED_DIR') or define('PWG_COMBINED_DIR', $conf['data_location'].'combined/');
|
||||
|
||||
@@ -414,7 +414,7 @@ CREATE TABLE `piwigo_user_infos` (
|
||||
`show_nb_comments` enum('true','false') NOT NULL default 'false',
|
||||
`show_nb_hits` enum('true','false') NOT NULL default 'false',
|
||||
`recent_period` tinyint(3) unsigned NOT NULL default '7',
|
||||
`theme` varchar(255) NOT NULL default 'Sylvia',
|
||||
`theme` varchar(255) NOT NULL default 'elegant',
|
||||
`registration_date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`enabled_high` enum('true','false') NOT NULL default 'true',
|
||||
`level` tinyint unsigned NOT NULL default '0',
|
||||
|
||||
Reference in New Issue
Block a user