-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
44 lines (37 loc) · 939 Bytes
/
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
<?php
/**
* @package WordPress
* @subpackage Gentle
*/
get_header();
global $page_id;
$page_id = get_the_ID();
$sidebar_position = '';
if(isset($mp_option['gentle_sidebar']) && isset($mp_option['gentle_sidebar']['radio_sb_' .$page_id])) {
$sidebar_position = $mp_option['gentle_sidebar']['radio_sb_' .$page_id];
}
if($sidebar_position == '')
$sidebar_position = 'right';
?>
<div id="mpc-content" role="main">
<div id="mpc-page-wrap">
<div id="mpc-page-content" class="sidebar-<?php echo $sidebar_position; ?>">
<?php
wp_reset_query();
if (have_posts()) {
while (have_posts()) {
the_post(); ?>
<article class="gentle-page-content">
<?php the_content(); ?>
</article>
<?php
}
} ?>
<?php wp_link_pages(); ?>
</div><!-- end page-content -->
<?php
if($sidebar_position != 'none')
get_sidebar(); ?>
</div> <!-- page wrap -->
</div> <!-- end mpc-content -->
<?php get_footer(); ?>