--- /dev/null
+<?php
+ require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php");
+ $pgtitle = "University orientation";
+ $pgdescription = "";
+ $pgcss = ["journal.css"];
+ head($pgtitle, $pgdescription, $pgcss);
+?>
+<body>
+ <table id="content">
+ <tr>
+ <?php include_once("$parts/sidebar.php");?>
+
+ <td id="body">
+ <h1 class="entry-title">University orientation</h1>
+ <p class="written-date">Written in 2025, 5th of August</p>
+ <hr>
+ <p></p>
+ </td>
+ </tr>
+
+ <?php include_once("$parts/footer.php");?>
+ </table>
+</body>
+</html>
<?php
$parts = "{$_SERVER['DOCUMENT_ROOT']}/parts";
-function head($pgtitle, $pgdescription, $pgcss = []){?>
+function head($pgtitle, $pgdescription = null, $pgcss = []){?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="shortcut icon" href="/images/icons/favicon.ico">
<title><?= htmlspecialchars($pgtitle, ENT_COMPAT);?></title>
- <meta name="description" content="<?= htmlspecialchars($pgdescription, ENT_COMPAT);?>">
-
+ <?php
+ if($pgdescription){
+ $content = htmlspecialchars($pgdescription, ENT_COMPAT);
+ echo "<meta name=\"description\" content=\"$content\">";
+ }
+ ?>
+
<link rel="stylesheet" href="/stylesheets/root.css?v=<?= filemtime("{$_SERVER['DOCUMENT_ROOT']}/stylesheets/root.css");?>">
<link rel="stylesheet" href="/stylesheets/component.css?v=<?= filemtime("{$_SERVER['DOCUMENT_ROOT']}/stylesheets/component.css");?>">
<?php foreach($pgcss as $filename):?>