-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
58 lines (44 loc) · 1.78 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 pages
*
* @package juliet
*/
?>
<?php get_header(); ?>
<?php
$juliet_pages_sidebar = juliet_get_option('juliet_pages_sidebar');
$juliet_pages_featured_image_show = juliet_get_option('juliet_pages_featured_image_show');
?>
<?php if($juliet_pages_sidebar == 1) { ?><div class="row two-columns"><div class="main-column col-md-9"><?php }
else { ?><div class="row one-column"><div class="main-column col-md-12"><?php } ?>
<?php while ( have_posts() ) : the_post(); ?>
<!-- Page Content -->
<div id="page-<?php the_ID(); ?>" <?php post_class('entry entry-page'); ?>>
<?php $title = get_the_title(); ?>
<?php if($title == '') { ?>
<h1 class="entry-title"><?php esc_html_e('Page ID: ', 'juliet'); the_ID(); ?></h1>
<?php } else { ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php } ?>
<?php
if($juliet_pages_featured_image_show == 1) {
if(has_post_thumbnail()) { ?>
<div class="entry-thumb"><?php the_post_thumbnail( 'full', array( 'alt' => get_the_title(), 'class'=>'img-responsive' ) ); ?></div><?php }
} ?>
<div class="entry-content"><?php the_content(); ?></div>
</div>
<!-- /Page Content -->
<!-- Page Comments -->
<?php if ( comments_open() ) : ?>
<hr />
<?php comments_template(); ?>
<?php endif; ?>
<!-- /Page Comments -->
</div>
<!-- /Main Column -->
<?php if($juliet_pages_sidebar == 1) get_sidebar(); ?>
</div>
<!-- /One or Two Columns -->
<?php endwhile; ?>
<?php get_footer(); ?>