-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.php
executable file
·96 lines (80 loc) · 2.6 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
/**
* Plantilla 404 (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package ekiline
*/
get_header();
?>
<?php ekiline_main_columns( 'open' ); ?>
<main id="primary" class="<?php ekiline_sort_cols( 'main' ); ?>">
<?php dynamic_sidebar( 'content-w1' ); ?>
<article class="error-404 not-found">
<header class="entry-header">
<h1 class="page-title">
<?php esc_html_e( 'Oops! That page can’t be found.', 'ekiline' ); ?>
</h1>
</header><!-- .entry-header -->
<p>
<?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'ekiline' ); ?>
</p>
<?php get_search_form(); ?>
<div class="row">
<?php /* Reference: https://developer.wordpress.org/reference/functions/wp_get_archives/ */ ?>
<div class="col-md-6">
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
<p>
<?php
/* translators: %1$s is replaced with string */
printf( esc_html__( 'Try looking in the monthly archives. %1$s', 'ekiline' ), esc_attr( convert_smilies( ':)' ) ) );
?>
</p>
<select class="form-control" name="archive-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;">
<option value=""><?php esc_html_e( 'Search', 'ekiline' ); ?></option>
<?php
$args_archive = array(
'type' => 'monthly',
'limit' => '',
'format' => 'option', // html.
'before' => '',
'after' => '',
'show_post_count' => false,
'echo' => true,
'order' => 'DESC',
);
wp_get_archives( $args_archive );
?>
</select>
</div>
<div class="col-md-6">
<?php if ( ekiline_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
<div class="widget widget_categories">
<h2 class="widget-title"><?php esc_html_e( 'Most used categories', 'ekiline' ); ?></h2>
<ul>
<?php
wp_list_categories(
array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
)
);
?>
</ul>
</div><!-- .widget -->
<?php endif; ?>
</div>
<div class="col-12">
<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
</div>
</div>
</article><!-- .error-404 -->
<?php dynamic_sidebar( 'content-w2' ); ?>
</main><!-- #primary -->
<?php get_sidebar(); ?>
<?php ekiline_main_columns( 'close' ); ?>
<?php get_footer(); ?>