function print_post($para_print_post, $cate_slug) { $approveCom = wp_count_comments($para_print_post['id']); $output .= '<article class="newsCenter" id="post-' . $para_print_post['id'] . '" style="border-top: 2px solid ' . get_color($cate_slug) . ';">'; $output .= '<div class="autNewsCt row">'; $output .= '<div class="top-box-article"> '; $output .= '<span class="ctnAutCt col-md-10 col-sm-10 col-xs-9 col-lg-5">'; $output .= '<h4>'; $output .= '<a href="' . $para_print_post['link'] . '">' . $para_print_post['title'] . '</a>'; $output .= '</h4>'; $output .= '</span>'; $output .= '<a class="date-post" href="' . $para_print_post['link'] . '">' . $para_print_post['date'] . '</a>'; $output .= '<div class="icon-list-btn col-lg-4">'; $output .= '<ul>'; $output .= '<li>'; $output .= '<span title="Cảm ơn"><i class="fa fa-heart"></i></span>'; $output .= '<br/>'; $output .= '<span class="value-btn">' . getPostLoves($para_print_post['id']) . '</span>'; $output .= '</li>'; $output .= '<li>'; $output .= '<a title="Chia sẻ" class="btn-shareface" data-gtmname="chia-se" rel="nofollow" target="_blank" href="http://www.facebook.com/sharer.php?u=' . $para_print_post['link'] . '">'; $output .= '<span><i class="fa fa-share-alt"></i></span>'; $output .= '<br/>'; $output .= '<span class="value-btn">' . get_post_shares($para_print_post['id']) . '</span>'; $output .= '</a>'; $output .= '</li>'; $output .= '<li>'; $output .= '<span title="Lượt xem" ><i class="fa fa-eye"></i></i></span>'; $output .= '<br/>'; $output .= '<span class="value-btn">' . getPostViews($para_print_post['id']) . '</span>'; $output .= '</li>'; $output .= '</ul>'; $output .= '</div>'; $output .= '</div>'; $output .= '<div class="bottom-box-article">'; $output .= '<a class="link-post-content" href="' . $para_print_post['link'] . '">'; $output .= '<p>' . $para_print_post['except'] . '</p>'; $output .= '</a>'; $output .= '<div class="imgArtCt">'; $output .= '<em>'; $output .= '<a href="' . $para_print_post['link'] . '"><img src="' . $para_print_post['image_link'] . '" alt="' . $para_print_post['title'] . '"></a>'; $output .= '</em>'; $output .= '</div>'; $output .= '</div>'; $output .= '</div>'; $output .= '</article>'; echo $output; }
the_content(); ?> </div> </div> </article> <?php setPostViews(get_the_ID()); ?> <div class="like-share-con"> <p class="like_button"> <span class="btn-qt"> <a href="javascript:;" title="quan tâm" class="tto_object_like_btn">quan tâm</a> <span class="sl"><span></span><?php echo getPostLoves(get_the_ID()); ?> </span> </span> </p> <div class="like_share" style="width: 100%;float: left; margin-bottom: 55px; border: 1px solid #ddd;padding: 5px;"> <div class="like" style="float:left; width:80px;"> <div class="fb-like" data-href="<?php echo esc_url(get_the_permalink()); ?> " data-layout="box_count" data-action="like" data-show-faces="true" data-share="false"></div> </div> <div class="share" style="text-align:right; width:100%;"> <img src="<?php echo esc_url(get_template_directory_uri()); ?>