forked from christophercochran/Genesis-Visual-Hook-Guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
g-hooks.php
661 lines (600 loc) · 24.3 KB
/
g-hooks.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
<?php
/*
Plugin Name: Genesis Visual Hook Guide
Plugin URI: http://genesistutorials.com
Description: Find Genesis hooks (action and filter hooks) quick and easily by seeing their actual locations inside your theme.
Version: 0.9.5
Author: Christopher Cochran, Yosef Eliezrie
Author URI: http://christophercochran.me
License: GPLv2
Domain Path: /languages
Text Domain: genesis-visual-hook-guide
GitHub Plugin URI: https://github.com/yosefeliezrie/Genesis-Visual-Hook-Guide
GitHub Branch: master
*/
register_activation_hook(__FILE__, 'gvhg_activation_check');
function gvhg_activation_check() {
$theme_info = wp_get_theme();
$genesis_flavors = array(
'genesis',
'genesis-trunk',
);
if ( ! in_array( $theme_info->Template, $genesis_flavors ) ) {
deactivate_plugins( plugin_basename(__FILE__) ); // Deactivate ourself
wp_die('Sorry, you can\'t activate unless you have installed <a href="http://www.studiopress.com/themes/genesis">Genesis</a>');
}
}
add_action( 'admin_bar_menu', 'gvhg_admin_bar_links', 100 );
function gvhg_admin_bar_links() {
global $wp_admin_bar;
if ( is_admin() )
return;
$wp_admin_bar->add_menu(
array(
'id' => 'ghooks',
'title' => __( 'G Hook Guide', 'gvisualhookguide' ),
'href' => '',
'position' => 0,
)
);
$wp_admin_bar->add_menu(
array(
'id' => 'ghooks_action',
'parent' => 'ghooks',
'title' => __( 'Action Hooks', 'gvisualhookguide' ),
'href' => add_query_arg( 'g_hooks', 'show' ),
'position' => 10,
)
);
$wp_admin_bar->add_menu(
array(
'id' => 'ghooks_action_active',
'parent' => 'ghooks',
'title' => __( 'Action Hooks (active)', 'gvisualhookguide' ),
'href' => add_query_arg( 'g_hooks_active', 'show' ),
'position' => 10,
)
);
$wp_admin_bar->add_menu(
array(
'id' => 'ghooks_filter',
'parent' => 'ghooks',
'title' => __( 'Filter Hooks', 'gvisualhookguide' ),
'href' => add_query_arg( 'g_filters', 'show' ),
'position' => 10,
)
);
$wp_admin_bar->add_menu(
array(
'id' => 'ghooks_markup',
'parent' => 'ghooks',
'title' => __( 'Markup', 'gvisualhookguide' ),
'href' => add_query_arg( 'g_markup', 'show' ),
'position' => 10,
)
);
$wp_admin_bar->add_menu(
array(
'id' => 'ghooks_clear',
'parent' => 'ghooks',
'title' => __( 'Clear', 'gvisualhookguide' ),
'href' => remove_query_arg(
array(
'g_hooks',
'g_hooks_active',
'g_filters',
'g_markup',
)
),
'position' => 10,
)
);
}
add_action('wp_enqueue_scripts', 'gvhg_hooks_stylesheet');
function gvhg_hooks_stylesheet() {
$gvhg_plugin_url = plugins_url() . '/genesis-visual-hook-guide/';
if ( 'show' == isset( $_GET['g_hooks'] ) )
wp_enqueue_style( 'gvhg_styles', $gvhg_plugin_url . 'styles.css' );
if ( 'show' == isset( $_GET['g_hooks_active'] ) )
wp_enqueue_style( 'gvhg_styles', $gvhg_plugin_url . 'styles.css' );
if ( 'show' == isset( $_GET['g_filters'] ) )
wp_enqueue_style( 'gvhg_styles', $gvhg_plugin_url . 'styles.css' );
if ( 'show' == isset( $_GET['g_markup'] ) )
wp_enqueue_style( 'gvhg_markup_styles', $gvhg_plugin_url . 'markup.css' );
}
add_action('get_header', 'gvhg_genesis_hooker' );
function gvhg_genesis_hooker() {
global $gvhg_genesis_action_hooks;
if ( !('show' == isset( $_GET['g_hooks_active'] ) ) && !('show' == isset( $_GET['g_hooks'] ) ) && !('show' == isset( $_GET['g_filters'] ) ) && !('show' == isset( $_GET['g_markup'] ) ) ) {
return; // BAIL without hooking into anyhting if not displaying anything
}
$gvhg_genesis_action_hooks = array(
'genesis_doctype' => array(
'hook' => 'genesis_doctype',
'area' => 'Document Head',
'description' => '',
'functions' => array(),
),
'genesis_title' => array(
'hook' => 'genesis_title',
'area' => 'Document Head',
'description' => 'This hook executes between tags and outputs the doctitle. You can find all doctitle related code in /lib/structure/header.php.',
'functions' => array(),
),
'genesis_meta' => array(
'hook' => 'genesis_meta',
'area' => 'Document Head',
'description' => 'This hook executes in the section of the document source. By default, things like META descriptions and keywords are output using this hook, along with the default stylesheet and the reference to the favicon.',
'functions' => array(),
),
'genesis_home' => array(
'hook' => 'genesis_home',
'area' => 'Structural',
'description' => '',
'functions' => array(),
),
'genesis_before' => array(
'hook' => 'genesis_before',
'area' => 'Structural',
'description' => 'This hook executes immediately after the opening tag in the document source.',
'functions' => array(),
),
'genesis_before_header' => array(
'hook' => 'genesis_before_header',
'area' => 'Structural',
'description' => 'This hook executes immediately before the header (outside the #header div).',
'functions' => array(),
),
'genesis_header' => array(
'hook' => 'genesis_header',
'area' => 'Structural',
'description' => 'By default, this hook outputs the header code, including the title, description, and widget area (if necessary).',
'functions' => array(),
),
'genesis_header_right' => array(
'hook' => 'genesis_header_right',
'area' => 'Structural',
'description' => 'This hook executes immediately before the Header Right widget area inside div.widget-area.',
),
'genesis_site_title' => array(
'hook' => 'genesis_site_title',
'area' => 'Structural',
'description' => 'By default, this hook outputs the site title, within the header area. It uses the user-specified SEO settings to build the site title markup appropriately.',
'functions' => array(),
),
'genesis_site_description' => array(
'hook' => 'genesis_site_description',
'area' => 'Structural',
'description' => 'By default, this hook outputs the site description, within the header area. It uses the user-specified SEO settings to build the site description markup appropriately.',
'functions' => array(),
),
'genesis_after_header' => array(
'hook' => 'genesis_after_header',
'area' => 'Structural',
'description' => 'This hook executes immediately after the header (outside the #header div).',
'functions' => array(),
),
'genesis_before_content_sidebar_wrap' => array(
'hook' => 'genesis_before_content_sidebar_wrap',
'area' => 'Structural',
'description' => 'This hook executes immediately before the div block that wraps the content and the primary sidebar (outside the #content-sidebar-wrap div).',
'functions' => array(),
),
'genesis_before_content' => array(
'hook' => 'genesis_before_content',
'area' => 'Structural',
'description' => 'This hook executes immediately before the content column (outside the #content div).',
'functions' => array(),
),
'genesis_before_loop' => array(
'hook' => 'genesis_before_loop',
'area' => 'Loop',
'description' => 'This hook executes immediately before all loop blocks. Therefore, this hook falls outside the loop, and cannot execute functions that require loop template tags or variables.',
'functions' => array(),
),
'genesis_loop' => array(
'hook' => 'genesis_loop',
'area' => 'Loop',
'description' => 'This hook outputs the actual loop. See lib/structure/loop.php and lib/structure/post.php for more details.',
'functions' => array(),
),
'genesis_before_entry' => array(
'hook' => 'genesis_before_entry',
'area' => 'Loop',
'description' => 'This hook executes before each post in all loop blocks (outside the post_class() article).',
'functions' => array(),
),
'genesis_entry_header' => array(
'hook' => 'genesis_entry_header',
'area' => 'Loop',
'description' => 'This hook executes immediately inside the article element for each post within the loop.',
'functions' => array(),
),
'genesis_before_entry_content' => array(
'hook' => 'genesis_entry_content',
'area' => 'Loop',
'description' => 'This hook executes immediately before the post/page content is output, outside the .entry-content div.',
'functions' => array(),
),
'genesis_entry_content' => array(
'hook' => 'genesis_entry_content',
'area' => 'Loop',
'description' => 'This hook outputs the actual post content and if chosen, the post image (inside the #content div).',
'functions' => array(),
),
'genesis_after_entry_content' => array(
'hook' => 'genesis_entry_content',
'area' => 'Loop',
'description' => 'This hook executes immediately after the post/page content is output, outside the .entry-content div.',
'functions' => array(),
),
'genesis_entry_footer' => array(
'hook' => 'genesis_entry_footer',
'area' => 'Loop',
'description' => 'This hook executes immediately before the close of the article element for each post within the loop.',
'functions' => array(),
),
'genesis_after_entry' => array(
'hook' => 'genesis_after_entry',
'area' => 'Loop',
'description' => 'This hook executes after each post in all loop blocks (outside the post_class() article).',
'functions' => array(),
),
'genesis_before_post' => array(
'hook' => 'genesis_before_post',
'area' => 'Loop',
'description' => 'This hook executes before each post in all loop blocks (outside the post_class() div).',
'functions' => array(),
),
'genesis_before_post_title' => array(
'hook' => 'genesis_before_post_title',
'area' => 'Loop',
'description' => 'This hook executes immediately before each post title for each post within the loop.',
'functions' => array(),
),
'genesis_post_title' => array(
'hook' => 'genesis_post_title',
'area' => 'Loop',
'description' => 'This hook outputs the actual post title, contextually, based on what type of page you are viewing.',
'functions' => array(),
),
'genesis_after_post_title' => array(
'hook' => 'genesis_after_post_title',
'area' => 'Loop',
'description' => 'This hook executes immediately after each post title for each post within the loop.',
'functions' => array(),
),
'genesis_before_post_content' => array(
'hook' => 'genesis_before_post_content',
'area' => 'Loop',
'description' => 'This hook executes immediately before the post/page content is output, outside the .entry-content div.',
'functions' => array(),
),
'genesis_post_content' => array(
'hook' => 'genesis_post_content',
'area' => 'Loop',
'description' => 'This hook outputs the actual post content and if chosen, the post image (inside the #content div).',
'functions' => array(),
),
'genesis_after_post_content' => array(
'hook' => 'genesis_after_post_content',
'area' => 'Loop',
'description' => 'This hook executes immediately after the post/page content is output, outside the .entry-content div.',
'functions' => array(),
),
'genesis_after_post' => array(
'hook' => 'genesis_after_post',
'area' => 'Loop',
'description' => 'This hook executes after each post in all loop blocks (outside the post_class() div).',
'functions' => array(),
),
'genesis_before_comments' => array(
'hook' => 'genesis_before_comments',
'area' => 'Comment',
'description' => 'This hook executes immediately before the comments block (outside the #comments div).',
'functions' => array(),
),
'genesis_list_comments' => array(
'hook' => 'genesis_list_comments',
'area' => 'Comment',
'description' => 'This hook executes inside the comments block, inside the .comment-list OL. By default, it outputs a list of comments associated with a post via the genesis_default_list_comments() function.',
'functions' => array(),
),
'genesis_before_comment' => array(
'hook' => 'genesis_before_comment',
'area' => 'Comment',
'description' => 'This hook executes before the output of each individual comment (author, meta, comment text).',
'functions' => array(),
),
'genesis_comment' => array(
'hook' => 'genesis_comment',
'area' => 'Comment',
'description' => '',
'functions' => array(),
),
'genesis_after_comment' => array(
'hook' => 'genesis_after_comment',
'area' => 'Comment',
'description' => 'This hook executes after the output of each individual comment (author, meta, comment text).',
'functions' => array(),
),
'genesis_after_comments' => array(
'hook' => 'genesis_after_comments',
'area' => 'Comment',
'description' => 'This hook executes immediately after the comments block (outside the #comments div).',
'functions' => array(),
),
'genesis_before_pings' => array(
'hook' => 'genesis_before_pings',
'area' => 'Comment',
'description' => 'This hook executes immediately before the pings block (outside the #pings div).',
'functions' => array(),
),
'genesis_list_pings' => array(
'hook' => 'genesis_list_pings',
'area' => 'Comment',
'description' => 'This hook executes inside the pings block, inside the .ping-list OL. By default, it outputs a list of pings associated with a post via the genesis_default_list_pings() function.',
'functions' => array(),
),
'genesis_after_pings' => array(
'hook' => 'genesis_after_pings',
'area' => 'Comment',
'description' => 'This hook executes immediately after the pings block (outside the #pings div).',
'functions' => array(),
),
'genesis_before_respond' => array(
'hook' => 'genesis_before_respond',
'area' => 'Comment',
'description' => '',
'functions' => array(),
),
'genesis_before_comment_form' => array(
'hook' => 'genesis_before_comment_form',
'area' => 'Comment',
'description' => 'This hook executes immediately before the comment form, outside the #respond div.',
'functions' => array(),
),
'genesis_comment_form' => array(
'hook' => 'genesis_comment_form',
'area' => 'Comment',
'description' => 'This hook outputs the actual comment form, including the #respond div wrapper.',
'functions' => array(),
),
'genesis_after_comment_form' => array(
'hook' => 'genesis_after_comment_form',
'area' => 'Comment',
'description' => 'This hook executes immediately after the comment form, outside the #respond div.',
'functions' => array(),
),
'genesis_after_respond' => array(
'hook' => 'genesis_after_respond',
'area' => 'Comment',
'description' => '',
'functions' => array(),
),
'genesis_after_endwhile' => array(
'hook' => 'genesis_after_endwhile',
'area' => 'Loop',
'description' => 'This hook executes after the endwhile; statement in all loop blocks.',
'functions' => array(),
),
'genesis_loop_else' => array(
'hook' => 'genesis_loop_else',
'area' => 'Loop',
'description' => 'This hook executes after the else : statement in all loop blocks.',
'functions' => array(),
),
'genesis_after_loop' => array(
'hook' => 'genesis_after_loop',
'area' => 'Loop',
'description' => 'This hook executes immediately after all loop blocks. Therefore, this hook falls outside the loop, and cannot execute functions that require loop template tags or variables.',
'functions' => array(),
),
'genesis_after_content' => array(
'hook' => 'genesis_after_content',
'area' => 'Structural',
'description' => 'This hook executes immediately after the content column (outside the #content div).',
'functions' => array(),
),
'genesis_before_sidebar_widget_area' => array(
'hook' => 'genesis_before_sidebar_widget_area',
'area' => 'Structural',
'description' => 'This hook executes immediately before the primary sidebar widget area (inside the #sidebar div).',
'functions' => array(),
),
'genesis_after_sidebar_widget_area' => array(
'hook' => 'genesis_after_sidebar_widget_area',
'area' => 'Structural',
'description' => 'This hook executes immediately after the primary sidebar widget area (inside the #sidebar div).',
'functions' => array(),
),
'genesis_after_content_sidebar_wrap' => array(
'hook' => 'genesis_after_content_sidebar_wrap',
'area' => 'Structural',
'description' => 'This hook executes immediately after the div block that wraps the content and the primary sidebar (outside the #content-sidebar-wrap div).',
'functions' => array(),
),
'genesis_before_sidebar_alt_widget_area' => array(
'hook' => 'genesis_before_sidebar_alt_widget_area',
'area' => 'Structural',
'description' => 'This hook executes immediately before the alternate sidebar widget area (inside the #sidebar-alt div).',
'functions' => array(),
),
'genesis_after_sidebar_alt_widget_area' => array(
'hook' => 'genesis_after_sidebar_alt_widget_area',
'area' => 'Structural',
'description' => 'This hook executes immediately after the alternate sidebar widget area (inside the #sidebar-alt div).',
'functions' => array(),
),
'genesis_before_footer' => array(
'hook' => 'genesis_before_footer',
'area' => 'Structural',
'description' => 'This hook executes immediately before the footer, outside the #footer div.',
'functions' => array(),
),
'genesis_footer' => array(
'hook' => 'genesis_footer',
'area' => 'Structural',
'description' => 'This hook, by default, outputs the content of the footer, including the #footer div wrapper.',
'functions' => array(),
),
'genesis_after_footer' => array(
'hook' => 'genesis_after_footer',
'area' => 'Structural',
'description' => 'This hook executes immediately after the footer, outside the #footer div.',
'functions' => array(),
),
'genesis_after' => array(
'hook' => 'genesis_after',
'area' => 'Structural',
'description' => 'This hook executes immediately before the closing tag in the document source.',
'functions' => array(),
)
);
foreach ( $gvhg_genesis_action_hooks as $action )
add_action( $action['hook'] , 'gvhg_genesis_action_hook' , 1 );
}
function gvhg_genesis_action_hook () {
global $gvhg_genesis_action_hooks;
$current_action = current_filter();
$showActive = 'show' == isset( $_GET['g_hooks_active'] );
if ( 'show' == isset( $_GET['g_hooks'] ) || $showActive ) {
if ( 'Document Head' == $gvhg_genesis_action_hooks[$current_action]['area'] ) :
echo "<!-- ";
echo $current_action;
echo " -->\n";
else :
if ($showActive) {
global $wp_filter;
$currentHook = $wp_filter[$current_action];
if (count($currentHook) > 1) {
// only show if there are hooks active
echo '<div class="genesis_hook" title="' . $gvhg_genesis_action_hooks[$current_action]['description'] . '">' . $current_action;
// echo "got one!";
echo "<ul>";
foreach ($currentHook as $key => $value) {
$action_name = array_keys($value)[0];
if ($action_name != 'gvhg_genesis_action_hook') echo '<li>' . ($key) . ': ' . $action_name . '</li>';
}
echo "</ul>";
};
} else {
echo '<div class="genesis_hook" title="' . $gvhg_genesis_action_hooks[$current_action]['description'] . '">' . $current_action;
}
echo '</div>';
endif;
}
}
function gvhg_hook_name( $function, $element = null, $description = null ) {
$function_name = str_replace( 'gvhg', 'genesis', $function );
if ( $element ) {
return '<' . $element . ' class="filter" title="' . $description . '">' . $function_name . '</' . $element . '>';
}
return $function;
}
add_action( 'wp', 'gvhg_filter_logic' );
function gvhg_filter_logic() {
if ( 'show' == isset( $_GET['g_filters'] ) ) {
add_filter( 'genesis_seo_title', 'gvhg_genesis_seo_title', 10, 3 );
add_filter( 'genesis_seo_description', 'gvhg_genesis_seo_description', 10, 3 );
add_filter( 'genesis_title_comments', 'gvhg_title_comments');
add_filter( 'genesis_comment_form_args', 'gvhg_comment_form_args');
add_filter( 'genesis_comments_closed_text', 'gvhg_comments_closed_text');
add_filter( 'comment_author_says_text', 'gvhg_comment_author_says_text');
add_filter( 'genesis_no_comments_text', 'gvhg_no_comments_text');
add_filter( 'genesis_title_pings', 'gvhg_title_pings');
add_filter( 'ping_author_says_text', 'gvhg_ping_author_says_text');
add_filter( 'genesis_no_pings_text', 'gvhg_no_pings_text');
add_filter( 'genesis_breadcrumb_args', 'gvhg_breadcrumb_args');
add_filter( 'genesis_footer_backtotop_text', 'gvhg_footer_backtotop_text', 100);
add_filter( 'genesis_footer_creds_text', 'gvhg_footer_creds_text', 100);
//add_filter( 'genesis_footer_output', 'gvhg_footer_output', 100, 3);
add_filter( 'genesis_author_box_title', 'gvhg_author_box_title' );
add_filter( 'genesis_post_info', 'gvhg_post_info' );
add_filter( 'genesis_post_meta', 'gvhg_post_meta' );
add_filter( 'genesis_post_title_text', 'gvhg_post_title_text');
add_filter( 'genesis_noposts_text', 'gvhg_noposts_text');
add_filter( 'genesis_search_text', 'gvhg_search_text');
add_filter( 'genesis_search_button_text', 'gvhg_search_button_text');
add_filter( 'genesis_nav_home_text', 'gvhg_nav_home_text');
add_filter( 'genesis_favicon_url', 'gvhg_favicon_url');
add_filter( 'genesis_footer_credits', 'gvhg_footer_creds_text');
}
}
function gvhg_genesis_seo_title( $title, $inside, $wrap ) {
return sprintf('<%s id="title">' . gvhg_hook_name( __FUNCTION__, 'span', 'Applied to the output of the genesis_seo_site_title function which depending on the SEO option set by the user will either wrap the title in <h1> or <p> tags. Default value: $title, $inside, $wrap' ) . '</%s>', $wrap, $wrap);
}
function gvhg_genesis_seo_description( $description, $inside, $wrap ) {
return sprintf('<%s id="title">' . gvhg_hook_name( __FUNCTION__, 'span', 'Applied to the output of the genesis_seo_site_description function which depending on the SEO option set by the user will either wrap the description in <h1> or <p> tags. Default value: $description, $inside, $wrap' ) . '</%s>', $wrap, $wrap);
}
function gvhg_author_box_title() {
return '<strong>' . gvhg_hook_name( __FUNCTION__, 'span' ) . '</strong>';
}
function gvhg_comment_author_says_text() {
return gvhg_hook_name( __FUNCTION__, 'span' );
}
function gvhg_ping_author_says_text() {
return gvhg_hook_name( __FUNCTION__, 'span' );
}
function gvhg_footer_backtotop_text() {
return gvhg_hook_name( __FUNCTION__, 'div' );
}
function gvhg_footer_creds_text() {
return gvhg_hook_name( __FUNCTION__, 'div' );
}
function gvhg_footer_output($output, $backtotop_text, $creds) {
return gvhg_hook_name( __FUNCTION__, 'div' ) . $backtotop_text . $creds;
}
function gvhg_breadcrumb_args($args) {
$args['prefix'] = '<div class="breadcrumb"><span class="filter">genesis_breadcrumb_args</span> ';
$args['suffix'] = '</div>';
$args['home'] = __('<span class="filter">[\'home\']</span>', 'genesis');
$args['sep'] = '<span class="filter">[\'sep\']</span>';
$args['labels']['prefix'] = __('<span class="filter">[\'labels\'][\'prefix\']</span> ', 'genesis');
return $args;
}
function gvhg_title_pings() {
echo gvhg_hook_name( __FUNCTION__, 'h3' );
}
function gvhg_no_pings_text() {
echo gvhg_hook_name( __FUNCTION__, 'p' );
}
function gvhg_title_comments() {
echo gvhg_hook_name( __FUNCTION__, 'h3' );
}
function gvhg_comments_closed_text() {
echo gvhg_hook_name( __FUNCTION__, 'p' );
}
function gvhg_no_comments_text() {
echo gvhg_hook_name( __FUNCTION__, 'p' );
}
function gvhg_comment_form_args($args) {
$args['title_reply'] = '<span class="filter">genesis_comment_form_args [\'title_reply\']</span>';
$args['comment_notes_before'] = '<span class="filter">genesis_comment_form_args [\'comment_notes_before\']</span>';
$args['comment_notes_after'] = '<span class="filter">genesis_comment_form_args [\'comment_notes_after\']</span>';
return $args;
}
function gvhg_favicon_url() {
return 'genesis_favicon_url';
}
function gvhg_post_info() {
return gvhg_hook_name( __FUNCTION__, 'span' );
}
function gvhg_post_meta() {
return gvhg_hook_name( __FUNCTION__, 'span' );
}
function gvhg_post_title_text() {
return gvhg_hook_name( __FUNCTION__, 'span' );
}
function gvhg_noposts_text() {
return gvhg_hook_name( __FUNCTION__, 'span' );
}
function gvhg_search_text() {
return esc_attr('genesis_search_text');
}
function gvhg_search_button_text() {
return esc_attr('genesis_search_button_text');
}
function gvhg_nav_home_text() {
return gvhg_hook_name( __FUNCTION__, 'span' );
}