-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path404.php
46 lines (43 loc) · 1.63 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
<?php @header( 'HTTP/1.1 404 Not found', true, 404 ); ?>
<?php get_header(); ?>
<article id="page-not-found">
<div class="container mt-4 mt-sm-5 mb-5 pb-sm-4">
<?php
$page = get_page_by_title( '404' );
$content = '';
if ( $page && $page->post_status === 'publish' ) {
$content = trim( apply_filters( 'the_content', $page->post_content ) );
}
?>
<?php if ( $content ): ?>
<?php echo $content; ?>
<?php else: ?>
<div class="knightro-bg my-4">
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-10">
<h1 class="text-primary display-3">Page Not Found</h1>
<p class="lead">Don't give in to despair. Your quest continues here...</p>
<p>Try double-checking the spelling of the address you requested, or search using the field below:</p>
<form class="search-form mb-3" action="https://search.ucf.edu">
<div class="input-group">
<label class="sr-only" for="q-404">Search UCF</label>
<input id="q-404" class="search-field form-control" name="q" type="text" placeholder="Tell us more about what you're looking for...">
<input name="client" type="hidden" value="UCF_Main">
<input name="proxystylesheet" type="hidden" value="UCF_Main">
<span class="input-group-btn">
<button class="search-submit btn btn-primary">Search</button>
</span>
</div>
</form>
<p>
<small>
If you feel you've reached this page in error, please let us know: <a href="https://www.ucf.edu/feedback">www.ucf.edu/feedback</a>.
</small>
</p>
</div>
</div>
</div>
<?php endif; ?>
</div>
</article>
<?php get_footer();?>