Ejemplo n.º 1
0
    $count_like = get_comment_meta($comment_id, '_comment_like_count', true);
    if (intval($count_like) <= 0) {
        $count_like = 0;
    }
    ?>
                    <b class="text-color"> <span class="number"><?php 
    echo $count_like;
    ?>
</span> <?php 
    echo __('like this', ST_TEXTDOMAIN);
    ?>
</b>
                    
                    <?php 
    $review_obj = new STReview();
    if ($review_obj->check_like($comment_id)) {
        ?>
                            <a data-id="<?php 
        echo esc_attr($comment_id);
        ?>
" class="st-like-review fa fa-thumbs-o-down box-icon-inline round" href="#"></a>

                        <?php 
    } else {
        ?>

                            <a data-id="<?php 
        echo esc_attr($comment_id);
        ?>
" class="st-like-review fa fa-thumbs-o-up box-icon-inline round" href="#"></a></b>
                        <?php 
Ejemplo n.º 2
0
            <span class="comment-time">

                <?php 
    echo human_time_diff(get_comment_time('U'), current_time('timestamp')) . st_get_language('_ago');
    ?>
             </span>
            <span class="comment-reply"><i class="fa fa-reply"></i>
                <?php 
    comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
            </span>
           <!-- <a class="comment-like" href="#"><i class="fa fa-heart"></i> 23</a>-->
            <p class="comment-like">
                <?php 
    $review_obj = new STReview();
    if ($review_obj->check_like(get_comment_ID())) {
        ?>
                    <a class="comment-like st-like-comment fa fa-heart" data-id="<?php 
        comment_ID();
        ?>
" href="#"><i class=""></i> <?php 
        echo get_comment_meta(get_comment_ID(), '_comment_like_count', true);
        ?>
</a>
                    <!-- <a data-id="<?php 
        /*comment_ID(); */
        ?>
" class="st-like-review fa fa-thumbs-o-down box-icon-inline round" href="#"></a><b class="text-color"> <?php 
        /*echo get_comment_meta($comment_id,'_comment_like_count',true) */
        ?>
</b>