mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 10:57:01 +00:00
19 lines
No EOL
461 B
PHP
19 lines
No EOL
461 B
PHP
<?php require_once("partials/base.php");
|
|
|
|
// Get the hash (only post, not replies) as $id from the router
|
|
if (!empty($id)) {
|
|
$twts = array_filter($twts, function($twt) use ($id) {
|
|
return $twt->hash === $id;
|
|
});
|
|
}
|
|
|
|
$title = "Post: ".$id." - ".$title;
|
|
|
|
include 'partials/header.php';
|
|
?>
|
|
|
|
<h2>Post: #<?= $id ?></h2>
|
|
|
|
<!-- PHP: GET TIMELIE --><?php include 'partials/timeline.php'?>
|
|
|
|
<!-- PHP: GET FOOTER --><?php include 'partials/footer.php';?>
|