/templates/default/bbpress/loop-single-topic.php

  1. <?php 
  2.  
  3. /** 
  4. * Topics Loop - Single 
  5. * 
  6. * @package bbPress 
  7. * @subpackage Theme 
  8. */ 
  9.  
  10. ?> 
  11.  
  12. <ul id="bbp-topic-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> 
  13.  
  14. <li class="bbp-topic-title"> 
  15.  
  16. <?php if ( bbp_is_user_home() ) : ?> 
  17.  
  18. <?php if ( bbp_is_favorites() ) : ?> 
  19.  
  20. <span class="bbp-row-actions"> 
  21.  
  22. <?php do_action( 'bbp_theme_before_topic_favorites_action' ); ?> 
  23.  
  24. <?php bbp_topic_favorite_link( array( 'before' => '', 'favorite' => '+', 'favorited' => '×' ) ); ?> 
  25.  
  26. <?php do_action( 'bbp_theme_after_topic_favorites_action' ); ?> 
  27.  
  28. </span> 
  29.  
  30. <?php elseif ( bbp_is_subscriptions() ) : ?> 
  31.  
  32. <span class="bbp-row-actions"> 
  33.  
  34. <?php do_action( 'bbp_theme_before_topic_subscription_action' ); ?> 
  35.  
  36. <?php bbp_topic_subscription_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '×' ) ); ?> 
  37.  
  38. <?php do_action( 'bbp_theme_after_topic_subscription_action' ); ?> 
  39.  
  40. </span> 
  41.  
  42. <?php endif; ?> 
  43.  
  44. <?php endif; ?> 
  45.  
  46. <?php do_action( 'bbp_theme_before_topic_title' ); ?> 
  47.  
  48. <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>"><?php bbp_topic_title(); ?></a> 
  49.  
  50. <?php do_action( 'bbp_theme_after_topic_title' ); ?> 
  51.  
  52. <?php bbp_topic_pagination(); ?> 
  53.  
  54. <?php do_action( 'bbp_theme_before_topic_meta' ); ?> 
  55.  
  56. <p class="bbp-topic-meta"> 
  57.  
  58. <?php do_action( 'bbp_theme_before_topic_started_by' ); ?> 
  59.  
  60. <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span> 
  61.  
  62. <?php do_action( 'bbp_theme_after_topic_started_by' ); ?> 
  63.  
  64. <?php if ( !bbp_is_single_forum() || ( bbp_get_topic_forum_id() !== bbp_get_forum_id() ) ) : ?> 
  65.  
  66. <?php do_action( 'bbp_theme_before_topic_started_in' ); ?> 
  67.  
  68. <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> 
  69.  
  70. <?php do_action( 'bbp_theme_after_topic_started_in' ); ?> 
  71.  
  72. <?php endif; ?> 
  73.  
  74. </p> 
  75.  
  76. <?php do_action( 'bbp_theme_after_topic_meta' ); ?> 
  77.  
  78. <?php bbp_topic_row_actions(); ?> 
  79.  
  80. </li> 
  81.  
  82. <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count(); ?></li> 
  83.  
  84. <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?></li> 
  85.  
  86. <li class="bbp-topic-freshness"> 
  87.  
  88. <?php do_action( 'bbp_theme_before_topic_freshness_link' ); ?> 
  89.  
  90. <?php bbp_topic_freshness_link(); ?> 
  91.  
  92. <?php do_action( 'bbp_theme_after_topic_freshness_link' ); ?> 
  93.  
  94. <p class="bbp-topic-meta"> 
  95.  
  96. <?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?> 
  97.  
  98. <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span> 
  99.  
  100. <?php do_action( 'bbp_theme_after_topic_freshness_author' ); ?> 
  101.  
  102. </p> 
  103. </li> 
  104.  
  105. </ul><!-- #bbp-topic-<?php bbp_topic_id(); ?> --> 
.