-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
79 lines (52 loc) · 2.64 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php get_header(); ?>
<!-- Page -->
<div id="page-wrapper">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
$headerbgcolor = esc_attr(get_post_meta( $post->ID, '_mpt_page_header_bg_color', true ));
$headertextcolor = esc_attr(get_post_meta( $post->ID, '_mpt_page_header_text_color', true ));
$contentbgcolor = esc_attr(get_post_meta( $post->ID, '_mpt_page_content_bg_color', true ));
$contenttextcolor = esc_attr(get_post_meta( $post->ID, '_mpt_page_content_text_color', true ));
?>
<div class="header-section"<?php echo ($headerbgcolor != '#' && !empty($headerbgcolor) ? ' style="background: '.$headerbgcolor.';"' : '') ?>>
<div class="outercontainer">
<div class="container">
<div class="clear padding30"></div>
<h1 class="page-header"><span<?php echo ($headertextcolor != '#' && !empty($headertextcolor) ? ' style="color: '.$headertextcolor.';"' : '') ?>><?php the_title(); ?></span></h1>
<div class="clear padding15"></div>
</div><!-- / container -->
</div><!-- / outercontainer -->
</div><!-- / header-section -->
<div class="content-section"<?php echo ($contentbgcolor != '#' && !empty($contentbgcolor) ? ' style="background: '.$contentbgcolor.';"' : '') ?>>
<div class="outercontainer">
<div class="clear padding30"></div>
<div class="container">
<div class="row-fluid">
<div class="span8">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?><?php echo ($contenttextcolor != '#' && !empty($contenttextcolor) ? ' style="color: '.$contenttextcolor.';"' : '') ?>>
<?php the_content(); ?>
<div class="clear padding20"></div>
<?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>
<div class="clear padding20"></div>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
<div class="clear padding30"></div>
<?php
$showcomments = get_post_meta( $post->ID, '_mpt_page_show_comments', true );
if ( $showcomments == 'on') {
comments_template();
}
?>
</div>
<?php endwhile; endif; ?>
</div><!-- / span8 -->
<div id="sidebar" class="span4">
<?php get_sidebar(); ?>
</div>
</div><!-- / row-fluid -->
<div class="padding20"></div>
</div><!-- / container -->
</div><!-- / outercontainer -->
</div><!-- / content-section -->
</div><!-- / page-wrapper -->
<?php get_template_part('footer', 'widget'); ?>
<?php get_footer(); ?>