-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
63 lines (58 loc) · 2.72 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
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package WordPress
* @subpackage ChurchThemes
*
===================================================================================================
WARNING! DO NOT EDIT THIS FILE OR ANY TEMPLATE FILES IN THIS THEME!
To make it easy to update your theme, you should not edit this file. Instead, you should create a
Child Theme first. This will ensure your template changes are not lost when updating the theme.
You can learn more about creating Child Themes here: http://codex.wordpress.org/Child_Themes
You have been warned! :)
===================================================================================================
*/
$page_options_meta = get_post_meta($post->ID,'_page_options',true);
isset($page_options_meta['ct_page_layout']) ? $page_layout = $page_options_meta['ct_page_layout'] : $page_layout = null;
isset($page_options_meta['ct_page_sidebar']) ? $page_sidebar = $page_options_meta['ct_page_sidebar'] : $page_sidebar = null;
isset($page_options_meta['ct_page_tagline']) ? $page_tagline = $page_options_meta['ct_page_tagline'] : $page_tagline = null;
isset($page_options_meta['ct_social_footer']) ? $page_social = $page_options_meta['ct_social_footer'] : $page_social = null;
get_header(); ?>
<div id="ribbon" class="page">
<div class="container_12 grid-container content">
<div class="ribbon-wrapper">
<div class="<?php if(!empty($page_tagline)): ?>grid_8 grid-66<?php else: ?>grid_12 grid-100<?php endif; ?> alpha">
<h1><?php the_title(); ?></h1>
</div>
<?php if(!empty($page_tagline)): ?>
<div class="grid_4 grid-33 omega">
<span class="tagline"><?php echo $page_tagline; ?></span>
</div>
<?php endif; ?>
</div>
</div>
</div>
<div id="wrapper3" class="container_12 grid-container">
<?php if($page_layout == 'left'): get_sidebar(); endif; ?>
<div id="content" class="<?php if($page_layout == 'full'): echo 'grid_12 grid-100'; else: echo 'grid_8 grid-66'; endif; ?> <?php if($page_layout == 'left'): echo 'omega'; else: echo 'alpha'; endif; ?>">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php
wp_link_pages(array(
'before' => '' . __('Pages:', 'churchthemes'),
'after' => ''
));
?>
<?php edit_post_link( __('Edit this page', 'churchthemes'), '', ''); ?>
<?php comments_template('', true); ?>
<?php endwhile; ?>
</div>
<?php if($page_layout == 'right' || empty($page_layout)): get_sidebar(); endif; ?>
</div>
<?php get_footer(); ?>