Changeset 2062092
- Timestamp:
- 04/03/2019 07:44:12 AM (7 years ago)
- Location:
- wp-extend-toolbar/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
wp-extend-toolbar.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-extend-toolbar/trunk/readme.txt
r1934237 r2062092 3 3 Tags: plugin, admin bar, tool bar, custom admin bar, custom tool bar 4 4 Requires at least: 4.0 5 Tested up to: 4.9.76 Stable tag: 2.0. 15 Tested up to: 5.1.1 6 Stable tag: 2.0.2 7 7 Requires PHP: 5.2.4 8 8 License: GPLv2 … … 26 26 27 27 1. Upload `WP Extend Toolbar` to the `/wp-content/plugins/` directory 28 1. Activate the plugin29 1. Adds a page informationto the admin bar.28 2. Activate the plugin 29 3. Page information adds to the admin bar. 30 30 31 31 … … 36 36 37 37 == Changelog == 38 39 = 2.0.2 = 40 * Bugfix. 38 41 39 42 = 2.0.1 = -
wp-extend-toolbar/trunk/wp-extend-toolbar.php
r1919938 r2062092 5 5 Description: Adds a page information to the admin bar. 6 6 Author: Michinari Odajima 7 Version: 2.0. 17 Version: 2.0.2 8 8 Author URI: https://piece-web.jp/ 9 9 Domain Path: /language … … 81 81 ); 82 82 83 $base_url = plugins_url(); 84 $img_url = $base_url . '/img/btn-close.png'; 83 $img_url = $this->get_plugins_url('/img/btn-close.png'); 85 84 86 85 echo <<<EOM … … 91 90 function enqueue() { 92 91 93 wp_enqueue_style( 'wp-extend-toolbar', plugins_url( "css/wp-extend-toolbar.css", __FILE__), array() );94 wp_enqueue_script( 'wp-extend-toolbar', plugins_url( "js/wp-extend-toolbar.js", __FILE__ ),array( 'jquery' ), null, true );92 wp_enqueue_style( 'wp-extend-toolbar', $this->get_plugins_url( "/css/wp-extend-toolbar.css" ), array() ); 93 wp_enqueue_script( 'wp-extend-toolbar', $this->get_plugins_url( "/js/wp-extend-toolbar.js" ), array( 'jquery' ), null, true ); 95 94 96 95 } 97 96 98 function plugins_url() {97 function get_plugins_url( $path = '' ) { 99 98 100 return plugins_url( '', __FILE__ );99 return plugins_url( $path, __FILE__ ); 101 100 102 101 }
Note: See TracChangeset
for help on using the changeset viewer.