Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/28/2011 09:36:41 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Break single loop elements into separate template parts in bbp-twentyten for easier ajaxifying.

File:
1 edited

Legend:

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

    r3417 r3464  
    5959            <?php while ( bbp_replies() ) : bbp_the_reply(); ?>
    6060
    61                 <tr class="bbp-reply-header">
    62                     <td colspan="2">
    63 
    64                         <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>
    65 
    66                         <a href="<?php bbp_reply_url(); ?>" title="<?php bbp_reply_title(); ?>" class="bbp-reply-permalink">#<?php bbp_reply_id(); ?></a>
    67 
    68                         <?php do_action( 'bbp_theme_before_reply_admin_links' ); ?>
    69 
    70                         <?php bbp_reply_admin_links(); ?>
    71 
    72                         <?php do_action( 'bbp_theme_after_reply_admin_links' ); ?>
    73 
    74                     </td>
    75                 </tr>
    76 
    77                 <tr id="post-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>>
    78 
    79                     <td class="bbp-reply-author">
    80 
    81                         <?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
    82 
    83                         <?php bbp_reply_author_link(); ?>
    84 
    85                         <?php if ( is_super_admin() ) : ?>
    86 
    87                             <?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>
    88 
    89                             <div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>
    90 
    91                             <?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?>
    92 
    93                         <?php endif; ?>
    94 
    95                         <?php do_action( 'bbp_theme_after_reply_author_details' ); ?>
    96 
    97                     </td>
    98 
    99                     <td class="bbp-reply-content">
    100 
    101                         <?php do_action( 'bbp_theme_after_reply_content' ); ?>
    102 
    103                         <?php bbp_reply_content(); ?>
    104 
    105                         <?php do_action( 'bbp_theme_before_reply_content' ); ?>
    106 
    107                     </td>
    108 
    109                 </tr><!-- #post-<?php bbp_topic_id(); ?> -->
     61                <?php bbp_get_template_part( 'bbpress/loop', 'single-reply' ); ?>
    11062
    11163            <?php endwhile; ?>
Note: See TracChangeset for help on using the changeset viewer.