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

93 commits

Author SHA1 Message Date
Tom McFarlin
95150ecfdc Removing tabs and spaces on empty lines
Related #44
2013-05-11 17:43:11 -04:00
Tom McFarlin
9b27bf86af Adding a security check to prevent files from accessing the boilerplate directly
Fixes #43
2013-05-11 17:38:50 -04:00
Tom McFarlin
ff44a40287 adding one space to comply with coding conventions 2013-05-11 17:06:34 -04:00
Tom McFarlin
a2987b80ca adding license.txt and removing it from the header.
fixes #42
2013-05-11 17:03:07 -04:00
Tom McFarlin
397d01dc79 Updating the .pot file as it was resulting in a minor error in one of the translation tools. 2013-05-10 10:43:15 -04:00
Tom McFarlin
b1d6b3f2e0 updating the read me with the 2.2.0 change log 2013-05-10 07:47:11 -04:00
Tom McFarlin
ae0394724e removing redundant section headers since properties, constructors, and functions 2013-05-10 07:45:32 -04:00
Tom McFarlin
5f8dbab63b changing the access modifiers to protected from private
Related #36
2013-05-10 07:34:45 -04:00
Tom McFarlin
3be46accea adding braces around the conditional in uninstall.php 2013-05-10 07:33:53 -04:00
Tom McFarlin
6f97b9eabd removing redundant access tags
related #35
2013-05-10 07:32:57 -04:00
Tom McFarlin
0672899df0 removing all terminating comment blocks
related #38
2013-05-10 07:31:20 -04:00
Tom McFarlin
62e31a0120 removing the .po file since the .pot catalog can be read by POEdit 2013-05-10 07:25:26 -04:00
Tom McFarlin
bb994b859a adding plugin-boilerplate.pot file
Related #38
2013-05-10 07:23:46 -04:00
Tom McFarlin
15097f8b3f renaming the core plugin file to match the name of the plugin 2013-05-10 07:21:31 -04:00
Tom McFarlin
74f8a6afbd updating the read me so that the demo change log is more accurate 2013-05-10 07:20:34 -04:00
Tom McFarlin
7be9a68170 updating the read me with all of the changes in 2.1.0 2013-05-09 22:32:24 -04:00
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
d6d3b1aaa6 adding a note about POEdit and the language files
related #38
2013-05-09 22:07:28 -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
8afcf2547f Updating the year of the release of 2.0 2013-05-07 23:07:48 -04:00
Tom McFarlin
d48f2e4370 Update README.md 2013-05-08 00:05:57 -03:00
Tom McFarlin
369d0240ce updating some of the grammar 2013-05-07 22:46:52 -04:00
Tom McFarlin
a088518b74 removing whitespace at the end of the file 2013-05-07 22:43:26 -04:00
Tom McFarlin
481c480330 updating the read me file for 2.0 2013-05-07 22:42:48 -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
Tom McFarlin
8920d21b76 Merge pull request #24 from Japh/master
Suggested fix for #22
2013-05-07 13:54:59 -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