Plugin Directory

Changeset 1341264


Ignore:
Timestamp:
02/02/2016 10:03:44 AM (10 years ago)
Author:
modshrink
Message:

Release version 1.3

Location:
bottom-admin-bar
Files:
4 added
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bottom-admin-bar/tags/1.3/bottom-admin-bar.php

    r1328140 r1341264  
    44Plugin URI: https://github.com/modshrink/bottom-admin-bar
    55Description: While you are logged in to WordPress, this plugin will move to the bottom the admin bar that is displayed on the web site.
    6 Version: 1.2
     6Version: 1.3
    77Author: modshrink
    88Author URI: http://www.modshrink.com/
     
    2626Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2727*/
    28 
    2928$BottomAdminBar = new BottomAdminBar();
    3029
    3130class BottomAdminBar {
    3231    public function __construct() {
     32        add_action( 'after_setup_theme', array( &$this, 'show_toolbar_check' ) );
    3333        add_action( 'plugins_loaded', array( &$this, 'myplugin_init' ) );
    3434        add_action( 'wp_enqueue_scripts', array( &$this, 'admin_bar_script_init' ), 11 );
     
    3636        add_action( 'wp_head', array( &$this, 'my_admin_bar_bump_cb' ) );
    3737        add_action( 'wp_footer', array( &$this, 'keyboard_shortcut' ), 21 );
     38    }
     39
     40    /**
     41     * Checking the 'Show Toolbar when viewing site' check box.
     42     */
     43    public function show_toolbar_check() {
     44        get_currentuserinfo();
     45        if( 'true' !== get_user_meta( get_current_user_id(), 'show_admin_bar_front', 1 ) ) return;
    3846    }
    3947
  • bottom-admin-bar/tags/1.3/readme.txt

    r1328140 r1341264  
    55Requires at least: 3.8
    66Tested up to: 4.4.1
    7 Stable tag: 1.2
     7Stable tag: 1.3
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5050
    5151== Changelog ==
     52= 1.3 =
     53* Support 'Show Toolbar when viewing site' checkbox. (Thanks [reeslo](https://github.com/modshrink/bottom-admin-bar/pull/2)!)
    5254
    5355= 1.2 =
    5456* Support Twenty Sixteen theme.
    5557* Fixed toggle action make blank space.
     58* Change hook for keyboard_shortcut script to wp_footer. (Thanks [cr0ybot](https://github.com/modshrink/bottom-admin-bar/pull/1)!)
    5659
    5760= 1.1 =
  • bottom-admin-bar/trunk/bottom-admin-bar.php

    r1328140 r1341264  
    44Plugin URI: https://github.com/modshrink/bottom-admin-bar
    55Description: While you are logged in to WordPress, this plugin will move to the bottom the admin bar that is displayed on the web site.
    6 Version: 1.2
     6Version: 1.3
    77Author: modshrink
    88Author URI: http://www.modshrink.com/
     
    2626Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2727*/
    28 
    2928$BottomAdminBar = new BottomAdminBar();
    3029
    3130class BottomAdminBar {
    3231    public function __construct() {
     32        add_action( 'after_setup_theme', array( &$this, 'show_toolbar_check' ) );
    3333        add_action( 'plugins_loaded', array( &$this, 'myplugin_init' ) );
    3434        add_action( 'wp_enqueue_scripts', array( &$this, 'admin_bar_script_init' ), 11 );
     
    3636        add_action( 'wp_head', array( &$this, 'my_admin_bar_bump_cb' ) );
    3737        add_action( 'wp_footer', array( &$this, 'keyboard_shortcut' ), 21 );
     38    }
     39
     40    /**
     41     * Checking the 'Show Toolbar when viewing site' check box.
     42     */
     43    public function show_toolbar_check() {
     44        get_currentuserinfo();
     45        if( 'true' !== get_user_meta( get_current_user_id(), 'show_admin_bar_front', 1 ) ) return;
    3846    }
    3947
  • bottom-admin-bar/trunk/readme.txt

    r1328140 r1341264  
    55Requires at least: 3.8
    66Tested up to: 4.4.1
    7 Stable tag: 1.2
     7Stable tag: 1.3
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5050
    5151== Changelog ==
     52= 1.3 =
     53* Support 'Show Toolbar when viewing site' checkbox. (Thanks [reeslo](https://github.com/modshrink/bottom-admin-bar/pull/2)!)
    5254
    5355= 1.2 =
    5456* Support Twenty Sixteen theme.
    5557* Fixed toggle action make blank space.
     58* Change hook for keyboard_shortcut script to wp_footer. (Thanks [cr0ybot](https://github.com/modshrink/bottom-admin-bar/pull/1)!)
    5659
    5760= 1.1 =
Note: See TracChangeset for help on using the changeset viewer.