1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-23 04:13:53 +02:00
Commit graph

11 commits

Author SHA1 Message Date
Tom McFarlin
11af5e0d11 Merge pull request #27 from mikkelbreum/master
improvements and additions (added settings page)
2013-05-07 13:55:19 -07:00
Japh
43e69da2e4 Merged upstream changes, maintained separation of uninstall functionality 2013-04-18 12:26:36 +10:00
Mikkel Breum
3d85de0c95 Restricted scripts and styles to load only on plugin settings page if it is enabled.
If the Settings page has been activated, the scripts and styles will only be loaded on the settings page. If not, they will be loaded for all admin pages (like before this commit)

Also added the __FILE__ magic constant as a second parameter to the admin_enqueue_style and admin_enqueue_script, the user no longer needs to change 'plugin-name'. This also makes the code more robust.
2013-04-07 23:14:44 +02:00
Mikkel Breum
fd69c019ec Added Plugin Settings page (commented out)
Added a Plugin Settings page, that can be enabled by uncommenting the line that hooks it into the admin_menu action hook.

Added additional views that contain the WordPress standard markup to wrap the plugin settings markup.

The views are now loaded into the plugin page.
2013-04-07 23:05:13 +02:00
Mikkel Breum
403ef654ea Removed the need to customize url for wp_enqueue_style and wp_enqueue_scripts
By adding the __FILE__ magic constant as a second parameter to the wp_enqueue_style and wp_enqueue_scripts, the user no longer needs to change 'plugin-name'. This also makes the code more robust.
2013-04-07 22:56:08 +02:00
Mikkel Breum
68da31e4be correct action hook for register_admin_styles
Changed the action hook from 'admin_print_styles' to 'admin_enqueue_scripts' which is better.

See: http://codex.wordpress.org/Plugin_API/Action_Reference/admin_enqueue_scripts

See: http://make.wordpress.org/core/2011/12/12/use-wp_enqueue_scripts-not-wp_print_styles-to-enqueue-scripts-and-styles-for-the-frontend/
2013-04-07 22:05:15 +02:00
Ted Waller
a96bf127ac listed jQuery as a dependency for both JavaScripts 2013-04-02 07:14:56 -04:00
Japh
816e16c59f Moved uninstall placeholder from hook to uninstall.php 2013-03-05 16:24:35 +11:00
Lee Willis
df80c7e5eb A better way of loading language files 2013-01-30 20:11:12 +00:00
Wes Bos
696df14fc8 Changed to 2013
Happy new year!
2013-01-16 21:43:54 -05:00
Tom McFarlin
e4bbd52ae0 * Moving the boilerplate to its own directory
* Adding an improved README
* Removing unused features of the boilerplate
* Officially tagging as 1.0
2012-11-29 21:45:09 -05:00
Renamed from plugin.php (Browse further)