-
Notifications
You must be signed in to change notification settings - Fork 4
/
404.php
77 lines (60 loc) · 3 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
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/**
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package uw_wp_theme
*/
get_header();
// get the image header.
get_template_part( 'template-parts/header', 'image' );
// get custom 404 settings.
$enable_custom_404 = get_option( 'uw_activate_custom_404' ) ? get_option( 'uw_activate_custom_404' ) : false;
$custom_404_content = get_option( 'custom_404_input' ) ? get_option( 'custom_404_input' ) : '';
?>
<div class="container-fluid ">
<?php echo uw_breadcrumbs(); ?>
</div>
<div class="container-fluid uw-body">
<div class="row">
<main id="primary" class="site-main uw-body-copy col-md-12">
<article id="404" class="hentry">
<div class="woof" style="background: url( <?php echo get_template_directory_uri() . '/assets/images/404.jpg' ?>) center center no-repeat; height: 400px;"></div>
<div class="row">
<div class="col-md-10 align-self-center offset-md-1">
<h1>Not what you were expecting?</h1>
<?php
if ( $enable_custom_404 && $custom_404_content ) {
echo '<div class="custom-404-info mb-5">';
echo wp_kses_post( $custom_404_content );
echo '</div>';
} else {
?>
<p>Dubs tells us this page might not be what you had in mind when you set out on your journey through the UW Web. Don’t worry, you’re not in the Dawg House! Here are some of Dubs’ favorite pages if you feel like exploring: </p>
<ul style="column-count: 2">
<li><a href="//uw.edu/?utm_source=error&utm_medium=click&utm_campaign=links&utm_term=uwhomepage">UW home page</a></li>
<li><a href="//uw.edu/contact/?utm_source=error&utm_medium=click&utm_campaign=links&utm_term=contactus">Contact us</a></li>
<li><a href="//uw.edu/about/?utm_source=error&utm_medium=click&utm_campaign=links&utm_term=abouttheuw">About the UW</a></li>
<li><a href="//uw.edu/admissions/?utm_source=error&utm_medium=click&utm_campaign=links&utm_term=applytotheuw">Apply to the UW</a></li>
<li><a href="//uw.edu/visit/?utm_source=error&utm_medium=click&utm_campaign=links&utm_term=visittheuw">Visit the UW</a></li>
<li><a href="//uw.edu/maps/?utm_source=error&utm_medium=click&utm_campaign=links&utm_term=maps">Maps</a></li>
<li><a href="https://my.uw.edu/">MyUW</a></li>
<li><a href="https://www.uwmedicine.org/">UW Medicine</a></li>
<li><a href="https://www.uwb.edu/">UW Bothell</a></li>
<li><a href="https://www.tacoma.uw.edu">UW Tacoma</a></li>
<li><a href="https://gohuskies.com/">Athletics</a></li>
<li><a href="https://www.washington.edu/news/?utm_source=error&utm_medium=click&utm_campaign=links&utm_term=uwnews">UW News</a></li>
<li><a href="https://arts.washington.edu/">ArtsUW</a></li>
</ul>
<?php } ?>
<p>Or, search the UW web:</p>
<?php get_search_form(); ?>
</div>
</div>
</article>
</main><!-- #primary -->
</div><!-- .row -->
</div><!-- .container -->
<?php
get_footer();