-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfront-page.php
69 lines (63 loc) · 1.59 KB
/
front-page.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
65
66
67
68
69
<?php
/*
Template Name: HCard Page
* This template displays a full-width h-card of the author by default
*
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
if ( class_exists( 'HCard_User' ) ) {
if ( get_option( 'iw_single_author' ) ) {
echo HCard_User::hcard(
get_option( 'iw_default_author' ),
array(
'me' => true,
)
);
}
} else {
get_template_part( 'template-parts/biography' );
}
?>
<hr />
<ul class="front-page-list">
<?php
if ( have_posts() && ! is_singular() ) {
?>
<h2><?php _e( 'Recent Posts', 'iw26' ); ?></h2>
<?php
// Start the loop.
while ( have_posts() ) {
the_post();
/*
* If installed, include the Post-Kind-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Kind name) and that will be used instead.
*/
if ( class_exists( 'Kind_Taxonomy' ) ) {
get_template_part( 'template-parts/content-summary', get_post_kind() );
} else {
get_template_part( 'template-parts/content-summary' );
}
// End the loop.
// End of the loop.
}
}
?>
</ul>
<?php
// Previous/next page navigation.
the_posts_navigation(
array(
'prev_text' => __( 'Older Posts', 'iw26' ),
'next_text' => __( 'Newer Posts', 'iw26' ),
)
);
?>
</main><!-- .site-main -->
<?php get_sidebar( 'content-bottom' ); ?>
</div><!-- .content-area -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>