Genesis Simple Hooks - Version 2.1.1

Version Description

  • Generate POT file.
Download this release

Release Info

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

Code changes from version 2.1.0 to 2.1.1

Files changed (7) hide show
  1. Gruntfile.js +96 -0
  2. admin.php +86 -86
  3. functions.php +4 -4
  4. languages/genesis-simple-hooks.pot +424 -0
  5. package.json +37 -0
  6. plugin.php +2 -2
  7. readme.txt +53 -42
Gruntfile.js ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ module.exports = function(grunt) {
4
+
5
+ // Load tasks
6
+ require('load-grunt-tasks')(grunt);
7
+
8
+ grunt.initConfig({
9
+ pkg: grunt.file.readJSON('package.json'),
10
+
11
+
12
+ // Dependencies
13
+
14
+ // PHP
15
+
16
+ // Lint .php files for syntax errors
17
+ phplint: {
18
+ all: [ '*.php', 'lib/**/*.php' ]
19
+ },
20
+
21
+
22
+ // I18n
23
+
24
+ // Add text domain as last argument of i18n functions
25
+ addtextdomain: {
26
+ php: {
27
+ files: {
28
+ src: [
29
+ '*.php',
30
+ 'lib/**/*.php'
31
+ ]
32
+ }
33
+ }
34
+ },
35
+
36
+ // Check text domain is last argument of i18n functions
37
+ checktextdomain: {
38
+ options: {
39
+ text_domain: '<%= pkg.name %>',
40
+ keywords: [
41
+ '__:1,2d',
42
+ '_e:1,2d',
43
+ '_x:1,2c,3d',
44
+ '_ex:1,2c,3d',
45
+ '_n:1,2,4d',
46
+ '_nx:1,2,4c,5d',
47
+ '_n_noop:1,2,3d',
48
+ '_nx_noop:1,2,3c,4d',
49
+ 'esc_attr__:1,2d',
50
+ 'esc_html__:1,2d',
51
+ 'esc_attr_e:1,2d',
52
+ 'esc_html_e:1,2d',
53
+ 'esc_attr_x:1,2c,3d',
54
+ 'esc_html_x:1,2c,3d'
55
+ ]
56
+ },
57
+ files: {
58
+ expand: true,
59
+ src: [
60
+ '*.php',
61
+ 'lib/**/*.php'
62
+ ]
63
+ }
64
+ },
65
+
66
+
67
+ // Build language .pot file
68
+ makepot: {
69
+ plugin: {
70
+ options: {
71
+ domainPath: '/languages',
72
+ processPot: function( pot ) {
73
+ pot.headers['report-msgid-bugs-to'] = 'StudioPress <translations@studiopress.com>';
74
+ pot.headers['last-translator'] = 'StudioPress <translations@studiopress.com>';
75
+ pot.headers['language-team'] = 'English <translations@studiopress.com>';
76
+ pot.headers['plural-forms'] = 'nplurals=2; plural=n != 1;';
77
+ pot.headers['x-generator'] = 'grunt-wp-i18n 0.4.4';
78
+ pot.headers['x-poedit-basepath'] = '.';
79
+ pot.headers['x-poedit-language'] = 'English';
80
+ pot.headers['x-poedit-country'] = 'UNITED STATES';
81
+ pot.headers['x-poedit-sourcecharset'] = 'utf-8';
82
+ pot.headers['x-poedit-keywordslist'] = '__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;';
83
+ pot.headers['x-poedit-bookmarks'] = '';
84
+ pot.headers['x-poedit-searchpath-0'] = '.';
85
+ pot.headers['x-textdomain-support'] = 'yes';
86
+ return pot;
87
+ },
88
+ type: 'wp-plugin'
89
+ }
90
+ }
91
+ },
92
+
93
+
94
+ });
95
+
96
+ };
admin.php CHANGED
@@ -27,8 +27,8 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
27
  $menu_ops = array(
28
  'submenu' => array(
29
  'parent_slug' => 'genesis',
30
- 'page_title' => __( 'Genesis - Simple Hooks', 'simplehooks' ),
31
- 'menu_title' => __( 'Simple Hooks', 'simplehooks' )
32
  )
33
  );
34
 
@@ -178,23 +178,23 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
178
  */
179
  function metaboxes() {
180
 
181
- add_meta_box( 'simplehooks-wp-hooks', __( 'WordPress Hooks', 'simplehooks' ), array( $this, 'wp_hooks_box' ), $this->pagehook, 'main' );
182
- add_meta_box( 'simplehooks-document-hooks', __( 'Document Hooks', 'simplehooks' ), array( $this, 'document_hooks_box' ), $this->pagehook, 'main' );
183
- add_meta_box( 'simplehooks-header-hooks', __( 'Header Hooks', 'simplehooks' ), array( $this, 'header_hooks_box' ), $this->pagehook, 'main' );
184
- add_meta_box( 'simplehooks-content-hooks', __( 'Content Hooks', 'simplehooks' ), array( $this, 'content_hooks_box' ), $this->pagehook, 'main' );
185
- add_meta_box( 'simplehooks-loop-hooks', __( 'Loop Hooks', 'simplehooks' ), array( $this, 'loop_hooks_box' ), $this->pagehook, 'main' );
186
 
187
  if ( current_theme_supports( 'html5' ) )
188
- add_meta_box( 'simplehooks-entry-hooks', __( 'Entry Hooks', 'simplehooks' ), array( $this, 'html5_entry_hooks_box' ), $this->pagehook, 'main' );
189
  else
190
- add_meta_box( 'simplehooks-post-hooks', __( 'Post/Page Hooks', 'simplehooks' ), array( $this, 'post_hooks_box' ), $this->pagehook, 'main' );
191
 
192
- add_meta_box( 'simplehooks-comment-list-hooks', __( 'Comment List Hooks', 'simplehooks' ), array( $this, 'comment_list_hooks_box' ), $this->pagehook, 'main' );
193
- add_meta_box( 'simplehooks-ping-list-hooks', __( 'Ping List Hooks', 'simplehooks' ), array( $this, 'ping_list_hooks_box' ), $this->pagehook, 'main' );
194
- add_meta_box( 'simplehooks-comment-hooks', __( 'Single Comment Hooks', 'simplehooks' ), array( $this, 'comment_hooks_box' ), $this->pagehook, 'main' );
195
- add_meta_box( 'simplehooks-comment-form-hooks', __( 'Comment Form Hooks', 'simplehooks' ), array( $this, 'comment_form_hooks_box' ), $this->pagehook, 'main' );
196
- add_meta_box( 'simplehooks-sidebar-hooks', __( 'Sidebar Hooks', 'simplehooks' ), array( $this, 'sidebar_hooks_box' ), $this->pagehook, 'main' );
197
- add_meta_box( 'simplehooks-footer-hooks', __( 'Footer Hooks', 'simplehooks' ), array( $this, 'footer_hooks_box' ), $this->pagehook, 'main' );
198
 
199
  }
200
 
@@ -202,16 +202,16 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
202
 
203
  simplehooks_form_generate( array(
204
  'hook' => 'wp_head',
205
- 'desc' => __( 'This hook executes immediately before the closing <code>&lt;/head&gt;</code> tag.', 'simplehooks' ),
206
  'unhook' => array( 'genesis_load_favicon' ),
207
  ) );
208
 
209
  simplehooks_form_generate( array(
210
  'hook' => 'wp_footer',
211
- 'desc' => __( 'This hook executes immediately before the closing <code>&lt;/body&gt;</code> tag.', 'simplehooks' ),
212
  ) );
213
 
214
- submit_button( __( 'Save Changes', 'simplehooks' ), 'primary' );
215
 
216
  }
217
 
@@ -219,25 +219,25 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
219
 
220
  simplehooks_form_generate( array(
221
  'hook' => 'genesis_title',
222
- 'desc' => __( 'This hook executes between the main document <code>&lt;title&gt;&lt;/title&gt;</code> tags.', 'simplehooks' )
223
  ) );
224
 
225
  simplehooks_form_generate( array(
226
  'hook' => 'genesis_meta',
227
- 'desc' => __( 'This hook executes in the document <code>&lt;head&gt;</code>.<br /> It is commonly used to output <code>META</code> information about the document.', 'simplehooks' ),
228
  ) );
229
 
230
  simplehooks_form_generate( array(
231
  'hook' => 'genesis_before',
232
- 'desc' => __( 'This hook executes immediately after the opening <code>&lt;body&gt;</code> tag.', 'simplehooks' )
233
  ) );
234
 
235
  simplehooks_form_generate( array(
236
  'hook' => 'genesis_after',
237
- 'desc' => __( 'This hook executes immediately before the closing <code>&lt;/body&gt;</code> tag.', 'simplehooks' )
238
  ) );
239
 
240
- submit_button( __( 'Save Changes', 'simplehooks' ), 'primary' );
241
 
