-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path404.php
More file actions
executable file
·39 lines (39 loc) · 1.52 KB
/
404.php
File metadata and controls
executable file
·39 lines (39 loc) · 1.52 KB
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
<?php get_header(); ?>
<main id="main" class="page_content">
<?php get_template_part("partials/content", "hero");?>
<?php get_sidebar("left"); ?>
<article id="content" class="col_6 error_404 not_found">
<header class="entry_header">
<h1 class="entry_title"><?php _e( 'Oops! That page can’t be found.', 'ffcc' ); ?></h1>
</header>
<div class="entry_content">
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'ffcc' ); ?></p>
<?php get_search_form(); ?>
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
<?php if ( ffcc_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
<div class="widget widget_categories">
<h2 class="widget-title"><?php _e( 'Most Used Categories', 'ffcc' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</div><!-- .widget -->
<?php endif; ?>
<?php
/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'ffcc' ), 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 -->
</article>
<?php get_sidebar("right"); ?>
</main><!-- #main -->
<?php get_footer(); ?>