forked from SayflyAM/Amir-Travel-Europe---Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.php
More file actions
44 lines (34 loc) · 1.13 KB
/
404.php
File metadata and controls
44 lines (34 loc) · 1.13 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 template for displaying 404 pages (not found).
*
* @package Travel Tour
*/
get_header();
$sidebar_layout = travel_tour_get_sidebar_layout();
if( $sidebar_layout == 'no-sidebar' ) {
$content_column_class = 'col-md-12';
} else {
$content_column_class = 'col-md-9';
}
?>
<section class="my-64">
<div class="container-xl">
<h1 class="text-center">
<?php esc_html_e( 'Page not found', 'default' ); ?>
</h1>
<div class="row">
<?php if ( $sidebar_layout == 'left-sidebar' ) : ?>
<div class="col-sm-3"><?php get_sidebar(); ?></div>
<?php endif; ?>
<div class="<?php echo esc_attr( $content_column_class ); ?> d-flex flex-column justify-content center align-items-start">
<p class="text-center"><?php printf( esc_html__( 'It looks like nothing was found at this location. Maybe try visiting %s directly?', 'default' ), '' ); ?></p>
<?php get_search_form(); ?>
</div>
<?php if( $sidebar_layout == 'right-sidebar' ) : ?>
<div class="col-sm-3"><?php get_sidebar(); ?></div>
<?php endif; ?>
</div>
</div>
</section>
<?php get_footer(); ?>