Changeset 3232 for trunk/bp-themes/bp-default/forums/forums-loop.php
- Timestamp:
- 09/06/2010 04:24:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/forums/forums-loop.php
r2925 r3232 1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() */ ?> 2 3 <?php do_action( 'bp_before_forums_loop' ) ?> 4 1 5 <?php if ( bp_has_forum_topics( bp_ajax_querystring( 'forums' ) ) ) : ?> 2 6 3 <div class="pagination">7 <div id="pag-top" class="pagination"> 4 8 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 9 <div class="pag-count" id="topic-count-top"> 10 10 <?php bp_forum_pagination_count() ?> 11 11 </div> 12 12 13 <div class="pagination-links" id="topic-pag ">13 <div class="pagination-links" id="topic-pag-top"> 14 14 <?php bp_forum_pagination() ?> 15 15 </div> … … 19 19 <?php do_action( 'bp_before_directory_forums_list' ) ?> 20 20 21 <table class="forum"> 21 <table class="forum zebra"> 22 <thead> 23 <tr> 24 <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th> 25 <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ) ?></th> 22 26 23 <tr>24 <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th>25 <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ) ?></th>27 <?php if ( !bp_is_group_forum() ) : ?> 28 <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ) ?></th> 29 <?php endif; ?> 26 30 27 <?php if ( !bp_is_group_forum() ) : ?> 28 <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ) ?></th> 29 <?php endif; ?> 31 <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th> 32 <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th> 30 33 31 <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th> 32 <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th> 34 <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?> 33 35 34 <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?> 36 </tr> 37 </thead> 35 38 36 < /tr>39 <tbody> 37 40 38 <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>41 <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?> 39 42 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>43 <tr class="<?php bp_the_topic_css_class() ?>"> 44 <td class="td-title"> 45 <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>"> 46 <?php bp_the_topic_title() ?> 47 </a> 48 </td> 49 <td class="td-poster"> 50 <a href="<?php bp_the_topic_permalink() ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a> 51 <div class="poster-name"><?php bp_the_topic_last_poster_name() ?></div> 52 </td> 50 53 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> 54 <?php if ( !bp_is_group_forum() ) : ?> 55 <td class="td-group"> 56 <a href="<?php bp_the_topic_object_permalink() ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) ?></a> 57 <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> 58 </td> 59 <?php endif; ?> 60 61 <td class="td-postcount"> 62 <?php bp_the_topic_total_posts() ?> 55 63 </td> 56 <?php endif; ?> 64 <td class="td-freshness"> 65 <?php bp_the_topic_time_since_last_post() ?> 66 </td> 57 67 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> 68 <?php do_action( 'bp_directory_forums_extra_cell' ) ?> 69 </tr> 64 70 65 <?php do_action( 'bp_directory_forums_extra_cell' ) ?> 66 </tr> 71 <?php do_action( 'bp_directory_forums_extra_row' ) ?> 67 72 68 <?php do_action( 'bp_directory_forums_extra_row' )?>73 <?php endwhile; ?> 69 74 70 <?php endwhile; ?> 71 75 </tbody> 72 76 </table> 73 77 74 78 <?php do_action( 'bp_after_directory_forums_list' ) ?> 79 80 <div id="pag-bottom" class="pagination"> 81 82 <div class="pag-count" id="topic-count-bottom"> 83 <?php bp_forum_pagination_count() ?> 84 </div> 85 86 <div class="pagination-links" id="topic-pag-bottom"> 87 <?php bp_forum_pagination() ?> 88 </div> 89 90 </div> 75 91 76 92 <?php else: ?> … … 81 97 82 98 <?php endif;?> 99 100 <?php do_action( 'bp_after_forums_loop' ) ?>
Note: See TracChangeset
for help on using the changeset viewer.