<?php
if ( get_theme_mod( 'advance_education_pro_footer_copy_bgcolor' ) ) {
	$about_backg = 'background-color:' . esc_attr( get_theme_mod( 'advance_education_pro_footer_copy_bgcolor' ) ) . ';';
} elseif ( get_theme_mod( 'advance_education_pro_footer_copy_bgimage' ) ) {
	$about_backg = 'background-image:url(\'' . esc_url( get_theme_mod( 'advance_education_pro_footer_copy_bgimage' ) ) . '\')';
} else {
	$about_backg = '';
}
?>
<div class="copyright" style="<?php echo esc_attr($about_backg); ?>">
	<div class="container">
		<div class="main_sociobox">
			<p><?php echo esc_html( get_theme_mod( 'advance_education_pro_footer_copy' ) ); ?><span class="credit_link"><?php echo esc_html( advance_education_pro_credit_link() ); ?></span></p>

			<?php if( get_theme_mod( 'advance_education_pro_hide_show_scroll',true) != '') { ?>
				<?php $theme_lay = get_theme_mod( 'advance_education_pro_scroll_top_alignment','Right');
	 				if($theme_lay == 'Left'){ ?>
                    <a href="javascript:" id="return-to-top" class="left"><i class="<?php echo esc_html(get_theme_mod('advance_education_pro_scroll_top_icon')); ?>"></i><span class="screen-reader-text"><?php esc_html_e('Return To Top','advance-education-pro')?></span></a>
                <?php }else if($theme_lay == 'Center'){ ?>
                    <a href="javascript:" id="return-to-top" class="center"><i class="<?php echo esc_html(get_theme_mod('advance_education_pro_scroll_top_icon')); ?>"></i><span class="screen-reader-text"><?php esc_html_e('Return To Top','advance-education-pro')?></span></a>
                <?php }else{ ?>
                    <a href="javascript:" id="return-to-top" class="right"><i class="<?php echo esc_html(get_theme_mod('advance_education_pro_scroll_top_icon')); ?>"></i><span class="screen-reader-text"><?php esc_html_e('Return To Top','advance-education-pro')?></span></a>
            	<?php }?>
			<?php } ?>
		</div>
	</div>
</div>