- Timestamp:
- 12/28/2011 07:37:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-themes/bbp-twentyten/bbpress/loop-single-topic.php
r3634 r3651 10 10 ?> 11 11 12 12 <ul id="topic-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> 13 13 14 14 <li class="bbp-topic-title"> 15 15 16 16 <?php do_action( 'bbp_theme_before_topic_title' ); ?> 17 17 18 18 <a href="<?php bbp_topic_permalink(); ?>" title="<?php bbp_topic_title(); ?>"><?php bbp_topic_title(); ?></a> 19 19 20 20 <?php do_action( 'bbp_theme_after_topic_title' ); ?> 21 21 22 22 <?php bbp_topic_pagination(); ?> 23 23 24 24 <?php do_action( 'bbp_theme_before_topic_meta' ); ?> 25 25 26 26 <p class="bbp-topic-meta"> 27 27 28 28 <?php do_action( 'bbp_theme_before_topic_started_by' ); ?> 29 29 30 30 <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span> 31 31 32 32 <?php do_action( 'bbp_theme_after_topic_started_by' ); ?> 33 33 34 34 <?php if ( !bbp_is_single_forum() || ( bbp_get_topic_forum_id() != bbp_get_forum_id() ) ) : ?> 35 35 36 36 <?php do_action( 'bbp_theme_before_topic_started_in' ); ?> 37 37 38 38 <span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></span> 39 39 40 <?php do_action( 'bbp_theme_after_topic_started_in' ); ?> 41 42 <?php endif; ?> 43 44 </p> 45 46 <?php do_action( 'bbp_theme_after_topic_meta' ); ?> 47 48 </li> 49 50 <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count(); ?></li> 51 52 <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?></li> 53 54 <li class="bbp-topic-freshness"> 55 56 <?php do_action( 'bbp_theme_before_topic_freshness_link' ); ?> 57 58 <?php bbp_topic_freshness_link(); ?> 59 60 <?php do_action( 'bbp_theme_after_topic_freshness_link' ); ?> 61 62 <p class="bbp-topic-meta"> 63 64 <?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?> 65 66 <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span> 67 68 <?php do_action( 'bbp_theme_after_topic_freshness_author' ); ?> 69 70 </p> 71 </li> 72 73 <?php if ( bbp_is_user_home() ) : ?> 74 75 <?php if ( bbp_is_favorites() ) : ?> 76 77 <li class="bbp-topic-action"> 78 79 <?php do_action( 'bbp_theme_before_topic_favorites_action' ); ?> 80 81 <?php bbp_user_favorites_link( array( 'mid' => '+', 'post' => '' ), array( 'pre' => '', 'mid' => '×', 'post' => '' ) ); ?> 82 83 <?php do_action( 'bbp_theme_after_topic_favorites_action' ); ?> 84 85 </li> 86 87 <?php elseif ( bbp_is_subscriptions() ) : ?> 88 89 <li class="bbp-topic-action"> 90 91 <?php do_action( 'bbp_theme_before_topic_subscription_action' ); ?> 92 93 <?php bbp_user_subscribe_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '×' ) ); ?> 94 95 <?php do_action( 'bbp_theme_after_topic_subscription_action' ); ?> 96 97 </li> 40 <?php do_action( 'bbp_theme_after_topic_started_in' ); ?> 98 41 99 42 <?php endif; ?> 100 43 44 </p> 45 46 <?php do_action( 'bbp_theme_after_topic_meta' ); ?> 47 48 </li> 49 50 <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count(); ?></li> 51 52 <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?></li> 53 54 <li class="bbp-topic-freshness"> 55 56 <?php do_action( 'bbp_theme_before_topic_freshness_link' ); ?> 57 58 <?php bbp_topic_freshness_link(); ?> 59 60 <?php do_action( 'bbp_theme_after_topic_freshness_link' ); ?> 61 62 <p class="bbp-topic-meta"> 63 64 <?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?> 65 66 <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span> 67 68 <?php do_action( 'bbp_theme_after_topic_freshness_author' ); ?> 69 70 </p> 71 </li> 72 73 <?php if ( bbp_is_user_home() ) : ?> 74 75 <?php if ( bbp_is_favorites() ) : ?> 76 77 <li class="bbp-topic-action"> 78 79 <?php do_action( 'bbp_theme_before_topic_favorites_action' ); ?> 80 81 <?php bbp_user_favorites_link( array( 'mid' => '+', 'post' => '' ), array( 'pre' => '', 'mid' => '×', 'post' => '' ) ); ?> 82 83 <?php do_action( 'bbp_theme_after_topic_favorites_action' ); ?> 84 85 </li> 86 87 <?php elseif ( bbp_is_subscriptions() ) : ?> 88 89 <li class="bbp-topic-action"> 90 91 <?php do_action( 'bbp_theme_before_topic_subscription_action' ); ?> 92 93 <?php bbp_user_subscribe_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '×' ) ); ?> 94 95 <?php do_action( 'bbp_theme_after_topic_subscription_action' ); ?> 96 97 </li> 98 101 99 <?php endif; ?> 102 100 103 </ul><!-- #topic-<?php bbp_topic_id(); ?> --> 101 <?php endif; ?> 102 103 </ul><!-- #topic-<?php bbp_topic_id(); ?> -->
Note: See TracChangeset
for help on using the changeset viewer.