Version Description
- Bump to match Genesis version
- Require Genesis 1.2.1
- Update hooks for Genesis 1.2.1
Download this release
Release Info
| Developer | nathanrice |
| Plugin | |
| Version | 1.2 |
| Comparing to | |
| See all releases | |
Code changes from version 0.9 to 1.2
- admin.php +32 -14
- boxes.php +32 -5
- plugin.php +3 -3
- readme.txt +8 -3
admin.php
CHANGED
|
@@ -11,12 +11,16 @@ function simplehooks_defaults() {
|
|
| 11 |
'wp_head' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 12 |
'wp_footer' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
'genesis_init' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 15 |
|
|
|
|
| 16 |
'genesis_title' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 17 |
-
|
| 18 |
'genesis_meta' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 19 |
|
|
|
|
| 20 |
'genesis_before' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 21 |
'genesis_after' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 22 |
|
|
@@ -33,10 +37,32 @@ function simplehooks_defaults() {
|
|
| 33 |
'genesis_before_content' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 34 |
'genesis_after_content' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
'genesis_before_loop' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 37 |
'genesis_loop' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 38 |
'genesis_after_loop' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 39 |
|
|
|
|
|
|
|
|
|
|
| 40 |
'genesis_before_post' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 41 |
'genesis_after_post' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 42 |
|
|
@@ -48,9 +74,7 @@ function simplehooks_defaults() {
|
|
| 48 |
'genesis_post_content' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 49 |
'genesis_after_post_content' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 50 |
|
| 51 |
-
|
| 52 |
-
'genesis_loop_else' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 53 |
-
|
| 54 |
'genesis_before_comments' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 55 |
'genesis_comments' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 56 |
'genesis_list_comments' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
|
@@ -65,18 +89,12 @@ function simplehooks_defaults() {
|
|
| 65 |
'genesis_comment' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 66 |
'genesis_after_comment' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 67 |
|
|
|
|
|
|
|
|
|
|
| 68 |
'genesis_before_comment_form' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 69 |
'genesis_comment_form' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 70 |
-
'genesis_after_comment_form' => array('content' => '', 'php' => 0, 'shortcodes' => 0)
|
| 71 |
-
|
| 72 |
-
'genesis_before_sidebar_widget_area' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 73 |
-
'genesis_after_sidebar_widget_area' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 74 |
-
'genesis_before_sidebar_alt_widget_area' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 75 |
-
'genesis_after_sidebar_alt_widget_area' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 76 |
-
|
| 77 |
-
'genesis_before_footer' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 78 |
-
'genesis_footer' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 79 |
-
'genesis_after_footer' => array('content' => '', 'php' => 0, 'shortcodes' => 0)
|
| 80 |
|
| 81 |
);
|
| 82 |
|
| 11 |
'wp_head' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 12 |
'wp_footer' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 13 |
|
| 14 |
+
##################### internals
|
| 15 |
+
'genesis_pre' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 16 |
+
'genesis_pre_framework' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 17 |
'genesis_init' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 18 |
|
| 19 |
+
##################### document head
|
| 20 |
'genesis_title' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
|
|
|
| 21 |
'genesis_meta' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 22 |
|
| 23 |
+
##################### structural
|
| 24 |
'genesis_before' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 25 |
'genesis_after' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 26 |
|
| 37 |
'genesis_before_content' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 38 |
'genesis_after_content' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 39 |
|
| 40 |
+
'genesis_before_sidebar' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 41 |
+
'genesis_sidebar' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 42 |
+
'genesis_after_sidebar' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 43 |
+
|
| 44 |
+
'genesis_before_sidebar_widget_area' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 45 |
+
'genesis_after_sidebar_widget_area' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 46 |
+
|
| 47 |
+
'genesis_before_sidebar_alt' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 48 |
+
'genesis_sidebar_alt' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 49 |
+
'genesis_after_sidebar_alt' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 50 |
+
|
| 51 |
+
'genesis_before_sidebar_alt_widget_area' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 52 |
+
'genesis_after_sidebar_alt_widget_area' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 53 |
+
|
| 54 |
+
'genesis_before_footer' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 55 |
+
'genesis_footer' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 56 |
+
'genesis_after_footer' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 57 |
+
|
| 58 |
+
##################### loop
|
| 59 |
'genesis_before_loop' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 60 |
'genesis_loop' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 61 |
'genesis_after_loop' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 62 |
|
| 63 |
+
'genesis_after_endwhile' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 64 |
+
'genesis_loop_else' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 65 |
+
|
| 66 |
'genesis_before_post' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 67 |
'genesis_after_post' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 68 |
|
| 74 |
'genesis_post_content' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 75 |
'genesis_after_post_content' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 76 |
|
| 77 |
+
##################### comments
|
|
|
|
|
|
|
| 78 |
'genesis_before_comments' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 79 |
'genesis_comments' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 80 |
'genesis_list_comments' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 89 |
'genesis_comment' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 90 |
'genesis_after_comment' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 91 |
|
| 92 |
+
'genesis_before_comment' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 93 |
+
'genesis_after_comment' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 94 |
+
|
| 95 |
'genesis_before_comment_form' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 96 |
'genesis_comment_form' => array('content' => '', 'php' => 0, 'shortcodes' => 0),
|
| 97 |
+
'genesis_after_comment_form' => array('content' => '', 'php' => 0, 'shortcodes' => 0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
);
|
| 100 |
|
boxes.php
CHANGED
|
@@ -234,11 +234,6 @@ function simplehooks_comment_hooks_box() {
|
|
| 234 |
'desc' => __('This hook executes immediately before each individual comment (inside the <code>.comment</code> list item).', 'simplehooks')
|
| 235 |
));
|
| 236 |
|
| 237 |
-
simplehooks_form_generate(array(
|
| 238 |
-
'hook' => 'genesis_comment',
|
| 239 |
-
'desc' => __('This hook is available to add to the content of each comment.', 'simplehooks')
|
| 240 |
-
));
|
| 241 |
-
|
| 242 |
simplehooks_form_generate(array(
|
| 243 |
'hook' => 'genesis_after_comment',
|
| 244 |
'desc' => __('This hook executes immediately after each individual comment (inside the <code>.comment</code> list item).', 'simplehooks')
|
|
@@ -271,6 +266,22 @@ function simplehooks_comment_form_hooks_box() {
|
|
| 271 |
|
| 272 |
function simplehooks_sidebar_hooks_box() {
|
| 273 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 274 |
simplehooks_form_generate(array(
|
| 275 |
'hook' => 'genesis_before_sidebar_widget_area',
|
| 276 |
'desc' => __('This hook executes immediately before the primary sidebar widget area (inside the <code>#sidebar</code> div).', 'simplehooks')
|
|
@@ -281,6 +292,22 @@ function simplehooks_sidebar_hooks_box() {
|
|
| 281 |
'desc' => __('This hook executes immediately after the primary sidebar widget area (inside the <code>#sidebar</code> div).', 'simplehooks')
|
| 282 |
));
|
| 283 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 284 |
simplehooks_form_generate(array(
|
| 285 |
'hook' => 'genesis_before_sidebar_alt_widget_area',
|
| 286 |
'desc' => __('This hook executes immediately before the alternate sidebar widget area (inside the <code>#sidebar-alt</code> div).', 'simplehooks')
|
| 234 |
'desc' => __('This hook executes immediately before each individual comment (inside the <code>.comment</code> list item).', 'simplehooks')
|
| 235 |
));
|
| 236 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 237 |
simplehooks_form_generate(array(
|
| 238 |
'hook' => 'genesis_after_comment',
|
| 239 |
'desc' => __('This hook executes immediately after each individual comment (inside the <code>.comment</code> list item).', 'simplehooks')
|
| 266 |
|
| 267 |
function simplehooks_sidebar_hooks_box() {
|
| 268 |
|
| 269 |
+
simplehooks_form_generate(array(
|
| 270 |
+
'hook' => 'genesis_before_sidebar',
|
| 271 |
+
'desc' => __('This hook executes immediately before the primary sidebar column (outside the <code>#sidebar</code> div).', 'simplehooks')
|
| 272 |
+
));
|
| 273 |
+
|
| 274 |
+
simplehooks_form_generate(array(
|
| 275 |
+
'hook' => 'genesis_sidebar',
|
| 276 |
+
'desc' => __('This hook outputs the content of the primary sidebar, including the widget area output.', 'simplehooks'),
|
| 277 |
+
'unhook' => array('genesis_do_sidebar')
|
| 278 |
+
));
|
| 279 |
+
|
| 280 |
+
simplehooks_form_generate(array(
|
| 281 |
+
'hook' => 'genesis_after_sidebar',
|
| 282 |
+
'desc' => __('This hook executes immediately after the primary sidebar column (outside the <code>#sidebar</code> div).', 'simplehooks')
|
| 283 |
+
));
|
| 284 |
+
|
| 285 |
simplehooks_form_generate(array(
|
| 286 |
'hook' => 'genesis_before_sidebar_widget_area',
|
| 287 |
'desc' => __('This hook executes immediately before the primary sidebar widget area (inside the <code>#sidebar</code> div).', 'simplehooks')
|
| 292 |
'desc' => __('This hook executes immediately after the primary sidebar widget area (inside the <code>#sidebar</code> div).', 'simplehooks')
|
| 293 |
));
|
| 294 |
|
| 295 |
+
simplehooks_form_generate(array(
|
| 296 |
+
'hook' => 'genesis_before_sidebar_alt',
|
| 297 |
+
'desc' => __('This hook executes immediately before the alternate sidebar column (outside the <code>#sidebar-alt</code> div).', 'simplehooks')
|
| 298 |
+
));
|
| 299 |
+
|
| 300 |
+
simplehooks_form_generate(array(
|
| 301 |
+
'hook' => 'genesis_sidebar_alt',
|
| 302 |
+
'desc' => __('This hook outputs the content of the secondary sidebar, including the widget area output.', 'simplehooks'),
|
| 303 |
+
'unhook' => array('genesis_do_sidebar_alt')
|
| 304 |
+
));
|
| 305 |
+
|
| 306 |
+
simplehooks_form_generate(array(
|
| 307 |
+
'hook' => 'genesis_after_sidebar_alt',
|
| 308 |
+
'desc' => __('This hook executes immediately after the alternate sidebar column (outside the <code>#sidebar-alt</code> div).', 'simplehooks')
|
| 309 |
+
));
|
| 310 |
+
|
| 311 |
simplehooks_form_generate(array(
|
| 312 |
'hook' => 'genesis_before_sidebar_alt_widget_area',
|
| 313 |
'desc' => __('This hook executes immediately before the alternate sidebar widget area (inside the <code>#sidebar-alt</code> div).', 'simplehooks')
|
plugin.php
CHANGED
|
@@ -3,16 +3,16 @@
|
|
| 3 |
Plugin Name: Genesis Simple Hooks
|
| 4 |
Plugin URI: http://www.studiopress.com/plugins/simple-hooks
|
| 5 |
Description: Genesis Simple Hooks allows you easy access to the 50+ Action Hooks in the Genesis Theme.
|
| 6 |
-
Version:
|
| 7 |
Author: Nathan Rice
|
| 8 |
Author URI: http://www.nathanrice.net/
|
| 9 |
*/
|
| 10 |
|
| 11 |
-
// require Genesis 1.1
|
| 12 |
register_activation_hook(__FILE__, 'simplehooks_activation_check');
|
| 13 |
function simplehooks_activation_check() {
|
| 14 |
|
| 15 |
-
$latest = '1.1
|
| 16 |
|
| 17 |
$theme_info = get_theme_data(TEMPLATEPATH.'/style.css');
|
| 18 |
|
| 3 |
Plugin Name: Genesis Simple Hooks
|
| 4 |
Plugin URI: http://www.studiopress.com/plugins/simple-hooks
|
| 5 |
Description: Genesis Simple Hooks allows you easy access to the 50+ Action Hooks in the Genesis Theme.
|
| 6 |
+
Version: 1.2
|
| 7 |
Author: Nathan Rice
|
| 8 |
Author URI: http://www.nathanrice.net/
|
| 9 |
*/
|
| 10 |
|
| 11 |
+
// require Genesis 1.2.1 upon activation
|
| 12 |
register_activation_hook(__FILE__, 'simplehooks_activation_check');
|
| 13 |
function simplehooks_activation_check() {
|
| 14 |
|
| 15 |
+
$latest = '1.2.1';
|
| 16 |
|
| 17 |
$theme_info = get_theme_data(TEMPLATEPATH.'/style.css');
|
| 18 |
|
readme.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
=== Plugin Name ===
|
| 2 |
-
Contributors: nathanrice
|
| 3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
|
| 4 |
Tags: hooks, genesis, genesiswp, studiopress
|
| 5 |
Requires at least: 2.9
|
| 6 |
Tested up to: 2.9.2
|
| 7 |
-
Stable tag:
|
| 8 |
|
| 9 |
This plugin creates a new Genesis settings page that allows you to insert code (HTML, Shortcodes, and PHP), and attach it to any of the 50+ action hooks throughout the Genesis Theme Framework, from StudioPress.
|
| 10 |
|
|
@@ -78,4 +78,9 @@ The most common request from Genesis users is how to properly modify their foote
|
|
| 78 |
= 0.9 =
|
| 79 |
* Add new hooks, remove deprecated hooks
|
| 80 |
* Fix textarea bug with HTML entities
|
| 81 |
-
* Bump to pre-release 0.9 branch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
=== Plugin Name ===
|
| 2 |
+
Contributors: nathanrice, studiopress
|
| 3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
|
| 4 |
Tags: hooks, genesis, genesiswp, studiopress
|
| 5 |
Requires at least: 2.9
|
| 6 |
Tested up to: 2.9.2
|
| 7 |
+
Stable tag: 1.2
|
| 8 |
|
| 9 |
This plugin creates a new Genesis settings page that allows you to insert code (HTML, Shortcodes, and PHP), and attach it to any of the 50+ action hooks throughout the Genesis Theme Framework, from StudioPress.
|
| 10 |
|
| 78 |
= 0.9 =
|
| 79 |
* Add new hooks, remove deprecated hooks
|
| 80 |
* Fix textarea bug with HTML entities
|
| 81 |
+
* Bump to pre-release 0.9 branch
|
| 82 |
+
|
| 83 |
+
= 1.2 =
|
| 84 |
+
* Bump to match Genesis version
|
| 85 |
+
* Require Genesis 1.2.1
|
| 86 |
+
* Update hooks for Genesis 1.2.1
|
