-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
53 lines (32 loc) · 1.06 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
<?php
/**
* The main template file.
*
* @package Abraham
*/
get_header(); ?>
<?php get_template_part( 'components/page', 'header' ); ?>
<!-- <div class="site-wrap u-flex u-flex-col"> -->
<div <?php hybrid_attr( 'grid' ); ?>>
<?php if ( ! is_paged() && $desc = get_the_archive_description() ) : // Check if we're on page/1. ?>
<article <?php hybrid_attr( 'archive-description' ); ?>>
<?php echo $desc; ?>
</article><!-- .archive-description -->
<?php endif; // End paged check. ?>
<main <?php hybrid_attr( 'content' ); ?>>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php hybrid_get_content_template(); ?>
<?php endwhile; ?>
<?php get_template_part( 'components/posts', 'pagination' ); ?>
<?php else : // If no posts were found. ?>
<?php get_template_part( 'content/none' ); ?>
<?php endif; ?>
<?php if ( is_singular() ) {
get_template_part( 'components/post', 'children' );
} ?>
</main><!-- /.content -->
<?php hybrid_get_sidebar( 'primary' ); ?>
</div><!-- /.grid -->
<?php
get_footer();