コード例 #1
0
		<?php 
        ks_content(__('(more...)'));
        ks_link_pages();
        ?>
		<div><img localsrc="354" alt="" /><font size="-1"><?php 
        echo __('Categories') . ':';
        ks_category();
        ?>
</font><br /><?php 
        ks_tags('<img localsrc="77" alt="" /><font size="-1">' . __('Tags') . ':', '</font><br />');
        if (ks_option('ks_separate_comments')) {
            ks_comments_link(NULL, __('No Comments/Pings', 'ktai_style'), __('One Comment/Ping', 'ktai_style'), __('% Comments and Pings', 'ktai_style'));
        } else {
            ks_comments_link();
        }
        ks_comments_post_link(NULL, '<br />');
        edit_post_link('<font color="' . $ks_settings['edit_color'] . '">' . __('Edit post') . '</font>', '<div><img localsrc="104" alt="" />', '</div>');
        ?>
</div>
		<hr color="<?php 
        echo $ks_settings['hr_color'];
        ?>
" />
		<?php 
        ks_previous_post_link('<div align="left"><img localsrc="7" alt="&laquo; ">*.%link</div>');
        ks_next_post_link('<div align="right">#.%link<img localsrc="8" alt=" &raquo;"></div>');
    } else {
        // ks_is_comment()
        echo '<div ' . $ks_settings['h2_style'] . '><h2>' . sprintf(__('Comments for <a href="%1$s"><span style="%2$s">%3$s</span></a>', 'ktai_style'), get_permalink(), $ks_settings['h2_a_color'], get_the_title()) . '</h2></div>';
        comments_template();
    }
コード例 #2
0
</p></div><?php 
            }
            ?>
			</dl>
		<?php 
        } else {
            // If there are no comments yet
            ?>
			<p><?php 
            echo $type != 'pings' ? __('No comments yet.') : __('No pings yet.', 'ktai_style');
            ?>
</p>
		<?php 
        }
    }
    ks_comments_post_link(NULL, '<div>', '</div>');
} elseif (ks_is_comment_post()) {
    $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) {
            ?>
			<p><?php 
            printf(__('You must be <a href="%s">logged in</a> to post a comment.'), esc_url($login_url));
            ?>
コード例 #3
0
</p></div><?php 
            }
            ?>
			</ol>
		<?php 
        } else {
            // If there are no comments yet
            ?>
			<p><?php 
            echo $type != 'pings' ? __('No comments yet.') : __('No pings yet.', 'ktai_style');
            ?>
</p>
		<?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;
コード例 #4
0
        ?>
[<?php 
        comment_type(_x('Comment', 'noun'), __('Trackback'), __('Pingback'));
        ?>
]<?php 
    }
    ?>
</a> <?php 
    ks_comment_content();
    comment_reply_link(array_merge(array('before' => '[ ', 'after' => ' ]', 'reply_before' => '', 'reply_text' => __('Reply'), 'login_text' => __('Log in to Reply')), $args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
</li><?php 
}
global $wp_query, $comment;
if (ks_is_comments_list()) {
    ks_comments_post_link(NULL, '', '<hr />', '');
    $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 '<h3>' . $label[$type] . '</h3>';
        }
        if (count($_comments)) {
            ?>
			<ul>
コード例 #5
0
</div>
		<hr color="<?php 
        echo $ks_settings['hr_color'];
        ?>
" />
		<?php 
        ks_content(__('(more...)'));
        ks_link_pages();
        ?>
		<hr color="<?php 
        echo $ks_settings['hr_color'];
        ?>
" />
		<?php 
        ks_comments_link(ks_pict_number(1), __('View Comments(0)', 'redportal'), __('View Comment(1)', 'redportal'), sprintf(__('View Comments(%d)', 'redportal'), get_comments_number($id)), '' . __('<img localsrc="61" alt="X " />Comments Stopped', 'redportal'), NULL, '1');
        ks_comments_post_link(__('Write a comment', 'redportal'), '<br />', '', ks_pict_number(2), '2');
        edit_post_link(__('Edit post'), '<br /><img localsrc="104" alt="" />');
        ?>
<hr color="<?php 
        echo $ks_settings['hr_color'];
        ?>
" /><?php 
        ks_previous_post_link('<div align="left"><img localsrc="7" alt="&laquo;">*.%link</div>');
        ks_next_post_link('<div align="right">#.%link<img localsrc="8" alt="&raquo;"></div>');
        ks_tags('<hr color="' . $ks_settings['hr_color'] . '" />' . __('<img localsrc="77" alt="" />Related Words', 'redportal') . '<br />');
    } else {
        // ks_is_comment()
        comments_template();
    }
} else {
    ?>