PageRenderTime 53ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/themes/simple-catch/searchform.php

https://github.com/Bochet/festival_lgbt
PHP | 19 lines | 11 code | 1 blank | 7 comment | 0 complexity | 8279d0c8eb81f1336c91b905ceaf3026 MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * The template for displaying search forms in Simple Catch
  4. *
  5. * @package Catch Themes
  6. * @subpackage Simple_Catch
  7. * @since Simple Catch 1.0
  8. */
  9. global $simplecatch_options_settings;
  10. $options = $simplecatch_options_settings;
  11. $simplecatch_search_display_text = $options[ 'search_display_text' ];
  12. $simplecatch_search_button_text = $options[ 'search_button_text' ];
  13. ?>
  14. <form method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
  15. <input type="text" class="search" value="<?php echo esc_attr( $simplecatch_search_display_text ); ?>" name="s" id="s" title="Type Keyword" />
  16. <button><?php printf( __( '%s', 'simplecatch' ), esc_attr( $simplecatch_search_button_text ) ); ?></button>
  17. <div class="CL"></div>
  18. </form>