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/single-reply.php

    r3634 r3820  
    88 */
    99
    10 ?>
    11 
    12 <?php get_header(); ?>
     10get_header(); ?>
    1311
    1412        <div id="container">
     
    1715                <?php do_action( 'bbp_template_notices' ); ?>
    1816
    19                 <?php if ( bbp_user_can_view_forum( array( 'forum_id' => bbp_get_reply_forum_id() ) ) ) : ?>
     17                <?php while ( have_posts() ) : the_post(); ?>
    2018
    21                     <?php while ( have_posts() ) : the_post(); ?>
     19                    <div id="bbp-reply-wrapper-<?php bbp_reply_id(); ?>" class="bbp-reply-wrapper">
     20                        <h1 class="entry-title"><?php bbp_reply_title(); ?></h1>
    2221
    23                         <div id="bbp-reply-wrapper-<?php bbp_reply_id(); ?>" class="bbp-reply-wrapper">
    24                             <h1 class="entry-title"><?php bbp_reply_title(); ?></h1>
    25                             <div class="entry-content">
     22                        <?php bbp_breadcrumb(); ?>
    2623
    27                                 <?php bbp_get_template_part( 'bbpress/content', 'single-reply' ); ?>
     24                        <div class="entry-content">
    2825
    29                             </div><!-- .entry-content -->
    30                         </div><!-- #bbp-reply-wrapper-<?php bbp_reply_id(); ?> -->
     26                            <table class="bbp-replies" id="topic-<?php bbp_topic_id(); ?>-replies">
     27                                <thead>
     28                                    <tr>
     29                                        <th class="bbp-reply-author"><?php  _e( 'Author',  'bbpress' ); ?></th>
     30                                        <th class="bbp-reply-content"><?php _e( 'Replies', 'bbpress' ); ?></th>
     31                                    </tr>
     32                                </thead>
    3133
    32                     <?php endwhile; ?>
     34                                <tfoot>
     35                                    <tr>
     36                                        <td colspan="2"><?php bbp_topic_admin_links(); ?></td>
     37                                    </tr>
     38                                </tfoot>
    3339
    34                 <?php elseif ( bbp_is_forum_private( bbp_get_reply_forum_id(), false ) ) : ?>
     40                                <tbody>
     41                                    <tr class="bbp-reply-header">
     42                                        <td class="bbp-reply-author">
    3543
    36                     <?php bbp_get_template_part( 'bbpress/feedback', 'no-access' ); ?>
     44                                            <?php bbp_reply_author_display_name(); ?>
    3745
    38                 <?php endif; ?>
     46                                        </td>
     47                                        <td class="bbp-reply-content">
     48                                            <a href="<?php bbp_reply_url(); ?>" title="<?php bbp_reply_title(); ?>">#</a>
     49
     50                                            <?php printf( __( 'Posted on %1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>
     51
     52                                            <span><?php bbp_reply_admin_links(); ?></span>
     53                                        </td>
     54                                    </tr>
     55
     56                                    <tr id="reply-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>>
     57
     58                                        <td class="bbp-reply-author"><?php bbp_reply_author_link( array( 'type' => 'avatar' ) ); ?></td>
     59
     60                                        <td class="bbp-reply-content">
     61
     62                                            <?php bbp_reply_content(); ?>
     63
     64                                        </td>
     65
     66                                    </tr><!-- #topic-<?php bbp_topic_id(); ?>-replies -->
     67                                </tbody>
     68                            </table>
     69
     70                        </div><!-- .entry-content -->
     71                    </div><!-- #bbp-reply-wrapper-<?php bbp_reply_id(); ?> -->
     72
     73                <?php endwhile; ?>
    3974
    4075            </div><!-- #content -->
Note: See TracChangeset for help on using the changeset viewer.