-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
65 lines (41 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
56
57
58
59
60
61
62
63
64
<?php
if ( is_category() || is_home() ) :
$queried_object = get_queried_object();
if ( get_field( 'header_image', $queried_object ) ) :
get_template_part('templates/archive', 'hero');
endif;
else : ?>
<header >
<div class="container">
<div class="row">
<div class="col-md-12">
<?php get_template_part('templates/page', 'header'); ?>
</div>
</div>
</div>
</header>
<?php endif; ?>
<section class="page-section">
<div class="container">
<div class="row">
<div class="col-md-8">
<?php echo(get_post_field('post_content',10)); ?>
</div>
</div>
</div>
</section>
<section class="page-section">
<div class="container">
<div class="row">
<div class="col-md-8">
<?php if (!have_posts()) : ?>
<div class="alert alert-warning">
<?php _e('Sorry, no results were found.', 'sage'); ?>
</div>
<?php get_search_form(); ?>
<?php endif; ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('templates/content', get_post_type() != 'post' ? get_post_type() : get_post_format()); ?>
<?php endwhile; ?>
<?php the_posts_navigation(); ?>
</div><!-- /.col-sm-8 -->