-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
66 lines (49 loc) · 1.53 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
<?php
/**
* main template
*
* @author Ricko
* @subpackage Core
* @version 1.0.0
*/
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
get_header(); ?>
<div role="main">
<div class="link-back">
<a title="Back" href="javascript:history.go(-1)"><i class="fa fa-arrow-left"></i></i> Back</a>
</div>
<?php if ( is_home() && ! is_front_page() ) : ?>
<header id="lead">
<div class="group">
<h1 class="page-title screen-reader-text">
<span class="the-title"><?php single_post_title(); ?></span>
</h1>
</div>
</header>
<?php endif; ?>
<section class="blog_wrap">
<article id="entry">
<div id="post-entry" class="index borderbox left">
<?php if (have_posts()) :
$i = 0; while (have_posts()) : the_post(); $i++;
get_template_part( 'template-parts/content', 'blog' );
endwhile; ?>
<div class="post-nav">
<p class="left"><?php previous_posts_link('<span class="aquo">«</span> Previous Entries') ?></p>
<p class="right"><?php next_posts_link('Next Entries <span class="aquo">»</span>','') ?></p>
<div class="clear"></div>
</div>
<?php // If no content, include the "No posts found" template.
else :
get_template_part( 'template-parts/content', 'none' );
endif; ?>
</div><!-- .post-entry -->
<?php get_sidebar(); ?>
</article>
</section><!-- .blog_wrap -->
</div>
<?php get_footer();
/* Omit closing PHP tag to avoid "Headers already sent" issues. */