mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
extending the new plugin name base class
This commit is contained in:
parent
e503be7e38
commit
f6a587372a
2 changed files with 8 additions and 6 deletions
|
@ -20,8 +20,9 @@
|
|||
* @package Plugin_Name
|
||||
* @subpackage Plugin_Name/admin
|
||||
* @author Your Name <email@example.com>
|
||||
* @extends Plugin_Name
|
||||
*/
|
||||
class Plugin_Name_Admin {
|
||||
class Plugin_Name_Admin extends Plugin_Name {
|
||||
|
||||
/**
|
||||
* Short description. (use period)
|
||||
|
@ -44,7 +45,7 @@ class Plugin_Name_Admin {
|
|||
* 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.
|
||||
*/
|
||||
|
||||
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 );
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -20,8 +20,9 @@
|
|||
* @package Plugin_Name
|
||||
* @subpackage Plugin_Name/public
|
||||
* @author Your Name <email@example.com>
|
||||
* @extends Plugin_Name
|
||||
*/
|
||||
class Plugin_Name_Public {
|
||||
class Plugin_Name_Public extends Plugin_Name {
|
||||
|
||||
/**
|
||||
* Short description. (use period)
|
||||
|
@ -44,7 +45,7 @@ class Plugin_Name_Public {
|
|||
* 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.
|
||||
*/
|
||||
|
||||
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 );
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue