first commit

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-08 12:19:53 -04:00
commit 7c8c8b1c76
4586 changed files with 2050693 additions and 0 deletions
+39
View File
@@ -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>