Notes

Dòng 28-45 file single.php (Giao diện vietbao -> Bài viết)

<div class=”hrm-comment-facebook”>
<!– <div class=”hrm-title-comment”>
<span class=”span_point”>
<i class=”fa fa-comments pr_10 color_red”></i>
<?php _e(‘Ý kiến’,’hrm’);?>
<span class=”color_red”><?php _e(‘bình luận’,’hrm’);?></span>
</span>
</div> –>
<div id=”fb-root”></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/vi_VN/sdk.js#xfbml=1&version=v2.8&appId=<?php echo $app_id_fb;?>”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>
<div class=”fb-comments” data-href=”<?php echo get_the_permalink(); ?>” data-width=”100%” data-numposts=”10″></div>
</div>

Fullcode file comments.php (giao diện vietbao)

<?php
/*
 * If the current post is protected by a password and
 * the visitor has not yet entered the password we will
 * return early without loading the comments.
 */
if ( post_password_required() ) {
return;
}
?>
 
<div id=”comments” class=”comments-area”>
 
<?php
// You can start editing here — including this comment!
if ( have_comments() ) : ?>
<h2 class=”comments-title”>
<?php
$comment_count = get_comments_number();
if ( 1 === $comment_count ) {
printf(
/* translators: 1: title. */
esc_html_e( ‘One thought on &ldquo;%1$s&rdquo;’, ‘hrm’ ),
‘<span>’ . get_the_title() . ‘</span>’
);
} else {
printf( // WPCS: XSS OK.
/* translators: 1: comment count number, 2: title. */
esc_html( _nx( ‘%1$s thought on &ldquo;%2$s&rdquo;’, ‘%1$s thoughts on &ldquo;%2$s&rdquo;’, $comment_count, ‘comments title’, ‘hrm’ ) ),
number_format_i18n( $comment_count ),
‘<span>’ . get_the_title() . ‘</span>’
);
}
?>
</h2><!– .comments-title –>
 
<?php the_comments_navigation(); ?>
 
<ol class=”comment-list”>
<?php
wp_list_comments( array(
‘style’      => ‘ol’,
‘short_ping’ => true,
) );
?>
</ol><!– .comment-list –>
 
<?php the_comments_navigation();
 
// If comments are closed and there are comments, let’s leave a little note, shall we?
if ( ! comments_open() ) : ?>
<p class=”no-comments”><?php esc_html_e( ‘Comments are closed.’, ‘hrm’ ); ?></p>
<?php
endif;
 
endif; // Check for have_comments().
 
comment_form();
?>
 
</div><!– #comments –>
 
Facebook fanpge text
<div id=”fb-root”></div>
<script async defer crossorigin=”anonymous” src=”https://connect.facebook.net/vi_VN/sdk.js#xfbml=1&version=v9.0″ nonce=”v9tqPfu5″></script>
<div class=”fb-page” data-href=”https://www.facebook.com/fanpagebaohiembaoviet/” data-width=”300″ data-height=”250″ data-small-header=”false” data-adapt-container-width=”true” data-hide-cover=”false” data-show-facepile=”true”>
<blockquote class=”fb-xfbml-parse-ignore” cite=”https://www.facebook.com/fanpagebaohiembaoviet/”><a href=”https://www.facebook.com/fanpagebaohiembaoviet/”>Fanpage Bảo hiểm Bảo Việt – Tư vấn và bán hàng trực tuyến</a></blockquote>
</div>

ĐĂNG KÝ NHẬN TƯ VẤN

Với nhiều năm kinh nghiệm trong lĩnh vực tư vấn bảo hiểm. Tôi rất mong với vốn kiến thức của mình sẽ làm hài lòng quý khách! Vui lòng điền thông tin và gửi yêu cầu tư vấn, chúng tôi sẽ gọi lại trong vòng 5 phút







Liên hệ tư vấn