Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/26/2017 07:12:34 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Engagements: First pass at:

  • User profile section
  • Template parts changes
  • Rewrite rules support
  • Repair & upgrade tools
  • BuddyPress support
  • engagement slug setting

See #3068.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/functions.php

    r6285 r6320  
    176176
    177177/**
     178 * Hook bbPress engagements template into plugins template
     179 *
     180 * @since 2.6.0 bbPress (r6320)
     181 *
     182 * @uses add_action() To add the content hook
     183 * @uses bp_core_load_template() To load the plugins template
     184 */
     185function bbp_member_forums_screen_engagements() {
     186    add_action( 'bp_template_content', 'bbp_member_forums_engagements_content' );
     187    bp_core_load_template( apply_filters( 'bbp_member_forums_screen_engagements', 'members/single/plugins' ) );
     188}
     189
     190/**
    178191 * Hook bbPress favorites template into plugins template
    179192 *
     
    235248
    236249        <?php bbp_get_template_part( 'user', 'replies-created' ); ?>
     250
     251    </div>
     252
     253<?php
     254}
     255
     256/**
     257 * Get the topic engagements template part
     258 *
     259 * @since 2.6.0 bbPress (r6320)
     260 *
     261 * @uses bbp_get_template_part()
     262 */
     263function bbp_member_forums_engagements_content() {
     264?>
     265
     266    <div id="bbpress-forums" class="bbpress-wrapper">
     267
     268        <?php bbp_get_template_part( 'user', 'engagements' ); ?>
    237269
    238270    </div>
Note: See TracChangeset for help on using the changeset viewer.