<?php
/*
Template Name: Left Sidebar
*/
get_header(); ?>
<?php /* Start loop */ ?>
<?php 
	$page = get_page($post->ID);
	$current_page_id = $page->ID;
?>
<?php $page_custom_title = get_post_meta($current_page_id, 'page_custom_title', true); ?>
<?php while ( have_posts() ) : the_post(); ?>		
<?php 
	$titleBg = $redux_demo['title-bg']['url'];
?>
<section class="pageHeading" style="background:url(<?php echo $titleBg; ?>);">
	<div class="row">
		<h3><?php the_title(); ?></h3>
		<p><?php echo $page_custom_title; ?></p>
	</div>
</section><!-- End page Heading -->
<section id="advertisement" class="noBorder removePad">
	<div class="row">
		<div class="small-12 large-8 large-push-4 columns">
			<article class="post removePad">
				<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
					<?php the_content(); ?>
				</div>
			</article>
		</div>
		<div class="small-12 large-4 columns large-pull-8">
			<section class="sidebar">
				<div class="row">
					<?php get_sidebar('pages'); ?>
				</div>
			</section>
		</div>
	</div>
</section>
<?php endwhile; // End the loop ?>
<?php get_footer(); ?>
