chiro-canto/public/articles/view.php

32 lines
1.1 KiB
PHP
Raw Normal View History

2021-04-02 10:13:23 +02:00
<?php
session_start();
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Explore | Chiro - Canto</title>
<link rel="stylesheet" type="text/css" href="/styles/style.css">
</head>
<?php
include("$root/analytics/matomo.php");
?>
<body>
<?php include("$root/menu.php");?>
<?php include("$root/header.php");?>
<h2>Article</h2>
<h3><?php echo htmlspecialchars($results['article']->title)?></h3>
<div><?php echo htmlspecialchars($results['article']->summary)?></div>
<div><?php echo $results['article']->content?></div>
<p class="pub-date">Published on <?php echo date('j F Y', $results['article']->publication_date)?></p>
<p><a href="./">Return to Homepage</a></p>
<?php include("$root/footer.php");?>
</body>
<script src="/scripts/script.js"></script>
</html>