?> </dt><?php if ($depth < 1) { global $ks_settings; ?> <hr color="<?php echo $ks_settings['hr_color']; ?> " /><?php } } global $ks_settings, $wp_query, $comment; if (ks_is_comments_list()) { $walker = new KS_Walker_Comment(); if (ks_option('ks_separate_comments') && !get_option('page_comments')) { $sep_comments = ks_separete_comments($comments); $label = array('comment' => __('Comments'), 'pings' => __('Pings', 'ktai_style')); } else { $sep_comments[] = $comments; $label = array(); } foreach ($sep_comments as $type => $_comments) { if (isset($label[$type])) { echo '<div style="color:black;background-color:lime;font-size:smaller;"><h3>' . $label[$type] . '</h3></div>'; } if (count($_comments)) { ?> <dl> <?php wp_list_comments(array('walker' => $walker, 'callback' => 'ks_list_comments', 'end-callback' => 'ks_end_comments', 'avatar_size' => 0), $_comments); if (get_option('page_comments') && $wp_query->max_num_comment_pages >= 2) {
$asc_format = '<a href="' . esc_url(add_query_arg('co_order', 'asc')) . '">' . __('From Older', 'redportal') . '</a>'; $prev_navi = __('<img localsrc="7" alt="« ">Newer Comments', 'ktai_style'); $next_navi = __('Older Comments<img localsrc="8" alt=" »">', 'ktai_style'); } ?> <div align="center"><?php echo $desc_format; ?> | <?php echo $asc_format; ?> </div> <?php ks_comments_post_link(__('Write a comment', 'redportal'), '', '', ks_pict_number(1), '1'); if (ks_option('ks_separate_comments') && !get_option('page_comments')) { $sep_comments = ks_separete_comments($comments, $co_order); $label = array('comment' => __('Comments'), 'pings' => __('Pings', 'ktai_style')); } else { if ($co_order == 'desc') { $sep_comments[] = array_reverse($comments); } else { $sep_comments[] = $comments; } $label = array(); } foreach ($sep_comments as $type => $_comments) { if (isset($label[$type])) { echo '<h3>' . $label[$type] . '</h3>'; } if (count($_comments)) { ?>