<footer class="footer">
    <div class="footer__container">
        <div class="footer__menu">
            <?php 
            $footer_menu = casino_b2_get_footer_menu();
            if ($footer_menu) :
                foreach ($footer_menu as $item) : ?>
                    <a href="<?php echo esc_url(casino_b2_get_global_button_url()); ?>"><?php echo esc_html($item['title']); ?></a>
                <?php endforeach;
            endif; ?>
        </div>
        <div class="footer__payments">
            <div class="footer__payment_line">
                <?php 
                $payment_icons = casino_b2_get_footer_payments();
                if ($payment_icons) :
                    foreach ($payment_icons as $item) :
                        $icon = $item['image'];
                        ?>
                        <div class="footer__payment_item"> <img src="<?php echo esc_url($icon['url']); ?>" alt="<?php echo esc_attr($icon['alt']); ?>"></div>
                    <?php endforeach;
                endif; ?>
            </div>
        </div>
        <div class="footer__copyrights">
            <div class="footer__copyrights_image">
                <?php $copyright_img_attr = get_static_image_attr(); ?>
                <img src="<?php echo esc_url(casino_b2_get_footer_copyright_img()); ?>" alt="<?php echo esc_attr($copyright_img_attr['alt']); ?>" title="<?php echo esc_attr($copyright_img_attr['title']); ?>">
            </div>
            <div class="footer__copyrights_text">
                <span><?php echo casino_b2_get_footer_copyright_text(); ?></span>
            </div>
        </div>
    </div>
</footer>
</div>
<?php wp_footer(); ?>

<script src="<?php echo get_template_directory_uri(); ?>/assets/public/js/main.min.js?v=1.1"></script>
</body>
</html>
