Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/27/2011 09:57:44 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Theme Compatibility Updates:

  • Tableless layout, fixes #1586, props mercime
  • Introduce content-single-reply and content-topic-tag-edit templates
  • Update shortcodes to use content templates
  • Update theme compatibility to include single reply shortcode
  • @todo CSS audit, RTL audit, shortcode audit
File:
1 edited

Legend:

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

    r3464 r3634  
    1010?>
    1111
    12     <?php do_action( 'bbp_template_before_topics_loop' ); ?>
     12    <div id="bbpress-forums">
    1313
    14     <table class="bbp-topics" id="bbp-forum-<?php bbp_topic_id(); ?>">
    15         <thead>
    16             <tr>
    17                 <th class="bbp-topic-title"><?php _e( 'Topic', 'bbpress' ); ?></th>
    18                 <th class="bbp-topic-voice-count"><?php _e( 'Voices', 'bbpress' ); ?></th>
    19                 <th class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></th>
    20                 <th class="bbp-topic-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></th>
    21                 <?php if ( ( bbp_is_user_home() && ( bbp_is_favorites() || bbp_is_subscriptions() ) ) ) : ?><th class="bbp-topic-action"><?php _e( 'Remove', 'bbpress' ); ?></th><?php endif; ?>
    22             </tr>
    23         </thead>
     14        <?php do_action( 'bbp_template_before_topics_loop' ); ?>
    2415
    25         <tfoot>
    26             <tr><td colspan="<?php echo ( bbp_is_user_home() && ( bbp_is_favorites() || bbp_is_subscriptions() ) ) ? '5' : '4'; ?>">&nbsp;</td></tr>
    27         </tfoot>
     16        <ul id="bbp-forum-<?php bbp_forum_id(); ?>" class="forums bbp-topics">
    2817
    29         <tbody>
     18            <li class="bbp-header">
    3019
    31             <?php while ( bbp_topics() ) : bbp_the_topic(); ?>
     20                <ul class="forum-titles">
    3221
    33                 <?php bbp_get_template_part( 'bbpress/loop', 'single-topic' ); ?>
     22                    <li class="bbp-topic-title"><?php _e( 'Topic', 'bbpress' ); ?></li>
     23                    <li class="bbp-topic-voice-count"><?php _e( 'Voices', 'bbpress' ); ?></li>
     24                    <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li>
     25                    <li class="bbp-topic-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li>
     26                    <?php if ( ( bbp_is_user_home() && ( bbp_is_favorites() || bbp_is_subscriptions() ) ) ) : ?><li class="bbp-topic-action"><?php _e( 'Remove', 'bbpress' ); ?></li><?php endif; ?>
    3427
    35             <?php endwhile; ?>
     28                </ul>
    3629
    37         </tbody>
     30            </li>
    3831
    39     </table><!-- #bbp-forum-<?php bbp_topic_id(); ?> -->
     32            <li class="bbp-body">
    4033
    41     <?php do_action( 'bbp_template_after_topics_loop' ); ?>
     34                <?php while ( bbp_topics() ) : bbp_the_topic(); ?>
     35
     36                    <?php bbp_get_template_part( 'bbpress/loop', 'single-topic' ); ?>
     37
     38                <?php endwhile; ?>
     39
     40            </li>
     41
     42            <li class="bbp-footer">
     43
     44                <div class="tr">
     45                    <p>
     46                        <span class="td colspan<?php echo ( bbp_is_user_home() && ( bbp_is_favorites() || bbp_is_subscriptions() ) ) ? '5' : '4'; ?>">&nbsp;</span>
     47                    </p>
     48                </div><!-- .tr -->
     49
     50            </li>
     51
     52        </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> -->
     53
     54        <?php do_action( 'bbp_template_after_topics_loop' ); ?>
     55
     56    </div><!-- #bbpress-forums -->
Note: See TracChangeset for help on using the changeset viewer.