-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
74 lines (46 loc) · 1.69 KB
/
index.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php get_header(); ?>
<div id="content">
<div class="row slat">
<div class="primary">
<?php /* Start the Loop */ ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article <?php post_class( 'post' ); ?>>
<header>
<?php /* if its a single page, it doesn't need a link. */
if ( is_singular() ) : ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php else : ?>
<h1 class="entry-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<?php endif; ?>
<?php /* pages don't need meta data */
if ( !is_page() and !is_attachment() ) : ?>
<div class="meta">
<p class="time"><?php the_time( get_option('date_format') ); ?></p>
<?php if( get_comments_number() != 0 ) : ?>
<p class="comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'comments-link', ''); ?></p>
<?php endif; ?>
<?php if( has_category() ) : ?>
<p class="category"><?php the_category(', ') ?></p>
<?php endif; ?>
</div><!-- meta -->
<?php endif; ?>
</header>
<div class="entry-content"><?php the_content(); ?></div><!-- entry-content -->
</article><!-- post -->
<?php /* end the Loop */ ?>
<?php endwhile; endif; ?>
<?php get_template_part( 'inc/pagination' ); ?>
</div><!-- primary -->
<div class="secondary">
<?php get_sidebar(); ?>
</div><!-- secondary -->
</div><!-- row -->
</div><!-- content -->
<?php if ( is_single() && comments_open() ) : ?>
<div id="comments-wrap">
<div class="row">
<?php comments_template(); ?>
</div><!-- row -->
</div><!-- comments-wrap -->
<?php endif; ?>
<?php get_footer(); ?>