Changeset 867486
- Timestamp:
- 03/01/2014 11:53:00 AM (12 years ago)
- Location:
- coeur-admin-color-scheme/trunk
- Files:
-
- 2 edited
-
coeur.php (modified) (3 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
coeur-admin-color-scheme/trunk/coeur.php
r866512 r867486 14 14 function coeur_admin_color_scheme() { 15 15 //Get the plugin directory 16 $url = get_settings( 'siteurl');16 $url = get_settings( 'siteurl' ); 17 17 $plugin_dir = $dir = $url . '/wp-content/plugins/coeur-admin-color-scheme/css/'; 18 18 //Coeur … … 25 25 26 26 // Set our new color scheme as default 27 function coeur_admin_default_color_scheme( $user_id ) { 28 $args = array( 29 'ID' => $user_id, 30 'admin_color' => 'coeur' 31 ); 32 wp_update_user( $args ); 27 function update_user_option_admin_color( $color_scheme ) { 28 $color_scheme = 'coeur'; 29 30 return $color_scheme; 33 31 } 34 add_action( 'user_register', 'coeur_admin_default_color_scheme' ); 32 33 add_filter( 'get_user_option_admin_color', 'update_user_option_admin_color', 5 ); 34 35 // Prevent users from changing the color scheme 36 remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' ); 35 37 36 38 // Revome default value … … 48 50 // Custom Login Page Styles. 49 51 function coeur_admin_login_css() { 50 51 $url = get_settings( 'siteurl');52 53 $url = get_settings( 'siteurl' ); 52 54 $plugin_dir = $dir = $url . '/wp-content/plugins/coeur-admin-color-scheme/css/'; ?> 53 55 -
coeur-admin-color-scheme/trunk/readme.txt
r866525 r867486 13 13 == Description == 14 14 15 This plugin allows you to give your Wordpress dashboard a fresh new look. Your admin panel will look clean and will allow you to focus on what's really important for you and your users. This colours scheme is set as default but your users will still be able to switch color schemes in their profiles if they prefer the ones natively offered by WordPress.15 This plugin allows you to give your Wordpress dashboard a fresh new look. Your admin panel will look clean and will allow you to focus on what's really important for you and your users. This colours scheme is set as default and the plugin also prevents users from changing it. 16 16 17 17 == Installation == … … 22 22 23 23 1. Go to Plugins > Add New 24 2. Search for "Coeur Admin Color Scheme". Make sure it's the right plugin, the author should be "Titouanc "24 2. Search for "Coeur Admin Color Scheme". Make sure it's the right plugin, the author should be "Titouanc”. 25 25 3. Hit install now 26 26 4. Hit activate now. Once activated the new color scheme will automatically be selected as default. 27 28 Note : if nothing happens please go to Users > Your profile and select the “Coeur” color scheme as default. It will automatically be selected as default for all new users.29 27 30 28 Manually … … 32 30 1. Upload `coeur-admin` folder to the `/wp-content/plugins/` directory 33 31 2. Activate the plugin through the 'Plugins' menu in WordPress and that's it. 34 35 Note : if nothing happens please go to Users > Your profile and select the “Coeur” color scheme as default. It will automatically be selected as default for all new users.36 32 37 33 == Frequently Asked Questions == … … 41 37 - Yes the admin color scheme will be used as default for every user. 42 38 43 Will I still be able to change the theme?39 Will the users be able to change the color scheme? 44 40 45 - Yes simply go to "Edit my profile", and pick whichever admin color scheme you want to use.41 - No, the users will no longer be able to change the color scheme in their profiles. 46 42 47 43 == Screenshots == … … 55 51 * The first version of the plugin has been released. 56 52 53 = 1.1 = 54 * Fixes the issue where the color scheme was not selected as default. 55 * Prevents users from changing the color scheme in their profiles. 56 57 57 == Upgrade Notice == 58 58 59 59 = 1.0 = 60 * The first version allows you to give your wordpress dashboard a fresh new look. 60 * The first version allows you to give your WordPress dashboard a fresh new look. 61 62 = 1.1 = 63 * The color scheme is now selected as default for all users, and the plugin also prevents the users from changing it.
Note: See TracChangeset
for help on using the changeset viewer.