				<?php
					empty($allowupdate) AND $allowupdate = 0;
					empty($allowdelete) AND $allowdelete = 0;
					empty($allowpost) AND $allowpost = 0;
				?>
				<!--{hook post_list_inc_start.htm}-->

				<?php if($postlist) { foreach($postlist as $_post) { ?>
					<li class="media <?php echo $_post['classname'];?>" id="<?php echo $_post['pid'];?>" data-pid="<?php echo $_post['pid'];?>" data-uid="<?php echo $_post['uid'];?>">
						<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 $_post['user_avatar_url'];?>'>
							<div class='media-body'>
							  <h5><?php echo $_post['username'];?></h5>
							  <span class='badge badge-primary mr-2'>UID:<?php echo $_post['user']['uid'];?></span><span class='badge badge-info mr-2'><?php echo $_post['user']['groupname'];?></span><span class='badge badge-secondary'><?php echo humandate($_post['user']['login_date']);?></span>
							  <div class='mt-1'><span class='mr-4'><?php echo lang('threads');?>：<?php echo $_post['user']['threads'];?></span><span><?php echo lang('posts');?>：<?php echo $_post['user']['posts'];?></span></div>
							</div>
						  </div>
						" <?php } ?> href="<?php echo url("user-$_post[uid]");?>" class="mr-3" tabindex="-1">
							<img class="avatar-3" src="<?php echo $_post['user_avatar_url'];?>">
						</a>
						<!--{hook post_list_inc_avatar_after.htm}-->
						<div class="media-body">
							<div class="d-flex justify-content-between text-muted">
								<div>
									<!--{hook post_list_inc_username_before.htm}-->
									<span class="username">
										<a href="<?php echo url("user-$_post[uid]");?>" class="text-muted font-weight-bold"><?php echo $_post['username'];?></a>
									</span>
									<!--{hook post_list_inc_username_after.htm}-->
									<?php if (isset($light_config['post_show_time']) && $light_config['post_show_time'] == 0) { ?>
									<!--{hook post_list_inc_create_date_before.htm}-->
							<span class="date text-grey"><?php echo $_post['create_date_fmt'];?></span>
							<!--{hook post_list_inc_create_date_after.htm}-->
							<?php }?>
							<?php if (isset($light_config['post_show_time']) && $light_config['post_show_time'] == 1) { ?>
									<div>
									<!--{hook post_list_inc_create_date_before.htm}-->
							<span class="date text-grey small"><?php echo $_post['create_date_fmt'];?></span>
							<!--{hook post_list_inc_create_date_after.htm}-->
									</div>
							<?php }?>
								</div>
								<div>
									<?php if (isset($light_config['post_func_position']) && $light_config['post_func_position'] == 0) { ?>
									<!--{hook post_list_inc_quote_before.htm}-->
									<?php if($allowpost) { ?>
										<a href="javascript:void(0)" data-tid="<?php echo $_post['tid'];?>" data-pid="<?php echo $_post['pid'];?>"  data-quser="<?php echo strip_tags($_post['username']);?>" class="text-grey mod_post_reply mr-3"><i class="icon-reply" title="<?php echo lang('quote');?>"></i> <span class="d-none"><?php echo lang('quote');?></span></a>
										<?php } ?>
										<!--{hook post_list_inc_quote_after.htm}-->
										
										<!--{hook post_list_inc_update_before.htm}-->
										<?php if($allowupdate || $_post['allowupdate']) { ?>
										<a href="<?php echo url("post-update-$_post[pid]");?>" class="text-grey post_update mr-3"><i class="far fa-edit" title="<?php echo lang('edit');?>"></i> <span class="d-none"><?php echo lang('edit');?></span></a>
										<?php } ?>
										<!--{hook post_list_inc_update_after.htm}-->
									
										<!--{hook post_list_inc_delete_before.htm}-->
										<?php if($allowdelete || $_post['allowdelete']) { ?>
										<a data-href="<?php echo url("post-delete-$_post[pid]");?>" data-confirm-text="<?php echo lang('confirm_delete');?>" href="javascript:void(0);" class="text-grey post_delete _confirm mr-3"><i class="far fa-trash-alt" title="<?php echo lang('delete');?>"></i> <span class="d-none"><?php echo lang('delete');?></span></a>
										<?php } ?>
										<!--{hook post_list_inc_delete_after.htm}-->
										<?php }?>
										

									<!--{hook post_list_inc_floor_before.htm}-->
									<?php if($_post['floor'] && isset($light_config['post_show_floors']) && $light_config['post_show_floors'] == 1) { ?>
										<span class="floor-parent badge badge-secondary ">
											<span class="floor"><?php echo $_post['floor'];?></span><?php echo lang('floor');?>
										</span>
										<?php } ?>
										<!--{hook post_list_inc_floor_after.htm}-->
								</div>
							</div>
							
							<div class="message mt-1 break-all">
							
								<!--{hook post_list_inc_subject_before.htm}-->
								<?php if(!empty($_post['subject'])) { ?>
									<h6><a href="<?php echo url("thread-$_post[tid]");?>" target="_blank"><?php echo $_post['subject'];?></a></h6>
								<?php } ?>
								<!--{hook post_list_inc_subject_after.htm}-->
								
								<!--{hook post_list_inc_message_before.htm}-->
								<p class="my-2"><?php echo $_post['message_fmt'];?></p>
								<!--{hook post_list_inc_message_after.htm}-->
								
								<!--{hook post_list_inc_filelist_before.htm}-->
								<?php echo post_file_list_html($_post['filelist']);?>
								<!--{hook post_list_inc_filelist_after.htm}-->
								

							</div>
							<?php if (isset($light_config['post_func_position']) && $light_config['post_func_position'] == 1) { ?>

							<div class="text-grey">
								<!--{hook post_list_inc_quote_before.htm}-->
								<?php if($allowpost) { ?>
									<a href="javascript:void(0)" data-tid="<?php echo $_post['tid'];?>" data-pid="<?php echo $_post['pid'];?>"  data-quser="<?php echo strip_tags($_post['username']);?>" class="text-grey mod_post_reply mr-3"><i class="icon-reply" title="<?php echo lang('quote');?>"></i> <span class="d-none"><?php echo lang('quote');?></span></a>
									<?php } ?>
								<!--{hook post_list_inc_quote_after.htm}-->
								
								<!--{hook post_list_inc_update_before.htm}-->
								<?php if($allowupdate || $_post['allowupdate']) { ?>
								<a href="<?php echo url("post-update-$_post[pid]");?>" class="text-grey post_update mr-3"><i class="icon-edit" title="<?php echo lang('edit');?>"></i> <span class="d-none"><?php echo lang('edit');?></span></a>
								<?php } ?>
								<!--{hook post_list_inc_update_after.htm}-->
							
								<!--{hook post_list_inc_delete_before.htm}-->
								<?php if($allowdelete || $_post['allowdelete']) { ?>
								<a data-href="<?php echo url("post-delete-$_post[pid]");?>" data-confirm-text="<?php echo lang('confirm_delete');?>" href="javascript:void(0);" class="text-grey post_delete _confirm mr-3"><i class="icon-remove" title="<?php echo lang('delete');?>"></i> <span class="d-none"><?php echo lang('delete');?></span></a>
								<?php } ?>
								<!--{hook post_list_inc_delete_after.htm}-->
								
								
							</div>
							<?php } ?>
						</div>
					</li>
				<?php }} else {?>
					<div class="text-center my-5 no-comment post">
						<i class="far fa-comments h1 text-gray"></i>
						<p class="text-gray mt-1"><?php echo lang('no_comment');?></p>
					</div>
					<?php }?>
				<!--{hook post_list_inc_end.htm}-->
				