-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path404.php
More file actions
44 lines (39 loc) · 1.23 KB
/
404.php
File metadata and controls
44 lines (39 loc) · 1.23 KB
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
<?php
/**
* The 404 template file
*/
?>
<?php get_header(); ?>
<?php $sidebar_condition = is_active_sidebar( 'sidebar-1' ); ?>
<main id="main" class="site-main">
<div class="container"><?php
if ( $sidebar_condition ) { ?>
<div class="row"><?php
} ?>
<div id="primary" class="site-content content-area col-xs-12<?php if( $sidebar_condition ) { echo ' pull-right col-sm-9'; } ?>">
<section class="error-404 not-found panel box" style="padding: 10px;">
<header>
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can’t be found.', 'pcworms' ); ?></h1>
</header><!-- .page-header -->
<div class="page-content">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'pcworms' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .page-content -->
</section><!-- .error-404 -->
<?php
dynamic_sidebar( 'frontend-content-top' );
dynamic_sidebar( 'content-top' );
dynamic_sidebar( 'frontend-content-bottom' );
dynamic_sidebar( 'content-bottom' );
?>
</div><?php
if ( $sidebar_condition ) {
get_sidebar();
}
if ( $sidebar_condition ) { ?>
</div>
<?php } ?>
</div>
</main><!-- .site-main -->
<?php
get_footer();