-
Notifications
You must be signed in to change notification settings - Fork 13
/
page.php
58 lines (47 loc) · 1.16 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
<?php
/**
* The template for displaying all pages.
*
* @package Kandinsky
*/
get_header();
if ( knd_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 ( trim( $post->post_excerpt ) ) { ?>
<div class="page-intro">
<?php the_excerpt(); ?>
</div>
<?php } ?>
</div>
</div>
</div>
<?php } ?>
<div class="page-content container">
<?php if ( has_post_thumbnail() && knd_is_page_title() ) { ?>
<div class="flex-row entry-preview-single centered">
<div class="flex-cell flex-md-10">
<?php knd_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();
endwhile;
?>
</div>
</div>
<?php
get_footer();