<?php
/**
 * Footer content template
 *
 * @package Multi
 */

?>
<?php
$multimagazine_theme  = wp_get_theme();
$multimagazine_credit = $multimagazine_theme->get( 'AuthorURI' );
if ( empty( $multimagazine_credit ) ) {
	$multimagazine_credit = $multimagazine_theme->get( 'ThemeURI' );
}
if ( empty( $multimagazine_credit ) ) {
	$multimagazine_credit = 'https://meetmulti.com/';
}
$footer_content = apply_filters(
	'multimagazine_footer_content',
	get_theme_mod(
		'multi_footer_content',
		sprintf(
			// translators: %s is the theme name, linked to the theme author's site (Author URI in style.css).
			__( 'Powered by %s', 'multimagazine' ),
			sprintf(
				'<a href="%1$s" target="_blank" rel="noopener">%2$s</a>',
				esc_url( $multimagazine_credit ),
				esc_html__( 'Multi Theme', 'multimagazine' )
			)
		)
	)
);
if ( get_theme_mod( 'multi_footer_copyright', MULTIMAGAZINE_FOOTER_COPYRIGHT ) ) {
	$footer_content = '&copy; ' . gmdate( 'Y' ) . ' ' . $footer_content;
}
?>
<p class="footer-message"><?php echo wp_kses_post( $footer_content ); ?></p>
