Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/21/2012 10:26:34 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Revert bbp-twentyten back to table based layout:

  • bbp-theme-compat retains tableless layout, and is canonical backup for missing template files
  • Avoid back-compat issues with installs that have modified bbPress 2.0 CSS
  • Fixes #1796
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/loop-replies.php

    r3651 r3820  
    1010?>
    1111
    12 <?php do_action( 'bbp_template_before_replies_loop' ); ?>
     12        <?php do_action( 'bbp_template_before_replies_loop' ); ?>
    1313
    14 <ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies">
     14        <table class="bbp-replies" id="topic-<?php bbp_topic_id(); ?>-replies">
     15                <thead>
     16                        <tr>
     17                                <th class="bbp-reply-author"><?php  _e( 'Author',  'bbpress' ); ?></th>
     18                                <th class="bbp-reply-content">
    1519
    16         <li class="bbp-header">
     20                                        <?php if ( !bbp_show_lead_topic() ) : ?>
    1721
    18                 <div class="bbp-reply-author"><?php  _e( 'Author',  'bbpress' ); ?></div><!-- .bbp-reply-author -->
     22                                                <?php _e( 'Posts', 'bbpress' ); ?>
    1923
    20                 <div class="bbp-reply-content">
     24                                                <?php bbp_user_subscribe_link(); ?>
    2125
    22                         <?php if ( !bbp_show_lead_topic() ) : ?>
     26                                                <?php bbp_user_favorites_link(); ?>
    2327
    24                                 <?php _e( 'Posts', 'bbpress' ); ?>
     28                                        <?php else : ?>
    2529
    26                                 <?php bbp_user_subscribe_link(); ?>
     30                                                <?php _e( 'Replies', 'bbpress' ); ?>
    2731
    28                                 <?php bbp_user_favorites_link(); ?>
     32                                        <?php endif; ?>
    2933
    30                         <?php else : ?>
     34                                </th>
     35                        </tr>
     36                </thead>
    3137
    32                                 <?php _e( 'Replies', 'bbpress' ); ?>
     38                <tfoot>
     39                        <tr>
     40                                <th class="bbp-reply-author"><?php  _e( 'Author',  'bbpress' ); ?></th>
     41                                <th class="bbp-reply-content">
    3342
    34                         <?php endif; ?>
     43                                        <?php if ( !bbp_show_lead_topic() ) : ?>
    3544
    36                 </div><!-- .bbp-reply-content -->
     45                                                <?php _e( 'Posts', 'bbpress' ); ?>
    3746
    38         </li><!-- .bbp-header -->
     47                                        <?php else : ?>
    3948
    40         <li class="bbp-body">
     49                                                <?php _e( 'Replies', 'bbpress' ); ?>
    4150
    42                 <?php while ( bbp_replies() ) : bbp_the_reply(); ?>
     51                                        <?php endif; ?>
    4352
    44                         <?php bbp_get_template_part( 'bbpress/loop', 'single-reply' ); ?>
     53                                </th>
     54                        </tr>
     55                </tfoot>
    4556
    46                 <?php endwhile; ?>
     57                <tbody>
    4758
    48         </li><!-- .bbp-body -->
     59                        <?php while ( bbp_replies() ) : bbp_the_reply(); ?>
    4960
    50         <li class="bbp-footer">
     61                                <?php bbp_get_template_part( 'bbpress/loop', 'single-reply' ); ?>
    5162
    52                 <div class="bbp-reply-author"><?php  _e( 'Author',  'bbpress' ); ?></div>
     63                        <?php endwhile; ?>
    5364
    54                 <div class="bbp-reply-content">
     65                </tbody>
    5566
    56                         <?php if ( !bbp_show_lead_topic() ) : ?>
     67        </table>
    5768
    58                                 <?php _e( 'Posts', 'bbpress' ); ?>
    59 
    60                         <?php else : ?>
    61 
    62                                 <?php _e( 'Replies', 'bbpress' ); ?>
    63 
    64                         <?php endif; ?>
    65 
    66                 </div><!-- .bbp-reply-content -->
    67 
    68         </li>
    69 
    70 </ul><!-- #topic-<?php bbp_topic_id(); ?>-replies -->
    71 
    72 <?php do_action( 'bbp_template_after_replies_loop' ); ?>
     69        <?php do_action( 'bbp_template_after_replies_loop' ); ?>
Note: See TracChangeset for help on using the changeset viewer.