<?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-s8">
            <div class="wrapper-color-s8  business-edit-clr edit-clr" style="background-color:<?php $STB_user_theme->echoData("pnl_color")?>;">
                <div class="content-pannel-s8">
                    <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;background-color:rgba(192,196,182,0.4);border-radius:20px;width:90%;height:500px;margin-top:25px;backdrop-filter: blur( 13.5px );display:flex;gap:15px;justify-content:center;">
                        <?php if($STB_user_data->getData("qrcode")!=null){
                                    echo '<div class="qrcode-s8" style="overflow:hidden;width:90px;height:90px;margin-top:15px;"></div>'; 
                                }?>
                        <?php echo '<input class="qr_urls8" type="hidden" value="'. $STB_user_data->getData("qrcode").'"/>';?>
                        
                        <div style="margin-top:15px;display:flex;flex-direction:column;height:470px;width:60%;border:2px solid white;overflow:hidden;padding:5px;border-radius:20px;">
                            <div class="autor-name-s8 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="bio-options" style="color:#5b655c;font-weight:500;line-height:17px;font-size:13px;width:100%;color:<?php $STB_user_theme->echoData("bio-color")?>;">
                                <?php echo get_user_meta($user_id,"description",true);?> 
                            </div>
                        </div>
                    </div>
                <div>
            </div>
        </div>
    </div>
</div>
</div>
</div>

<style>
    .modern-theme-wrapper-s8{
        width:100%;
        height:550px;
    }
    .wrapper-color-s8{
        height:100%;
        box-shadow: 0 4px 30px rgba(0,0,0,0.1);
        border-radius:20px;
    }
    .content-pannel-s8{
        width:100%;
        height:550px;
        display:flex;
        flex-direction:column;
        align-items:center;
        position:relative;
    }
    .autor-name-s8{
        font-size:24px;
        line-height:40px;
        color:#5b655c;
        font-weight:500;
    }
   
</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_urls8=$('.qr_urls8').val();
        if(qr_urls8!=''){
            $('.qrcode-s8').qrcode({
                text : qr_urls8,
                height:90,
                width:90,
            });	
        }   
    }(jQuery));
</script>
