"Fossies" - the Fresh Open Source Software Archive

Member "wordpress/wp-content/themes/twentytwenty/template-parts/modal-search.php" (27 Jan 2021, 923 Bytes) of package /linux/www/wordpress-5.7-RC1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "modal-search.php" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 5.6.2_vs_5.7-RC1.

    1 <?php
    2 /**
    3  * Displays the search icon and modal
    4  *
    5  * @package WordPress
    6  * @subpackage Twenty_Twenty
    7  * @since Twenty Twenty 1.0
    8  */
    9 
   10 ?>
   11 <div class="search-modal cover-modal header-footer-group" data-modal-target-string=".search-modal">
   12 
   13     <div class="search-modal-inner modal-inner">
   14 
   15         <div class="section-inner">
   16 
   17             <?php
   18             get_search_form(
   19                 array(
   20                     'label' => __( 'Search for:', 'twentytwenty' ),
   21                 )
   22             );
   23             ?>
   24 
   25             <button class="toggle search-untoggle close-search-toggle fill-children-current-color" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field">
   26                 <span class="screen-reader-text"><?php _e( 'Close search', 'twentytwenty' ); ?></span>
   27                 <?php twentytwenty_the_theme_svg( 'cross' ); ?>
   28             </button><!-- .search-toggle -->
   29 
   30         </div><!-- .section-inner -->
   31 
   32     </div><!-- .search-modal-inner -->
   33 
   34 </div><!-- .menu-modal -->