1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-22 20:03:53 +02:00

extending the new plugin name base class

This commit is contained in:
Tom McFarlin 2014-05-05 00:17:13 -04:00
parent e503be7e38
commit f6a587372a
2 changed files with 8 additions and 6 deletions

View file

@ -20,8 +20,9 @@
* @package Plugin_Name * @package Plugin_Name
* @subpackage Plugin_Name/admin * @subpackage Plugin_Name/admin
* @author Your Name <email@example.com> * @author Your Name <email@example.com>
* @extends Plugin_Name
*/ */
class Plugin_Name_Admin { class Plugin_Name_Admin extends Plugin_Name {
/** /**
* Short description. (use period) * Short description. (use period)
@ -44,7 +45,7 @@ class Plugin_Name_Admin {
* class. * class.
*/ */
wp_enqueue_style( 'plugin-name-admin', plugin_dir_url( __FILE__ ) . 'css/plugin-name-admin.css', array(), PLUGIN_NAME_VER, 'all' ); wp_enqueue_style( 'plugin-name-admin', plugin_dir_url( __FILE__ ) . 'css/plugin-name-admin.css', array(), $this->version, 'all' );
} }
@ -69,7 +70,7 @@ class Plugin_Name_Admin {
* class. * class.
*/ */
wp_enqueue_script( 'plugin-name-admin', plugin_dir_url( __FILE__ ) . 'js/plugin-name-admin.js', array( 'jquery' ), PLUGIN_NAME_VER, FALSE ); wp_enqueue_script( 'plugin-name-admin', plugin_dir_url( __FILE__ ) . 'js/plugin-name-admin.js', array( 'jquery' ), $this->version, FALSE );
} }

View file

@ -20,8 +20,9 @@
* @package Plugin_Name * @package Plugin_Name
* @subpackage Plugin_Name/public * @subpackage Plugin_Name/public
* @author Your Name <email@example.com> * @author Your Name <email@example.com>
* @extends Plugin_Name
*/ */
class Plugin_Name_Public { class Plugin_Name_Public extends Plugin_Name {
/** /**
* Short description. (use period) * Short description. (use period)
@ -44,7 +45,7 @@ class Plugin_Name_Public {
* class. * class.
*/ */
wp_enqueue_style( 'plugin-name-public', plugin_dir_url( __FILE__ ) . 'css/plugin-name-public.css', array(), PLUGIN_NAME_VER, 'all' ); wp_enqueue_style( 'plugin-name-public', plugin_dir_url( __FILE__ ) . 'css/plugin-name-public.css', array(), $this->version, 'all' );
} }
@ -69,7 +70,7 @@ class Plugin_Name_Public {
* class. * class.
*/ */
wp_enqueue_script( 'plugin-name-public', plugin_dir_url( __FILE__ ) . 'js/plugin-name-public.js', array( 'jquery' ), PLUGIN_NAME_VER, FALSE ); wp_enqueue_script( 'plugin-name-public', plugin_dir_url( __FILE__ ) . 'js/plugin-name-public.js', array( 'jquery' ), $this->version, FALSE );
} }