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-forums.php

    r3417 r3464  
    3131            <?php while ( bbp_forums() ) : bbp_the_forum(); ?>
    3232
    33                 <tr id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class(); ?>>
    34 
    35                     <td class="bbp-forum-info">
    36 
    37                         <?php do_action( 'bbp_theme_before_forum_title' ); ?>
    38 
    39                         <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>" title="<?php bbp_forum_title(); ?>"><?php bbp_forum_title(); ?></a>
    40 
    41                         <?php do_action( 'bbp_theme_after_forum_title' ); ?>
    42 
    43                         <?php do_action( 'bbp_theme_before_forum_sub_forums' ); ?>
    44 
    45                         <?php bbp_list_forums(); ?>
    46 
    47                         <?php do_action( 'bbp_theme_after_forum_sub_forums' ); ?>
    48 
    49                         <?php do_action( 'bbp_theme_before_forum_description' ); ?>
    50 
    51                         <div class="bbp-forum-description"><?php the_content(); ?></div>
    52 
    53                         <?php do_action( 'bbp_theme_after_forum_description' ); ?>
    54 
    55                     </td>
    56 
    57                     <td class="bbp-forum-topic-count"><?php bbp_forum_topic_count(); ?></td>
    58 
    59                     <td class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?></td>
    60 
    61                     <td class="bbp-forum-freshness">
    62 
    63                         <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
    64 
    65                         <?php bbp_forum_freshness_link(); ?>
    66 
    67                         <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>
    68 
    69                         <p class="bbp-topic-meta">
    70 
    71                             <?php do_action( 'bbp_theme_before_topic_author' ); ?>
    72 
    73                             <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 14 ) ); ?></span>
    74 
    75                             <?php do_action( 'bbp_theme_after_topic_author' ); ?>
    76 
    77                         </p>
    78                     </td>
    79 
    80                 </tr><!-- bbp-forum-<?php bbp_forum_id(); ?> -->
     33                <?php bbp_get_template_part( 'bbpress/loop', 'single-forum' ); ?>
    8134
    8235            <?php endwhile; ?>
Note: See TracChangeset for help on using the changeset viewer.