子比主题美化功能 – 给首页增加一个作者专栏展示聚合区块

子比主题美化功能 – 给首页增加一个作者专栏展示聚合区块

自动调用已经发布过文章的用户,按文章总浏览量即人气值从多到少排序。电脑端默认显示7位作者,手机端默认显示3位作者。兼容手机端和黑夜模式。

该代码请上传到主题index.php的合适位置

<div id="jitheme_home_13_hotuser">
  <div id="Onecad-tuijian" class="home_row module-posts ">
    <div id="user-list" class="home-authors authors_jitheme">
      <div class="container">
        <div class="box-body notop"><div class="title-theme">热门作者专栏<small class="ml10">发挥更具影响力的创作</small></div></div>
        <div class="part-content">
          <div class="items author-items">
    
    
<?php

 
$allusers=get_users([
 
  'has_published_posts' => ['post'] ,//post 文章类型,还可以追加 page 以及自定义文章类型
   'exclude' => array(3)
]);
 $newArrays=array();
foreach ($allusers as $alluser){

 $newArraya = array('name'=> $alluser->display_name,'renqi'=> get_user_posts_meta_count($alluser->ID, 'views'),'userid'=>$alluser->ID);
 array_push($newArrays,$newArraya);
}
function compareAge($a, $b){
    if ($a['renqi'] == $b['renqi']) {
        return 0;
    } elseif ($a['renqi'] < $b['renqi']) {
        return 1;
    } else {
        return -1;
    }
}
usort($newArrays, "compareAge"); // 调用 usort() 函数进行排序
 
$count = 0;
foreach ($newArrays as $newArray){
     
   ?>
   
    <div id="item-author" class="item item-author">
              <div class="item-wrap box b2-radius" style="background:#fff;height:100%">
                <div class="item-bg">
                  <i class="thumb jitheme_jb_<?php echo $count; ?>"></i>
                </div>
                <div class="item-top b2-radius">
                  
              
               
                 
                 
                 
               
             <div class="author-avatar">
                        
                     
                      
                           <?php echo zib_get_data_avatar($newArray['userid']);?><?php echo zib_get_avatar_badge($newArray['userid']); ?>
                       
                    </div>
                    <div class="author-main">
                      <p class="author-name">
                         <?php echo zib_get_user_name('id='.$newArray['userid'].'&class=flex1 flex ac&follow=true'); ?> 
                       
                      </p>
                      <p class="author-meta">
                        <span>
                           影响力 <?php echo $newArray['renqi']; ?></span>
                        <span>
                           文章数 <?php echo (int) count_user_posts($newArray['userid'], 'post', true); ?></span>
                      </p>
                    </div>
                   
                  <div class="author-info">
                    <p>
                      <i class="b2font b2-file-list-2-line"></i>个性签名:<?php echo get_user_desc($newArray['userid']); ?></p>
                  </div>
                  
                  
                  
                  
                  <div class="author-info">
                <p>
                    <i class="ico icon-article"></i>个性签名:<?php echo get_user_desc($newArray['userid']); ?></p>            </div>
                  
                  
                  
                  
                  
                  
                  
                  
                  <div class="author-btn">
                    <div  class="looo">
                      <div class="user-s-follow jitheme-button">
                        <?php echo zib_get_author_header_btns($newArray['userid']); ?>
                      </div>
                    </div>
                  </div>
                </div>
              
              
              
              
              
          <div class="item-bottom">
                  <h3 class="item-bottom-title">最近更新</h3>
                  <div class="item-bottom-cont">
                    <div class="items">
                        
                        
                        
                        <?php
$lzj=new WP_Query(array(
  'posts_per_page' =>2, //每页返回2个
  'post_type' => 'post',
 'post_status'=>'publish',
 'author'=>$newArray['userid'],
'orderby' => 'views',
));

while ($lzj->have_posts()) :$lzj->the_post(); 
 $category  = get_the_category($post->id);
?>

                        
                        
                      <div class="ap-item">
                        <a href="<?php esc_url(the_permalink()); ?>" target="_blank" class="ap-item-wrap has-thumb">
                          <div class="ap-item-thumb  b2-radius">
                           <?php echo zib_post_thumbnail(); ?>
                          </div>
                          <div class="ap-item-main">
                            <h3 class="ap-item-title"><?php the_title(); ?></h3>
                             <h4 class="ap-item-meta"><div class="jitheme_cat"><div class="post-list-cat"><?php echo  $category [0]->cat_name;?></div></div></h4>
                          </div>
                        </a>
                      </div>
                        
                   <?php endwhile; ?>     
                        
                        
                        
                    </div>
                  </div>
                </div>
              </div>
            </div>

   
        <?php if (++$count > 6) { 
   
        break; // 达到指定数量后跳出循环
    }
}
?>
    
          
            <div id="item-tobe-author" class="item item-tobe-author item-author">
              <div class="item-wrap box b2-radius">
                <div class="item-wrapb b2-radius">
                  <div class="item-bg">
                    <i class="thumb jitheme_jb_7"></i>
                  </div>
                  <div class="tobe-author-wrap">
                    <div class="tobe-author b2-radius">
                      <h2 class="item-title">
                        <i class="ico icon-zuozhe"></i><?php echo get_bloginfo('name'); ?></h2>
                      <div class="item-cont">
                        <p>利用优知新庞大的曝光矩阵,全方位提升你的个人影响力,获得更多创作分成和粉丝群体。</p>
                        <h4 class="lw-item-meta">
                          <span class="meta-item meta-avatars">
                         
                        <?php  $count2 = 0;foreach ($newArrays as $newArray){
                            
      if ($count2 < 5) { // 判断计数器小于3时才输出
   echo zib_get_data_avatar($newArray['userid']) ;  
   
    $count2++; // 每次输出后将计数器加1
    } else {
        break; // 达到指定数量后跳出循环
    }
}
   ?>
                         
                         
                         
                          </span>
                          <span class="meta-item meta-views">人气作者</span></h4>
                        <h3 class="count">
                          <strong><?php echo count($allusers); ?></strong>
                          <span>位作者加入</span></h3>
                      </div>
                      <div class="item-btns">
                        <a href="/contribution" class="listygo-btn listygo-btn-bj listygo-btn--style1 b2-radius">
                          <span class="listygo-btn__icon">
                            <i class="fa fa-fw fa-pencil-square-o"></i>
                          </span>
                          <span class="listygo-btn__text">我要投稿</span></a>
                        <a href="/user" class="listygo-btn listygo-btn-wbj listygo-btn--style1 b2-radius">
                          <span class="listygo-btn__icon">
                            <i class="fa fa-calendar-check-o"></i>
                          </span>
                          <span class="listygo-btn__text">用户中心</span></a>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

