<?php
/**
 * Template part for displaying footer copyright text
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Blogin_Aarambha
 */


$content = get_theme_mod(
    'blogin_aarambha_footer_copyright_text',
	__( 'Copyright {copyright} {current_year} {site_title}', 'blogin-aarambha' )
);

$link_open = get_theme_mod(
    'blogin_aarambha_footer_copyright_link_target',
    ['desktop'=>'true']
);

$link_target = ( $link_open && array_key_exists( 'desktop', $link_open ) ) ? '_blank' : '_self';

$content = str_replace( '{copyright}', '&copy;', $content );
$content = str_replace( '{current_year}', date_i18n( _x( 'Y', 'copyright date format; check date() on php.net', 'blogin-aarambha' ) ), $content );
$content = str_replace( '{site_title}', get_bloginfo( 'name' ), $content );
$content .= sprintf(
/* translators: 1: title. */
	esc_html__( ' -  Powered by %1$s', 'blogin-aarambha' ),
	'<a href="'.esc_url('https://www.aarambhathemes.com/').'" rel="designer" target="'. esc_attr( $link_target ) .'">' . esc_html__('Aarambha Themes', 'blogin-aarambha') . '</a>');
?>

<div class="site-info footer-copyright-wrap">
    <?php echo wp_kses_post( do_shortcode( $content ) ); ?>
</div><!-- .site-info -->
