-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcontent-page.php
executable file
·57 lines (43 loc) · 1.48 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* WARNING: This file is part of the Espresso framework. DO NOT edit
* this file under any circumstances. Please do all modifications
* in the form of a child theme.
*
* create content.php or content-{format}.php in your child theme
*/
global $post;
$page_title = get_post_meta($post->ID, 'espresso_page_title', true);
$page_content_sidebar = get_post_meta($post->ID, 'espresso_content_sidebar', true);
$page_widgets_only = get_post_meta($post->ID, 'espresso_page_widgets_only', true);
if(false == $page_widgets_only){
?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<?php
if($page_title !== 'hide' ){ ?>
<header class="entry-header">
<?php if ( is_front_page() ) { ?>
<h2 class="entry-title"><?php the_title(); ?></h2>
<?php } else { ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php } ?>
<?php //get_template_part('meta-header', get_post_format() )?>
</header><!-- .entry-header -->
<?php } ?>
<div class="entry-content clearfix">
<?php the_content(); ?>
<?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>
</div>
<?php
get_template_part( 'meta','page' );
?>
</article>
<?php espresso_comments_template( '', true ); ?>
<?php
}
if(is_active_sidebar('content-widget-area-'.$post->ID)){
echo"<ul id='content-sidebar' class='content_sidebar'>";
dynamic_sidebar( 'content-widget-area-'.$post->ID );
echo "</ul>";
}
?>