-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.php
More file actions
executable file
·64 lines (63 loc) · 3.16 KB
/
Copy path404.php
File metadata and controls
executable file
·64 lines (63 loc) · 3.16 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
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
/**
* 404 Template
*
* The 404 template is used when a reader visits an invalid URL on your site. By default, the template will
*/
@header( 'HTTP/1.1 404 Not found', true, 404 );
add_filter('body_class','directory_404_page_class');
function directory_404_page_class($class){
$class[]='layout-1c';
return $class;
}
get_header(); /* Loads the header.php template. */
global $post;
$single_post = $post;
if ( current_theme_supports( 'breadcrumb-trail' ) && supreme_default_theme_settings('supreme_show_breadcrumb')) breadcrumb_trail( array( 'separator' => '»' ) ); ?>
<section id="content" class="error_404 large-9 small-12 columns">
<?php do_action( 'open_content' ); ?>
<div class="hfeed">
<div id="post-0" >
<div class="wrap404 clearfix">
<div class="desc404">
<h4><?php _e("Sorry, The page you're looking for cannot be found!",THEME_DOMAIN); ?></h4>
<p><?php _e("I can help you find the page you want to see, just help me with a few clicks please.",THEME_DOMAIN); ?></p>
<p><?php _e('I recommend you ',THEME_DOMAIN);echo '<a href="'.home_url().'" title="Home">';_e('go to home',THEME_DOMAIN); echo'</a>';_e(' page or simply search what you want to see below',THEME_DOMAIN); ?></p>
</div>
<div class="search404"><?php get_search_form(); // Loads the searchform.php template. ?></div>
</div>
<section class="entry-content">
</section>
<?php
$Supreme_Theme_Settings_Options =get_option(supreme_prefix().'_theme_settings');;
$Get_All_Post_Types = explode(',',@$Supreme_Theme_Settings_Options['post_type_label']);
foreach($Get_All_Post_Types as $post_type):
if($post_type!='page' && $post_type!="attachment" && $post_type!="revision" && $post_type!="nav_menu_item"):
$taxonomies = get_object_taxonomies( (object) array( 'post_type' => $post_type,'public' => true, '_builtin' => true ));
$archive_query = new WP_Query('showposts=60&post_type='.$post_type);
if( count(@$archive_query->posts) > 0 ){
$PostTypeObject = get_post_type_object($post_type);
$PostTypeName = @$PostTypeObject->labels->name;
}
$WPListCustomCategories = wp_list_categories('title_li=&hierarchical=0&show_count=0&echo=0&taxonomy='.$taxonomies[0]);
if(($WPListCustomCategories) && $WPListCustomCategories!="No categories" && $WPListCustomCategories!="<li>No categories</li>"){
?>
<div class="arclist">
<div class="title-container">
<h2 class="title_green"><span><?php echo ucfirst($PostTypeName); _e(' Categories',THEME_DOMAIN);?></span></h2>
</div>
<ul>
<?php echo $WPListCustomCategories;?>
</ul>
</div>
<?php }
endif;
endforeach;?>
</div>
<!-- .hentry -->
</div>
<!-- .hfeed -->
<?php $post = $single_post;?>
</section>
<!-- #content -->
<?php get_footer(); /* Loads the footer.php template.*/ ?>