Genesis Simple Hooks - Version 1.3.1

Version Description

  • Bump to match Genesis version
  • Require Genesis 1.3.1
  • Added new unhook options
  • Fixed bug with foreign language compatibility
Download this release

Release Info

Developer nathanrice
Plugin Icon 128x128 Genesis Simple Hooks
Version 1.3.1
Comparing to
See all releases

Code changes from version 1.2 to 1.3.1

Files changed (4) hide show
  1. boxes.php +18 -9
  2. functions.php +1 -1
  3. plugin.php +3 -3
  4. readme.txt +8 -2
boxes.php CHANGED
@@ -105,7 +105,8 @@ function simplehooks_loop_hooks_box() {
105
 
106
  simplehooks_form_generate(array(
107
  'hook' => 'genesis_loop',
108
- 'desc' => __('This hook executes both default and custom loops.', 'simplehooks')
 
109
  ));
110
 
111
  simplehooks_form_generate(array(
@@ -121,7 +122,8 @@ function simplehooks_loop_hooks_box() {
121
 
122
  simplehooks_form_generate(array(
123
  'hook' => 'genesis_loop_else',
124
- 'desc' => __('This hook executes after the <code>else :</code> statement in all loop blocks. The content attached to this hook will only display if there are no posts available when a loop is executed.', 'simplehooks')
 
125
  ));
126
 
127
  simplehooks_form_submit();
@@ -148,7 +150,8 @@ function simplehooks_post_hooks_box() {
148
 
149
  simplehooks_form_generate(array(
150
  'hook' => 'genesis_post_title',
151
- 'desc' => __('This hook outputs the post/page title.', 'simplehooks')
 
152
  ));
153
 
154
  simplehooks_form_generate(array(
@@ -164,7 +167,8 @@ function simplehooks_post_hooks_box() {
164
 
165
  simplehooks_form_generate(array(
166
  'hook' => 'genesis_post_content',
167
- 'desc' => __('This hook outputs the content of the post/page, by default.', 'simplehooks')
 
168
  ));
169
 
170
  simplehooks_form_generate(array(
@@ -186,12 +190,14 @@ function simplehooks_comment_list_hooks_box() {
186
 
187
  simplehooks_form_generate(array(
188
  'hook' => 'genesis_comments',
189
- 'desc' => __('This hook outputs the comments block, including the <code>#comments</code> div.', 'simplehooks')
 
190
  ));
191
 
192
  simplehooks_form_generate(array(
193
  'hook' => 'genesis_list_comments',
194
- 'desc' => __('This hook executes inside the comments block, inside the <code>.comment-list</code> OL. By default, it outputs a list of comments associated with a post via the <code>genesis_default_list_comments()</code> function.', 'simplehooks')
 
195
  ));
196
 
197
  simplehooks_form_generate(array(
@@ -205,7 +211,8 @@ function simplehooks_ping_list_hooks_box() {
205
 
206
  simplehooks_form_generate(array(
207
  'hook' => 'genesis_before_pings',
208
- 'desc' => __('This hook executes immediately before the pings block (outside the <code>#pings</code> div).', 'simplehooks')
 
209
  ));
210
 
211
  simplehooks_form_generate(array(
@@ -215,7 +222,8 @@ function simplehooks_ping_list_hooks_box() {
215
 
216
  simplehooks_form_generate(array(
217
  'hook' => 'genesis_list_pings',
218
- 'desc' => __('This hook executes inside the pings block, inside the <code>.ping-list</code> OL. By default, it outputs a list of pings associated with a post via the <code>genesis_default_list_pings()</code> function.', 'simplehooks')
 
219
  ));
220
 
221
  simplehooks_form_generate(array(
@@ -252,7 +260,8 @@ function simplehooks_comment_form_hooks_box() {
252
 
253
  simplehooks_form_generate(array(
254
  'hook' => 'genesis_comment_form',
255
- 'desc' => __('This hook outputs the entire comment form, including the <code>#respond</code> div.', 'simplehooks')
 
256
  ));
257
 
258
  simplehooks_form_generate(array(
105
 
106
  simplehooks_form_generate(array(
107
  'hook' => 'genesis_loop',
108
+ 'desc' => __('This hook executes both default and custom loops.', 'simplehooks'),
109
+ 'unhook' => array('genesis_do_loop')
110
  ));
111
 
112
  simplehooks_form_generate(array(
122
 
123
  simplehooks_form_generate(array(
124
  'hook' => 'genesis_loop_else',
125
+ 'desc' => __('This hook executes after the <code>else :</code> statement in all loop blocks. The content attached to this hook will only display if there are no posts available when a loop is executed.', 'simplehooks'),
126
+ 'unhook' => array('genesis_do_noposts')
127
  ));
128
 
129
  simplehooks_form_submit();
150
 
151
  simplehooks_form_generate(array(
152
  'hook' => 'genesis_post_title',
153
+ 'desc' => __('This hook outputs the post/page title.', 'simplehooks'),
154
+ 'unhook' => array('genesis_do_post_title')
155
  ));
156
 
157
  simplehooks_form_generate(array(
167
 
168
  simplehooks_form_generate(array(
169
  'hook' => 'genesis_post_content',
170
+ 'desc' => __('This hook outputs the content of the post/page, by default.', 'simplehooks'),
171
+ 'unhook' => array('genesis_do_post_image', 'genesis_do_post_content')
172
  ));
173
 
174
  simplehooks_form_generate(array(
190
 
191
  simplehooks_form_generate(array(
192
  'hook' => 'genesis_comments',
193
+ 'desc' => __('This hook outputs the comments block, including the <code>#comments</code> div.', 'simplehooks'),
194
+ 'unhook' => array('genesis_do_comments')
195
  ));
196
 
197
  simplehooks_form_generate(array(
198
  'hook' => 'genesis_list_comments',
199
+ 'desc' => __('This hook executes inside the comments block, inside the <code>.comment-list</code> OL. By default, it outputs a list of comments associated with a post via the <code>genesis_default_list_comments()</code> function.', 'simplehooks'),
200
+ 'unhook' => array('genesis_default_list_comments')
201
  ));
202
 
203
  simplehooks_form_generate(array(
211
 
212
  simplehooks_form_generate(array(
213
  'hook' => 'genesis_before_pings',
214
+ 'desc' => __('This hook executes immediately before the pings block (outside the <code>#pings</code> div).', 'simplehooks'),
215
+ 'unhook' => array('genesis_do_pings')
216
  ));
217
 
218
  simplehooks_form_generate(array(
222
 
223
  simplehooks_form_generate(array(
224
  'hook' => 'genesis_list_pings',
225
+ 'desc' => __('This hook executes inside the pings block, inside the <code>.ping-list</code> OL. By default, it outputs a list of pings associated with a post via the <code>genesis_default_list_pings()</code> function.', 'simplehooks'),
226
+ 'unhook' => array('genesis_default_list_pings')
227
  ));
228
 
229
  simplehooks_form_generate(array(
260
 
261
  simplehooks_form_generate(array(
262
  'hook' => 'genesis_comment_form',
263
+ 'desc' => __('This hook outputs the entire comment form, including the <code>#respond</code> div.', 'simplehooks'),
264
+ 'unhook' => array('genesis_do_comment_form')
265
  ));
266
 
267
  simplehooks_form_generate(array(
functions.php CHANGED
@@ -55,7 +55,7 @@ function simplehooks_form_generate( $args = array() ) {
55
  }
56
  ?>
57
 
58
- <p><textarea name="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][content]" cols="70" rows="5"><?php echo htmlentities( simplehooks_get_option($args['hook'], 'content') ); ?></textarea></p>
59
 
60
  <p>
61
  <input type="checkbox" name="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][shortcodes]" id="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][shortcodes]" value="1" <?php checked(1, simplehooks_get_option($args['hook'], 'shortcodes')); ?> /> <label for="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][shortcodes]"><?php _e('Execute Shortcodes on this hook?', 'simplehooks'); ?></label><br />
55
  }
56
  ?>
57
 
58
+ <p><textarea name="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][content]" cols="70" rows="5"><?php echo htmlentities( simplehooks_get_option($args['hook'], 'content'), ENT_QUOTES, 'UTF-8' ); ?></textarea></p>
59
 
60
  <p>
61
  <input type="checkbox" name="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][shortcodes]" id="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][shortcodes]" value="1" <?php checked(1, simplehooks_get_option($args['hook'], 'shortcodes')); ?> /> <label for="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][shortcodes]"><?php _e('Execute Shortcodes on this hook?', 'simplehooks'); ?></label><br />
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: 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
 
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.3.1
7
  Author: Nathan Rice
8
  Author URI: http://www.nathanrice.net/
9
  */
10
 
11
+ // require Genesis 1.3.1 upon activation
12
  register_activation_hook(__FILE__, 'simplehooks_activation_check');
13
  function simplehooks_activation_check() {
14
 
15
+ $latest = '1.3.1';
16
 
17
  $theme_info = get_theme_data(TEMPLATEPATH.'/style.css');
18
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
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
 
@@ -83,4 +83,10 @@ The most common request from Genesis users is how to properly modify their foote
83
  = 1.2 =
84
  * Bump to match Genesis version
85
  * Require Genesis 1.2.1
86
- * Update hooks for Genesis 1.2.1
 
 
 
 
 
 
4
  Tags: hooks, genesis, genesiswp, studiopress
5
  Requires at least: 2.9
6
  Tested up to: 2.9.2
7
+ Stable tag: 1.3.1
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
 
83
  = 1.2 =
84
  * Bump to match Genesis version
85
  * Require Genesis 1.2.1
86
+ * Update hooks for Genesis 1.2.1
87
+
88
+ = 1.3.1 =
89
+ * Bump to match Genesis version
90
+ * Require Genesis 1.3.1
91
+ * Added new unhook options
92
+ * Fixed bug with foreign language compatibility