Guest User

Untitled

a guest
Apr 11th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. <?php
  2. //single topic
  3.  
  4. /**
  5. * Single Topic Content Part
  6. *
  7. * @package bbPress
  8. * @subpackage Theme
  9. */
  10.  
  11. ?>
  12.  
  13. <div id=”bbpress-forums”>
  14.  
  15. <?php do_action( ‘bbp_template_before_single_topic’ ); ?>
  16.  
  17. <?php if ( post_password_required() ) : ?>
  18.  
  19. <?php bbp_get_template_part( ‘form’, ‘protected’ ); ?>
  20.  
  21. <?php else : ?>
  22.  
  23. <?php //bbp_topic_tag_list(); ?>
  24.  
  25. <?php //bbp_single_topic_description(); ?>
  26.  
  27. <?php if ( bbp_show_lead_topic() ) : ?>
  28.  
  29. <?php //bbp_get_template_part( ‘content’, ‘single-topic-lead’ ); ?>
  30.  
  31. <?php endif; ?>
  32.  
  33. <?php if ( bbp_has_replies() ) : ?>
  34.  
  35. <?php //bbp_get_template_part( ‘pagination’, ‘replies’ ); ?>
  36.  
  37. <?php do_action( ‘bbp_template_before_replies_loop’ ); ?>
  38.  
  39. <?php
  40.  
  41. ?>
  42.  
  43. <ul class=”td-reply-list-header”>
  44. <li class=”td-posted-in”>Posted in: “><?php bbp_forum_title(bbp_get_forum_id());?>
  45.  
  46. <li class=”td-favorite-subscribe”>
  47. <?php bbp_user_favorites_link(); ?>
  48. <?php bbp_user_subscribe_link(); ?>
  49.  
  50. <?php while ( bbp_replies() ) : bbp_the_reply(); ?>
  51.  
  52. <div class=”td-reply”>
  53. <div class=”td-reply-author-thumb”>
  54. <?php bbp_reply_author_link( array(‘show_role’ => true, ‘type’ => ‘avatar’, ‘size’ => 50 ) ); ?>
  55. </div>
  56. <div class=”td-reply-desc”>
  57. <div class=”td-reply-header”>
  58. <!– author –>
  59. <div class=”td-reply-author”>
  60. “><?php bbp_reply_author_display_name() ?>
  61. </div>
  62.  
  63. <!– permalinks and post controls –>
  64. <div class=”td-reply-controls”>
  65. ” class=”bbp-reply-permalink”>#<?php bbp_reply_id(); ?>
  66. <?php do_action( ‘bbp_theme_before_reply_admin_links’ ); ?>
  67. <?php bbp_reply_admin_links(); ?>
  68. <?php do_action( ‘bbp_theme_after_reply_admin_links’ ); ?>
  69. </div>
  70.  
  71. </div>
  72.  
  73. <!– comments –>
  74. <div class=”td-reply-content”>
  75. <span class=”bbp-topic-post-date”><?php bbp_reply_post_date(); ?></span>
  76. <?php bbp_reply_content(); ?>
  77. </div>
  78.  
  79. <?php if ( bbp_is_user_keymaster() ) : ?>
  80. <?php do_action( ‘bbp_theme_before_reply_author_admin_details’ ); ?>
  81. <div class=”bbp-reply-ip”><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>
  82. <?php do_action( ‘bbp_theme_after_reply_author_admin_details’ ); ?>
  83. <?php endif; ?>
  84. </div>
  85. </div>
  86.  
  87. <?php endwhile; ?>
  88.  
  89. <?php do_action( ‘bbp_template_after_replies_loop’ ); ?>
  90. <?php bbp_get_template_part( ‘pagination’, ‘replies’ ); ?>
  91.  
  92. <?php endif; ?>
  93.  
  94. <?php bbp_get_template_part( ‘form’, ‘reply’ ); ?>
  95.  
  96. <?php endif; ?>
  97.  
  98. <?php do_action( ‘bbp_template_after_single_topic’ ); ?>
  99.  
  100. </div>
Advertisement
Add Comment
Please, Sign In to add comment