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/blogs-loop.php

    r9604 r9761  
    1212?>
    1313
    14 <?php do_action( 'bp_before_blogs_loop' ); ?>
     14<?php
     15
     16/**
     17 * Fires before the start of the blogs loop.
     18 *
     19 * @since BuddyPress (1.2.0)
     20 */
     21do_action( 'bp_before_blogs_loop' ); ?>
    1522
    1623<?php if ( bp_has_blogs( bp_ajax_querystring( 'blogs' ) ) ) : ?>
     
    2835        </div>
    2936
    30         <?php do_action( 'bp_before_directory_blogs_list' ); ?>
     37        <?php
     38
     39        /**
     40         * Fires before the blogs directory list.
     41         *
     42         * @since BuddyPress (1.1.0)
     43         */
     44        do_action( 'bp_before_directory_blogs_list' ); ?>
    3145
    3246        <ul id="blogs-list" class="item-list" role="main">
     
    4357                                <div class="item-meta"><span class="activity"><?php bp_blog_last_active(); ?></span></div>
    4458
    45                                 <?php do_action( 'bp_directory_blogs_item' ); ?>
     59                                <?php
     60
     61                                /**
     62                                 * Fires after the listing of a blog item in the blogs loop.
     63                                 *
     64                                 * @since BuddyPress (1.2.0)
     65                                 */
     66                                do_action( 'bp_directory_blogs_item' ); ?>
    4667                        </div>
    4768
    4869                        <div class="action">
    4970
    50                                 <?php do_action( 'bp_directory_blogs_actions' ); ?>
     71                                <?php
     72
     73                                /**
     74                                 * Fires inside the blogs action listing area.
     75                                 *
     76                                 * @since BuddyPress (1.1.0)
     77                                 */
     78                                do_action( 'bp_directory_blogs_actions' ); ?>
    5179
    5280                                <div class="meta">
     
    6593        </ul>
    6694
    67         <?php do_action( 'bp_after_directory_blogs_list' ); ?>
     95        <?php
     96
     97        /**
     98         * Fires after the blogs directory list.
     99         *
     100         * @since BuddyPress (1.1.0)
     101         */
     102        do_action( 'bp_after_directory_blogs_list' ); ?>
    68103
    69104        <?php bp_blog_hidden_fields(); ?>
     
    93128<?php endif; ?>
    94129
    95 <?php do_action( 'bp_after_blogs_loop' ); ?>
     130<?php
     131
     132/**
     133 * Fires after the display of the blogs loop.
     134 *
     135 * @since BuddyPress (1.2.0)
     136 */
     137do_action( 'bp_after_blogs_loop' ); ?>
Note: See TracChangeset for help on using the changeset viewer.