modal-search.php 945 B

12345678910111213141516171819202122232425262728293031323334
  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. <div class="search-modal cover-modal header-footer-group" data-modal-target-string=".search-modal">
  11. <div class="search-modal-inner modal-inner">
  12. <div class="section-inner">
  13. <?php
  14. get_search_form(
  15. array(
  16. 'label' => __( 'Search for:', 'twentytwenty' ),
  17. )
  18. );
  19. ?>
  20. <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" aria-expanded="false">
  21. <span class="screen-reader-text"><?php _e( 'Close search', 'twentytwenty' ); ?></span>
  22. <?php twentytwenty_the_theme_svg( 'cross' ); ?>
  23. </button><!-- .search-toggle -->
  24. </div><!-- .section-inner -->
  25. </div><!-- .search-modal-inner -->
  26. </div><!-- .menu-modal -->