-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path404.php
74 lines (57 loc) · 2.1 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
<?php
/**
* The template for displaying 404 pages (not found)
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<section class="error-404 not-found">
<?php if ( iw26_is_404_singular() ) { ?>
<header class="page-header">
<h1 class="page-title"><?php _e( 'Oops! That page can’t be found.', 'iw26' ); ?></h1>
</header><!-- .page-header -->
<div class="page-content">
<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'iw26' ); ?></p>
<?php get_search_form(); ?>
<br />
<p><?php _e( 'Or search for posts by their syndicated copies', 'iw26' ); ?></p>
<?php
if ( function_exists( 'get_original_of_form' ) ) {
get_original_of_form();
}
?>
</div><!-- .page-content -->
<?php } else if ( iw26_is_404_date() ) { ?>
<header class="page-header">
<h1 class="page-title"><?php _e( 'Oops! There were no posts made during this period', 'iw26' ); ?></h1>
</header><!-- .page-header -->
<div class="page-content">
<p><?php _e( 'It looks there were no posts made during this period', 'iw26' ); ?></p>
<br />
</div><!-- .page-content -->
<?php } else { ?>
<header class="page-header">
<h1 class="page-title"><?php _e( 'Oops! That archive can’t be found.', 'iw26' ); ?></h1>
</header><!-- .page-header -->
<div class="page-content">
<p><?php _e( 'It looks there are no posts available', 'iw26' ); ?></p>
<?php get_search_form(); ?>
<br />
<p><?php _e( 'Or search for posts by their syndicated copies', 'iw26' ); ?></p>
<?php
if ( function_exists( 'get_original_of_form' ) ) {
get_original_of_form();
}
?>
</div><!-- .page-content -->
<?php } ?>
</section><!-- .error-404 -->
</main><!-- .site-main -->
<?php get_sidebar( 'content-bottom' ); ?>
</div><!-- .content-area -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>