Making WordPress.org


Ignore:
Timestamp:
04/15/2024 04:52:02 AM (23 months ago)
Author:
adamwood
Message:

wporg-support-2024: Fix rosetta search

Use searchform.php for search blocks, which includes logic for switching the form action if rosetta.
Don't show search form on single forum, reviews, plugin, theme or search results page as per design.
Fix search results page layout.

Fixes #7582

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/searchform.php

    r13501 r13520  
    99    <input type="hidden" name="action" value="bbp-search-request" />
    1010    <input type="search" id="s" class="search-field" placeholder="<?php echo esc_attr_x( 'Search forums', 'placeholder', 'wporg-forums' ); ?>" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" />
    11     <button class="button button-primary button-search">
     11    <button class="button button-search">
    1212        <svg class="search-icon" viewBox="0 0 24 24" width="24" height="24">
    1313            <path d="M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"></path>
     
    4242    <input type="hidden" name="tab" value="<?php echo esc_attr( $tab ); ?>" />
    4343    <?php endif; ?>
    44     <button class="button button-primary button-search">
     44    <button class="button button-search">
    4545        <svg class="search-icon" viewBox="0 0 24 24" width="24" height="24">
    4646            <path d="M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"></path>
Note: See TracChangeset for help on using the changeset viewer.