Making WordPress.org


Ignore:
Timestamp:
04/25/2014 11:20:05 AM (12 years ago)
Author:
coffee2code
Message:

Code Reference: Sync with ​https://github.com/Rarst/wporg-developer/commit/7dbd8297

  • Improve appearance of 404 and blank search pages
  • Fix broken link on reference landing page
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-none.php

    r554 r556  
    1414        </header><!-- .page-header -->
    1515
    16         <div class="page-content">
    17                 <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
    18 
    19                         <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'wporg' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
    20 
    21                 <?php elseif ( is_search() ) : ?>
    22 
    23                         <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'wporg' ); ?></p>
     16        <div class="reference-landing">
     17                <div class="search-guide section clear">
     18                        <h4 class="ref-intro">
     19                        <?php if ( is_search() ) {
     20                                _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'wporg' );
     21                        } else {
     22                                _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'wporg' );
     23                        } ?>
     24                        </h4>
    2425                        <?php get_search_form(); ?>
    25 
    26                 <?php else : ?>
    27 
    28                         <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'wporg' ); ?></p>
    29                         <?php get_search_form(); ?>
    30 
    31                 <?php endif; ?>
    32         </div><!-- .page-content -->
     26                </div><!-- /search-guide -->
     27        </div><!-- .reference-landing -->
    3328</section><!-- .no-results -->
Note: See TracChangeset for help on using the changeset viewer.