22 lines
675 B
PHTML
22 lines
675 B
PHTML
<?php
|
|
|
|
use MintyPHP\Http\Request;
|
|
|
|
header('HTTP/1.1 404 Not Found');
|
|
|
|
$path = Request::path();
|
|
$home = lurl('');
|
|
$backTarget = Request::safeReturnTarget('');
|
|
$backUrl = $backTarget !== '' ? lurl($backTarget) : $home;
|
|
|
|
?>
|
|
<header>
|
|
<h1><?php e(t('Page not found')); ?></h1>
|
|
<p><?php e(t('The page you requested does not exist or has moved.')); ?></p>
|
|
</header>
|
|
<?php if ($path !== ''): ?>
|
|
<p><small><?php e(t('Requested path')); ?>: <?php e($path); ?></small></p>
|
|
<?php endif; ?>
|
|
<a class="outline secondary" role="button" href="<?php e($backUrl); ?>"><?php e(t('Back')); ?></a>
|
|
<a role="button" href="<?php e($home); ?>"><?php e(t('Home')); ?></a>
|