Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/28/2011 07:37:22 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Audit the bbp-twentyten theme's actions, HTML, and CSS. See #1702.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/content-single-topic-lead.php

    r3492 r3651  
    1010?>
    1111
    12         <table class="bbp-topic" id="bbp-topic-<?php bbp_topic_id(); ?>">
    13                 <thead>
    14                         <tr>
    15                                 <th class="bbp-topic-author"><?php _e( 'Creator', 'bbpress' ); ?></th>
    16                                 <th class="bbp-topic-content">
     12<?php do_action( 'bbp_template_before_replies_loop' ); ?>
    1713
    18                                         <?php _e( 'Topic', 'bbpress' ); ?>
     14<ul id="bbp-topic-<?php bbp_topic_id(); ?>-lead" class="bbp-lead-topic">
    1915
    20                                         <?php bbp_user_subscribe_link(); ?>
     16        <li class="bbp-header">
    2117
    22                                         <?php bbp_user_favorites_link(); ?>
     18                <div class="bbp-topic-author"><?php  _e( 'Creator',  'bbpress' ); ?></div><!-- .bbp-topic-author -->
    2319
    24                                 </th>
    25                         </tr>
    26                 </thead>
     20                <div class="bbp-topic-content">
    2721
    28                 <tfoot>
    29                         <tr>
    30                                 <td colspan="2">
     22                        <?php _e( 'Topic', 'bbpress' ); ?>
    3123
    32                                         <?php bbp_topic_admin_links(); ?>
     24                        <?php bbp_user_subscribe_link(); ?>
    3325
    34                                 </td>
    35                         </tr>
    36                 </tfoot>
     26                        <?php bbp_user_favorites_link(); ?>
    3727
    38                 <tbody>
     28                </div><!-- .bbp-topic-content -->
    3929
    40                         <tr class="bbp-topic-header">
    41                                 <td colspan="2">
     30        </li><!-- .bbp-header -->
    4231
    43                                         <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>
     32        <li class="bbp-body">
    4433
    45                                         <a href="#bbp-topic-<?php bbp_topic_id(); ?>" title="<?php bbp_topic_title(); ?>" class="bbp-topic-permalink">#<?php bbp_topic_id(); ?></a>
     34                <div class="bbp-topic-header">
    4635
    47                                 </td>
    48                         </tr>
     36                        <div class="bbp-meta">
    4937
    50                         <tr id="post-<?php bbp_topic_id(); ?>" <?php post_class( 'bbp-forum-topic' ); ?>>
     38                                <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>
    5139
    52                                 <td class="bbp-topic-author">
     40                                <a href="<?php bbp_topic_permalink(); ?>" title="<?php bbp_topic_title(); ?>" class="bbp-topic-permalink">#<?php bbp_topic_id(); ?></a>
    5341
    54                                         <?php bbp_topic_author_link( array( 'sep' => '<br />' ) ); ?>
     42                                <?php do_action( 'bbp_theme_before_topic_admin_links' ); ?>
    5543
    56                                         <?php if ( is_super_admin() ) : ?>
     44                                <?php bbp_topic_admin_links(); ?>
    5745
    58                                                 <div class="bbp-topic-ip"><?php bbp_author_ip( bbp_get_topic_id() ); ?></div>
     46                                <?php do_action( 'bbp_theme_after_topic_admin_links' ); ?>
    5947
    60                                         <?php endif; ?>
     48                        </div><!-- .bbp-meta -->
    6149
    62                                 </td>
     50                </div><!-- .bbp-topic-header -->
    6351
    64                                 <td class="bbp-topic-content">
     52                <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>
    6553
    66                                         <?php bbp_topic_content(); ?>
     54                        <div class="bbp-topic-author">
    6755
    68                                 </td>
     56                                <?php do_action( 'bbp_theme_before_topic_author_details' ); ?>
    6957
    70                         </tr><!-- #post-<?php bbp_topic_id(); ?> -->
     58                                <?php bbp_topic_author_link( array( 'sep' => '<br />' ) ); ?>
    7159
    72                 </tbody>
    73         </table><!-- #bbp-topic-<?php bbp_topic_id(); ?> -->
     60                                <?php if ( is_super_admin() ) : ?>
     61
     62                                        <?php do_action( 'bbp_theme_before_topic_author_admin_details' ); ?>
     63
     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_topic_loop' ); ?>
Note: See TracChangeset for help on using the changeset viewer.