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/loop-replies.php

    r5688 r5689  
    88 */
    99
    10 ?>
    11 
    12 <?php do_action( 'bbp_template_before_replies_loop' ); ?>
     10do_action( 'bbp_template_before_replies_loop' ); ?>
    1311
    1412<ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies">
    1513
    1614        <li class="bbp-header">
    17 
    1815                <div class="bbp-reply-author"><?php esc_html_e( 'Author',  'bbpress' ); ?></div><!-- .bbp-reply-author -->
    19 
    20                 <div class="bbp-reply-content">
    21 
    22                         <?php if ( ! bbp_show_lead_topic() ) : ?>
    23 
    24                                 <?php esc_html_e( 'Posts', 'bbpress' ); ?>
    25 
    26                         <?php else : ?>
    27 
    28                                 <?php esc_html_e( 'Replies', 'bbpress' ); ?>
    29 
    30                         <?php endif; ?>
    31 
    32                 </div><!-- .bbp-reply-content -->
    33 
     16                <div class="bbp-reply-content"><?php bbp_show_lead_topic()
     17                        ? esc_html_e( 'Replies', 'bbpress' )
     18                        : esc_html_e( 'Posts',   'bbpress' );
     19                ?></div><!-- .bbp-reply-content -->
    3420        </li><!-- .bbp-header -->
    3521
     
    5339
    5440        <li class="bbp-footer">
    55 
    5641                <div class="bbp-reply-author"><?php esc_html_e( 'Author',  'bbpress' ); ?></div>
    57 
    58                 <div class="bbp-reply-content">
    59 
    60                         <?php if ( ! bbp_show_lead_topic() ) : ?>
    61 
    62                                 <?php esc_html_e( 'Posts', 'bbpress' ); ?>
    63 
    64                         <?php else : ?>
    65 
    66                                 <?php esc_html_e( 'Replies', 'bbpress' ); ?>
    67 
    68                         <?php endif; ?>
    69 
    70                 </div><!-- .bbp-reply-content -->
    71 
     42                <div class="bbp-reply-content"><?php bbp_show_lead_topic()
     43                        ? esc_html_e( 'Replies', 'bbpress' )
     44                        : esc_html_e( 'Posts',   'bbpress' );
     45                ?></div><!-- .bbp-reply-content -->
    7246        </li><!-- .bbp-footer -->
    73 
    7447</ul><!-- #topic-<?php bbp_topic_id(); ?>-replies -->
    7548
    76 <?php do_action( 'bbp_template_after_replies_loop' ); ?>
     49<?php do_action( 'bbp_template_after_replies_loop' );
Note: See TracChangeset for help on using the changeset viewer.