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
Tom McFarlin
5d70b7e79e
Merge pull request #25 from tbwiii/master
...
Listed jQuery as a dependency for both JavaScripts
2013-04-02 04:52:56 -07: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
Tom McFarlin
4f1cd0cbbf
Merge pull request #21 from leewillis77/master
...
A better way of loading language files
2013-01-31 05:09:00 -08:00
Lee Willis
df80c7e5eb
A better way of loading language files
2013-01-30 20:11:12 +00:00
Tom McFarlin
7660b7601c
Merge pull request #20 from wesbos/patch-1
...
Changed to 2013
2013-01-16 19:04:02 -08:00
Wes Bos
696df14fc8
Changed to 2013
...
Happy new year!
2013-01-16 21:43:54 -05:00
Tom McFarlin
a4c70806b3
Update README.md
2012-11-29 21:46:13 -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
Tom McFarlin
47edae47e6
Merge pull request #17 from innerbot/master
...
Added an uninstall hook
2012-11-12 05:05:37 -08:00
Greg Johnson
d9b406b8dd
Added an uninstall hook
2012-11-11 01:48:16 -06:00
Tom McFarlin
f522cbd0e2
Merge pull request #16 from pippinsplugins/master
...
Moved Plugin Textdomain and Added Class to Global Scope
2012-11-08 16:59:32 -08:00
Pippin Williamson
36609340a7
Set bew PluginName() to a global variable
2012-11-05 21:07:44 -06:00
Pippin Williamson
696d133f36
Moved load_plugin_textdomain()
2012-11-05 21:07:10 -06:00
Tom McFarlin
a74004d26c
* removing ampersands from php compatibility
...
* removing the translated mo file
* removing calls to wp_register_script and wp_register_style
2012-11-02 18:27:32 -04:00
Tom McFarlin
81b7be5b72
Update README.txt
2012-08-29 13:55:17 -03:00
Tom McFarlin
92259517db
Updating the JavaScript for better practices and refining one of the hooks for the plugin boilerplate
2012-08-17 14:06:06 -04:00
Tom McFarlin
5297deede7
Merge pull request #13 from bradp/master
...
Removed closing PHP tag in plugin.php
2012-08-15 06:17:26 -07:00
Brad Parbs
d247aa5473
Update plugin.php
2012-08-13 22:05:20 -05:00
Tom McFarlin
745e59c30f
Merge branch 'master' of https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate
2012-07-13 22:14:38 -04:00
Tom McFarlin
e9932327de
Minor whitespace change
2012-07-13 22:14:34 -04:00
Tom McFarlin
aa6f5f2d38
Merge pull request #11 from manovotny/fixes
...
Fixes enqueue script and style issues.
2012-06-11 07:59:10 -07:00
Michael Novotny
16665e40f3
Fixes enqueue script and style issues.
...
* Fixes add_action for plugin styles.
* Fixes registering styles as scripts instead of styles.
* Fixes enqueued id for plugin styles.
* Fixes spelling error.
2012-06-11 09:55:14 -05:00
Tom McFarlin
abf0b19e33
Merge pull request #10 from Bonnevoy/master
...
Fix filenames plugin-specifix js and css files.
2012-06-04 06:03:47 -07:00
ewoutkleinsmann
e589a132da
Fix typos of css and js filenames.
2012-06-01 18:23:48 +03:00
Tom McFarlin
bc87288bc0
Removing the helper functions and using actions to enqueue and register stylesheets and JavaScript files.
2012-05-07 22:33:29 -04:00