-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
404.php
59 lines (45 loc) · 1.32 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
<?php
/**
* 404 - FOUR OH FOUR
*
* @package WordPress
* @subpackage Fictioneer
* @since 4.7.0
*/
// Setup
$custom_404 = intval( get_option( 'fictioneer_404_page', -1 ) ?: -1 );
// Header
get_header( null, array( 'no_index' => 1 ) );
?>
<main id="main" class="main singular the-404">
<?php do_action( 'fictioneer_main', '404' ); ?>
<div class="main__wrapper">
<?php do_action( 'fictioneer_main_wrapper' ); ?>
<article class="singular__article">
<section class="singular__content the-404__content content-section">
<?php if ( $custom_404 > 0 ) : ?>
<?php echo apply_filters( 'the_content', get_the_content( null, null, $custom_404 ) ); ?>
<?php else : ?>
<div class="the-404__message">
<h1><?php _ex( '404', 'Heading for the 404 page.', 'fictioneer' ); ?></h1>
</div>
<?php endif; ?>
</section>
</article>
</div>
<?php do_action( 'fictioneer_main_end', '404' ); ?>
</main>
<?php
// Footer arguments
$footer_args = array(
'post_type' => null,
'post_id' => null,
'template' => '404.php',
'breadcrumbs' => array(
[fcntr( 'frontpage' ), get_home_url()],
[_x( '404', '404 breadcrumb for the 404 page.', 'fictioneer' ), null]
)
);
// Get footer with breadcrumbs
get_footer( null, $footer_args );
?>