
<div class="row d-lg-none mb-3 userCenterInfo">
    <div class="col-12 p-0">
        <div class="card mb-0 rounded-0" style="margin-top: -10px;">
            <div class=" user-page-background background" <?php if(isset($light_config['user_bg_switch']) && $light_config['user_bg_switch'] == 1){ ?> style="background-image: url('./plugin/zaesky_theme_light/view/img/bgimg/bg-<?php echo $_user['bgimg'];?>.png');" <?php }else{ ?> style="background-image: url('./plugin/zaesky_theme_light/view/img/bgimg/bg-0.png');" <?php }?>>
            </div>
            <div class="card-body">
                <div style="margin-top: -60px;">
                    <div class="d-flex justify-content-between">
                        <div>
                       <!--{hook user_common_avatar_before.htm}-->
                    <img class="avatar-5 border rounded-circle" src="<?php echo $_user['avatar_url'];?>">
                </div>
                <div>
                    <div class="d-flex mt-5 pt-2">
                        <!--{hook user_profile_header_right.htm}-->
                        <?php if ($user && $_user['uid'] === $user['uid']){;?>
                            <a href="<?php echo url('my');?>" class="btn btn-outline-primary">
                               <i class="iconfont icon-wode"></i> <?php echo lang('user_my');?>
                            </a>
                            <?php } ?>
                   </div>
                </div>
                    </div>
                    
                    <div class="name-info">
                        <div class="my-3">
                            <span class="h4 font-weight-bold"><?php echo $_user['username'];?></span>
                            <!--{hook user_profile_username_after.htm}-->
                        </div>
                        <div>
                            <span class="badge jb-blue mr-1">UID:<?php echo $_user['uid'];?></span><span class="badge jb-cyan"><?php echo $_user['groupname'];?></span>
                            <!--{hook user_common_groupname_after.htm}-->
                        </div>
                    </div>
                    <div class="d-flex text-center  mt-3">
                        <div><b><?php echo $_user['threads'];?></b><br/><span class="text-muted"><?php echo lang('mb_threads');?></span></div>
                        <div class="ml-5"><b><?php echo $_user['posts'];?></b><br/><span class="text-muted"><?php echo lang('mb_posts');?></span></div>
                         <!--{hook user_profile_menu_posts_after.htm}-->
                    </div>
            </div>
        </div>
        </div>
        
    </div>
    
</div>

    

<div class="row  d-none d-lg-block">
    <div class="col-lg-12">
        <div class="card user_header" style="overflow: hidden;">
            <div class="w-100 background mp-background jb-dark"  <?php if(isset($light_config['user_bg_switch']) && $light_config['user_bg_switch'] == 1){ ?> style="background-image: url('./plugin/zaesky_theme_light/view/img/bgimg/bg-<?php echo $_user['bgimg'];?>.png');" <?php }else{ ?> style="background-image: url('./plugin/zaesky_theme_light/view/img/bgimg/bg-0.png');" <?php }?>>
                
            </div>
            <div class="card-body">
                    <div class="media" style="margin-top: -90px;">
                        <!--{hook user_common_avatar_before.htm}-->
                        <img class="avatar-6 rounded border mr-4 mt-3" src="<?php echo $_user['avatar_url'];?>">
                        <div class="media-body mt-5 pt-5">
                            <div class="name-info">
                                <div class="mb-3">
                                    <span class="h4 font-weight-bold"><?php echo $_user['username'];?></span>
                                   <!--{hook user_profile_username_after.htm}-->
                                </div>
                                <div class="d-flex justify-content-between">
                                <div>
                                    <span class="badge jb-blue mr-1">UID:<?php echo $_user['uid'];?></span><span class="badge badge-info jb-cyan"><?php echo $_user['groupname'];?></span>
                                    <!--{hook user_profile_groupname_after.htm}-->
                                </div>
                                <div style="margin-top: -24px;">
                                <div class="d-flex justify-content-end">
                                    <!--{hook user_profile_header_right.htm}-->
                                    <?php if ($user && $_user['uid'] === $user['uid']){;?>
                                       <a href="<?php echo url('my');?>" class="btn btn-outline-primary">
                                          <i class="iconfont icon-wode"></i> <?php echo lang('user_my');?>
                                       </a>
                                       <?php } ?>
                               </div>
                            </div>
                                </div>
                                <div>
                                </div>
                            </div>
                            
                        </div>
                    </div>
            </div>
        </div>
    </div>
</div>
