-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path404.php
36 lines (36 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
<?php
$referer = $_SERVER['HTTP_REFERER'];
$request = $_SERVER['REQUEST_URI'];
get_currentuserinfo();
error_log('404 - user '.$user_ID.', url: '.$request.', referer: '.$referer);
?>
<?php get_header(); ?>
<?php roots_content_before(); ?>
<div id="content" class="<?php echo CONTAINER_CLASSES; ?>">
<?php roots_main_before(); ?>
<div id="main" class="<?php echo FULLWIDTH_CLASSES; ?>" role="main">
<div class="page-header">
<h1><?php _e('File Not Found', 'roots'); ?></h1>
</div>
<div class="alert alert-block fade in">
<a class="close" data-dismiss="alert">×</a>
<p><?php _e('The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.', 'roots'); ?></p>
</div>
<p><?php _e('Please try the following:', 'roots'); ?></p>
<ul>
<li><?php _e('Check your spelling', 'roots'); ?></li>
<li><?php printf(__('Return to the <a href="%s">home page</a>', 'roots'), home_url()); ?></li>
<li><?php _e('Click the <a href="javascript:history.back()">Back</a> button', 'roots'); ?></li>
</ul>
<?php get_search_form(); ?>
</div><!-- /#main -->
<?php roots_main_after(); ?>
</div><!-- /#content -->
<?php roots_content_after(); ?>
<?php
// if (eas_user_is_admin()) {
_d($wp_query);
echo "<script type='text/javascript'>console.log('DEBUG: ".$wp_query."'');</script>";
// }
?>
<?php get_footer(); ?>