242
  }
243
 
@@ -245,33 +245,33 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
245
 
246
  simplehooks_form_generate( array(
247
  'hook' => 'genesis_before_header',
248
- 'desc' => __( 'This hook executes immediately before the header.', 'simplehooks' )
249
  ) );
250
 
251
  simplehooks_form_generate( array(
252
  'hook' => 'genesis_header',
253
- 'desc' => __( 'This hook outputs the default header.', 'simplehooks' ),
254
  'unhook' => array( 'genesis_do_header' )
255
  ) );
256
 
257
  simplehooks_form_generate( array(
258
  'hook' => 'genesis_after_header',
259
- 'desc' => __( 'This hook executes immediately after the header.', 'simplehooks' )
260
  ) );
261
 
262
  simplehooks_form_generate( array(
263
  'hook' => 'genesis_site_title',
264
- 'desc' => __( 'This hooks executes inside the header, and by default, outputs the site title.' , 'simplehooks' ),
265
  'unhook' => array( 'genesis_seo_site_title' ),
266
  ) );
267
 
268
  simplehooks_form_generate( array(
269
  'hook' => 'genesis_site_description',
270
- 'desc' => __( 'This hooks executes inside the header, and by default, outputs the site description.' , 'simplehooks' ),
271
  'unhook' => array( 'genesis_seo_site_description' ),
272
  ) );
273
 
274
- submit_button( __( 'Save Changes', 'simplehooks' ), 'primary' );
275
 
276
  }
277
 
@@ -279,25 +279,25 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
279
 
280
  simplehooks_form_generate( array(
281
  'hook' => 'genesis_before_content_sidebar_wrap',
282
- 'desc' => __( 'This hook executes immediately before the div block that wraps the content and the primary sidebar.', 'simplehooks' )
283
  ) );
284
 
285
  simplehooks_form_generate( array(
286
  'hook' => 'genesis_after_content_sidebar_wrap',
287
- 'desc' => __( 'This hook executes immediately after the div block that wraps the content and the primary sidebar.', 'simplehooks' )
288
  ) );
289
 
290
  simplehooks_form_generate( array(
291
  'hook' => 'genesis_before_content',
292
- 'desc' => __( 'This hook executes immediately before the content column.', 'simplehooks' )
293
  ) );
294
 
295
  simplehooks_form_generate( array(
296
  'hook' => 'genesis_after_content',
297
- 'desc' => __( 'This hook executes immediately after the content column.', 'simplehooks' )
298
  ) );
299
 
300
- submit_button( __( 'Save Changes', 'simplehooks' ), 'primary' );
301
 
302
  }
303
 
@@ -305,33 +305,33 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
305
 
306
  simplehooks_form_generate( array(
307
  'hook' => 'genesis_before_loop',
308
- 'desc' => __( 'This hook executes immediately before all loop blocks.<br /> Therefore, this hook falls outside the loop, and cannot execute functions that require loop template tags or variables.', 'simplehooks' )
309
  ) );
310
 
311
  simplehooks_form_generate( array(
312
  'hook' => 'genesis_loop',
313
- 'desc' => __( 'This hook executes both default and custom loops.', 'simplehooks' ),
314
  'unhook' => array( 'genesis_do_loop' )
315
  ) );
316
 
317
  simplehooks_form_generate( array(
318
  'hook' => 'genesis_after_loop',
319
- 'desc' => __( 'This hook executes immediately after all loop blocks.<br /> Therefore, this hook falls outside the loop, and cannot execute functions that require loop template tags or variables.', 'simplehooks' )
320
  ) );
321
 
322
  simplehooks_form_generate( array(
323
  'hook' => 'genesis_after_endwhile',
324
- 'desc' => __( 'This hook executes after the <code>endwhile;</code> statement.', 'simplehooks' ),
325
  'unhook' => array( 'genesis_posts_nav' )
326
  ) );
327
 
328
  simplehooks_form_generate( array(
329
  'hook' => 'genesis_loop_else',
330
- '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' ),
331
  'unhook' => array( 'genesis_do_noposts' )
332
  ) );
333
 
334
- submit_button( __( 'Save Changes', 'simplehooks' ), 'primary' );
335
 
336
  }
337
 
@@ -339,30 +339,30 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
339
 
340
  simplehooks_form_generate(array(
341
  'hook' => 'genesis_before_entry',
342
- 'desc' => __( 'This hook executes before each entry in all loop blocks (outside the entry markup element).', 'simplehooks' )
343
  ) );
344
 
345
  simplehooks_form_generate(array(
346
  'hook' => 'genesis_entry_header',
347
- 'desc' => __( 'This hook executes before the entry content. By default, it outputs the entry title and meta information.', 'simplehooks' )
348
  ) );
349
 
350
  simplehooks_form_generate(array(
351
  'hook' => 'genesis_entry_content',
352
- 'desc' => __( 'This hook, by default, outputs the entry content.', 'simplehooks' )
353
  ) );
354
 
355
  simplehooks_form_generate(array(
356
  'hook' => 'genesis_entry_footer',
357
- 'desc' => __( 'This hook executes after the entry content. By Default, it outputs entry meta information.', 'simplehooks' )
358
  ) );
359
 
360
  simplehooks_form_generate(array(
361
  'hook' => 'genesis_after_entry',
362
- 'desc' => __( 'This hook executes after each entry in all loop blocks (outside the entry markup element).', 'simplehooks' )
363
  ) );
364
 
365
- submit_button( __( 'Save Changes', 'simplehooks' ), 'primary' );
366
 
367
  }
368
 
@@ -370,50 +370,50 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
370
 
371
  simplehooks_form_generate( array(
372
  'hook' => 'genesis_before_post',
373
- 'desc' => __( 'This hook executes before each post in all loop blocks (outside the <code>post_class()</code> div).', 'simplehooks' )
374
  ) );
375
 
376
  simplehooks_form_generate( array(
377
  'hook' => 'genesis_after_post',
378
- 'desc' => __( 'This hook executes after each post in all loop blocks (outside the <code>post_class()</code> div).', 'simplehooks' ),
379
  'unhook' => array( 'genesis_do_author_box' )
380
  ) );
381
 
382
  simplehooks_form_generate( array(
383
  'hook' => 'genesis_before_post_title',
384
- 'desc' => __( 'This hook executes immediately before each post/page title within the loop.', 'simplehooks' )
385
  ) );
386
 
387
  simplehooks_form_generate( array(
388
  'hook' => 'genesis_post_title',
389
- 'desc' => __( 'This hook outputs the post/page title.', 'simplehooks' ),
390
  'unhook' => array( 'genesis_do_post_title' )
391
  ) );
392
 
393
  simplehooks_form_generate( array(
394
  'hook' => 'genesis_after_post_title',
395
- 'desc' => __( 'This hook executes immediately after each post/page title within the loop.', 'simplehooks' )
396
  ) );
397
 
398
  simplehooks_form_generate( array(
399
  'hook' => 'genesis_before_post_content',
400
- 'desc' => __( 'This hook executes immediately before the <code>genesis_post_content</code> hook for each post/page within the loop.', 'simplehooks' ),
401
  'unhook' => array( 'genesis_post_info' )
402
  ) );
403
 
404
  simplehooks_form_generate( array(
405
  'hook' => 'genesis_post_content',
406
- 'desc' => __( 'This hook outputs the content of the post/page, by default.', 'simplehooks' ),
407
  'unhook' => array( 'genesis_do_post_image', 'genesis_do_post_content' )
408
  ) );
409
 
410
  simplehooks_form_generate( array(
411
  'hook' => 'genesis_after_post_content',
412
- 'desc' => __( 'This hook executes immediately after the <code>genesis_post_content</code> hook for each post/page within the loop.', 'simplehooks' ),
413
  'unhook' => array( 'genesis_post_meta' )
414
  ) );
415
 
416
- submit_button( __( 'Save Changes', 'simplehooks' ), 'primary' );
417
 
418
  }
419
 
@@ -421,24 +421,24 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
421
 
422
  simplehooks_form_generate( array(
423
  'hook' => 'genesis_before_comments',
424
- 'desc' => __( 'This hook executes immediately before the comments block.', 'simplehooks' )
425
  ) );
426
 
427
  simplehooks_form_generate( array(
428
  'hook' => 'genesis_comments',
429
- 'desc' => __( 'This hook outputs the comments block.', 'simplehooks' ),
430
  'unhook' => array( 'genesis_do_comments' )
431
  ) );
432
 
433
  simplehooks_form_generate( array(
434
  'hook' => 'genesis_list_comments',
435
- 'desc' => __( 'This hook executes inside the comments block. By default, it outputs a list of comments associated with a post via the <code>genesis_default_list_comments()</code> function.', 'simplehooks' ),
436
  'unhook' => array( 'genesis_default_list_comments' )
437
  ) );
438
 
