<?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>


<div class="frontend-wrapper">
<div class="scale-wrapper">
    <div class="modern-theme-wrapper-m11">
        <div class="wrapper-color-m11  business-edit-clr edit-clr" style="background-color:<?php $STB_user_theme->echoData("pnl_color")?>;">
            <div class="content-pannel-m11">
                <div class="content-top-m11">
                    <div style="display:flex;flex-direction:column;width:320px;align-items:center;justify-content:center;">
                        <div>
                            <div style="margin-top:-50px;display:flex;flex-direction:column;align-items:center;justify-content:center;">
                                <div class="autor-name-m11 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-m11 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>
                        </div>

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

                    <?php if($STB_user_data->getData("img")!=="empty"){
                            echo '<img class="profile-img-m11"  src="'.$STB_user_data->getData("img") .'" />';
                    }?>
                </div>
            </div>
        </div>
    </div>
</div>
</div>

<style>
     .modern-theme-wrapper-m11{
        width:100%;
        min-height:240px;
        box-shadow: 0 4px 30px rgba(0,0,0,0.2);
        border-radius:15px;
        position:relative;
    }
    .wrapper-color-m11{
        min-height:240px;
        border-radius:15px;
        background-color:black;
    }
    .content-pannel-m11{
        width:100%;
        padding:10px;
        position:relative;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
    }
    .content-top-m11{
        width:100%;
        display:flex;
    }
    .profile-img-m11{
        height:230px;
        width:200px;
        border-radius:15px;
        box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    }
    .autor-name-m11{
        font-size:24px;
        font-weight:500;
        color:white; 
    }
    .autor-subtitle-m11{
        font-weight:500;
        font-size:17px;
        opacity:0.7;
        color:#D3D3D3; 
    }
   
</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_urlm11=$('.qr_urlm11').val();
        if(qr_urlm11!=''){
            $('.qrcode-m11').qrcode({
                text : qr_urlm11,
                height:100,
                width:100,
            });	
        }   
    }(jQuery));
</script>
