Bob1nz

loop-single-forum.php

Mar 4th, 2014
474
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /**
  4.  * Forums Loop - Single Forum
  5.  *
  6.  * @package bbPress
  7.  * @subpackage Theme
  8.  */
  9.  
  10. ?>
  11.  
  12. <ul id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class(); ?>>
  13.  
  14.     <li class="bbp-forum-info">
  15.  
  16.         <?php if ( bbp_is_user_home() && bbp_is_subscriptions() ) : ?>
  17.  
  18.             <span class="bbp-row-actions">
  19.  
  20.                 <?php do_action( 'bbp_theme_before_forum_subscription_action' ); ?>
  21.  
  22.                 <?php bbp_forum_subscription_link( array( 'before' => '', 'subscribe' => '+', 'unsubscribe' => '&times;' ) ); ?>
  23.  
  24.                 <?php do_action( 'bbp_theme_after_forum_subscription_action' ); ?>
  25.  
  26.             </span>
  27.  
  28.         <?php endif; ?>
  29.  
  30.         <?php do_action( 'bbp_theme_before_forum_title' ); ?>
  31.  
  32.         <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a>
  33.  
  34.         <?php do_action( 'bbp_theme_after_forum_title' ); ?>
  35.  
  36.         <?php do_action( 'bbp_theme_before_forum_description' ); ?>
  37.  
  38.         <div class="bbp-forum-content"><?php bbp_forum_content(); ?></div>
  39.  
  40.         <?php do_action( 'bbp_theme_after_forum_description' ); ?>
  41.  
  42.         <?php do_action( 'bbp_theme_before_forum_sub_forums' ); ?>
  43.  
  44.         <?php bbp_list_forums(); ?>
  45.  
  46.         <?php do_action( 'bbp_theme_after_forum_sub_forums' ); ?>
  47.  
  48.         <?php bbp_forum_row_actions(); ?>
  49.  
  50.     </li>
  51.  
  52.     <li class="bbp-forum-topic-count"><?php bbp_forum_topic_count(); ?></li>
  53.  
  54.     <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?></li>
  55.  
  56.     <li class="bbp-forum-freshness">
  57.        
  58.         <div class="bbp-forum-last-topic-name"><a href="<?php bbp_forum_last_topic_permalink(); ?>" title="<?php bbp_forum_last_topic_title(); ?>"><?php bbp_forum_last_topic_title(); ?></a></div>
  59.        
  60.         <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
  61.  
  62.         <?php bbp_forum_freshness_link(); ?> by<?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 32 ) ); ?>
  63.  
  64.         <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>
  65.  
  66.        
  67.        
  68.     </li>
  69.  
  70. </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> -->
RAW Paste Data