<?php defined('ABSPATH') || die('Cheatin\' uh?');?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css?family=Work+Sans&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Abril+Fatface&display=swap" rel="stylesheet">

<div class="frontend-wrapper">
    <div class="scale-wrapper">
        <div class="modern-theme-wrapper-s10">
            <div class="wrapper-color-s10  business-edit-clr edit-clr" style="background-color:<?php $STB_user_theme->echoData("pnl_color")?>;">
                <div class="content-pannel-s10">
                    <div class="squirrly-strb-background-img" style="width:100%;height:100%;">
                        <img class="squirrly-strb-background-image" style="border-radius:20px;height:100%;width:100%;object-fit:cover;filter:opacity(<?php $STB_user_theme->echoData("opacity")?>%) grayscale(<?php $STB_user_theme->echoData("grayscale")?>%) brightness(<?php $STB_user_theme->echoData("brightness")?>%) saturate(<?php $STB_user_theme->echoData("saturation")?>);"  src="<?php if($backgroundImg!="." && $backgroundImg!=null) echo $backgroundImg; else echo "https://starbox-pro.s3.eu-west-1.amazonaws.com/images/Backgrounds/Interior+Design/back2.png";  ?>"   />
                    </div>
                    <div style="position:absolute;width:100%;height:500px;margin-top:25px;display:flex;flex-direction:column;gap:15px;align-items:center;">
                        <div class="autor-name-s10 name-options" style="color:<?php $STB_user_theme->echoData("name-color")?>;font-size:<?php $STB_user_theme->echoData("name-size")?>px;">
                            <?php echo get_user_meta($user_id,"first_name",true);?>
                            <?php echo get_user_meta($user_id,"last_name",true); ?>
                        </div>
                        <?php if($STB_user_data->getData("qrcode")!=null){
                                    echo '<div class="qrcode-s10" style="overflow:hidden;width:100px;height:100px;margin-top:15px;"></div>'; 
                                }?>
                        <?php echo '<input class="qr_urls10" type="hidden" value="'. $STB_user_data->getData("qrcode").'"/>';?>
                    </div>
                <div>
            </div>
        </div>
    </div>
</div>
</div>
</div>

<style>
    .modern-theme-wrapper-s10{
        width:100%;
        height:550px;
    }
    .wrapper-color-s10{
        height:100%;
        box-shadow: 0 4px 30px rgba(0,0,0,0.1);
        border-radius:20px;
    }
    .content-pannel-s10{
        width:100%;
        height:550px;
        display:flex;
        flex-direction:column;
        align-items:center;
    }
    .autor-name-s10{
        font-size:26px;
        color:black;
        font-weight:500;
        letter-spacing:5px;
    }
   
</style>


<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js" integrity="sha512-NFUcDlm4V+a2sjPX7gREIXgCSFja9cHtKPOL1zj6QhnE0vcY695MODehqkaGYTLyL2wxe/wtr4Z49SvqXq12UQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script>
    (function ($){

        let qr_urls10=$('.qr_urls10').val();
        if(qr_urls10!=''){
            $('.qrcode-s10').qrcode({
                text : qr_urls10,
                height:100,
                width:100,
            });	
        }   
    }(jQuery));
</script>
