-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.php
More file actions
47 lines (39 loc) · 1.36 KB
/
404.php
File metadata and controls
47 lines (39 loc) · 1.36 KB
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
<?php
/**
* Template for displaying 404 pages (Not Found)
*
* 404 template files are called in this order:
*
* 1. 404.php
* 2. index.php
*
* Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/#404-not-found
*
* @package WP_Basic_Bootstrap
* @since WP_Basic_Bootstrap 1.0
*/
$template = get_template_type();
$page_type = get_page_type();
if (BASICBOOTSTRAP_TPLDBG) {
error_log('loaded file : '.__FILE__);
error_log('page type : '.$page_type);
error_log('applied template : '.$template);
}
get_header_hierarchical('404'); ?>
<div id="content" role="main">
<?php get_the_breadcrumb(); ?>
<article id="post-0" class="post not-found jumbotron">
<header class="header">
<h1 class="entry-title"><?php _e('Not Found', 'basicbootstrap'); ?></h1>
</header>
<section class="entry-content">
<h2 class="text-center"><?php esc_html_e('This is somewhat embarrassing, isn’t it?', 'basicbootstrap'); ?></h2>
<p class="text-center">
<?php esc_html_e('It seems we can’t find what you’re looking for. Perhaps searching can help.', 'basicbootstrap'); ?>
</p>
</section>
<?php get_search_form_hierarchical(); ?>
</article>
</div>
<?php get_sidebar_hierarchical('404'); ?>
<?php get_footer_hierarchical('404'); ?>