-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
67 lines (55 loc) · 1.4 KB
/
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
<?php
/**
* The template for displaying all pages.
*
* @package KiND
*/
get_header();
if ( kind_is_page_title() ) { ?>
<div class="page-header">
<div class="container">
<div class="text-column">
<?php if ( wp_get_post_parent_id( $post ) ) { ?>
<div class="page-crumb">
<a href="<?php the_permalink( wp_get_post_parent_id( $post ) ); ?>">
<?php echo esc_html( get_the_title( wp_get_post_parent_id( $post ) ) ); ?>
</a>
</div>
<?php } ?>
<?php the_title( '<h1 class="page-title">', '</h1>' ); ?>
<?php if ( has_excerpt() ) { ?>
<div class="page-intro">
<?php the_excerpt(); ?>
</div>
<?php } ?>
</div>
</div>
</div>
<?php } ?>
<div class="page-content container">
<?php if ( has_post_thumbnail() && kind_is_page_title() ) { ?>
<div class="flex-row entry-preview-single centered">
<div class="flex-cell flex-md-10">
<?php kind_single_post_thumbnail( get_the_ID(), 'full', 'standard' ); ?>
</div>
</div>
<?php } ?>
<div class="entry-content the-content text-column">
<?php
while ( have_posts() ) :
the_post();
the_content();
wp_link_pages(
array(
'before' => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'kind' ) . '">',
'after' => '</nav>',
/* translators: %: Page number. */
'pagelink' => esc_html__( 'Page %', 'kind' ),
)
);
endwhile;
?>
</div>
</div>
<?php
get_footer();