fictioneer/404.php

56 lines
1.4 KiB
PHP
Raw Normal View History

2023-01-21 01:31:34 +01:00
<?php
/**
* 404 - FOUR OH FOUR
*
* @package WordPress
* @subpackage Fictioneer
* @since 4.7
2023-01-21 01:31:34 +01:00
*/
?>
<?php
// Setup
$custom_404 = intval( get_option( 'fictioneer_404_page', -1 ) ?: -1 );
2023-01-21 01:31:34 +01:00
?>
<?php get_header(); ?>
<main id="main" class="main singular the-404">
2023-07-30 17:00:40 +02:00
<div class="observer main-observer"></div>
2023-01-21 01:31:34 +01:00
<?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 );
?>