This repository has been archived by the owner on Apr 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
404.php
38 lines (32 loc) · 1.17 KB
/
404.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* 404 page
*/
get_header();
$referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : false;
?>
<div class="alert alert-warning alert-404">
<div class="centered-sm mb-3">
<h1 class="display-1"><?php bs4_i('warning', '', ' ') ?>404</h1>
<p class="text-danger text-center">The page you were looking for could not be found.</p>
</div>
<?php if ($referer) {
echo '<p class="text-info text-center mb-3">';
bs4_i('info lg', '', ' ');
echo 'You landed on this page from <a href="' . $referer . '" title="Go back" onclick="history.back();return false;">here</a>.';
echo '</p>';
} ?>
<form method="get" id="search-form-404"
action="<?= esc_url(home_url('/')) ?>" class="form-inline search-from centered-sm">
<fieldset class="form-group">
<input type="search" name="s" class="search-input form-control"
placeholder="Search …" value="<?php esc_attr( get_search_query() ); ?>"
autosave="search-0" autocorrect="on">
</fieldset>
<button type="submit" class="search-button btn btn-primary hidden-xs-down"><?php
bs4_i('search', '<span class="hidden-sm-down">', ' </span>') ?>Search</button>
</form>
</div>
<?php
// get_sidebar(); // no sidebar!
get_footer();