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

    r3651 r3820  
    1010?>
    1111
    12 <div class="bbp-reply-header">
     12        <tr class="bbp-reply-header">
     13                <td colspan="2">
    1314
    14         <div class="bbp-meta">
     15                        <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>
    1516
    16                 <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>
     17                        <a href="<?php bbp_reply_url(); ?>" title="<?php bbp_reply_title(); ?>" class="bbp-reply-permalink">#<?php bbp_reply_id(); ?></a>
    1718
    18                 <a href="<?php bbp_reply_url(); ?>" title="<?php bbp_reply_title(); ?>" class="bbp-reply-permalink">#<?php bbp_reply_id(); ?></a>
     19                        <?php do_action( 'bbp_theme_before_reply_admin_links' ); ?>
    1920
    20                 <?php do_action( 'bbp_theme_before_reply_admin_links' ); ?>
     21                        <?php bbp_reply_admin_links(); ?>
    2122
    22                 <?php bbp_reply_admin_links(); ?>
     23                        <?php do_action( 'bbp_theme_after_reply_admin_links' ); ?>
    2324
    24                 <?php do_action( 'bbp_theme_after_reply_admin_links' ); ?>
     25                </td>
     26        </tr>
    2527
    26         </div><!-- .bbp-meta -->
     28        <tr id="post-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>>
    2729
    28 </div><!-- .bbp-reply-header -->
     30                <td class="bbp-reply-author">
    2931
    30 <div id="post-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>>
     32                        <?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
    3133
    32         <div class="bbp-reply-author">
     34                        <?php bbp_reply_author_link( array( 'sep' => '<br />' ) ); ?>
    3335
    34                 <?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
     36                        <?php if ( is_super_admin() ) : ?>
    3537
    36                 <?php bbp_reply_author_link( array( 'sep' => '<br />' ) ); ?>
     38                                <?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>
    3739
    38                 <?php if ( is_super_admin() ) : ?>
     40                                <div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>
    3941
    40                         <?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>
     42                                <?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?>
    4143
    42                         <div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>
     44                        <?php endif; ?>
    4345
    44                         <?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?>
     46                        <?php do_action( 'bbp_theme_after_reply_author_details' ); ?>
    4547
    46                 <?php endif; ?>
     48                </td>
    4749
    48                 <?php do_action( 'bbp_theme_after_reply_author_details' ); ?>
     50                <td class="bbp-reply-content">
    4951
    50         </div><!-- .bbp-reply-author -->
     52                        <?php do_action( 'bbp_theme_after_reply_content' ); ?>
    5153
    52         <div class="bbp-reply-content">
     54                        <?php bbp_reply_content(); ?>
    5355
    54                 <?php do_action( 'bbp_theme_after_reply_content' ); ?>
     56                        <?php do_action( 'bbp_theme_before_reply_content' ); ?>
    5557
    56                 <?php bbp_reply_content(); ?>
     58                </td>
    5759
    58                 <?php do_action( 'bbp_theme_before_reply_content' ); ?>
    59 
    60         </div><!-- .bbp-reply-content -->
    61 
    62 </div><!-- #post-<?php bbp_topic_id(); ?> -->
     60        </tr><!-- #post-<?php bbp_topic_id(); ?> -->
Note: See TracChangeset for help on using the changeset viewer.