Plugin Directory

Changeset 467265


Ignore:
Timestamp:
11/25/2011 05:12:56 AM (14 years ago)
Author:
cochran
Message:
  • Added: Missing descriptions for the rest of the hooks.
  • Added: More filters:

genesis_comments_closed_text,
genesis_no_comments_text,
genesis_no_pings_text

Location:
genesis-visual-hook-guide/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • genesis-visual-hook-guide/trunk/g-hooks.php

    r460813 r467265  
    44Plugin URI: http://genesistutorials.com
    55Description: Find Genesis hooks (action and filter hooks) quick and easily by seeing their actual locations inside your theme.
    6 Version: 0.7b
     6Version: 0.8
    77Author: Christopher Cochran
    88Author URI: http://christophercochran.me
     
    7777                'hook' => 'genesis_title',
    7878                '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.',
    8080                'functions' => array(),
    8181                ),
     
    8383                'hook' => 'genesis_meta',
    8484                '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.',
    8686                'functions' => array(),
    8787                ),
     
    167167                'hook' => 'genesis_before_post_title',
    168168                'area' => 'Loop',
    169                 'description' => '',
     169                'description' => 'This hook executes immediately before each post title for each post within the loop.',
    170170                'functions' => array(),
    171171                ),
     
    179179                'hook' => 'genesis_after_post_title',
    180180                'area' => 'Loop',
    181                 'description' => '',
     181                'description' => 'This hook executes immediately after each post title for each post within the loop.',
    182182                'functions' => array(),
    183183                ),
     
    185185                'hook' => 'genesis_before_post_content',
    186186                'area' => 'Loop',
    187                 'description' => 'TThis 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.',
    188188                'functions' => array(),
    189189                ),
     
    191191                'hook' => 'genesis_post_content',
    192192                'area' => 'Loop',
    193                 'description' => '',
     193                'description' => 'This hook outputs the actual post content and if chosen, the post image (inside the #content div).',
    194194                'functions' => array(),
    195195                ),
     
    197197                'hook' => 'genesis_after_post_content',
    198198                'area' => 'Loop',
    199                 'description' => '',
     199                'description' => 'This hook executes immediately after the post/page content is output, outside the .entry-content div.',
    200200                'functions' => array(),
    201201                ),
     
    203203                'hook' => 'genesis_after_post',
    204204                'area' => 'Loop',
    205                 'description' => '',
     205                'description' => 'This hook executes after each post in all loop blocks (outside the post_class() div).',
    206206                'functions' => array(),
    207207                ),
     
    209209                'hook' => 'genesis_before_comments',
    210210                'area' => 'Comment',
    211                 'description' => '',
     211                'description' => 'This hook executes immediately before the comments block (outside the #comments div).',
    212212                'functions' => array(),
    213213                ),
     
    215215                'hook' => 'genesis_list_comments',
    216216                '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.',
    218218                'functions' => array(),
    219219                ),
     
    221221                'hook' => 'genesis_before_comment',
    222222                'area' => 'Comment',
    223                 'description' => '',
     223                'description' => 'This hook executes before the output of each individual comment (author, meta, comment text).',
    224224                'functions' => array(),
    225225                ),
     
    233233                'hook' => 'genesis_after_comment',
    234234                'area' => 'Comment',
    235                 'description' => '',
     235                'description' => 'This hook executes after the output of each individual comment (author, meta, comment text).',
    236236                'functions' => array(),
    237237                ),
     
    239239                'hook' => 'genesis_after_comments',
    240240                'area' => 'Comment',
    241                 'description' => '',
     241                'description' => 'This hook executes immediately after the comments block (outside the #comments div).',
    242242                'functions' => array(),
    243243                ),
     
    245245                'hook' => 'genesis_before_pings',
    246246                'area' => 'Comment',
    247                 'description' => '',
     247                'description' => 'This hook executes immediately before the pings block (outside the #pings div).',
    248248                'functions' => array(),
    249249                ),
     
    251251                'hook' => 'genesis_list_pings',
    252252                '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.',
    254254                'functions' => array(),
    255255                ),
     
    257257                'hook' => 'genesis_after_pings',
    258258                'area' => 'Comment',
    259                 'description' => '',
     259                'description' => 'This hook executes immediately after the pings block (outside the #pings div).',
    260260                'functions' => array(),
    261261                ),
     
    269269                'hook' => 'genesis_before_comment_form',
    270270                'area' => 'Comment',
    271                 'description' => '',
     271                'description' => 'This hook executes immediately before the comment form, outside the #respond div.',
    272272                'functions' => array(),
    273273                ),
     
    275275                'hook' => 'genesis_comment_form',
    276276                'area' => 'Comment',
    277                 'description' => '',
     277                'description' => 'This hook outputs the actual comment form, including the #respond div wrapper.',
    278278                'functions' => array(),
    279279                ),
     
    281281                'hook' => 'genesis_after_comment_form',
    282282                'area' => 'Comment',
    283                 'description' => '',
     283                'description' => 'This hook executes immediately after the comment form, outside the #respond div.',
    284284                'functions' => array(),
    285285                ),
     
    293293                'hook' => 'genesis_after_endwhile',
    294294                'area' => 'Loop',
    295                 'description' => '',
     295                'description' => 'This hook executes after the endwhile; statement in all loop blocks.',
    296296                'functions' => array(),
    297297                ),
     
    299299                'hook' => 'genesis_loop_else',
    300300                'area' => 'Loop',
    301                 'description' => '',
     301                'description' => 'This hook executes after the else : statement in all loop blocks.',
    302302                'functions' => array(),
    303303                ),
     
    305305                'hook' => 'genesis_after_loop',
    306306                '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.',
    308308                'functions' => array(),
    309309                ),
     
    311311                'hook' => 'genesis_after_content',
    312312                'area' => 'Structural',
    313                 'description' => '',
     313                'description' => 'This hook executes immediately after the content column (outside the #content div).',
    314314                'functions' => array(),
    315315                ),
     
    317317                'hook' => 'genesis_before_sidebar_widget_area',
    318318                'area' => 'Structural',
    319                 'description' => '',
     319                'description' => 'This hook executes immediately before the primary sidebar widget area (inside the #sidebar div).',
    320320                'functions' => array(),
    321321                ),
     
    323323                'hook' => 'genesis_after_sidebar_widget_area',
    324324                'area' => 'Structural',
    325                 'description' => '',
     325                'description' => 'This hook executes immediately after the primary sidebar widget area (inside the #sidebar div).',
    326326                'functions' => array(),
    327327                ),
     
    329329                'hook' => 'genesis_after_content_sidebar_wrap',
    330330                '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).',
    332332                'functions' => array(),
    333333                ),
     
    335335                'hook' => 'genesis_before_sidebar_alt_widget_area',
    336336                'area' => 'Structural',
    337                 'description' => '',
     337                'description' => 'This hook executes immediately before the alternate sidebar widget area (inside the #sidebar-alt div).',
    338338                'functions' => array(),
    339339                ),
     
    341341                'hook' => 'genesis_after_sidebar_alt_widget_area',
    342342                'area' => 'Structural',
    343                 'description' => '',
     343                'description' => 'This hook executes immediately after the alternate sidebar widget area (inside the #sidebar-alt div).',
    344344                'functions' => array(),
    345345                ),
     
    347347                'hook' => 'genesis_before_footer',
    348348                'area' => 'Structural',
    349                 'description' => '',
     349                'description' => 'This hook executes immediately before the footer, outside the #footer div.',
    350350                'functions' => array(),
    351351                ),
     
    353353                'hook' => 'genesis_footer',
    354354                'area' => 'Structural',
    355                 'description' => '',
     355                'description' => 'This hook, by default, outputs the content of the footer, including the #footer div wrapper.',
    356356                'functions' => array(),
    357357                ),
     
    359359                'hook' => 'genesis_after_footer',
    360360                'area' => 'Structural',
    361                 'description' => '',
     361                'description' => 'This hook executes immediately after the footer, outside the #footer div.',
    362362                'functions' => array(),
    363363                ),
     
    365365                'hook' => 'genesis_after',
    366366                'area' => 'Structural',
    367                 'description' => '',
     367                'description' => 'This hook executes immediately before the closing tag in the document source.',
    368368                'functions' => array(),
    369369                )
     
    400400   
    401401    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 );
    406405        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');
    407410        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');
    408413        add_filter( 'genesis_breadcrumb_args', 'gvhg_breadcrumb_args');
    409414        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');
    412415        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 );
    415416        add_filter( 'genesis_post_info', 'gvhg_post_info' );
    416417        add_filter( 'genesis_post_meta', 'gvhg_post_meta' );
     
    420421        add_filter( 'genesis_search_button_text', 'gvhg_search_button_text');
    421422        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');
    422425
    423426    }
     
    468471}
    469472
     473function gvhg_no_pings_text() {
     474    echo '<p class="filter">genesis_no_pings_text</p>';
     475}
     476
    470477function gvhg_title_comments() {
    471478    echo '<h3 class="filter">genesis_title_comments</h3>';
     479}
     480
     481function gvhg_comments_closed_text() {
     482    echo '<p class="filter">genesis_comments_closed_text</p>';
     483}
     484
     485function gvhg_no_comments_text() {
     486    echo '<p class="filter">genesis_no_comments_text</p>';
    472487}
    473488
  • genesis-visual-hook-guide/trunk/readme.txt

    r460831 r467265  
    3131
    32321. Plugin in action on the default Sample Child Theme.
    33 2. Hooks in Document Head.(
     332. Hooks in Document Head.
    3434
    3535== 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
    3643
    3744= 0.7b =
Note: See TracChangeset for help on using the changeset viewer.