}
function ks_end_comments($comment, $args, $depth)
{
    ?>
</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>
function ks_check_password($message = '')
{
    if (empty($message)) {
        $message = __("This post is password protected. To view it please enter your password below:");
    }
    if (!ks_post_password_required()) {
        return NULL;
    } else {
        $form = '<form method="post" action="' . htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES) . '"><p>' . $message . '</p><p><input name="post_password" type="password" size="20" />';
        if (ks_is_comments_list()) {
            $form .= '<input type="hidden" name="view" value="co_list" />';
        } elseif (ks_is_comment_post()) {
            $form .= '<input type="hidden" name="view" value="co_post" />';
        }
        $url = parse_url($_SERVER['REQUEST_URI']);
        $query = $url['query'];
        if (empty($query) && isset($_POST['urlquery'])) {
            $query = $_POST['urlquery'];
        }
        if ($query) {
            $form .= '<input type="hidden" name="urlquery" value="' . htmlspecialchars($query, ENT_QUOTES) . '" />';
        }
        $form .= '<input type="submit" name="Submit" value="' . __("Submit") . '" /></p></form>';
        return $form;
    }
}