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 /> <?php if ($comment->comment_approved == '0') { ?> <em><font color="red"><?php _e('Your comment is awaiting moderation.', 'ktai_style'); ?> </font></em><br /> <?php } comment_text(); }
function ks_comment_content() { global $comment; ks_comment_author_link(); ?> @ <?php ks_comment_datetime(); ?> <br /> <?php if ($comment->comment_approved == '0') { ?> <em><font color="red"><?php _e('Your comment is awaiting moderation.', 'ktai_style'); ?> </font></em><br /> <?php } comment_text(); edit_comment_link('<font color="' . $args['edit_color'] . '">' . __('Edit') . '</font>', '[ ', ' ]'); }
public function start_el(&$output, $comment, $depth, $args) { $depth++; $GLOBALS['comment_depth'] = $depth; if (!empty($args['callback'])) { call_user_func($args['callback'], $comment, $args, $depth); return; } $GLOBALS['comment'] = $comment; extract($args, EXTR_SKIP); switch ($args['style']) { case 'div': $tag = 'div'; break; case 'ol': case 'ul': $tag = 'li'; break; case 'dl': default: $tag = 'dt'; break; } ?> <<?php echo $tag; ?> ><a name="comment-<?php comment_ID(); ?> "><?php if (!ks_option('ks_separate_comments')) { ?> <font size="-1" color="<?php echo ks_option('ks_comment_type_color'); ?> ">[<?php comment_type(__('Comment', 'ktai_style'), __('Trackback'), __('Pingback')); ?> ]</font><?php } ?> </a> <img localsrc="<?php comment_type(68, 112, 112); ?> " alt="" /><?php ks_comment_author_link(); ?> <img localsrc="46" alt=" @ " /><font color="<?php echo ks_option('ks_date_color'); ?> "><?php ks_comment_datetime(); ?> </font> <?php /* ks_edit_comment_link('color=' . ks_option('ks_edit_color')); */ edit_comment_link('<font color="' . ks_option('ks_edit_color') . '">' . __('Edit') . '</font>', '<img localsrc="104" alt="" />'); ?> <br /> <?php if ($comment->comment_approved == '0') { ?> <em><font color="red"><?php _e('Your comment is awaiting moderation.'); ?> </font></em><br /> <?php } comment_text(); comment_reply_link(array_merge(array('before' => '<div>', 'after' => '</div>', 'reply_before' => '', 'reply_text' => '<img localsrc="149" alt="" />' . __('Reply'), 'login_text' => '<img localsrc="120" alt="" />' . __('Log in to Reply')), $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); }
private function show_form($errors = array()) { global $user_ID, $title, $comment, $id; $comment = intval($_GET['replytocom']); if (!($comment = get_comment($comment))) { $this->base->ks_die(__('Oops, no comment with this ID.')); } $title = __('Comment Reply', 'ktai_style'); include dirname(__FILE__) . '/admin-header.php'; $id = $comment->comment_post_ID; echo '<h2>' . sprintf(__('Comments for %s', 'ktai_style'), get_the_title($id)) . '</h2>'; ?> <img localsrc="<?php comment_type(68, 112, 112); ?> " alt="" /><?php ks_comment_author_link(); ?> <img localsrc="46" alt=" @ " /><font color="<?php echo ks_option('ks_date_color'); ?> "><?php ks_comment_datetime(); ?> </font><br /> <?php comment_text(); ?> <hr /> <h3><?php _e('Reply to the above comment', 'ktai_style'); ?> </h3> <?php if ($errors) { ?> <p><font color="red"><?php echo implode('<br />', array_map('wp_specialchars', $errors)); ?> </font></p> <?php } ?> <form action="" method="post"> <input type="hidden" name="action" value="post" /> <input type="hidden" name="redirect_to" value="<?php echo esc_attr($this->admin->get_referer()); ?> " /> <?php $this->admin->sid_field(); ks_fix_encoding_form(); ?> <p><?php _e('Comment', 'ktai_style'); if (ks_option('ks_allow_pictograms')) { _e('(Pictograms Available)', 'ktai_style'); } ?> <br /> <textarea name="content" cols="100%" rows="4"></textarea><br /> <a href="<?php echo esc_attr($this->admin->get_referer()); ?> "><?php _e('Cancel reply', 'ktai_style'); ?> </a><br /> <input type="submit" name="submit" value="<?php _e('Say It!'); ?> " /> <?php if (function_exists('comment_id_fields')) { comment_id_fields($id); } else { ?> <input type="hidden" name="comment_post_ID" value="<?php echo intval($id); ?> " /> <?php } ks_do_comment_form_action(); ?> </p></form> <?php include dirname(__FILE__) . '/admin-footer.php'; }