Changeset 3336 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/404.php
- Timestamp:
- 06/12/2016 07:22:20 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/404.php
r3193 r3336 12 12 get_header(); ?> 13 13 14 <div id="primary" class="content-area"> 15 <main id="main" class="site-main" role="main"> 14 <main id="main" class="site-main" role="main"> 16 15 17 18 19 20 16 <section class="error-404 not-found"> 17 <header class="page-header"> 18 <h1 class="page-title"><?php esc_html_e( 'Oops! That page can’t be found.', 'wporg-plugins' ); ?></h1> 19 </header><!-- .page-header --> 21 20 22 23 <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'wporg-plugins'); ?></p>21 <div class="page-content"> 22 <p><?php printf( __( 'Try searching from the field above, or go to the <a href="%s">home page</a>.', 'wporg-plugins' ), get_home_url() ); ?></p> 24 23 25 <?php 26 get_search_form(); 24 <div class="logo-swing"> 25 <span class="dashicons dashicons-wordpress wp-logo"></span> 26 <span class="dashicons dashicons-wordpress wp-logo hinge"></span> 27 </div> 28 <script> 29 setTimeout( function() { 30 jQuery( '.hinge' ).hide(); 31 }, 1900 ); 32 </script> 33 </div><!-- .page-content --> 34 </section><!-- .error-404 --> 27 35 28 the_widget( 'WP_Widget_Recent_Posts' ); 29 30 // Only show the widget if site has multiple categories. 31 if ( wporg_plugins_categorized_blog() ) : 32 ?> 33 34 <div class="widget widget_categories"> 35 <h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'wporg-plugins' ); ?></h2> 36 <ul> 37 <?php 38 wp_list_categories( array( 39 'orderby' => 'count', 40 'order' => 'DESC', 41 'show_count' => 1, 42 'title_li' => '', 43 'number' => 10, 44 ) ); 45 ?> 46 </ul> 47 </div><!-- .widget --> 48 49 <?php 50 endif; 51 52 /* translators: %1$s: smiley */ 53 $archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'wporg-plugins' ), convert_smilies( ':)' ) ) . '</p>'; 54 the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" ); 55 56 the_widget( 'WP_Widget_Tag_Cloud' ); 57 ?> 58 59 </div><!-- .page-content --> 60 </section><!-- .error-404 --> 61 62 </main><!-- #main --> 63 </div><!-- #primary --> 36 </main><!-- #main --> 64 37 65 38 <?php
Note: See TracChangeset
for help on using the changeset viewer.