-
Notifications
You must be signed in to change notification settings - Fork 14
/
content-page.php
executable file
·37 lines (29 loc) · 1.16 KB
/
content-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
<?php
/**
* The template used for displaying page content in page.php
*
* @since vantage 1.0
*
* @license GPL 2.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-main">
<?php do_action( 'vantage_entry_main_top' ); ?>
<?php if ( ( the_title( '', '', false ) && siteorigin_page_setting( 'page_title' ) ) || ( has_post_thumbnail() && siteorigin_page_setting( 'featured_image' ) ) ) { ?>
<header class="entry-header">
<?php if ( has_post_thumbnail() && siteorigin_page_setting( 'featured_image' ) ) { ?>
<div class="entry-thumbnail"><?php vantage_entry_thumbnail(); ?></div>
<?php } ?>
<?php if ( the_title( '', '', false ) && siteorigin_page_setting( 'page_title' ) ) { ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php } ?>
</header><!-- .entry-header -->
<?php } ?>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'vantage' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php do_action( 'vantage_entry_main_bottom' ); ?>
</div>
</article><!-- #post-<?php the_ID(); ?> -->