-
Notifications
You must be signed in to change notification settings - Fork 1
/
404.php
64 lines (40 loc) · 1.79 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
<?php
/**
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Tiny_Framework
* @since Tiny Framework 1.0
*/
get_header(); ?>
<div id="primary" class="content-area">
<?php tha_content_before(); // custom action hook ?>
<main id="main" class="site-main" itemscope="itemscope" itemprop="mainContentOfPage">
<?php tha_content_top(); // custom action hook ?>
<?php tha_entry_before(); // custom action hook ?>
<section class="error-404 not-found">
<?php tha_entry_top(); // custom action hook ?>
<header class="page-header">
<h1 class="page-title" itemprop="headline"><?php esc_html_e( 'This is somewhat embarrassing, isn’t it?', 'tiny-framework' ); ?></h1>
</header><!-- .page-header -->
<div class="page-content">
<p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'tiny-framework' ); ?></p>
<?php get_search_form(); ?>
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
<?php
// translators: %1$s: smiley
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'tiny-framework' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>
<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
</div><!-- .page-content -->
<?php tha_entry_bottom(); // custom action hook ?>
</section><!-- .error-404 -->
<?php tha_entry_after(); // custom action hook ?>
<?php tha_content_bottom(); // custom action hook ?>
</main><!-- .site-main -->
<?php tha_content_after(); // custom action hook ?>
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>