-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.php
55 lines (50 loc) · 1.81 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
/**
* The template for displaying 404 pages (Not Found)
*
* @package Fluidity
* @subpackage Main
* @since 20150512
* @author Richard Coffee <[email protected]>
* @copyright Copyright (c) 2018, Richard Coffee
* @link https://github.com/RichardCoffee/fluidity-theme/blob/master/404.php
*/
defined( 'ABSPATH' ) || exit;
$mypage = get_page_slug( '404' );
add_filter( 'fluid_404_container_type', function( $args ) { return 'container'; } );
get_header();
if ( WP_DEBUG && is_user_logged_in() && current_user_can( 'update_core' ) ) { ?>
<div class="panel panel-fluidity collapse-auto">
<div class="panel-heading">
Word Press Information
</div>
<div class="panel-body">
<pre><?php
print_r( $_GET );
print_r( $_POST );
print_r( $wp_query ); ?>
</pre><?php
debug_rewrite_rules(); ?>
</div>
</div><?php
} //*/ ?>
<div class="<?php container_type( $mypage ); ?>">
<div class="row text-center">
<div class="col-md-12">
<article class="error-404 not-found"><?php
fluid()->element( 'h2', [ 'class' => 'page-title' ], __( "Ooops.....Well this is somewhat embarrassing, isn't it?", 'tcc-fluid' ) ); ?>
<div class="page-content"><?php
fluid()->element( 'h3', [ ], __( "Sorry, but we can't seem to find that page.", 'tcc-fluid' ) );
fluid()->element( 'h4', [ ], __( 'It may have moved or been deleted, or the original link could have been incorrect.', 'tcc-fluid' ) ); ?>
<div class="row">
<div class="col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2 col-xs-12"><?php
get_search_form();
the_widget( 'WP_Widget_Recent_Posts' ); ?>
</div>
</div>
</div><!-- .page-content -->
</article>
</div><!-- .col-md-12 -->
</div><!-- .row -->
</div><!-- .<?php container_type( $mypage ); ?> --><?php
get_footer(); ?>