forked from FWS/FWS-TEMPLATE-Website-OnePage
Root-absolute asset paths and ?p= links broke when the site is served from a subfolder (WAMP). Screenshots from the database and avatars from creators.json go through fws_url() as well.
22 lines
539 B
PHP
22 lines
539 B
PHP
<?php
|
|
/**
|
|
* FWS Linux — page 404 (incluse par page.php avec http_response_code(404)).
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
if (!isset($title, $extraCss, $extraJs)) {
|
|
http_response_code(404);
|
|
exit('Page introuvable.');
|
|
}
|
|
|
|
$title = 'Page introuvable | FWS Linux';
|
|
?>
|
|
<section class="hero">
|
|
<h1>Page introuvable</h1>
|
|
<p class="lead">Cette page n'existe pas ou a été déplacée.</p>
|
|
<div class="hero-actions">
|
|
<a class="button button-primary" href="<?= e(fws_url('/?p/index/')) ?>">Retour à l'accueil</a>
|
|
</div>
|
|
</section>
|