<?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-s2">
            <div class="wrapper-color-s2  business-edit-clr edit-clr" style="background-color:<?php $STB_user_theme->echoData("pnl_color")?>;">
                <div class="content-pannel-s2">
                    <div class="squirrly-strb-background-img" style="width:100%;">
                        <img class="squirrly-strb-background-image" style="height:250px;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/back1.png";  ?>"   />
                    </div>
                    <div style="margin-top:10px;">
                        <div class="autor-name-s2 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>
                        <div class="autor-subtitle-s2 subtitle-options" style="color:<?php $STB_user_theme->echoData("subtitle-color")?>;font-size:<?php $STB_user_theme->echoData("subtitle-size")?>px;">
                            <?php $STB_user_data->echoData("companyslug")?>
                            <?php $STB_user_data->echoData("job"); ?>
                        </div>
                    </div>
                    <?php if($STB_user_data->getData("qrcode")!=null){
                                echo '<div class="qrcode-s2" style="overflow:hidden;width:90px;height:90px;margin-top:20px;"></div>'; 
                            }?>
                    <?php echo '<input class="qr_urls2" type="hidden" value="'. $STB_user_data->getData("qrcode").'"/>';?>
                <div>
            </div>
        </div>
    </div>
</div>
</div>
</div>


<style>
    .modern-theme-wrapper-s2{
        width:100%;
        height:550px;
    }
    .wrapper-color-s2{
        height:100%;
        box-shadow: 0 4px 30px rgba(0,0,0,0.1);
        background-color:#e7d1b9;
        padding:15px;
    }
    .content-pannel-s2{
        width:100%;
        height:100%;
        padding-bottom:10px;
        border:2px solid #063b4b;
        display:flex;
        flex-direction:column;
        align-items:center;
    }
    .autor-name-s2{
        font-size:22px;
        color:#362e2b;
        font-weight:500;
        text-align:center;
    }
    .autor-subtitle-s2{
        font-size:17px;
        font-weight:500;
        color:#362e2b;
        text-align:center;
    }
</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_urls2=$('.qr_urls2').val();
        if(qr_urls2!=''){
            $('.qrcode-s2').qrcode({
                text : qr_urls2,
                height:90,
                width:90,
            });	
        }   
    }(jQuery));
</script>
