-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path404.php
56 lines (54 loc) · 1.39 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* The template for displaying 404 pages (not found)
*
* @package Hale
* @copyright Ministry of Justice
* @version 2.0
*/
get_header();
?>
<div id="primary" class="govuk-grid-column-two-thirds">
<section class="hale-error-404">
<h1 class="govuk-heading-l">
<?php
esc_html_e("Page not found","hale");
?>
</h1>
<p class="govuk-body">
<?php
echo esc_html__("If you typed the web address, check it is correct.","hale");
?>
</p>
<p class="govuk-body">
<?php
echo esc_html__("If you pasted the web address, check you copied the entire address.","hale");
?>
</p>
<?php
if (get_theme_mod( 'show_search', 'yes' ) === "yes") {
?>
<p class="govuk-body">
Use the search facility below, select an item from the contents or alternatively
<a class="govuk-link" href="<?php echo esc_attr( get_home_url() ); ?>">return to the home page</a>.
</p>
<?php
get_search_form();
} else {
?>
<p class="govuk-body">
Please <a href="<?php echo get_site_url(); ?>" class="govuk-link">return to the home page</a> or try again.
</p>
<?php
}
?>
<div class="govuk-clearfix"></div>
</section>
<div class="govuk-grid-column-full ">
<?php
dynamic_sidebar( '404-error' );
?>
</div>
</div><!-- #primary -->
<?php
get_footer();