function column_author_info($item) { //Build row actions $default = ''; $photo = ct_get_avatar(array('id' => $item['user_id'], 'email' => $item['reviewer_email'], 'size' => 32)); $str = ''; $str = $photo; $str .= '<span class="author-detail">' . $item['reviewer_name'] . '<br />'; $str .= '<a href="' . esc_url('mailto:' . sanitize_email($item['reviewer_email'])) . '">' . esc_html($item['reviewer_email']) . '</a><br />'; $str .= '<a href="' . esc_url('admin.php?page=reviews&reviewer_ip=' . $item['reviewer_ip']) . '">' . esc_html($item['reviewer_ip']) . '</a></span>'; return $str; }
function ct_get_review_html($post_id, $start_num = 0, $per_page = 10) { $reviews = ct_get_reviews($post_id, $start_num, $per_page); if (!empty($reviews)) { foreach ($reviews as $review) { $default = ""; $photo = ct_get_avatar(array('id' => $review['user_id'], 'email' => $review['reviewer_email'], 'size' => 76, 'class' => 'img-circle')); ?> <div class="review_strip_single guest-review"> <?php echo ct_get_avatar(array('id' => $review['user_id'], 'email' => $review['reviewer_email'], 'size' => 76, 'class' => 'img-circle')); ?> <small> - <?php echo date("M, d, Y", ct_strtotime($review['date'])); ?> -</small> <h4><?php echo esc_html($review['reviewer_name']); ?> </h4> <p><?php echo esc_html(stripslashes($review['review_text'])); ?> </p> <div class="rating"><?php ct_rating_smiles($review['review_rating']); ?> </div> </div><!-- End review strip --> <?php } } return count($reviews); }
function ct_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?> "> <div class="comment-content"> <div class="avatar"><a href="#"><?php echo ct_get_avatar(array('id' => $comment->user_id, 'email' => $comment->comment_author_email, 'size' => 68)); ?> </a></div> <div class="comment_right clearfix"> <div class="comment_info"> <?php echo esc_html__('Posted by', 'citytours'); ?> <?php echo get_comment_author_link(); ?> <span>|</span> <?php comment_date(); ?> <span>|</span><?php comment_reply_link(array_merge($args, array('depth' => $depth))); ?> </div> <?php comment_text(); ?> </div> </div> <?php }