<?php
/**
 * Template part for displaying a content located in bottom footer.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Blogbuster
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

$blogbuster_footer_bottom_enable = blogbuster_get_customizer_option_value( 'blogbuster_footer_bottom_enable' );

if ( false === $blogbuster_footer_bottom_enable ) {
    return;
}

?>

<div class="site-info">
    <div class="mt-container">
        <div class="copyright-content-wrapper">
            <span class="copyright-content">
                <?php
                    $copyright_content = blogbuster_get_customizer_option_value( 'blogbuster_footer_copyright_info' );
                    echo wp_kses_post( str_replace( '{year}', date('Y'), $copyright_content ) );
                ?>
            </span><!-- .copyright-content -->
            <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'blogbuster' ) ); ?>">
                <?php
                /* translators: %s: CMS name, i.e. WordPress. */
                printf( esc_html__( 'Proudly powered by %s', 'blogbuster' ), 'WordPress' );
                ?>
            </a>
            <span class="sep"> | </span>
                <?php
                /* translators: 1: Theme name, 2: Theme author. */
                printf( esc_html__( 'Theme: %1$s by %2$s.', 'blogbuster' ), 'Blogbuster', '<a href="https://mysterythemes.com/" rel="noopener noreferrer nofollow">Mystery Themes</a>' );
                ?>
        </div><!-- .copyright-content-wrapper -->
    </div><!-- .mt-container -->
</div><!-- .site-info -->