Changeset 733723
- Timestamp:
- 06/28/2013 07:28:08 PM (13 years ago)
- Location:
- wp-vgwort/trunk
- Files:
-
- 3 edited
-
class-wp-vgwort.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-vgwort.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-vgwort/trunk/class-wp-vgwort.php
r728901 r733723 24 24 * @var string 25 25 */ 26 protected $version = '2.0. 0';26 protected $version = '2.0.1'; 27 27 28 28 /** … … 85 85 86 86 $this->vgWortMeta = get_option('wp_vgwortmetaname', 'wp_vgwortmarke'); 87 88 // Load admin style sheet and JavaScript.89 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );90 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) );91 92 // Load public-facing style sheet and JavaScript.93 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles' ) );94 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );95 87 96 88 add_action( 'edit_user_profile' , array( &$this , 'add_profile_data' )); … … 130 122 131 123 return self::$instance; 132 }133 134 /**135 * Register and enqueue admin-specific style sheet.136 *137 * @since 1.0.0138 *139 * @return null Return early if no settings page is registered.140 */141 public function enqueue_admin_styles() {142 143 if ( ! isset( $this->plugin_screen_hook_suffix ) ) {144 return;145 }146 147 $screen = get_current_screen();148 if ( $screen->id == $this->plugin_screen_hook_suffix ) {149 wp_enqueue_style( $this->plugin_slug .'-admin-styles', plugins_url( 'css/admin.css', __FILE__ ), $this->version );150 }151 152 }153 154 /**155 * Register and enqueue admin-specific JavaScript.156 *157 * @since 1.0.0158 *159 * @return null Return early if no settings page is registered.160 */161 public function enqueue_admin_scripts() {162 163 if ( ! isset( $this->plugin_screen_hook_suffix ) ) {164 return;165 }166 167 $screen = get_current_screen();168 if ( $screen->id == $this->plugin_screen_hook_suffix ) {169 wp_enqueue_script( $this->plugin_slug . '-admin-script', plugins_url( 'js/admin.js', __FILE__ ), array( 'jquery' ), $this->version );170 }171 172 }173 174 /**175 * Register and enqueue public-facing style sheet.176 *177 * @since 1.0.0178 */179 public function enqueue_styles() {180 wp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'css/public.css', __FILE__ ), $this->version );181 }182 183 /**184 * Register and enqueues public-facing JavaScript files.185 *186 * @since 1.0.0187 */188 public function enqueue_scripts() {189 wp_enqueue_script( $this->plugin_slug . '-plugin-script', plugins_url( 'js/public.js', __FILE__ ), array( 'jquery' ), $this->version );190 124 } 191 125 -
wp-vgwort/trunk/readme.txt
r728901 r733723 5 5 Requires at least: 3.0 6 6 Tested up to: 3.5 7 Stable tag: 1.97 Stable tag: 2.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 41 41 42 42 == Changelog == 43 44 = 2.0.1 = 45 * fixes compatibility issue with wp_minify 43 46 44 47 = 2.0.0 = -
wp-vgwort/trunk/wp-vgwort.php
r728901 r733723 13 13 * Plugin URI: http://www.mywebcheck.de/vg-wort-plugin-wordpress/ 14 14 * Description: Verwaltung der VG Wort Zählpixel 15 * Version: 2.0. 015 * Version: 2.0.1 16 16 * Author: Marcus Franke 17 17 * Author URI: http://mywebcheck.de
Note: See TracChangeset
for help on using the changeset viewer.