Skip to:
Content

BuddyPress.org

Changeset 9761


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

Adds hooks documentation for the blogs template files.

See #5948.

Location:
trunk/src/bp-templates/bp-legacy/buddypress/blogs
Files:
3 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' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/blogs/create.php

    r9604 r9761  
    1 <?php do_action( 'bp_before_create_blog_content_template' ); ?>
     1<?php
    22
    3 <?php do_action( 'template_notices' ); ?>
     3/**
     4 * Fires at the top of the blog creation template file.
     5 *
     6 * @since BuddyPress (1.6.0)
     7 */
     8do_action( 'bp_before_create_blog_content_template' ); ?>
    49
    5 <?php do_action( 'bp_before_create_blog_content' ); ?>
     10<?php
     11
     12/** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     13do_action( 'template_notices' ); ?>
     14
     15<?php
     16
     17/**
     18 * Fires before the display of the blog creation form.
     19 *
     20 * @since BuddyPress (1.1.0)
     21 */
     22do_action( 'bp_before_create_blog_content' ); ?>
    623
    724<?php if ( bp_blog_signup_enabled() ) : ?>
     
    1734<?php endif; ?>
    1835
    19 <?php do_action( 'bp_after_create_blog_content' ); ?>
     36<?php
    2037
    21 <?php do_action( 'bp_after_create_blog_content_template' ); ?>
     38/**
     39 * Fires after the display of the blog creation form.
     40 *
     41 * @since BuddyPress (1.1.0)
     42 */
     43do_action( 'bp_after_create_blog_content' ); ?>
     44
     45<?php
     46
     47/**
     48 * Fires at the bottom of the blog creation template file.
     49 *
     50 * @since BuddyPress (1.6.0)
     51 */
     52do_action( 'bp_after_create_blog_content_template' ); ?>
  • 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.