-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.php
More file actions
65 lines (54 loc) · 1.44 KB
/
Copy path404.php
File metadata and controls
65 lines (54 loc) · 1.44 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
// Block direct access
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
/**
* @Packge : Winter
* @Version : 1.0
* @Author : Colorlib
* @Author URI : http://colorlib.com/wp/
*
*/
// Call Header
get_header(); ?>
<div id="f0f">
<div class="container">
<div class="row justify-content-center">
<div class="f0f-content text-center">
<div class="f0f-content-inner">
<?php
$errorText = esc_html__( 'Ooops 404 Error !', 'winter' );
if( winter_opt( 'winter_fof_titleone' ) ){
$errorText = winter_opt( 'winter_fof_titleone' );
}
//
echo '<h1 class="h1">'.esc_html( $errorText ).'</h1>';
// Wrong text block
$wrongText = wp_kses_post( __( 'Either something went wrong or the page dosen’t exist anymore.', 'winter' ) );
if( winter_opt('winter_fof_titletwo') ){
$wrongText = winter_opt('winter_fof_titletwo');
}
$anchor = winter_anchor_tag(
array(
'url' => esc_url( site_url( '/' ) ),
'text' => esc_html__( 'Go To Home page', 'winter' ),
'class' => 'button button-contactForm btn_3'
)
);
echo winter_paragraph_tag(
array(
'text' => esc_html( $wrongText )
)
);
echo wp_kses_post( $anchor );
?>
</div>
</div>
</div>
</div>
</div>
<?php
// Call Footer
get_footer();
?>