439
  simplehooks_form_generate( array(
440
  'hook' => 'genesis_after_comments',
441
- 'desc' => __( 'This hook executes immediately after the comments block.', 'simplehooks' )
442
  ) );
443
 
444
  }
@@ -447,27 +447,27 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
447
 
448
  simplehooks_form_generate( array(
449
  'hook' => 'genesis_before_pings',
450
- 'desc' => __( 'This hook executes immediately before the pings block.', 'simplehooks' ),
451
  'unhook' => array( 'genesis_do_pings' )
452
  ) );
453
 
454
  simplehooks_form_generate( array(
455
  'hook' => 'genesis_pings',
456
- 'desc' => __( 'This hook outputs the pings block.', 'simplehooks' )
457
  ) );
458
 
459
  simplehooks_form_generate( array(
460
  'hook' => 'genesis_list_pings',
461
- 'desc' => __( 'This hook executes inside the pings block. By default, it outputs a list of pings associated with a post via the <code>genesis_default_list_pings()</code> function.', 'simplehooks' ),
462
  'unhook' => array( 'genesis_default_list_pings' )
463
  ) );
464
 
465
  simplehooks_form_generate( array(
466
  'hook' => 'genesis_after_pings',
467
- 'desc' => __( 'This hook executes immediately after the pings block.', 'simplehooks' )
468
  ) );
469
 
470
- submit_button( __( 'Save Changes', 'simplehooks' ), 'primary' );
471
 
472
  }
473
 
@@ -475,15 +475,15 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
475
 
476
  simplehooks_form_generate( array(
477
  'hook' => 'genesis_before_comment',
478
- 'desc' => __( 'This hook executes immediately before each individual comment (inside the <code>.comment</code> list item).', 'simplehooks' )
479
  ) );
480
 
481
  simplehooks_form_generate( array(
482
  'hook' => 'genesis_after_comment',
483
- 'desc' => __( 'This hook executes immediately after each individual comment (inside the <code>.comment</code> list item).', 'simplehooks' )
484
  ) );
485
 
486
- submit_button( __( 'Save Changes', 'simplehooks' ), 'primary' );
487
 
488
  }
489
 
@@ -491,21 +491,21 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
491
 
492
  simplehooks_form_generate( array(
493
  'hook' => 'genesis_before_comment_form',
494
- 'desc' => __( 'This hook executes immediately before the comment form.', 'simplehooks' )
495
  ) );
496
 
497
  simplehooks_form_generate( array(
498
  'hook' => 'genesis_comment_form',
499
- 'desc' => __( 'This hook outputs the entire comment form.', 'simplehooks' ),
500
  'unhook' => array( 'genesis_do_comment_form' )
501
  ) );
502
 
503
  simplehooks_form_generate( array(
504
  'hook' => 'genesis_after_comment_form',
505
- 'desc' => __( 'This hook executes immediately after the comment form.', 'simplehooks' )
506
  ) );
507
 
508
- submit_button( __( 'Save Changes', 'simplehooks' ), 'primary' );
509
 
510
  }
511
 
@@ -513,57 +513,57 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
513
 
514
  simplehooks_form_generate( array(
515
  'hook' => 'genesis_before_sidebar',
516
- 'desc' => __( 'This hook executes immediately before the primary sidebar column.', 'simplehooks' )
517
  ) );
518
 
519
  simplehooks_form_generate( array(
520
  'hook' => 'genesis_sidebar',
521
- 'desc' => __( 'This hook outputs the content of the primary sidebar, including the widget area output.', 'simplehooks' ),
522
  'unhook' => array( 'genesis_do_sidebar' )
523
  ) );
524
 
525
  simplehooks_form_generate( array(
526
  'hook' => 'genesis_after_sidebar',
527
- 'desc' => __( 'This hook executes immediately after the primary sidebar column.', 'simplehooks' )
528
  ) );
529
 
530
  simplehooks_form_generate( array(
531
  'hook' => 'genesis_before_sidebar_widget_area',
532
- 'desc' => __( 'This hook executes immediately before the primary sidebar widget area.', 'simplehooks' )
533
  ) );
534
 
535
  simplehooks_form_generate( array(
536
  'hook' => 'genesis_after_sidebar_widget_area',
537
- 'desc' => __( 'This hook executes immediately after the primary sidebar widget area.', 'simplehooks' )
538
  ) );
539
 
540
  simplehooks_form_generate( array(
541
  'hook' => 'genesis_before_sidebar_alt',
542
- 'desc' => __( 'This hook executes immediately before the alternate sidebar column.', 'simplehooks' )
543
  ) );
544
 
545
  simplehooks_form_generate( array(
546
  'hook' => 'genesis_sidebar_alt',
547
- 'desc' => __( 'This hook outputs the content of the secondary sidebar, including the widget area output.', 'simplehooks' ),
548
  'unhook' => array( 'genesis_do_sidebar_alt' )
549
  ) );
550
 
551
  simplehooks_form_generate( array(
552
  'hook' => 'genesis_after_sidebar_alt',
553
- 'desc' => __( 'This hook executes immediately after the alternate sidebar column.', 'simplehooks' )
554
  ) );
555
 
556
  simplehooks_form_generate( array(
557
  'hook' => 'genesis_before_sidebar_alt_widget_area',
558
- 'desc' => __( 'This hook executes immediately before the alternate sidebar widget area.', 'simplehooks' )
559
  ) );
560
 
561
  simplehooks_form_generate( array(
562
  'hook' => 'genesis_after_sidebar_alt_widget_area',
563
- 'desc' => __( 'This hook executes immediately after the alternate sidebar widget area.', 'simplehooks' )
564
  ) );
565
 
566
- submit_button( __( 'Save Changes', 'simplehooks' ), 'primary' );
567
 
568
  }
569
 
@@ -571,21 +571,21 @@ class Genesis_Simple_Hooks_Admin extends Genesis_Admin_Boxes {
571
 
572
  simplehooks_form_generate( array(
573
  'hook' => 'genesis_before_footer',
574
- 'desc' => __( 'This hook executes immediately before the footer.', 'simplehooks' )
575
  ) );
576
 
577
  simplehooks_form_generate( array(
578
  'hook' => 'genesis_footer',
579
- 'desc' => __( 'This hook, by default, outputs the content of the footer.', 'simplehooks' ),
580
  'unhook' => array( 'genesis_do_footer' )
581
  ) );
582
 
583
  simplehooks_form_generate( array(
584
  'hook' => 'genesis_after_footer',
585
- 'desc' => __( 'This hook executes immediately after the footer.', 'simplehooks' )
586
  ) );
587
 
588
- submit_button( __( 'Save Changes', 'simplehooks' ), 'primary' );
589
 
590
  }
591
 
27
  $menu_ops = array(
28
  'submenu' => array(
29
  'parent_slug' => 'genesis',
30
+ 'page_title' => __( 'Genesis - Simple Hooks', 'genesis-simple-hooks' ),
31
+ 'menu_title' => __( 'Simple Hooks', 'genesis-simple-hooks' )
32
  )
33
  );
34
 
178
  */
179
  function metaboxes() {
180
 
181
+ add_meta_box( 'simplehooks-wp-hooks', __( 'WordPress Hooks', 'genesis-simple-hooks' ), array( $this, 'wp_hooks_box' ), $this->pagehook, 'main' );
182
+ add_meta_box( 'simplehooks-document-hooks', __( 'Document Hooks', 'genesis-simple-hooks' ), array( $this, 'document_hooks_box' ), $this->pagehook, 'main' );
183
+ add_meta_box( 'simplehooks-header-hooks', __( 'Header Hooks', 'genesis-simple-hooks' ), array( $this, 'header_hooks_box' ), $this->pagehook, 'main' );
184
+ add_meta_box( 'simplehooks-content-hooks', __( 'Content Hooks', 'genesis-simple-hooks' ), array( $this, 'content_hooks_box' ), $this->pagehook, 'main' );
185
+ add_meta_box( 'simplehooks-loop-hooks', __( 'Loop Hooks', 'genesis-simple-hooks' ), array( $this, 'loop_hooks_box' ), $this->pagehook, 'main' );
186
 
187
  if ( current_theme_supports( 'html5' ) )
188
+ add_meta_box( 'simplehooks-entry-hooks', __( 'Entry Hooks', 'genesis-simple-hooks' ), array( $this, 'html5_entry_hooks_box' ), $this->pagehook, 'main' );
189
  else
190
+ add_meta_box( 'simplehooks-post-hooks', __( 'Post/Page Hooks', 'genesis-simple-hooks' ), array( $this, 'post_hooks_box' ), $this->pagehook, 'main' );
191
 
192
+ add_meta_box( 'simplehooks-comment-list-hooks', __( 'Comment List Hooks', 'genesis-simple-hooks' ), array( $this, 'comment_list_hooks_box' ), $this->pagehook, 'main' );
193
+ add_meta_box( 'simplehooks-ping-list-hooks', __( 'Ping List Hooks', 'genesis-simple-hooks' ), array( $this, 'ping_list_hooks_box' ), $this->pagehook, 'main' );
194
+ add_meta_box( 'simplehooks-comment-hooks', __( 'Single Comment Hooks', 'genesis-simple-hooks' ), array( $this, 'comment_hooks_box' ), $this->pagehook, 'main' );
195
+ add_meta_box( 'simplehooks-comment-form-hooks', __( 'Comment Form Hooks', 'genesis-simple-hooks' ), array( $this, 'comment_form_hooks_box' ), $this->pagehook, 'main' );
196
+ add_meta_box( 'simplehooks-sidebar-hooks', __( 'Sidebar Hooks', 'genesis-simple-hooks' ), array( $this, 'sidebar_hooks_box' ), $this->pagehook, 'main' );
197
+ add_meta_box( 'simplehooks-footer-hooks', __( 'Footer Hooks', 'genesis-simple-hooks' ), array( $this, 'footer_hooks_box' ), $this->pagehook, 'main' );
198
 
199
  }
