<?php 
        }
        ks_do_comment_form_action();
        ?>
		</p></form>
		<?php 
        if (ks_is_required_term_id()) {
            ?>
			<div><?php 
            _e('NOTE: If submit comments, your terminal ID will be sent.', 'ktai_style');
            ?>
</div>
		<?php 
        }
        if (!is_user_logged_in() && ks_cookie_available()) {
            ?>
			<div><?php 
            _e('NOTE: Your name, e-mail and URL will be stored o your phone. (If cookie is ON)', 'ktai_style');
            ?>
</div>
		<?php 
        }
    }
    // comments_open, comment_registration
}
// ks_is_comments_list, ks_is_comments_post
?>
<div><?php 
ks_back_to_post();
?>
</div>
        ?>
		<hr />
		<div><?php 
        ks_previous_post_link(__('*.Prev:%link', 'ktai_style'));
        ks_next_post_link('<br />' . __('#.Next:%link', 'ktai_style'));
        ?>
</div>
	<?php 
    } else {
        // ks_is_comment()
        $title = '<font color="' . $ks_settings['title_color'] . '">' . get_the_title() . '</font>';
        if (!$post->post_password) {
            echo '[<a href="' . apply_filters('the_permalink', get_permalink()) . '">' . $title . '</a>]<br />';
        } else {
            echo '[' . $title . ']<br />';
            ks_back_to_post('');
        }
        comments_template();
    }
} else {
    ?>
	<h2><?php 
    _e('Not Found', 'ktai_style');
    ?>
</h2>
	<p><?php 
    _e('Sorry, no posts matched your criteria.');
    ?>
</p>
<?php 
}