forked from starverte/flint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
55 lines (36 loc) · 1.11 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
<?php
/**
* The main template file used to display a page when nothing more specific matches a query.
*
* @package Flint
* @since 1.0.1
*/
get_header();
flint_get_sidebar( 'header' );
?>
<div id="primary" class="content-area container">
<div class="row">
<?php flint_get_sidebar( 'left' ); ?>
<div id="content" role="main" <?php flint_content_class(); ?>>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
$type = get_post_type();
if ( 'post' === $type ) :
get_template_part( 'format', get_post_format() );
else :
get_template_part( 'type', $type );
endif;
?>
<?php endwhile; ?>
<?php flint_content_nav( 'nav-below' ); ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'index' ); ?>
<?php endif; ?>
</div><!-- #content -->
<?php flint_get_sidebar( 'right' ); ?>
</div><!-- .row -->
</div><!-- #primary -->
</div><!-- #page -->
<?php flint_get_sidebar( 'footer' ); ?>
<?php get_footer(); ?>