Advertisement
Bob1nz

loop-single-topic.php

Mar 4th, 2014
1,144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.95 KB | None | 0 0
  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.         <div class="bbp-topic-title-content">
  17.        
  18.             <?php if ( bbp_is_user_home() ) : ?>
  19.    
  20.                 <?php if ( bbp_is_favorites() ) : ?>
  21.    
  22.                     <span class="bbp-topic-action">
  23.    
  24.                         <?php do_action( 'bbp_theme_before_topic_favorites_action' ); ?>
  25.    
  26.                         <?php bbp_user_favorites_link( array( 'before' => '', 'favorite' => '+', 'favorited' => '&times;' ) ); ?>
  27.    
  28.                         <?php do_action( 'bbp_theme_after_topic_favorites_action' ); ?>
  29.    
  30.                     </span>
  31.    
  32.                 <?php elseif ( bbp_is_subscriptions() ) : ?>
  33.    
  34.                     <span class="bbp-topic-action">
  35.    
  36.                         <?php do_action( 'bbp_theme_before_topic_subscription_action' ); ?>
  37.    
  38.                         <?php bbp_user_subscribe_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '&times;' ) ); ?>
  39.    
  40.                         <?php do_action( 'bbp_theme_after_topic_subscription_action' ); ?>
  41.    
  42.                     </span>
  43.    
  44.                 <?php endif; ?>
  45.    
  46.             <?php endif; ?>
  47.    
  48.             <?php do_action( 'bbp_theme_before_topic_title' ); ?>
  49.    
  50.             <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>" title="<?php bbp_topic_title(); ?>"><?php bbp_topic_title(); ?></a>
  51.    
  52.             <?php do_action( 'bbp_theme_after_topic_title' ); ?>
  53.    
  54.             <?php bbp_topic_pagination(); ?>
  55.    
  56.             <?php do_action( 'bbp_theme_before_topic_meta' ); ?>
  57.    
  58.             <p class="bbp-topic-meta">
  59.    
  60.                 <!--
  61.                 <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
  62.    
  63.                 <div class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'buddyboss' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></div>
  64.    
  65.                 <?php do_action( 'bbp_theme_after_topic_started_by' ); ?>
  66.                 -->
  67.    
  68.                 <?php if ( !bbp_is_single_forum() || ( bbp_get_topic_forum_id() != bbp_get_forum_id() ) ) : ?>
  69.    
  70.                     <?php do_action( 'bbp_theme_before_topic_started_in' ); ?>
  71.    
  72.                     <div class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'buddyboss' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></div>
  73.    
  74.                     <?php do_action( 'bbp_theme_after_topic_started_in' ); ?>
  75.    
  76.                 <?php endif; ?>
  77.    
  78.             </p>
  79.    
  80.             <?php do_action( 'bbp_theme_after_topic_meta' ); ?>
  81.    
  82.             <?php bbp_topic_row_actions(); ?>
  83.            
  84.         </div>
  85.  
  86.     </li>
  87.  
  88.     <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count(); ?></li>
  89.  
  90.     <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?></li>
  91.  
  92.     <li class="bbp-forum-freshness">
  93.        
  94.         <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
  95.  
  96.         <?php bbp_topic_freshness_link(); ?> by<?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 32 ) ); ?>
  97.  
  98.         <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>
  99.  
  100.        
  101.        
  102.     </li>
  103.  
  104. </ul><!-- #bbp-topic-<?php bbp_topic_id(); ?> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement