WordPress.org

Make WordPress Core

Changeset 23673


Ignore:
Timestamp:
03/12/2013 05:44:27 PM (8 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: remove searchform.php template once core search form accepts HTML5 argument. Props obenland, fixes #23701.

Location:
trunk/wp-content/themes/twentythirteen
Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/404.php

    r23452 r23673  
    2222                    <p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentythirteen' ); ?></p>
    2323
    24                     <?php get_search_form(); ?>
     24                    <?php get_search_form( true, 'html5' ); ?>
    2525                </div><!-- .page-content -->
    2626            </div><!-- .page-wrapper -->
  • trunk/wp-content/themes/twentythirteen/comments.php

    r23452 r23673  
    3939        ?>
    4040        <nav class="navigation comment-navigation" role="navigation">
    41             <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentythirteen' ); ?></h1>
     41            <h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'twentythirteen' ); ?></h1>
    4242            <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentythirteen' ) ); ?></div>
    4343            <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentythirteen' ) ); ?></div>
  • trunk/wp-content/themes/twentythirteen/content-none.php

    r23452 r23673  
    2121
    2222    <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with different keywords.', 'twentythirteen' ); ?></p>
    23     <?php get_search_form(); ?>
     23    <?php get_search_form( true, 'html5' ); ?>
    2424
    2525    <?php else : ?>
    2626
    2727    <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentythirteen' ); ?></p>
    28     <?php get_search_form(); ?>
     28    <?php get_search_form( true, 'html5' ); ?>
    2929
    3030    <?php endif; ?>
  • trunk/wp-content/themes/twentythirteen/css/ie.css

    r23611 r23673  
    3333}
    3434
    35 .site-header .searchform .field {
     35.site-header .searchform [type="search"] {
    3636    padding-top: 6px;
    3737}
     
    175175}
    176176
    177 .ie7 .assistive-text,
    178 .ie7 .site .screen-reader-text {
     177.ie7 .screen-reader-text {
    179178    clip: rect(1px 1px 1px 1px); /* IE7 */
    180179}
     
    205204}
    206205
    207 .ie7 .site-header .searchform .field {
     206.ie7 .site-header .searchform [type="search"] {
    208207    background-color: #fff;
    209208    border: 2px solid #c3c0ab;
  • trunk/wp-content/themes/twentythirteen/functions.php

    r23672 r23673  
    304304    ?>
    305305    <nav class="navigation paging-navigation" role="navigation">
    306         <h1 class="assistive-text"><?php _e( 'Posts navigation', 'twentythirteen' ); ?></h1>
     306        <h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentythirteen' ); ?></h1>
    307307        <div class="nav-links">
    308308
     
    340340    ?>
    341341    <nav class="navigation post-navigation" role="navigation">
    342         <h1 class="assistive-text"><?php _e( 'Post navigation', 'twentythirteen' ); ?></h1>
     342        <h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentythirteen' ); ?></h1>
    343343        <div class="nav-links">
    344344
  • trunk/wp-content/themes/twentythirteen/header.php

    r23492 r23673  
    5050                <nav id="site-navigation" class="navigation main-navigation" role="navigation">
    5151                    <h3 class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></h3>
    52                     <a class="assistive-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
     52                    <a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
    5353                    <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
    54                     <?php get_search_form(); ?>
     54                    <?php get_search_form( true, 'html5' ); ?>
    5555                </nav><!-- #site-navigation -->
    5656            </div><!-- #navbar -->
  • trunk/wp-content/themes/twentythirteen/style.css

    r23671 r23673  
    538538
    539539/* Assistive text */
    540 .assistive-text {
     540.screen-reader-text {
    541541    position: absolute !important;
    542542    clip: rect(1px, 1px, 1px, 1px);
    543543}
    544544
    545 .assistive-text:hover,
    546 .assistive-text:active,
    547 .assistive-text:focus {
     545.screen-reader-text:hover,
     546.screen-reader-text:active,
     547.screen-reader-text:focus {
    548548    background-color: #f1f1f1;
    549549    border-radius: 3px;
     
    927927}
    928928
    929 .main-navigation .searchform {
     929.site-header .searchform {
    930930    position: absolute;
    931931    right: 0;
     
    933933}
    934934
    935 .site-header .searchform .field {
     935.site-header .searchform [type="search"] {
    936936    background-color: transparent;
    937937    background-image: url(images/search-icon.png);
     
    950950}
    951951
    952 .site-header .searchform .field:focus {
     952.site-header .searchform [type="search"]:focus {
    953953    background-color: #fff;
    954954    border: 2px solid #c3c0ab;
     
    25502550
    25512551/* Search widget */
    2552 .searchform .submit {
     2552.searchform [type="submit"] {
    25532553    display: none;
    25542554}
    25552555
    2556 .widget .searchform .field {
     2556.widget .searchform [type="text"] {
    25572557    width: 100%;
    25582558}
     
    31633163    (min-resolution: 120dpi) {
    31643164
    3165     .site-header .searchform .field {
     3165    .site-header .searchform [type="search"] {
    31663166        background-image: url(images/search-icon-2x.png);
    31673167    }
     
    31833183    }
    31843184
    3185     footer a[rel=bookmark]:link:after,
    3186     footer a[rel=bookmark]:visited:after {
     3185    footer a[rel="bookmark"]:link:after,
     3186    footer a[rel="bookmark"]:visited:after {
    31873187        content: " [" attr(href) "] "; /* Show URLs */
    31883188    }
Note: See TracChangeset for help on using the changeset viewer.