<?php
if ((isset($haya_post_like_config['open_post'])
	&& $haya_post_like_config['open_post'] == 1)
	&& (isset($haya_post_like_config['open_hot_like'])
	&& $haya_post_like_config['open_hot_like'] == 1)
) {
?>

	<?php if (!empty($haya_post_like_hot_posts) && $page == 1) { ?>
	<div class="card">
		<div class="card-body">
			<div class="card-title">
				<div class="d-flex justify-content-between">
					<div>
						<b><?php echo lang('haya_post_like_hot_post'); ?></b>
					</div>
					<div></div>
				</div>
			</div>
			<ul class="list-unstyled postlist m-0">
				<?php 
				$haya_post_like_old_postlist = $postlist; 
				$postlist = $haya_post_like_hot_posts;
				?>
				
				<?php include _include(APP_PATH.'view/htm/post_list.inc.htm'); ?>
				
				<?php $postlist = $haya_post_like_old_postlist; ?>
			</ul>
		</div>
	</div>
	
	<?php } ?>

<?php } ?>