Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/17/2015 03:19:17 AM (11 years ago)
Author:
tw2113
Message:

Adds hooks documentation for the blogs template files.

See #5948.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/blogs/index.php

    r9604 r9761  
    1 <?php do_action( 'bp_before_directory_blogs' ); ?>
     1<?php
     2
     3/**
     4 * Fires at the top of the blogs directory template file.
     5 *
     6 * @since BuddyPress (1.5.0)
     7 */
     8do_action( 'bp_before_directory_blogs' ); ?>
    29
    310<div id="buddypress">
    411        <form action="" method="post" id="blogs-directory-form" class="dir-form">
    512
    6                 <?php do_action( 'bp_before_directory_blogs_content' ); ?>
     13                <?php
     14
     15                /**
     16                 * Fires before the display of the blogs listing content.
     17                 *
     18                 * @since BuddyPress (1.1.0)
     19                 */
     20                do_action( 'bp_before_directory_blogs_content' ); ?>
    721
    822                <div id="blog-dir-search" class="dir-search" role="search">
     
    2236                                <?php endif; ?>
    2337
    24                                 <?php do_action( 'bp_blogs_directory_blog_types' ); ?>
     38                                <?php
     39
     40                                /**
     41                                 * Fires inside the unordered list displaying blog types.
     42                                 *
     43                                 * @since BuddyPress (1.2.0)
     44                                 */
     45                                do_action( 'bp_blogs_directory_blog_types' ); ?>
    2546
    2647                        </ul>
     
    3051                        <ul>
    3152
    32                                 <?php do_action( 'bp_blogs_directory_blog_sub_types' ); ?>
     53                                <?php
     54
     55                                /**
     56                                 * Fires inside the unordered list displaying blog sub-types.
     57                                 *
     58                                 * @since BuddyPress (1.5.0)
     59                                 */
     60                                do_action( 'bp_blogs_directory_blog_sub_types' ); ?>
    3361
    3462                                <li id="blogs-order-select" class="last filter">
     
    4068                                                <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    4169
    42                                                 <?php do_action( 'bp_blogs_directory_order_options' ); ?>
     70                                                <?php
     71
     72                                                /**
     73                                                 * Fires inside the select input listing blogs orderby options.
     74                                                 *
     75                                                 * @since BuddyPress (1.2.0)
     76                                                 */
     77                                                do_action( 'bp_blogs_directory_order_options' ); ?>
    4378
    4479                                        </select>
     
    5388                </div><!-- #blogs-dir-list -->
    5489
    55                 <?php do_action( 'bp_directory_blogs_content' ); ?>
     90                <?php
     91
     92                /**
     93                 * Fires inside and displays the blogs content.
     94                 *
     95                 * @since BuddyPress (1.1.0)
     96                 */
     97                do_action( 'bp_directory_blogs_content' ); ?>
    5698
    5799                <?php wp_nonce_field( 'directory_blogs', '_wpnonce-blogs-filter' ); ?>
    58100
    59                 <?php do_action( 'bp_after_directory_blogs_content' ); ?>
     101                <?php
     102
     103                /**
     104                 * Fires after the display of the blogs listing content.
     105                 *
     106                 * @since BuddyPress (1.1.0)
     107                 */
     108                do_action( 'bp_after_directory_blogs_content' ); ?>
    60109
    61110        </form><!-- #blogs-directory-form -->
    62111
    63         <?php do_action( 'bp_after_directory_blogs' ); ?>
     112        <?php
     113
     114        /**
     115         * Fires at the top of the blogs directory template file.
     116         *
     117         * @since BuddyPress (1.5.0)
     118         */
     119        do_action( 'bp_after_directory_blogs' ); ?>
    64120
    65121</div>
Note: See TracChangeset for help on using the changeset viewer.