/
index.php
57 lines (53 loc) · 1.4 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
<?php get_header();?>
<main class="body-container">
<div class="container">
<div class="row">
<div class="col-md-9 on-content-area">
<!-- artikel -->
<?php
if (have_posts()) :
while(have_posts()) : the_post(); ?>
<article>
<header class="header-post">
<?php
if (has_post_thumbnail()) {
the_post_thumbnail('on-post-thumbnail');
}
?>
<h2 class="title-post">
<a href="<?php the_permalink();?>"><?php the_title();?></a>
</h2>
</header>
<div class="post-meta">
<span class="date-post">
<em class="glyphicon glyphicon-time"></em>
<?php the_date();?>
</span>
<span class="author-post">
<em class="glyphicon glyphicon-user"></em>
<?php the_author();?>
</span>
<span class="categories">
<em class="glyphicon glyphicon-tag"></em>
<?php the_category();?>
</span>
</div>
<div class="entry">
<?php the_excerpt();?>
</div>
</article>
<?php
endwhile;
else : ?>
<article>
<header class="header-post">
<h1 class="title-post">Oops!! Artikel Tidak Ditemukan</h1>
</header>
</article>
<?php endif;?>
</div>
<?php get_sidebar();?>
</div>
</div>
</main>
<?php get_footer();?>