Advertisement
Guest User

Untitled

a guest
Jul 5th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.80 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The main template file.
  4.  *
  5.  * @package Betheme
  6.  * @author Muffin group
  7.  * @link https://muffingroup.com
  8.  */
  9.  
  10. $translate['search-placeholder'] = mfn_opts_get('translate') ? mfn_opts_get('translate-search-placeholder','Enter your search') : __('Enter your search','betheme');
  11. ?>
  12.  
  13.  
  14. <form method="get" id="searchform" action="<?php echo esc_url(home_url('/')); ?>">
  15.  
  16.     /** <?php if( mfn_opts_get('header-search') == 'shop' ): ?>
  17.     *   <input type="hidden" name="post_type" value="product" />
  18.     * <?php endif;?> */
  19.  
  20.     <i class="icon_search icon-search-fine"></i>
  21.     <a href="#" class="icon_close"><i class="icon-cancel-fine"></i></a>
  22.  
  23.     <input type="text" class="field" name="s" placeholder="<?php echo esc_html($translate['search-placeholder']); ?>" />
  24.     <input type="submit" class="display-none" value="" />
  25.  
  26. </form>
  27.  
  28.  
  29.  
  30.  
  31. <section class="custom_search_form">
  32.   <form role="search" method="get" class="search-form" action="<?php echo home_url( '/' ); ?>">
  33.     <select id="category_name" name="especialidad">
  34.         <option value="">Especialidades</option>
  35.         <?php $categories = get_categories($args = "especialidades");
  36.         foreach ($categories as $key => $category) {?>
  37.         <option value="<?php echo $category->slug;?>"><?php echo $category->name;?></option>
  38.         <?php }?>
  39.     </select>
  40.  
  41.     <select id="category_name" name="ciudad">
  42.             <option value="">Ciudad</option>
  43.             <?php $categories = get_categories($args = "Ciudad");
  44.             foreach ($categories as $key => $category) {?>
  45.             <option value="<?php echo $category->slug;?>"><?php echo $category->name;?></option>
  46.             <?php }?>
  47.     </select>
  48.  
  49.     <input type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>" />
  50. </form>
  51.  
  52. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement