-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
53 lines (45 loc) · 1.06 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
<?php
get_header();
if(have_posts()){
while(have_posts()){
the_post();
$subtitle=get_post_meta($post->ID, 'subtitle_value', true);
$slider=get_post_meta($post->ID, 'slider_value', $single = true);
$slider_prefix=get_post_meta($post->ID, 'slider_name_value', true);
if($slider_prefix=='default'){
$slider_prefix='';
}
$layout=get_post_meta($post->ID, 'layout_value', true);
if($layout==''){
$layout='right';
}
$show_title=get_opt('_show_page_title');
$sidebar=get_post_meta($post->ID, 'sidebar_value', $single = true);
if($sidebar==''){
$sidebar='default';
}
include(TEMPLATEPATH . '/includes/page-header.php');
?>
<div id="content-container" class="content-gradient <?php echo $layoutclass; ?> ">
<div id="<?php echo $content_id; ?>">
<!--content-->
<?php
if($show_title!='off'){?>
<h1 class="page-heading"><?php the_title(); ?></h1><hr/>
<?php }
the_content();
wp_link_pages();
}
}
?>
</div>
<?php
if($layout!='full'){
print_sidebar($sidebar);
}
?>
<div class="clear"></div>
</div>
<?php
get_footer();
?>