Making WordPress.org

Changeset 8029

Timestamp:
01/07/2019 02:41:41 AM (6 years ago)
Author:
dd32
Message:

Gutenebrg Theme: Style the 404 page, and add a link to the Gutenberg handbook directly.

Props mukesh27 for initial patch.
Fixes #4043.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/404.php

    r6304 r8029  
    1919
    2020                <div class="page-content">
    21                     <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'gutenbergtheme' ); ?></p>
     21                    <p><?php
     22                        printf(
     23                            __( 'It looks like nothing was found at this location. Maybe try the <a href="%s">Gutenberg Handbook</a> or a search?', 'gutenbergtheme' ),
     24                            home_url( '/handbook/' )
     25                        );
     26                    ?></p>
    2227
    2328                    <?php
    2429                        get_search_form();
    25 
    26                         the_widget( 'WP_Widget_Recent_Posts' );
    2730                    ?>
    28 
    29                     <div class="widget widget_categories">
    30                         <h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'gutenbergtheme' ); ?></h2>
    31                         <ul>
    32                         <?php
    33                             wp_list_categories( array(
    34                                 'orderby'    => 'count',
    35                                 'order'      => 'DESC',
    36                                 'show_count' => 1,
    37                                 'title_li'   => '',
    38                                 'number'     => 10,
    39                             ) );
    40                         ?>
    41                         </ul>
    42                     </div><!-- .widget -->
    43 
    44                     <?php
    45 
    46                         /* translators: %1$s: smiley */
    47                         $archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'gutenbergtheme' ), convert_smilies( ':)' ) ) . '</p>';
    48                         the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
    49 
    50                         the_widget( 'WP_Widget_Tag_Cloud' );
    51                     ?>
    52 
    5331                </div><!-- .page-content -->
    5432            </section><!-- .error-404 -->
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/style.css

    r7971 r8029  
    3737    ## Posts and pages
    3838    ## Comments
     39
    3940# Infinite scroll
    4041# Media
     
    836837
    837838/*--------------------------------------------------------------
     839
     840
     841
     842
     843
     844
     845
     846
     847
     848
     849
     850
     851
     852
     853
    838854# Infinite scroll
    839855--------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.