Skip to content

Commit

Permalink
Version 19.10.11
Browse files Browse the repository at this point in the history
New Version of The Clean Blog WordPress Theme
  • Loading branch information
LebCit committed Oct 14, 2019
1 parent 9a00d25 commit 94edd5f
Show file tree
Hide file tree
Showing 137 changed files with 30,355 additions and 29,172 deletions.
67 changes: 20 additions & 47 deletions 404.php
Original file line number Diff line number Diff line change
@@ -1,51 +1,27 @@
<?php
/**
* The template for displaying 404 pages (not found).
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package The_Clean_Blog
*/

get_header();

?>
<?php get_template_part( 'components/main/main', 'template' ); ?>
<main id="main" class="site-main" role="main">

<section class="error-404 not-found">
<header class="page-header">
<h1 class="page-title">
<?php
$search404_tilte = get_theme_mod( 'search_404_page_title_text' );
if ( empty( $search404_tilte ) ) {
$search404_tilte = esc_html_e( 'Oops! That page can&rsquo;t be found.', 'the-clean-blog' );
} else {
echo esc_html( $search404_tilte );
}
?>
</h1>
</header>
<div class="page-content">
<p>
<?php
$search404_paragraph = get_theme_mod( 'search_404_page_paragraph_text' );
if ( empty( $search404_paragraph ) ) {
$search404_paragraph = esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'the-clean-blog' );
} else {
echo esc_html( $search404_paragraph );
}
?>
</p>
<div id="primary" class="content-area col-lg-8 col-md-10 mx-auto">
<main id="main" class="site-main">

<?php
get_search_form();
<section class="error-404 not-found">

the_widget( 'WP_Widget_Recent_Posts' );
<div class="page-content">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'the-clean-blog' ); ?></p>

// Only show the widget if site has multiple categories.
if ( thecleanblog_categorized_blog() ) :
<?php
get_search_form();

the_widget( 'WP_Widget_Recent_Posts' );
?>

<div class="widget widget_categories">
Expand All @@ -61,26 +37,23 @@
'number' => 10,
)
);

?>
</ul>
</div>
</div><!-- .widget -->

<?php
endif;
/* translators: %1$s: smiley */
$thecleanblog_archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'the-clean-blog' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$thecleanblog_archive_content" );

/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'the-clean-blog' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
the_widget( 'WP_Widget_Tag_Cloud' );
?>

the_widget( 'WP_Widget_Tag_Cloud' );
</div><!-- .page-content -->
</section><!-- .error-404 -->

?>
</main><!-- #main -->
</div><!-- #primary -->

</div>
</section>
</main>
</div>
<!-- #primary .content-area -->
<?php
get_sidebar();
get_footer();
903 changes: 619 additions & 284 deletions LICENSE

Large diffs are not rendered by default.

Loading

0 comments on commit 94edd5f

Please sign in to comment.