<?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-s16">
            <div class="wrapper-color-s16  business-edit-clr edit-clr" style="background-color:<?php $STB_user_theme->echoData("pnl_color")?>;">
                <div class="content-pannel-s16">
                 
                    <div style="height:100%;display:flex;flex-direction:column;gap:15px;align-items:center;justify-content:center;padding-top:30px;padding-bottom:30px;">
                        <div class="autor-name-s16 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-s16 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 class="bio-options" style="color:white;text-align:center;width:80%;font-weight:500;line-height:17px;font-size:13px;color:<?php $STB_user_theme->echoData("bio-color")?>;">
                            <?php echo get_user_meta($user_id,"description",true);?> 
                        </div>

                        <?php if($STB_user_data->getData("qrcode")!=null){
                                    echo '<div class="qrcode-s16" style="overflow:hidden;width:100px;height:100px;margin-top:15px;"></div>'; 
                                }?>
                        <?php echo '<input class="qr_urls16" type="hidden" value="'. $STB_user_data->getData("qrcode").'"/>';?>
                    </div>
                <div>
            </div>
        </div>
    </div>
</div>
</div>
</div>


<style>
    .modern-theme-wrapper-s16{
        width:100%;
        min-height:550px;
    }
    .wrapper-color-s16{
        height:100%;
        box-shadow: 0 4px 30px rgba(0,0,0,0.1);
        border-radius:20px;
        background-color:#142326;
        padding:40px;
    }
    .content-pannel-s16{
        width:100%;
        min-height:550px;
        display:flex;
        flex-direction:column;
        align-items:center;
    }
    .autor-name-s16{
        font-size:26px;
        color:#b6aa9b;
        text-align:center;
        font-weight:500;
        letter-spacing:5px;
    }
    .autor-subtitle-s16{
        font-size:19px;
        margin-top:-20px;
        font-weight:500;
        color:#b6aa9b;
    }
   
</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_urls16=$('.qr_urls16').val();
        if(qr_urls16!=''){
            $('.qrcode-s16').qrcode({
                text : qr_urls16,
                height:100,
                width:100,
            });	
        }   
    }(jQuery));
</script>
