diff --git a/README.md b/README.md index 00690ff..61bcd79 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ Contributors: kremalicious Donate link: http://krlc.us/givecoffee Tags: notification, adminmenu, toolbar, ios, badge Requires at least: 2.7 -Tested up to: 3.4 -Stable tag: 0.3.6 +Tested up to: 3.8 +Stable tag: 1.0.0 iOS Style Notification Badges for WordPress diff --git a/badged/admin/assets/css/badged-ios6.css b/badged/admin/assets/css/badged-ios6.css index b511bf2..c2ac340 100644 --- a/badged/admin/assets/css/badged-ios6.css +++ b/badged/admin/assets/css/badged-ios6.css @@ -1,8 +1,7 @@ /* ============================================================== */ -/* Badged */ +/* Badged pre-iOS7 styles */ /* ------------------------ */ -/* CSS Styles for the Admin Menu only */ /* by Matthias Kretschmann | http://mkretschmann.com */ /* ============================================================== */ diff --git a/badged/admin/assets/css/badged.css b/badged/admin/assets/css/badged.css index bf24df6..163a06b 100644 --- a/badged/admin/assets/css/badged.css +++ b/badged/admin/assets/css/badged.css @@ -1,7 +1,6 @@ /* ============================================================== */ /* Badged */ /* ------------------------ */ -/* CSS Styles for the Admin Menu only */ /* by Matthias Kretschmann | http://mkretschmann.com */ /* ============================================================== */ diff --git a/badged/admin/class-badged-admin.php b/badged/admin/class-badged-admin.php index 4f1d4af..96b4e8b 100755 --- a/badged/admin/class-badged-admin.php +++ b/badged/admin/class-badged-admin.php @@ -21,16 +21,16 @@ class Badged { /** * Plugin version, used for cache-busting of style and script file references. * - * @since 2.0.0 + * @since 1.0.0 * @var string */ - const VERSION = '2.0.0'; + const VERSION = '1.0.0'; /** * * Unique identifier. * - * @since 2.0.0 + * @since 1.0.0 * @var string */ protected $plugin_slug = 'badged'; @@ -38,7 +38,7 @@ class Badged { /** * Instance of this class. * - * @since 2.0.0 + * @since 1.0.0 * @var object */ protected static $instance = null; @@ -46,7 +46,7 @@ class Badged { /** * Slug of the plugin screen. * - * @since 2.0.0 + * @since 1.0.0 * @var string */ protected $plugin_screen_hook_suffix = null; @@ -55,7 +55,7 @@ class Badged { * Initialize the plugin by loading scripts & styles and adding a * settings page and menu. * - * @since 2.0.0 + * @since 1.0.0 */ private function __construct() { @@ -90,7 +90,7 @@ class Badged { /** * Return an instance of this class. * - * @since 2.0.0 + * @since 1.0.0 * @return object A single instance of this class. */ public static function get_instance() { @@ -106,7 +106,7 @@ class Badged { /** * Fired when the plugin is activated. * - * @since 2.0.0 + * @since 1.0.0 * @param boolean $network_wide True if WPMU superadmin uses * "Network Activate" action, false if * WPMU is disabled or plugin is @@ -142,7 +142,7 @@ class Badged { /** * Fired when the plugin is deactivated. * - * @since 2.0.0 + * @since 1.0.0 * @param boolean $network_wide True if WPMU superadmin uses * "Network Deactivate" action, false if * WPMU is disabled or plugin is @@ -179,7 +179,7 @@ class Badged { /** * Fired when a new site is activated with a WPMU environment. * - * @since 2.0.0 + * @since 1.0.0 * @param int $blog_id ID of the new blog. */ public function activate_new_site( $blog_id ) { @@ -200,7 +200,7 @@ class Badged { * - not spam * - not deleted * - * @since 2.0.0 + * @since 1.0.0 * @return array|false The blog ids, false if no matches. */ private static function get_blog_ids() { @@ -219,7 +219,7 @@ class Badged { /** * Fired for each blog when the plugin is activated. * - * @since 2.0.0 + * @since 1.0.0 */ private static function single_activate() { @@ -234,7 +234,7 @@ class Badged { /** * Fired for each blog when the plugin is deactivated. * - * @since 2.0.0 + * @since 1.0.0 */ private static function single_deactivate() { @@ -251,7 +251,7 @@ class Badged { /** * Load the plugin text domain for translation. * - * @since 2.0.0 + * @since 1.0.0 */ public function load_plugin_textdomain() { @@ -266,7 +266,7 @@ class Badged { /** * Register and enqueue admin-specific style sheet. * - * @since 2.0.0 + * @since 1.0.0 * @return null Return early if no settings page is registered. */ public function enqueue_admin_styles() { @@ -300,7 +300,7 @@ class Badged { /** * Register and enqueue admin bar specific style sheet. * - * @since 2.0.0 + * @since 1.0.0 */ public function enqueue_adminbar_styles() { @@ -322,7 +322,7 @@ class Badged { /** * Register the administration menu for this plugin into the WordPress Dashboard menu. - * @since 2.0.0 + * @since 1.0.0 */ public function add_plugin_admin_menu() { @@ -338,7 +338,7 @@ class Badged { /** * Render the settings page for this plugin. - * @since 2.0.0 + * @since 1.0.0 */ public function display_plugin_admin_page() { include_once( 'views/admin.php' ); @@ -346,7 +346,7 @@ class Badged { /** * Set default options - * @since 2.0.0 + * @since 1.0.0 */ public function badged_default_settings() { @@ -360,7 +360,7 @@ class Badged { /** * Register settings - * @since 2.0.0 + * @since 1.0.0 */ public function initialize_badged_settings() { @@ -418,30 +418,4 @@ class Badged { } - /** - * Add settings action link to the plugins page. - * - * @since 2.0.0 - */ - public function add_action_links( $links ) { - - return array_merge( - array( - 'settings' => '' . __( 'Settings', $this->plugin_slug ) . '' - ), - $links - ); - - } - - /** - * WordPress Actions: http://codex.wordpress.org/Plugin_API#Actions - * Action Reference: http://codex.wordpress.org/Plugin_API/Action_Reference - * - * @since 2.0.0 - */ - public function action_method_name() { - // TODO: Define your action hook callback here - } - } \ No newline at end of file diff --git a/badged/admin/views/admin.php b/badged/admin/views/admin.php index fc5a1cc..0217531 100644 --- a/badged/admin/views/admin.php +++ b/badged/admin/views/admin.php @@ -2,9 +2,6 @@ /** * Represents the view for the administration dashboard. * - * This includes the header, options, and other information that should provide - * The User Interface to the end user. - * * @package Badged * @author Matthias Kretschmann * @license GPL-2.0+ diff --git a/badged/badged.php b/badged/badged.php index 06e571e..dcb61e8 100644 --- a/badged/badged.php +++ b/badged/badged.php @@ -17,7 +17,7 @@ * Description: Transforms the standard WordPress update & comment notification badges into iOS-styled ones. Just activate and enjoy the red badges. * Author: Matthias Kretschmann * Author URI: http://matthiaskretschmann.com - * Version: 2.0.0 + * Version: 1.0.0 * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Domain Path: /languages @@ -68,16 +68,12 @@ if ( ! defined( 'BADGED_BASENAME' ) ){ /** * Let's roll * - * @since 2.0.0 + * @since 1.0.0 * */ - -//if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) { - require_once( BADGED_PATH . '/admin/class-badged-admin.php' ); - add_action( 'plugins_loaded', array( 'Badged', 'get_instance' ) ); - - register_activation_hook( $badged_plugin_file, array( 'Badged', 'activate' ) ); - register_deactivation_hook( $badged_plugin_file, array( 'Badged', 'deactivate' ) ); +require_once( BADGED_PATH . '/admin/class-badged-admin.php' ); +add_action( 'plugins_loaded', array( 'Badged', 'get_instance' ) ); - //} +register_activation_hook( $badged_plugin_file, array( 'Badged', 'activate' ) ); +register_deactivation_hook( $badged_plugin_file, array( 'Badged', 'deactivate' ) ); diff --git a/badged/readme.txt b/badged/readme.txt index 00690ff..61bcd79 100644 --- a/badged/readme.txt +++ b/badged/readme.txt @@ -3,8 +3,8 @@ Contributors: kremalicious Donate link: http://krlc.us/givecoffee Tags: notification, adminmenu, toolbar, ios, badge Requires at least: 2.7 -Tested up to: 3.4 -Stable tag: 0.3.6 +Tested up to: 3.8 +Stable tag: 1.0.0 iOS Style Notification Badges for WordPress