-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.php
120 lines (105 loc) · 3.15 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
/**
* 404 Template
*
* Basic template when a 404 happens.
*
* @since 1.0.6
*
* @package BoxOfScraps
* @subpackage Templates
*/
?>
<?php get_header(); ?>
<div id="primary" class="content-area">
<div class="grid-container">
<div class="grid-x">
<main id="main" class="site-main small-12 large-8 cell" role="main">
<?php
/** This action is documented in includes/Linchpin/utilities/hooks.php */
do_action( 'boxofscraps_post_entry_content_before' );
?>
<section class="error-404 not-found">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Oops! That page cannot be found.', 'box-of-scraps' ); ?></h1>
</header>
<div class="page-content">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'box-of-scraps' ); ?></p>
<?php get_search_form(); ?>
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
<?php if ( function_exists( 'boxofscraps_categorized_blog' ) ) : ?>
<?php
if ( boxofscraps_categorized_blog() ) : // Only show the widget if site has multiple categories.
?>
<div class="widget widget_categories">
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'box-of-scraps' ); ?></h2>
<ul>
<?php
wp_list_categories(
[
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
]
);
?>
</ul>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="entry-content">
<?php
do_action( 'boxofscraps_content_before' );
?>
<div class="error">
<p class="bottom"><?php esc_html_e( 'The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.', 'box-of-scraps' ); ?></p>
</div>
<p><?php esc_html_e( 'Please try the following:', 'box-of-scraps' ); ?></p>
<ul>
<li><?php esc_html_e( 'Check your spelling', 'box-of-scraps' ); ?></li>
<li>
<?php
printf(
wp_kses(
// Translators: 1. home url.
__( 'Return to the <a href="%s">home page</a>', 'box-of-scraps' ),
array(
'a' => array( 'href' ),
)
),
esc_url( home_url() )
);
?>
</li>
<li>
<?php
printf(
wp_kses(
// Translators: 1. History Back Link.
__( 'Click the <a href="%s">Back</a> button', 'box-of-scraps' ),
array(
'a' => array( 'href' ),
)
),
esc_attr( 'javascript:history.back();' )
);
?>
</li>
</ul>
</div>
<?php
do_action( 'boxofscraps_content_after' );
?>
</div>
</section>
<?php
do_action( 'boxofscraps_post_entry_content_after' );
?>
</main>
</div>
</div>
</div>
<?php
get_footer();