<!--{hook thread_list_inc_start.htm}-->

					<?php 
					if($threadlist) { 
						$have_allowtop = 0;
						foreach($threadlist as &$_thread) {
							$_thread['allowtop'] = forum_access_mod($_thread['fid'], $gid, 'allowtop');
							if($_thread['allowtop']) $have_allowtop = 1;
						}
					}
					?>

					<?php if($threadlist) { foreach($threadlist as &$_thread) { ?>
					<li class="media thread tap <?php echo $_thread['top_class'];?>"
						data-href="<?php echo url("thread-$_thread[tid]");?>" data-tid="<?php echo $_thread['tid'];?>">

						<a <?php if(isset($light_config['user_info_card']) && $light_config['user_info_card']){ ?> data-toggle="popover"  data-trigger="hover" data-html="true" data-content="
						<div class='media'>
							<img class='avatar-4 mr-3' src='<?php echo $_thread['user_avatar_url'];?>'>
							<div class='media-body'>
							  <h5><?php echo $_thread['username'];?></h5>
							  <span class='badge badge-primary mr-2'>UID:<?php echo $_thread['user']['uid'];?></span><span class='badge badge-info mr-2'><?php echo $_thread['user']['groupname'];?></span><span class='badge badge-secondary'><?php echo humandate($_thread['user']['login_date']);?></span>
							  <div class='mt-1'><span class='mr-4'><?php echo lang('threads');?>：<?php echo $_thread['user']['threads'];?></span><span><?php echo lang('posts');?>：<?php echo $_thread['user']['posts'];?></span></div>
							</div>
						  </div>
						" <?php } ?> href="<?php echo url("user-$_thread[uid]");?>" tabindex="-1" class="mt-1 mr-3" >
							<img class="avatar-3" src="<?php echo $_thread['user_avatar_url'];?>">
						</a>
						
						<!--{hook thread_list_inc_avatar_after.htm}-->
						
						<div class="media-body">
							<div class="style3_subject break-all" style="font-size: <?php echo $light_config['thread_subject_size'];?>px;">
								<?php if($have_allowtop) { ?>
								<?php if($_thread['allowtop']) { ?>
								<input type="checkbox" name="modtid" class="thread_checkbox" value="<?php echo $_thread['tid']; ?>" />
								<?php } ?>
								<?php } ?>

								
								<!--{hook thread_list_inc_top_icon_before.htm}-->
								<?php if($_thread['top'] > 0) { ?>
									<span  data-toggle="tooltip" data-placement="top" title="置顶" class="icon-top-<?php echo $_thread['top']; ?>"></span>
									<?php } ?>
								<!--{hook thread_list_inc_subject_top_after.htm}-->

								<!--{hook thread_list_inc_subject_before.htm}-->
								<a href="<?php echo url("thread-$_thread[tid]");?>"><?php echo $_thread['subject'];?></a>
								<!--{hook thread_list_inc_subject_after.htm}-->

								<!--{hook thread_list_inc_filetype_icon_before.htm}-->
								<!-- <?php if($_thread['files'] > 0) { ?><i class="icon small filetype other"></i><?php } ?> -->
								<!--{hook thread_list_inc_filetype_icon_after.htm}-->

								<!--{hook thread_list_inc_lock_icon_before.htm}-->
								<?php if($_thread['closed'] > 0) { ?><i class="icon-lock"></i><?php } ?>
								<!--{hook thread_list_inc_lock_icon_after.htm}-->

							</div>

							<div class="d-flex justify-content-between small mt-1">
								<div class="break-all text-truncate">
									<?php if (isset($light_config['thread_forum_name']) && $light_config['thread_forum_name'] == 1) { ?>

									<?php if ($route == 'index' || $route == 'bbs') { ?>
										<a href="<?php echo url("forum-$_thread[fid]");?>" title="<?php echo $_thread['forumname'];?>" class="text-grey style3-thread-forum-name bg-light"><?php echo $_thread['forumname'];?></a>
									<?php } ?>
									<?php } ?>
									<!--{hook thread_list_inc_username_before.htm}-->
									<a href="<?php echo url("user-$_thread[uid]");?>" class="username text-muted mr-1 <?php if($_thread['lastuid'] && $light_config['thread_last_reply']) { ?> hidden-sm<?php } ?>"
										uid="<?php echo $_thread['uid'];?>"><?php echo $_thread['username'];?>
										<!--{hook thread_list_inc_username_after.htm}-->
									</a>
									<span
										class="date text-grey<?php if($_thread['lastuid'] && $light_config['thread_last_reply']) { ?> hidden-sm<?php } ?>"><?php echo $_thread['create_date_fmt'];?></span>

									<!--{hook thread_list_inc_lastuid_before.htm}-->
									<?php if (isset($light_config['thread_last_reply']) && $light_config['thread_last_reply'] == 1) { ?>  

									<?php if($_thread['lastuid']) { ?>
									<span>
										<span class="text-grey mx-2"><i class="fa fa-reply"></i></span>
										<span class="username text-muted mr-1" uid="<?php echo $_thread['lastuid'];?>"><?php echo $_thread['lastusername'];?>
											<!--{hook thread_list_inc_lastusername_after.htm}-->
										</span>
										<span class="text-grey"><span class="hidden-sm"><?php echo lang('last_reply');?></span>
											<?php echo $_thread['last_date_fmt'];?></span>
									</span>
									<?php } ?>
									<?php } ?>
									<!--{hook thread_list_inc_lastuid_after.htm}-->

								</div>
								<div class="text-muted  text-nowrap">
									<!--{hook thread_list_inc_view_before.htm}-->
									<!-- <span class="ml-2" data-bs-toggle="tooltip" data-placement="top" title="浏览"><span class="iconfont icon-yanjing" ></span><span > <?php echo convert($_thread['views']);?></span></span> -->
									<!--{hook thread_list_inc_view_after.htm}-->

									<!--{hook thread_list_inc_posts_before.htm}-->
									<?php if ($_thread['posts'] > 0) {?>
										<a href="<?php echo url("thread-$_thread[tid]");?>#comments" class="ml-2"><span class="text-muted" data-toggle="tooltip" data-placement="top" title="评论"><span class="iconfont  icon-xiaoxi" ></span><span> <?php echo convert($_thread['posts']);?></span></span></a>
									<?php } ?>
									<!--{hook thread_list_inc_posts_after.htm}-->
								</div>
							</div>
						</div>
					</li>
					<?php }} else { ?>
					<!-- <li>
						<div><?php echo lang('none');?></div>
					</li> -->
					<div class="row justify-content-center">
						<div class="col-6">
							<div class="text-center my-5" style="color:gainsboro"><i
									class="fa fa-bug display-1"></i><br /><?php echo lang('none');?></div>
						</div>
					</div>
					<?php } ?>
					<!--{hook thread_list_inc_end.htm}-->
