<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[742] sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer: Code Reference: add search form to search results page.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://meta.trac.wordpress.org/changeset/742">742</a></dd>
<dt>Author</dt> <dd>coffee2code</dd>
<dt>Date</dt> <dd>2014-07-09 18:46:05 +0000 (Wed, 09 Jul 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Code Reference: add search form to search results page.
* Add search form to top of search results page
* Add breadcrumb for search results page
* Make searchform template applicable outside of reference landing page
See <a href="http://meta.trac.wordpress.org/ticket/450">#450</a>, <a href="http://meta.trac.wordpress.org/ticket/494">#494</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdevelopercontentnonephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-none.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperscssmainscss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdevelopersearchphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/search.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdevelopersearchformphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/searchform.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperstylesheetsmaincss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdevelopercontentnonephp"></a>
<div class="modfile"><h4>Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-none.php (741 => 742)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-none.php 2014-07-09 18:20:39 UTC (rev 741)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-none.php 2014-07-09 18:46:05 UTC (rev 742)
</span><span class="lines">@@ -22,7 +22,6 @@
</span><span class="cx"> _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'wporg' );
</span><span class="cx"> } ?>
</span><span class="cx"> </h4>
</span><del>- <?php get_search_form(); ?>
</del><span class="cx"> </div><!-- /search-guide -->
</span><span class="cx"> </div><!-- .reference-landing -->
</span><span class="cx"> </section><!-- .no-results -->
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperscssmainscss"></a>
<div class="modfile"><h4>Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss (741 => 742)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss 2014-07-09 18:20:39 UTC (rev 741)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss 2014-07-09 18:46:05 UTC (rev 742)
</span><span class="lines">@@ -577,6 +577,41 @@
</span><span class="cx"> clear: none;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ .section.search-section {
+ padding-bottom: 0;
+ }
+
+ .searchform {
+ overflow: hidden;
+ height: auto;
+ margin-bottom: 1em;
+ input[type="text"], input[type="submit"] {
+ height: 50px;
+ height: 5rem;
+ margin-bottom: 1em;
+ width: 100%;
+ }
+ input[type="submit"] {
+ width: 85px;
+ width: 8.5rem;
+ float: left;
+ }
+ label {
+ width: 560px;
+ width: 56rem;
+ max-width: 100%;
+ margin-right: 15px;
+ display: inline-block;
+ float: left;
+ .search-field input[type="text"] {
+ width: 100%;
+ }
+ }
+ div {
+ overflow: auto;
+ }
+ }
+
</ins><span class="cx"> .reference-landing {
</span><span class="cx"> padding: 1em 0;
</span><span class="cx"> .section {
</span><span class="lines">@@ -604,34 +639,6 @@
</span><span class="cx"> padding-top: 0;
</span><span class="cx"> }
</span><span class="cx"> }
</span><del>- .searchform {
- overflow: hidden;
- height: auto;
- margin-bottom: 1em;
- input {
- height: 50px;
- height: 5rem;
- margin-bottom: 1em;
- width: 100%;
- }
- input[type="submit"] {
- width: 85px;
- width: 8.5rem;
- float: left;
- }
- label {
- width: 560px;
- width: 56rem;
- max-width: 100%;
- margin-right: 15px;
- display: inline-block;
- float: left;
- .search-field input[type="text"] {
- width: 100%;
- }
-
- }
- }
</del><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> .reference-landing .box,
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdevelopersearchphp"></a>
<div class="modfile"><h4>Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/search.php (741 => 742)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/search.php 2014-07-09 18:20:39 UTC (rev 741)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/search.php 2014-07-09 18:46:05 UTC (rev 742)
</span><span class="lines">@@ -9,9 +9,13 @@
</span><span class="cx">
</span><span class="cx"> <div id="content-area">
</span><span class="cx">
</span><del>- <header class="page-header">
- <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'wporg' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
- </header><!-- .page-header -->
</del><ins>+ <div class="breadcrumb-trail breadcrumbs" itemprop="breadcrumb">
+ <span class="trail-browse"><span class="trail-begin"><?php _e( 'Search Results', 'wporg' ); ?></span></span>
+ <span class="sep">/</span> <span class="trail-end"><?php echo esc_html( get_search_query() ); ?></span>
+ </div>
+
+ <?php get_search_form(); ?>
+
</ins><span class="cx"> <main id="main" class="site-main" role="main">
</span><span class="cx">
</span><span class="cx"> <?php if ( have_posts() ) : ?>
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdevelopersearchformphp"></a>
<div class="modfile"><h4>Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/searchform.php (741 => 742)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/searchform.php 2014-07-09 18:20:39 UTC (rev 741)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/searchform.php 2014-07-09 18:46:05 UTC (rev 742)
</span><span class="lines">@@ -5,10 +5,16 @@
</span><span class="cx"> * @package wporg-developer
</span><span class="cx"> */
</span><span class="cx"> ?>
</span><del>-<form role="search" method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
- <label>
- <span class="screen-reader-text"><?php _ex( 'Search for:', 'label', 'wporg' ); ?></span>
- <input type="text" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', 'wporg' ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s">
- </label>
- <input type="submit" class="shiny-blue search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'wporg' ); ?>">
-</form>
</del><ins>+<div class="search-section section clear">
+
+ <form role="search" method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
+ <div>
+ <label>
+ <span class="screen-reader-text"><?php _ex( 'Search for:', 'label', 'wporg' ); ?></span>
+ <input type="text" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', 'wporg' ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s">
+ </label>
+ <input type="submit" class="shiny-blue search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'wporg' ); ?>">
+ </div>
+ </form>
+
+</div><!-- /search-guide -->
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgdeveloperstylesheetsmaincss"></a>
<div class="modfile"><h4>Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css (741 => 742)</h4>
<pre class="diff"><span>
<span class="info">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css 2014-07-09 18:20:39 UTC (rev 741)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css 2014-07-09 18:46:05 UTC (rev 742)
</span><span class="lines">@@ -818,49 +818,29 @@
</span><span class="cx"> float: left;
</span><span class="cx"> clear: none;
</span><span class="cx"> }
</span><del>-.devhub-wrap .reference-landing {
- padding: 1em 0;
-}
-.devhub-wrap .reference-landing .section {
- max-width: 700px;
- max-width: 70rem;
- margin: 0 auto;
- padding: 1.5em 0;
-}
-.devhub-wrap .reference-landing .section h2,
-.devhub-wrap .reference-landing .section h3,
-.devhub-wrap .reference-landing .section h4 {
- margin-bottom: 1em;
- color: #404040;
-}
-.devhub-wrap .reference-landing .section h2.widget-title,
-.devhub-wrap .reference-landing .section h3.widget-title,
-.devhub-wrap .reference-landing .section h4.widget-title {
- margin-bottom: 0;
-}
-.devhub-wrap .reference-landing .section.search-guide {
</del><ins>+.devhub-wrap .section.search-section {
</ins><span class="cx"> padding-bottom: 0;
</span><span class="cx"> }
</span><del>-.devhub-wrap .reference-landing .section.section.topic-guide, .devhub-wrap .reference-landing .section.section.new-in-guide {
</del><ins>+.devhub-wrap .reference-landing .section.search-section {
</ins><span class="cx"> padding-top: 0;
</span><span class="cx"> }
</span><del>-.devhub-wrap .reference-landing .searchform {
</del><ins>+.devhub-wrap .searchform {
</ins><span class="cx"> overflow: hidden;
</span><span class="cx"> height: auto;
</span><span class="cx"> margin-bottom: 1em;
</span><span class="cx"> }
</span><del>-.devhub-wrap .reference-landing .searchform input {
</del><ins>+.devhub-wrap .searchform input[type="text"], .devhub-wrap .searchform input[type="submit"] {
</ins><span class="cx"> height: 50px;
</span><span class="cx"> height: 5rem;
</span><span class="cx"> margin-bottom: 1em;
</span><span class="cx"> width: 100%;
</span><span class="cx"> }
</span><del>-.devhub-wrap .reference-landing .searchform input[type="submit"] {
</del><ins>+.devhub-wrap .searchform input[type="submit"] {
</ins><span class="cx"> width: 85px;
</span><span class="cx"> width: 8.5rem;
</span><span class="cx"> float: left;
</span><span class="cx"> }
</span><del>-.devhub-wrap .reference-landing .searchform label {
</del><ins>+.devhub-wrap .searchform label {
</ins><span class="cx"> width: 560px;
</span><span class="cx"> width: 56rem;
</span><span class="cx"> max-width: 100%;
</span><span class="lines">@@ -868,9 +848,38 @@
</span><span class="cx"> display: inline-block;
</span><span class="cx"> float: left;
</span><span class="cx"> }
</span><del>-.devhub-wrap .reference-landing .searchform label .search-field input[type="text"] {
</del><ins>+.devhub-wrap .searchform label .search-field input[type="text"] {
</ins><span class="cx"> width: 100%;
</span><span class="cx"> }
</span><ins>+.devhub-wrap .searchform div {
+ overflow: auto;
+}
+.devhub-wrap .reference-landing {
+ padding: 1em 0;
+}
+.devhub-wrap .reference-landing .section, .devhub-wrap .search-section {
+ max-width: 700px;
+ max-width: 70rem;
+ margin: 0 auto;
+ padding: 1.5em 0;
+}
+.devhub-wrap .reference-landing .section h2,
+.devhub-wrap .reference-landing .section h3,
+.devhub-wrap .reference-landing .section h4 {
+ margin-bottom: 1em;
+ color: #404040;
+}
+.devhub-wrap .reference-landing .section h2.widget-title,
+.devhub-wrap .reference-landing .section h3.widget-title,
+.devhub-wrap .reference-landing .section h4.widget-title {
+ margin-bottom: 0;
+}
+.devhub-wrap .reference-landing .section.search-guide {
+ padding-bottom: 0;
+}
+.devhub-wrap .reference-landing .section.section.topic-guide, .devhub-wrap .reference-landing .section.section.new-in-guide {
+ padding-top: 0;
+}
</ins><span class="cx"> .devhub-wrap .reference-landing .box,
</span><span class="cx"> .devhub-wrap .sidebar .box {
</span><span class="cx"> padding: 0;
</span></span></pre>
</div>
</div>
</body>
</html>