-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-single.php
42 lines (39 loc) · 944 Bytes
/
page-single.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
<?php
/**
* @author Tentaz
* @since 1.0
* @version 1.0
* Template Name: Single Page Template
*/
get_header();
$licenseKey = get_option("solidaWordPressTheme_lic_Key","");
?>
<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">
<div class="col-md-<?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();