<?php 
        }
    }
    ks_comments_post_link(__('Write a comment', 'redportal'), '<hr color="' . $ks_settings['hr_color'] . '" />', '', ks_pict_number(1), '1');
} elseif (ks_is_comment_post()) {
    ?>
	<h2 align="center"><?php 
    _e('Comment', 'redportal');
    ?>
</h2>
	<hr color="<?php 
    echo $ks_settings['hr_color'];
    ?>
" />
	<?php 
    $need_password = ks_check_password(__('Enter your password to post a comment.', 'ktai_style'));
    if ($need_password && !is_user_logged_in()) {
        echo $need_password;
        return;
    }
    $login_url = ks_get_login_url(KTAI_NOT_ECHO, ks_comments_post_url());
    if (!comments_open()) {
        ?>
		<p><?php 
        _e('Sorry, the comment form is closed at this time.');
        ?>
</p>
	<?php 
    } elseif (get_option('comment_registration') && !is_user_logged_in()) {
        if ($login_url) {
            ?>
<?php

if (!ks_is_comments()) {
    return;
}
$need_password = ks_check_password(ks_is_comments_list() ? __('Enter your password to view comments.') : __('Enter your password to post a comment.', 'ktai_style'));
if ($need_password && !is_user_logged_in()) {
    echo $need_password;
    return;
}
function ks_comment_content()
{
    global $comment, $ks_settings;
    ?>
<img localsrc="<?php 
    comment_type(68, 112, 112);
    ?>
" alt="" /><?php 
    ks_comment_author_link();
    ?>
<img localsrc="d001" alt=" @ " /><font color="<?php 
    echo $ks_settings['date_color'];
    ?>
"><?php 
    ks_comment_datetime();
    ?>
</font>
	<?php 
    edit_comment_link('<font color="' . $ks_settings['edit_color'] . '">' . __('Edit') . '</font>', '<img localsrc="104" alt="" />');
    ?>
<br />
function ks_get_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '', $strip_length = 0)
{
    global $id, $post, $more, $single, $page, $pages, $numpages;
    global $pagenow;
    $output = '';
    $need_password = ks_check_password();
    if ($need_password) {
        return $need_password;
    }
    if ($more_file != '') {
        $file = $more_file;
    } else {
        $file = $pagenow;
    }
    //$_SERVER['PHP_SELF'];
    if ($page > count($pages)) {
        // if the requested page doesn't exist
        $page = count($pages);
    }
    // give them the highest numbered page that DOES exist
    $content = $pages[$page - 1];
    if (preg_match('/<!--more(.*?)?-->/', $content, $matches)) {
        $content = explode($matches[0], $content, 2);
        if (!empty($matches[1]) && !empty($more_link_text)) {
            $more_link_text = strip_tags(wp_kses_no_null(trim($matches[1])));
        }
    } else {
        $content = array($content);
    }
    if (false !== strpos($post->post_content, '<!--noteaser-->') && (!$multipage || $page == 1)) {
        $stripteaser = 1;
    }
    $teaser = $content[0];
    if ($more && $stripteaser) {
        $teaser = '';
    }
    $output .= $teaser;
    if (count($content) > 1) {
        if ($more) {
            if (ks_applied_appl_xhtml()) {
                $output .= '<span name="more-' . $id . '"></span>' . $content[1];
            } else {
                $output .= '<a name="more-' . $id . '"></a>' . $content[1];
            }
        } else {
            $output = balanceTags($output);
            if (!empty($more_link_text)) {
                $output .= apply_filters('the_content_more_link', sprintf(' <a href="%s#more-%d">%s</a>', get_permalink(), $id, $more_link_text), $more_link_text);
            }
        }
    } elseif ($strip_length && strlen($output) > $strip_length) {
        $output = ks_cut_html($output, $strip_length, 0, get_bloginfo('charset'));
        $output .= empty($more_link_text) ? apply_filters('excerpt_more', '[...]') : sprintf('<span><a href="%1$s#more-%2$d">%3$s</a></span>', get_permalink(), $id, $more_link_text);
        $output = force_balance_tags($output);
    }
    return $output;
}