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 1
Expand file tree
/
Copy patharticle.php
More file actions
55 lines (52 loc) · 1.89 KB
/
article.php
File metadata and controls
55 lines (52 loc) · 1.89 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
45
46
47
48
49
50
51
52
53
54
55
<?php theme_include('header'); ?>
<div id="main">
<section id="one">
<header class="major">
<h1><?php echo article_title(); ?></h1>
<p>Published on <?php echo article_date(); ?> by <?php echo article_author('real_name'); ?></p>
</header>
<?php echo article_markdown(); ?>
</section>
<!-- Comment Form -->
<?php if(comments_open()): ?>
<section>
<h4>Comments</h4>
<form id="comment" method="post" action="<?php echo comment_form_url(); ?>#comment">
<?php echo comment_form_notifications(); ?>
<div class="row uniform 50%">
<div class="6u 12u$(xsmall)">
<?php echo comment_form_input_name('placeholder="Name"'); ?>
</div>
<div class="6u$ 12u$(xsmall)">
<?php echo comment_form_input_email('placeholder="E-Mail adress"'); ?>
</div>
<div class="12u$">
<?php echo comment_form_input_text('placeholder="Comment"'); ?>
</div>
<div class="12u$">
<ul class="actions">
<li><input type="submit" value="Lets go!" class="special" /></li>
</ul>
</div>
</div>
</form>
<?php if(has_comments()): ?>
<div class="comments-list">
<?php $i = 0; while(comments()): $i++; ?>
<span class="comment clearfix" id="comment-<?php echo comment_id(); ?>">
<div class="comment__meta clearfix">
<span class="comment__counter"><?php echo $i; ?></span>
<h4 class="comment__name"><?php echo comment_name(); ?></h4>
<time class="comment__date"><?php echo comment_date(); ?></time>
</div>
<div class="comment__content">
<?php echo comment_text(); ?>
</div>
</span>
<?php endwhile; ?>
</div>
<?php endif; ?>
</section>
<?php endif; ?>
</div>
<?php theme_include('footer'); ?>