-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
69 lines (59 loc) · 2.31 KB
/
index.php
File metadata and controls
69 lines (59 loc) · 2.31 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php get_header(); ?>
<section id="inner-headline">
<div class="container">
<div class="row">
<div class="col-lg-12">
<ul class="breadcrumb">
<li><a href="#"><i class="fa fa-home"></i></a><i class="icon-angle-right"></i></li>
<li class="active">Blog</li>
</ul>
</div>
</div>
</div>
</section>
<section id="content">
<div class="container">
<div class="row">
<div class="col-lg-8">
<?php
if (have_posts()) {
while (have_posts()) {
the_post(); ?>
<article>
<div class="post-image">
<div class="post-heading">
<h3><a href="#"><?php the_title(); ?></a></h3>
</div>
<?php the_post_thumbnail('blog-img', array('class' => ' img-responsive')); ?>
</div>
<p><?php echo wp_trim_words(get_the_content(), 25, '...'); ?></p>
<div class="bottom-article">
<ul class="meta-post">
<li><i class="icon-calendar"></i> <?php the_time('F d, Y'); ?> </li>
<li><i class="icon-user"></i> <?php the_author_posts_link(); ?> </li>
<li><i class="icon-comments"></i> <?php comments_popup_link( 'No Comments', '1 Comments', '% Comments', 'rubel', 'Comments Off' ); ?> </li>
</ul>
<a href="<?php the_permalink(); ?>" class="pull-right">Continue reading <i class="icon-angle-right"></i></a>
</div>
</article>
<?php }
}else{
echo "No Post here";
}
?>
<div id="pagination">
<?php
the_posts_pagination( array(
'prev_text' => __( 'Previous page', 'corlate' ),
'next_text' => __( 'Next page', 'corlate' ),
) );
?>
</div>
</div>
<div class="col-lg-4">
<?php get_sidebar(); ?>
</div>
</div>
</div>
</section>
<?php get_footer(); ?>