-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog-loop.php
More file actions
44 lines (44 loc) · 1.53 KB
/
Copy pathblog-loop.php
File metadata and controls
44 lines (44 loc) · 1.53 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
<?php
if(have_posts()){
while(have_posts()){
the_post();
$date = utune_split_date(get_the_date('M d Y'));
?>
<div class="row utune-posts">
<div class="col-md-1 col-xs-1 utune-blog-date">
<div class="month"><?php echo $date[0] ?></div>
<div class="date"><?php echo $date[1] ?></div>
<div class="year"><?php echo $date[2] ?></div>
</div>
<div class="col-md-11 col-xs-11 utune-post-inner">
<?php if(has_post_thumbnail()): ?>
<div class="utune-thumb">
<a href="<?php echo get_permalink(); ?>"><?php the_post_thumbnail('large'); ?></a>
</div>
<?php endif; ?>
<h2 class="utune-blog-heading">
<a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a>
</h2>
<!-- <div class="utune-post-info">
posted by <?php //the_author(); ?> in <?php //the_category(', '); ?>
</div> -->
<?php the_excerpt(); ?>
<p>
<a href="<?php echo get_the_permalink(); ?>" class="utune-readmore">read more ...</a>
</p>
<div class="utune-tags">
<?php the_tags('<i class="fa fa-tags"></i> ', ', '); ?>
<span class="utune-pade"></span><i class="fa fa-comments"></i> <a href="<?php echo get_the_permalink();?>#respond"><?php echo comments_number('0 comments'); ?></a>
<span class="utune-pade"></span><i class="fa fa-folder-open"></i> <?php the_category(', '); ?>
</div>
<div class="utune-strip"></div>
</div>
</div>
<?php
}
}
?>
<div class="row">
<div class="col-md-1 col-xs-1"></div>
<div class="col-md-11 col-xs-11"><?php wpex_pagination(); ?></div>
</div>