<?php if ($route == 'index' && isset($haya_post_info_config['show_index_list_forum_username_before']) && $haya_post_info_config['show_index_list_forum_username_before'] == 1) { ?>
	<a href="<?php echo url("forum-$_thread[fid]");?>" target="_blank" title="<?php echo $_thread['forumname'];?>" class="badge badge-secondary small mr-2 haya-post-info-home-thread-forum-username-before">
		<?php echo $_thread['forumname'];?>
	</a> 
<?php } ?>

<?php 
if (isset($haya_post_info_config['today_thread_hightlighter']) 
	&& $haya_post_info_config['today_thread_hightlighter'] == 1
) { 
	if (date('Y-m-d', $_thread['create_date']) == date('Y-m-d')) {
		$haya_post_info_today_thread_hightlighter_class = 'today';
	} else {
		$haya_post_info_today_thread_hightlighter_class = '';
	}
?>
<span class="haya-post-info-username <?php echo $haya_post_info_today_thread_hightlighter_class; ?>">
<?php
}
?>
