-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage-left-sidebar.php
51 lines (41 loc) · 1.76 KB
/
page-left-sidebar.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
<?php
/**
* Template Name: Page With Left Sidebar
*/
get_header(); ?>
<section id="main">
<?php get_template_part('lib/sub-header'); ?>
<div class="container">
<div class="row">
<?php get_sidebar(); ?> <!--Page with Left Sidebar-->
<div id="content" class="site-content col-md-8" role="main">
<?php while ( have_posts() ): the_post(); ?>
<div id="post-<?php the_ID(); ?>">
<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
<div class="row">
<div class="entry-thumbnail col-md-12">
<?php the_post_thumbnail(); ?>
</div>
</div>
<?php endif; ?>
<div class="entry-content row">
<?php $content = get_the_content(); ?>
<?php
if(!has_shortcode($content, 'vc_row')){
?>
<div class="col-md-12">
<?php the_content(); ?>
</div>
<?php
}else{
the_content();
}
wp_link_pages(); ?>
</div>
</div>
<?php endwhile; ?>
</div> <!--/#content-->
</div>
</div>
</section> <!--/#main-->
<?php get_footer();