Exemple #1
0
 *
 * Created by ShineTheme
 *
 */
/*
 * 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;
}
$potype = get_post_type(get_the_ID());
$item_id = get_the_ID();
$obj = get_post_type_object($potype);
$name = $obj->labels->singular_name;
$is_review_need_booked = STReview::is_review_need_booked();
?>
<div id="comments" class="comments-area">


    <?php 
if ((int) get_comments_number()) {
    ?>

        <ul class="booking-item-reviews list">
            <?php 
    wp_list_comments(array('style' => 'ul', 'short_ping' => true, 'avatar_size' => 74, 'callback' => array('TravelHelper', 'reviewlist')));
    ?>
        </ul>
        <!-- .comment-list -->
        <div class="gap gap-small"></div>