-
Notifications
You must be signed in to change notification settings - Fork 13
/
404.php
48 lines (47 loc) · 1.55 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
<?php
/**
* 404
*
* 404 page
*
* @package WordPress
* @subpackage community-portal
* @version 1.0.0
* @author Playground Inc.
*/
?>
<?php
get_header();
$options = wp_load_alloptions();
$theme_directory = get_template_directory_uri();
?>
<div class="content">
<div class="not-found">
<div class="not-found__container">
<div class="not-found__content">
<div class="not-found__404">404</div>
<h1 class="not-found__title">
<?php
if ( isset( $options['error_404_title'] ) && strlen( $options['error_404_title'] ) > 0 ) :
?>
<?php print esc_html( $options['error_404_title'] ); ?>
<?php
else :
?>
<?php esc_html_e( 'Page Not Found', 'community-portal' ); ?><?php endif; ?></h1>
<p class="not-found__copy">
<?php if ( isset( $options['error_404_copy'] ) && strlen( $options['error_404_copy'] ) > 0 ) : ?>
<?php echo esc_html( $options['error_404_copy'] ); ?>
<?php else : ?>
<?php esc_html_e( 'Ooops, looks like the page you are trying to reach is no longer available. If you are having trouble locating a destination on Community Portal, try visiting the home page.', 'community-portal' ); ?>
<?php endif; ?>
</p>
<a href="<?php echo esc_html( get_home_url() ); ?>" class="not-found__cta"><?php esc_html_e( 'Return Home', 'community-portal' ); ?></a>
</div>
<div class="not-found__image-container">
<img src="<?php echo esc_url_raw( $theme_directory ); ?>/images/404.png" class="not-found__image" />
</div>
<div>
</div>
</div>
<?php get_footer(); ?>