-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…k Overflow, Bitbucket icons
- Loading branch information
1 parent
2772bae
commit 05d4821
Showing
15 changed files
with
321 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,30 @@ | ||
<?php | ||
/** | ||
* The template for displaying 404 pages (not found). | ||
* The template for displaying 404 pages (Not Found). | ||
* | ||
* @package casper | ||
* @package Casper | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
get_header(); | ||
?> | ||
<div id="primary" class="content-area"> | ||
<main id="main" class="site-main" role="main"> | ||
|
||
<section class="error-404 not-found"> | ||
<section class="error-404 not-found hentry"> | ||
<header class="page-header"> | ||
<h1 class="page-title"><?php _e( 'Oops! That page can’t be found.', 'casper' ); ?></h1> | ||
<h2 class="entry-title"><?php _e( 'Oops! That page can’t be found.', 'casper' ); ?></h1> | ||
</header><!-- .page-header --> | ||
|
||
<div class="page-content"> | ||
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'casper' ); ?></p> | ||
|
||
<?php get_search_form(); ?> | ||
|
||
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?> | ||
|
||
<?php if ( casper_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', 'casper' ); ?></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', 'casper' ), convert_smilies( ':)' ) ) . '</p>'; | ||
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" ); | ||
?> | ||
|
||
<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?> | ||
<img class="alignright" src="<?php echo get_template_directory_uri(); ?>/img/404-ghost@2x.png" width="96" height="150"> | ||
<p>We tried searching for what you were looking for, but didn't find anything. Please use the search form below.</p> | ||
|
||
<p><?php get_search_form(); ?></p> | ||
|
||
</div><!-- .page-content --> | ||
</section><!-- .error-404 --> | ||
|
||
</main><!-- #main --> | ||
</div><!-- #primary --> | ||
|
||
<?php get_footer(); ?> | ||
<?php get_sidebar(); ?> | ||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.
1 comment
on commit 05d4821
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is why you shouldn't commit when drunk.
Padding on each side (left and right too) leads to an unattractive white border, if you look the site on a smartphone.