<style>
  .mod-button>.btn-secondary{
    color: var(--black);
    background-color: var(--white);
    border: 1px solid var(--gray-200);
  }
  .thread_left_func{
    border-radius: 100px;
    width: 48px;
    height: 48px;
    background-color: var(--white);
    box-shadow: 0 2px 10px 2px var(--gray-200);
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 16px;
    margin-bottom: 5px;
  }

  .thread_left_func>i{
    font-size: 25px;
  }
</style>
<div class="text-center text-gray">
<a href="#comments"  class="thread_left_func"><i class="iconfont icon-huida"></i></a>
<span><?php echo $thread['posts'];?></span>
<?php if (isset($light_config['thread_left_func']) && $light_config['thread_left_func'] == 1) { ?>
<?php $haya_post_like_thread_check = haya_post_like_find_by_uid_and_pid($uid, $first['pid']); ?>
<?php  if($haya_post_like_thread_check){ ?>
<a href="javascript:;" role="button" class="thread_left_func add_func js-haya-post-like-thread-del text-primary"  data-pid="<?php echo $first['pid'];?>" title="<?php echo $haya_post_like_is_delete ? lang('haya_post_like_unlike') : lang('haya_post_like_has_like'); ?>"><i class="iconfont icon-zan"></i></a>
<?php } else { ?>
<a href="javascript:;" class="thread_left_func add_func js-haya-post-like-thread-add"  data-pid="<?php echo $first['pid'];?>" title="点赞本帖"><i class="iconfont icon-zan"></i></a>
<?php } ?>
<span class="haya-post-like-thread-user-count"><?php echo intval($first['likes']); ?></span>

<?php $haya_favorite_check_favorite = haya_favorite_find_by_uid_and_tid($uid, $tid); ?>
<?php if($haya_favorite_check_favorite){ ?>
<a href="javascript:;" class="thread_left_func add_func js-haya-favorite-del text-primary" data-tid="<?php echo $tid;?>" title="<?php echo lang('haya_favorite_delete_favorite'); ?>"><i class="iconfont icon-tiezishoucang"></i></a>
<?php } else { ?>
<a href="javascript:;" class="thread_left_func add_func js-haya-favorite-add" data-tid="<?php echo $tid;?>" title="<?php echo lang('haya_favorite_add_favorite'); ?>"><i class="iconfont icon-tiezishoucang"></i></a>
<?php } ?>
<span class="haya-favorite-user-count"><?php echo intval($thread['favorites']); ?></span>
<?php }?>
</div>


<?php if (isset($light_config['thread_left_tools']) && $light_config['thread_left_tools'] == 1) { ?>
<?php if($gid > 0 && $gid < 5) { ?>
  <div class="text-center mt-3">
    <div class=" btn-group-vertical w-100 mod-button" role="group" aria-label="">
      <?php if(param(0) != 'thread') { ?>
      <label class="btn btn-secondary mb-0">
        <input type="checkbox" data-target='input[name="modtid"]' class="checkall mr-2" value=""
          aria-label="<?php echo lang('checkall');?>" /><?php echo lang('checkall');?>
      </label>
      <?php } ?>
      <!--{hook thread_list_mod_delete_before.htm}-->
      <button class="btn btn-secondary delete" data-modal-url="<?php echo url("mod-delete");?>"
        data-modal-title="<?php echo lang('delete');?>" data-modal-arg=".threadlist"
        data-modal-size="md"><?php echo lang('delete');?></button>
      <!--{hook thread_list_mod_delete_after.htm}-->
      <button class="btn btn-secondary move" data-modal-url="<?php echo url("mod-move");?>"
        data-modal-title="<?php echo lang('move');?>" data-modal-arg=".threadlist"
        data-modal-size="md"><?php echo lang('move');?></button>
      <!--{hook thread_list_mod_top_before.htm}-->
      <button class="btn btn-secondary top" data-modal-url="<?php echo url("mod-top");?>"
        data-modal-title="<?php echo lang('top');?>" data-modal-arg=".threadlist"
        data-modal-size="md"><?php echo lang('top');?></button>
      <!--{hook thread_list_mod_top_after.htm}-->
      <button class="btn btn-secondary _close" data-modal-url="<?php echo url("mod-close");?>"
        data-modal-title="<?php echo lang('close');?>" data-modal-arg=".threadlist"
        data-modal-size="md"><?php echo lang('close');?></button>
      <!--{hook thread_list_mod_close_after.htm}-->
    </div>
  </div>
  <?php } ?>
  <?php }?>
  