64 lines
2.4 KiB
PHP
64 lines
2.4 KiB
PHP
<?php
|
|
/**
|
|
* یک پاسخ — کارت یکپارچه Hesabix2
|
|
*
|
|
* @package Hesabix2
|
|
* @subpackage bbPress
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
?>
|
|
|
|
<?php
|
|
$hesabix2_reply_origin = function_exists( 'hesabix2_bbpress_messenger_origin' )
|
|
? hesabix2_bbpress_messenger_origin( (int) bbp_get_reply_id() )
|
|
: ( in_array( get_post_meta( (int) bbp_get_reply_id(), '_hesabix_bale_sync_origin', true ), array( 'bale', 'telegram' ), true )
|
|
? get_post_meta( (int) bbp_get_reply_id(), '_hesabix_bale_sync_origin', true )
|
|
: false );
|
|
$hesabix2_reply_classes = '';
|
|
if ( $hesabix2_reply_origin ) {
|
|
$hesabix2_reply_classes = ' hesabix2-bbp-post--from-bale hesabix2-bbp-post--from-messenger hesabix2-bbp-post--from-' . sanitize_html_class( $hesabix2_reply_origin );
|
|
}
|
|
?>
|
|
<div class="hesabix2-bbp-post<?php echo esc_attr( $hesabix2_reply_classes ); ?>" id="hesabix2-bbp-post-<?php bbp_reply_id(); ?>">
|
|
|
|
<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
|
|
<div class="bbp-meta">
|
|
<span class="bbp-reply-post-date"><?php bbp_reply_post_date(); ?></span>
|
|
|
|
<?php if ( bbp_is_single_user_replies() ) : ?>
|
|
<span class="bbp-header">
|
|
<?php esc_html_e( 'در پاسخ به:', 'hesabix2' ); ?>
|
|
<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; ?>
|
|
|
|
<a href="<?php bbp_reply_url(); ?>" class="bbp-reply-permalink">#<?php bbp_reply_id(); ?></a>
|
|
|
|
<?php do_action( 'bbp_theme_before_reply_admin_links' ); ?>
|
|
<?php bbp_reply_admin_links(); ?>
|
|
<?php do_action( 'bbp_theme_after_reply_admin_links' ); ?>
|
|
</div>
|
|
</div>
|
|
|
|
<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( 'show_role' => true ) ); ?>
|
|
<?php if ( current_user_can( 'moderate', bbp_get_reply_id() ) ) : ?>
|
|
<?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>
|
|
|
|
<div class="bbp-reply-content">
|
|
<?php do_action( 'bbp_theme_before_reply_content' ); ?>
|
|
<?php bbp_reply_content(); ?>
|
|
<?php do_action( 'bbp_theme_after_reply_content' ); ?>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|