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

Merge pull request #10 from Bonnevoy/master

Fix filenames plugin-specifix js and css files.
This commit is contained in:
Tom McFarlin 2012-06-04 06:03:47 -07:00
commit abf0b19e33

View file

@ -114,7 +114,7 @@ class PluginName {
public function register_plugin_styles() { public function register_plugin_styles() {
// TODO change 'plugin-name' to the name of your plugin // TODO change 'plugin-name' to the name of your plugin
wp_register_script( 'plugin-name-admin-styles', plugins_url( 'plugin-name/css/admin.css' ) ); wp_register_script( 'plugin-name-admin-styles', plugins_url( 'plugin-name/css/display.css' ) );
wp_enqueue_script( 'plugin-name-admin-styles' ); wp_enqueue_script( 'plugin-name-admin-styles' );
} // end register_plugin_styles } // end register_plugin_styles
@ -125,7 +125,7 @@ class PluginName {
public function register_plugin_scripts() { public function register_plugin_scripts() {
// TODO change 'plugin-name' to the name of your plugin // TODO change 'plugin-name' to the name of your plugin
wp_register_script( 'plugin-name-plugin-script', plugins_url( 'plugin-name/js/plugin.js' ) ); wp_register_script( 'plugin-name-plugin-script', plugins_url( 'plugin-name/js/display.js' ) );
wp_enqueue_script( 'plugin-name-plugin-script' ); wp_enqueue_script( 'plugin-name-plugin-script' );
} // end register_plugin_scripts } // end register_plugin_scripts