Permalink
Browse files

Adapt to new default skin folder namimg

  • Loading branch information...
1 parent c40419b commit 9f1652e29e2ed8be815cae4abf42bde989ffeb22 @thomascube thomascube committed Jul 30, 2012
View
@@ -678,7 +678,7 @@ $rcmail_config['addressbook_search_mode'] = 0;
$rcmail_config['default_charset'] = 'ISO-8859-1';
// skin name: folder from skins/
-$rcmail_config['skin'] = 'default';
+$rcmail_config['skin'] = 'larry';
// show up to X items in messages list view
$rcmail_config['mail_pagesize'] = 50;
View
@@ -38,10 +38,10 @@
<file name="localization/de_DE.inc" role="data"></file>
<file name="localization/en_US.inc" role="data"></file>
<file name="localization/pl_PL.inc" role="data"></file>
- <file name="skins/default/acl.css" role="data"></file>
- <file name="skins/default/images/enabled.png" role="data"></file>
- <file name="skins/default/images/partial.png" role="data"></file>
- <file name="skins/default/templates/table.html" role="data"></file>
+ <file name="skins/classic/acl.css" role="data"></file>
+ <file name="skins/classic/images/enabled.png" role="data"></file>
+ <file name="skins/classic/images/partial.png" role="data"></file>
+ <file name="skins/classic/templates/table.html" role="data"></file>
<file name="skins/larry/acl.css" role="data"></file>
<file name="skins/larry/images/enabled.png" role="data"></file>
<file name="skins/larry/images/partial.png" role="data"></file>
@@ -50,9 +50,9 @@
<file name="localization/ru_RU.inc" role="data"></file>
<file name="localization/sv_SE.inc" role="data"></file>
<file name="localization/zh_TW.inc" role="data"></file>
- <file name="skins/default/archive_act.png" role="data"></file>
- <file name="skins/default/archive_pas.png" role="data"></file>
- <file name="skins/default/foldericon.png" role="data"></file>
+ <file name="skins/classic/archive_act.png" role="data"></file>
+ <file name="skins/classic/archive_pas.png" role="data"></file>
+ <file name="skins/classic/foldericon.png" role="data"></file>
</dir>
<!-- / -->
</contents>
View
@@ -33,9 +33,9 @@
<file name="content/about.html" role="data"></file>
<file name="content/license.html" role="data"></file>
<file name="config.inc.php.dist" role="data"></file>
- <file name="skins/default/help.css" role="data"></file>
- <file name="skins/default/help.gif" role="data"></file>
- <file name="skins/default/templates/help.html" role="data"></file>
+ <file name="skins/classic/help.css" role="data"></file>
+ <file name="skins/classic/help.gif" role="data"></file>
+ <file name="skins/classic/templates/help.html" role="data"></file>
<file name="localization/cs_CZ.inc" role="data"></file>
<file name="localization/da_DK.inc" role="data"></file>
<file name="localization/de_DE.inc" role="data"></file>
@@ -36,7 +36,7 @@
</file>
<file name="localization/en_US.inc" role="data"></file>
<file name="localization/pl_PL.inc" role="data"></file>
- <file name="skins/default/style.css" role="data"></file>
+ <file name="skins/classic/style.css" role="data"></file>
</dir>
<!-- / -->
</contents>
@@ -6,6 +6,7 @@ $rcmail_config['jquery_ui_i18n'] = array('datepicker');
// map Roundcube skins with jquery-ui themes here
$rcmail_config['jquery_ui_skin_map'] = array(
'larry' => 'larry',
+ 'default' => 'larry',
'groupvice4' => 'redmond',
);
@@ -24,15 +24,15 @@ public function init()
$this->include_script("js/jquery-ui-$version.custom.min.js");
// include UI stylesheet
- $skin = $rcmail->config->get('skin', 'default');
+ $skin = $rcmail->config->get('skin');
$ui_map = $rcmail->config->get('jquery_ui_skin_map', array());
$ui_theme = $ui_map[$skin] ? $ui_map[$skin] : $skin;
if (file_exists($this->home . "/themes/$ui_theme/jquery-ui-$version.custom.css")) {
$this->include_stylesheet("themes/$ui_theme/jquery-ui-$version.custom.css");
}
else {
- $this->include_stylesheet("themes/default/jquery-ui-$version.custom.css");
+ $this->include_stylesheet("themes/larry/jquery-ui-$version.custom.css");
}
// jquery UI localization
@@ -99,22 +99,22 @@
<file name="js/i18n/jquery.ui.datepicker-zh-HK.js" role="data"></file>
<file name="js/i18n/jquery.ui.datepicker-zh-TW.js" role="data"></file>
- <file name="themes/default/jquery-ui-1.8.14.custom.css" role="data"></file>
- <file name="themes/default/roundcube-custom.diff" role="data"></file>
- <file name="themes/default/images/buttongradient.png" role="data"></file>
- <file name="themes/default/images/ui-bg_flat_90_cc3333_40x100.png" role="data"></file>
- <file name="themes/default/images/ui-bg_highlight-hard_90_f4f4f4_1x100.png" role="data"></file>
- <file name="themes/default/images/ui-icons_cc3333_256x240.png" role="data"></file>
- <file name="themes/default/images/listheader.png" role="data"></file>
- <file name="themes/default/images/ui-bg_glass_95_fef1ec_1x400.png" role="data"></file>
- <file name="themes/default/images/ui-icons_000000_256x240.png" role="data"></file>
- <file name="themes/default/images/ui-icons_dddddd_256x240.png" role="data"></file>
- <file name="themes/default/images/ui-bg_flat_0_aaaaaa_40x100.png" role="data"></file>
- <file name="themes/default/images/ui-bg_highlight-hard_90_a3a3a3_1x100.png" role="data"></file>
- <file name="themes/default/images/ui-icons_333333_256x240.png" role="data"></file>
- <file name="themes/default/images/ui-bg_flat_75_ffffff_40x100.png" role="data"></file>
- <file name="themes/default/images/ui-bg_highlight-hard_90_e6e6e7_1x100.png" role="data"></file>
- <file name="themes/default/images/ui-icons_666666_256x240.png" role="data"></file>
+ <file name="themes/classic/jquery-ui-1.8.14.custom.css" role="data"></file>
+ <file name="themes/classic/roundcube-custom.diff" role="data"></file>
+ <file name="themes/classic/images/buttongradient.png" role="data"></file>
+ <file name="themes/classic/images/ui-bg_flat_90_cc3333_40x100.png" role="data"></file>
+ <file name="themes/classic/images/ui-bg_highlight-hard_90_f4f4f4_1x100.png" role="data"></file>
+ <file name="themes/classic/images/ui-icons_cc3333_256x240.png" role="data"></file>
+ <file name="themes/classic/images/listheader.png" role="data"></file>
+ <file name="themes/classic/images/ui-bg_glass_95_fef1ec_1x400.png" role="data"></file>
+ <file name="themes/classic/images/ui-icons_000000_256x240.png" role="data"></file>
+ <file name="themes/classic/images/ui-icons_dddddd_256x240.png" role="data"></file>
+ <file name="themes/classic/images/ui-bg_flat_0_aaaaaa_40x100.png" role="data"></file>
+ <file name="themes/classic/images/ui-bg_highlight-hard_90_a3a3a3_1x100.png" role="data"></file>
+ <file name="themes/classic/images/ui-icons_333333_256x240.png" role="data"></file>
+ <file name="themes/classic/images/ui-bg_flat_75_ffffff_40x100.png" role="data"></file>
+ <file name="themes/classic/images/ui-bg_highlight-hard_90_e6e6e7_1x100.png" role="data"></file>
+ <file name="themes/classic/images/ui-icons_666666_256x240.png" role="data"></file>
<file name="themes/redmont/jquery-ui-1.8.14.custom.css" role="data"></file>
<file name="themes/redmont/images/ui-bg_flat_0_aaaaaa_40x100.png" role="data"></file>
@@ -85,16 +85,16 @@
<file name="localization/vi_VN.inc" role="data"></file>
<file name="localization/zh_CN.inc" role="data"></file>
<file name="localization/zh_TW.inc" role="data"></file>
- <file name="skins/default/managesieve.css" role="data"></file>
- <file name="skins/default/managesieve_mail.css" role="data"></file>
- <file name="skins/default/templates/filteredit.html" role="data"></file>
- <file name="skins/default/templates/managesieve.html" role="data"></file>
- <file name="skins/default/templates/setedit.html" role="data"></file>
- <file name="skins/default/images/add.png" role="data"></file>
- <file name="skins/default/images/del.png" role="data"></file>
- <file name="skins/default/images/down_small.gif" role="data"></file>
- <file name="skins/default/images/filter.png" role="data"></file>
- <file name="skins/default/images/up_small.gif" role="data"></file>
+ <file name="skins/classic/managesieve.css" role="data"></file>
+ <file name="skins/classic/managesieve_mail.css" role="data"></file>
+ <file name="skins/classic/templates/filteredit.html" role="data"></file>
+ <file name="skins/classic/templates/managesieve.html" role="data"></file>
+ <file name="skins/classic/templates/setedit.html" role="data"></file>
+ <file name="skins/classic/images/add.png" role="data"></file>
+ <file name="skins/classic/images/del.png" role="data"></file>
+ <file name="skins/classic/images/down_small.gif" role="data"></file>
+ <file name="skins/classic/images/filter.png" role="data"></file>
+ <file name="skins/classic/images/up_small.gif" role="data"></file>
<file name="managesieve.php" role="php"></file>
<file name="lib/rcube_sieve.php" role="php"></file>
<file name="lib/rcube_sieve_script.php" role="php"></file>
@@ -50,8 +50,8 @@
<file name="localization/sk_SK.inc" role="data"></file>
<file name="localization/sv_SE.inc" role="data"></file>
<file name="localization/zh_TW.inc" role="data"></file>
- <file name="skins/default/junk_act.png" role="data"></file>
- <file name="skins/default/junk_pas.png" role="data"></file>
+ <file name="skins/classic/junk_act.png" role="data"></file>
+ <file name="skins/classic/junk_pas.png" role="data"></file>
</dir>
<!-- / -->
</contents>
@@ -61,9 +61,9 @@
<file name="localization/ru_RU.inc" role="data"></file>
<file name="localization/sv_SE.inc" role="data"></file>
<file name="localization/zh_TW.inc" role="data"></file>
- <file name="skins/default/style.css" role="data"></file>
- <file name="skins/default/vcard_add_contact.png" role="data"></file>
- <file name="skins/default/vcard.png" role="data"></file>
+ <file name="skins/classic/style.css" role="data"></file>
+ <file name="skins/classic/vcard_add_contact.png" role="data"></file>
+ <file name="skins/classic/vcard.png" role="data"></file>
<file name="skins/larry/style.css" role="data"></file>
<file name="skins/larry/vcard_add_contact.png" role="data"></file>
<file name="skins/larry/vcard.png" role="data"></file>
@@ -81,10 +81,14 @@ private function load()
$this->prop['skin'] = str_replace('skins/', '', unslashify($this->prop['skin_path']));
}
else {
- $this->prop['skin'] = 'default';
+ $this->prop['skin'] = 'larry';
}
}
+ // larry is the new default skin :-)
+ if ($this->prop['skin'] == 'default')
+ $this->prop['skin'] = 'larry';
+
// fix paths
$this->prop['log_dir'] = $this->prop['log_dir'] ? realpath(unslashify($this->prop['log_dir'])) : INSTALL_PATH . 'logs';
$this->prop['temp_dir'] = $this->prop['temp_dir'] ? realpath(unslashify($this->prop['temp_dir'])) : INSTALL_PATH . 'temp';
@@ -238,10 +242,8 @@ public function set_user_prefs($prefs)
// Honor the dont_override setting for any existing user preferences
$dont_override = $this->get('dont_override');
if (is_array($dont_override) && !empty($dont_override)) {
- foreach ($prefs as $key => $pref) {
- if (in_array($key, $dont_override)) {
- unset($prefs[$key]);
- }
+ foreach ($dont_override as $key) {
+ unset($prefs[$key]);
}
}
@@ -336,9 +336,12 @@ private function resource_url($fn)
public function local_skin_path()
{
$rcmail = rcube::get_instance();
- $skin_path = 'skins/' . $rcmail->config->get('skin');
- if (!is_dir(realpath(slashify($this->home) . $skin_path)))
- $skin_path = 'skins/default';
+ foreach (array($rcmail->config->get('skin'),'default') as $skin) {
+ $skin_path = 'skins/' . $skin;
+ if (is_dir(realpath(slashify($this->home) . $skin_path)))
+ break;
+ }
+
return $skin_path;
}

0 comments on commit 9f1652e

Please sign in to comment.