<?php

if ( get_theme_mod( 'vw_book_store_pro_footer_copyright_section_bgcolor' ) ) {
	$section_backg = 'background-color:' . esc_attr( get_theme_mod( 'vw_book_store_pro_footer_copyright_section_bgcolor' ) ) . ';';
} elseif ( get_theme_mod( 'vw_book_store_pro_footer_copyright_section_bgimage' ) ) {
	$section_backg = 'background-image:url(\'' . esc_url( get_theme_mod( 'vw_book_store_pro_footer_copyright_section_bgimage' ) ) . '\')';
} else {
	$section_backg = '';
}
$img_bg = get_theme_mod('vw_book_store_pro_footer_copyright_image_bg');
?>
<div class="copyright <?php echo esc_attr($img_bg); ?>" style="<?php echo esc_attr($section_backg); ?>">
	<div class="container">
		<div class="row main_sociobox">
			<div class="col-md-7 col-sm-12">
				<p><?php echo ( get_theme_mod( 'vw_book_store_pro_footer_copy' ) ); ?>
				<?php if( get_theme_mod( 'vw_book_store_pro_hide_show_credit_link',true) != '') { ?>
					<span class="credit_link"><?php echo esc_html( vw_book_store_pro_credit_link() ); ?></span></p>
				<?php } ?>
			</div>
			<div class="col-md-5 col-sm-12">
				<?php get_template_part('template-parts/footer/social-icons'); ?>
			</div>
			<?php if ( get_theme_mod('vw_book_store_pro_genral_section_show_scroll_top',true) == "1" ) { ?>
				<a href="javascript:" id="return-to-top"><i class="<?php echo esc_html(get_theme_mod('vw_book_store_pro_genral_section_show_scroll_top_icon')); ?>"></i><span class="screen-reader-text"><?php esc_html_e('Return To Top Button','vw-book-store-pro')?></span></a>
			<?php }?>
		</div>
	</div>
</div>