1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-11-05 13:22:58 +02:00
Commit graph

307 commits

Author SHA1 Message Date
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
Tom McFarlin d62ab3343e Removing constants, updating documentation for activation/deactivation function, adding TODO's 2012-04-09 21:41:17 -04:00
Tom McFarlin 0957a12af4 Merge pull request #7 from tylerdigital/master
Added activation/deactivation hooks to Constructor
2012-04-03 18:31:10 -07:00
Nathan Tyler 88fccec638 Add activation/deactivation hooks 2012-04-03 16:57:05 -07:00
Tom McFarlin a1ec8ed84b Updating javaScript, bringing the plugin's source code up to WordPress' coding conventions, and removing constants. 2012-03-05 22:33:04 -05:00
Tom McFarlin fb6c7b2c66 Merge pull request #6 from cudazi/patch-1
Updated plugins_dir_path to plugin_dir_path in load_file()
2012-01-19 15:33:52 -08:00
Cudazi adf9c87719 Updated plugins_dir_path to plugin_dir_path in load_file() 2012-01-19 16:42:10 -06:00
Tom McFarlin c0b6b8f9ca Updating the plugin URL and the plugin DIR to use native WordPress API functions (rather than constants) 2012-01-19 08:25:40 -05:00
Tom McFarlin cf819ba002 Updating the constants section, updating the load_file() function to give identifiers to the scripts and styles 2011-12-05 07:56:43 -05:00
Tom McFarlin efb0a5b275 Improving JavaScript sources, adding references to Filters and Actions, and removing locale constant (WordPress requires a string parameter) 2011-12-02 23:28:54 -05:00
Tom McFarlin 029ced6dea Merge pull request #3 from anabelle/master
Default Readme requirements
2011-11-26 07:06:06 -08:00