Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/21/2012 10:26:34 PM (12 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/content-single-topic-lead.php

    r3690 r3820  
    1010?>
    1111
    12 <?php do_action( 'bbp_template_before_lead_topic' ); ?>
     12    <?php do_action( 'bbp_template_before_lead_topic' ); ?>
    1313
    14 <ul id="bbp-topic-<?php bbp_topic_id(); ?>-lead" class="bbp-lead-topic">
     14    <table class="bbp-topic" id="bbp-topic-<?php bbp_topic_id(); ?>">
     15        <thead>
     16            <tr>
     17                <th class="bbp-topic-author"><?php _e( 'Creator', 'bbpress' ); ?></th>
     18                <th class="bbp-topic-content">
    1519
    16     <li class="bbp-header">
     20                    <?php _e( 'Topic', 'bbpress' ); ?>
    1721
    18         <div class="bbp-topic-author"><?php  _e( 'Creator',  'bbpress' ); ?></div><!-- .bbp-topic-author -->
     22                    <?php bbp_user_subscribe_link(); ?>
    1923
    20         <div class="bbp-topic-content">
     24                    <?php bbp_user_favorites_link(); ?>
    2125
    22             <?php _e( 'Topic', 'bbpress' ); ?>
     26                </th>
     27            </tr>
     28        </thead>
    2329
    24             <?php bbp_user_subscribe_link(); ?>
     30        <tfoot>
     31            <tr>
     32                <td colspan="2">
    2533
    26             <?php bbp_user_favorites_link(); ?>
     34                    <?php bbp_topic_admin_links(); ?>
    2735
    28         </div><!-- .bbp-topic-content -->
     36                </td>
     37            </tr>
     38        </tfoot>
    2939
    30     </li><!-- .bbp-header -->
     40        <tbody>
    3141
    32     <li class="bbp-body">
     42            <tr class="bbp-topic-header">
     43                <td colspan="2">
    3344
    34         <div class="bbp-topic-header">
     45                    <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>
    3546
    36             <div class="bbp-meta">
     47                    <a href="#bbp-topic-<?php bbp_topic_id(); ?>" title="<?php bbp_topic_title(); ?>" class="bbp-topic-permalink">#<?php bbp_topic_id(); ?></a>
    3748
    38                 <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>
     49                </td>
     50            </tr>
    3951
    40                 <a href="<?php bbp_topic_permalink(); ?>" title="<?php bbp_topic_title(); ?>" class="bbp-topic-permalink">#<?php bbp_topic_id(); ?></a>
     52            <tr id="post-<?php bbp_topic_id(); ?>" <?php post_class( 'bbp-forum-topic' ); ?>>
    4153
    42                 <?php do_action( 'bbp_theme_before_topic_admin_links' ); ?>
     54                <td class="bbp-topic-author">
    4355
    44                 <?php bbp_topic_admin_links(); ?>
     56                    <?php bbp_topic_author_link( array( 'sep' => '<br />' ) ); ?>
    4557
    46                 <?php do_action( 'bbp_theme_after_topic_admin_links' ); ?>
     58                    <?php if ( is_super_admin() ) : ?>
    4759
    48             </div><!-- .bbp-meta -->
     60                        <div class="bbp-topic-ip"><?php bbp_author_ip( bbp_get_topic_id() ); ?></div>
    4961
    50         </div><!-- .bbp-topic-header -->
     62                    <?php endif; ?>
    5163
    52         <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
     64                </td>
    5365
    54             <div class="bbp-topic-author">
     66                <td class="bbp-topic-content">
    5567
    56                 <?php do_action( 'bbp_theme_before_topic_author_details' ); ?>
     68                    <?php bbp_topic_content(); ?>
    5769
    58                 <?php bbp_topic_author_link( array( 'sep' => '<br />' ) ); ?>
     70                </td>
    5971
    60                 <?php if ( is_super_admin() ) : ?>
     72            </tr><!-- #post-<?php bbp_topic_id(); ?> -->
    6173
    62                     <?php do_action( 'bbp_theme_before_topic_author_admin_details' ); ?>
     74        </tbody>
     75    </table><!-- #bbp-topic-<?php bbp_topic_id(); ?> -->
    6376
    64                     <div class="bbp-topic-ip"><?php bbp_author_ip( bbp_get_topic_id() ); ?></div>
    65 
    66                     <?php do_action( 'bbp_theme_after_topic_author_admin_details' ); ?>
    67 
    68                 <?php endif; ?>
    69 
    70                 <?php do_action( 'bbp_theme_after_topic_author_details' ); ?>
    71 
    72             </div><!-- .bbp-topic-author -->
    73 
    74             <div class="bbp-topic-content">
    75 
    76                 <?php do_action( 'bbp_theme_after_topic_content' ); ?>
    77 
    78                 <?php bbp_topic_content(); ?>
    79 
    80                 <?php do_action( 'bbp_theme_before_topic_content' ); ?>
    81 
    82             </div><!-- .bbp-topic-content -->
    83 
    84         </div><!-- #post-<?php bbp_topic_id(); ?> -->
    85 
    86     </li><!-- .bbp-body -->
    87 
    88     <li class="bbp-footer">
    89 
    90         <div class="bbp-topic-author"><?php  _e( 'Creator',  'bbpress' ); ?></div>
    91 
    92         <div class="bbp-topic-content">
    93 
    94             <?php if ( !bbp_show_lead_topic() ) : ?>
    95 
    96                 <?php _e( 'Posts', 'bbpress' ); ?>
    97 
    98             <?php else : ?>
    99 
    100                 <?php _e( 'Replies', 'bbpress' ); ?>
    101 
    102             <?php endif; ?>
    103 
    104         </div><!-- .bbp-topic-content -->
    105 
    106     </li>
    107 
    108 </ul><!-- #topic-<?php bbp_topic_id(); ?>-replies -->
    109 
    110 <?php do_action( 'bbp_template_after_lead_topic' ); ?>
     77    <?php do_action( 'bbp_template_after_lead_topic' ); ?>
Note: See TracChangeset for help on using the changeset viewer.