1 && get_option('page_comments')) { // are there comments to navigate through ?>

1 && get_option('page_comments')) { // are there comments to navigate through ?>

'; if ($comment_allowedtags_array[0] != $item) { $formatted_comment_allowedtags .= '<'; } $formatted_comment_allowedtags .= $item; if (end($comment_allowedtags_array) != $item) { $formatted_comment_allowedtags .= '>'; } $formatted_comment_allowedtags .= ' '; } $comment_allowed_tags = $formatted_comment_allowedtags; unset($comment_allowedtags, $comment_allowedtags_array, $formatted_comment_allowedtags); ob_start(); comment_form( array( 'fields' => array( 'author' => '
' . '
' . '' . '
' . '
', 'email' => '
' . '
' . '' . '
' . '
', 'url' => '
' . '
' . '' . '
' . '
', ), 'comment_field' => '
' . '
' . '' . '
' . '
', 'comment_notes_after' => '

' . sprintf(__('You may use these HTML tags and attributes: %s', 'gazela'), $comment_allowed_tags) . '

' ) ); /** * WordPress comment form does not support action/filter form and input submit elements. Rewrite these code when there is support available. * @todo Change form class modification to use WordPress hook action/filter when it's available. * @todo Change input submit class modification to use WordPress hook action/filter when it's available. */ $comment_form = str_replace('class="comment-form', 'class="comment-form form form-horizontal', ob_get_clean()); $comment_form = preg_replace('#(]*\s)(type="submit")#i', '$1 type="submit" class="btn btn-primary"', $comment_form); echo $comment_form; unset($comment_allowed_tags, $comment_form); ?>