Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/26/2017 07:25:15 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Engagements: Allow engagements to be toggled on/off, for forums that have not run the upgrade routine yet.

Also missed a spot in the BuddyPress integration.

See #3068.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/user-details.php

    r6320 r6321  
    4444            </li>
    4545
    46             <li class="<?php if ( bbp_is_single_user_engagements() ) :?>current<?php endif; ?>">
    47                 <span class='bbp-user-engagements-created-link'>
    48                     <a href="<?php bbp_user_engagements_url(); ?>" title="<?php printf( esc_attr__( "%s's Engagements", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Engagements', 'bbpress' ); ?></a>
    49                 </span>
    50             </li>
     46            <?php if ( bbp_is_engagements_active() ) : ?>
     47                <li class="<?php if ( bbp_is_single_user_engagements() ) :?>current<?php endif; ?>">
     48                    <span class='bbp-user-engagements-created-link'>
     49                        <a href="<?php bbp_user_engagements_url(); ?>" title="<?php printf( esc_attr__( "%s's Engagements", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Engagements', 'bbpress' ); ?></a>
     50                    </span>
     51                </li>
     52            <?php endif; ?>
    5153
    5254            <?php if ( bbp_is_favorites_active() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.