
<?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-m1">
            <div class="wrapper-color-m1  business-edit-clr edit-clr" style="background-color:<?php $STB_user_theme->echoData("pnl_color")?>;">
                <div class="content-pannel-m1">
                    <div class="squirrly-strb-background-img" style="width:100%;">
                        <img class="squirrly-strb-background-image" style="border-radius:20px;height:420px;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/Tech/back3.png";  ?>"   />
                    </div>
                   
                    <div class="auth-content-m1" style="">
                            <?php if($STB_user_data->getData("img")!=="empty"){
                                        echo '<img class="content-pannel-m1-img"  src="'.$STB_user_data->getData("img") .'" />
                            ';} ?>

                            <div style="margin-top:-10px;">
                                <div class="autor-name-m1 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-m1 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 class="strb-social-icons-m1" style="">
                                <?php if($STB_user_data->getData("facebook")!=null){
                                echo'<div class="squirrly-strb-item-socials-m1">
                                        <a rel="'. $STB_user_data->getData("nofollow").' '. $STB_user_data->getData("noopener").' '. $STB_user_data->getData("noreferrer").'"  href="'.$STB_user_data->getData("facebook").'" target=”_blank"><i  class="fa-brands fa-facebook"></i></a>
                                    </div>';
                                }?>
                                <?php if($STB_user_data->getData("linked")!=null){
                                        echo'<div class="squirrly-strb-item-socials-m1">
                                                <a rel="'. $STB_user_data->getData("nofollow").' '. $STB_user_data->getData("noopener").' '. $STB_user_data->getData("noreferrer").'"  href="'. $STB_user_data->getData("linked").'" target=”_blank"><i class="fa-brands fa-linkedin"></i></a>
                                            </div>';
                                }?>
                                <?php if($STB_user_data->getData("insta")!=null){
                                        echo'<div class="squirrly-strb-item-socials-m1">
                                                <a rel="'. $STB_user_data->getData("nofollow").' '. $STB_user_data->getData("noopener").' '. $STB_user_data->getData("noreferrer").'"  href="'. $STB_user_data->getData("insta").'" target=”_blank"><i class="fa-brands fa-instagram"></i></a>
                                            </div>';
                                }?>
                                <?php if($STB_user_data->getData("twitter")!=null){
                                        echo'<div class="squirrly-strb-item-socials-m1">
                                                <a rel="'. $STB_user_data->getData("nofollow").' '. $STB_user_data->getData("noopener").' '. $STB_user_data->getData("noreferrer").'"  href="'. $STB_user_data->getData("twitter").'" target=”_blank"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style=""><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg></a>
                                            </div>';
                                }?>
                                <?php if($STB_user_data->getData("tok")!=null){
                                        echo' <div class="squirrly-strb-item-socials-m1">
                                                    <a rel="'. $STB_user_data->getData("nofollow").' '. $STB_user_data->getData("noopener").' '. $STB_user_data->getData("noreferrer").'"  href="'.$STB_user_data->getData("tok").'" target=”_blank"><i class="fa-brands fa-tiktok"></i></a>
                                                </div>';
                                }?>
                                <?php if($STB_user_data->getData("youtube")!=null){
                                        echo' <div class="squirrly-strb-item-socials-m1">
                                                    <a rel="'. $STB_user_data->getData("nofollow").' '. $STB_user_data->getData("noopener").' '. $STB_user_data->getData("noreferrer").'"  href="'.$STB_user_data->getData("youtube").'" target=”_blank"><i class="fa-brands fa-youtube"></i></a>
                                                </div>';
                                }?>
                                <?php if($STB_user_data->getData("pin")!=null){
                                        echo' <div class="squirrly-strb-item-socials-m1">
                                                    <a rel="'. $STB_user_data->getData("nofollow").' '. $STB_user_data->getData("noopener").' '. $STB_user_data->getData("noreferrer").'"  href="'.$STB_user_data->getData("pin").'" target=”_blank"><i class="fa-brands fa-pinterest"></i></a>
                                                </div>';
                                }?>
                                <?php if($STB_user_data->getData("email")!=null){
                                        echo' <div class="squirrly-strb-item-socials-m1">
                                                    <a rel="'. $STB_user_data->getData("nofollow").' '. $STB_user_data->getData("noopener").' '. $STB_user_data->getData("noreferrer").'"  href="'.$STB_user_data->getData("email").'" target=”_blank"><i class="fa-brands fa-google"></i></a>
                                                </div>';
                                }?>
                                <?php if($STB_user_data->getData("git")!=null){
                                        echo' <div class="squirrly-strb-item-socials-m1">
                                                    <a rel="'. $STB_user_data->getData("nofollow").' '. $STB_user_data->getData("noopener").' '. $STB_user_data->getData("noreferrer").'"  href="'.$STB_user_data->getData("git").'" target=”_blank"><i class="fa-brands fa-github"></i></a>
                                                </div>';
                                }?>
                            </div>

                            <?php if($STB_user_data->getData("qrcode")!=null){
                                echo '<div class="qrcode-m1" style="overflow:hidden;width:70px;height:70px;position:absolute;right:10px;top:10px;"></div>'; 
                            }?>
                            <?php echo '<input class="qr_urlm1" type="hidden" value="'. $STB_user_data->getData("qrcode").'"/>';?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<style>
    .modern-theme-wrapper-m1{
        width:500px;
        height:470px;
        box-shadow: 0 4px 30px rgba(0,0,0,0.3);
        border-radius:20px;
    }
    .wrapper-color-m1{
        height:100%;
        border-radius:20px;
        box-shadow: 0 4px 30px rgba(0,0,0,0.3);
        background-color:#a3c2b4;
    }
    .content-pannel-m1{
        width:100%;
        padding-bottom:10px;
        position:relative;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
    }
    .auth-content-m1{
        padding:15px;
        background-color:rgba(5,73,66,0.9);
        background-color:rgba(0,0,0,0.4);
        backdrop-filter: blur( 13.5px );
        -webkit-backdrop-filter: blur( 18px );
        width:85%;
        min-height:110px;
        border-radius:20px;
        gap:10px;
        padding-bottom:15px;
        color:#63A77A;
        position:absolute;
        margin-top:320px;
        display:flex;
        flex-direction:column;
    }
    .auth-content-m1:hover{
        box-shadow: 0 4px 30px rgba(255,255,255,0.2);
    }
    .content-pannel-m1-img{
        border-radius:50%;
        height:100px;
        width:100px;
        margin-top:-60px;
        margin-left:10px;   
        z-index:2;
    }
    .autor-name-m1{
        font-size:20px;
        font-weight:700;
        color:white; 
        margin-top:10px;
    }
    .autor-subtitle-m1{
        font-weight:400;
        font-size:15px;
        width:100%;
        line-height:17px;
        color:white; 
        opacity:0.9;
    }
    .strb-social-icons-m1{
        gap:10px;
        width:100%;
        display:flex;
        align-items:flex-end;
        flex-wrap:wrap;
    }
   .squirrly-strb-item-socials-m1{
        padding:5px;
        border-radius:5px;
        height:30px;
        width:30px;
        background-color:gray;
        display:flex;
        align-items:center;
        justify-content:center;
   }
   .squirrly-strb-item-socials-m1:hover{
        opacity:0.7;
        box-shadow: 0 4px 30px rgba(0,0,0, 0.3);
        scale:1.2;
   }
   .squirrly-strb-item-socials-m1 a{
        text-decoration:none;
        color:black;
        display:flex;
        align-items:center;
        justify-content:center;
   }
   .squirrly-strb-item-socials-m1 i{
        font-size:22px;
        display:flex;
        align-items:center;
        justify-content:center;
   }
   .squirrly-strb-item-socials-m1 svg{
        width:20px;
        height:20px;  
        border-radius:2px;
   }
 
</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_urlm1=$('.qr_urlm1').val();
        if(qr_urlm1!=''){
            $('.qrcode-m1').qrcode({
                text : qr_urlm1,
                height:70,
                width:70,
            });	
        }   
    }(jQuery));
</script>
