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

32 commits

Author SHA1 Message Date
Tom McFarlin
6927761a88 updating the page-level doc blocks
related #38
2013-05-09 22:20:26 -04:00
Tom McFarlin
4e2a2564a8 changing 'directives' to 'tags' 2013-05-09 22:16:21 -04:00
Tom McFarlin
111c60122d automatically displaying the name of the plugin admin page
related #38
2013-05-09 22:12:52 -04:00
Tom McFarlin
791920143e updating the php code formatting
related #38
2013-05-09 22:05:29 -04:00
Tom McFarlin
626a161581 adding since tags to each of the docblocks for functions
related #38
2013-05-09 21:39:29 -04:00
Tom McFarlin
cd1f367899 adding class property docblocks
fixes #35
2013-05-09 21:37:03 -04:00
Tom McFarlin
e2dafd3473 Revert "adding class property docblocks"
This reverts commit dd20abf02a.
2013-05-09 21:36:44 -04:00
Tom McFarlin
dd20abf02a adding class property docblocks 2013-05-09 21:36:32 -04:00
Tom McFarlin
0fd7ce4344 updating versioning in the plugin and in the read me to use the x.y.z format (rather than the x.y format)
fixes #33
2013-05-09 21:31:41 -04:00
Tom McFarlin
996f999c55 updating certain functions to all be verbs to better describe their action
fixes #37
2013-05-09 21:25:55 -04:00
Tom McFarlin
0d8277d858 refactoring the ternary operator in the constructor to make the code more readable and to remove the potential for an orphaned object
fixes #39
2013-05-09 21:19:16 -04:00
Tom McFarlin
1a616eeb65 improving documentation 2013-05-07 22:42:30 -04:00
Tom McFarlin
cc42c4a554 disable the admin menu by default 2013-05-07 22:12:40 -04:00
Tom McFarlin
b4992eaf65 initializing instance to null, initializing the plugin_screen_slug to null, updating coding conventions, improving comments, updating conditionals, 2013-05-07 22:11:51 -04:00
Tom McFarlin
0b2021b273 removing the open/close files and combining them into a single admin view 2013-05-07 22:10:48 -04:00
Tom McFarlin
91a84225a6 combining both the admin_open and admin_close into a single file. localizing the text. 2013-05-07 22:10:34 -04:00
Tom McFarlin
3abd8e1ad7 removing whitespace at the bottom of the file 2013-05-07 17:02:46 -04:00
Tom McFarlin
9fa17a8507 updating a code comment 2013-05-07 17:02:04 -04:00
Tom McFarlin
e76927f94b removing whitespace between exit and the parens 2013-05-07 17:01:36 -04:00
Tom McFarlin
3618f5dfad added access modifiers 2013-05-07 17:01:12 -04:00
Tom McFarlin
6d141e700f implemented the singleton pattern 2013-05-07 17:00:38 -04:00
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