-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·37 lines (30 loc) · 812 Bytes
/
index.php
File metadata and controls
executable file
·37 lines (30 loc) · 812 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
<?php get_header(); ?>
<main role="main">
<?php if (my_blog_page()): ?>
<div class="blog_header_image">
<?php dynamic_sidebar('Blog Header Image'); ?>
</div>
<?php endif; ?>
<div class="row">
<?php
if (have_posts() || my_blog_page()) {
if (my_blog_page()){
get_template_part('partials','blog');
} else {
//feat. banner
get_template_part('partials','head');
the_post();
//see if general page or event page
if (my_find_a_class()) {
get_template_part('partials', 'find_a_class');
} else {
get_template_part('partials', 'page');
}
}
} elseif (is_404()) {
get_template_part('partials','404');
}
?>
</div>
</main>
<?php get_footer(); ?>