?> <li id="comment-<?php comment_ID(); ?> " <?php comment_class(empty($args['has_children']) ? '' : 'comment-parent'); ?> > <article id="div-comment-<?php comment_ID(); ?> " class="comment-body"> <header class="comment-header"> <?php $hmn_cp_plugin = HMN_Comment_Popularity::get_instance(); $hmn_cp_plugin->render_ui(get_comment_ID()); ?> <?php // Avatar if (0 != $args['avatar_size']) { echo get_avatar($comment, $args['avatar_size']); } ?> <div class="comment-date"> <a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?> "> <time datetime="<?php
<span class="screen-reader-text"><?php _e('Comment navigation', 'comment-popularity'); ?> </span> <?php paginate_comments_links(); ?> </nav> <?php } ?> <ol class="comment-list"> <?php $hmn_cp_obj = HMN_Comment_Popularity::get_instance(); global $comment; global $post; $args = array('post_id' => $post->ID, 'echo' => true, 'callback' => array($hmn_cp_obj, 'comment_callback'), 'style' => 'ol'); if ($hmn_cp_obj->are_comments_sorted_by_weight()) { $hmn_cp_obj->get_comments_sorted_by_weight(true, $args); } else { wp_list_comments($args); } ?> </ol> <?php if (get_comment_pages_count() > 1) { ?>