- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-themes/bp-default/forums/forums-loop.php
r2895 r3111 4 4 5 5 <div id="post-count" class="pag-count"> 6 <?php if ( bp_is_group_forum() && is_user_logged_in() ) : ?>7 <a href="#post-new" class="button"><?php _e( 'New Topic', 'buddypress' ) ?></a> 8 <?php endif; ?>9 10 6 <?php bp_forum_pagination_count() ?> 11 7 </div> … … 19 15 <?php do_action( 'bp_before_directory_forums_list' ) ?> 20 16 21 <table class="forum"> 17 <table class="forum zebra"> 18 <thead> 19 <tr> 20 <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th> 21 <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ) ?></th> 22 22 23 <tr>24 <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th>25 <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ) ?></th>23 <?php if ( !bp_is_group_forum() ) : ?> 24 <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ) ?></th> 25 <?php endif; ?> 26 26 27 <?php if ( !bp_is_group_forum() ) : ?> 28 <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ) ?></th> 29 <?php endif; ?> 27 <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th> 28 <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th> 30 29 31 <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th> 32 <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th> 30 <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?> 33 31 34 <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?> 32 </tr> 33 </thead> 35 34 36 < /tr>35 <tbody> 37 36 38 <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>37 <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?> 39 38 40 <tr class="<?php bp_the_topic_css_class() ?>">41 <td class="td-title">42 <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>">43 <?php bp_the_topic_title() ?>44 </a>45 </td>46 <td class="td-poster">47 <a href="<?php bp_the_topic_permalink() ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a>48 <div class="poster-name"><?php bp_the_topic_last_poster_name() ?></div>49 </td>39 <tr class="<?php bp_the_topic_css_class() ?>"> 40 <td class="td-title"> 41 <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>"> 42 <?php bp_the_topic_title() ?> 43 </a> 44 </td> 45 <td class="td-poster"> 46 <a href="<?php bp_the_topic_permalink() ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a> 47 <div class="poster-name"><?php bp_the_topic_last_poster_name() ?></div> 48 </td> 50 49 51 <?php if ( !bp_is_group_forum() ) : ?> 52 <td class="td-group"> 53 <a href="<?php bp_the_topic_object_permalink() ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) ?></a> 54 <div class="object-name"><a href="<?php bp_the_topic_object_permalink() ?>" title="<?php bp_the_topic_object_name() ?>"><?php bp_the_topic_object_name() ?></a></div> 50 <?php if ( !bp_is_group_forum() ) : ?> 51 <td class="td-group"> 52 <a href="<?php bp_the_topic_object_permalink() ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) ?></a> 53 <div class="object-name"><a href="<?php bp_the_topic_object_permalink() ?>" title="<?php bp_the_topic_object_name() ?>"><?php bp_the_topic_object_name() ?></a></div> 54 </td> 55 <?php endif; ?> 56 57 <td class="td-postcount"> 58 <?php bp_the_topic_total_posts() ?> 55 59 </td> 56 <?php endif; ?> 60 <td class="td-freshness"> 61 <?php bp_the_topic_time_since_last_post() ?> 62 </td> 57 63 58 <td class="td-postcount"> 59 <?php bp_the_topic_total_posts() ?> 60 </td> 61 <td class="td-freshness"> 62 <?php bp_the_topic_time_since_last_post() ?> 63 </td> 64 <?php do_action( 'bp_directory_forums_extra_cell' ) ?> 65 </tr> 64 66 65 <?php do_action( 'bp_directory_forums_extra_cell' ) ?> 66 </tr> 67 <?php do_action( 'bp_directory_forums_extra_row' ) ?> 67 68 68 <?php do_action( 'bp_directory_forums_extra_row' )?>69 <?php endwhile; ?> 69 70 70 <?php endwhile; ?> 71 71 </tbody> 72 72 </table> 73 73
Note: See TracChangeset
for help on using the changeset viewer.