<?php $custom  = photofolio_custom(); ?>
			<?php get_sidebar('right'); ?>
		<!-- End Right sidebar -->
		<?php if(function_exists('is_woocommerce') and !is_woocommerce() and !is_404()){ ?>
		<?php if(!is_page_template('template-fullwidth_padding.php') and !is_singular('portfolio')){ ?>
            <?php if($custom['footer-widgets']=='yes'){ ?> 
            <?php if(get_post_meta($wp_query->post->ID, '_photofolio_footer_widget', true)!='off'){ ?>
		<!-- instagram feed section -->
			<section class="instagram-feed-section">
				 <?php 
              
                        if(is_active_sidebar('footer-b')){
                          dynamic_sidebar('footer-b'); 
                        }
                        
                    ?> 
			</section>
			<!-- End instagram feed section -->
			<?php } ?>
		<?php } } }?>
		</div>
		<!-- End content -->
		<footer>
			<div class="container-fluid">
				<div class="row">
					<div class="col-md-6">
						<p><?php echo wp_kses_post($custom['footer-text']); ?></p>
					</div>
					<div class="col-md-6">
						<ul class="social-icons">
							 <?php if($custom['facebook']!=''){ ?>
							<li><a href="<?php echo esc_url($custom['facebook']); ?>"><?php esc_html_e('facebook','photofolio'); ?></a></li>
							<?php } ?>
							<?php if($custom['twitter']!=''){ ?>
							<li><a href="<?php echo esc_url($custom['twitter']); ?>"><?php esc_html_e('twitter','photofolio'); ?></a></li>
							<?php } ?>
							<?php if($custom['pinterest']!=''){ ?>
							<li><a href="<?php echo esc_url($custom['pinterest']); ?>"><?php esc_html_e('pinterest','photofolio'); ?></a></li>
							<?php } ?>
							<?php if($custom['google']!=''){ ?>
							<li><a href="<?php echo esc_url($custom['google']); ?>"><?php esc_html_e('google','photofolio'); ?> +</a></li>
							<?php } ?>
							<?php if($custom['instagram']!=''){ ?>
							<li><a href="<?php echo esc_url($custom['instagram']); ?>"><?php esc_html_e('instagram','photofolio'); ?></a></li>
							<?php } ?>
							<?php if($custom['flickr']!=''){ ?>
							<li><a href="<?php echo esc_url($custom['flickr']); ?>"><?php esc_html_e('flickr','photofolio'); ?></a></li>
							<?php } ?>
						</ul>
					</div>
				</div>
			</div>
		</footer>
	</div>
	<!-- End Container -->
	

	<?php wp_footer(); ?>
</body>
</html>