-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
40 lines (40 loc) · 1.2 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
<?php
$dp_options = get_design_plus_option();
get_header();
?>
<?php
if ( 'type1' === $post->page_tcd_template_type || 'type2' === $post->page_tcd_template_type ) :
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<div class="p-entry">
<?php if ( has_post_thumbnail() ) : ?>
<div class="p-entry__img">
<?php the_post_thumbnail( 'full' ); ?>
</div>
<?php endif; ?>
<div class="p-entry__body">
<?php
the_content();
if ( ! post_password_required() ) {
wp_link_pages( array(
'before' => '<div class="p-page-links">',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>'
) );
}
?>
</div>
</div>
<?php
endwhile;
endif;
else : // Use page template
get_template_part( "template-parts/page-{$post->page_tcd_template_type}" );
endif;
?>
</div><!-- /.l-primary -->
<?php if ( 'type1' === $post->page_tcd_template_type ) { get_sidebar(); } ?>
<?php get_footer(); ?>