Making WordPress.org


Ignore:
Timestamp:
11/01/2018 07:02:31 AM (8 years ago)
Author:
netweb
Message:

Support Forum: Updated bbPress templates

See #3485.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-user.php

    r5637 r7813  
    11<?php
    2 
    32/**
    43 * Single User Content Part
     
    2524
    2625        <div id="bbp-user-body">
    27             <?php if ( bbp_is_favorites()                               ) bbp_get_template_part( 'user', 'favorites'         ); ?>
    28             <?php if ( bbp_is_subscriptions()                           ) bbp_get_template_part( 'user', 'subscriptions'     ); ?>
     26            <?php
     27            if ( bbp_is_favorites() ) {
     28                bbp_get_template_part( 'user', 'favorites' );
     29            }
     30            ?>
    2931
    3032            <?php
    31                 if ( function_exists( 'bbp_is_single_user_engagements' ) && bbp_is_single_user_engagements() ) {
    32                     bbp_get_template_part( 'user', 'engagements' );
    33                 }
     33            if ( bbp_is_subscriptions() ) {
     34                bbp_get_template_part( 'user', 'subscriptions' );
     35            }
    3436            ?>
    3537
    36             <?php if ( bbp_is_single_user_topics()                      ) bbp_get_template_part( 'user', 'topics-created'    ); ?>
    37             <?php if ( bbp_is_single_user_replies()                     ) bbp_get_template_part( 'user', 'replies-created'   ); ?>
    38             <?php if ( wporg_support_is_single_user_reviews()           ) bbp_get_template_part( 'user', 'reviews-written'   ); ?>
    39             <?php if ( wporg_support_is_single_user_topics_replied_to() ) bbp_get_template_part( 'user', 'topics-replied-to' ); ?>
    40             <?php if ( bbp_is_single_user_edit()                        ) bbp_get_template_part( 'form', 'user-edit'         ); ?>
    41             <?php if ( bbp_is_single_user_profile()                     ) bbp_get_template_part( 'user', 'profile'           ); ?>
     38            <?php
     39            if ( function_exists( 'bbp_is_single_user_engagements' ) && bbp_is_single_user_engagements() ) {
     40                bbp_get_template_part( 'user', 'engagements' );
     41            }
     42            ?>
     43
     44            <?php
     45            if ( bbp_is_single_user_topics() ) {
     46                bbp_get_template_part( 'user', 'topics-created' );
     47            }
     48            ?>
     49
     50            <?php
     51            if ( bbp_is_single_user_replies() ) {
     52                bbp_get_template_part( 'user', 'replies-created' );
     53            }
     54            ?>
     55
     56            <?php
     57            if ( wporg_support_is_single_user_reviews() ) {
     58                bbp_get_template_part( 'user', 'reviews-written' );
     59            }
     60            ?>
     61
     62            <?php
     63            if ( wporg_support_is_single_user_topics_replied_to() ) {
     64                bbp_get_template_part( 'user', 'topics-replied-to' );
     65            }
     66            ?>
     67
     68            <?php
     69            if ( bbp_is_single_user_edit() ) {
     70                bbp_get_template_part( 'form', 'user-edit' );
     71            }
     72            ?>
     73
     74            <?php
     75            if ( bbp_is_single_user_profile() ) {
     76                bbp_get_template_part( 'user', 'profile' );
     77            }
     78            ?>
    4279        </div>
    4380    </div>
Note: See TracChangeset for help on using the changeset viewer.