<?php

/**
 *
 * Footer copyright
 *
 * @author      CodeGearThemes
 * @category    WordPress
 * @package     Acoustics
 * @version     1.0.0
 *
 */

$acoustics_copyright = get_theme_mod('acoustics_footer_copyright', '')
?>

<div class="section-copyright text-center">
	<div class="container">
		<div class="site-info">
			<?php if (!empty($acoustics_copyright)) : ?>
				<small><?php echo wp_kses_post($acoustics_copyright); ?></small>
			<?php else : ?>
				<small><?php printf(__('&copy; %1$s %2$s', 'acoustics'), esc_attr(date_i18n(__('Y', 'acoustics'))), esc_attr(get_bloginfo('name'))); ?></small>
			<?php endif; ?>

			<?php
				/* translators: %1$1s theme copyright tags*/
				$credits 	= sprintf( __( 'Proudly powered by %1$1s', 'acoustics' ), '{theme_author}' );

				$tags 		= array( '{theme_author}' );
				$replace 	= array( '<a rel="nofollow" target="_blank" href="'.esc_url(THEMEURL).'">' . esc_html__( 'Acoustics', 'acoustics' ) . '</a>', get_bloginfo( 'name' ), '&copy;', date('Y') );

				$credits 	= str_replace( $tags, $replace, $credits );
			?>

			<small class="copyright-credit">
				<?php echo wp_kses_post( $credits ); ?>
			</small>
		</div><!-- .site-info -->
	</div>
</div>
