Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-includes/ID3/ovabrw-templates.zip
Назад
PK �-]3~�X�3 �3 single/ovabrw_search.phpnu ��� <?php if( ! defined( 'ABSPATH' ) ) exit(); extract( $args ); $dateformat = ovabrw_get_date_format(); $placeholder = ovabrw_get_placeholder_date( $dateformat ); $hour_default = ovabrw_get_setting( get_option( 'ova_brw_booking_form_default_hour', '07:00' ) ); $time_step = ovabrw_get_setting( get_option( 'ova_brw_booking_form_step_time', '30' ) ); // form action $action = home_url(); if ( isset( $args['search_result'] ) && ( 'new_page' == $args['search_result'] ) ) { $action = $args['search_result_url']['url']; } // form method $method = isset( $args['method'] ) ? $args['method'] : 'GET'; $data_get = $_GET; $id_selected = isset( $data_get['ovabrw_destination'] ) ? sanitize_text_field( $data_get['ovabrw_destination'] ) : 0; if ( ! $id_selected && isset( $destination_default ) && $destination_default ) { $id_selected = $destination_default; } $ovabrw_pickup_date = isset( $data_get['ovabrw_pickup_date'] ) ? sanitize_text_field( $data_get['ovabrw_pickup_date'] ) : ''; // guests ( adult & children ) $max_adult = $args['max_adult']; $min_adult = $args['min_adult']; $show_adult = $args['show_adult']; $max_children = $args['max_children']; $min_children = $args['min_children']; $show_children = $args['show_children']; $max_baby = $args['max_baby']; $min_baby = $args['min_baby']; $show_baby = $args['show_baby']; $guests_label = $args['guests_label']; $show_guests = $args['show_guests']; $adults_label = $args['adults_label']; $childrens_label = $args['childrens_label']; $babies_label = $args['babies_label']; $icon_guests = $args['icon_guests']; $default_adult_number = isset( $data_get['ovabrw_adults'] ) ? absint( $data_get['ovabrw_adults'] ) : absint( $args['default_adult_number'] ); $default_children_number = isset( $data_get['ovabrw_childrens'] ) ? absint( $data_get['ovabrw_childrens'] ) : absint( $args['default_children_number'] ); $default_babies_number = isset( $data_get['ovabrw_babies'] ) ? absint( $data_get['ovabrw_babies'] ) : absint( $args['default_babies_number'] ); $guests = $default_adult_number + $default_children_number + $default_babies_number; $guests_placeholder = $args['guests_placeholder']; // button $icon_button = $args['icon_button']; $button_label = $args['button_label']; // check in $icon_check_in = $args['icon_check_in']; $check_in_label = $args['check_in_label']; $show_check_in = $args['show_check_in']; // custom taxonomy $icon_custom_taxonomy = $args['icon_custom_taxonomy']; $custom_taxonomy_label = $args['custom_taxonomy_label']; $custom_taxonomy_placeholder = $args['custom_taxonomy_placeholder']; $slug_custom_taxonomy = $args['slug_custom_taxonomy']; $slug_value_selected = ''; if ( $slug_custom_taxonomy ) { $slug_value_selected = isset( $data_get[$slug_custom_taxonomy.'_name'] ) ? sanitize_text_field( $data_get[$slug_custom_taxonomy.'_name'] ) : 'all'; } $ctx_slug_value_selected = isset( $args['ctx_slug_value_selected'] ) ? $args['ctx_slug_value_selected'] : ''; if ( $ctx_slug_value_selected ) { $slug_value_selected = $ctx_slug_value_selected; } if ( isset( $data_get[$slug_custom_taxonomy.'_name'] ) && sanitize_text_field( $data_get[$slug_custom_taxonomy.'_name'] ) ) { $slug_value_selected = sanitize_text_field( $data_get[$slug_custom_taxonomy.'_name'] ); } $terms = get_taxonomy( $slug_custom_taxonomy ); // Categories $search_categories = isset($args['search_categories']) ? $args['search_categories'] : []; // Destination $icon_destination = $args['icon_destination']; $destination_label = $args['destination_label']; $destination_placeholder = $args['destination_placeholder']; $show_destination = $args['show_destination']; // Taxonomies $mutiple_custom_taxonomy = $args['mutiple_custom_taxonomy']; $list_taxonomies = isset( $args['list_custom_taxonomy'] ) ? $args['list_custom_taxonomy'] : array(); $data_taxonomies = array(); if ( ! isset( $template ) ) $template = ''; ?> <div class="ovabrw-search ovabrw-search-<?php echo esc_attr($template);?>"> <form action="<?php echo esc_url( $action ); ?>" method="<?php echo esc_attr( $method ); ?>" class="ovabrw-search-form"> <div class="ovabrw-s-field"> <!-- destinations dropdown --> <?php if ( $show_destination === 'yes' ): ?> <div class="search-field"> <div class="ovabrw-label"> <?php if( $icon_destination ) { \Elementor\Icons_Manager::render_icon( $icon_destination, [ 'aria-hidden' => 'true' ] ); } ?> <span class="label"><?php echo esc_html( $destination_label ); ?></span> </div> <div class="ovabrw-input search_in_destination"> <?php echo ovabrw_destination_dropdown( $destination_placeholder, $id_selected ); ?> </div> </div> <?php endif; ?> <?php if( !empty( $slug_custom_taxonomy ) && !empty( $terms ) ) : ?> <!-- custom taxonomy --> <div class="search-field"> <div class="ovabrw-label"> <?php if( $icon_custom_taxonomy ) { \Elementor\Icons_Manager::render_icon( $icon_custom_taxonomy, [ 'aria-hidden' => 'true' ] ); } ?> <span class="label"><?php echo esc_html( $custom_taxonomy_label ); ?></span> </div> <div class="ovabrw-input search_in_taxonomy"> <?php echo ovabrw_search_taxonomy_dropdown( $slug_custom_taxonomy, $custom_taxonomy_placeholder, $slug_value_selected, 'required' ); ?> </div> </div> <?php endif; ?> <!-- Taxonomies --> <?php if ( $mutiple_custom_taxonomy === 'yes' && ! empty( $list_taxonomies ) && is_array( $list_taxonomies ) ): ?> <?php foreach( $list_taxonomies as $data_taxonomy ): $item_slug_taxonomy = isset( $data_taxonomy['item_slug_taxonomy'] ) ? $data_taxonomy['item_slug_taxonomy'] : ''; $item_icon_taxonomy = isset( $data_taxonomy['item_icon_taxonomy'] ) ? $data_taxonomy['item_icon_taxonomy'] : ''; $item_taxonomy_label = isset( $data_taxonomy['item_taxonomy_label'] ) ? $data_taxonomy['item_taxonomy_label'] : ''; $item_taxonomy_placeholder = isset( $data_taxonomy['item_taxonomy_placeholder'] ) ? $data_taxonomy['item_taxonomy_placeholder'] : ''; if ( ! $item_slug_taxonomy ) continue; $item_slug_default = isset( $data_get[$item_slug_taxonomy.'_name'] ) ? sanitize_text_field( $data_get[$item_slug_taxonomy.'_name'] ) : 'all'; $item_taxonomy_value = isset( $data_taxonomy['item_taxonomy_value_'.$item_slug_taxonomy] ) ? sanitize_text_field( $data_taxonomy['item_taxonomy_value_'.$item_slug_taxonomy] ) : ''; if ( $item_taxonomy_value ) { $item_slug_default = $item_taxonomy_value; } if ( isset( $data_get[$item_slug_taxonomy.'_name'] ) && sanitize_text_field( $data_get[$item_slug_taxonomy.'_name'] ) ) { $item_slug_default = sanitize_text_field( $data_get[$item_slug_taxonomy.'_name'] ); } $item_tern = get_taxonomy( $item_slug_taxonomy ); ?> <?php if ( $item_slug_taxonomy && ! empty( $item_tern ) ): array_push( $data_taxonomies, trim($item_slug_taxonomy) ); ?> <div class="search-field"> <div class="ovabrw-label"> <?php if ( $item_icon_taxonomy ) { \Elementor\Icons_Manager::render_icon( $item_icon_taxonomy, [ 'aria-hidden' => 'true' ] ); } ?> <span class="label"><?php echo esc_html( $item_taxonomy_label ); ?></span> </div> <div class="ovabrw-input search_in_taxonomy"> <?php echo ovabrw_search_taxonomy_dropdown( $item_slug_taxonomy, $item_taxonomy_placeholder, $item_slug_default, 'required' ); ?> </div> </div> <?php endif; endforeach; endif; ?> <!-- time check in --> <?php if ( $show_check_in === 'yes' ): ?> <div class="search-field"> <div class="ovabrw-input"> <div class="ovabrw-label"> <?php if( $icon_check_in ) { \Elementor\Icons_Manager::render_icon( $icon_check_in, [ 'aria-hidden' => 'true' ] ); } ?> <span class="label"><?php echo esc_html( $check_in_label ); ?></span> </div> <input type="text" name="ovabrw_pickup_date" value="<?php echo esc_attr( $ovabrw_pickup_date ); ?>" class="ovabrw_datetimepicker ovabrw_start_date" placeholder="<?php echo esc_attr( $placeholder ); ?>" autocomplete="off" data-hour_default="<?php echo esc_attr( $hour_default ); ?>" data-time_step="<?php echo esc_attr( $time_step ); ?>" data-dateformat="<?php echo esc_attr( $dateformat ); ?>" onkeydown="return false" onfocus="blur();" /> </div> </div> <?php endif; ?> <!-- guest --> <?php if ( $show_guests === 'yes' ): ?> <div class="search-field guestspicker-control"> <div class="ovabrw-input ovabrw-guestspicker-content-wrapper"> <div class="ovabrw-label"> <?php if( $icon_guests ) { \Elementor\Icons_Manager::render_icon( $icon_guests, [ 'aria-hidden' => 'true' ] ); } ?> <span class="label"><?php echo esc_html( $guests_label ); ?></span> </div> <div class="ovabrw-guestspicker"> <div class="guestspicker"> <span class="gueststotal"><?php echo esc_html( $guests ); ?></span> <span class="guestslabel"><?php echo esc_html( $guests_placeholder ); ?></span> </div> </div> <div class="ovabrw-guestspicker-content"> <?php if ( $show_adult === 'yes' ): ?> <div class="guests-buttons"> <div class="description"> <label><?php echo esc_html( $adults_label ); ?></label> </div> <div class="guests-button"> <div class="guests-icon minus"> <i class="fas fa-minus"></i> </div> <input type="text" id="ovabrw_adults" name="ovabrw_adults" class="ovabrw_adults" value="<?php echo esc_attr( $default_adult_number ); ?>" min="<?php echo esc_attr( $min_adult ); ?>" max="<?php echo esc_attr( $max_adult ); ?>" /> <div class="guests-icon plus"> <i class="fas fa-plus"></i> </div> </div> </div> <?php endif; ?> <?php if ( $show_children === 'yes' ): ?> <div class="guests-buttons"> <div class="description"> <label><?php echo esc_html( $childrens_label ); ?></label> </div> <div class="guests-button"> <div class="guests-icon minus"> <i class="fas fa-minus"></i> </div> <input type="text" id="ovabrw_childrens" name="ovabrw_childrens" class="ovabrw_childrens" value="<?php echo esc_attr( $default_children_number ); ?>" min="<?php echo esc_attr( $min_children ); ?>" max="<?php echo esc_attr( $max_children ); ?>" /> <div class="guests-icon plus"> <i class="fas fa-plus"></i> </div> </div> </div> <?php endif; ?> <?php if ( $show_baby === 'yes' ): ?> <div class="guests-buttons"> <div class="description"> <label><?php echo esc_html( $babies_label ); ?></label> </div> <div class="guests-button"> <div class="guests-icon minus"> <i class="fas fa-minus"></i> </div> <input type="text" id="ovabrw_babies" name="ovabrw_babies" class="ovabrw_babies" value="<?php echo esc_attr( $default_babies_number ); ?>" min="<?php echo esc_attr( $min_baby ); ?>" max="<?php echo esc_attr( $max_baby ); ?>" /> <div class="guests-icon plus"> <i class="fas fa-plus"></i> </div> </div> </div> <?php endif; ?> </div> </div> </div> <?php endif; ?> <!-- button --> <div class="ovabrw-search-btn"> <?php if ( isset( $args['search_result'] ) && ( 'default' == $args['search_result'] ) ): ?> <input type="hidden" name="ovabrw_search_product" value="ovabrw_search_product" /> <?php if( !empty($search_categories) ) : ?> <input type="hidden" name="cat" value="<?php echo esc_attr( implode( '|', $search_categories ) ); ?>" /> <?php endif; ?> <input type="hidden" name="ovabrw_slug_custom_taxonomy" value="<?php echo esc_attr( $slug_custom_taxonomy ); ?>" /> <input type="hidden" name="ovabrw_slug_taxonomies" value="<?php echo esc_attr( implode( '|', $data_taxonomies ) ); ?>" /> <input type="hidden" name="ovabrw_search" value="search_item" /> <input type="hidden" name="post_type" value="product" /> <?php endif; ?> <button class="ovabrw-btn" type="submit"> <?php if( $icon_button ) { \Elementor\Icons_Manager::render_icon( $icon_button, [ 'aria-hidden' => 'true' ] ); } printf( $button_label ); ?> </button> </div> </div> </form> </div>PK �-],�A$ $ single/product_filter_ajax.phpnu ��� <?php if ( ! defined( 'ABSPATH' ) ) exit; if ( isset( $args['id'] ) && $args['id'] ) { $id = $args['id']; } else { $id = get_the_id(); } // products $show_on_sale = isset( $args['show_on_sale'] ) ? $args['show_on_sale'] : 'no' ; $show_featured = isset( $args['show_featured'] ) ? $args['show_featured'] : 'yes' ; $show_wishlist = isset( $args['show_wishlist'] ) ? $args['show_wishlist'] : 'yes' ; $show_duration = isset( $args['show_duration'] ) ? $args['show_duration'] : 'yes' ; $show_title = isset( $args['show_title'] ) ? $args['show_title'] : 'yes' ; $show_location = isset( $args['show_location'] ) ? $args['show_location'] : 'yes' ; $show_rating = isset( $args['show_rating'] ) ? $args['show_rating'] : 'yes' ; $show_price = isset( $args['show_price'] ) ? $args['show_price'] : 'yes' ; $show_button = isset( $args['show_button'] ) ? $args['show_button'] : 'yes' ; $posts_per_page = isset( $args['posts_per_page'] ) ? $args['posts_per_page'] : 4 ; $orderby = isset( $args['product_orderby'] ) ? $args['product_orderby'] : 'ID' ; $order = isset( $args['product_order'] ) ? $args['product_order'] : 'DESC' ; $filter_title = isset( $args['filter_title'] ) ? $args['filter_title'] : '' ; // categories $args_categories = isset( $args['categories'] ) ? $args['categories'] : array('all') ; if ( $args_categories === 'all') { $args_categories = array('all'); } $pro_args = array( 'taxonomy' => 'product_cat', 'orderby' => $args['orderby'], 'order' => $args['order'] ); $catAll = isset( $args['catAll'] ) ? $args['catAll'] : esc_html__('All','ova-brw'); $categories = get_categories($pro_args); // Additional Options Slider $data_options['items'] = isset( $args['item_number'] ) ? $args['item_number'] : 1 ; $data_options['slideBy'] = isset( $args['slides_to_scroll'] ) ? $args['slides_to_scroll'] : 1 ; $data_options['margin'] = isset( $args['margin_items'] ) ? $args['margin_items'] : 0 ; $data_options['autoplayTimeout'] = isset( $args['autoplay_speed'] ) ? $args['autoplay_speed'] : 3000; $data_options['smartSpeed'] = isset( $args['smartspeed'] ) ? $args['smartspeed'] : 500; $data_options['autoplayHoverPause'] = $args['pause_on_hover'] === 'yes' ? true : false; $data_options['loop'] = $args['infinite'] === 'yes' ? true : false; $data_options['autoplay'] = $args['autoplay'] === 'yes' ? true : false; $data_options['nav'] = $args['nav_control'] === 'yes' ? true : false; $data_options['dots'] = $args['dots_control'] === 'yes' ? true : false; $data_options['rtl'] = is_rtl() ? true : false; $args_show = array( 'show_featured' => $show_featured, 'show_wishlist' => $show_wishlist, 'show_duration' => $show_duration, 'show_title' => $show_title, 'show_location' => $show_location, 'show_rating' => $show_rating, 'show_price' => $show_price, 'show_button' => $show_button, ); ?> <div class="ova-product-filter-ajax" data-show_on_sale="<?php echo esc_attr( $show_on_sale ); ?>" data-args_show="<?php echo esc_attr( json_encode($args_show) ); ?>" data-posts_per_page="<?php echo esc_attr( $posts_per_page ); ?>" data-orderby="<?php echo esc_attr( $orderby ); ?>" data-order="<?php echo esc_attr( $order ); ?>" > <ul class="product-filter-category"> <?php if(!empty($filter_title)) { ?> <li class="filter-title"> <?php echo esc_html($filter_title);?> </li> <?php } ?> <li class="product-filter-button active-category" data-slug="all"> <span class="category"><?php echo esc_html( $catAll ); ?></span> <i aria-hidden="true" class="icomoon icomoon-angle-right"></i> </li> <?php if( !empty( $categories ) && is_array( $categories ) ) : ?> <?php foreach ( $categories as $category ) : $name = $category->name; $slug = $category->slug; ?> <?php if( in_array( $slug, $args_categories ) ) : ?> <li class="product-filter-button" data-slug="<?php echo esc_attr($slug);?>"> <span class="category"><?php echo esc_html( $name ); ?></span> <i aria-hidden="true" class="icomoon icomoon-angle-right"></i> </li> <?php endif; ?> <?php endforeach; ?> <?php endif; ?> </ul> <div class="content-item slide-product owl-carousel owl-theme" data-options="<?php echo esc_attr(json_encode($data_options)); ?>"> </div> </div>PK �-] �dЪ � single/custom_taxonomy.phpnu ��� <?php /** * The template for displaying contact form 7 within single * * This template can be overridden by copying it to yourtheme/ovabrw-templates/single/custom_taxonomy.php * */ if ( ! defined( 'ABSPATH' ) ) exit(); // Get product_id from do_action - use when insert shortcode if ( isset( $args['id'] ) && $args['id'] ) { $pid = $args['id']; } else { $pid = get_the_id(); } // Check product type: rental $product = wc_get_product( $pid ); if ( ! $product || $product->get_type() !== 'ovabrw_car_rental' ) return; $all_cus_tax = ovabrw_get_taxonomy_choosed_product( $pid ); ?> <?php if ( $all_cus_tax ) { ?> <ul class="ovabrw_cus_taxonomy"> <?php foreach( $all_cus_tax as $key => $value ) { ?> <li class="<?php echo $key; ?>"> <label> <?php echo esc_html( $value['name'] ); ?> </label> <span> <?php echo implode(', ', $value['value']); ?> </span> </li> <?php } ?> </ul> <?php } ?>PK �-]9��� � single/product_categories.phpnu ��� <?php if( ! defined( 'ABSPATH' ) ) exit(); $icon = $args['icon'] ? $args['icon'] : ''; $text_view_details = $args['label_view_details']; $show_image = $args['show_image']; $show_title = $args['show_title']; $show_product_counts = $args['show_product_counts']; $text_product_counts = isset($args['text_product_counts']) ? $args['text_product_counts'] : '' ; // data option carousel $data_options['items'] = $args['item_number']; $data_options['slideBy'] = $args['slides_to_scroll']; $data_options['margin'] = $args['margin_items']; $data_options['autoplayHoverPause'] = $args['pause_on_hover'] === 'yes' ? true : false; $data_options['loop'] = $args['infinite'] === 'yes' ? true : false; $data_options['autoplay'] = $args['autoplay'] === 'yes' ? true : false; $data_options['autoplayTimeout'] = $args['autoplay_speed']; $data_options['smartSpeed'] = $args['smartspeed']; $data_options['dots'] = false; $data_options['nav'] = $args['nav_control'] === 'yes' ? true : false; $data_options['rtl'] = is_rtl() ? true: false; // categories $categories = isset( $args['categories'] ) ? $args['categories'] : array('all') ; if ( $categories == 'all') { $categories = array('all'); } // get data $args_term = array( 'taxonomy' => 'product_cat', 'orderby' => 'slug', 'hide_empty' => true, ); if ( !empty($categories) && !in_array('all', $categories) ) { $args_term['include'] = $categories; } $terms = get_terms( $args_term ); ?> <div class="ova_product_categories owl-carousel owl-theme" data-options="<?php echo esc_attr(json_encode($data_options)); ?>"> <?php foreach ($terms as $term) : $thumbnail_id = get_term_meta($term->term_id, 'thumbnail_id', true); $thumbnail_url = wp_get_attachment_url($thumbnail_id) ? wp_get_attachment_url($thumbnail_id) : wc_placeholder_img_src('thumbnail'); $name = $term->name; $link = get_term_link( $term->term_id, 'product_cat' ); ?> <div class="item"> <?php if( $show_image == 'yes') { ?> <div class="image-thumbnail"> <img src="<?php echo esc_url($thumbnail_url); ?>" alt="<?php echo esc_html($name);?>"> <?php if( $text_view_details != '' || $icon['value'] != '' ): ?> <a href="<?php echo esc_url( $link ); ?>" class="btn read-more"> <span> <?php echo esc_html($text_view_details); ?> </span> <?php if( $icon['value'] != '' ){ \Elementor\Icons_Manager::render_icon( $icon, [ 'aria-hidden' => 'true' ] ); } ?> </a> <?php endif; ?> </div> <?php } ?> <?php if( $show_title == 'yes') { ?> <h4 class="title"> <a href="<?php echo esc_url( $link ); ?>" > <?php echo esc_html($name); ?> </a> </h4> <?php } ?> <?php if( $show_product_counts == 'yes') { ?> <div class="counts"> <span><?php echo esc_html($term->count) . esc_html__('+','ova-brw');?></span> <span class="text"><?php echo esc_html($text_product_counts);?></span> </div> <?php } ?> <?php if( $show_image != 'yes') { ?> <div class="image-thumbnail no-thumbnail"> <?php if( $text_view_details != '' || $icon['value'] != '' ): ?> <a href="<?php echo esc_url( $link ); ?>" class="btn read-more"> <span> <?php echo esc_html($text_view_details); ?> </span> <?php if( $icon['value'] != '' ){ \Elementor\Icons_Manager::render_icon( $icon, [ 'aria-hidden' => 'true' ] ); } ?> </a> <?php endif; ?> </div> <?php } ?> </div> <?php endforeach; ?> </div>PK �-]�KX�<J <J single/search_ajax.phpnu ��� <?php if( ! defined( 'ABSPATH' ) ) exit(); extract( $args ); $posts_per_page = $args['posts_per_page']; $orderby = isset( $args['orderby'] ) && $args['orderby'] ? $args['orderby'] : 'ID'; $order = isset( $args['order'] ) && $args['order'] ? $args['order'] : 'DESC'; $defautl_category = $args['default_category'] && is_array( $args['default_category'] ) ? $args['default_category'] : []; $args['method'] = 'POST'; $search_results_layout = $args['search_results_layout']; $grid_column = $args['search_results_grid_column']; $thumbnail_type = isset( $args['thumbnail_type'] ) ? $args['thumbnail_type'] : 'image'; // Avanced Search Settings $show_advanced_search = $args['show_advanced_search']; $show_price_filter = $args['show_price_filter']; $show_review_filter = $args['show_review_filter']; $show_category_filter = $args['show_category_filter']; $advanced_search_label = $args['advanced_search_label']; $advanced_search_icon = $args['advanced_search_icon']; $filter_price_label = $args['filter_price_label']; $review_label = $args['review_label']; $filter_category_label = $args['filter_category_label']; $excl_category = $args['excl_category']; $filter_duration_label = $args['filter_duration_label']; $show_duration_filter = $args['show_duration_filter']; $duration_fields = isset($args['duration_fields']) ? $args['duration_fields'] : ''; // Show category $show_category = ''; if ( $show_advanced_search === 'yes' && $show_category_filter === 'yes' ) { $show_category = 'yes'; } // Filter Settings $show_filter = $args['show_filter']; $tour_found_text = $args['tour_found_text']; $clear_filter_text = $args['clear_filter_text']; // list category $args_product_categories = array( 'taxonomy' => "product_cat", 'orderby' => 'ID', 'order' => 'DESC', 'exclude' => $excl_category, ); $product_categories = get_categories( $args_product_categories ); // get min max price $prices = ovabrw_get_filtered_price(); $min_price = floor( $prices->min_price ? $prices->min_price : 0 ); $max_price = round( $prices->max_price ? $prices->max_price : 0 ); $currency_symbol = get_woocommerce_currency_symbol(); ?> <div class="ovabrw-search-ajax"> <div class="wrap-search-ajax" data-adults="<?php echo esc_attr( $args['default_adult_number'] ) ;?>" data-childrens="<?php echo esc_attr( $args['default_children_number'] ) ;?>" data-sort_by_default="<?php echo esc_attr( $args['sort_by_default'] ) ;?>" data-start-price="<?php echo esc_attr( $min_price ) ;?>" data-end-price="<?php echo esc_attr( $max_price ) ;?>" data-grid_column="<?php echo esc_attr( $grid_column ) ;?>" data-thumbnail-type="<?php echo esc_attr( $thumbnail_type ); ?>"> <!-- Search --> <?php ovabrw_get_template('single/ovabrw_search.php', $args) ; ?> <!-- Advanced Search --> <?php if ( $show_advanced_search === 'yes') : ?> <div class="ovabrw-search-advanced"> <div class="search-advanced-input"> <?php if( $advanced_search_icon ) { ?> <div class="advanced-search-icon"> <?php \Elementor\Icons_Manager::render_icon( $advanced_search_icon, [ 'aria-hidden' => 'true' ] ); ?> </div> <?php } ?> <span class="search-advanced-text"> <?php echo esc_html( $advanced_search_label ); ?> </span> <i aria-hidden="true" class="icomoon icomoon-chevron-down"></i> </div> <div class="search-advanced-field-wrapper"> <?php if ( $show_price_filter === 'yes' ): ?> <!-- Price Filter --> <div class="search-advanced-field price-field"> <span class="ovabrw-label"> <?php echo esc_html($filter_price_label) ; ?> </span> <div class="brw-tour-price-input" data-currency_symbol="<?php echo esc_attr($currency_symbol); ?>"> <input type="text" class="brw-tour-price-from" value="<?php echo esc_attr($min_price) ;?>" data-value="<?php echo esc_attr($min_price) ;?>"/> <input type="text" class="brw-tour-price-to" value="<?php echo esc_attr($max_price) ;?>" data-value="<?php echo esc_attr($max_price) ;?>"/> </div> <div class="slider-wrapper"> <div id="brw-tour-price-slider"></div> </div> </div> <?php endif; ?> <?php if ( $show_review_filter === 'yes' ): ?> <!-- Rating Filter --> <div class="search-advanced-field rating-field"> <span class="ovabrw-label"> <?php echo esc_html($review_label) ; ?> </span> <?php for( $i = 5; $i>=1 ; $i--) { ?> <div class="total-rating-stars"> <div class="input-rating"> <input id="rating-filter-<?php echo esc_attr($i) ;?>" type="checkbox" class="rating-filter" name="rating_value[<?php echo esc_attr($i) ;?>]" value="<?php echo esc_attr($i) ;?>"> <label for="rating-filter-<?php echo esc_attr($i) ;?>"> <?php switch ($i) { case 1: ?> <span class="rating-stars"> <span class="star star-1" data-rating-val="1"><i class="fas fa-star"></i></span> </span> <?php break; ?> <?php case 2: ?> <span class="rating-stars"> <span class="star star-1" data-rating-val="1"><i class="fas fa-star"></i></span> <span class="star star-2" data-rating-val="2"><i class="fas fa-star"></i></span> </span> <?php break; ?> <?php case 3: ?> <span class="rating-stars"> <span class="star star-1" data-rating-val="1"><i class="fas fa-star"></i></span> <span class="star star-2" data-rating-val="2"><i class="fas fa-star"></i></span> <span class="star star-3" data-rating-val="3"><i class="fas fa-star"></i></span> </span> <?php break; ?> <?php case 4: ?> <span class="rating-stars"> <span class="star star-1" data-rating-val="1"><i class="fas fa-star"></i></span> <span class="star star-2" data-rating-val="2"><i class="fas fa-star"></i></span> <span class="star star-3" data-rating-val="3"><i class="fas fa-star"></i></span> <span class="star star-4" data-rating-val="4"><i class="fas fa-star"></i></span> </span> <?php break; ?> <?php case 5: ?> <span class="rating-stars"> <span class="star star-1" data-rating-val="1"><i class="fas fa-star"></i></span> <span class="star star-2" data-rating-val="2"><i class="fas fa-star"></i></span> <span class="star star-3" data-rating-val="3"><i class="fas fa-star"></i></span> <span class="star star-4" data-rating-val="4"><i class="fas fa-star"></i></span> <span class="star star-5" data-rating-val="5"><i class="fas fa-star"></i></span> </span> <?php break; ?> <?php } ?> </label> </div> </div> <?php } ?> </div> <?php endif; ?> <?php if ( $show_category_filter === 'yes' ): ?> <!-- Tour Categories Filter --> <div class="search-advanced-field tour-categories-field"> <span class="ovabrw-label"> <?php echo esc_html($filter_category_label) ; ?> </span> <?php foreach ( $product_categories as $pro_cat ) : ?> <?php if ( $pro_cat->category_parent == 0 ) { $cat_id = $pro_cat->term_id; $args_product_categories_2 = array( 'taxonomy' => 'product_cat', 'child_of' => 0, 'parent' => $cat_id, 'orderby' => 'ID', 'order' => 'DESC', 'exclude' => $excl_category, ); $sub_cats = get_categories( $args_product_categories_2 ); ?> <div class="tour-category-field"> <input id="tour-category-filter-<?php echo esc_attr( $pro_cat->slug ) ;?>" type="checkbox" class="tour-category-filter" name="category_value" value="<?php echo esc_attr( $pro_cat->slug ) ;?>" <?php echo in_array( $pro_cat->slug, $defautl_category ) ? 'checked' : ''; ?>/> <label for="tour-category-filter-<?php echo esc_attr($pro_cat->slug) ;?>"> <span class="tour-category-name"> <?php echo esc_html( $pro_cat->name ) ; ?> </span> </label> <?php if ( $sub_cats ) { foreach ( $sub_cats as $sub_category ) { ?> <div class="tour-category-field-child"> <input id="tour-category-filter-<?php echo esc_attr( $sub_category->slug ) ;?>" type="checkbox" class="tour-category-filter" name="category_value" value="<?php echo esc_attr($sub_category->slug) ;?>" <?php echo in_array( $sub_category->slug, $defautl_category ) ? 'checked' : ''; ?>/> <label for="tour-category-filter-<?php echo esc_attr( $sub_category->slug ) ;?>"> <span class="tour-category-name"> <?php echo esc_html( $sub_category->name ) ; ?> </span> </label> <?php $sub_cat_id = $sub_category->term_id; $args_product_categories_3 = array( 'taxonomy' => 'product_cat', 'child_of' => 0, 'parent' => $sub_cat_id, 'orderby' => 'ID', 'order' => 'DESC', 'exclude' => $excl_category, ); $sub_cats_2 = get_categories( $args_product_categories_3 ); ?> <?php if( $sub_cats_2 ) { foreach ( $sub_cats_2 as $sub_category_2 ) { ?> <div class="tour-category-field-child"> <input id="tour-category-filter-<?php echo esc_attr( $sub_category_2->slug ) ;?>" type="checkbox" class="tour-category-filter" name="category_value" value="<?php echo esc_attr( $sub_category_2->slug ) ;?>" <?php echo in_array( $sub_category_2->slug, $defautl_category ) ? 'checked' : ''; ?>/> <label for="tour-category-filter-<?php echo esc_attr( $sub_category_2->slug ) ;?>"> <span class="tour-category-name"> <?php echo esc_html( $sub_category_2->name ) ; ?> </span> </label> </div> <?php } } ?> </div> <?php } } ?> </div> <?php } ?> <?php endforeach;?> </div> <?php endif; ?> <!-- Duration Filter --> <?php if ( $show_duration_filter === 'yes' ): ?> <div class="search-advanced-field tour-duration-field"> <span class="ovabrw-label"> <?php echo esc_html($filter_duration_label) ; ?> </span> <?php if( is_array($duration_fields) ) : foreach( $duration_fields as $k => $duration_field) : if( $duration_field['duration_type'] === "day" ) { $value_from = $duration_field['duration_day_value_from']; $value_to = $duration_field['duration_day_value_to']; } elseif( $duration_field['duration_type'] === "hour" ) { $value_from = $duration_field['duration_hour_value_from']; $value_to = $duration_field['duration_hour_value_to']; } ?> <div class="duration-field"> <input id="duration-filter-<?php echo esc_attr($k) ;?>" type="radio" class="duration-filter" name="duration_value_from" value="<?php echo esc_attr($value_from) ;?>"> <input type="hidden" class="duration-filter-to" name="duration_value_to" value="<?php echo esc_attr($value_to) ;?>"> <input type="hidden" class="duration-filter-type" name="duration_value_type" value="<?php echo esc_attr($duration_field['duration_type']) ;?>"> <label for="duration-filter-<?php echo esc_attr($k) ;?>"> <span class="duration-name"> <?php echo esc_html( $duration_field['duration_name']) ; ?> </span> </label> </div> <?php endforeach; endif;?> </div> <?php endif; ?> </div> </div> <?php endif; ?> <!-- Filter --> <?php if ( $show_filter === 'yes') : ?> <div class="ovabrw-tour-filter"> <div class="left-filter"> <span class="tour-found-text number-result-tour-found"> <?php echo esc_html__( '0', 'ova-brw' ); ?> </span> <span class="tour-found-text"> <?php echo esc_html( $tour_found_text ); ?> </span> <span class="clear-filter"> <?php echo esc_html( $clear_filter_text ); ?> </span> </div> <div class="right-filter"> <div class="filter-sort"> <input type="text" class="input_select_input" name="sr_sort_by_label" value="<?php echo esc_html__('Sort by','ova-brw'); ?>" autocomplete="off" readonly="readonly"> <input type="hidden" class="input_select_input_value" name="sr_sort_by" value="date"> <ul class="input_select_list" style="display: none;"> <li class="term_item <?php if( $sort_by_default == 'date' ) { echo 'term_item_selected' ; } ?>" data-id="date" data-value="<?php esc_attr_e('Sort by latest','ova-brw'); ?>" > <?php echo esc_html__('Latest','ova-brw'); ?> </li> <li class="term_item <?php if( $sort_by_default == 'rating_desc' ) { echo 'term_item_selected' ; } ?>" data-id="rating_desc" data-value="<?php esc_attr_e('Sort by rating','ova-brw'); ?>" > <?php echo esc_html__('Rating','ova-brw'); ?> </li> <li class="term_item <?php if( $sort_by_default == 'price_asc' ) { echo 'term_item_selected' ; } ?>" data-id="price_asc" data-value="<?php esc_attr_e('Sort by price: low to high','ova-brw'); ?>" > <?php echo esc_html__('Price: low to high','ova-brw'); ?> </li> <li class="term_item <?php if( $sort_by_default == 'price_desc' ) { echo 'term_item_selected' ; } ?>" data-id="price_desc" data-value="<?php esc_attr_e('Sort by price: high to low','ova-brw'); ?>" > <?php echo esc_html__('Price: high to low','ova-brw'); ?> </li> </ul> </div> <div class="asc_desc_sort"> <i aria-hidden="true" class="asc_sort icomoon icomoon-chevron-up"></i> <i aria-hidden="true" class="desc_sort icomoon icomoon-chevron-down"></i> </div> <div class="filter-result-layout"> <i aria-hidden="true" class="filter-layout <?php if( $search_results_layout == 'list' ) { echo 'filter-layout-active' ; } ?> icomoon icomoon-list" data-layout="list"></i> <i aria-hidden="true" class="filter-layout <?php if( $search_results_layout == 'grid' ) { echo 'filter-layout-active' ; } ?> icomoon icomoon-gird" data-layout="grid"></i> </div> </div> </div> <?php endif; ?> <!-- Load more --> <div class="wrap-load-more" style="display: none;"> <svg class="loader" width="50" height="50"> <circle cx="25" cy="25" r="10" /> <circle cx="25" cy="25" r="20" /> </svg> </div> <!-- End load more --> <!-- Search result --> <?php if ( $show_filter === 'yes' ): ?> <?php if ( $sort_by_default == 'date' ): ?> <div id="brw-search-ajax-result" class="brw-search-ajax-result" data-order="DESC" data-orderby="date" data-defautl-category="<?php echo esc_attr( json_encode( $defautl_category ) ); ?>" data-show-category="<?php echo esc_attr( $show_category ); ?>" data-orderby_meta_key="" data-posts-per-page="<?php echo esc_attr( $posts_per_page ); ?>"> </div> <?php elseif ( $sort_by_default == 'rating_desc' ): ?> <div id="brw-search-ajax-result" class="brw-search-ajax-result" data-order="DESC" data-defautl-category="<?php echo esc_attr( json_encode( $defautl_category ) ); ?>" data-show-category="<?php echo esc_attr( $show_category ); ?>" data-orderby="meta_value_num" data-orderby_meta_key="_wc_average_rating" data-posts-per-page="<?php echo esc_attr( $posts_per_page ); ?>"> </div> <?php elseif ( $sort_by_default == 'price_asc' ): ?> <div id="brw-search-ajax-result" class="brw-search-ajax-result" data-order="ASC" data-orderby="meta_value_num" data-defautl-category="<?php echo esc_attr( json_encode( $defautl_category ) ); ?>" data-show-category="<?php echo esc_attr( $show_category ); ?>" data-orderby_meta_key="_price" data-posts-per-page="<?php echo esc_attr( $posts_per_page ); ?>"> </div> <?php elseif ( $sort_by_default == 'price_desc' ): ?> <div id="brw-search-ajax-result" class="brw-search-ajax-result" data-order="DESC" data-defautl-category="<?php echo esc_attr( json_encode( $defautl_category ) ); ?>" data-show-category="<?php echo esc_attr( $show_category ); ?>" data-orderby="meta_value_num" data-orderby_meta_key="_price" data-posts-per-page="<?php echo esc_attr( $posts_per_page ); ?>"> </div> <?php endif; ?> <?php else: ?> <div id="brw-search-ajax-result" class="brw-search-ajax-result" data-order="<?php echo esc_attr( $order ); ?>" data-defautl-category="<?php echo esc_attr( json_encode( $defautl_category ) ); ?>" data-show-category="<?php echo esc_attr( $show_category ); ?>" data-orderby="<?php echo esc_attr( $orderby ); ?>" data-orderby_meta_key="" data-posts-per-page="<?php echo esc_attr( $posts_per_page ); ?>"> </div> <?php endif; ?> </div> </div>PK �-]�~�K K single/contact_form.phpnu ��� <?php /** * The template for displaying contact form 7 within single * * This template can be overridden by copying it to yourtheme/ovabrw-templates/single/contact_form.php * */ if ( ! defined( 'ABSPATH' ) ) exit(); global $product; // if the product type isn't ovabrw_car_rental if( ! $product || $product->get_type() !== 'ovabrw_car_rental' ) return; $pid = $product->get_id(); ?> <div class="ova-contact-form-tabs-update"> <?php $manage_contact_form = get_post_meta( $pid, 'ovabrw_manage_extra_tab', true ); switch( $manage_contact_form ) { case 'in_setting' : { $short_code_form = ovabrw_get_setting( get_option('ova_brw_extra_tab_shortcode_form', '') ); break; } case 'new_form' : { $short_code_form = get_post_meta( $pid, 'ovabrw_extra_tab_shortcode', true ); break; } case 'no' : { $short_code_form = ''; break; } default: { $short_code_form = ovabrw_get_setting( get_option('ova_brw_extra_tab_shortcode_form', '') ); break; } } echo do_shortcode( htmlspecialchars_decode($short_code_form) ) ; ?> </div>PK �-]^Y�a�} �} single/search_ajax_sidebar.phpnu ��� <?php if( ! defined( 'ABSPATH' ) ) exit(); extract( $args ); $dateformat = ovabrw_get_date_format(); $placeholder = ovabrw_get_placeholder_date( $dateformat ); $hour_default = ovabrw_get_setting( get_option( 'ova_brw_booking_form_default_hour', '07:00' ) ); $time_step = ovabrw_get_setting( get_option( 'ova_brw_booking_form_step_time', '30' ) ); $data_get = $_GET; $id_selected = isset( $data_get['ovabrw_destination'] ) ? sanitize_text_field( $data_get['ovabrw_destination'] ) : 0; if ( ! $id_selected && isset( $destination_default ) && $destination_default ) { $id_selected = $destination_default; } $ovabrw_pickup_date = isset( $data_get['ovabrw_pickup_date'] ) ? sanitize_text_field( $data_get['ovabrw_pickup_date'] ) : ''; // search position $search_position = $args['search_position']; // search sidebar title $search_title = $args['search_title']; // guests ( adult & children ) $max_adult = $args['max_adult']; $min_adult = $args['min_adult']; $show_adult = $args['show_adult']; $max_children = $args['max_children']; $min_children = $args['min_children']; $show_children = $args['show_children']; $max_baby = $args['max_baby']; $min_baby = $args['min_baby']; $show_baby = $args['show_baby']; $adults_label = $args['adults_label']; $childrens_label = $args['childrens_label']; $babies_label = $args['babies_label']; $icon_guests = $args['icon_guests']; $show_guests = $args['show_guests']; $default_adult_number = isset( $data_get['ovabrw_adults'] ) ? absint( $data_get['ovabrw_adults'] ) : absint( $args['default_adult_number'] ); $default_children_number = isset( $data_get['ovabrw_childrens'] ) ? absint( $data_get['ovabrw_childrens'] ) : absint( $args['default_children_number'] ); $default_babies_number = isset( $data_get['ovabrw_babies'] ) ? absint( $data_get['ovabrw_babies'] ) : absint( $args['default_babies_number'] ); $guests = $default_adult_number + $default_children_number + $default_babies_number; $guests_placeholder = $args['guests_placeholder']; // button $icon_button = $args['icon_button']; $button_label = $args['button_label']; // check in $icon_check_in = $args['icon_check_in']; $show_check_in = $args['show_check_in']; // custom taxonomy $icon_custom_taxonomy = $args['icon_custom_taxonomy']; $custom_taxonomy_placeholder = $args['custom_taxonomy_placeholder']; $slug_custom_taxonomy = $args['slug_custom_taxonomy']; $slug_value_selected = ''; if ( $slug_custom_taxonomy ) { $slug_value_selected = isset( $data_get[$slug_custom_taxonomy.'_name'] ) ? sanitize_text_field( $data_get[$slug_custom_taxonomy.'_name'] ) : 'all'; } if ( isset($ctx_slug_value_selected) ) { $slug_value_selected = $ctx_slug_value_selected; } if ( isset( $data_get[$slug_custom_taxonomy.'_name'] ) && sanitize_text_field( $data_get[$slug_custom_taxonomy.'_name'] ) ) { $slug_value_selected = sanitize_text_field( $data_get[$slug_custom_taxonomy.'_name'] ); } $terms = get_taxonomy( $slug_custom_taxonomy ); // destination $icon_destination = $args['icon_destination']; $destination_placeholder = $args['destination_placeholder']; $show_destination = $args['show_destination']; $posts_per_page = $args['posts_per_page']; $orderby = isset( $args['orderby'] ) && $args['orderby'] ? $args['orderby'] : 'ID'; $order = isset( $args['order'] ) && $args['order'] ? $args['order'] : 'DESC'; $defautl_category = $args['default_category'] ? $args['default_category'] : []; $search_results_layout = $args['search_results_layout']; $grid_column = $args['search_results_grid_column']; $thumbnail_type = isset( $args['thumbnail_type'] ) ? $args['thumbnail_type'] : 'image'; // Avanced Search Settings $show_advanced_search = $args['show_advanced_search']; $filter_price_label = $args['filter_price_label']; $show_price_filter = $args['show_price_filter']; $review_label = $args['review_label']; $show_review_filter = $args['show_review_filter']; $filter_category_label = $args['filter_category_label']; $show_category_filter = $args['show_category_filter']; $excl_category = $args['excl_category']; // Show category $show_category = ''; if ( $show_advanced_search === 'yes' && $show_category_filter === 'yes' ) { $show_category = 'yes'; } $filter_duration_label = $args['filter_duration_label']; $show_duration_filter = $args['show_duration_filter']; $duration_fields = isset($args['duration_fields']) ? $args['duration_fields'] : ''; // Filter Settings $show_filter = $args['show_filter']; $tour_found_text = $args['tour_found_text']; $clear_filter_text = $args['clear_filter_text']; // list category $args_product_categories = array( 'taxonomy' => "product_cat", 'orderby' => 'ID', 'order' => 'DESC', 'exclude' => $excl_category, ); $product_categories = get_categories( $args_product_categories ); // get min max price $prices = ovabrw_get_filtered_price(); $min_price = floor($prices->min_price); $max_price = round($prices->max_price); $currency_symbol = get_woocommerce_currency_symbol(); // Taxonomies $mutiple_custom_taxonomy = $args['mutiple_custom_taxonomy']; $list_taxonomies = isset( $args['list_custom_taxonomy'] ) ? $args['list_custom_taxonomy'] : array(); $data_taxonomies = array(); ?> <div class="ovabrw-search-ajax ovabrw-search-ajax-sidebar"> <div class="wrap-search-ajax wrap-search-ajax-sidebar <?php echo esc_attr( $search_position ); ?>" data-adults="<?php echo esc_attr( $args['default_adult_number'] ) ;?>" data-childrens="<?php echo esc_attr( $args['default_children_number'] ) ;?>" data-babies="<?php echo esc_attr( $args['default_babies_number'] ) ;?>" data-sort_by_default="<?php echo esc_attr( $args['sort_by_default'] ) ;?>" data-start-price="<?php echo esc_attr( $min_price ) ;?>" data-end-price="<?php echo esc_attr( $max_price ) ;?>" data-grid_column="<?php echo esc_attr( $grid_column ) ;?>" data-thumbnail-type="<?php echo esc_attr( $thumbnail_type ); ?>"> <div class="search-main-content"> <!-- Filter --> <?php if( $show_filter === 'yes') : ?> <div class="ovabrw-tour-filter"> <div class="left-filter"> <span class="tour-found-text number-result-tour-found"> <?php echo esc_html__( '0', 'ova-brw' ); ?> </span> <span class="tour-found-text"> <?php echo esc_html( $tour_found_text ); ?> </span> <span class="clear-filter"> <?php echo esc_html( $clear_filter_text ); ?> </span> </div> <div class="right-filter"> <div class="filter-sort"> <input type="text" class="input_select_input" name="sr_sort_by_label" value="<?php echo esc_html__('Sort by','ova-brw'); ?>" autocomplete="off" readonly="readonly"> <input type="hidden" class="input_select_input_value" name="sr_sort_by" value="date"> <ul class="input_select_list" style="display: none;"> <li class="term_item <?php if( $sort_by_default == 'date' ) { echo 'term_item_selected' ; } ?>" data-id="date" data-value="<?php esc_attr_e('Sort by latest','ova-brw'); ?>" > <?php echo esc_html__('Latest','ova-brw'); ?> </li> <li class="term_item <?php if( $sort_by_default == 'rating_desc' ) { echo 'term_item_selected' ; } ?>" data-id="rating_desc" data-value="<?php esc_attr_e('Sort by rating','ova-brw'); ?>" > <?php echo esc_html__('Rating','ova-brw'); ?> </li> <li class="term_item <?php if( $sort_by_default == 'price_asc' ) { echo 'term_item_selected' ; } ?>" data-id="price_asc" data-value="<?php esc_attr_e('Sort by price: low to high','ova-brw'); ?>" > <?php echo esc_html__('Price: low to high','ova-brw'); ?> </li> <li class="term_item <?php if( $sort_by_default == 'price_desc' ) { echo 'term_item_selected' ; } ?>" data-id="price_desc" data-value="<?php esc_attr_e('Sort by price: high to low','ova-brw'); ?>" > <?php echo esc_html__('Price: high to low','ova-brw'); ?> </li> </ul> </div> <div class="asc_desc_sort"> <i aria-hidden="true" class="asc_sort icomoon icomoon-chevron-up"></i> <i aria-hidden="true" class="desc_sort icomoon icomoon-chevron-down"></i> </div> <div class="filter-result-layout"> <i aria-hidden="true" class="filter-layout <?php if( $search_results_layout == 'list' ) { echo 'filter-layout-active' ; } ?> icomoon icomoon-list" data-layout="list"></i> <i aria-hidden="true" class="filter-layout <?php if( $search_results_layout == 'grid' ) { echo 'filter-layout-active' ; } ?> icomoon icomoon-gird" data-layout="grid"></i> </div> </div> </div> <?php endif; ?> <!-- Load more --> <div class="wrap-load-more" style="display: none;"> <svg class="loader" width="50" height="50"> <circle cx="25" cy="25" r="10" /> <circle cx="25" cy="25" r="20" /> </svg> </div> <!-- End load more --> <!-- Search result --> <?php if ( $show_filter === 'yes' ): ?> <?php if ( $sort_by_default == 'date' ): ?> <div id="brw-search-ajax-result" class="brw-search-ajax-result" data-order="DESC" data-orderby="date" data-defautl-category="<?php echo esc_attr( json_encode( $defautl_category ) ); ?>" data-show-category="<?php echo esc_attr( $show_category ); ?>" data-orderby_meta_key="" data-posts-per-page="<?php echo esc_attr( $posts_per_page ); ?>" > </div> <?php elseif ( $sort_by_default == 'rating_desc' ): ?> <div id="brw-search-ajax-result" class="brw-search-ajax-result" data-order="DESC" data-orderby="meta_value_num" data-orderby_meta_key="_wc_average_rating" data-posts-per-page="<?php echo esc_attr( $posts_per_page ); ?>" data-defautl-category="<?php echo esc_attr( json_encode( $defautl_category ) ); ?>" data-show-category="<?php echo esc_attr( $show_category ); ?>" > </div> <?php elseif ( $sort_by_default == 'price_asc' ): ?> <div id="brw-search-ajax-result" class="brw-search-ajax-result" data-order="ASC" data-orderby="meta_value_num" data-orderby_meta_key="_price" data-posts-per-page="<?php echo esc_attr( $posts_per_page ); ?>" data-defautl-category="<?php echo esc_attr( json_encode( $defautl_category ) ); ?>" data-show-category="<?php echo esc_attr( $show_category ); ?>" > </div> <?php elseif ( $sort_by_default == 'price_desc' ): ?> <div id="brw-search-ajax-result" class="brw-search-ajax-result" data-order="DESC" data-orderby="meta_value_num" data-orderby_meta_key="_price" data-posts-per-page="<?php echo esc_attr( $posts_per_page ); ?>" data-defautl-category="<?php echo esc_attr( json_encode( $defautl_category ) ); ?>" data-show-category="<?php echo esc_attr( $show_category ); ?>" > </div> <?php endif; ?> <?php else: ?> <div id="brw-search-ajax-result" class="brw-search-ajax-result" data-order="<?php echo esc_attr( $order ); ?>" data-orderby="<?php echo esc_attr( $orderby ); ?>" data-orderby_meta_key="" data-posts-per-page="<?php echo esc_attr( $posts_per_page ); ?>" data-defautl-category="<?php echo esc_attr( json_encode( $defautl_category ) ); ?>" data-show-category="<?php echo esc_attr( $show_category ); ?>"> </div> <?php endif; ?> </div> <!-- Search Sidebar --> <div class="search-ajax-sidebar"> <!--Search --> <div class="ovabrw-search"> <?php if ( $search_title ) : ?> <h4 class="search-title"> <?php echo esc_html( $search_title ) ; ?> <i aria-hidden="true" class="icomoon icomoon-chevron-up"></i> </h4> <?php endif; ?> <form class="ovabrw-search-form" method="POST" autocomplete="off"> <div class="ovabrw-s-field"> <!-- destinations dropdown --> <?php if ( $show_destination === 'yes' ): ?> <div class="search-field"> <div class="ovabrw-label"> <?php if( $icon_destination ) { \Elementor\Icons_Manager::render_icon( $icon_destination, [ 'aria-hidden' => 'true' ] ); } ?> </div> <div class="ovabrw-input search_in_destination"> <?php echo ovabrw_destination_dropdown( $destination_placeholder, $id_selected ); ?> </div> </div> <?php endif; ?> <?php if ( ! empty( $slug_custom_taxonomy ) && !empty( $terms ) ) : ?> <!-- custom taxonomy --> <div class="search-field"> <div class="ovabrw-label"> <?php if( $icon_custom_taxonomy ) { \Elementor\Icons_Manager::render_icon( $icon_custom_taxonomy, [ 'aria-hidden' => 'true' ] ); } ?> </div> <div class="ovabrw-input search_in_taxonomy"> <?php echo ovabrw_search_taxonomy_dropdown( $slug_custom_taxonomy, $custom_taxonomy_placeholder, $slug_value_selected, 'required' ); ?> </div> </div> <?php endif; ?> <!-- Taxonomies --> <?php if ( $mutiple_custom_taxonomy === 'yes' && ! empty( $list_taxonomies ) && is_array( $list_taxonomies ) ): ?> <?php foreach( $list_taxonomies as $data_taxonomy ): $item_slug_taxonomy = isset( $data_taxonomy['item_slug_taxonomy'] ) ? $data_taxonomy['item_slug_taxonomy'] : ''; $item_icon_taxonomy = isset( $data_taxonomy['item_icon_taxonomy'] ) ? $data_taxonomy['item_icon_taxonomy'] : ''; $item_taxonomy_placeholder = isset( $data_taxonomy['item_taxonomy_placeholder'] ) ? $data_taxonomy['item_taxonomy_placeholder'] : ''; if ( ! $item_slug_taxonomy ) continue; $item_slug_default = isset( $data_get[$item_slug_taxonomy.'_name'] ) ? sanitize_text_field( $data_get[$item_slug_taxonomy.'_name'] ) : 'all'; $item_taxonomy_value = isset( $data_taxonomy['item_taxonomy_value_'.$item_slug_taxonomy] ) ? sanitize_text_field( $data_taxonomy['item_taxonomy_value_'.$item_slug_taxonomy] ) : ''; if ( $item_taxonomy_value ) { $item_slug_default = $item_taxonomy_value; } if ( isset( $data_get[$item_slug_taxonomy.'_name'] ) && sanitize_text_field( $data_get[$item_slug_taxonomy.'_name'] ) ) { $item_slug_default = sanitize_text_field( $data_get[$item_slug_taxonomy.'_name'] ); } $item_tern = get_taxonomy( $item_slug_taxonomy ); ?> <?php if ( $item_slug_taxonomy && ! empty( $item_tern ) ): array_push( $data_taxonomies, trim($item_slug_taxonomy) ); ?> <div class="search-field"> <div class="ovabrw-label"> <?php if ( $item_icon_taxonomy ) { \Elementor\Icons_Manager::render_icon( $item_icon_taxonomy, [ 'aria-hidden' => 'true' ] ); } ?> </div> <div class="ovabrw-input search_in_taxonomy"> <?php echo ovabrw_search_taxonomy_dropdown( $item_slug_taxonomy, $item_taxonomy_placeholder, $item_slug_default, 'required' ); ?> </div> </div> <?php endif; endforeach; endif; ?> <!-- time check in --> <?php if ( $show_check_in === 'yes' ): ?> <div class="search-field"> <div class="ovabrw-input"> <div class="ovabrw-label"> <?php if( $icon_check_in ) { \Elementor\Icons_Manager::render_icon( $icon_check_in, [ 'aria-hidden' => 'true' ] ); } ?> </div> <input type="text" name="ovabrw_pickup_date" class="ovabrw_datetimepicker ovabrw_start_date" value="<?php echo esc_attr( $ovabrw_pickup_date ); ?>" placeholder="<?php echo esc_attr( $placeholder ); ?>" autocomplete="off" data-hour_default="<?php echo esc_attr( $hour_default ); ?>" data-time_step="<?php echo esc_attr( $time_step ); ?>" data-dateformat="<?php echo esc_attr( $dateformat ); ?>" onkeydown="return false" onfocus="blur();" /> </div> </div> <?php endif; ?> <!-- guest --> <?php if ( $show_guests === 'yes' ): ?> <div class="search-field guestspicker-control"> <div class="ovabrw-input ovabrw-guestspicker-content-wrapper"> <div class="ovabrw-label"> <?php if( $icon_guests ) { \Elementor\Icons_Manager::render_icon( $icon_guests, [ 'aria-hidden' => 'true' ] ); } ?> </div> <div class="ovabrw-guestspicker"> <div class="guestspicker"> <span class="gueststotal"><?php echo esc_html( $guests ); ?></span> <span class="guestslabel"><?php echo esc_html( $guests_placeholder ); ?></span> </div> </div> <div class="ovabrw-guestspicker-content"> <?php if ( $show_adult === 'yes' ): ?> <div class="guests-buttons"> <div class="description"> <label><?php echo esc_html( $adults_label ); ?></label> </div> <div class="guests-button"> <div class="guests-icon minus"> <i class="fas fa-minus"></i> </div> <input type="text" id="ovabrw_adults" name="ovabrw_adults" class="ovabrw_adults" value="<?php echo esc_attr( $default_adult_number ); ?>" min="<?php echo esc_attr( $min_adult ); ?>" max="<?php echo esc_attr( $max_adult ); ?>" /> <div class="guests-icon plus"> <i class="fas fa-plus"></i> </div> </div> </div> <?php endif; ?> <?php if ( $show_children === 'yes' ): ?> <div class="guests-buttons"> <div class="description"> <label><?php echo esc_html( $childrens_label ); ?></label> </div> <div class="guests-button"> <div class="guests-icon minus"> <i class="fas fa-minus"></i> </div> <input type="text" id="ovabrw_childrens" name="ovabrw_childrens" class="ovabrw_childrens" value="<?php echo esc_attr( $default_children_number ); ?>" min="<?php echo esc_attr( $min_children ); ?>" max="<?php echo esc_attr( $max_children ); ?>" /> <div class="guests-icon plus"> <i class="fas fa-plus"></i> </div> </div> </div> <?php endif; ?> <?php if ( $show_baby === 'yes' ): ?> <div class="guests-buttons"> <div class="description"> <label><?php echo esc_html( $babies_label ); ?></label> </div> <div class="guests-button"> <div class="guests-icon minus"> <i class="fas fa-minus"></i> </div> <input type="text" id="ovabrw_babies" name="ovabrw_babies" class="ovabrw_babies" value="<?php echo esc_attr( $default_babies_number ); ?>" min="<?php echo esc_attr( $min_baby ); ?>" max="<?php echo esc_attr( $max_baby ); ?>" /> <div class="guests-icon plus"> <i class="fas fa-plus"></i> </div> </div> </div> <?php endif; ?> </div> </div> </div> <?php endif; ?> </div> <!-- Advanced Search --> <?php if( $show_advanced_search === 'yes') : ?> <div class="ovabrw-search-advanced-sidebar"> <div class="search-advanced-field-wrapper"> <!-- Price Filter --> <?php if ( $show_price_filter === 'yes' ): ?> <div class="search-advanced-field price-field"> <span class="ovabrw-label"> <?php echo esc_html($filter_price_label) ; ?> <i aria-hidden="true" class="icomoon icomoon-chevron-up"></i> </span> <div class="search-advanced-content"> <div class="slider-wrapper"> <div id="brw-tour-price-slider"></div> </div> <div class="brw-tour-price-input" data-currency_symbol="<?php echo esc_attr($currency_symbol); ?>" data-auto="<?php echo esc_attr( apply_filters( 'ovabrw-ft-price-auto', false ) ); ?>"> <div class="tour-price-value"> <span><?php echo esc_html($currency_symbol);?></span> <input type="text" class="brw-tour-price-from" value="<?php echo esc_attr($min_price) ;?>" data-value="<?php echo esc_attr($min_price) ;?>"/> </div> <div class="tour-price-value"> <span><?php echo esc_html($currency_symbol);?></span> <input type="text" class="brw-tour-price-to" value="<?php echo esc_attr($max_price) ;?>" data-value="<?php echo esc_attr($max_price) ;?>"/> </div> </div> </div> </div> <?php endif; ?> <!-- Rating Filter --> <?php if ( $show_review_filter === 'yes' ): ?> <div class="search-advanced-field rating-field"> <span class="ovabrw-label"> <?php echo esc_html($review_label) ; ?> <i aria-hidden="true" class="icomoon icomoon-chevron-up"></i> </span> <div class="search-advanced-content"> <?php for( $i = 5; $i>=1 ; $i--) { ?> <div class="total-rating-stars"> <div class="input-rating"> <input id="rating-filter-<?php echo esc_attr($i) ;?>" type="checkbox" class="rating-filter" name="rating_value[<?php echo esc_attr($i) ;?>]" value="<?php echo esc_attr($i) ;?>"> <label for="rating-filter-<?php echo esc_attr($i) ;?>"> <?php switch ($i) { case 1: ?> <span class="rating-stars"> <span class="star star-1" data-rating-val="1"><i class="fas fa-star"></i></span> </span> <?php break; ?> <?php case 2: ?> <span class="rating-stars"> <span class="star star-1" data-rating-val="1"><i class="fas fa-star"></i></span> <span class="star star-2" data-rating-val="2"><i class="fas fa-star"></i></span> </span> <?php break; ?> <?php case 3: ?> <span class="rating-stars"> <span class="star star-1" data-rating-val="1"><i class="fas fa-star"></i></span> <span class="star star-2" data-rating-val="2"><i class="fas fa-star"></i></span> <span class="star star-3" data-rating-val="3"><i class="fas fa-star"></i></span> </span> <?php break; ?> <?php case 4: ?> <span class="rating-stars"> <span class="star star-1" data-rating-val="1"><i class="fas fa-star"></i></span> <span class="star star-2" data-rating-val="2"><i class="fas fa-star"></i></span> <span class="star star-3" data-rating-val="3"><i class="fas fa-star"></i></span> <span class="star star-4" data-rating-val="4"><i class="fas fa-star"></i></span> </span> <?php break; ?> <?php case 5: ?> <span class="rating-stars"> <span class="star star-1" data-rating-val="1"><i class="fas fa-star"></i></span> <span class="star star-2" data-rating-val="2"><i class="fas fa-star"></i></span> <span class="star star-3" data-rating-val="3"><i class="fas fa-star"></i></span> <span class="star star-4" data-rating-val="4"><i class="fas fa-star"></i></span> <span class="star star-5" data-rating-val="5"><i class="fas fa-star"></i></span> </span> <?php break; ?> <?php } ?> </label> </div> </div> <?php } ?> </div> </div> <?php endif; ?> <!-- Tour Categories Filter --> <?php if ( $show_category_filter === 'yes' ): ?> <div class="search-advanced-field tour-categories-field"> <span class="ovabrw-label"> <?php echo esc_html($filter_category_label) ; ?> </span> <?php foreach( $product_categories as $pro_cat ) : ?> <?php if($pro_cat->category_parent == 0) { $cat_id = $pro_cat->term_id; $args_product_categories_2 = array( 'taxonomy' => 'product_cat', 'child_of' => 0, 'parent' => $cat_id, 'orderby' => 'ID', 'order' => 'DESC', 'exclude' => $excl_category, ); $sub_cats = get_categories( $args_product_categories_2 ); ?> <div class="tour-category-field"> <input id="tour-category-filter-<?php echo esc_attr( $pro_cat->slug ); ?>" type="checkbox" class="tour-category-filter" name="category_value" value="<?php echo esc_attr($pro_cat->slug) ;?>" <?php echo in_array( $pro_cat->slug, $defautl_category ) ? 'checked' : ''; ?> > <label for="tour-category-filter-<?php echo esc_attr( $pro_cat->slug ) ;?>"> <span class="tour-category-name"> <?php echo esc_html( $pro_cat->name ) ; ?> </span> </label> <?php if ( $sub_cats ) { foreach ( $sub_cats as $sub_category ) { ?> <div class="tour-category-field-child"> <input id="tour-category-filter-<?php echo esc_attr( $sub_category->slug ) ;?>" type="checkbox" class="tour-category-filter" name="category_value" value="<?php echo esc_attr( $sub_category->slug ) ;?>" <?php echo in_array( $sub_category->slug, $defautl_category ) ? 'checked' : ''; ?> > <label for="tour-category-filter-<?php echo esc_attr($sub_category->slug) ;?>"> <span class="tour-category-name"> <?php echo esc_html( $sub_category->name ) ; ?> </span> </label> <?php $sub_cat_id = $sub_category->term_id; $args_product_categories_3 = array( 'taxonomy' => 'product_cat', 'child_of' => 0, 'parent' => $sub_cat_id, 'orderby' => 'ID', 'order' => 'DESC', 'exclude' => $excl_category, ); $sub_cats_2 = get_categories( $args_product_categories_3 ); ?> <?php if ( $sub_cats_2 ) { foreach ( $sub_cats_2 as $sub_category_2 ) { ?> <div class="tour-category-field-child"> <input id="tour-category-filter-<?php echo esc_attr($sub_category_2->slug) ;?>" type="checkbox" class="tour-category-filter" name="category_value" value="<?php echo esc_attr( $sub_category_2->slug) ;?>" <?php echo in_array( $sub_category_2->slug, $defautl_category ) ? 'checked' : ''; ?> > <label for="tour-category-filter-<?php echo esc_attr($sub_category_2->slug) ;?>"> <span class="tour-category-name"> <?php echo esc_html( $sub_category_2->name ) ; ?> </span> </label> </div> <?php } } ?> </div> <?php } } ?> </div> <?php } ?> <?php endforeach;?> </div> <?php endif; ?> <!-- Duration Filter --> <?php if ( $show_duration_filter === 'yes' ): ?> <div class="search-advanced-field tour-duration-field"> <span class="ovabrw-label"> <?php echo esc_html($filter_duration_label) ; ?> </span> <?php if( is_array($duration_fields) ) : foreach( $duration_fields as $k => $duration_field) : if( $duration_field['duration_type'] === "day" ) { $value_from = $duration_field['duration_day_value_from']; $value_to = $duration_field['duration_day_value_to']; } elseif( $duration_field['duration_type'] === "hour" ) { $value_from = $duration_field['duration_hour_value_from']; $value_to = $duration_field['duration_hour_value_to']; } ?> <div class="duration-field"> <input id="duration-filter-<?php echo esc_attr($k) ;?>" type="radio" class="duration-filter" name="duration_value_from" value="<?php echo esc_attr($value_from) ;?>"> <input type="hidden" class="duration-filter-to" name="duration_value_to" value="<?php echo esc_attr($value_to) ;?>"> <input type="hidden" class="duration-filter-type" name="duration_value_type" value="<?php echo esc_attr($duration_field['duration_type']) ;?>"> <label for="duration-filter-<?php echo esc_attr($k) ;?>"> <span class="duration-name"> <?php echo esc_html( $duration_field['duration_name']) ; ?> </span> </label> </div> <?php endforeach; endif;?> </div> <?php endif; ?> </div> </div> <?php endif; ?> <!-- button --> <div class="ovabrw-search-btn"> <button class="ovabrw-btn" type="submit"> <?php if( $icon_button ) { \Elementor\Icons_Manager::render_icon( $icon_button, [ 'aria-hidden' => 'true' ] ); } printf( $button_label ); ?> </button> </div> </form> </div> </div> </div> </div>PK �-]�+�� � shortcode/st-booking-form.phpnu ��� <? /** * The template for displaying booking form content within single * * This template can be overridden by copying it to yourtheme/ovabrw-templates/shortcode/st-booking-form.php * */ if ( ! defined( 'ABSPATH' ) ) exit(); /** $args['id'] $args['class'] **/ ?> <div class="<?php echo esc_attr( $args['class'] ); ?>"> <?php ovabrw_get_template( 'single/booking-form.php', array( 'id' => $args['id'] ) ); ?> </div>PK �-]pU� � shortcode/st-calendar.phpnu ��� <? /** * The template for displaying booking form content within single * * This template can be overridden by copying it to yourtheme/ovabrw-templates/shortcode/st-calendar.php * */ if ( ! defined( 'ABSPATH' ) ) exit(); /** $args['id'] $args['class'] **/ ?> <div class="<?php echo esc_attr( $args['class'] ); ?>"> <?php ovabrw_get_template( 'single/calendar.php', array( 'id' => $args['id'] ) ); ?> </div>PK �-]���� � shortcode/st-table-price.phpnu ��� <? /** * The template for displaying booking form content within single * * This template can be overridden by copying it to yourtheme/ovabrw-templates/shortcode/st-table-price.php * */ if ( ! defined( 'ABSPATH' ) ) exit(); /** $args['id'] $args['class'] **/ ?> <div class="<?php echo esc_attr( $args['class'] ); ?>"> <?php ovabrw_get_template( 'single/table_price.php', array( 'id' => $args['id'] ) ); ?> </div>PK �-]Z�߇� � shortcode/st-features.phpnu ��� <? /** * The template for displaying booking form content within single * * This template can be overridden by copying it to yourtheme/ovabrw-templates/shortcode/st-features.php * */ if ( ! defined( 'ABSPATH' ) ) exit(); /** $args['id'] $args['class'] **/ ?> <div class="<?php echo esc_attr( $args['class'] ); ?>"> <?php ovabrw_get_template( 'single/features.php', array( 'id' => $args['id'] ) ); ?> </div>PK �-]�w\� � shortcode/st-request-booking.phpnu ��� <? /** * The template for displaying booking form content within single * * This template can be overridden by copying it to yourtheme/ovabrw-templates/shortcode/st-request-booking.php * */ if ( ! defined( 'ABSPATH' ) ) exit(); /** $args['id'] $args['class'] **/ ?> <div class="<?php echo esc_attr( $args['class'] ); ?>"> <?php ovabrw_get_template( 'single/request_booking.php', array( 'id' => $args['id'] ) ); ?> </div>PK �-]���VW W shortcode/search_form_full.phpnu ��� <?php /** $column, $name_product, $show_name_product, $name_product_required, $pickup_loc, $show_pickup_loc, $pickup_loc_required, $pickoff_loc, $show_dropoff_loc, $dropoff_loc_required, $pickup_date, $show_pickup_date, $pickup_date_required, $pickoff_date, $show_dropoff_date, $dropoff_date_required, $cat, $show_cat, $category_required, $remove_cats_id, $name_attribute, $value_attribute, $show_attribute, $attribute_required, $html_select_attribute, $html_select_value_attribute, $taxonomy_list_wrap, $show_tax, $tag_product, $show_tag_product, $tag_product_required, $dateformat, $hour_default, $time_step, $class, */ extract( $args ); $first_day = get_option( 'ova_brw_calendar_first_day', '0' ); if ( empty( $first_day ) ) { $first_day = 0; } $html = '<div class="ovabrw_wd_search">'; $html .= '<form action="'.home_url().'" class="'.$class.' '.' ovabrw_search form_ovabrw row" method="get" enctype="multipart/form-data" data-mesg_required="'.esc_html__( 'This field is required.', 'ova-brw' ).'">'; $html .= '<div class="wrap_content">'; $html .= ($show_name_product == 'yes') ? '<div class="s_field '.$column.'"><div class="content"> <label>'.esc_html__( 'Name Product', 'ova-brw' ).'</label><div class="wrap-error"></div> <input class="'.$name_product_required.'" placeholder="'.esc_html__('Name Product', 'ova-brw').'" name="ovabrw_name_product" value="'.esc_html( $name_product ).'" autocomplete="off" /> </div><div class="'.$class.'"></div></div>' : ''; $html .= ($show_cat == 'yes') ? '<div class="s_field '.$column.'"><div class="content"> <label>'.esc_html__( 'Category', 'ova-brw' ).'</label><div class="wrap-error"></div> '.ovabrw_cat_rental( $cat, $category_required, $remove_cats_id ).'</div></div>' : ''; $html .= ($show_pickup_loc == 'yes') ? '<div class="s_field '.$column.'"><div class="content"> <label>'.esc_html__( 'Pick-up Location', 'ova-brw' ).'</label><div class="wrap-error"></div> '.ovabrw_get_locations_html( $class = 'ovabrw_pickup_loc', $pickup_loc_required, $seleted = $pickup_loc ).' </div><div class="'.$class.'"></div></div>' : ''; $html .= ($show_dropoff_loc == 'yes') ? '<div class="s_field '.$column.'"><div class="content"> <label>'. esc_html__( 'Drop-off Location', 'ova-brw' ) .'</label><div class="wrap-error"></div> '.ovabrw_get_locations_html( $class = 'ovabrw_pickoff_loc',$dropoff_loc_required, $seleted = $pickoff_loc ).' </div><div class="'.$class.'"></div></div>' : ''; $html .= ($show_pickup_date == 'yes') ? '<div class="s_field '.$column.'"><div class="content"> <label>'. esc_html__( 'Pick-up Date', 'ova-brw' ) .'</label><div class="wrap-error"></div> <input type="text" name="ovabrw_pickup_date" value="'.$pickup_date.'" onkeydown="return false" class="'.$pickup_date_required.' ovabrw_datetimepicker ovabrw_start_date" placeholder="'.ovabrw_get_date_format().'" autocomplete="off" data-hour_default="'.esc_attr( $hour_default ).'" data-time_step="'.esc_attr( $time_step ).'" data-dateformat="'.esc_attr( $dateformat ).'" data-error=".ovabrw_pickup_date" onfocus="blur();" data-firstday="'.esc_attr( $first_day ).'" timepicker="'.esc_attr( $timepicker ).'" /> </div></div>' : ''; $html .= ($show_dropoff_date == 'yes') ? '<div class="s_field '.$column.'"><div class="content"> <label>'. esc_html__( 'Drop-off Date', 'ova-brw' ) .'</label><div class="wrap-error"></div> <input type="text" name="ovabrw_pickoff_date" value="'.$pickoff_date.'" onkeydown="return false" class="'.$dropoff_date_required.' ovabrw_datetimepicker ovabrw_end_date" placeholder="'.ovabrw_get_date_format().'" autocomplete="off" data-hour_default="'.esc_attr( $hour_default ).'" data-time_step="'.esc_attr( $time_step ).'" data-dateformat="'.esc_attr( $dateformat ).'" data-error=".ovabrw_pickoff_date" onfocus="blur();" data-firstday="'.esc_attr( $first_day ).'" timepicker="'.esc_attr( $timepicker ).'" /> </div></div>' : ''; $html .= ($show_attribute == 'yes') ? '<div class="s_field '.$column.'"><div class="content"> <label>'.esc_html__( 'Name Attribute', 'ova-brw' ).'</label><div class="wrap-error"></div>'.$html_select_attribute.'</div><div class="'.$class.'"></div></div>' : ''; $html .= $html_select_value_attribute; $html .= ($show_tag_product == 'yes') ? '<div class="s_field '.$column.'"><div class="content"> <label>'.esc_html__( 'Tag Product', 'ova-brw' ).'</label><div class="wrap-error"></div> <input class="'.$tag_product_required.'" placeholder="'.esc_html__('Tag Product', 'ova-brw').'" name="ovabrw_tag_product" value="'.esc_html( $tag_product ).'" autocomplete="off" /> </div><div class="'.$class.'"></div></div>' : ''; $list_taxonomy = array_key_exists( 'taxonomy_list_all' , $taxonomy_list_wrap) ? $taxonomy_list_wrap['taxonomy_list_all'] : []; $arr_require_taxonomy_key = array_key_exists( 'taxonomy_require' , $taxonomy_list_wrap) ? $taxonomy_list_wrap['taxonomy_require'] : []; $arr_hide_taxonomy_key = array_key_exists( 'taxonomy_hide' , $taxonomy_list_wrap) ? $taxonomy_list_wrap['taxonomy_hide'] : []; $list_get_taxonomy = array_key_exists( 'taxonomy_get' , $taxonomy_list_wrap) ? $taxonomy_list_wrap['taxonomy_get'] : []; if ( ! empty( $list_taxonomy ) && $show_tax == 'yes' ) { foreach( $list_taxonomy as $taxonomy ) { $required = ''; if ( is_array( $arr_require_taxonomy_key ) && array_key_exists( $taxonomy['slug'], $arr_require_taxonomy_key ) && $arr_require_taxonomy_key[$taxonomy['slug']] == 'require' ) { $required = 'required'; } else { $required = ''; } if ( is_array( $arr_hide_taxonomy_key ) && array_key_exists( $taxonomy['slug'], $arr_hide_taxonomy_key ) && $arr_hide_taxonomy_key[$taxonomy['slug']] == 'hide' ) { $html .= ''; } else { $html .= '<div class="s_field '.$column.' s_field_cus_tax '.$taxonomy['slug'].'"><div class="content"> <label>' . $taxonomy['name'] . '</label><div class="wrap-error"></div> '.ovabrw_taxonomy_dropdown( $list_get_taxonomy[$taxonomy['slug']], $required , '',$taxonomy['slug'], $taxonomy['name'] ).'</div></div>'; } } } $html .= '<input type="hidden" name="order" value="'.esc_attr( $order ).'">'; $html .= '<input type="hidden" name="orderby" value="'.esc_attr( $orderby ).'">'; $html .= '</div>'; $html .= '<div class="s_submit"> <button class="ovabrw_btn_submit" type="submit">'.esc_html__( 'Search', 'ova-brw' ).'</button> </div>'; $html .= '<input type="hidden" name="ovabrw_search_product" value="ovabrw_search_product" /> <input type="hidden" name="ovabrw_search" value="search_item" /> <input type="hidden" name="post_type" value="product" />'; if( defined( 'ICL_LANGUAGE_CODE' ) ){ $html .= '<input type="hidden" name="lang" value="'.ICL_LANGUAGE_CODE.'" />'; } $html .= '</form>'; $html .= '</div>'; echo $html;PK �-]��l l ovabrw_single_product.phpnu ��� <?php /** * @package Tripgo by ovatheme * @author Ovatheme * @copyright Copyright (C) 2022 Ovatheme All Rights Reserved. * @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html */ // Get product_id from do_action - use when insert shortcode if ( isset( $args['id'] ) && $args['id'] ) { $pid = $args['id']; } else { $pid = get_the_id(); } $product = wc_get_product( $pid ); $template = ovabrw_get_product_template( $pid ); get_header( 'shop' ); ?> <?php /** * woocommerce_before_main_content hook. * * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb - 20 */ do_action( 'woocommerce_before_main_content' ); ?> <?php while ( have_posts() ) : ?> <?php the_post(); ?> <?php // if the product type isn't ovabrw_car_rental if( ! $product || $product->get_type() !== 'ovabrw_car_rental' ){ wc_get_template_part( 'content', 'single-product' ); }else{ do_action( 'woocommerce_before_single_product' ); echo Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $template ); do_action( 'woocommerce_after_single_product' ); } endwhile; // end of the loop. ?> <?php /** * woocommerce_after_main_content hook. * * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content) */ do_action( 'woocommerce_after_main_content' ); ?> <?php /** * woocommerce_sidebar hook. * * @hooked woocommerce_get_sidebar - 10 */ do_action( 'woocommerce_sidebar' ); ?> <?php get_footer( 'shop' );PK �-][Q�<� � search_result.phpnu ��� <?php /** * The Template for displaying product archives, including the main shop page which is a post type archive * * This template can be overridden by copying it to yourtheme/ovabrw-templates/search.php * */ defined( 'ABSPATH' ) || exit; get_header( 'shop' ); /** * Hook: woocommerce_before_main_content. * * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb - 20 * @hooked WC_Structured_Data::generate_website_data() - 30 */ do_action( 'woocommerce_before_main_content' ); ?> <header class="woocommerce-products-header"> <?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?> <h1 class="woocommerce-products-header__title page-title"><?php esc_html_e( 'Search Result', 'ova-brw' ); ?></h1> <?php endif; ?> <?php /** * Hook: woocommerce_archive_description. * * @hooked woocommerce_taxonomy_archive_description - 10 * @hooked woocommerce_product_archive_description - 10 */ do_action( 'woocommerce_archive_description' ); ?> </header> <?php $rental_products = ovabrw_search_vehicle( $_GET ); if ( $rental_products != false ) { woocommerce_product_loop_start(); if ( $rental_products->have_posts() ) : while ( $rental_products->have_posts() ) : $rental_products->the_post(); wc_get_template_part( 'content', 'product' ); endwhile; else : esc_html_e( 'Not Found', 'ova-brw' ); endif; wp_reset_postdata(); woocommerce_product_loop_end(); ?> <nav class="woocommerce-pagination"> <?php $big = 999999999; // need an unlikely integer $args = array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $rental_products->max_num_pages, 'show_all' => false, 'end_size' => 1, 'mid_size' => 2, 'prev_next' => true, 'prev_text' => '<i class="arrow_carrot-left"></i>', 'next_text' => '<i class="arrow_carrot-right"></i>', 'type' => 'list', 'add_args' => false, 'add_fragment' => '', 'before_page_number' => '', 'after_page_number' => '' ); echo paginate_links( $args ); ?> </nav> <?php } else { /** * Hook: woocommerce_no_products_found. * * @hooked wc_no_products_found - 10 */ do_action( 'woocommerce_no_products_found' ); } /** * Hook: woocommerce_after_main_content. * * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content) */ do_action( 'woocommerce_after_main_content' ); /** * Hook: woocommerce_sidebar. * * @hooked woocommerce_get_sidebar - 10 */ do_action( 'woocommerce_sidebar' ); get_footer( 'shop' ); PK �-]H.��"