Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/19/2015 04:45:02 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Templates: Micro-optimizations:

  • Remove trailing ?> tag in some template parts
  • Remove preceding ?> <?php in some template parts, after phpdoc header
  • Remove whitespace where superfluous
  • Reduce number of indentations in some template parts
File:
1 edited

Legend:

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

    r5688 r5689  
    88 */
    99
    10 ?>
     10do_action( 'bbp_template_before_user_profile' ); ?>
    1111
    12     <?php do_action( 'bbp_template_before_user_profile' ); ?>
     12<div id="bbp-user-profile" class="bbp-user-profile">
     13    <h2 class="entry-title"><?php esc_html_e( 'Profile', 'bbpress' ); ?></h2>
     14    <div class="bbp-user-section">
    1315
    14     <div id="bbp-user-profile" class="bbp-user-profile">
    15         <h2 class="entry-title"><?php esc_html_e( 'Profile', 'bbpress' ); ?></h2>
    16         <div class="bbp-user-section">
     16        <?php if ( bbp_get_displayed_user_field( 'description' ) ) : ?>
    1717
    18             <?php if ( bbp_get_displayed_user_field( 'description' ) ) : ?>
     18            <p class="bbp-user-description"><?php bbp_displayed_user_field( 'description' ); ?></p>
    1919
    20                 <p class="bbp-user-description"><?php bbp_displayed_user_field( 'description' ); ?></p>
     20        <?php endif; ?>
    2121
    22             <?php endif; ?>
     22        <p class="bbp-user-forum-role"><?php  printf( esc_html__( 'Forum Role: %s',      'bbpress' ), bbp_get_user_display_role()    ); ?></p>
     23        <p class="bbp-user-topic-count"><?php printf( esc_html__( 'Topics Started: %s',  'bbpress' ), bbp_get_user_topic_count_raw() ); ?></p>
     24        <p class="bbp-user-reply-count"><?php printf( esc_html__( 'Replies Created: %s', 'bbpress' ), bbp_get_user_reply_count_raw() ); ?></p>
     25    </div>
     26</div><!-- #bbp-author-topics-started -->
    2327
    24             <p class="bbp-user-forum-role"><?php  printf( esc_html__( 'Forum Role: %s',      'bbpress' ), bbp_get_user_display_role()    ); ?></p>
    25             <p class="bbp-user-topic-count"><?php printf( esc_html__( 'Topics Started: %s',  'bbpress' ), bbp_get_user_topic_count_raw() ); ?></p>
    26             <p class="bbp-user-reply-count"><?php printf( esc_html__( 'Replies Created: %s', 'bbpress' ), bbp_get_user_reply_count_raw() ); ?></p>
    27         </div>
    28     </div><!-- #bbp-author-topics-started -->
    29 
    30     <?php do_action( 'bbp_template_after_user_profile' ); ?>
     28<?php do_action( 'bbp_template_after_user_profile' );
Note: See TracChangeset for help on using the changeset viewer.