Plugin Directory

Changeset 867486


Ignore:
Timestamp:
03/01/2014 11:53:00 AM (12 years ago)
Author:
titouanc
Message:

tagging version 1.1

Location:
coeur-admin-color-scheme/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • coeur-admin-color-scheme/trunk/coeur.php

    r866512 r867486  
    1414function coeur_admin_color_scheme() {
    1515    //Get the plugin directory
    16     $url = get_settings('siteurl');
     16    $url = get_settings( 'siteurl' );
    1717    $plugin_dir = $dir = $url . '/wp-content/plugins/coeur-admin-color-scheme/css/';
    1818    //Coeur
     
    2525
    2626// 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 );
     27function update_user_option_admin_color( $color_scheme ) {
     28    $color_scheme = 'coeur';
     29
     30    return $color_scheme;
    3331}
    34 add_action( 'user_register', 'coeur_admin_default_color_scheme' );
     32
     33add_filter( 'get_user_option_admin_color', 'update_user_option_admin_color', 5 );
     34
     35// Prevent users from changing the color scheme
     36remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
    3537
    3638// Revome default value
     
    4850// Custom Login Page Styles.
    4951function coeur_admin_login_css() {
    50    
    51     $url = get_settings('siteurl');
     52
     53    $url = get_settings( 'siteurl' );
    5254    $plugin_dir = $dir = $url . '/wp-content/plugins/coeur-admin-color-scheme/css/'; ?>
    5355
  • coeur-admin-color-scheme/trunk/readme.txt

    r866525 r867486  
    1313== Description ==
    1414
    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.
     15This 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.
    1616
    1717== Installation ==
     
    2222
    23231. 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"
     242. Search for "Coeur Admin Color Scheme". Make sure it's the right plugin, the author should be "Titouanc”.
    25253. Hit install now
    26264. 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.
    2927
    3028Manually
     
    32301. Upload `coeur-admin` folder to the `/wp-content/plugins/` directory
    33312. 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.
    3632
    3733== Frequently Asked Questions ==
     
    4137- Yes the admin color scheme will be used as default for every user.
    4238
    43 Will I still be able to change the theme?
     39Will the users be able to change the color scheme?
    4440
    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.
    4642
    4743== Screenshots ==
     
    5551* The first version of the plugin has been released.
    5652
     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
    5757== Upgrade Notice ==
    5858
    5959= 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.