-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
45 lines (31 loc) · 906 Bytes
/
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
<?php
/**
* Default template file
*
* All of WordPress defaults back to index.php. This is the main blog page.
*
* @package Comienzo
* @copyright Copyright (C) 2011 Curtis McHale
* @license http://www.gnu.org/copyleft/gpl.html GPL
*
* @since 1.0
*/
?>
<?php get_header(); ?>
<div id="index">
<div id="content-wrapper">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part( 'loop', get_post_type() ); ?>
<?php endwhile; ?>
<!-- includes next previous links or post level nav -->
<?php locate_template( array( 'assets/includes/post-navigation.php' ), true ); ?>
<?php else : ?>
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php get_search_form(); ?>
<?php endif; ?>
</div><!-- /#content-wrapper -->
<?php get_sidebar(); ?>
</div><!-- /#index -->
<?php get_footer(); ?>