diff --git a/badged/admin/assets/css/badged.css b/badged/admin/assets/css/badged.css index 0191882..0b9b2e0 100644 --- a/badged/admin/assets/css/badged.css +++ b/badged/admin/assets/css/badged.css @@ -17,21 +17,25 @@ #wp-admin-bar-updates .ab-label, #wp-admin-bar-comments .ab-label { - /* need to be rude for these */ + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + + /* WP defaults overwrites, need to be rude for these */ background: #ff0000 !important; - box-shadow: 0 1px 0 #888 !important; + box-shadow: 0 1px 0 rgba(0,0,0,.2) !important; + text-shadow: none !important; color: #fff; /* just in case, is white per WP default */ - font: 13px/21px 'Helvetica Neue', Helvetica, Verdana, Geneva, sans-serif; + font: 12px/16px 'Helvetica Neue', Helvetica, Verdana, Geneva, sans-serif; font-weight: 200; text-align: center; - width: 21px; - height: 21px; + width: 20px; + height: 20px; display: inline-block; - border-radius: 21px; - - background-clip: padding-box; + border-radius: 20px; + padding: 2px; margin-top: -2px; vertical-align: baseline; diff --git a/badged/badged.php b/badged/badged.php index e463f4c..9ff1d1a 100644 --- a/badged/badged.php +++ b/badged/badged.php @@ -85,7 +85,7 @@ add_action( 'plugins_loaded', array( 'Badged', 'get_instance' ) ); // // Admin Stuff // -if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) { +if ( is_admin() ) { require_once( BADGED_PATH . '/admin/class-badged-admin.php' ); add_action( 'plugins_loaded', array( 'Badged_Admin', 'get_instance' ) ); diff --git a/badged/public/class-badged.php b/badged/public/class-badged.php index fe8f07e..1fc7681 100755 --- a/badged/public/class-badged.php +++ b/badged/public/class-badged.php @@ -51,7 +51,7 @@ class Badged { private function __construct() { // Load plugin text domain - add_action( 'init', array( $this, 'load_badged_textdomain' ) ); + add_action( 'init', array( $this, 'load_plugin_textdomain' ) ); // Activate plugin when new blog is added add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) ); @@ -228,7 +228,7 @@ class Badged { $locale = apply_filters( 'plugin_locale', get_locale(), $domain ); load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' ); - load_plugin_textdomain( $domain, FALSE, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' ); + load_plugin_textdomain( $domain, FALSE, basename( BADGED_PATH ) . '/languages/' ); }