This repository was archived by the owner on May 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcomments.php
More file actions
44 lines (40 loc) · 2.88 KB
/
comments.php
File metadata and controls
44 lines (40 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php if(comments_open() and has_comments()): ?>
<?php while(comments()): ?>
<div class="post-comment">
<p class="comment"><?php echo comment_text(); ?></p><br />
<i style="font-size: 15px;"><?php echo comment_date(); ?> - <?php echo comment_name(); ?></i></p>
<hr />
</div>
<?php endwhile; ?>
<?php endif; ?>
<div id="respond">
<?php if(comments_open()): ?>
<h3>Leave a comment</h3>
<form method="post" action="<?php echo comment_form_url(); ?>#comment" id="comment">
<div class="row control-group">
<div class="form-group col-xs-12 floating-label-form-group controls">
<label>Name</label>
<?php echo comment_form_input_name('placeholder="Your name"'); ?>
</div>
</div>
<div class="row control-group">
<div class="form-group col-xs-12 floating-label-form-group controls">
<label>Email-adress</label>
<?php echo comment_form_input_email('placeholder="Your email-adress"'); ?>
</div>
</div>
<div class="row control-group">
<div class="form-group col-xs-12 floating-label-form-group controls">
<label>Comment</label>
<?php echo comment_form_input_text('placeholder="Your comment"'); ?>
</div>
</div>
<br>
<div id="success"><?php echo comment_form_notifications(); ?></div>
<div class="row">
<div class="form-group col-xs-12">
<?php echo comment_form_button($text = 'And there we go!', $extra = ''); ?>
</div>
</div>
</form>
<?php endif; ?>