Skip to:
Content

BuddyPress.org

Changeset 12567


Ignore:
Timestamp:
03/06/2020 09:41:44 PM (7 years ago)
Author:
imath
Message:

BP Nouveau: reposition bp_after_directory_{$component}_page hooks

  • Solves a misposition of the bp_after_directory_{$component}_page template hook for Members, Groups and Blogs components.
  • Adds a new bp_after_directory_activity_page hook to be consistent with the other components directory pages.

Props mo3aser, boonebgorges, espellcaste

Fixes #7995

Location:
trunk/src/bp-templates/bp-nouveau
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/activity/index.php

    r12082 r12567  
    44 *
    55 * @since 2.3.0
    6  * @version 3.0.0
     6 * @version 6.0.0
    77 */
    88?>
    … …  
    4040        </div><!-- // .screen-content -->
    4141
     42        <?php bp_nouveau_after_directory_page(); ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/blogs/index.php

    r12082 r12567  
    44 *
    55 * @since 3.0.0
    6  * @version 3.0.0
     6 * @version 6.0.0
    77 */
    88?>
    … …  
    2727        </div><!-- // .screen-content -->
    2828
     29        <?php bp_nouveau_after_directory_page(); ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/index.php

    r12082 r12567  
    44 *
    55 * @since 3.0.0
    6  * @version 3.0.0
     6 * @version 6.0.0
    77 */
    88?>
    … …  
    2929        </div><!-- // .screen-content -->
    3030
     31        <?php bp_nouveau_after_directory_page(); ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/index.php

    r12082 r12567  
    33 * BuddyPress Members Directory
    44 *
    5  * @version 3.0.0
     5 * @since 3.0.0
     6 * @version 6.0.0
    67 */
    78
    … …  
    2627                <?php bp_nouveau_after_members_directory_content(); ?>
    2728        </div><!-- // .screen-content -->
     29
     30        <?php bp_nouveau_after_directory_page(); ?>
  • trunk/src/bp-templates/bp-nouveau/includes/blogs/template-tags.php

    r12480 r12567  
    44 *
    55 * @since 3.0.0
    6  * @version 3.0.0
     6 * @version 6.0.0
    77 */
    88
    … …  
    7272         */
    7373        do_action( 'bp_after_directory_blogs' );
    74 
    75         /**
    76          * Fires at the bottom of the blogs directory template file.
    77          *
    78          * @since 2.3.0
    79          */
    80         do_action( 'bp_after_directory_blogs_page' );
    8174}
    8275
  • trunk/src/bp-templates/bp-nouveau/includes/groups/template-tags.php

    r12407 r12567  
    44 *
    55 * @since 3.0.0
    6  * @version 4.4.0
     6 * @version 6.0.0
    77 */
    88
    … …  
    6666         */
    6767        do_action( 'bp_after_directory_groups' );
    68 
    69         /**
    70          * Fires at the bottom of the groups directory template file.
    71          *
    72          * @since 1.5.0
    73          */
    74         do_action( 'bp_after_directory_groups_page' );
    7568}
    7669
  • trunk/src/bp-templates/bp-nouveau/includes/members/template-tags.php

    r12280 r12567  
    44 *
    55 * @since 3.0.0
    6  * @version 3.1.0
     6 * @version 6.0.0
    77 */
    88
    … …  
    7373         */
    7474        do_action( 'bp_after_directory_members' );
    75 
    76         /**
    77          * Fires at the bottom of the members directory template file.
    78          *
    79          * @since 1.5.0
    80          */
    81         do_action( 'bp_after_directory_members_page' );
    8275}
    8376
  • trunk/src/bp-templates/bp-nouveau/includes/template-tags.php

    r12537 r12567  
    44 *
    55 * @since 3.0.0
    6  * @version 4.0.0
     6 * @version 6.0.0
    77 */
    88
    … …  
    655655
    656656        return (bool) $bp_nouveau->{$component}->directory_vertical_layout;
     657}
     658
     659/**
     660 * Template tag to wrap the Legacy actions that was used
     661 * after the components directory page.
     662 *
     663 * @since 6.0.0
     664 */
     665function bp_nouveau_after_directory_page() {
     666        $component = bp_current_component();
     667
     668        /**
     669         * Fires at the bottom of the activity, members, groups and blogs directory template file.
     670         *
     671         * @since 1.5.0 Added to the members, groups directory template file.
     672         * @since 2.3.0 Added to the blogs directory template file.
     673         * @since 6.0.0 Added to the activity directory template file.
     674         */
     675        do_action( "bp_after_directory_{$component}_page" );
    657676}
    658677
Note: See TracChangeset for help on using the changeset viewer.