forked from Piratenpartei/Pirate-Rogue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
55 lines (42 loc) · 1.92 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
<?php
/**
* The template for displaying 404 error pages.
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
get_header(); ?>
<div class="content-wrap">
<?php if ( '' != get_the_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('pirate-rogue-bigthumb'); ?></a>
</div><!-- end .entry-thumbnail -->
<?php endif; ?>
<div id="blog-wrap" class="blog-wrap cf">
<div id="primary" class="site-content cf" role="main">
<article id="post-0" class="page no-results not-found cf">
<div class="entry-content">
<div class="two-columns-one">
<header class="entry-header">
<h1 class="entry-title">404</h1>
</header><!--end .entry-header -->
<p><?php esc_html_e( 'Oops! That page can’t be found.', 'pirate-rogue' ); ?>
<br>
<?php esc_html_e( 'It looks like nothing was found at this location. Maybe try another search term?', 'pirate-rogue' ); ?></p>
<?php get_search_form(); ?>
</div>
<div class="two-columns-one last">
<?php
$contentparts= array('videos','marque','videos','videos');
$usetemplate = array_rand($contentparts,1);
get_template_part('template-parts/content-404-'.$contentparts[$usetemplate] );
?>
</div>
<div class="divider"></div>
</div><!-- end .entry-content -->
</article><!-- end #post-0 -->
</div><!-- end #primary -->
</div><!-- end .blog-wrap -->
</div><!-- end .content-wrap -->
<?php get_footer(); ?>