'; $email = '

'; $url = '

'; $args = array( 'title_reply' => esc_html__( 'Write a comment', 'amy-xmas' ), 'comment_notes_after' => '', 'fields' => apply_filters('comment_form_default_fields', array( 'author' => $author, 'email' => $email, 'url' => $url, )), 'class_submit' => 'amy-btn-primary', 'comment_field' => '

', ); comment_form( $args ); $comment_form = ob_get_clean(); $comment_form = str_replace( 'novalidate', '', $comment_form ); return $comment_form; } } /* * List Comment */ if ( ! function_exists( 'amy_xmas_custom_list_comment' ) ) { function amy_xmas_custom_list_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; ?>

  • id="comment-">

    $depth, 'max_depth' => $args['max_depth'] ) ) ) ?>
    ', ']]>', $content ); $content = strip_tags( $content ); $words = explode( ' ', $content, $limit + 1 ); if ( count( $words ) > $limit ) { array_pop( $words ); $content = implode( ' ', $words ); if ( $blog_layout == 'grid' || $blog_layout == 'masonry' ) { $content .= ' […]'; } else { $content .= ' …'; $content .= '' . esc_html__( 'Read More', 'amy-xmas' ) . ''; } return $content; } return $old_content; } }