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