first commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
if ( post_password_required() )
|
||||
return;
|
||||
?>
|
||||
|
||||
<div class="comments-wrapper col-md-8 px-0">
|
||||
<h3 class="title">Comments</h3>
|
||||
<?php
|
||||
$args = [
|
||||
'style' => 'ul',
|
||||
'format' => 'html5',
|
||||
'short_ping' => true,
|
||||
'echo'=> false
|
||||
];
|
||||
|
||||
$result = wp_list_comments( $args );
|
||||
|
||||
if (!empty($result)) {
|
||||
echo $result;
|
||||
} else {
|
||||
echo '<p>This post don\'t have any comment. Be the first one!</p>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="comment-form-wrapper col-md-8 px-0">
|
||||
<?php
|
||||
$comments_args = array(
|
||||
'fields' => [
|
||||
'author' => '<div class="form-group"><input id="author" name="author" class="form-control" placeholder="name" required="required"></input></div>',
|
||||
'email' => '<div class="form-group"><input id="email" name="email" class="form-control" placeholder="email" required="required"></input></div>',
|
||||
'cookies' => ''
|
||||
],
|
||||
'comment_field' => '<div class="form-group"><textarea id="comment" name="comment" class="form-control" placeholder="comment" required="required"></textarea></div>',
|
||||
'comment_notes_before' => 'Your email address will not be published.'
|
||||
);
|
||||
|
||||
comment_form( $comments_args );
|
||||
?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user