-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-news.php
executable file
·48 lines (34 loc) · 1.84 KB
/
single-news.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
<?php get_header(); ?>
<!-- Left Sec -->
<section id="left-sec" class="col-md-9 col-sm-8">
<?php if( have_posts() ) : the_post(); ?>
<article class="master-post" id="post-<?php the_ID(); ?>">
<header class="post-header">
<i class="fa fa-bell-o fa-lg"></i>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
</header>
<div class="post-body clearfix"><?php the_content(); ?></div>
<footer class="post-footer clearfix">
<?php if( function_exists('the_views') ) { ?>
<span id="view">
<i class="fa fa-eye fa-lg"></i>
<?php the_views(); ?>
</span>
<?php } ?>
<span id="date">
<i class="fa fa-calendar fa-lg"></i>
<?php
if( get_the_modified_date() != get_the_date() ){
get_the_modified_date('j / m / Y');
} else {
the_time('j / m / Y');
}
?>
</span>
</footer>
</article>
<?php endif; wp_reset_postdata(); ?>
<?php comments_template(); ?>
</section>
<!-- /Left Sec -->
<?php get_footer(); ?>