-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patharticle.php
33 lines (29 loc) · 1.16 KB
/
article.php
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
<?php theme_include('header'); ?>
<section class="content">
<article>
<h1><?php echo article_title(); ?></h1>
<h5><?php echo article_date(); ?></h5>
<?php echo article_markdown(); ?>
<?php echo article_custom_field('attribution'); ?>
</article>
</section>
<section class="comments">
<!-- Comment List -->
<?php if(comments_open() and has_comments()): ?>
<?php while(comments()): ?>
<?php echo comment_text(); ?>
<?php echo comment_date(); ?>
<?php endwhile; ?>
<?php endif; ?>
<!-- Comment Form -->
<?php if(comments_open()): ?>
<form id="comment" method="post" action="<?php echo comment_form_url(); ?>#comment">
<?php echo comment_form_notifications(); ?><!-- Error notifications -->
<?php echo comment_form_input_name('placeholder="Your Name"'); ?>
<?php echo comment_form_input_email('placeholder="Your Email"', $extra = ''); ?>
<?php echo comment_form_input_text('placeholder="Your comment"'); ?>
<?php echo comment_form_button($text = 'Post Comment', $extra = ''); ?>
</form>
<?php endif; ?>
</section>
<?php theme_include('footer'); ?>