-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
40 lines (36 loc) · 884 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
<?php
/**
* @author Tentaz
* @since 1.0
* @version 1.0
*/
get_header(); ?>
<div class="container">
<div id="content" class="site-content">
<?php
//checking page layout
$page_layout = get_post_meta( $post->ID, 'layout', true );
$col_side ='';
$col_letf ='';
if($page_layout == '2left'){
$col_side = '8';
$col_letf = 'left-sidebar';}
else if($page_layout == '2right'){
$col_side = '8';}
else{
$col_side = '12';}
?>
<div class="row padding-<?php echo esc_attr( $col_letf) ?>">
<div class="col-lg-<?php echo esc_attr( $col_side). ' ' .esc_attr( $col_letf) ?>">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', 'page' );
endwhile; // End of the loop.
?>
</div>
<?php get_sidebar('page');?>
</div>
</div>
</div>
<?php
get_footer();