Twenty Fourteen: remove searchform.php and use core markup. Props obenland, closes #25095.

Built from https://develop.svn.wordpress.org/trunk@25089


git-svn-id: http://core.svn.wordpress.org/trunk@25073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-08-22 17:12:09 +00:00
parent 7a05f8d19c
commit e11e46c458
2 changed files with 6 additions and 15 deletions

View File

@ -1,15 +0,0 @@
<?php
/**
* The template for displaying search forms in Twenty Fourteen
*
* @package WordPress
* @subpackage Twenty_Fourteen
*/
?>
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label>
<span class="screen-reader-text"><?php _ex( 'Search for:', 'label', 'twentyfourteen' ); ?></span>
<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'twentyfourteen' ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" title="<?php _ex( 'Search for:', 'label', 'twentyfourteen' ); ?>">
</label>
<input type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'twentyfourteen' ); ?>">
</form>

View File

@ -381,6 +381,7 @@ input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly i
}
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea {
border: 1px solid rgba(0, 0, 0, 0.1);
@ -391,11 +392,14 @@ textarea {
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus {
color: #2b2b2b;
}
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"] {
padding: 8px 10px;
padding: 0.8rem 1.0rem;
@ -2086,6 +2090,7 @@ span > object {
}
.widget-area input[type="text"],
.widget-area input[type="email"],
.widget-area input[type="search"],
.widget-area input[type="password"],
.widget-area textarea {
background-color: #2b2b2b;
@ -2246,6 +2251,7 @@ span > object {
}
.content-sidebar input[type="text"],
.content-sidebar input[type="email"],
.content-sidebar input[type="search"],
.content-sidebar input[type="password"],
.content-sidebar textarea {
background-color: #fff;