200
 
202
 
203
  simplehooks_form_generate( array(
204
  'hook' => 'wp_head',
205
+ 'desc' => __( 'This hook executes immediately before the closing <code>&lt;/head&gt;</code> tag.', 'genesis-simple-hooks' ),
206
  'unhook' => array( 'genesis_load_favicon' ),
207
  ) );
208
 
209
  simplehooks_form_generate( array(
210
  'hook' => 'wp_footer',
211
+ 'desc' => __( 'This hook executes immediately before the closing <code>&lt;/body&gt;</code> tag.', 'genesis-simple-hooks' ),
212
  ) );
213
 
214
+ submit_button( __( 'Save Changes', 'genesis-simple-hooks' ), 'primary' );
215
 
216
  }
217
 
219
 
220
  simplehooks_form_generate( array(
221
  'hook' => 'genesis_title',
222
+ 'desc' => __( 'This hook executes between the main document <code>&lt;title&gt;&lt;/title&gt;</code> tags.', 'genesis-simple-hooks' )
223
  ) );
224
 
225
  simplehooks_form_generate( array(
226
  'hook' => 'genesis_meta',
227
+ 'desc' => __( 'This hook executes in the document <code>&lt;head&gt;</code>.<br /> It is commonly used to output <code>META</code> information about the document.', 'genesis-simple-hooks' ),
228
  ) );
229
 
230
  simplehooks_form_generate( array(
231
  'hook' => 'genesis_before',
232
+ 'desc' => __( 'This hook executes immediately after the opening <code>&lt;body&gt;</code> tag.', 'genesis-simple-hooks' )
233
  ) );
234
 
235
  simplehooks_form_generate( array(
236
  'hook' => 'genesis_after',
237
+ 'desc' => __( 'This hook executes immediately before the closing <code>&lt;/body&gt;</code> tag.', 'genesis-simple-hooks' )
238
  ) );
239
 
240
+ submit_button( __( 'Save Changes', 'genesis-simple-hooks' ), 'primary' );
241
 
242
  }
243
 
245
 
246
  simplehooks_form_generate( array(
247
  'hook' => 'genesis_before_header',
248
+ 'desc' => __( 'This hook executes immediately before the header.', 'genesis-simple-hooks' )
249
  ) );
250
 
251
  simplehooks_form_generate( array(
252
  'hook' => 'genesis_header',
253
+ 'desc' => __( 'This hook outputs the default header.', 'genesis-simple-hooks' ),
254
  'unhook' => array( 'genesis_do_header' )
255
  ) );
256
 
257
  simplehooks_form_generate( array(
258
  'hook' => 'genesis_after_header',
259
+ 'desc' => __( 'This hook executes immediately after the header.', 'genesis-simple-hooks' )
260
  ) );
261
 
262
  simplehooks_form_generate( array(
263
  'hook' => 'genesis_site_title',
264
+ 'desc' => __( 'This hooks executes inside the header, and by default, outputs the site title.' , 'genesis-simple-hooks' ),
265
  'unhook' => array( 'genesis_seo_site_title' ),
266
  ) );
267
 
268
  simplehooks_form_generate( array(
269
  'hook' => 'genesis_site_description',
270
+ 'desc' => __( 'This hooks executes inside the header, and by default, outputs the site description.' , 'genesis-simple-hooks' ),
271
  'unhook' => array( 'genesis_seo_site_description' ),
272
  ) );
273
 
274
+ submit_button( __( 'Save Changes', 'genesis-simple-hooks' ), 'primary' );
275
 
276
  }
277
 
279
 
280
  simplehooks_form_generate( array(
281
  'hook' => 'genesis_before_content_sidebar_wrap',
282
+ 'desc' => __( 'This hook executes immediately before the div block that wraps the content and the primary sidebar.', 'genesis-simple-hooks' )
283
  ) );
284
 
285
  simplehooks_form_generate( array(
286
  'hook' => 'genesis_after_content_sidebar_wrap',
287
+ 'desc' => __( 'This hook executes immediately after the div block that wraps the content and the primary sidebar.', 'genesis-simple-hooks' )
288
  ) );
289
 
290
  simplehooks_form_generate( array(
291
  'hook' => 'genesis_before_content',
292
+ 'desc' => __( 'This hook executes immediately before the content column.', 'genesis-simple-hooks' )
293
  ) );
294
 
295
  simplehooks_form_generate( array(
296
  'hook' => 'genesis_after_content',
297
+ 'desc' => __( 'This hook executes immediately after the content column.', 'genesis-simple-hooks' )
298
  ) );
299
 
300
+ submit_button( __( 'Save Changes', 'genesis-simple-hooks' ), 'primary' );
301
 
302
  }
303
 
305
 
306
  simplehooks_form_generate( array(
307
  'hook' => 'genesis_before_loop',
308
+ 'desc' => __( 'This hook executes immediately before all loop blocks.<br /> Therefore, this hook falls outside the loop, and cannot execute functions that require loop template tags or variables.', 'genesis-simple-hooks' )
309
  ) );
310
 
311
  simplehooks_form_generate( array(
312
  'hook' => 'genesis_loop',
313
+ 'desc' => __( 'This hook executes both default and custom loops.', 'genesis-simple-hooks' ),
314
  'unhook' => array( 'genesis_do_loop' )
315
  ) );
316
 
317
  simplehooks_form_generate( array(
318
  'hook' => 'genesis_after_loop',
319
+ 'desc' => __( 'This hook executes immediately after all loop blocks.<br /> Therefore, this hook falls outside the loop, and cannot execute functions that require loop template tags or variables.', 'genesis-simple-hooks' )
320
  ) );
321
 
322
  simplehooks_form_generate( array(
323
  'hook' => 'genesis_after_endwhile',
324
+ 'desc' => __( 'This hook executes after the <code>endwhile;</code> statement.', 'genesis-simple-hooks' ),
325
  'unhook' => array( 'genesis_posts_nav' )
326
  ) );
327
 
328
  simplehooks_form_generate( array(
329
  'hook' => 'genesis_loop_else',
330
+ '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.', 'genesis-simple-hooks' ),
331
  'unhook' => array( 'genesis_do_noposts' )
332
  ) );
333
 
334
+ submit_button( __( 'Save Changes', 'genesis-simple-hooks' ), 'primary' );
335
 
336
  }
337
 
339
 
340
  simplehooks_form_generate(array(
341
  'hook' => 'genesis_before_entry',
342
+ 'desc' => __( 'This hook executes before each entry in all loop blocks (outside the entry markup element).', 'genesis-simple-hooks' )
343
  ) );
344
 
345
  simplehooks_form_generate(array(
346
  'hook' => 'genesis_entry_header',
347
+ 'desc' => __( 'This hook executes before the entry content. By default, it outputs the entry title and meta information.', 'genesis-simple-hooks' )
348
  ) );
349
 
350
  simplehooks_form_generate(array(
351
  'hook' => 'genesis_entry_content',
352
+ 'desc' => __( 'This hook, by default, outputs the entry content.', 'genesis-simple-hooks' )
353
  ) );
354
 
355
  simplehooks_form_generate(array(
356
  'hook' => 'genesis_entry_footer',
357
+ 'desc' => __( 'This hook executes after the entry content. By Default, it outputs entry meta information.', 'genesis-simple-hooks' )
358
  ) );
359
 
360
  simplehooks_form_generate(array(
361
  'hook' => 'genesis_after_entry',
362
+ 'desc' => __( 'This hook executes after each entry in all loop blocks (outside the entry markup element).', 'genesis-simple-hooks' )
363
  ) );
364
 
365
+ submit_button( __( 'Save Changes', 'genesis-simple-hooks' ), 'primary' );
366
 
367
  }
368
 
370
 
