-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·41 lines (38 loc) · 803 Bytes
/
Copy pathindex.php
File metadata and controls
executable file
·41 lines (38 loc) · 803 Bytes
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
<?php
/*
Template Name: Index
*/
get_header();
?>
<section class="main">
<div class="content wrapper">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
if ( is_single() || is_page() ) :
get_template_part( 'templates/content' );
else :
get_template_part( 'templates/excerpt' );
endif;
?>
<?php if ( is_single() ) : ?>
<section class="comments ms-all ml2-ml5 d2-d7 boxed-aqua">
<?php comments_template(); ?>
</section>
<?php endif; ?>
<?php
endwhile;
else :
?>
<article class="ms-all ml2-ml5 d2-d7 boxed-aqua">
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php get_search_form(); ?>
</article>
<?php endif; ?>
</div>
</section>
<?php
get_footer();
?>