Plugin Directory

Changeset 1672907


Ignore:
Timestamp:
06/07/2017 11:11:10 PM (9 years ago)
Author:
GeekStreetWP
Message:

update to new version and added new features

Location:
plugins-admin-bar
Files:
126 added
2 edited

Legend:

Unmodified
Added
Removed
  • plugins-admin-bar/trunk/plugins-admin-bar.php

    r1640937 r1672907  
    44 * Plugin URI: https://wordpress.org/plugins/plugins-admin-bar/
    55 * Description: Add a top level menu item to the admin bar for plugin links.
    6  * Version: 1.3
     6 * Version: 1.4
    77 * Author: Russell Aaron
    88 * Author URI: http://russellenvy.com
     
    1919        //is multisite && user can manage_network_plugins
    2020        if ( is_multisite() && current_user_can('manage_network_options') ) {
    21         //network parent link under site-name
     21        //Adds New PLugin link to new-content tab
     22        $args = array(
     23        'id' => 'add-a-new-plugin-network-plugins',
     24        'title' => esc_html__( 'Plugin', 'plugins-admin-bar' ),
     25        'href' => esc_url( network_admin_url( '/plugin-install.php' ) ),
     26        'parent' => 'new-content',
     27        'meta' => array(
     28            'class' => 'add-a-new-plugin-network-plugins',
     29            'title' => esc_html__( 'Add A New Plugin', 'plugins-admin-bar' ),
     30            )
     31        );
     32        $wp_admin_bar->add_node($args);
     33        //Adds network parent link under site-name
    2234        $args = array(
    2335        'id' => 'network-plugins',
     
    3143        );
    3244        $wp_admin_bar->add_node($args);
    33         //Add New Network Plugin Child Link to network-plugins parent link
    34         $args = array(
    35         'id' => 'network-plugins-add-new',
    36         'title' => esc_html__( 'Add New Network Plugin', 'plugins-admin-bar' ),
    37         'href' => esc_url( network_admin_url( '/plugin-install.php' ) ),
    38         'parent' => 'network-plugins',
    39         'meta' => array(
    40             'class' => 'network-plugins-add-new',
    41             'title' => esc_html__( 'Add a new plugin to your network', 'plugins-admin-bar' ),
    42             )
    43         );
    44         $wp_admin_bar->add_node($args);
    4545        //Add New Popular Plugin Child Link to network-plugins parent link
    4646        $args = array(
     
    4848        'title' => esc_html__( 'Add New Popular Plugin', 'plugins-admin-bar' ),
    4949        'href' => esc_url( network_admin_url( '/plugin-install.php?tab=popular' ) ),
    50         'parent' => 'network-plugins-add-new',
     50        'parent' => 'add-a-new-plugin-network-plugins',
    5151        'meta' => array(
    5252            'class' => 'network-plugins-add-popular',
     
    6060        'title' => esc_html__( 'Add New Recommended Plugin', 'plugins-admin-bar' ),
    6161        'href' => esc_url( network_admin_url( '/plugin-install.php?tab=recommended' ) ),
    62         'parent' => 'network-plugins-add-new',
     62        'parent' => 'add-a-new-plugin-network-plugins',
    6363        'meta' => array(
    6464            'class' => 'network-plugins-add-recommended',
     
    7272        'title' => esc_html__( 'Add New Favorites Plugin', 'plugins-admin-bar' ), 
    7373        'href' => esc_url( network_admin_url( '/plugin-install.php?tab=favorites' ) ),
    74         'parent' => 'network-plugins-add-new',
     74        'parent' => 'add-a-new-plugin-network-plugins',
    7575        'meta' => array(
    7676            'class' => 'network-plugins-add-favorites',
     
    200200        //is_single_site && user can manage_options
    201201        else if ( ! is_multisite() && current_user_can('manage_options') ) {
     202        //Adds New PLugin link to new-content tab
     203        $args = array(
     204        'id' => 'add-a-new-plugin-single-plugins',
     205        'title' => esc_html__( 'Plugin', 'plugins-admin-bar' ),
     206        'href' => esc_url( network_admin_url( '/plugin-install.php' ) ),
     207        'parent' => 'new-content',
     208        'meta' => array(
     209            'class' => 'add-a-new-plugin-single-plugins',
     210            'title' => esc_html__( 'Add A New Plugin', 'plugins-admin-bar' ),
     211            )
     212        );
     213        $wp_admin_bar->add_node($args);
    202214        $args = array(
    203215        'id' => 'single-plugins',
     
    212224        $wp_admin_bar->add_node($args);
    213225
    214         //Add New Plugin Child Link to installed-plugins parent link
    215         $args = array(
    216         'id' => 'plugins-add-new',
    217         'title' => esc_html__( 'Add New Plugin', 'plugins-admin-bar' ),
    218         'href' => esc_url( admin_url( '/plugin-install.php' ) ),
    219         'parent' => 'single-plugins',
    220         'meta' => array(
    221             'class' => 'single-plugins-add-new',
    222             'title' => esc_html__( 'Add a new plugin', 'plugins-admin-bar' ),
    223             )
    224         );
    225         $wp_admin_bar->add_node($args);
    226 
    227226        //Add Active Plugin Child Link to installed-plugins parent link
    228227        $args = array(
     
    250249        );
    251250        $wp_admin_bar->add_node($args);
     251        //if recently active plugins
     252        if (get_site_option( 'recently_activated', array() ) ){
     253        //Add Recently Active Plugins Child Link to network-plugins parent link
     254        $args = array(
     255        'id' => 'single-plugins-recently-active',
     256        'title' => esc_html__( 'Recenlty Active Plugins','plugins-admin-bar' ),
     257        'href' => esc_url( admin_url( '/plugins.php?plugin_status=recently_activated' ) ),
     258        'parent' => 'single-plugins',
     259        'meta' => array(
     260            'class' => 'single-plugins-recently-active',
     261            'title' => esc_html__( 'View Recently Active Plugins','plugins-admin-bar' ),
     262            )
     263        );
     264        $wp_admin_bar->add_node($args);
     265        //if recently active plugins
     266        }
    252267
    253268        // Add popular link to the installed-plugins link
     
    256271        'title' => esc_html__( 'Add Popuplar Plugins', 'plugins-admin-bar' ),
    257272        'href' => esc_url( admin_url( '/plugin-install.php?tab=popular' ) ),
    258         'parent' => 'plugins-add-new',
     273        'parent' => 'add-a-new-plugin-single-plugins',
    259274        'meta' => array(
    260275            'class' => 'single-plugins-popular',
     
    269284        'title' => esc_html__( 'Add Recommended Plugins', 'plugins-admin-bar' ),
    270285        'href' => esc_url( admin_url('/plugin-install.php?tab=recommended') ),
    271         'parent' => 'plugins-add-new',
     286        'parent' => 'add-a-new-plugin-single-plugins',
    272287        'meta' => array(
    273288            'class' => 'single-plugins-recommended',
     
    282297        'title' => esc_html__( 'Add Favorites Plugins', 'plugins-admin-bar' ),
    283298        'href' => esc_url( admin_url( '/plugin-install.php?tab=favorites' ) ),
    284         'parent' => 'plugins-add-new',
     299        'parent' => 'add-a-new-plugin-single-plugins',
    285300        'meta' => array(
    286301            'class' => 'single-plugins-favorites',
  • plugins-admin-bar/trunk/readme.txt

    r1640937 r1672907  
    55Requires at least: 4.1
    66Tested up to: 4.7.3
    7 Stable tag: 1.3
     7Stable tag: 1.4
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1717WordPress has the WP Admin Bar at the top of every site. On the front end of the site, you'll see the name of your site as a link to /wp-admin/. Under the Site Name, there is a sub-menu with quick links to the Dashboard, Themes, Widgets, and Menus.
    1818
    19 = What shows up when the plugin is installed on a single install of WordPress? =
     19= How It Works on a Single Install =
    2020
    21 Plugin Admin Bar adds a new menu item to the quick links sub-menu, called Plugins, for a single site install.
     21Install the plugin and click activate. In the WP Admin Bar, at the top of your WordPress Site, hover your mouse on the +New Menu Item.
     22Inside is a list of the new things you can add to your site. You'll notice a menu item called "PLugins". Click to add a new plugin, or you can hover over the Plugins menu item and add a new plugin from the Popular, Recommended, and Favorites list.
    2223
    23 The new menu item has it's own sub menu with quick links to Add a new plugin, add new popular plugin, add new recommended plugin, add new favorite plugin, view active plugins, and view inactive plugins.
     24In the WP Admin Bar, find the menu item with the Site Title. It has a house icon to the left. Hover over the Site Title menu item and you'll now see "Plugins" included in this list as well. From here, you'll be able to see Active and Inactive plugins.
    2425
    25 = What shows up when the plugin is installed on a multisite install of WordPress and I am a Super Admin? =
     26If you have recently deactivated a plugin, a third menu item will appear as "Recently Active Plugins". After the allowed time has passed (7 days), this menu item will be removed until another plugin is recently deactivated. The menu item will also be removed if you Reactivate the recently deactivated plugin.
    2627
    27 Plugin Admin Bar adds two new menu item to the quick links sub-menu, called Plugins and Network Plugins, for a multisite install, as long as you are the Super Admin of the multisite network.
     28= How It Works on a Multisite Install =
    2829
    29 The two new menu items have their own sub menu items with quick links to Add a new network plugin, add new popular plugin, add new recommended plugin, add new favorite plugin, view network active plugins, and view network inactive plugins, and view network must use plugins. You can also view plugins active or inactive for a single site.
     30If you're a super admin (you can manage the entire site):
    3031
    31 = What shows up when the plugin is installed on a multisite install of WordPress and I am an Admin? =
     32Install the plugin and click activate. In the WP Admin Bar, at the top of your WordPress Site, hover your mouse on the +New Menu Item.
     33Inside is a list of the new things you can add to your site. You'll notice a menu item called "PLugins". Click to add a new plugin to the network, or you can hover over the Plugins menu item and add a new Popular, Recommended, and Favorites plugin to the network.
    3234
    33 If you are a single site admin, on multisite, you'll only see all plugins, active & inactive plugins in the dropdown menu item.
     35You'll see two new menu items under the Site Title menu item in the WP Admin Bar.
     36"Network Plugins" & "Plugins" now appear under the Site Title. Under the "Network Plugins" menu item, you can see all of the Network Active, Inactive and Must use plugins. Under the "Plugins" menu item, you can see the Active and Inactive for each sub-site on the network.
    3437
    35 See screenshots for more information.
     38If you are an admin of a sub-site (you can only activate/deactive plugins):
     39You will only see the "Plugins" menu item under the Site Title. You'll only be able to see the Active and Inactive plugins on your sub-site. Remember, only a super admin can add a plugin.
    3640
    37 With Plugins Admin Bar, you'll never have to click 4 or 5 times just to install a new plugin, ever again.
     41With Plugins Admin Bar, you'll never have to click 4 or 5 times just to view or install or a new plugin, ever again.
    3842                     
    3943== Frequently Asked Questions ==
     
    4650
    4751There is an option in the Network Settings where a network admin (Super Admin) has to select the option to show the plugins menu in the left naviagtion bar for admins of a single Multisite site.
     52
     53= Why doesn't the Recently Activated Plugins menu item appear on Multisite?  =
     54
     55It soon will. We have not found a clean way of displaying this menu item on the network side, and on the subsite level. Hang tight.
    4856
    4957== Installation ==
     
    7583== Screenshots ==
    7684
    77 1. A single site can view active and inactive plugins, add a new plugin or add popular, recommended and favorite plugins.
    78 2. A multisite network can view network active, inactive and must use plugins. Can add new, popular, recommended and favorite plugins. Can view active single site active and inactive plugins.
     851. A single site can view active and inactive plugins, add a new plugin or add popular, recommended and favorite plugins. Please be advised, this photo is from version 1.3.
     862. A multisite network can view network active, inactive and must use plugins. Can add new, popular, recommended and favorite plugins. Can view active single site active and inactive plugins. Please be advised, this photo is from version 1.3.
    7987
    8088== Changelog ==
     89
     90= 1.4 =
     91* Added: Plugin quicklink to the +New drop down in WP Admin Bar.
     92* Added: Single Site Install will now display "Recently Active" menu item if a plugin has been recently deacitvated in the allowed time frame (7 days), once the notice fires off. When plugin is Reactivated, menu item hides again.
     93* Fixed: Moved Add New Popular, Recommended, and Favorites plugins to the Drop down link in +New quicklink.
     94* Fixed: Menu items are only two levels deep, not three.
    8195
    8296= 1.3 =
Note: See TracChangeset for help on using the changeset viewer.