<?php
if ( get_theme_mod( 'vw_book_store_pro_footer_menu_section_bgcolor' ) ) {
	$section_backg = 'background-color:' . esc_attr( get_theme_mod( 'vw_book_store_pro_footer_menu_section_bgcolor' ) ) . ';';
} elseif ( get_theme_mod( 'vw_book_store_pro_footer_menu_section_bgimage' ) ) {
	$section_backg = 'background-image:url(\'' . esc_url( get_theme_mod( 'vw_book_store_pro_footer_menu_section_bgimage' ) ) . '\')';
} else {
	$section_backg = '';
}

$img_bg = get_theme_mod('vw_book_store_pro_footer_menu_image_bg');

?>
<section id="custom_footer" style="<?php echo esc_attr($section_backg); ?>" class="<?php echo esc_attr($img_bg); ?>">
	<?php if ( get_theme_mod('vw_book_store_pro_custom_footer_menu',true) != false ){ ?>
		<div class="container footer-menu-wrap">
			<div class="row">					
				<div class="col-md-8 col-sm-12 footer_col">
					<?php 
	                wp_nav_menu( array( 
	                  'theme_location' => 'footer1',
	                  'container_class' => 'footer-menu clearfix' ,
	                  'menu_class' => 'footer-menu clearfix',
	                  'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
	                  'fallback_cb' => 'wp_page_menu',
	                ) ); 
	              ?>
				</div>
				<div class="col-md-4 col-sm-12 footer_img">
					<img src="<?php echo esc_url(get_theme_mod('vw_book_store_pro_footer_paycard')); ?>" alt="Payment Image"/>
				</div>
			</div>
		</div>
	<?php } ?>
</section>