-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
41 lines (22 loc) · 1012 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
<?php get_header(); // Loads the header.php template. ?>
<div class="column-container">
<main <?php hybrid_attr( 'content' ); ?>>
<?php
do_action('convertica_before_loop');
if ( have_posts() ) { // Checks if any posts were found.
while ( have_posts() ) { // Begins the loop through found posts.
the_post(); // Loads the post data.
hybrid_get_content_template(); // Loads the content/*.php template.
if ( is_singular() ) { // If viewing a single post/page/CPT.
comments_template( '', true ); // Loads the comments.php template.
} // End check for single post.
} // End found posts loop.
locate_template( array( 'misc/loop-nav.php' ), true ); // Loads the misc/loop-nav.php template.
}
else { // If no posts were found.
locate_template( array( 'content/error.php' ), true ); // Loads the content/error.php template.
} // End check for posts.
do_action('convertica_after_loop');
?>
</main><!-- #content -->
<?php get_footer(); // Loads the footer.php template. ?>