371
  simplehooks_form_generate( array(
372
  'hook' => 'genesis_before_post',
373
+ 'desc' => __( 'This hook executes before each post in all loop blocks (outside the <code>post_class()</code> div).', 'genesis-simple-hooks' )
374
  ) );
375
 
376
  simplehooks_form_generate( array(
377
  'hook' => 'genesis_after_post',
378
+ 'desc' => __( 'This hook executes after each post in all loop blocks (outside the <code>post_class()</code> div).', 'genesis-simple-hooks' ),
379
  'unhook' => array( 'genesis_do_author_box' )
380
  ) );
381
 
382
  simplehooks_form_generate( array(
383
  'hook' => 'genesis_before_post_title',
384
+ 'desc' => __( 'This hook executes immediately before each post/page title within the loop.', 'genesis-simple-hooks' )
385
  ) );
386
 
387
  simplehooks_form_generate( array(
388
  'hook' => 'genesis_post_title',
389
+ 'desc' => __( 'This hook outputs the post/page title.', 'genesis-simple-hooks' ),
390
  'unhook' => array( 'genesis_do_post_title' )
391
  ) );
392
 
393
  simplehooks_form_generate( array(
394
  'hook' => 'genesis_after_post_title',
395
+ 'desc' => __( 'This hook executes immediately after each post/page title within the loop.', 'genesis-simple-hooks' )
396
  ) );
397
 
398
  simplehooks_form_generate( array(
399
  'hook' => 'genesis_before_post_content',
400
+ 'desc' => __( 'This hook executes immediately before the <code>genesis_post_content</code> hook for each post/page within the loop.', 'genesis-simple-hooks' ),
401
  'unhook' => array( 'genesis_post_info' )
402
  ) );
403
 
404
  simplehooks_form_generate( array(
405
  'hook' => 'genesis_post_content',
406
+ 'desc' => __( 'This hook outputs the content of the post/page, by default.', 'genesis-simple-hooks' ),
407
  'unhook' => array( 'genesis_do_post_image', 'genesis_do_post_content' )
408
  ) );
409
 
410
  simplehooks_form_generate( array(
411
  'hook' => 'genesis_after_post_content',
412
+ 'desc' => __( 'This hook executes immediately after the <code>genesis_post_content</code> hook for each post/page within the loop.', 'genesis-simple-hooks' ),
413
  'unhook' => array( 'genesis_post_meta' )
414
  ) );
415
 
416
+ submit_button( __( 'Save Changes', 'genesis-simple-hooks' ), 'primary' );
417
 
418
  }
419
 
421
 
422
  simplehooks_form_generate( array(
423
  'hook' => 'genesis_before_comments',
424
+ 'desc' => __( 'This hook executes immediately before the comments block.', 'genesis-simple-hooks' )
425
  ) );
426
 
427
  simplehooks_form_generate( array(
428
  'hook' => 'genesis_comments',
429
+ 'desc' => __( 'This hook outputs the comments block.', 'genesis-simple-hooks' ),
430
  'unhook' => array( 'genesis_do_comments' )
431
  ) );
432
 
433
  simplehooks_form_generate( array(
434
  'hook' => 'genesis_list_comments',
435
+ 'desc' => __( 'This hook executes inside the comments block. By default, it outputs a list of comments associated with a post via the <code>genesis_default_list_comments()</code> function.', 'genesis-simple-hooks' ),
436
  'unhook' => array( 'genesis_default_list_comments' )
437
  ) );
438
 
439
  simplehooks_form_generate( array(
440
  'hook' => 'genesis_after_comments',
441
+ 'desc' => __( 'This hook executes immediately after the comments block.', 'genesis-simple-hooks' )
442
  ) );
443
 
444
  }
447
 
448
  simplehooks_form_generate( array(
449
  'hook' => 'genesis_before_pings',
450
+ 'desc' => __( 'This hook executes immediately before the pings block.', 'genesis-simple-hooks' ),
451
  'unhook' => array( 'genesis_do_pings' )
452
  ) );
453
 
454
  simplehooks_form_generate( array(
455
  'hook' => 'genesis_pings',
456
+ 'desc' => __( 'This hook outputs the pings block.', 'genesis-simple-hooks' )
457
  ) );
458
 
459
  simplehooks_form_generate( array(
460
  'hook' => 'genesis_list_pings',
461
+ 'desc' => __( 'This hook executes inside the pings block. By default, it outputs a list of pings associated with a post via the <code>genesis_default_list_pings()</code> function.', 'genesis-simple-hooks' ),
462
  'unhook' => array( 'genesis_default_list_pings' )
463
  ) );
464
 
465
  simplehooks_form_generate( array(
466
  'hook' => 'genesis_after_pings',
467
+ 'desc' => __( 'This hook executes immediately after the pings block.', 'genesis-simple-hooks' )
468
  ) );
469
 
470
+ submit_button( __( 'Save Changes', 'genesis-simple-hooks' ), 'primary' );
471
 
472
  }
473
 
475
 
476
  simplehooks_form_generate( array(
477
  'hook' => 'genesis_before_comment',
478
+ 'desc' => __( 'This hook executes immediately before each individual comment (inside the <code>.comment</code> list item).', 'genesis-simple-hooks' )
479
  ) );
480
 
481
  simplehooks_form_generate( array(
482
  'hook' => 'genesis_after_comment',
483
+ 'desc' => __( 'This hook executes immediately after each individual comment (inside the <code>.comment</code> list item).', 'genesis-simple-hooks' )
484
  ) );
485
 
486
+ submit_button( __( 'Save Changes', 'genesis-simple-hooks' ), 'primary' );
487
 
488
  }
489
 
491
 
492
  simplehooks_form_generate( array(
493
  'hook' => 'genesis_before_comment_form',
494
+ 'desc' => __( 'This hook executes immediately before the comment form.', 'genesis-simple-hooks' )
495
  ) );
496
 
497
  simplehooks_form_generate( array(
498
  'hook' => 'genesis_comment_form',
499
+ 'desc' => __( 'This hook outputs the entire comment form.', 'genesis-simple-hooks' ),
500
  'unhook' => array( 'genesis_do_comment_form' )
501
  ) );
502
 
503
  simplehooks_form_generate( array(
504
  'hook' => 'genesis_after_comment_form',
505
+ 'desc' => __( 'This hook executes immediately after the comment form.', 'genesis-simple-hooks' )
506
  ) );
507
 
508
+ submit_button( __( 'Save Changes', 'genesis-simple-hooks' ), 'primary' );
509
 
510
  }
511
 
513
 
514
  simplehooks_form_generate( array(
515
  'hook' => 'genesis_before_sidebar',
516
+ 'desc' => __( 'This hook executes immediately before the primary sidebar column.', 'genesis-simple-hooks' )
517
  ) );
518
 
519
  simplehooks_form_generate( array(
520
  'hook' => 'genesis_sidebar',
521
+ 'desc' => __( 'This hook outputs the content of the primary sidebar, including the widget area output.', 'genesis-simple-hooks' ),
522
  'unhook' => array( 'genesis_do_sidebar' )
523
  ) );
524
 
525
  simplehooks_form_generate( array(
526
  'hook' => 'genesis_after_sidebar',
527
+ 'desc' => __( 'This hook executes immediately after the primary sidebar column.', 'genesis-simple-hooks' )
528
  ) );
529
 
530
  simplehooks_form_generate( array(
531
  'hook' => 'genesis_before_sidebar_widget_area',
532
+ 'desc' => __( 'This hook executes immediately before the primary sidebar widget area.', 'genesis-simple-hooks' )
533
  ) );
534
 
535
  simplehooks_form_generate( array(
536
  'hook' => 'genesis_after_sidebar_widget_area',
537
+ 'desc' => __( 'This hook executes immediately after the primary sidebar widget area.', 'genesis-simple-hooks' )
538
  ) );
539
 
540
  simplehooks_form_generate( array(
541
  'hook' => 'genesis_before_sidebar_alt',
542
+ 'desc' => __( 'This hook executes immediately before the alternate sidebar column.', 'genesis-simple-hooks' )
543
  ) );
544
 
545
  simplehooks_form_generate( array(
546
  'hook' => 'genesis_sidebar_alt',
547
+ 'desc' => __( 'This hook outputs the content of the secondary sidebar, including the widget area output.', 'genesis-simple-hooks' ),
548
  'unhook' => array( 'genesis_do_sidebar_alt' )
549
  ) );
550
 
551
  simplehooks_form_generate( array(
552
  'hook' => 'genesis_after_sidebar_alt',
553
+ 'desc' => __( 'This hook executes immediately after the alternate sidebar column.', 'genesis-simple-hooks' )
554
  ) );
555
 
556
  simplehooks_form_generate( array(
557
  'hook' => 'genesis_before_sidebar_alt_widget_area',
558
+ 'desc' => __( 'This hook executes immediately before the alternate sidebar widget area.', 'genesis-simple-hooks' )
559
  ) );
