<div class="mt2cms2-c-l">
	<div class="page-title">
		<h2 class=""><?php print $lang['news']; ?></h2>
	</div>
	<?php	
		if(!$offline && $database->is_loggedin())
			if($web_admin>=$jsondataPrivileges['news'])
				include 'include/functions/edit-news.php';
	?>
    <div class="bd-c">
			<div class="article-title px-4 mb-4">
				<a href="<?php print $site_url; ?>read/<?php print $article['id']; ?>"><?php print $article['title']; ?></a>
				<span class="article-date"><?php print $article['time']; ?></span>


				<?php
				if(!$offline && $database->is_loggedin())
					if($web_admin>=$jsondataPrivileges['news'])
					{
						?>
						<a href="<?php print $site_url; ?>?delete=<?php print $read_id; ?>" onclick="return confirm('<?php print $lang['sure?']; ?>');">
							<i style="color:red;" class="bi bi-trash3" aria-hidden="true"></i>
						</a>
						<?php
					}
				?>			</div>
			<div class="text">
				<div>
					<div class="copy">
						<?php print $article['content']; ?>
					</div>
				</div>
			</div>

    </div>
</div>
