FCDM-website-new/wp-content/themes/studio-pro/404.php

68 lines
1.8 KiB
PHP

<?php
/**
* Genesis Framework.
*
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Genesis\Templates
* @author StudioPress
* @license GPL-2.0+
* @link https://my.studiopress.com/themes/genesis/
*/
// Remove default loop.
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'genesis_404' );
/**
* This function outputs a 404 "Not Found" error message.
*
* @since 1.6
*/
function genesis_404() {
genesis_markup( array(
'open' => '<article class="entry">',
'context' => 'entry-404',
) );
genesis_markup( array(
'open' => '<h1 %s>',
'close' => '</h1>',
'content' => apply_filters( 'genesis_404_entry_title', __( 'Page not found', 'genesis' ) ),
'context' => 'entry-title',
) );
echo '<div class="entry-content">';
if ( genesis_html5() ) :
/* translators: %s: URL for current website. */
echo apply_filters( 'genesis_404_entry_content', '<p>' . sprintf( __( 'Sorry this page did not make it Full Circle. Please choose a page from the list below to get back on track.', 'genesis' ), trailingslashit( home_url() ) ) . '</p>' );
else :
?>
<p><?php /* translators: %s: URL for current website. */ printf( __( 'Sorry this page did not make it Full Circle. Please choose a page from the list below to get back on track.', 'genesis' ), esc_url( trailingslashit( home_url() ) ) ); ?></p>
<?php
endif;
if ( genesis_a11y( '404-page' ) ) {
echo '<h2>' . esc_html__( 'Sitemap', 'genesis' ) . '</h2>';
genesis_sitemap( 'h3' );
} else {
genesis_sitemap( 'h4' );
}
echo '</div>';
genesis_markup( array(
'close' => '</article>',
'context' => 'entry-404',
) );
}
genesis();