560
 
561
  simplehooks_form_generate( array(
562
  'hook' => 'genesis_after_sidebar_alt_widget_area',
563
+ 'desc' => __( 'This hook executes immediately after the alternate sidebar widget area.', 'genesis-simple-hooks' )
564
  ) );
565
 
566
+ submit_button( __( 'Save Changes', 'genesis-simple-hooks' ), 'primary' );
567
 
568
  }
569
 
571
 
572
  simplehooks_form_generate( array(
573
  'hook' => 'genesis_before_footer',
574
+ 'desc' => __( 'This hook executes immediately before the footer.', 'genesis-simple-hooks' )
575
  ) );
576
 
577
  simplehooks_form_generate( array(
578
  'hook' => 'genesis_footer',
579
+ 'desc' => __( 'This hook, by default, outputs the content of the footer.', 'genesis-simple-hooks' ),
580
  'unhook' => array( 'genesis_do_footer' )
581
  ) );
582
 
583
  simplehooks_form_generate( array(
584
  'hook' => 'genesis_after_footer',
585
+ 'desc' => __( 'This hook executes immediately after the footer.', 'genesis-simple-hooks' )
586
  ) );
587
 
588
+ submit_button( __( 'Save Changes', 'genesis-simple-hooks' ), 'primary' );
589
 
590
  }
591
 
