File "loop-single-reply.php"

Full Path: /var/www/bvnghean.vn/save_bvnghean.vn/wp-content/themes/publisher/bbpress/loop-single-reply.php
File size: 2.13 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * Replies Loop - Single Reply
 *
 * @package    bbPress
 * @subpackage Publisher
 */

?>
<div <?php bbp_reply_class(); ?>>

	<div class="bbp-reply-author">

		<?php do_action( 'bbp_theme_before_reply_author_details' ); ?>

		<?php bbp_reply_author_link( array( 'type' => 'avatar', 'sep' => '<br />', 'show_role' => TRUE ) ); ?>

		<?php if ( bbp_is_user_keymaster() ) : ?>

			<?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>

			<div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>

			<?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?>

		<?php endif; ?>

		<?php do_action( 'bbp_theme_after_reply_author_details' ); ?>

	</div><!-- .bbp-reply-author -->

	<div class="bbp-reply-content">

		<div class="reply-meta">
			<span class="bbp-reply-post-author"><?php bbp_reply_author_link( array( 'type' => 'name' ) ); ?></span>
			<span
				class="bbp-reply-post-date"><?php publisher_translation_echo( 'bbp_on' ); ?><?php bbp_reply_post_date(); ?></span>
			<a href="<?php bbp_reply_url(); ?>" class="bbp-reply-permalink">#<?php bbp_reply_id(); ?></a>
		</div>

		<?php do_action( 'bbp_theme_before_reply_content' ); ?>

		<?php bbp_reply_content(); ?>

		<?php do_action( 'bbp_theme_after_reply_content' ); ?>

	</div><!-- .bbp-reply-content -->

</div><!-- .reply -->
<?php

$class = '';
if ( bbpress()->reply_query->current_post + 1 == bbpress()->reply_query->post_count && bbpress()->reply_query->post_count > 0 ) {
	$class = 'last-reply';
}

?>
<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header <?php echo esc_attr( $class ); ?>">

	<div class="bbp-meta">

		<?php if ( bbp_is_single_user_replies() ) : ?>

			<span class="bbp-header">
				<?php publisher_translation_echo( 'bbp_in_reply_to' ); ?>
				<a class="bbp-topic-permalink"
				   href="<?php bbp_topic_permalink( bbp_get_reply_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a>
			</span>

		<?php endif; ?>

		<?php do_action( 'bbp_theme_before_reply_admin_links' ); ?>

		<?php bbp_reply_admin_links(); ?>

		<?php do_action( 'bbp_theme_after_reply_admin_links' ); ?>

	</div><!-- .bbp-meta -->

</div>