<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after
 *
 * @package 7up-framework
 */

?>
    <?php
    $page_id = sv_get_value_by_id('sv_footer_page');
    if(!empty($page_id)) {
        sv_get_footer_visual($page_id);
    }
    else{
        sv_get_footer_default();
    }?>
    <!-- show notifical add to card -->
    <?php if(sv_get_option('notifical_add_to_card') == 'on'):?> 
        <div class="alert-add-to-card">
            <svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="SuccessOutlinedIcon"><path d="M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"></path></svg>
            <p><?php esc_html_e("Added to cart","megastore")?></p>
        </div>
    <?php endif;?>
    <!-- pendaica icon carrt -->
    <?php
        if(sv_get_option('icon_cart_footer') == 'on') {
            echo sv_mini_cart_footer();
        }
    ?>
    <?php if(sv_get_option('sv_scroll_top') == 'on'):?>
    	<a href="#" class="scroll_top" title="<?php esc_attr_e("Scroll to Top","megastore")?>" style="display: inline;"><?php esc_html_e("Scroll","megastore")?></a>
    <?php endif;?>
</div>
<?php wp_footer(); ?>
</body>
</html>