functions.php CHANGED
@@ -42,7 +42,7 @@ function simplehooks_form_generate( $args = array() ) {
42
 
43
  ?>
44
 
45
- <h4><code><?php echo $args['hook']; ?></code> <?php _e( 'Hook', 'simplehooks' ); ?></h4>
46
  <p><span class="description"><?php echo $args['desc']; ?></span></p>
47
 
48
  <?php
@@ -51,7 +51,7 @@ function simplehooks_form_generate( $args = array() ) {
51
  foreach ( (array) $args['unhook'] as $function ) {
52
  ?>
53
 
54
- <input type="checkbox" name="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][unhook][]" id="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][unhook][]" value="<?php echo $function; ?>" <?php if ( in_array( $function, (array) simplehooks_get_option( $args['hook'], 'unhook' ) ) ) echo 'checked'; ?> /> <label for="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][unhook][]"><?php printf( __( 'Unhook <code>%s()</code> function from this hook?', 'simplehooks' ), $function ); ?></label><br />
55
 
56
  <?php
57
  }
@@ -62,8 +62,8 @@ function simplehooks_form_generate( $args = array() ) {
62
  <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>
63
 
64
  <p>
65
- <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 />
66
- <input type="checkbox" name="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][php]" id="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][php]" value="1" <?php checked( 1, simplehooks_get_option( $args['hook'], 'php' ) ); ?> /> <label for="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][php]"><?php _e( 'Execute PHP on this hook?', 'simplehooks' ); ?></label>
67
  </p>
68
 
69
  <hr class="div" />
42
 
43
  ?>
44
 
45
+ <h4><code><?php echo $args['hook']; ?></code> <?php _e( 'Hook', 'genesis-simple-hooks' ); ?></h4>
46
  <p><span class="description"><?php echo $args['desc']; ?></span></p>
47
 
48
  <?php
51
  foreach ( (array) $args['unhook'] as $function ) {
52
  ?>
53
 
54
+ <input type="checkbox" name="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][unhook][]" id="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][unhook][]" value="<?php echo $function; ?>" <?php if ( in_array( $function, (array) simplehooks_get_option( $args['hook'], 'unhook' ) ) ) echo 'checked'; ?> /> <label for="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][unhook][]"><?php printf( __( 'Unhook <code>%s()</code> function from this hook?', 'genesis-simple-hooks' ), $function ); ?></label><br />
55
 
56
  <?php
57
  }
62
  <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>
63
 
64
  <p>
65
+ <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?', 'genesis-simple-hooks' ); ?></label><br />
66
+ <input type="checkbox" name="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][php]" id="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][php]" value="1" <?php checked( 1, simplehooks_get_option( $args['hook'], 'php' ) ); ?> /> <label for="<?php echo SIMPLEHOOKS_SETTINGS_FIELD; ?>[<?php echo $args['hook']; ?>][php]"><?php _e( 'Execute PHP on this hook?', 'genesis-simple-hooks' ); ?></label>
67
  </p>
68
 
69
  <hr class="div" />
languages/genesis-simple-hooks.pot ADDED
@@ -0,0 +1,424 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2015 Nathan Rice
2
+ # This file is distributed under the GNU General Public License v2.0 (or later).
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Genesis Simple Hooks 2.1.1\n"
6
+ "Report-Msgid-Bugs-To: StudioPress <translations@studiopress.com>\n"
7
+ "POT-Creation-Date: 2015-09-29 20:13:39+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: StudioPress <translations@studiopress.com>\n"
13
+ "Language-Team: English <translations@studiopress.com>\n"
14
+ "X-Generator: grunt-wp-i18n 0.4.4\n"
15
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
+ "X-Poedit-Basepath: .\n"
17
+ "X-Poedit-Language: English\n"
18
+ "X-Poedit-Country: UNITED STATES\n"
19
+ "X-Poedit-SourceCharset: utf-8\n"
20
+ "X-Poedit-KeywordsList: "
21
+ "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
22
+ "attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
23
+ "X-Poedit-Bookmarks: \n"
24
+ "X-Poedit-SearchPath-0: .\n"
25
+ "X-Textdomain-Support: yes\n"
26
+
27
+ #: admin.php:30
28
+ msgid "Genesis - Simple Hooks"
29
+ msgstr ""
30
+
31
+ #: admin.php:31
32
+ msgid "Simple Hooks"
33
+ msgstr ""
34
+
35
+ #: admin.php:181
36
+ msgid "WordPress Hooks"
37
+ msgstr ""
38
+
39
+ #: admin.php:182
40
+ msgid "Document Hooks"
41
+ msgstr ""
42
+
43
+ #: admin.php:183
44
+ msgid "Header Hooks"
45
+ msgstr ""
46
+
47
+ #: admin.php:184
48
+ msgid "Content Hooks"
49
+ msgstr ""
50
+
51
+ #: admin.php:185
52
+ msgid "Loop Hooks"
53
+ msgstr ""
54
+
55
+ #: admin.php:188
56
+ msgid "Entry Hooks"
57
+ msgstr ""
58
+
59
+ #: admin.php:190
60
+ msgid "Post/Page Hooks"
61
+ msgstr ""
62
+
63
+ #: admin.php:192
64
+ msgid "Comment List Hooks"
65
+ msgstr ""
66
+
67
+ #: admin.php:193
68
+ msgid "Ping List Hooks"
69
+ msgstr ""
70
+
71
+ #: admin.php:194
72
+ msgid "Single Comment Hooks"
73
+ msgstr ""
74
+
75
+ #: admin.php:195
76
+ msgid "Comment Form Hooks"
77
+ msgstr ""
78
+
79
+ #: admin.php:196
80
+ msgid "Sidebar Hooks"
81
+ msgstr ""
82
+
83
+ #: admin.php:197
84
+ msgid "Footer Hooks"
85
+ msgstr ""
86
+
87
+ #: admin.php:205
88
+ msgid ""
89
+ "This hook executes immediately before the closing "
90
+ "<code>&lt;/head&gt;</code> tag."
91
+ msgstr ""
92
+
93
+ #: admin.php:211 admin.php:237
94
+ msgid ""
95
+ "This hook executes immediately before the closing "
96
+ "<code>&lt;/body&gt;</code> tag."
97
+ msgstr ""
98
+
99
+ #: admin.php:214 admin.php:240 admin.php:274 admin.php:300 admin.php:334
100
+ #: admin.php:365 admin.php:416 admin.php:470 admin.php:486 admin.php:508
101
+ #: admin.php:566 admin.php:588
102
+ msgid "Save Changes"
103
+ msgstr ""
104
+
105
+ #: admin.php:222
106
+ msgid ""
107
+ "This hook executes between the main document "
108
+ "<code>&lt;title&gt;&lt;/title&gt;</code> tags."
109
+ msgstr ""
110
+
111
+ #: admin.php:227
112
+ msgid ""
113
+ "This hook executes in the document <code>&lt;head&gt;</code>.<br /> It is "
114
+ "commonly used to output <code>META</code> information about the document."
115
+ msgstr ""
116
+
117
+ #: admin.php:232
118
+ msgid ""
119
+ "This hook executes immediately after the opening <code>&lt;body&gt;</code> "
120
+ "tag."
121
+ msgstr ""
122
+
123
+ #: admin.php:248
124
+ msgid "This hook executes immediately before the header."
125
+ msgstr ""
126
+
127
+ #: admin.php:253
128
+ msgid "This hook outputs the default header."
129
+ msgstr ""
130
+
131
+ #: admin.php:259
132
+ msgid "This hook executes immediately after the header."
133
+ msgstr ""
134
+
135
+ #: admin.php:264
136
+ msgid ""
137
+ "This hooks executes inside the header, and by default, outputs the site "
138
+ "title."
139
+ msgstr ""
140
+
141
+ #: admin.php:270
142
+ msgid ""
143
+ "This hooks executes inside the header, and by default, outputs the site "
144
+ "description."
145
+ msgstr ""
146
+
147
+ #: admin.php:282
148
+ msgid ""
149
+ "This hook executes immediately before the div block that wraps the content "
150
+ "and the primary sidebar."
151
+ msgstr ""
152
+
153
+ #: admin.php:287
154
+ msgid ""
155
+ "This hook executes immediately after the div block that wraps the content "
156
+ "and the primary sidebar."
157
+ msgstr ""
158
+
159
+ #: admin.php:292
160
+ msgid "This hook executes immediately before the content column."
161
+ msgstr ""
162
+
163
+ #: admin.php:297
164
+ msgid "This hook executes immediately after the content column."
165
+ msgstr ""
166
+
167
+ #: admin.php:308
168
+ msgid ""
169
+ "This hook executes immediately before all loop blocks.<br /> Therefore, "
170
+ "this hook falls outside the loop, and cannot execute functions that require "
171
+ "loop template tags or variables."
172
+ msgstr ""
173
+
174
+ #: admin.php:313
175
+ msgid "This hook executes both default and custom loops."
176
+ msgstr ""
177
+
178
+ #: admin.php:319
179
+ msgid ""
180
+ "This hook executes immediately after all loop blocks.<br /> Therefore, this "
181
+ "hook falls outside the loop, and cannot execute functions that require loop "
182
+ "template tags or variables."
183
+ msgstr ""
184
+
185
+ #: admin.php:324
186
+ msgid "This hook executes after the <code>endwhile;</code> statement."
187
+ msgstr ""
188
+
189
+ #: admin.php:330
190
+ msgid ""
191
+ "This hook executes after the <code>else :</code> statement in all loop "
192
+ "blocks. The content attached to this hook will only display if there are no "
193
+ "posts available when a loop is executed."
194
+ msgstr ""
195
+
196
+ #: admin.php:342
197
+ msgid ""
198
+ "This hook executes before each entry in all loop blocks (outside the entry "
199
+ "markup element)."
200
+ msgstr ""
201
+
202
+ #: admin.php:347
203
+ msgid ""
204
+ "This hook executes before the entry content. By default, it outputs the "
205
+ "entry title and meta information."
206
+ msgstr ""
207
+
208
+ #: admin.php:352
209
+ msgid "This hook, by default, outputs the entry content."
210
+ msgstr ""
211
+
212
+ #: admin.php:357
213
+ msgid ""
214
+ "This hook executes after the entry content. By Default, it outputs entry "
215
+ "meta information."
216
+ msgstr ""
217
+
218
+ #: admin.php:362
219
+ msgid ""
220
+ "This hook executes after each entry in all loop blocks (outside the entry "
221
+ "markup element)."
222
+ msgstr ""
223
+
224
+ #: admin.php:373
225
+ msgid ""
226
+ "This hook executes before each post in all loop blocks (outside the "
227
+ "<code>post_class()</code> div)."
228
+ msgstr ""
229
+
230
+ #: admin.php:378
231
+ msgid ""
232
+ "This hook executes after each post in all loop blocks (outside the "
233
+ "<code>post_class()</code> div)."
234
+ msgstr ""
235
+
236
+ #: admin.php:384
237
+ msgid "This hook executes immediately before each post/page title within the loop."
238
+ msgstr ""
239
+
240
+ #: admin.php:389
241
+ msgid "This hook outputs the post/page title."
242
+ msgstr ""
243
+
244
+ #: admin.php:395
245
+ msgid "This hook executes immediately after each post/page title within the loop."
246
+ msgstr ""
247
+
248
+ #: admin.php:400
249
+ msgid ""
250
+ "This hook executes immediately before the <code>genesis_post_content</code> "
251
+ "hook for each post/page within the loop."
252
+ msgstr ""
253
+
254
+ #: admin.php:406
255
+ msgid "This hook outputs the content of the post/page, by default."
256
+ msgstr ""
257
+
258
+ #: admin.php:412
259
+ msgid ""
260
+ "This hook executes immediately after the <code>genesis_post_content</code> "
261
+ "hook for each post/page within the loop."
262
+ msgstr ""
263
+
264
+ #: admin.php:424
265
+ msgid "This hook executes immediately before the comments block."
266
+ msgstr ""
267
+
268
+ #: admin.php:429
269
+ msgid "This hook outputs the comments block."
270
+ msgstr ""
271
+
272
+ #: admin.php:435
273
+ msgid ""
274
+ "This hook executes inside the comments block. By default, it outputs a list "
275
+ "of comments associated with a post via the "
276
+ "<code>genesis_default_list_comments()</code> function."
277
+ msgstr ""
278
+
279
+ #: admin.php:441
280
+ msgid "This hook executes immediately after the comments block."
281
+ msgstr ""
282
+
283
+ #: admin.php:450
284
+ msgid "This hook executes immediately before the pings block."
285
+ msgstr ""
286
+
287
+ #: admin.php:456
288
+ msgid "This hook outputs the pings block."
289
+ msgstr ""
290
+
291
+ #: admin.php:461
292
+ msgid ""
293
+ "This hook executes inside the pings block. By default, it outputs a list of "
294
+ "pings associated with a post via the "
295
+ "<code>genesis_default_list_pings()</code> function."
296
+ msgstr ""
297
+
298
+ #: admin.php:467
299
+ msgid "This hook executes immediately after the pings block."
300
+ msgstr ""
301
+
302
+ #: admin.php:478
303
+ msgid ""
304
+ "This hook executes immediately before each individual comment (inside the "
305
+ "<code>.comment</code> list item)."
306
+ msgstr ""
307
+
308
+ #: admin.php:483
309
+ msgid ""
310
+ "This hook executes immediately after each individual comment (inside the "
311
+ "<code>.comment</code> list item)."
312
+ msgstr ""
313
+
314
+ #: admin.php:494
315
+ msgid "This hook executes immediately before the comment form."
316
+ msgstr ""
317
+
318
+ #: admin.php:499
319
+ msgid "This hook outputs the entire comment form."
320
+ msgstr ""
321
+
322
+ #: admin.php:505
323
+ msgid "This hook executes immediately after the comment form."
324
+ msgstr ""
325
+
326
+ #: admin.php:516
327
+ msgid "This hook executes immediately before the primary sidebar column."
328
+ msgstr ""
329
+
330
+ #: admin.php:521
331
+ msgid ""
332
+ "This hook outputs the content of the primary sidebar, including the widget "
333
+ "area output."
334
+ msgstr ""
335
+
336
+ #: admin.php:527
337
+ msgid "This hook executes immediately after the primary sidebar column."
338
+ msgstr ""
339
+
340
+ #: admin.php:532
341
+ msgid "This hook executes immediately before the primary sidebar widget area."
342
+ msgstr ""
343
+
344
+ #: admin.php:537
345
+ msgid "This hook executes immediately after the primary sidebar widget area."
346
+ msgstr ""
347
+
348
+ #: admin.php:542
349
+ msgid "This hook executes immediately before the alternate sidebar column."
350
+ msgstr ""
351
+
352
+ #: admin.php:547
353
+ msgid ""
354
+ "This hook outputs the content of the secondary sidebar, including the "
355
+ "widget area output."
356
+ msgstr ""
357
+
358
+ #: admin.php:553
359
+ msgid "This hook executes immediately after the alternate sidebar column."
360
+ msgstr ""
361
+
362
+ #: admin.php:558
363
+ msgid "This hook executes immediately before the alternate sidebar widget area."
364
+ msgstr ""
365
+
366
+ #: admin.php:563
367
+ msgid "This hook executes immediately after the alternate sidebar widget area."
368
+ msgstr ""
369
+
370
+ #: admin.php:574
371
+ msgid "This hook executes immediately before the footer."
372
+ msgstr ""
373
+
374
+ #: admin.php:579
375
+ msgid "This hook, by default, outputs the content of the footer."
376
+ msgstr ""
377
+
378
+ #: admin.php:585
379
+ msgid "This hook executes immediately after the footer."
380
+ msgstr ""
381
+
382
+ #: functions.php:45
383
+ msgid "Hook"
384
+ msgstr ""
385
+
386
+ #: functions.php:54
387
+ msgid "Unhook <code>%s()</code> function from this hook?"
388
+ msgstr ""
389
+
390
+ #: functions.php:65
391
+ msgid "Execute Shortcodes on this hook?"
392
+ msgstr ""
393
+
394
+ #: functions.php:66
395
+ msgid "Execute PHP on this hook?"
396
+ msgstr ""
397
+
398
+ #: plugin.php:45
399
+ msgid ""
400
+ "Sorry, you cannot run Simple Hooks without WordPress %s and <a "
401
+ "href=\"%s\">Genesis %s</a>, or greater."
402
+ msgstr ""
403
+
404
+ #. Plugin Name of the plugin/theme
405
+ msgid "Genesis Simple Hooks"
406
+ msgstr ""
407
+
408
+ #. Plugin URI of the plugin/theme
409
+ msgid "http://www.studiopress.com/plugins/simple-hooks"
410
+ msgstr ""
411
+
412
+ #. Description of the plugin/theme
413
+ msgid ""
414
+ "Genesis Simple Hooks allows you easy access to the 50+ Action Hooks in the "
415
+ "Genesis Theme."
416
+ msgstr ""
417
+
418
+ #. Author of the plugin/theme
419
+ msgid "Nathan Rice"
420
+ msgstr ""
421
+
422
+ #. Author URI of the plugin/theme
423
+ msgid "http://www.nathanrice.net/"
424
+ msgstr ""
package.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "genesis-simple-hooks",
3
+ "description": "Development files for the Genesis Simple Hooks plugin.",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/copyblogger/genesis-simple-hooks"
7
+ },
8
+ "dependencies": {},
9
+ "devDependencies": {
10
+ "grunt": "^0.4.5",
11
+ "grunt-autoprefixer": "^0.8.1",
12
+ "grunt-checktextdomain": "^0.1.1",
13
+ "grunt-contrib-cssmin": "^0.10.0",
14
+ "grunt-contrib-imagemin": "^0.7.1",
15
+ "grunt-contrib-jshint": "^0.10.0",
16
+ "grunt-contrib-uglify": "^0.5.0",
17
+ "grunt-contrib-watch": "^0.6.1",
18
+ "grunt-csscomb": "~2.0.1",
19
+ "grunt-jsbeautifier": "^0.2.7",
20
+ "grunt-jsvalidate": "^0.2.2",
21
+ "grunt-phplint": "0.0.5",
22
+ "grunt-styledocco": "^0.1.4",
23
+ "grunt-wp-i18n": "^0.4.5",
24
+ "load-grunt-tasks": "^0.6.0"
25
+ },
26
+ "plugin": {
27
+ "name": "Genesis Simple Hooks",
28
+ "uri": "https://github.com/copyblogger/genesis-simple-hooks",
29
+ "description": "Genesis Simple Hooks allows you easy access to the 50+ Action Hooks in the Genesis Theme.",
30
+ "author": "StudioPress",
31
+ "authoruri": "http://www.studiopress.com/",
32
+ "version": "2.1.1",
33
+ "license": "GPL-2.0+",
34
+ "licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
35
+ "textdomain": "genesis-simple-hooks"
36
+ }
37
+ }
plugin.php CHANGED
@@ -8,7 +8,7 @@
8
  Author: Nathan Rice
9
  Author URI: http://www.nathanrice.net/
10
 
11
- Version: 2.1.0
12
 
13
  License: GNU General Public License v2.0 (or later)
14
  License URI: http://www.opensource.org/licenses/gpl-license.php
@@ -42,7 +42,7 @@ function simplehooks_activation() {
42
  function simplehooks_deactivate( $genesis_version = '2.1.0', $wp_version = '3.9.2' ) {
43
 
44
  deactivate_plugins( plugin_basename( __FILE__ ) );
45
- wp_die( sprintf( __( 'Sorry, you cannot run Simple Hooks without WordPress %s and <a href="%s">Genesis %s</a>, or greater.', 'simplehooks' ), $wp_version, 'http://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa', $genesis_version ) );
46
 
47
  }
48
 
8
  Author: Nathan Rice
9
  Author URI: http://www.nathanrice.net/
10
 
11
+ Version: 2.1.1
12
 
13
  License: GNU General Public License v2.0 (or later)
14
  License URI: http://www.opensource.org/licenses/gpl-license.php
42
  function simplehooks_deactivate( $genesis_version = '2.1.0', $wp_version = '3.9.2' ) {
43
 
44
  deactivate_plugins( plugin_basename( __FILE__ ) );
45
+ wp_die( sprintf( __( 'Sorry, you cannot run Simple Hooks without WordPress %s and <a href="%s">Genesis %s</a>, or greater.', 'genesis-simple-hooks' ), $wp_version, 'http://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa', $genesis_version ) );
46
 
47
  }
48
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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: 3.9.2
6
- Tested up to: 4.0.0
7
- Stable tag: 2.1.0
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
 
@@ -72,36 +72,30 @@ The most common request from Genesis users is how to properly modify their foote
72
 
73
  == Changelog ==
74
 
75
- = 0.1 =
76
- * Initial Release
77
 
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
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
93
 
94
- = 1.3.1.1 =
95
- * Reduce requirement to Genesis 1.3
96
- * Increase requirement to WordPress 3.0
97
 
98
- = 1.4 =
99
- * Increased requirement to Genesis 1.4
100
- * Fixed undefined index bug in functions.php
101
 
102
- = 1.6 =
103
- * Increased requirement to Genesis 1.6
104
- * Fixed bug with things not unhooking
105
 
106
  = 1.7.1 =
107
  * Increased requirement to Genesis 1.7.1
@@ -109,24 +103,41 @@ The most common request from Genesis users is how to properly modify their foote
109
  * Added new hooks to the defaults array
110
  * Whitespace, standards, and documentation
111
 
112
- = 1.8.0 =
113
- * Increased requirement to Genesis 1.8.0.
114
- * Switched over to the Genesis 1.8 admin menu class to build admin menu.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
- = 1.8.0.1 =
117
- * Removed an unnecessary version compare check that was causing some fatal errors.
118
 
119
- = 1.8.0.2 =
120
- * Fixed yet another fatal error but for people using less than Genesis 1.8.0. It should now deactivate gracefully.
121
 
122
- = 2.0.0 =
123
- * Updated to use new entry hooks in Genesis 2.0.
124
- * Remove unused boxes.php file.
125
 
126
- = 2.0.1 =
127
- * Genesis 2.0 favicon unhook location fix.
128
 
129
- = 2.1.0 =
130
- * Increased requirement to Genesis 2.1.0.
131
- * Site title and description hooks.
132
- * Fixed outdated hook descriptions.
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: 3.9.2
6
+ Tested up to: 4.3.1
7
+ Stable tag: 2.1.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
 
72
 
73
  == Changelog ==
74
 
75
+ = 2.1.1 =
76
+ * Generate POT file.
77
 
78
+ = 2.1.0 =
79
+ * Increased requirement to Genesis 2.1.0.
80
+ * Site title and description hooks.
81
+ * Fixed outdated hook descriptions.
82
 
83
+ = 2.0.1 =
84
+ * Genesis 2.0 favicon unhook location fix.
 
 
85
 
86
+ = 2.0.0 =
87
+ * Updated to use new entry hooks in Genesis 2.0.
88
+ * Remove unused boxes.php file.
 
 
89
 
90
+ = 1.8.0.2 =
91
+ * Fixed yet another fatal error but for people using less than Genesis 1.8.0. It should now deactivate gracefully.
 
92
 
93
+ = 1.8.0.1 =
94
+ * Removed an unnecessary version compare check that was causing some fatal errors.
 
95
 
96
+ = 1.8.0 =
97
+ * Increased requirement to Genesis 1.8.0.
98
+ * Switched over to the Genesis 1.8 admin menu class to build admin menu.
99
 
100
  = 1.7.1 =
101
  * Increased requirement to Genesis 1.7.1
103
  * Added new hooks to the defaults array
104
  * Whitespace, standards, and documentation
105
 
106
+ = 1.6 =
107
+ * Increased requirement to Genesis 1.6
108
+ * Fixed bug with things not unhooking
109
+
110
+ = 1.4 =
111
+ * Increased requirement to Genesis 1.4
112
+ * Fixed undefined index bug in functions.php
113
+
114
+ = 1.3.1.1 =
115
+ * Reduce requirement to Genesis 1.3
116
+ * Increase requirement to WordPress 3.0
117
+
118
+ = 1.3.1 =
119
+ * Bump to match Genesis version
120
+ * Require Genesis 1.3.1
121
+ * Added new unhook options
122
+ * Fixed bug with foreign language compatibility
123
+
124
+ = 1.2 =
125
+ * Bump to match Genesis version
126
+ * Require Genesis 1.2.1
127
+ * Update hooks for Genesis 1.2.1
128
+
129
+ = 0.9 =
130
+ * Add new hooks, remove deprecated hooks
131
+ * Fix textarea bug with HTML entities
132
+ * Bump to pre-release 0.9 branch
133
+
134
+ = 0.1 =
135
+ * Initial Release
136
+
137
+
138
+
139
 
 
 
140
 
 
 
141
 
 
 
 
142
 
 
 
143