forked from Tetrakern/fictioneer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
55 lines (47 loc) · 1.41 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
<?php
/**
* 404 - FOUR OH FOUR
*
* @package WordPress
* @subpackage Fictioneer
* @since 4.7.0
*/
?>
<?php
// Setup
$custom_404 = intval( get_option( 'fictioneer_404_page', -1 ) ?: -1 );
?>
<?php get_header(); ?>
<main id="main" class="main singular the-404">
<div class="observer main-observer"></div>
<?php do_action( 'fictioneer_main' ); ?>
<div class="main__background polygon polygon--main background-texture"></div>
<div class="main__wrapper">
<?php do_action( 'fictioneer_main_wrapper' ); ?>
<article class="singular__article padding-left padding-right padding-top padding-bottom">
<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>
</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 );
?>