comment_type != 'trackback' and $var->comment_type != 'pingback'); } /** * Strips out comments * * @since 1.0 * * @param object $var current comment * * @return boolean true if trackback/pingback */ function k2_strip_comment($var) { return ($var->comment_type == 'trackback' or $var->comment_type == 'pingback'); } /** * Displays current comment * * @since 1.0 * * @param object $comment Comment data object. * @param array $args * @param int $depth Depth of comment in reference to parents. */ function k2_comment_start_el($comment, $args = array(), $depth = 1) { $GLOBALS['comment'] = $comment; extract($args, EXTR_SKIP); ?>
  • >
    comment_approved ): ?>

    ','', '(Editing)'); else: edit_comment_link(__('Edit','k2_domain'), '', ''); endif; ?>
    'comment-reply', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
    'ul') ); echo '
  • '; } /** * Displays current pingback/trackback * * @since 1.0 * * @param object $comment Comment data object. * @param array $args * @param int $depth Depth of comment in reference to parents. */ function k2_ping_start_el($comment, $args = array(), $depth = 1) { global $user_ID; $GLOBALS['comment'] = $comment; ?>
  • >
    ' . comment_type( __('Comment', 'k2_domain'), __('Trackback', 'k2_domain'), __('Pingback', 'k2_domain') ) . '', sprintf('%3$s', get_comment_ID(), (function_exists('time_since')? sprintf( __('%s ago.', 'k2_domain'), time_since( abs( strtotime($comment->comment_date_gmt . " GMT") ), time() ) ): __('Permanent Link to this Comment', 'k2_domain') ), sprintf( _x('%1$s at %2$s', 'k2_comments', 'k2_domain'), get_comment_date( __('M jS, Y','k2_domain') ), get_comment_time() ) ) ); if ( $user_ID ) edit_comment_link( __('Edit', 'k2_domain'), '', '' ); ?>
    'ul') ); echo '
  • '; }