Skip to:
Content

BuddyPress.org

Changeset 9890


Ignore:
Timestamp:
05/21/2015 09:22:19 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Directories: Normalize blogs, members, and groups index.php directory templates.

This changeset specifically addresses nested forms in the blogs directory template, and also removes closing PHP tags at the bottom of the members and groups templates.

Props hnla. Fixes #6427.

Location:
trunk/src/bp-templates/bp-legacy/buddypress
Files:
3 edited

Legend:

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

    r9819 r9890  
    44 * Fires at the top of the blogs directory template file.
    55 *
    6  * @since BuddyPress (1.5.0)
     6 * @since BuddyPress (2.3.0)
    77 */
    8 do_action( 'bp_before_directory_blogs' ); ?>
     8do_action( 'bp_before_directory_blogs_page' ); ?>
    99
    1010<div id="buddypress">
     11
     12    <?php
     13
     14    /**
     15     * Fires at the top of the blogs directory template file.
     16     *
     17     * @since BuddyPress (1.5.0)
     18     */
     19    do_action( 'bp_before_directory_blogs' ); ?>
     20
     21    <?php
     22
     23    /**
     24     * Fires before the display of the blogs listing content.
     25     *
     26     * @since BuddyPress (1.1.0)
     27     */
     28    do_action( 'bp_before_directory_blogs_content' ); ?>
     29
     30    <div id="blog-dir-search" class="dir-search" role="search">
     31        <?php bp_directory_blogs_search_form(); ?>
     32    </div><!-- #blog-dir-search -->
     33
     34    <?php
     35
     36    /**
     37     * Fires before the display of the blogs list tabs.
     38     *
     39     * @since BuddyPress (1.8.0)
     40     */
     41    do_action( 'bp_before_directory_blogs_tabs' ); ?>
     42
    1143    <form action="" method="post" id="blogs-directory-form" class="dir-form">
    12 
    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' ); ?>
    21 
    22         <div id="blog-dir-search" class="dir-search" role="search">
    23 
    24             <?php bp_directory_blogs_search_form(); ?>
    25 
    26         </div><!-- #blog-dir-search -->
    2744
    2845        <div class="item-list-tabs" role="navigation">
     
    120137
    121138</div>
     139
     140<?php
     141
     142/**
     143 * Fires at the bottom of the blogs directory template file.
     144 *
     145 * @since BuddyPress (2.3.0)
     146 */
     147do_action( 'bp_after_directory_blogs_page' );
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/index.php

    r9819 r9890  
    137137 * @since BuddyPress (1.5.0)
    138138 */
    139 do_action( 'bp_after_directory_groups_page' ); ?>
     139do_action( 'bp_after_directory_groups_page' );
  • trunk/src/bp-templates/bp-legacy/buddypress/members/index.php

    r9819 r9890  
    141141 * @since BuddyPress (1.5.0)
    142142 */
    143 do_action( 'bp_after_directory_members_page' ); ?>
     143do_action( 'bp_after_directory_members_page' );
Note: See TracChangeset for help on using the changeset viewer.