Changeset 3810 for trunk/bp-themes/bp-default/forums/forums-loop.php
- Timestamp:
- 01/22/2011 10:13:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/forums/forums-loop.php
r3771 r3810 1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() */ ?>1 <?php 2 2 3 <?php do_action( 'bp_before_forums_loop' ) ?> 3 /** 4 * BuddyPress - Forums Loop 5 * 6 * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() 7 * 8 * @package BuddyPress 9 * @subpackage bp-default 10 */ 11 12 ?> 13 14 <?php do_action( 'bp_before_forums_loop' ); ?> 4 15 5 16 <?php if ( bp_has_forum_topics( bp_ajax_querystring( 'forums' ) ) ) : ?> … … 8 19 9 20 <div class="pag-count" id="topic-count-top"> 10 <?php bp_forum_pagination_count() ?> 21 22 <?php bp_forum_pagination_count(); ?> 23 11 24 </div> 12 25 13 26 <div class="pagination-links" id="topic-pag-top"> 14 <?php bp_forum_pagination() ?> 27 28 <?php bp_forum_pagination(); ?> 29 15 30 </div> 16 31 17 32 </div> 18 33 19 <?php do_action( 'bp_before_directory_forums_list' ) ?>34 <?php do_action( 'bp_before_directory_forums_list' ); ?> 20 35 21 36 <table class="forum zebra"> 22 37 <thead> 23 38 <tr> 24 <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th>25 <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ) ?></th>39 <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ); ?></th> 40 <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ); ?></th> 26 41 27 42 <?php if ( !bp_is_group_forum() ) : ?> 28 <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ) ?></th> 43 44 <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ); ?></th> 45 29 46 <?php endif; ?> 30 47 31 <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th>32 <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th>48 <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ); ?></th> 49 <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ); ?></th> 33 50 34 <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?>51 <?php do_action( 'bp_directory_forums_extra_cell_head' ); ?> 35 52 36 53 </tr> … … 41 58 <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?> 42 59 43 <tr class="<?php bp_the_topic_css_class() ?>">60 <tr class="<?php bp_the_topic_css_class(); ?>"> 44 61 <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() ?> 62 <a class="topic-title" href="<?php bp_the_topic_permalink(); ?>" title="<?php bp_the_topic_title(); ?> - <?php _e( 'Permalink', 'buddypress' ); ?>"> 63 64 <?php bp_the_topic_title(); ?> 65 47 66 </a> 48 67 </td> 49 68 <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>69 <a href="<?php bp_the_topic_permalink(); ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ); ?></a> 70 <div class="poster-name"><?php bp_the_topic_last_poster_name(); ?></div> 52 71 </td> 53 72 54 73 <?php if ( !bp_is_group_forum() ) : ?> 74 55 75 <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>76 <a href="<?php bp_the_topic_object_permalink(); ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ); ?></a> 77 <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 78 </td> 79 59 80 <?php endif; ?> 60 81 61 82 <td class="td-postcount"> 62 <?php bp_the_topic_total_posts() ?> 83 84 <?php bp_the_topic_total_posts(); ?> 85 63 86 </td> 64 87 <td class="td-freshness"> 65 <?php bp_the_topic_time_since_last_post() ?>88 <?php bp_the_topic_time_since_last_post(); ?> 66 89 </td> 67 90 68 <?php do_action( 'bp_directory_forums_extra_cell' ) ?> 91 <?php do_action( 'bp_directory_forums_extra_cell' ); ?> 92 69 93 </tr> 70 94 71 <?php do_action( 'bp_directory_forums_extra_row' ) ?>95 <?php do_action( 'bp_directory_forums_extra_row' ); ?> 72 96 73 97 <?php endwhile; ?> … … 76 100 </table> 77 101 78 <?php do_action( 'bp_after_directory_forums_list' ) ?>102 <?php do_action( 'bp_after_directory_forums_list' ); ?> 79 103 80 104 <div id="pag-bottom" class="pagination"> 81 105 82 106 <div class="pag-count" id="topic-count-bottom"> 83 <?php bp_forum_pagination_count() ?>107 <?php bp_forum_pagination_count(); ?> 84 108 </div> 85 109 86 110 <div class="pagination-links" id="topic-pag-bottom"> 87 <?php bp_forum_pagination() ?>111 <?php bp_forum_pagination(); ?> 88 112 </div> 89 113 … … 93 117 94 118 <div id="message" class="info"> 95 <p><?php _e( 'Sorry, there were no forum topics found.', 'buddypress' ) ?></p>119 <p><?php _e( 'Sorry, there were no forum topics found.', 'buddypress' ); ?></p> 96 120 </div> 97 121 98 <?php endif; ?>122 <?php endif; ?> 99 123 100 <?php do_action( 'bp_after_forums_loop' ) ?>124 <?php do_action( 'bp_after_forums_loop' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.