自定义css

/*仿极主题首页人气作者开始*/
.item-author .author-avatar .avatar {
    box-sizing: border-box;
    padding-top: 0;
    border: .3rem solid #ff0000;
    border-radius: 100%;
    overflow: hidden;
}

.item-author .author-avatar:after {
    content: '创';
    display: block;
    position: absolute;
    left: 50%;
    bottom: 97%;
    margin-left: -25%;
    width: 50%;
    height: 33.3333%;
    background-image: url(https://image.uisdc.com/wp-content/uploads/2021/06/uisdc_n2.png);
    background-position: center;
    background-repeat: no-repeat;
    -webkit-background-size: contain;
    background-size: contain;
    color: #ffffff;
    font-size: 12px;
    line-height: 2.25em;
    text-align: center;
    -webkit-transform: scale(.8);
    -ms-transform: scale(.8);
    transform: scale(.8);
    -webkit-transform-origin: center bottom;
    -ms-transform-origin: center bottom;
    transform-origin: center bottom;
}
.author-main{
    padding-left:70px;
}
.author-name .focus-color{
    display:none!important;
}
.looo .msg-icon,.looo .top{
    display:none;
}
.home-authors .item-tobe-author .item-cont .count {
    margin-bottom: 15px;
}
.home-authors .item-tobe-author .item-cont .count strong {
    font-size: 35px;
    color: #fe2c55;
    font-weight: bold;
}
.home-authors .item-tobe-author .item-cont .count span {
    font-size: 15px;
    font-weight: normal;
}
.home-authors .item-tobe-author .item-btns {
    font-size: 14px;
    text-align: center;
    display: flex;
    color: #fff;
}
.listygo-btn {
    margin-left:5px;
}
.listygo-btn__icon {
    min-width: 40px;
    min-height: 40px;
    display: inline-grid;
    place-content: center;
    border-radius: 40px;
    position: relative;
    z-index: 1;
}
.listygo-btn-wbj {
    color: #fe2c55;
    border: 1px solid #fe2c55;
    background-color: #fff;
}
.listygo-btn--style1:hover::before {
    left: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transition: width 0.8s ease
}
.listygo-btn--style1::before {
    position: absolute;
    content: "";
    left: 100%;
    width: 0%;
    height: 100%;
    background-color: #fe2c55;
    opacity: 0;
    visibility: hidden;
    z-index: -1
}
.listygo-btn--style1:hover .listygo-btn__icon::before {
    transform: scale(1) rotate(180deg)
}
.listygo-btn--style1:hover .listygo-btn__icon i,.listygo-btn--style1:hover span {
    transition: all 0.4s ease;
    color: #fff
}
.listygo-btn__icon i {
    z-index: 1;
    font-size: 20px;
    transform: rotate(0deg);
}
.listygo-btn-bj {
    color: #fff;
    border: 0;
    background-color: #fe2c55;
}
.listygo-btn {
    overflow: hidden;
    outline: 0;
   
    box-shadow: none;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    width: 100%;
    transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    padding: 0;
    display: inline-flex;
    align-items: center;
    position: relative;
    text-align: center;
    z-index: 1;
}
.home-authors .item-tobe-author .item-title {
    color: #fe2c55;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
}
.home-authors .item-tobe-author .item-cont {
    font-size: 15px;
    color: #b5b5b5;
    height: auto;
    line-height: 30px;
}
.home-authors .item-tobe-author .lw-item-meta {
    font-weight: normal;
    font-size: 12px;
    position: relative;
    line-height: 24px;
    color: #8f8f8f;
    margin: 20px 0px;
}
.home-authors .item-tobe-author .meta-avatars {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    margin-left: 5px;
}
.home-authors .item-tobe-author .meta-avatars img {
    display: inline-block;
    width: 30px;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    border-radius: 100%;
    overflow: hidden;
    margin-left: -10px;
    border-radius: 50%;
    transform: translateX(0px);
    overflow: hidden;
    border: 3px solid #fff;
}
.home-authors .author-items {
   
   margin-bottom:20px;
    display: flex;
    flex-wrap: wrap;
}
.home-authors .item, .home-authors .group-item .item-images .img-item {
   padding:5px 5px;
    width:25%;
}
 
.item-author .item-wrap, .home-authors .item-wrap {
background-image: linear-gradient(to top, #ff0844 0%, #ffb199 100%);
    overflow: hidden;
    position: relative;
    -webkit-transition: all .2s;
    transition: all .2s;
}
.item-author .item-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    padding-top: 35%;
    overflow: hidden;
}
.item-author .item-bg::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
.home-authors .item-tobe-author .tobe-author {
    background: #fff;
    height: calc(100% - 20px);
    box-sizing: border-box;
    position: relative;
}
.item-author .item-bg .thumb {
    padding-top: 50%;
    position: absolute;
    left: -31.25px;
    right: -31.25px;
    top: -31.25px;
    width: auto;
}
.jitheme_jb_1 {
                background-image: linear-gradient(to top, #4481eb 0%, #04befe 100%);
            }

            .jitheme_jb_2 {
                background-image: linear-gradient(to top, #0819ff 0%, #ff99f2b5 100%);
            }
            .jitheme_jb_3 {
                background-image: linear-gradient(to right, #dedde6, #e5d2df);
            }
            .jitheme_jb_4 {
                background-image: linear-gradient(to right, #ede1d2, #e1dfda);
            }
            .jitheme_jb_5 {
                background-image: linear-gradient(to right, #d9d7d2, #c7b6b1);
            }
            .jitheme_jb_6 {
                background-image: linear-gradient(to right, #e4e1db, #c9d4d4);
            }
            .jitheme_jb_7 {
                background-image: linear-gradient(to top, #ff0844 0%, #ffb199 100%);
            }
            .jitheme_jb_8 {
                background-image: linear-gradient(-60deg, #ff5858 0%, #f09819 100%);
            }
            .jitheme_jb_0 {
                background-image: linear-gradient(180deg, #2af598 0%, #009efd 100%);
            }
.item-author .item-bg::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0%;
    padding-top: 11%;
    background-image: -webkit-linear-gradient(top,rgba(255,255,255,0.7) 0%,#fff 70%);
    background-image: linear-gradient(180deg,rgba(255,255,255,0.7) 0%,#fff 70%);
}
.home .home-authors .item-tobe-author .tobe-author, .home .item-author .item-top {
    margin: 30px 10px 10px 10px;
    padding: 15px;
}
.item-author .item-top {
    position: relative;
    box-shadow: 0 12.5px 25px 0 rgba(0,0,0,0.02);
    background-color: #fff;
    z-index: 1;
}
.item-author .author-intro {
    padding-left: 70px;
}
.item-author .author-intro {
    display: block;
    position: relative;
    min-height: 37.5px;
    padding-left: 70px;
}
 
.item-author .author-avatar {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 37.5px;
    margin:15px 10px;
    width: 60px;
    height: 60px;
}
 
.author-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    white-space: nowrap;
}
#user-list .item-author .author-name .uname {
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.author-name .uname, .author-name b {
    font-weight: bold;
    font-size: 15px;
    margin-right: 10px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.author-name .long-label {
    display: flex;
    justify-content: center;
    align-items: center;
}
.author-meta span, .ap-item-meta {
    font-size: 13px;
    color: #b5b5b5;
    margin-right: 5px;
}
.item-author .author-info {
    font-size: 14px;
    margin-top: 25px;
    margin-right: -16px;
    margin-left: -16px;
    padding: 0px 16px;
    color: #b5b5b5;
    text-align: center;
    line-height: 30px;
    background: #f5f5f5;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
}
.item-author .author-info i {
    margin-right: 5px;
}
.home .item-author .author-btn {
    position: absolute;
    right: 0;
    top: 80px;
    display: none;
    width: 100%;
}
.item-author .author-btn .looo {
    line-height: 13px;
    font-size: 13px;
    width: 100%;
    color: #333;
    background: #fff;
}
.item-author .item-bottom {
    font-size: 8.75px;
    position: relative;
    z-index: 1;
    padding: 0px 15px 15px 15px;
    height: auto;
    overflow: hidden;
    box-sizing: border-box;
}
.home .item-author .item-bottom-title {
    margin-top: 0px;
}
.item-author .item-bottom-title {
    font-size: 15px;
    color: #b5b5b5;
    font-weight: normal;
    margin-top: 20px;
    margin-bottom: 0px;
}
.item-author .ap-item {
    font-size: 14px;
    margin: 15px 0px 0px;
}
 
.item-author .ap-item-wrap.has-thumb {
    padding-left: 110px;
    min-height: 47.5px;
}
.item-author .ap-item-wrap {
    display: block;
    position: relative;
}
 
 
 .item-author .ap-item-wrap .ap-item-thumb img{
     width:100%;
     height:100%;
 }
.item-author .ap-item-wrap .ap-item-thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height:70px;
    overflow: hidden;
}
.item-author .ap-item-wrap.has-thumb .ap-item-title {
    height: 45px;
    overflow: hidden;
    font-weight: normal;
}
.item-author .ap-item-wrap .ap-item-title {
    font-size: 14px;
}
.item-author .ap-item-wrap .ap-item-title {
    
    line-height: 1.5em;
   /* color: var(--key-color);*/
   color:#333;
    margin-bottom: 7px;
}
.author-meta span, .ap-item-meta {
    font-size: 13px;
    color: #b5b5b5;
    margin-right: 5px;
}
.post-list-cat {
    font-size: 12px;
}
.ap-item-meta .post-list-cat:before {
    content: '#';
    /* top: 2px; */
    line-height: 12px;
    width: 12px;
    height: 12px;
    
    margin-right: 5px;
    color: #fe2c55;
    text-align: center;
    float: left;
    background: rgba(254, 44, 85, 0.2);
    border-radius: 50%;
    display: block;
    /* position: absolute; */
    left: 0;
}
.item-author .author-avatar img {
    box-sizing: border-box;
    padding-top: 0;
    height: 60px;
    border: 0px solid #ffbc00;
    border-radius: 100%;
    overflow: hidden;
}
.item-author .item-wrap:hover .item-top .author-btn,.home-authors .item-tobe-author .item-wrap:hover .item-top .author-btn {
    display: block;
}
.jitheme-ranks .item-author .author-btn {
    position: absolute;
    right: 0;
    top: 100px!important;
    display: none;
    width: 100%
}
.user-s-follow button + button {
    margin-left: 10px;
}
.item-author .author-btn .user-s-follow {
    padding: 10px;
    text-align: center
}
.user-s-follow button {
    padding: 5px 10px;
    border:0px!important;
}
.blue-color {
    color: #2997f7!important;
    background-color: rgba(41, 151, 247, .1)!important;
}
.red-color {
    color: #ff5473!important;
    background-color: rgba(255, 84, 115, .1)!important;
}
.item-author .author-btn .user-s-follow {
    padding: 10px;
    text-align: center;
}
@media (max-width: 768px) {
    
    .home-authors .item, .home-authors .group-item .item-images .img-item{
        width:100%!important;
    }
    
    #item-author:nth-child(n+4) {
display:none;
}
}
/*仿极主题首页人气作者结束*/

该代码请上传到主题index.php的合适位置

<div class="home-authors"  id="Onecad-tuijian">
    <div class="container">
        
        <div class="part-content">
            <div class="items author-items">
           
           
           
           
           
           
           
       <?php
 
$allusers=get_users([
    'has_published_posts' => ['post'], //post 文章类型,还可以追加 page 以及自定义文章类型
//  'exclude' => array(1)
]);
 

 $newArrays=array();
foreach ($allusers as $alluser){

 $newArraya = array('name'=> $alluser->display_name,'renqi'=> get_user_posts_meta_count($alluser->ID, 'views'),'userid'=>$alluser->ID);
 array_push($newArrays,$newArraya);
}
function compareAge($a, $b){
    if ($a['renqi'] == $b['renqi']) {
        return 0;
    } elseif ($a['renqi'] < $b['renqi']) {
        return 1;
    } else {
        return -1;
    }
}
usort($newArrays, "compareAge"); // 调用 usort() 函数进行排序
 
$count = 0;
$bgnum=0;
foreach ($newArrays as $newArray){
     
   ?>    
           
           
           
           
           
           
                <div class="item item-author">
    <div class="item-wrap">
        <div class="item-bg">
                        <i class="thumb thumb-<?php echo ++$bgnum; ?>"></i>
        </div>
        <div class="item-top">
            
                <div class="author-avatar"><?php echo zib_get_data_avatar($newArray['userid']);?><?php echo zib_get_avatar_badge($newArray['userid']); ?></div>
                <div class="author-main">
                    <p class="author-name">
                        <?php echo zib_get_user_name('id='.$newArray['userid'].'&class=flex1 flex ac&follow=true'); ?>          </p>
                    <p class="author-meta">
                        <span>人气 <?php echo $newArray['renqi']; ?></span>
                        <span>文章 <?php echo (int) count_user_posts($newArray['userid'], 'post', true); ?></span>
                    </p>
                </div>
            
            <div class="author-info">
                <p><i class="ico icon-article"></i><?php echo get_user_desc($newArray['userid']); ?></p>            </div>
            
         
             <div class="author-btn">
                    <div  class="looo">
                      <div class="user-s-follow jitheme-button">
                       <?php echo zib_get_author_header_btns($newArray['userid']); ?>
                      </div>
                    </div>
                  </div>
   
            
        </div>
        <div class="item-bottom">
            <p class="item-bottom-title">最新更新</p>
            <div class="item-bottom-cont">
                <div class="items">
                    
                                   <?php
$lzj=new WP_Query(array(
    'posts_per_page' =>2, //每页返回2个
    'post_type' => 'post',
 'post_status'=>'publish',
 'author'=>$newArray['userid'],
'orderby' => 'views',
));

while ($lzj->have_posts()) :$lzj->the_post(); 
 $category  = get_the_category($post->id);
?>

                    
     
     
               <div class="ap-item">
    <a   href="<?php esc_url(the_permalink()); ?>" class="ap-item-wrap has-thumb" target="_blank">
        <div class="ap-item-thumb">
          <?php echo zib_post_thumbnail(); ?>   </div>
        <div class="ap-item-main">
            <p class="ap-item-title"><?php the_title(); ?></p>
                        <p class="ap-item-meta"><span class="but c-blue"><i class="fa fa-folder-open-o" aria-hidden="true"></i><?php echo  $category [0]->cat_name;?></span></p>
        </div>
    </a>
</div>




  <?php endwhile; ?>     








</div>
            </div>
        </div>
    </div>
</div>



    <?php if (++$count > 6) { 
   
        break; // 达到指定数量后跳出循环
    }
}
?>
    








         <div class="item item-tobe-author">
                    <div class="tobe-wrap" data-eq-height=".item-author" style="height:390px;">
                    <div class="item-wrap">
                        <div class="tobe-author-wrap">
                        <div class="tobe-author">
                            <p class="item-title">  <i class="fa fa-fw fa-pencil-square-o"></i> 人气作者榜 </p>
                            <div class="item-cont">
                                <p>利用本站庞大的曝光矩阵,全方位提升你的个人影响力,获得更多职场机会和收入。</p>
                                
                                
                                
                                <p>  <span class="meta-item meta-avatars">
                         
                        <?php  $count2 = 0;foreach ($newArrays as $newArray){
                            
      if ($count2 < 5) { // 判断计数器小于3时才输出
   echo zib_get_data_avatar($newArray['userid']) ;  
   
    $count2++; // 每次输出后将计数器加1
    } else {
        break; // 达到指定数量后跳出循环
    }
}
   ?>
                         
                         
                         
                          </span> <span class="meta-item meta-views">人气作者</span></p>
                                <p class="count">
                                    <strong><?php echo count($allusers); ?></strong>
                                    <span>位作者加入</span>
                                </p>
                            </div>
                            <div class="item-btns">
                                <a href="/newposts" target="_blank" class="btn btn-orange">我要投稿</a>
                                <a href="/user" target="_blank" class="btn btn-orange-border">用户中心</a>
                            </div>
                        </div>
                        </div>
                    </div>
                    </div>
                </div>
                
                
                
                
                
            </div>
        </div>
    </div>
</div>

自定义css

/*仿优设网人气排行首页开始*/
@media (max-width:768px) {
.home-authors .item, .home-authors .group-item .item-images .img-item {
    width: 100%!important;
}
  .item-author:nth-child(n+4) {
display:none;

}
 
}


.home-authors .item-tobe-author .meta-avatars img {
    display: inline-block;
    width: 30px;
    height:30px;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    border-radius: 100%;
    overflow: hidden;
    margin-left: -10px;
    border-radius: 50%;
    transform: translateX(0px);
    overflow: hidden;
    border: 3px solid var(--main-bg-color);
}

.ap-item-meta .cat:before {
    content: '#';
    /* top: 2px; */
    line-height: 19px;
    width: 19px;
    height: 19px;
    margin-right: 5px;
    color: #fe2c55;
    text-align: center;
    float: left;
    background: rgba(254, 44, 85, 0.2);
    border-radius: 50%;
    display: block;
    /* position: absolute; */
    left: 0;
}

.item-author .author-btn .looo {
    line-height: 13px;
    font-size: 13px;
    width: 100%;
    color: #333;
    background: var(--body-bg-color);
}


.item-author .item-wrap:hover .item-top .author-btn,.home-authors .item-tobe-author .item-wrap:hover .item-top .author-btn {
    display: block;
}


.item-author .author-btn {
    position: absolute;
    right: 0;
    top: 90px!important;
    display: none;
    width: 100%
}


.item-author .author-btn .user-s-follow {
   padding:10px;
    text-align: center
}

.looo .msg-icon,.looo .top{
    display:none;
}
















.home-authors .part-title{
    font-size: 18px;
}
.home-authors .author-items {
    margin: 0 auto;
    display:flex;
    flex-wrap:wrap;
}
.home-authors .part-title, .part-hot-channel .part-title, .part-zt .part-title, .archive-list-see .part-title, .post-related .part-title, .hunter-recent-hot .part-title, .hunter-last-week .part-title {
    font-size: 21px;
    color: #333333;
    margin-bottom: 50px;
}
.home-authors .part-title .sub-link .icon-btn-bang, .hunter-recent-hot .part-title .sub-link .icon-btn-bang, .hunter-last-week .part-title .sub-link .icon-btn-bang {
    color: #ff6000;
}

.home-authors .item, .home-authors .group-item .item-images .img-item {
    margin-bottom: 30px;
}
.home-authors .item, .home-authors .group-item .item-images .img-item {
    padding: 0 5px;
}
.home-authors .item, .home-authors .group-item .item-images .img-item {
    width: 25%;
}
.author-name .text-ellipsis{
    max-width:80px;
}
.item-author .item-wrap, .home-authors .item-tobe-author .item-wrap {
    padding: 30px 15px 10px;
}
.item-author .item-wrap, .home-authors .item-tobe-author .item-wrap {
    background-color: var(--main-bg-color);
  height:390px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    -webkit-transition: all .2s;
    -o-transition: all .2s;
    transition: all .2s;
}
.item-author .item-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    padding-top: 100%;
    overflow: hidden;
}
.item-author .item-bg::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 54%;
    background-color: var(--main-bg-color);
    z-index: 1;
}
.item-author .item-bg .thumb-1 {
    background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
}

.item-author .item-bg .thumb-2 {
   background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    
}

.item-author .item-bg .thumb-3 {
    background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

.item-author .item-bg .thumb-4 {
 background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
}

.item-author .item-bg .thumb-5 {
   background-image: linear-gradient(180deg, #2af598 0%, #009efd 100%);
}

.item-author .item-bg .thumb-6{
    background-image: linear-gradient(to top, #ff0844 0%, #ffb199 100%);
}

.item-author .item-bg .thumb-7 {
     background-image: linear-gradient(to top, #4481eb 0%, #04befe 100%);
}














.item-author .item-bg .thumb {
    padding-top: 100%;
    position: absolute;
    left: -50px;
    right: -50px;
    top: -50px;
    width: auto;
  
}
.thumb {
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: cover;
    background-size: cover;
    width: 100%;
    height: 0;
}
.item-author .item-bg::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 54%;
    padding-top: 11%;
   
}
.item-author .item-top {
    padding: 15px;
}
.item-author .item-top {
    position: relative;
    -webkit-box-shadow: 0 20px 40px 0 rgba(0,0,0,0.02);
    box-shadow: 0 20px 40px 0 rgba(0,0,0,0.02);
    padding: 15px;
     background: var(--main-bg-color);
    -webkit-border-radius: 11px;
    -moz-border-radius: 11px;
    border-radius: 11px;
    z-index: 1;
}
 
.item-author .author-avatar {
    font-size: 50px;
    top: 0;
}
.home-authors .item  .author-avatar .avatar, .home-authors .group-item .item-images .img-item  .author-avatar .avatar {
    border-color: #ff6000;
}
.item-author .author-avatar .avatar {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-top: 0;
    height: 50px;
    border: 2px solid #ffbc00;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    border-radius: 100%;
    overflow: hidden;
}
.home-authors .item:nth-child(1) .author-avatar:after, .home-authors .group-item .item-images .img-item:nth-child(1) .author-avatar:after {
    content: '01';
     
}
.home-authors .item:nth-child(2) .author-avatar:after, .home-authors .group-item .item-images .img-item:nth-child(2) .author-avatar:after {
    content: '02';
   
}
.home-authors .item:nth-child(3) .author-avatar:after, .home-authors .group-item .item-images .img-item:nth-child(3) .author-avatar:after {
    content: '03';
     
}
.home-authors .item:nth-child(4) .author-avatar:after, .home-authors .group-item .item-images .img-item:nth-child(4) .author-avatar:after {
    content: '04';
   
}
.home-authors .item:nth-child(5) .author-avatar:after, .home-authors .group-item .item-images .img-item:nth-child(5) .author-avatar:after {
    content: '05';
     
}
.home-authors .item:nth-child(6) .author-avatar:after, .home-authors .group-item .item-images .img-item:nth-child(6) .author-avatar:after {
    content: '06';
   
}
.home-authors .item:nth-child(7) .author-avatar:after, .home-authors .group-item .item-images .img-item:nth-child(7) .author-avatar:after {
    content: '07';
   
}
.item-author .author-avatar {
    position: absolute;
    
    width: 50px;
}
.author-main {
    padding-left: 58px;
}
.item-author .author-name {
    font-size: 20px;
    color:var(--key-color);
    margin-bottom: 25px;
    white-space: nowrap;
}
.item-author .author-info {
    font-size: 13px;
    margin-top: 25px;
    margin-right: -16px;
    margin-left: -16px;
    padding: 0px 16px;
    color: var(--muted-color);
    text-align: center;
    line-height: 30px;
    background: var(--body-bg-color);
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
}
.item-author .author-avatar:after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    bottom: 75%;
    margin-left: -25%;
    width: 50%;
    height: 33.3333%;
     background-image: url(/pic/uisdc_n2.png);
    background-position: center;
    background-repeat: no-repeat;
    -webkit-background-size: contain;
    background-size: contain;
    color: #ffffff;
    font-size: 12px;
    line-height: 32px;
    text-align: center;
    -webkit-transform: scale(.8);
    -ms-transform: scale(.8);
    transform: scale(.8);
    -webkit-transform-origin: center bottom;
    -ms-transform-origin: center bottom;
    transform-origin: center bottom;
}
.item-author .author-name {
          font-size: 15px;
    
    display: flex;
    white-space: nowrap;
    margin-bottom: 20px;
    
}
.item-author .author-name .uname {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.item-author .author-meta {
    font-size: 13px;
}
.item-author .author-meta {
    font-size: 12px;
    line-height: 1.5;
    height: 20px;
    overflow: hidden;
    font-weight: normal;
    color: var(--muted-color);
}
.item-author .author-meta span:first-child {
    position: relative;
    margin-right: 5px;
}
.item-author .author-meta {
    font-size: 13px;
}

.btn-orange, .widget-talk .talk-item .talk-wrap:hover .btn, .list-item-home-news .widget-btns .btn:hover, .listitem-widget-job .widget-btns .btn:hover, .list-item-home-job .widget-btns .btn:hover, .search-widget-hotsearch .widget-btns .btn:hover, .group-sidebar .widget-talk .widget-btns .btn {
    background: #ff6000;
    color: #fff;
}
.author-name count{
    display:none;
}
 
.item-author .item-bottom-title {
    font-size: 14px;
    color: #b5b5b5;
    font-weight: normal;
    
}


.item-author .item-bottom {
    font-size: 14px;
    position: relative;
    z-index: 1;
   margin-top:10px;
    height: auto;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.item-author .ap-item {
    font-size: 14px;
}

.home-authors .item-tobe-author .item-btns a:first-child {
    color: #fff!important;
}
.home-authors .item-tobe-author .item-btns a:last-child {
    color: #ff6000!important;
}

.home-authors .item-tobe-author .item-btns a:visited {
    color: inherit;
}
.item-author .ap-item {
    font-size: 12px;
    
}
 
.item-author .ap-item-wrap.has-thumb {
    padding-left: 42%;
     
}
.item-author .ap-item-wrap {
    display: block;
    position: relative;
}
 
.item-author .ap-item-wrap .ap-item-thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 40%;
    overflow: hidden;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    height:100%;
}
.item-author .ap-item-wrap .ap-item-thumb .thumb {
    -webkit-transition: all .2s;
    -o-transition: all .2s;
    transition: all .2s;
    padding-top: 70%;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
.item-author .ap-item-wrap.has-thumb .ap-item-title {
   height: 40px;
    overflow: hidden;
    font-weight: normal;
    line-height: 20px;
}
 
.item-author .ap-item-wrap .ap-item-title {
    font-size: 14px;
}

.item-author .ap-item-wrap .ap-item-meta {
    font-size: 11px;
}
.home-authors .item-tobe-author .item-wrap {
    background-image: url(/pic/uisdc-rank-bg.jpg);
    -webkit-background-size: cover;
    background-size: cover;
    -webkit-background-origin: top center;
    background-origin: top center;
    background-repeat: no-repeat;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height: 100%;
}
.home-authors .item-tobe-author .tobe-author-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 30px 20px 20px;
}
.home-authors .item-tobe-author .tobe-author {
    background-color: var(--main-bg-color) ;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
}
.home-authors .item-tobe-author .item-title {
      color: #ff6000;
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}
.home-authors .item-tobe-author .item-title a {
    display: block;
    color: var(--muted-color);
}
.home-authors .item-tobe-author .item-cont {
    font-size: 16px;
    line-height: 28px;
}
.home-authors .item-tobe-author .item-cont .meta-views{
    font-size:14px;
}
.home-authors .item-tobe-author .item-cont {
    font-size: 16px;
    color: var(--muted-color);
    line-height: 24px;
}
 
.home-authors .item-tobe-author .item-cont .count {
    margin-bottom: 10px;
}
.home-authors .item-tobe-author .item-cont .count strong {
    font-size: 40px;
    color: #ff6000;
}
.home-authors .item-tobe-author .item-cont .count span {
    font-size: 16px;
}
.home-authors .item-tobe-author .item-btns {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    text-align: center;
}
.home-authors .item-tobe-author .item-btns .btn:first-child {
    padding:10px;
     
}
.home-authors .item-tobe-author .item-btns .btn:last-child {
       width: 46%;
    display: inline-block;
    line-height: 20px;
    border: 1px #ff6000 solid;
    padding: 10px;
    
    
}
.btn-orange, .widget-talk .talk-item .talk-wrap:hover .btn, .list-item-home-news .widget-btns .btn:hover, .listitem-widget-job .widget-btns .btn:hover, .list-item-home-job .widget-btns .btn:hover, .search-widget-hotsearch .widget-btns .btn:hover, .group-sidebar .widget-talk .widget-btns .btn {
    background: #ff6000;
    color: #fff;
}
.home-authors .item-tobe-author .item-btns .btn {
    width: 46%;
    display: inline-block;
    line-height: 20px;
}
.btn-orange-border, .talk-singular-prev-next .item-backhome .item-content .btn {
    background-color: transparent;
    color: #ff6000;
    border: 1px solid #ff6000;
}
/*仿优设网人气排行首页结束*/
© 版权声明
THE END