-
Notifications
You must be signed in to change notification settings - Fork 1
/
404.php
65 lines (54 loc) · 1.47 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
56
57
58
59
60
61
62
63
64
65
<?php
// Block direct access
if( !defined( 'ABSPATH' ) ){
exit( 'Direct script access denied.' );
}
/**
* @Packge : Colorlib
* @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 !', 'edumark' );
if( edumark_opt( 'edumark_fof_titleone' ) ){
$errorText = edumark_opt( 'edumark_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.', 'edumark' ) );
if( edumark_opt('edumark_fof_titletwo') ){
$wrongText = edumark_opt('edumark_fof_titletwo');
}
$anchor = edumark_anchor_tag(
array(
'url' => esc_url( site_url( '/' ) ),
'text' => esc_html__( 'Go To Home page', 'edumark' ),
'class' => 'button button-contactForm btn_1 boxed-btn'
)
);
echo edumark_paragraph_tag(
array(
'text' => esc_html( $wrongText )
)
);
echo wp_kses_post( $anchor );
?>
</div>
</div>
</div>
</div>
</div>
<?php
// Call Footer
get_footer();
?>