Changeset 467265
- Timestamp:
- 11/25/2011 05:12:56 AM (14 years ago)
- Location:
- genesis-visual-hook-guide/trunk
- Files:
-
- 2 edited
-
g-hooks.php (modified) (36 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
genesis-visual-hook-guide/trunk/g-hooks.php
r460813 r467265 4 4 Plugin URI: http://genesistutorials.com 5 5 Description: Find Genesis hooks (action and filter hooks) quick and easily by seeing their actual locations inside your theme. 6 Version: 0. 7b6 Version: 0.8 7 7 Author: Christopher Cochran 8 8 Author URI: http://christophercochran.me … … 77 77 'hook' => 'genesis_title', 78 78 'area' => 'Document Head', 79 'description' => ' ',79 'description' => 'This hook executes between tags and outputs the doctitle. You can find all doctitle related code in /lib/structure/header.php.', 80 80 'functions' => array(), 81 81 ), … … 83 83 'hook' => 'genesis_meta', 84 84 'area' => 'Document Head', 85 'description' => ' ',85 '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.', 86 86 'functions' => array(), 87 87 ), … … 167 167 'hook' => 'genesis_before_post_title', 168 168 'area' => 'Loop', 169 'description' => ' ',169 'description' => 'This hook executes immediately before each post title for each post within the loop.', 170 170 'functions' => array(), 171 171 ), … … 179 179 'hook' => 'genesis_after_post_title', 180 180 'area' => 'Loop', 181 'description' => ' ',181 'description' => 'This hook executes immediately after each post title for each post within the loop.', 182 182 'functions' => array(), 183 183 ), … … 185 185 'hook' => 'genesis_before_post_content', 186 186 'area' => 'Loop', 187 'description' => 'T This hook executes immediately before the post/page content is output, outside the .entry-content div.',187 'description' => 'This hook executes immediately before the post/page content is output, outside the .entry-content div.', 188 188 'functions' => array(), 189 189 ), … … 191 191 'hook' => 'genesis_post_content', 192 192 'area' => 'Loop', 193 'description' => ' ',193 'description' => 'This hook outputs the actual post content and if chosen, the post image (inside the #content div).', 194 194 'functions' => array(), 195 195 ), … … 197 197 'hook' => 'genesis_after_post_content', 198 198 'area' => 'Loop', 199 'description' => ' ',199 'description' => 'This hook executes immediately after the post/page content is output, outside the .entry-content div.', 200 200 'functions' => array(), 201 201 ), … … 203 203 'hook' => 'genesis_after_post', 204 204 'area' => 'Loop', 205 'description' => ' ',205 'description' => 'This hook executes after each post in all loop blocks (outside the post_class() div).', 206 206 'functions' => array(), 207 207 ), … … 209 209 'hook' => 'genesis_before_comments', 210 210 'area' => 'Comment', 211 'description' => ' ',211 'description' => 'This hook executes immediately before the comments block (outside the #comments div).', 212 212 'functions' => array(), 213 213 ), … … 215 215 'hook' => 'genesis_list_comments', 216 216 'area' => 'Comment', 217 'description' => ' ',217 '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.', 218 218 'functions' => array(), 219 219 ), … … 221 221 'hook' => 'genesis_before_comment', 222 222 'area' => 'Comment', 223 'description' => ' ',223 'description' => 'This hook executes before the output of each individual comment (author, meta, comment text).', 224 224 'functions' => array(), 225 225 ), … … 233 233 'hook' => 'genesis_after_comment', 234 234 'area' => 'Comment', 235 'description' => ' ',235 'description' => 'This hook executes after the output of each individual comment (author, meta, comment text).', 236 236 'functions' => array(), 237 237 ), … … 239 239 'hook' => 'genesis_after_comments', 240 240 'area' => 'Comment', 241 'description' => ' ',241 'description' => 'This hook executes immediately after the comments block (outside the #comments div).', 242 242 'functions' => array(), 243 243 ), … … 245 245 'hook' => 'genesis_before_pings', 246 246 'area' => 'Comment', 247 'description' => ' ',247 'description' => 'This hook executes immediately before the pings block (outside the #pings div).', 248 248 'functions' => array(), 249 249 ), … … 251 251 'hook' => 'genesis_list_pings', 252 252 'area' => 'Comment', 253 'description' => ' ',253 '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.', 254 254 'functions' => array(), 255 255 ), … … 257 257 'hook' => 'genesis_after_pings', 258 258 'area' => 'Comment', 259 'description' => ' ',259 'description' => 'This hook executes immediately after the pings block (outside the #pings div).', 260 260 'functions' => array(), 261 261 ), … … 269 269 'hook' => 'genesis_before_comment_form', 270 270 'area' => 'Comment', 271 'description' => ' ',271 'description' => 'This hook executes immediately before the comment form, outside the #respond div.', 272 272 'functions' => array(), 273 273 ), … … 275 275 'hook' => 'genesis_comment_form', 276 276 'area' => 'Comment', 277 'description' => ' ',277 'description' => 'This hook outputs the actual comment form, including the #respond div wrapper.', 278 278 'functions' => array(), 279 279 ), … … 281 281 'hook' => 'genesis_after_comment_form', 282 282 'area' => 'Comment', 283 'description' => ' ',283 'description' => 'This hook executes immediately after the comment form, outside the #respond div.', 284 284 'functions' => array(), 285 285 ), … … 293 293 'hook' => 'genesis_after_endwhile', 294 294 'area' => 'Loop', 295 'description' => ' ',295 'description' => 'This hook executes after the endwhile; statement in all loop blocks.', 296 296 'functions' => array(), 297 297 ), … … 299 299 'hook' => 'genesis_loop_else', 300 300 'area' => 'Loop', 301 'description' => ' ',301 'description' => 'This hook executes after the else : statement in all loop blocks.', 302 302 'functions' => array(), 303 303 ), … … 305 305 'hook' => 'genesis_after_loop', 306 306 'area' => 'Loop', 307 'description' => ' ',307 '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.', 308 308 'functions' => array(), 309 309 ), … … 311 311 'hook' => 'genesis_after_content', 312 312 'area' => 'Structural', 313 'description' => ' ',313 'description' => 'This hook executes immediately after the content column (outside the #content div).', 314 314 'functions' => array(), 315 315 ), … … 317 317 'hook' => 'genesis_before_sidebar_widget_area', 318 318 'area' => 'Structural', 319 'description' => ' ',319 'description' => 'This hook executes immediately before the primary sidebar widget area (inside the #sidebar div).', 320 320 'functions' => array(), 321 321 ), … … 323 323 'hook' => 'genesis_after_sidebar_widget_area', 324 324 'area' => 'Structural', 325 'description' => ' ',325 'description' => 'This hook executes immediately after the primary sidebar widget area (inside the #sidebar div).', 326 326 'functions' => array(), 327 327 ), … … 329 329 'hook' => 'genesis_after_content_sidebar_wrap', 330 330 'area' => 'Structural', 331 'description' => ' ',331 'description' => 'This hook executes immediately after the div block that wraps the content and the primary sidebar (outside the #content-sidebar-wrap div).', 332 332 'functions' => array(), 333 333 ), … … 335 335 'hook' => 'genesis_before_sidebar_alt_widget_area', 336 336 'area' => 'Structural', 337 'description' => ' ',337 'description' => 'This hook executes immediately before the alternate sidebar widget area (inside the #sidebar-alt div).', 338 338 'functions' => array(), 339 339 ), … … 341 341 'hook' => 'genesis_after_sidebar_alt_widget_area', 342 342 'area' => 'Structural', 343 'description' => ' ',343 'description' => 'This hook executes immediately after the alternate sidebar widget area (inside the #sidebar-alt div).', 344 344 'functions' => array(), 345 345 ), … … 347 347 'hook' => 'genesis_before_footer', 348 348 'area' => 'Structural', 349 'description' => ' ',349 'description' => 'This hook executes immediately before the footer, outside the #footer div.', 350 350 'functions' => array(), 351 351 ), … … 353 353 'hook' => 'genesis_footer', 354 354 'area' => 'Structural', 355 'description' => ' ',355 'description' => 'This hook, by default, outputs the content of the footer, including the #footer div wrapper.', 356 356 'functions' => array(), 357 357 ), … … 359 359 'hook' => 'genesis_after_footer', 360 360 'area' => 'Structural', 361 'description' => ' ',361 'description' => 'This hook executes immediately after the footer, outside the #footer div.', 362 362 'functions' => array(), 363 363 ), … … 365 365 'hook' => 'genesis_after', 366 366 'area' => 'Structural', 367 'description' => ' ',367 'description' => 'This hook executes immediately before the closing tag in the document source.', 368 368 'functions' => array(), 369 369 ) … … 400 400 401 401 if ( $_GET['g_filters'] == 'show' ) { 402 403 add_filter( 'genesis_favicon_url', 'gvhg_favicon_url'); 404 add_filter( 'genesis_footer_credits', 'gvhg_footer_creds_text'); 405 add_filter( 'genesis_comment_form_args', 'gvhg_comment_form_args'); 402 403 add_filter( 'genesis_seo_title', 'gvhg_genesis_seo_title', 10, 3 ); 404 add_filter( 'genesis_seo_description', 'gvhg_genesis_seo_description', 10, 3 ); 406 405 add_filter( 'genesis_title_comments', 'gvhg_title_comments'); 406 add_filter( 'genesis_comment_form_args', 'gvhg_comment_form_args'); 407 add_filter( 'genesis_comments_closed_text', 'gvhg_comments_closed_text'); 408 add_filter( 'comment_author_says_text', 'gvhg_comment_author_says_text'); 409 add_filter( 'genesis_no_comments_text', 'gvhg_no_comments_text'); 407 410 add_filter( 'genesis_title_pings', 'gvhg_title_pings'); 411 add_filter( 'ping_author_says_text', 'gvhg_ping_author_says_text'); 412 add_filter( 'genesis_no_pings_text', 'gvhg_no_pings_text'); 408 413 add_filter( 'genesis_breadcrumb_args', 'gvhg_breadcrumb_args'); 409 414 add_filter( 'genesis_footer_backtotop_text', 'gvhg_footer_backtotop_text', 100); 410 add_filter( 'ping_author_says_text', 'gvhg_ping_author_says_text');411 add_filter( 'comment_author_says_text', 'gvhg_comment_author_says_text');412 415 add_filter( 'genesis_author_box_title', 'gvhg_author_box_title' ); 413 add_filter( 'genesis_seo_title', 'gvhg_genesis_seo_title', 10, 3 );414 add_filter( 'genesis_seo_description', 'gvhg_genesis_seo_description', 10, 3 );415 416 add_filter( 'genesis_post_info', 'gvhg_post_info' ); 416 417 add_filter( 'genesis_post_meta', 'gvhg_post_meta' ); … … 420 421 add_filter( 'genesis_search_button_text', 'gvhg_search_button_text'); 421 422 add_filter( 'genesis_nav_home_text', 'gvhg_nav_home_text'); 423 add_filter( 'genesis_favicon_url', 'gvhg_favicon_url'); 424 add_filter( 'genesis_footer_credits', 'gvhg_footer_creds_text'); 422 425 423 426 } … … 468 471 } 469 472 473 function gvhg_no_pings_text() { 474 echo '<p class="filter">genesis_no_pings_text</p>'; 475 } 476 470 477 function gvhg_title_comments() { 471 478 echo '<h3 class="filter">genesis_title_comments</h3>'; 479 } 480 481 function gvhg_comments_closed_text() { 482 echo '<p class="filter">genesis_comments_closed_text</p>'; 483 } 484 485 function gvhg_no_comments_text() { 486 echo '<p class="filter">genesis_no_comments_text</p>'; 472 487 } 473 488 -
genesis-visual-hook-guide/trunk/readme.txt
r460831 r467265 31 31 32 32 1. Plugin in action on the default Sample Child Theme. 33 2. Hooks in Document Head. (33 2. Hooks in Document Head. 34 34 35 35 == Changelog == 36 37 = 0.8 = 38 * Added: Missing descriptions for the rest of the hooks. 39 * Added: More filters: 40 genesis_comments_closed_text, 41 genesis_no_comments_text, 42 genesis_no_pings_text 36 43 37 44 = 0.7b =
Note: See TracChangeset
for help on using the changeset viewer.