<?php if (!$hide_text_field) { ?> <div class="form-block__item form-block__field-width-icon"> <input type="text" placeholder="<?php echo esc_attr_x('Search Tour', 'placeholder', 'adventure-tours'); ?> " value="<?php echo get_search_query(); ?> " name="s"> <i class="td-search-1"></i> </div> <?php } ?> <?php $form_items_html = AtTourHelper::get_search_form_fields_html(true); foreach ($form_items_html as $form_element_config) { $has_icon = !empty($form_element_config['icon']) && 'none' != $form_element_config['icon']; printf('<div class="form-block__item%s">%s%s</div>', $has_icon ? ' form-block__field-width-icon' : '', $form_element_config['html'], $has_icon ? sprintf('<i class="%s"></i>', esc_attr($form_element_config['icon'])) : ''); } ?> <button type="submit" class="atbtn atbtn--full-width atbtn--primary"><?php esc_attr_e('Find Tours', 'adventure-tours'); ?> </button> </form> </div>
* @var string $title * @var string $note * @var strign $style * @var string $css_class * @var boolean $hide_text_field * @var string $view * * @author Themedelight * @package Themedelight/AdventureTours * @version 1.2.4 */ $attributesRequest = isset($_REQUEST['tourtax']) ? $_REQUEST['tourtax'] : array(); $configs_map = array('default' => array(), 'style1' => array('css' => 'form-block--light-style form-block--with-border'), 'style2' => array('css' => 'form-block--with-border'), 'style3' => array('css' => 'form-block--full-width form-block--big-indent form-block--with-label', 'show_label' => true), 'style4' => array('css' => 'form-block--full-width')); $style_config = $style && isset($configs_map[$style]) ? $configs_map[$style] : $configs_map['default']; $is_show_label = !empty($style_config['show_label']); $form_items_html = AtTourHelper::get_search_form_fields_html(true, $is_show_label); $block_css_classes = 'form-block form-block--horizontal'; if (!empty($style_config['css'])) { $block_css_classes .= ' ' . $style_config['css']; } if ($title) { $block_css_classes .= ' form-block--with-title'; } if ($css_class) { $block_css_classes .= ' ' . $css_class; } $search_field_cells = 4; $field_cells = 2; $left_cells = 12; ?> <div class="<?php