This repository was archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpage.php
More file actions
executable file
·63 lines (46 loc) · 1.33 KB
/
page.php
File metadata and controls
executable file
·63 lines (46 loc) · 1.33 KB
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
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that other
* 'pages' on your WordPress site will use a different template.
*
* @package Forte
* @link https://themebeans.com/themes/forte
*/
get_header();
$hero = get_post_meta( $post->ID, '_bean_hero', true );
if ( 'on' === $hero ) {
get_template_part( 'content-page-hero' );
} else { ?>
<?php if ( ( function_exists( 'has_post_thumbnail' ) ) && ( has_post_thumbnail() ) ) { ?>
<div class="entry-content-media fadein">
<?php the_post_thumbnail( 'post-full' ); ?>
</div>
<?php } ?>
<?php } ?>
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<div class="row fadein">
<div <?php post_class( 'entry-content' ); ?>>
<?php if ( 'off' === $hero ) { ?>
<h1 class="entry-title"><?php echo esc_html( bean_page_title() ); ?></h1>
<?php $post_subtitle = get_post_meta( $post->ID, '_bean_post_subtitle', true ); ?>
<?php if ( $post_subtitle ) { ?>
<div class="entry-excerpt">
<h5><?php echo esc_html( $post_subtitle ); ?></h5>
</div>
<?php } ?>
<?php } ?>
<?php the_content(); ?>
</div>
</div>
<?php comments_template( '', true ); ?>
<?php
endwhile;
endif;
get_footer();