This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page.php
executable file
·62 lines (51 loc) · 1.56 KB
/
front-page.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
<?php
/**
* The template for displaying front page
*
* Contains the closing of the #content div and all content after.
* Initial styles for front page template.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package khonsu
*/
if ( is_front_page() && ! is_paged() ) :
include( TEMPLATEPATH . '/inc/cache-start.php' );
endif;
get_header();
?>
<div id="primary" class="content-area">
<main id="main" class="site-main site-front-page<?php if ( is_paged() ) : ?> paged<?php endif; ?>">
<div class="container">
<?php
if ( is_paged() ) :
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content' );
endwhile;
khonsu_pagination();
else :
get_template_part( 'template-parts/content', 'none' );
endif;
else :
get_template_part( 'template-parts/block-four' );
get_template_part( 'template-parts/upsell-posts' );
get_template_part( 'template-parts/ads' );
get_template_part( 'template-parts/block-three-most-popular' );
?>
<div class="dynamic-random-posts">
<?php get_template_part( 'template-parts/block-random' ); ?>
</div>
<?php
get_template_part( 'template-parts/rss-feeds' );
endif;
?>
</div><!-- .container -->
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();
if ( is_front_page() && ! is_paged() ) :
include( TEMPLATEPATH . '/inc/cache-end.php' );
endif;