Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-includes/ID3/rental.zip
Назад
PK O2/])�)�# �# content-item-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 */ if ( !defined( 'ABSPATH' ) ) exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $product = wc_get_product( $product_id ); $date_format = ovabrw_get_date_format(); $min_adults = get_post_meta( $product_id, 'ovabrw_adults_min', true ); $min_childrens = get_post_meta( $product_id, 'ovabrw_childrens_min', true ); if ( ! $min_adults ) $min_adults = 1; if ( ! $min_childrens ) $min_childrens = 0; // link $link = apply_filters( 'woocommerce_loop_product_link', get_the_permalink(), $product ); // parameters $param = array(); global $_POST; $clicked = isset( $_POST['clicked'] ) ? $_POST['clicked'] : ''; $start_date = isset( $_POST['start_date'] ) ? $_POST['start_date'] : ''; $adults = isset( $_POST['adults'] ) ? $_POST['adults'] : $min_adults; $childrens = isset( $_POST['childrens'] ) ? $_POST['childrens'] : $min_childrens; $dropoff_date = ''; if ( $clicked ) { if ( $start_date ) { $param['pickup_date'] = $start_date; $day = get_post_meta( $product_id, 'ovabrw_number_days', true ); $dropoff_date = strtotime( $start_date ) + $day*86400; $dropoff_date = date_i18n( $date_format, $dropoff_date ); } if ( $dropoff_date ) { $param['dropoff_date'] = $dropoff_date; } if ( $adults ) { $param['ovabrw_adults'] = $adults; } if ( $childrens ) { $param['ovabrw_childrens'] = $childrens; } if ( $param ) { $link = add_query_arg( $param, $link ); } } // tour days and hours $tour_day = get_post_meta ( $product_id,'ovabrw_number_days', true ); $tour_hour = get_post_meta ( $product_id,'ovabrw_number_hours', true ); $duration = get_post_meta ( $product_id,'ovabrw_duration_checkbox', true ); // location and review $address = get_post_meta( $product_id, 'ovabrw_address', true ); $review_count = $product->get_review_count(); $rating = $product->get_average_rating(); $short_address = get_post_meta( $product_id, 'ovabrw_short_address', true ); if( $short_address && !empty($short_address) ) { $address = $short_address; } // Wishlist $wishlist = do_shortcode('[yith_wcwl_add_to_wishlist]'); // Featured product $is_featured = $product->is_featured(); // Price $regular_price = $product->get_regular_price(); if ( $product->is_on_sale() ) { $sale_price = $product->get_sale_price(); } // show fields $show_featured = get_theme_mod('tour_archive_show_featured','yes'); $show_wishlist = get_theme_mod('tour_archive_show_wishlist','yes'); $show_duration = get_theme_mod('tour_archive_show_duration','yes'); $show_title = get_theme_mod('tour_archive_show_title','yes'); $show_location = get_theme_mod('tour_archive_show_location','yes'); $show_rating = get_theme_mod('tour_archive_show_rating','yes'); $show_price = get_theme_mod('tour_archive_show_price','yes'); $show_button = get_theme_mod('tour_archive_show_explore_button','yes'); ?> <div class="ova_head_product"> <?php if ( $is_featured && $show_featured == 'yes' ): ?> <div class="ova-is-featured"> <?php esc_html_e( 'Featured', 'tripgo' ); ?> </div> <?php endif; ?> <?php if ( '[yith_wcwl_add_to_wishlist]' != $wishlist && $show_wishlist == 'yes' ): ?> <div class="ova-product-wishlist"> <?php echo $wishlist; ?> </div> <?php endif; ?> <?php if ( apply_filters( 'ovabrw_ft_product_list_card_gallery', false ) ): ?> <div class="ova-card-gallery"> <?php $data_options = apply_filters( 'ft_wc_card_gallery_slideshow_options', array( 'items' => 1, 'slideBy' => 1, 'margin' => 24, 'autoplayHoverPause' => true, 'loop' => true, 'autoplay' => false, 'autoplayTimeout' => 3000, 'smartSpeed' => 500, 'autoWidth' => false, 'center' => false, 'lazyLoad' => true, 'dots' => true, 'nav' => true, 'rtl' => is_rtl() ? true: false, 'nav_left' => 'icomoon icomoon-angle-left', 'nav_right' => 'icomoon icomoon-angle-right', )); ?> <?php wc_get_template( 'rental/loop/gallery-slideshow.php', [ 'data_options' => $data_options ] ); ?> </div> <?php else: ?> <a href="<?php echo esc_url( $link ); ?>" class="ova-product-thumbnail"> <?php echo woocommerce_get_product_thumbnail('tripgo_product_slider'); ?> </a> <?php endif; ?> </div> <div class="ova_foot_product"> <div class="ova-product-day-title-location"> <?php if ( ( $tour_day || ( $duration && $tour_hour ) ) && $product->is_type( 'ovabrw_car_rental' ) && $show_duration == 'yes' ) : ?> <div class="ova-tour-day"> <i aria-hidden="true" class="icomoon icomoon-clock"></i> <?php if ( $duration ): $hours = ovabrw_convert_number_to_hours( $tour_hour ); $minutes = ovabrw_convert_number_to_minutes( $tour_hour ); ?> <?php if ( $hours && $minutes ): ?> <?php if ( $hours > 1 && $minutes > 1 ): ?> <?php printf( esc_html__( '%s hours %s minutes', 'tripgo' ), $hours, $minutes ); ?> <?php elseif ( $hours == 1 && $minutes > 1 ): ?> <?php printf( esc_html__( '%s hour %s minutes', 'tripgo' ), $hours, $minutes ); ?> <?php elseif ( $hours > 1 && $minutes == 1 ): ?> <?php printf( esc_html__( '%s hours %s minute', 'tripgo' ), $hours, $minutes ); ?> <?php else: ?> <?php printf( esc_html__( '%s hour %s minute', 'tripgo' ), $hours, $minutes ); ?> <?php endif; ?> <?php elseif ( ! $hours && $minutes ): ?> <?php if ( $minutes == 1 ): ?> <?php printf( esc_html__( '%s minute', 'tripgo' ), $minutes ); ?> <?php else: ?> <?php printf( esc_html__( '%s minutes', 'tripgo' ), $minutes ); ?> <?php endif; ?> <?php else: ?> <?php if ( $hours == 1 ): ?> <?php printf( esc_html__( '%s hour', 'tripgo' ), $hours ); ?> <?php else: ?> <?php printf( esc_html__( '%s hours', 'tripgo' ), $hours ); ?> <?php endif; ?> <?php endif; ?> <?php else: ?> <?php if ( absint( $tour_day ) == 1 ): ?> <?php echo esc_html( $tour_day ) . ' ' . esc_html__('day','tripgo'); ?> <?php else: ?> <?php echo esc_html( $tour_day ) . ' ' . esc_html__('days','tripgo'); ?> <?php endif; ?> <?php endif; ?> </div> <?php endif;?> <?php if ( $show_title == 'yes' ): ?> <h2 class="ova-product-title"> <a href="<?php echo esc_url( $link ); ?>"> <?php echo get_the_title(); ?> </a> </h2> <?php endif;?> <?php if ( $address && $show_location == 'yes' ): ?> <div class="ova-product-location"> <i aria-hidden="true" class="icomoon icomoon-location"></i> <span class="location"> <?php echo esc_html( $address ); ?> </span> </div> <?php endif; ?> </div> <div class="ova-product-review-and-price"> <?php if ( wc_review_ratings_enabled() && $rating > 0 && $show_rating == 'yes' ) : ?> <div class="ova-product-review"> <div class="star-rating" role="img" aria-label="<?php echo sprintf( __( 'Rated %s out of 5', 'tripgo' ), $rating ); ?>"> <span class="rating-percent" style="width: <?php echo esc_attr( ( $rating / 5 ) * 100 ).'%'; ?>;"></span> <?php if ( $review_count > 0 ): ?> <span class="rating"><?php echo esc_html( $review_count ); ?></span>' <?php else: ?> <strong class="rating"><?php echo esc_html( $rating ); ?></strong> <?php endif; ?> </div> </div> <?php endif; ?> <div class="ova-product-wrapper-price"> <?php if ( $show_price == 'yes' ): ?> <div class="ova-product-price"> <?php if ( isset( $sale_price ) && $regular_price ): ?> <span class="new-product-price"><?php echo wc_price( $sale_price ); ?></span> <span class="old-product-price"><?php echo wc_price( $regular_price ); ?></span> <?php elseif ( ! isset( $sale_price ) && $regular_price ): ?> <span class="new-product-price"><?php echo wc_price( $regular_price ); ?></span> <?php else: ?> <?php if ( $product && ! $product->is_type('ovabrw_car_rental') ): ?> <span class="new-product-price"><?php echo $product->get_price_html(); ?></span> <?php else: ?> <span class="no-product-price"><?php esc_html_e( 'Option Price', 'tripgo' ); ?></span> <?php endif; ?> <?php endif; ?> </div> <?php endif; ?> <?php if ( $show_button == 'yes' ): ?> <a href="<?php echo esc_url( $link ); ?>" class="btn product-btn-book-now"> <span><?php esc_html_e('Explore', 'tripgo'); ?></span> </a> <?php endif; ?> </div> </div> </div>PK O2/]�X� � 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 */ if ( !defined( 'ABSPATH' ) ) exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $product = wc_get_product( $product_id ); $template = ovabrw_get_product_template( $product_id ); get_header( 'shop' ); ?> <?php /** * tripgo_wc_before_main_content hook. */ do_action( 'tripgo_wc_before_main_content' ); ?> <?php while ( have_posts() ) : the_post(); if ( 'default' === $template ) { wc_get_template_part( 'rental/content', 'single-product' ); } else { // WPML $template = apply_filters( 'wpml_object_id', $template, 'elementor_library', true ); 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 /** * tripgo_wc_after_main_content hook. */ do_action( 'tripgo_wc_after_main_content' ); ?> <?php get_footer( 'shop' );PK O2/]�l���2 �2 content-item-product-list.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 */ if ( ! defined( 'ABSPATH' ) ) exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $product = wc_get_product( $product_id ); $date_format = ovabrw_get_date_format(); // gallery $gallery_ids = $product->get_gallery_image_ids(); $number_gallery = count( $gallery_ids ); $gallery_data = array(); foreach( $gallery_ids as $k => $gallery_id ) { $gallery_url = wp_get_attachment_image_url( $gallery_id, 'tripgo_product_gallery' ); $gallery_alt = get_post_meta( $gallery_id, '_wp_attachment_image_alt', true ); if ( ! $gallery_alt ) { $gallery_alt = get_the_title( $gallery_id ); } $src = array( 'src' => $gallery_url, 'caption' => $gallery_alt, 'thumb' => $gallery_url, ); array_push( $gallery_data, $src ); } // video $embed_url = get_post_meta( $product_id, 'ovabrw_embed_video', true ); $controls = apply_filters( 'ft_wc_video_controls', array( 'autoplay' => 'yes', 'mute' => 'no', 'loop' => 'yes', 'controls' => 'yes', 'modest' => 'yes', 'rel' => 'yes', )); // link to detail $min_adults = get_post_meta( $product_id, 'ovabrw_adults_min', true ); $min_childrens = get_post_meta( $product_id, 'ovabrw_childrens_min', true ); if ( ! $min_adults ) $min_adults = 1; if ( ! $min_childrens ) $min_childrens = 0; // thumbnail $link = apply_filters( 'woocommerce_loop_product_link', get_the_permalink(), $product ); $param = array(); global $_POST; $clicked = isset( $_POST['clicked'] ) ? $_POST['clicked'] : ''; $start_date = isset( $_POST['start_date'] ) ? $_POST['start_date'] : ''; $adults = isset( $_POST['adults'] ) ? $_POST['adults'] : $min_adults; $childrens = isset( $_POST['childrens'] ) ? $_POST['childrens'] : $min_childrens; $dropoff_date = ''; if ( $clicked ) { if ( $start_date ) { $param['pickup_date'] = $start_date; $day = get_post_meta( $product_id, 'ovabrw_number_days', true ); $dropoff_date = strtotime( $start_date ) + $day*86400; $dropoff_date = date_i18n( $date_format, $dropoff_date ); } if ( $dropoff_date ) { $param['dropoff_date'] = $dropoff_date; } if ( $adults ) { $param['ovabrw_adults'] = $adults; } if ( $childrens ) { $param['ovabrw_childrens'] = $childrens; } if ( $param ) { $link = add_query_arg( $param, $link ); } } // title, link to detail, featured image $title = get_the_title(); $image_url = get_the_post_thumbnail_url( $product_id, 'tripgo_product_gallery' ); $image_id = get_post_thumbnail_id(); $image_alt = ''; if ( $image_id ) { $image_alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true ); if ( empty( $image_alt ) ) { $image_alt = get_the_title( $image_id ); } } if( $image_url == '' ) { $image_url = \Elementor\Utils::get_placeholder_image_src(); } // Max people $max_people = ''; $max_total_guest = get_post_meta( $product_id, 'ovabrw_max_total_guest', true ); if ( absint( $max_total_guest ) ) { $max_people = absint( $max_total_guest ); } else { $max_people = absint( get_post_meta( $product_id, 'ovabrw_adults_max', true ) ); if ( get_option( 'ova_brw_booking_form_show_children', 'yes' ) === 'yes' ) { $max_people += absint( get_post_meta( $product_id, 'ovabrw_childrens_max', true ) ); } if ( get_option( 'ova_brw_booking_form_show_baby', 'yes' ) === 'yes' ) { $max_people += absint( get_post_meta( $product_id, 'ovabrw_babies_max', true ) ); } } // tour days and hours $tour_day = get_post_meta ( $product_id,'ovabrw_number_days', true ); $tour_hour = get_post_meta ( $product_id,'ovabrw_number_hours', true ); $duration = get_post_meta ( $product_id,'ovabrw_duration_checkbox', true ); // Wishlist $wishlist = do_shortcode('[yith_wcwl_add_to_wishlist]'); // Featured product $is_featured = $product->is_featured(); // location and review $address = get_post_meta( $product_id, 'ovabrw_address', true ); $review_count = $product->get_review_count(); $rating = $product->get_average_rating(); $short_address = get_post_meta( $product_id, 'ovabrw_short_address', true ); if( $short_address && !empty($short_address) ) { $address = $short_address; } // short description $short_description = get_the_excerpt( $product_id ); // Price $regular_price = $product->get_regular_price(); if ( $product->is_on_sale() ) { $sale_price = $product->get_sale_price(); } // show fields $show_featured = get_theme_mod('tour_archive_show_featured','yes'); $show_wishlist = get_theme_mod('tour_archive_show_wishlist','yes'); $show_max_guest = get_theme_mod('tour_archive_show_max_guest','yes'); $show_duration = get_theme_mod('tour_archive_show_duration','yes'); $show_title = get_theme_mod('tour_archive_show_title','yes'); $show_location = get_theme_mod('tour_archive_show_location','yes'); $show_rating = get_theme_mod('tour_archive_show_rating','yes'); $show_price = get_theme_mod('tour_archive_show_price','yes'); $show_button = get_theme_mod('tour_archive_show_explore_button','yes'); ?> <div class="ovabrw-single-product"> <div class="product-img"> <?php if ( apply_filters( 'ovabrw_ft_product_list_card_gallery', false ) ): ?> <div class="ova-card-gallery"> <?php $data_options = apply_filters( 'ft_wc_card_gallery_slideshow_options', array( 'items' => 1, 'slideBy' => 1, 'margin' => 24, 'autoplayHoverPause' => true, 'loop' => true, 'autoplay' => false, 'autoplayTimeout' => 3000, 'smartSpeed' => 500, 'autoWidth' => false, 'center' => false, 'lazyLoad' => true, 'dots' => true, 'nav' => true, 'rtl' => is_rtl() ? true: false, 'nav_left' => 'icomoon icomoon-angle-left', 'nav_right' => 'icomoon icomoon-angle-right', )); ?> <?php wc_get_template( 'rental/loop/gallery-slideshow.php', [ 'data_options' => $data_options ] ); ?> </div> <?php else: ?> <img src="<?php echo esc_url( $image_url ); ?>" alt="<?php echo esc_attr( $image_alt ); ?>"> <?php endif; ?> <?php if ( $is_featured && $show_featured == 'yes' ): ?> <div class="ova-is-featured"> <?php esc_html_e( 'Featured', 'tripgo' ); ?> </div> <?php endif; ?> <?php if ( '[yith_wcwl_add_to_wishlist]' != $wishlist && $show_wishlist == 'yes' ): ?> <div class="ova-product-wishlist"> <?php echo $wishlist; ?> </div> <?php endif; ?> <div class="ova-video-gallery"> <?php if ( $embed_url ): ?> <div class="btn-video btn-video-gallery" data-src="<?php echo esc_url( $embed_url ); ?>" data-controls="<?php echo esc_attr( json_encode( $controls ) ); ?>"> <i aria-hidden="true" class="icomoon icomoon-caret-circle-right"></i> <?php esc_html_e( 'View video', 'tripgo' ); ?> </div> <div class="video-container"> <div class="modal-container"> <div class="modal"> <i class="ovaicon-cancel"></i> <iframe class="modal-video" allow="autoplay" allowfullscreen></iframe> </div> </div> </div> <?php endif; ?> <?php if ( $gallery_data && is_array( $gallery_data ) ): ?> <div class="btn-gallery btn-video-gallery fancybox" data-gallery="<?php echo esc_attr( json_encode( $gallery_data ) );?>"> <i aria-hidden="true" class="icomoon icomoon-gallery"></i> <?php echo sprintf( esc_html__( '%s photos', 'tripgo' ), count( $gallery_data ) ); ?> </div> <?php endif; ?> </div> </div> <div class="product-container"> <div class="product-container-left"> <?php if ( $show_title == 'yes' ): ?> <a href="<?php echo esc_url( $link ); ?>"> <h2 class="product-title"> <?php echo esc_html( $title ); ?> </h2> </a> <?php endif; ?> <?php if ( $address && $show_location == 'yes' ): ?> <div class="ova-product-location"> <i aria-hidden="true" class="icomoon icomoon-location"></i> <span class="location"> <?php echo esc_html( $address ); ?> </span> </div> <?php endif; ?> <?php if ( wc_review_ratings_enabled() && $rating > 0 && $show_rating == 'yes' ): ?> <div class="ova-product-review"> <div class="star-rating" role="img" aria-label="<?php echo sprintf( __( 'Rated %s out of 5', 'tripgo' ), $rating ); ?>"> <span class="rating-percent" style="width: <?php echo esc_attr( ( $rating / 5 ) * 100 ).'%'; ?>;"></span> </div> <a href="<?php echo esc_url($link); ?>#reviews" class="woo-review-link" rel="nofollow"> <?php printf( _n( '%s review', '%s reviews', $review_count, 'tripgo' ), esc_html( $review_count ) ); ?> </a> </div> <?php endif; ?> <?php if( !empty( $short_description ) ) : ?> <div class="product-short-description"> <?php printf( $short_description ); ?> </div> <?php endif; ?> </div> <div class="product-container-right"> <?php if ( ! empty($max_people) && $show_max_guest == 'yes' ) : ?> <div class="ova-tour-day ova-max-people"> <i aria-hidden="true" class="icomoon icomoon-profile-circle"></i> <?php echo esc_html( $max_people ) ;?> </div> <?php endif;?> <?php if ( $tour_day && $show_duration == 'yes' ) :?> <div class="ova-tour-day"> <i aria-hidden="true" class="icomoon icomoon-clock"></i> <?php if ( $duration ): $hours = ovabrw_convert_number_to_hours( $tour_hour ); $minutes = ovabrw_convert_number_to_minutes( $tour_hour ); ?> <?php if ( $hours && $minutes ): ?> <?php if ( $hours > 1 && $minutes > 1 ): ?> <?php printf( esc_html__( '%s hours %s minutes', 'tripgo' ), $hours, $minutes ); ?> <?php elseif ( $hours == 1 && $minutes > 1 ): ?> <?php printf( esc_html__( '%s hour %s minutes', 'tripgo' ), $hours, $minutes ); ?> <?php elseif ( $hours > 1 && $minutes == 1 ): ?> <?php printf( esc_html__( '%s hours %s minute', 'tripgo' ), $hours, $minutes ); ?> <?php else: ?> <?php printf( esc_html__( '%s hour %s minute', 'tripgo' ), $hours, $minutes ); ?> <?php endif; ?> <?php elseif ( ! $hours && $minutes ): ?> <?php if ( $minutes == 1 ): ?> <?php printf( esc_html__( '%s minute', 'tripgo' ), $minutes ); ?> <?php else: ?> <?php printf( esc_html__( '%s minutes', 'tripgo' ), $minutes ); ?> <?php endif; ?> <?php else: ?> <?php if ( $hours == 1 ): ?> <?php printf( esc_html__( '%s hour', 'tripgo' ), $hours ); ?> <?php else: ?> <?php printf( esc_html__( '%s hours', 'tripgo' ), $hours ); ?> <?php endif; ?> <?php endif; ?> <?php else: ?> <?php if ( absint( $tour_day ) == 1 ): ?> <?php echo esc_html( $tour_day ) . ' ' . esc_html__('day','tripgo'); ?> <?php else: ?> <?php echo esc_html( $tour_day ) . ' ' . esc_html__('days','tripgo'); ?> <?php endif; ?> <?php endif; ?> </div> <?php endif;?> <div class="ova-product-wrapper-price"> <?php if ( $show_price == 'yes' ): ?> <div class="ova-product-price"> <?php if ( isset( $sale_price ) && $regular_price ): ?> <span class="new-product-price"><?php echo wc_price( $sale_price ); ?></span> <span class="old-product-price"><?php echo wc_price( $regular_price ); ?></span> <?php elseif ( ! isset( $sale_price ) && $regular_price ): ?> <span class="new-product-price"><?php echo wc_price( $regular_price ); ?></span> <?php else: ?> <?php if ( $product && ! $product->is_type('ovabrw_car_rental') ): ?> <span class="new-product-price"><?php echo $product->get_price_html(); ?></span> <?php else: ?> <span class="no-product-price"><?php esc_html_e( 'Option Price', 'tripgo' ); ?></span> <?php endif; ?> <?php endif; ?> </div> <?php endif; ?> <?php if ( $show_button == 'yes' ): ?> <a href="<?php echo esc_url( $link ); ?>" class="btn product-btn-book-now"> <?php esc_html_e('Explore', 'tripgo'); ?> </a> <?php endif; ?> </div> </div> </div> </div>PK O2/]|�� loop/fields/services.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $product = wc_get_product( $product_id ); if ( !$product || !$product->is_type('ovabrw_car_rental') ) return; $ovabrw_label_service = get_post_meta( $product_id, 'ovabrw_label_service', true ); $ovabrw_service_required = get_post_meta( $product_id, 'ovabrw_service_required', true ); $ovabrw_service_id = get_post_meta( $product_id, 'ovabrw_service_id', true ); $ovabrw_service_name = get_post_meta( $product_id, 'ovabrw_service_name', true ); $service_adult_price = get_post_meta( $product_id, 'ovabrw_service_adult_price', true ); $service_children_price = get_post_meta( $product_id, 'ovabrw_service_children_price', true ); $service_baby_price = get_post_meta( $product_id, 'ovabrw_service_baby_price', true ); $service_duration_type = get_post_meta( $product_id, 'ovabrw_service_duration_type', true ); // Settings $show_children = get_option( 'ova_brw_booking_form_show_children', 'yes' ); $show_baby = get_option( 'ova_brw_booking_form_show_baby', 'yes' ); ?> <?php if( $ovabrw_label_service ): ?> <div class="ovabrw_services rental_item"> <label> <?php esc_html_e( 'Services', 'tripgo' ); ?> </label> <?php for( $i = 0; $i < count( $ovabrw_label_service ); $i++ ): $label_group_service = $ovabrw_label_service[$i]; $service_group_required = isset( $ovabrw_service_required[$i] ) ? $ovabrw_service_required[$i] : ''; $required = ''; if ( 'yes' === $service_group_required ) { $required = ' class="required"'; } ?> <div class="ovabrw_service_select"> <select name="ovabrw_service[]"<?php echo printf( $required ); ?> data-error="<?php printf( esc_html__( '%s is required.', 'tripgo' ), $label_group_service ); ?>"> <option value=""> <?php printf( esc_html__( 'Select %s', 'tripgo' ), $label_group_service ); ?> </option> <?php if ( !empty( $ovabrw_service_id ) && isset( $ovabrw_service_id[$i] ) ): ?> <?php foreach( $ovabrw_service_id[$i] as $key => $value ): $service_name = isset( $ovabrw_service_name[$i][$key] ) ? $ovabrw_service_name[$i][$key] : ''; $adult_price = isset( $service_adult_price[$i][$key] ) ? $service_adult_price[$i][$key] : 0; $children_price = isset( $service_children_price[$i][$key] ) ? $service_children_price[$i][$key] : 0; $baby_price = isset( $service_baby_price[$i][$key] ) ? $service_baby_price[$i][$key] : 0; $duration_type = isset( $service_duration_type[$i][$key] ) ? $service_duration_type[$i][$key] : 'person'; $html_duration = esc_html__( '/total', 'tripgo' ); if ( 'person' === $duration_type ) { $html_duration = esc_html__( '/per person', 'tripgo' ); } $html_price = ''; if ( $show_children != 'yes' ) { $html_price = sprintf( esc_html__( ' (Adult: %s%s)', 'tripgo' ), ovabrw_wc_price($adult_price), $html_duration ); } if ( $show_children != 'yes' && $show_baby != 'yes' ) { $html_price = sprintf( esc_html__( ' (Adult: %s%s)', 'tripgo' ), ovabrw_wc_price($adult_price), $html_duration ); } elseif ( $show_children === 'yes' && $show_baby != 'yes' ) { $html_price = sprintf( esc_html__( ' (Adult: %s%s - Children:%s%s)', 'tripgo' ), ovabrw_wc_price($adult_price), $html_duration, ovabrw_wc_price($children_price), $html_duration ); } elseif ( $show_children != 'yes' && $show_baby === 'yes' ) { $html_price = sprintf( esc_html__( ' (Adult: %s%s - Baby:%s%s)', 'tripgo' ), ovabrw_wc_price($adult_price), $html_duration, ovabrw_wc_price($baby_price), $html_duration ); } else { $html_price = sprintf( esc_html__( ' (Adult: %s%s - Children:%s%s - Baby:%s%s)', 'tripgo' ), ovabrw_wc_price($adult_price), $html_duration, ovabrw_wc_price($children_price), $html_duration, ovabrw_wc_price($baby_price), $html_duration ); } ?> <option value="<?php echo esc_attr( $value ); ?>"> <?php if ( apply_filters( 'ft_services_show_duration', true ) ): ?> <?php echo esc_html($service_name) . sprintf('%s', $html_price); ?> <?php else: ?> <?php echo esc_html($service_name); ?> <?php endif; ?> </option> <?php endforeach; ?> <?php endif; ?> </select> </div> <?php endfor; ?> </div> <?php endif; ?>PK O2/]<�ػ� � loop/fields/dates.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $product = wc_get_product( $product_id ); if ( !$product || !$product->is_type('ovabrw_car_rental') ) return; // Get first day in week $first_day = get_option( 'ova_brw_calendar_first_day', '0' ); if ( empty( $first_day ) ) { $first_day = 0; } $disable_week_day = get_post_meta( $product_id, 'ovabrw_product_disable_week_day', true ); // Total Day $total_day = get_post_meta( $product_id, 'ovabrw_number_days', true ); if ( ! $total_day ) { $total_day = 1; } // Get booked time $statuses = brw_list_order_status(); $order_time = ovabrw_get_disabled_dates( $product_id, $statuses ); $placeholder_date = ovabrw_get_placeholder_date(); $label_time = esc_html__( 'Choose time', 'tripgo' ); $label_check_in = esc_html__( 'Check in', 'tripgo' ); $label_check_out = esc_html__( 'Check out', 'tripgo' ); $check_in_default = ovabrw_get_current_date_from_search( 'pickup_date', $product_id ); $check_out_default = ovabrw_get_current_date_from_search( 'dropoff_date', $product_id ); $fixed_time_check_in = get_post_meta( $product_id, 'ovabrw_fixed_time_check_in', true ); $fixed_time_check_out = get_post_meta( $product_id, 'ovabrw_fixed_time_check_out', true ); $duration = get_post_meta( $product_id, 'ovabrw_duration_checkbox', true ); $readonly = $check_in_class = ''; if ( ! empty( $fixed_time_check_in ) && ! empty( $fixed_time_check_out ) && ! $duration ) { $readonly = 'readonly'; $check_in_class = ' ovabrw_readonly'; } // Show/Hide checkout field $hide_checkout = ''; $checkout_field = get_post_meta( $product_id, 'ovabrw_manage_checkout_field', true ); $show_checkout = get_option( 'ova_brw_booking_form_show_checkout', 'yes' ); if ( ! $checkout_field ) $checkout_field = 'global'; if ( $checkout_field === 'global' ) { if ( $show_checkout != 'yes' ) { $hide_checkout = ' ovabrw-hide-field'; } } elseif ( $checkout_field === 'hide' ) { $hide_checkout = ' ovabrw-hide-field'; } else { $hide_checkout = ''; } ?> <?php if ( ! $duration && ! empty( $fixed_time_check_in ) && ! empty( $fixed_time_check_out ) ): $fixed_dates = function_exists( 'ovabrw_get_fixed_dates' ) ? ovabrw_get_fixed_dates( $product_id ) : '';; ?> <div class="rental_item ovabrw_fixed_time_field"> <label> <?php echo esc_html( $label_time ); ?> </label> <select name="ovabrw_fixed_time" class="ovabrw_fixed_time"> <?php if ( !empty( $fixed_dates ) && is_array( $fixed_dates ) ): ?> <?php foreach ( $fixed_dates as $date_range => $date_string ): ?> <option value="<?php echo esc_attr( $date_range ); ?>"> <?php echo esc_html( $date_string ); ?> </option> <?php endforeach; ?> <?php else: ?> <option value=""><?php esc_html_e( 'No time', 'tripgo' ); ?></option> <?php endif; ?> </select> </div> <?php endif; ?> <div class="rental_item ovabrw_checkin_field"> <label> <?php echo esc_html( $label_check_in ); ?> </label> <input type="text" name="ovabrw_pickup_date" class="required ovabrw_datetimepicker ovabrw_start_date<?php echo esc_attr( $check_in_class ); ?>" placeholder="<?php echo esc_attr( $placeholder_date ); ?>" value="<?php echo esc_attr( $check_in_default ); ?>" autocomplete="off" data-firstday="<?php echo esc_attr( $first_day ); ?>" data-disable-week-day="<?php echo esc_attr( $disable_week_day ); ?>" data-total-day="<?php echo esc_attr( $total_day ); ?>" data-order-time="<?php echo esc_attr( $order_time ); ?>" data-error="<?php esc_html_e( 'Check-in is required.', 'tripgo' ); ?>" data-readonly="<?php echo esc_attr( $readonly ); ?>" <?php echo esc_html( $readonly ); ?> /> <span class="ovabrw-date-loading"> <i aria-hidden="true" class="flaticon flaticon-spinner-of-dots"></i> </span> </div> <div class="rental_item ovabrw_checkout_field<?php echo esc_attr( $hide_checkout ); ?>"> <label> <?php echo esc_html( $label_check_out ); ?> </label> <input type="text" name="ovabrw_pickoff_date" class="required ovabrw_end_date" placeholder="<?php echo esc_attr( $placeholder_date ); ?>" value="<?php echo esc_attr( $check_out_default ); ?>" autocomplete="off" data-error="<?php esc_html_e( 'Check-out is required.', 'tripgo' ); ?>" readonly /> <span class="ovabrw-date-loading"> <i aria-hidden="true" class="flaticon flaticon-spinner-of-dots"></i> </span> </div>PK O2/]����R R loop/fields/resources.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $product = wc_get_product( $product_id ); if ( !$product || !$product->is_type('ovabrw_car_rental') ) return; $ovabrw_rs_id = get_post_meta( $product_id, 'ovabrw_rs_id', true ); $form = isset( $args['form'] ) && $args['form'] ? $args['form'] : ''; $show_children = get_option( 'ova_brw_booking_form_show_children', 'yes' ); $show_baby = get_option( 'ova_brw_booking_form_show_baby', 'yes' ); ?> <?php if ( $ovabrw_rs_id ): $ovabrw_rs_name = get_post_meta( $product_id, 'ovabrw_rs_name', true ); $ovabrw_rs_description = get_post_meta( $product_id, 'ovabrw_rs_description', true ); $ovabrw_rs_adult_price = get_post_meta( $product_id, 'ovabrw_rs_adult_price', true ); $ovabrw_rs_children_price = get_post_meta( $product_id, 'ovabrw_rs_children_price', true ); $ovabrw_rs_baby_price = get_post_meta( $product_id, 'ovabrw_rs_baby_price', true ); $ovabrw_rs_duration_type = get_post_meta( $product_id, 'ovabrw_rs_duration_type', true ); ?> <div class="ovabrw-resources rental_item"> <label> <?php esc_html_e( 'Extra Services', 'tripgo' ); ?> </label> <?php foreach ( $ovabrw_rs_id as $k => $id ): if ( $id ): $rs_name = isset( $ovabrw_rs_name[$k] ) ? $ovabrw_rs_name[$k] : ''; $rs_description = isset( $ovabrw_rs_description[$k] ) ? $ovabrw_rs_description[$k] : ''; $rs_adult_price = isset( $ovabrw_rs_adult_price[$k] ) ? $ovabrw_rs_adult_price[$k] : 0; $rs_children_price = isset( $ovabrw_rs_children_price[$k] ) ? $ovabrw_rs_children_price[$k] : 0; $rs_baby_price = isset( $ovabrw_rs_baby_price[$k] ) ? $ovabrw_rs_baby_price[$k] : 0; $rs_duration_type = isset( $ovabrw_rs_duration_type[$k] ) ? $ovabrw_rs_duration_type[$k] : 'person'; ?> <div class="item"> <div class="ovabrw-resource-title"> <?php if ( 'request' === $form ): ?> <input type="checkbox" id="ovabrw_request_rs_checkbox_<?php echo esc_attr( $k ).""; ?>" data-rs-key="<?php echo esc_attr( $id ); ?>" name="ovabrw_rs_checkboxs[<?php echo esc_attr( $id ); ?>]" value="<?php echo esc_attr( $rs_name ); ?>" class="ovabrw_resource_checkboxs" /> <span class="checkmark"></span> <label for="ovabrw_request_rs_checkbox_<?php echo esc_attr( $k); ?>"> <?php echo esc_html( $rs_name ); ?> <?php if ($rs_description) echo wc_help_tip( $rs_description, true ); ?> </label> <?php else: ?> <input type="checkbox" id="ovabrw_rs_checkbox_<?php echo esc_attr( $k ); ?>" data-rs-key="<?php echo esc_attr( $id ); ?>" name="ovabrw_rs_checkboxs[<?php echo esc_attr( $id ); ?>]" value="<?php echo esc_attr( $rs_name ); ?>" class="ovabrw_resource_checkboxs" /> <span class="checkmark"></span> <label for="ovabrw_rs_checkbox_<?php echo esc_attr( $k); ?>"> <?php echo esc_html( $rs_name ); ?> <?php if ($rs_description) echo wc_help_tip( $rs_description, true ); ?> </label> <?php endif; ?> </div> <div class="ovabrw-resource-price"> <div class="ovabrw-adult-price"> <label> <?php echo esc_html__( 'Adult:', 'tripgo' ); ?> </label> <div class="ovabrw-guests-price"> <span class="ovabrw-adult-amount"> <?php echo ovabrw_wc_price( $rs_adult_price ); ?> </span> <?php if ( apply_filters( 'ft_resources_show_duration', true ) ): ?> <span class="ovabrw-rs-duration"> <?php if ( 'person' === $rs_duration_type ): ?> <?php echo esc_html__( '/per person', 'tripgo' ); ?> <?php else: ?> <?php echo esc_html__( '/total', 'tripgo' ); ?> <?php endif; ?> </span> <?php endif; ?> </div> </div> <?php if ( $show_children === 'yes' ): ?> <div class="ovabrw-children-price"> <label> <?php echo esc_html__( 'Children:', 'tripgo' ); ?> </label> <div class="ovabrw-guests-price"> <span class="ovabrw-children-amount"> <?php echo ovabrw_wc_price( $rs_children_price ); ?> </span> <?php if ( apply_filters( 'ft_resources_show_duration', true ) ): ?> <span class="ovabrw-rs-duration"> <?php if ( 'person' === $rs_duration_type ): ?> <?php echo esc_html__( '/per person', 'tripgo' ); ?> <?php else: ?> <?php echo esc_html__( '/total', 'tripgo' ); ?> <?php endif; ?> </span> <?php endif; ?> </div> </div> <?php endif; ?> <?php if ( $show_baby === 'yes' ): ?> <div class="ovabrw-baby-price"> <label> <?php echo esc_html__( 'Baby:', 'tripgo' ); ?> </label> <div class="ovabrw-guests-price"> <span class="ovabrw-baby-amount"> <?php echo ovabrw_wc_price( $rs_baby_price ); ?> </span> <?php if ( apply_filters( 'ft_resources_show_duration', true ) ): ?> <span class="ovabrw-rs-duration"> <?php if ( 'person' === $rs_duration_type ): ?> <?php echo esc_html__( '/per person', 'tripgo' ); ?> <?php else: ?> <?php echo esc_html__( '/total', 'tripgo' ); ?> <?php endif; ?> </span> <?php endif; ?> </div> </div> <?php endif; ?> </div> </div> <?php endif; endforeach; ?> </div> <?php endif; ?>PK O2/]M':�S S loop/fields/deposit.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $product = wc_get_product( $product_id ); if ( !$product || !$product->is_type('ovabrw_car_rental') ) return; $deposit_force = get_post_meta ( $product_id, 'ovabrw_force_deposit', true ); $deposit_enable = get_post_meta ( $product_id, 'ovabrw_enable_deposit', true ); $deposit_type = get_post_meta ( $product_id, 'ovabrw_type_deposit', true ); $deposit_value = get_post_meta ( $product_id, 'ovabrw_amount_deposit', true ); ?> <?php if ( 'yes' === $deposit_enable ): ?> <div class="ovabrw-deposit rental_item"> <div class="title-deposit"> <span class=""><?php esc_html_e('Deposit Option', 'tripgo'); ?></span> <?php if ( 'percent' === $deposit_type ): ?> <span><?php echo esc_html( $deposit_value ).'%'; ?></span> <?php else: ?> <span><?php printf( ovabrw_wc_price( $deposit_value ) ); ?></span> <?php endif; ?> <span><?php esc_html_e('Per item', 'tripgo') ?></span> </div> <div class="ovabrw-type-deposit"> <?php if ( $deposit_force == 'yes' ): ?> <input type="radio" id="ovabrw-pay-full" class="ovabrw-pay-full" name="ova_type_deposit" value="full" checked /> <label class="ovabrw-pay-full" for="ovabrw-pay-full"> <?php esc_html_e('Full Payment', 'tripgo') ?> </label> <input type="radio" id="ovabrw-pay-deposit" class="ovabrw-pay-deposit" name="ova_type_deposit" value="deposit" /> <label class="ovabrw-pay-deposit" for="ovabrw-pay-deposit"> <?php esc_html_e('Pay Deposit', 'tripgo') ?> </label> <?php else: ?> <input type="radio" id="ovabrw-pay-deposit" class="ovabrw-pay-deposit" name="ova_type_deposit" value="deposit" checked /> <label class="ovabrw-pay-deposit" for="ovabrw-pay-deposit"> <?php esc_html_e('Pay Deposit', 'tripgo') ?> </label> <?php endif; ?> </div> </div> <?php endif; ?>PK O2/]�L� � loop/fields/extra_fields.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 */ if ( ! defined( 'ABSPATH' ) ) exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $form = isset( $args['form'] ) && $args['form'] ? $args['form'] : ''; $product = wc_get_product( $product_id ); if ( ! $product || !$product->is_type('ovabrw_car_rental') ) return; $list_extra_fields = ovabrw_get_list_field_checkout( $product_id ); $special_fields = [ 'textarea', 'select', 'radio', 'checkbox', 'file' ]; if ( ! empty( $list_extra_fields ) && is_array( $list_extra_fields ) ): foreach( $list_extra_fields as $key => $field ): if ( array_key_exists( 'enabled', $field ) && $field['enabled'] == 'on' ): $class_field = $class_required = ''; if ( ovabrw_check_array( $field, 'required' ) ) { $class_required = 'required'; } if ( $field['class'] && $class_required ) { $class_field = $field['class'] . ' ' . $class_required; } else if ( !$field['class'] && $class_required ) { $class_field = $class_required; } else { $class_field = $field['class']; } ?> <div class="rental_item"> <label> <?php echo esc_html( $field['label'] ); ?> </label> <?php if ( ! in_array( $field['type'], $special_fields ) ): ?> <input type="<?php echo esc_attr( $field['type'] ); ?>" name="<?php echo esc_attr( $key ); ?>" class="<?php echo esc_attr( $class_field ); ?>" placeholder="<?php echo esc_attr( $field['placeholder'] ); ?>" value="<?php echo esc_attr( $field['default'] ); ?>" data-error="<?php echo sprintf( esc_html__( '%s is required.', 'tripgo' ), esc_attr( $field['label'] ) ); ?>" /> <?php endif; ?> <?php if ( 'textarea' === $field['type'] ): ?> <textarea name="<?php echo esc_attr( $key ); ?>" class="<?php echo esc_attr( $class_field ); ?>" placeholder="<?php echo esc_attr( $field['placeholder'] ); ?>" value="<?php echo esc_attr( $field['default'] ); ?>" rows="5" data-error="<?php echo sprintf( esc_html__( '%s is required.', 'tripgo' ), esc_attr( $field['label'] ) ); ?>"></textarea> <?php endif; ?> <?php if ( 'select' === $field['type'] ): $ova_options_key = $ova_options_text = []; if ( array_key_exists( 'ova_options_key', $field ) ) { $ova_options_key = $field['ova_options_key']; } if ( array_key_exists( 'ova_options_text', $field ) ) { $ova_options_text = $field['ova_options_text']; } ?> <select name="<?php echo esc_attr( $key ); ?>" class="<?php echo esc_attr( $class_field ); ?>" data-error="<?php echo sprintf( esc_html__( '%s field is required.', 'tripgo' ), esc_attr( $field['label'] ) ); ?>"> <?php if ( !empty( $ova_options_text ) && is_array( $ova_options_text ) ): ?> <option value=""> <?php echo sprintf( esc_html__( 'Select %s', 'tripgo' ), esc_attr( $field['label'] ) ); ?> </option> <?php foreach( $ova_options_text as $key => $text ): $value = ''; if ( ovabrw_check_array( $ova_options_key, $key ) ) { $value = $ova_options_key[$key]; } ?> <option value="<?php echo esc_attr( $value ); ?>"<?php selected( $field['default'], $ova_options_key[$key] ); ?>> <?php echo esc_html( $text ); ?> </option> <?php endforeach; endif; ?> </select> <?php endif; ?> <?php if ( $field['type'] === 'radio' ): $values = isset( $field['ova_radio_values'] ) ? $field['ova_radio_values'] : ''; $default = isset( $field['default'] ) ? $field['default'] : ''; if ( ! empty( $values ) && is_array( $values ) ): foreach ( $values as $k => $value ): $checked = ''; if ( ! $default && $field['required'] === 'on' ) $default = $values[0]; if ( $default === $value ) $checked = 'checked'; ?> <div class="ovabrw-ckf-radio" data-error="<?php printf( esc_html__( '%s field is required.', 'tripgo' ), $field['label'] ); ?>"> <input type="radio" id="<?php echo 'ovabrw-radio'.esc_attr( $k ).esc_attr( $form ); ?>" name="<?php echo esc_attr( $key ); ?>" value="<?php echo esc_attr( $value ); ?>" <?php echo esc_html( $checked ); ?> /> <span class="checkmark"></span> <label for="<?php echo 'ovabrw-radio'.esc_attr( $k ).esc_attr( $form ); ?>"><?php echo esc_html( $value ); ?></label> </div> <?php endforeach; endif; endif; ?> <?php if ( $field['type'] === 'checkbox' ): $default = isset( $field['default'] ) ? $field['default'] : ''; $checkbox_key = isset( $field['ova_checkbox_key'] ) ? $field['ova_checkbox_key'] : []; $checkbox_text = isset( $field['ova_checkbox_text'] ) ? $field['ova_checkbox_text'] : []; $checkbox_price = isset( $field['ova_checkbox_price'] ) ? $field['ova_checkbox_price'] : []; if ( ! empty( $checkbox_key ) && is_array( $checkbox_key ) ): foreach ( $checkbox_key as $k => $val ): $checked = ''; if ( ! $default && $field['required'] === 'on' ) $default = $val; if ( $default === $val ) $checked = 'checked'; ?> <div class="ovabrw-checkbox" data-error="<?php printf( esc_html__( '%s field is required.', 'tripgo' ), $field['label'] ); ?>"> <input type="checkbox" id="<?php echo 'ovabrw-checkbox-'.esc_attr( $val ).esc_attr( $form ); ?>" class="<?php echo esc_attr( $class_required ); ?>" name="<?php echo esc_attr( $key ).'['.$val.']'; ?>" value="<?php echo esc_attr( $val ); ?>" <?php echo esc_html( $checked ); ?> /> <span class="checkmark"></span> <label for="<?php echo 'ovabrw-checkbox-'.esc_attr( $val ).esc_attr( $form ); ?>"> <?php echo isset( $checkbox_text[$k] ) ? esc_html( $checkbox_text[$k] ) : ''; ?> </label> </div> <?php endforeach; endif; endif; ?> <?php if ( $field['type'] === 'file' ): $mimes = apply_filters( 'ovabrw_ft_file_mimes', [ 'jpg' => 'image/jpeg', 'jpeg' => 'image/pjpeg', 'png' => 'image/png', 'pdf' => 'application/pdf', 'doc' => 'application/msword', ]); ?> <div class="ovabrw-file"> <label for="<?php echo 'ovabrw-file-'.esc_attr( $key ).esc_attr( $form ); ?>"> <span class="ovabrw-file-chosen"><?php esc_html_e( 'Choose File', 'tripgo' ); ?></span> <span class="ovabrw-file-name"></span> </label> <input type="<?php echo esc_attr( $field['type'] ); ?>" id="<?php echo 'ovabrw-file-'.esc_attr( $key ).esc_attr( $form ); ?>" name="<?php echo esc_attr( $key ); ?>" class="<?php echo esc_attr( $field['class'] ) . $class_required; ?>" data-max-file-size="<?php echo esc_attr( $field['max_file_size'] ); ?>" data-file-mimes="<?php echo esc_attr( json_encode( $mimes ) ); ?>" data-max-file-size-msg="<?php printf( esc_html__( 'Max file size: %sMB', 'tripgo' ), $field['max_file_size'] ); ?>" data-formats="<?php esc_attr_e( 'Formats: .jpg, .jpeg, .png, .pdf, .doc', 'tripgo' ); ?>" data-error="<?php printf( esc_html__( '%s field is required.', 'tripgo' ), $field['label'] ); ?>" /> </div> <?php endif; ?> </div> <?php endif; endforeach; ?> <input type="hidden" name="data_custom_ckf" data-ckf="<?php echo esc_attr( json_encode( $list_extra_fields ) ); ?>" /> <?php endif; ?>PK O2/]��c! c! loop/fields/guests.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $product = wc_get_product( $product_id ); if ( ! $product || !$product->is_type('ovabrw_car_rental') ) return; $max_total_guest = get_post_meta( $product_id, 'ovabrw_max_total_guest', true ); $adult_price = tripgo_get_price_product( $product_id ); $max_adults = get_post_meta( $product_id, 'ovabrw_adults_max', true ); $min_adults = get_post_meta( $product_id, 'ovabrw_adults_min', true ); $show_price_adults = get_option( 'ova_brw_booking_form_show_price_beside_adults', 'yes' ); $label_adults = get_option( 'ova_brw_label_beside_adults', '' ); $children_price = get_post_meta( $product_id, 'ovabrw_children_price', true ); $max_children = get_post_meta( $product_id, 'ovabrw_childrens_max', true ); $min_children = get_post_meta( $product_id, 'ovabrw_childrens_min', true ); $show_children = get_option( 'ova_brw_booking_form_show_children', 'yes' ); $show_price_childrens = get_option( 'ova_brw_booking_form_show_price_beside_childrens', 'yes' ); $label_childrens = get_option( 'ova_brw_label_beside_childrens', '' ); $baby_price = get_post_meta( $product_id, 'ovabrw_baby_price', true ); $max_babies = get_post_meta( $product_id, 'ovabrw_babies_max', true ); $min_babies = get_post_meta( $product_id, 'ovabrw_babies_min', true ); $show_baby = get_option( 'ova_brw_booking_form_show_baby', 'no' ); $show_price_babies = get_option( 'ova_brw_booking_form_show_price_beside_babies', 'yes' ); $label_babies = get_option( 'ova_brw_label_beside_babies', '' ); $min_adults = apply_filters( 'ovabrw_ft_min_adults', $min_adults, $product_id ); $min_children = apply_filters( 'ovabrw_ft_min_children', $min_children, $product_id ); $min_babies = apply_filters( 'ovabrw_ft_min_babies', $min_babies, $product_id ); if ( !$min_adults ) $min_adults = 0; if ( !$min_children ) $min_children = 0; if ( !$min_babies ) $min_babies = 0; $number_adults = isset( $_GET['ovabrw_adults'] ) ? $_GET['ovabrw_adults'] : $min_adults; $number_children = isset( $_GET['ovabrw_childrens'] ) ? $_GET['ovabrw_childrens'] : $min_children; $number_babies = isset( $_GET['ovabrw_babies'] ) ? $_GET['ovabrw_babies'] : $min_babies; $gueststotal = absint( $number_adults ) + absint( $number_children ) + absint( $number_babies ); $wrap_guestspicker_class = ''; if ( $show_children != 'yes' && $show_baby != 'yes' ) { $wrap_guestspicker_class = 'only-show-adults'; } ?> <div class="rental_item"> <label><?php esc_html_e( 'Guests', 'tripgo' ); ?></label> <div class="ovabrw-wrapper-guestspicker <?php echo esc_attr($wrap_guestspicker_class);?>"> <input type="hidden" name="ovabrw_max_total_guest" value="<?php echo esc_attr( $max_total_guest ); ?>" /> <div class="ovabrw-guestspicker"> <div class="guestspicker"> <span class="gueststotal"><?php echo esc_html( $gueststotal ); ?></span> </div> </div> <div class="ovabrw-guestspicker-content"> <div class="guests-buttons"> <div class="description"> <label><?php esc_html_e( 'Adults', 'tripgo' ); ?></label> <?php if ( $label_adults ): ?> <span class="guests-labels beside_adults"> <?php echo esc_html( $label_adults ); ?> </span> <?php endif; ?> <?php if ( $show_price_adults === 'yes' ): ?> <span class="guests-price adults-price"> <?php echo wc_price( $adult_price['regular_price'] ); ?> </span> <?php endif; ?> </div> <div class="guests-button"> <div class="guests-icon minus"> <i aria-hidden="true" class="icomoon icomoon-minus"></i> </div> <input type="text" name="ovabrw_adults" class="required ovabrw_adults" value="<?php echo esc_attr( $number_adults ); ?>" min="<?php echo esc_attr( $min_adults ); ?>" max="<?php echo esc_attr( $max_adults ); ?>" data-error="<?php esc_html_e( 'Adults is required.', 'tripgo' ); ?>" readonly /> <div class="guests-icon plus"> <i aria-hidden="true" class="icomoon icomoon-plus"></i> </div> </div> </div> <?php if ( $show_children === 'yes' ): ?> <div class="guests-buttons"> <div class="description"> <label><?php esc_html_e( 'Children', 'tripgo' ); ?></label> <?php if ( $label_childrens ): ?> <span class="guests-labels beside_childrens"> <?php echo esc_html( $label_childrens ); ?> </span> <?php endif; ?> <?php if ( $show_price_childrens === 'yes' ): ?> <span class="guests-price childrens-price"> <?php echo ovabrw_wc_price( $children_price ); ?> </span> <?php endif; ?> </div> <div class="guests-button"> <div class="guests-icon minus"> <i aria-hidden="true" class="icomoon icomoon-minus"></i> </div> <input type="text" name="ovabrw_childrens" class="ovabrw_childrens" value="<?php echo esc_attr( $number_children ); ?>" min="<?php echo esc_attr( $min_children ); ?>" max="<?php echo esc_attr( $max_children ); ?>" readonly /> <div class="guests-icon plus"> <i aria-hidden="true" class="icomoon icomoon-plus"></i> </div> </div> </div> <?php endif; ?> <?php if ( $show_baby === 'yes' ): ?> <div class="guests-buttons"> <div class="description"> <label><?php esc_html_e( 'Babies', 'tripgo' ); ?></label> <?php if ( $label_babies ): ?> <span class="guests-labels beside_babies"> <?php echo esc_html( $label_babies ); ?> </span> <?php endif; ?> <?php if ( $show_price_babies === 'yes' ): ?> <span class="guests-price babies-price"> <?php echo ovabrw_wc_price( $baby_price ); ?> </span> <?php endif; ?> </div> <div class="guests-button"> <div class="guests-icon minus"> <i aria-hidden="true" class="icomoon icomoon-minus"></i> </div> <input type="text" name="ovabrw_babies" class="ovabrw_babies" value="<?php echo esc_attr( $number_babies ); ?>" min="<?php echo esc_attr( $min_babies ); ?>" max="<?php echo esc_attr( $max_babies ); ?>" readonly /> <div class="guests-icon plus"> <i aria-hidden="true" class="icomoon icomoon-plus"></i> </div> </div> </div> <?php endif; ?> </div> </div> </div>PK O2/]���( ( loop/fields/quantity.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 */ if ( ! defined( 'ABSPATH' ) ) exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $product = wc_get_product( $product_id ); if ( ! $product || ! $product->is_type('ovabrw_car_rental') ) return; $max_quantity = absint( get_post_meta( $product_id, 'ovabrw_stock_quantity', true ) ); ?> <?php if ( 'yes' === get_option( 'ova_brw_booking_form_show_quantity', 'no' ) ): ?> <div class="rental_item"> <label><?php esc_html_e( 'Quantity', 'tripgo' ); ?></label> <input type="number" class="required ovabrw-quantity" name="ovabrw_quantity" value="1" min="1" max="<?php echo esc_attr( $max_quantity ); ?>" data-error="<?php esc_html_e( 'Quantity is required.', 'tripgo' ); ?>" /> </div> <?php endif; ?>PK O2/]4,��� � loop/fields/ajax-total.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 */ defined( 'ABSPATH' ) || exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $product = wc_get_product( $product_id ); if ( !$product || !$product->is_type('ovabrw_car_rental') ) return; // Get insurance amount $insurance_amount = get_post_meta( $product_id, 'ovabrw_amount_insurance', true ); ?> <div class="ajax-show-total"> <?php if ( get_option( 'ova_brw_booking_form_show_quantity_availables', 'yes' ) === 'yes' ): ?> <div class="ovabrw-ajax-availables ovabrw-show-amount"> <span class="availables-label label"> <?php esc_html_e( 'Available: ', 'tripgo' ); ?> </span> <span class="show-availables-number show-amount"></span> <span class="ajax-loading-total"> <i aria-hidden="true" class="flaticon flaticon-spinner-of-dots"></i> </span> </div> <?php endif; ?> <div class="ovabrw-ajax-total ovabrw-show-amount"> <span class="show-total label"> <?php esc_html_e( 'Total:', 'tripgo' ); ?> </span> <span class="show-deposit label" style="display: none;"> <?php esc_html_e( 'Deposit:', 'tripgo' ); ?> </span> <span class="show-total-number show-amount"></span> <span class="ajax-loading-total"> <i aria-hidden="true" class="flaticon flaticon-spinner-of-dots"></i> </span> </div> <?php if ( $insurance_amount && function_exists( 'ovabrw_show_insurance_amount' ) && ovabrw_show_insurance_amount() ): ?> <div class="ovabrw-ajax-amount-insurance"> <span class="show-amount-insurance"></span> </div> <?php endif; ?> </div>PK O2/]o�a�c c loop/content.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 */ if ( ! defined( 'ABSPATH' ) ) exit(); if( isset($args['show_description']) && $args['show_description'] == 'yes') { the_content(); } ?>PK O2/]h0��r r loop/map.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 */ if ( ! defined( 'ABSPATH' ) ) exit(); $all_ids = ovabrw_get_all_id_product(); if( isset( $args['id'] ) && $args['id'] != '' ) { $product_id = ( in_array( $args['id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['id'] : get_the_id(); } elseif( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } $product = wc_get_product( $product_id ); $map_type = get_post_meta( $product_id, 'ovabrw_map_type', true ); $address = get_post_meta( $product_id, 'ovabrw_address', true ); $latitude = get_post_meta( $product_id, 'ovabrw_latitude', true ); $longitude = get_post_meta( $product_id, 'ovabrw_longitude', true ); $map_iframe = get_post_meta( $product_id, 'ovabrw_map_iframe', true ); $zoom = get_option( 'ova_brw_zoom_map_default', 17 ); if ( ! $map_type ) { $map_type = 'api'; } if ( $map_type == 'iframe' ) $address = true; $show_map = isset( $args['show_map'] ) ? $args['show_map'] : 'yes'; ?> <?php if ( $show_map == 'yes' ) { ?> <?php if ( $map_type == 'api' ) { ?> <?php if ( ! empty( $address ) ) { ?> <div class="content-product-item tripgo-tour-map" id="ova-tour-map"> <div class="heading-map"> <h2 class="title-tour-map"> <?php esc_html_e( 'Tour Map', 'tripgo' ); ?> </h2> <input type="hidden" class="address" data-zoom="<?php echo esc_attr( $zoom ); ?>" latitude="<?php echo esc_attr( $latitude ); ?>" longitude="<?php echo esc_attr( $longitude ); ?>"/> <input type="hidden" class="pac-input" name="pac-input" id="pac-input" value="<?php echo esc_attr($address); ?>" autocomplete="off" autocapitalize="none"> </div> <div id="tour-show-map" class="tour-show-map"></div> </div> <?php } ?> <?php } elseif($map_type == 'iframe') { ?> <?php if ( $map_iframe != '' ) { ?> <div class="content-product-item tripgo-tour-map" id="ova-tour-map"> <div class="heading-map"> <h2 class="title-tour-map"> <?php esc_html_e( 'Tour Map', 'tripgo' ); ?> </h2> </div> <?php echo $map_iframe; ?> </div> <?php } ?> <?php } ?> <?php } ?>PK O2/]=��� � loop/review.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $all_ids = ovabrw_get_all_id_product(); if( isset( $args['id'] ) && $args['id'] != '' ) { $product_id = ( in_array( $args['id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['id'] : get_the_id(); } elseif( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } $product = wc_get_product( $product_id ); // ReviewX shortcode $rvx_summary = '[rvx-summary product_id='.$product_id.']'; $rvx_list = '[rvx-review-list product_id='.$product_id.']'; $rvx_woo_reviews = '[rvx-woo-reviews product_id='.$product_id.']'; // Review $product_review = array( 'title' => sprintf( __( 'Reviews (%d)', 'tripgo' ), $product->get_review_count() ), 'priority' => 30, 'callback' => 'comments_template', ); $show_reviews = isset( $args['show_reviews'] ) ? $args['show_reviews'] : 'yes'; ?> <?php if( $show_reviews == 'yes') : ?> <?php if( is_singular('product') ) { ?> <div class="content-product-item ova-tour-review" id="ova-tour-review"> <?php call_user_func( $product_review['callback'], 'reviews', $product_review ); ?> </div> <?php } else { ?> <div class="content-product-item ova-tour-review" id="ova-tour-review"> <h4> <?php echo esc_html__('Reviews are only visible in a single product page','tripgo'); ?> </h4> </div> <?php } ?> <?php endif; ?>PK O2/]6N� � loop/booking-form.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $product = wc_get_product( $product_id ); if ( ! $product || ! $product->is_type('ovabrw_car_rental') ) return; $terms_conditions = get_option( 'ova_brw_booking_form_terms_conditions', '' ); $terms_content = get_option( 'ova_brw_booking_form_terms_conditions_content', '' ); ?> <div class="ova-booking-form" id="booking-form"> <form class="form booking-form" action="<?php home_url('/'); ?>" method="post" enctype="multipart/form-data"> <div class="ovabrw-form-container"> <?php /** * Hook: tripgo_booking_form * @hooked: tripgo_booking_form_dates - 5 * @hooked: tripgo_booking_form_guests - 5 * @hooked: tripgo_booking_form_extra_fields - 10 * @hooked: tripgo_booking_form_quantity - 10 * @hooked: tripgo_booking_form_resources - 15 * @hooked: tripgo_booking_form_services - 15 * @hooked: tripgo_booking_form_deposit - 20 * @hooked: tripgo_booking_form_ajax_total - 25 */ do_action( 'tripgo_booking_form', array( 'id' => $product_id ) ); ?> </div> <?php if ( $terms_conditions === 'yes' && $terms_content ): ?> <div class="terms-conditions"> <label> <input type="checkbox" name="ovabrw-booking-terms-conditions" value="yes" data-error="<?php esc_attr_e( 'Please read and accept the terms and conditions to continue.', 'ova-brw' ); ?>" /> <span class="terms-conditions-content"> <?php echo $terms_content; ?> <span class="terms-conditions-required">*</span> </span> </label> </div> <?php endif; ?> <?php if ( get_option( 'ova_brw_recapcha_enable', 'no' ) === 'yes' && ovabrw_get_recaptcha_form( 'booking' ) ): ?> <div id="ovabrw-g-recaptcha-booking"></div> <input type="hidden" id="ovabrw-recaptcha-booking-token" value="" data-mess="<?php esc_attr_e( 'Requires reCAPTCHA', 'tripgo' ); ?>" data-error="<?php esc_attr_e( 'reCAPTCHA response error, please try again later', 'tripgo' ); ?>" data-expired="<?php esc_attr_e( 'reCAPTCHA response expires, you needs to re-verify', 'tripgo' ); ?>" /> <?php endif; ?> <div class="ajax-error"></div> <button type="submit" class="booking-form-submit"> <?php esc_html_e( 'Booking Now', 'tripgo' ); ?> <span class="ovabrw-submit-loading"> <i aria-hidden="true" class="flaticon flaticon-spinner-of-dots"></i> </span> </button> <input type="hidden" name="product_id" value="<?php echo esc_attr( $product_id ); ?>" /> <input type="hidden" name="custom_product_type" value="ovabrw_car_rental" /> <input type="hidden" name="add-to-cart" value="<?php echo esc_attr( $product_id ); ?>" /> <input type="hidden" name="quantity" value="1" /> <input type="hidden" name="qty-by-guests" value="<?php echo esc_attr( ovabrw_qty_by_guests( $product_id ) ); ?>" /> </form> </div>PK O2/]�6v v loop/included-excluded.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $all_ids = ovabrw_get_all_id_product(); if( isset( $args['id'] ) && $args['id'] != '' ) { $product_id = ( in_array( $args['id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['id'] : get_the_id(); } elseif( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } $product = wc_get_product( $product_id ); $show_inc_exc = isset( $args['show_inc_exc'] ) ? $args['show_inc_exc'] : 'yes'; $group_tour_included = get_post_meta( $product_id,'ovabrw_group_tour_included',true ); $group_tour_excluded = get_post_meta( $product_id,'ovabrw_group_tour_excluded',true ); ?> <!-- Tour Included/Excluded --> <?php if( (! empty( $group_tour_included ) || ! empty( $group_tour_excluded ) ) && $show_inc_exc == 'yes' ) { ?> <div class="content-product-item tour-included-excluded-wrapper" id="tour-included-excluded"> <h2 class="heading-tour-included-excluded"> <?php echo esc_html__('Included/Excluded', 'tripgo'); ?> </h2> <div class="tour-included-excluded-content"> <?php if( ! empty( $group_tour_included ) ) { ?> <ul class="tour-included"> <?php foreach( $group_tour_included as $tour_included ){ $tour_included_text = isset( $tour_included['ovabrw_tour_included_text'] ) ? $tour_included['ovabrw_tour_included_text'] : ''; ?> <li class="item-tour-included"> <?php echo esc_html($tour_included_text); ?> </li> <?php } ?> </ul> <?php } ?> <?php if( ! empty( $group_tour_excluded ) ) { ?> <ul class="tour-excluded"> <?php foreach( $group_tour_excluded as $tour_excluded ){ $tour_excluded_text = isset( $tour_excluded['ovabrw_tour_excluded_text'] ) ? $tour_excluded['ovabrw_tour_excluded_text'] : ''; ?> <li class="item-tour-excluded"> <?php echo esc_html($tour_excluded_text); ?> </li> <?php } ?> </ul> <?php } ?> </div> </div> <?php } ?>PK O2/]Z� loop/title.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $show_title = isset( $args['show_title'] ) ? $args['show_title'] : 'yes'; ?> <?php if($show_title == 'yes') { ?> <h2 class="ova-product-title"> <?php echo get_the_title(); ?> </h2> <?php } ?>PK O2/]�t��� � loop/plan.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $all_ids = ovabrw_get_all_id_product(); if( isset( $args['id'] ) && $args['id'] != '' ) { $product_id = ( in_array( $args['id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['id'] : get_the_id(); } elseif( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } $group_tour_plan = get_post_meta( $product_id,'ovabrw_group_tour_plan',true ); $show_tour_plan = isset( $args['show_tour_plan'] ) ? $args['show_tour_plan'] : 'yes'; ?> <?php if( ! empty( $group_tour_plan ) && $show_tour_plan == 'yes' ) { ?> <div class="content-product-item tour-plan-wrapper" id="tour-plan"> <h2 class="heading-tour-plan"> <?php echo esc_html__('Tour Plan', 'tripgo'); ?> </h2> <div class="tour-plan-content"> <?php foreach( $group_tour_plan as $key => $tour_plan ){ $tour_plan_day = isset( $tour_plan['ovabrw_tour_plan_day'] ) ? $tour_plan['ovabrw_tour_plan_day'] : ''; $tour_plan_label = isset( $tour_plan['ovabrw_tour_plan_label'] ) ? $tour_plan['ovabrw_tour_plan_label'] : ''; $tour_plan_desc = isset( $tour_plan['ovabrw_tour_plan_desc'] ) ? $tour_plan['ovabrw_tour_plan_desc'] : ''; ?> <div class="item-tour-plan <?php if( $key == 0 ) { echo "active"; } ?>"> <div class="tour-plan-title"> <?php if( $tour_plan_day != '') : ?> <span class="tour-plan-day"> <?php echo esc_html($tour_plan_day); ?> </span> <?php endif; ?> <?php if( $tour_plan_label != '') : ?> <span class="tour-plan-label"> <?php echo esc_html($tour_plan_label); ?> </span> <?php endif; ?> <?php if( $key == 0 ) : ?> <i aria-hidden="true" class="icomoon icomoon-chevron-up"></i> <?php else : ?> <i aria-hidden="true" class="icomoon icomoon-chevron-down"></i> <?php endif; ?> </div> <?php if( $tour_plan_desc != '') : ?> <div class="tour-plan-description"> <?php echo wpautop( wp_trim_excerpt( $tour_plan_desc ) ); ?> </div> <?php endif; ?> </div> <?php } ?> </div> </div> <?php } ?>PK O2/]t��2� � loop/related.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $all_ids = ovabrw_get_all_id_product(); if( isset( $args['id'] ) && $args['id'] != '' ) { $product_id = ( in_array( $args['id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['id'] : get_the_id(); } elseif( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } // Get Product $product = wc_get_product($product_id); if ( !$product || !$product->is_type('ovabrw_car_rental') ) return; $args = [ 'posts_per_page' => 5, 'orderby' => 'ID', 'order' => 'DESC', ]; if ( isset( $args['data_options'] ) ) { $data_options = $args['data_options']; } else { $data_options = apply_filters( 'ft_wc_related_options', array( 'items' => 4, 'slideBy' => 1, 'margin' => 24, 'autoplayHoverPause' => true, 'loop' => false, 'autoplay' => true, 'autoplayTimeout' => 3000, 'smartSpeed' => 500, 'autoWidth' => false, 'center' => false, 'lazyLoad' => true, 'dots' => true, 'nav' => true, 'rtl' => is_rtl() ? true: false, 'nav_left' => 'icomoon icomoon-angle-left', 'nav_right' => 'icomoon icomoon-angle-right', )); } // Get visible related products then sort them at random. $args['related_products'] = array_filter( array_map( 'wc_get_product', wc_get_related_products( $product->get_id(), $args['posts_per_page'], $product->get_upsell_ids() ) ), 'wc_products_array_filter_visible' ); // Handle orderby. $related_products = wc_products_array_orderby( $args['related_products'], $args['orderby'], $args['order'] ); ?> <?php if( !empty($related_products) && is_array($related_products) ) : ?> <div class="elementor-ralated-slide"> <h3 class="related-title"> <?php echo esc_html__('You May Like', 'tripgo'); ?> </h3> <div class="ova-product-slider elementor-ralated owl-carousel owl-theme" data-options="<?php echo esc_attr(json_encode($data_options)) ?>"> <?php foreach ( $related_products as $related_product ) { $post_object = get_post( $related_product->get_id() ); setup_postdata( $GLOBALS['post'] =& $post_object ); wc_get_template_part( 'content', 'product' ); } $post_object = get_post( $product->get_id() ); setup_postdata( $GLOBALS['post'] =& $post_object ); ?> </div> </div> <?php endif; ?>PK O2/]1�!�v1 v1 loop/table_price.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 */ if ( ! defined( 'ABSPATH' ) ) exit(); // Get id from do_action - use when insert shortcode $all_ids = ovabrw_get_all_id_product(); if( isset( $args['id'] ) && $args['id'] != '' ) { $product_id = ( in_array( $args['id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['id'] : get_the_id(); } elseif( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } // Check product type: rental $product = wc_get_product( $product_id ); if ( ! $product || $product->get_type() !== 'ovabrw_car_rental' ) return; // Global Discount $gd_duration_val_min = get_post_meta( $product_id, 'ovabrw_gd_duration_min', true ); $gd_duration_val_max = get_post_meta( $product_id, 'ovabrw_gd_duration_max', true ); if( $gd_duration_val_min ) asort( $gd_duration_val_min ); if( $gd_duration_val_max ) asort( $gd_duration_val_max ); $gd_adult_price = get_post_meta( $product_id, 'ovabrw_gd_adult_price', true ); $gd_children_price = get_post_meta( $product_id, 'ovabrw_gd_children_price', true ); $gd_baby_price = get_post_meta( $product_id, 'ovabrw_gd_baby_price', true ); $title_text = esc_html__( 'Min - Max (Persons)', 'tripgo' ); $price_adult_text = esc_html__( 'Adult Price', 'tripgo' ); $price_children_text = esc_html__( 'Children Price', 'tripgo' ); $price_baby_text = esc_html__( 'Baby Price', 'tripgo' ); // Special Time $st_startdate = get_post_meta( $product_id, 'ovabrw_st_startdate', true ); $st_enddate = get_post_meta( $product_id, 'ovabrw_st_enddate', true ); $st_adult_price = get_post_meta( $product_id, 'ovabrw_st_adult_price', true ); $st_children_price = get_post_meta( $product_id, 'ovabrw_st_children_price', true ); $st_baby_price = get_post_meta( $product_id, 'ovabrw_st_baby_price', true ); $st_discount = get_post_meta( $product_id, 'ovabrw_st_discount', true ); $ovabrw_date_format = ovabrw_get_date_format(); // Settings $show_children = get_option( 'ova_brw_booking_form_show_children', 'yes' ); $show_baby = get_option( 'ova_brw_booking_form_show_baby', 'yes' ); $show_table_price = isset( $args['show_table_price'] ) ? $args['show_table_price'] : 'yes'; ?> <?php if($show_table_price == 'yes') { ?> <?php if( !empty( $gd_duration_val_min ) || !empty( $gd_duration_val_max ) || !empty( $st_startdate ) || !empty( $st_enddate ) ) { ?> <div class="product_table_price"> <div class="ovacrs_price_rent"> <?php if( !empty( $gd_duration_val_min ) || !empty( $gd_duration_val_max ) ) { ?> <div class="price_table"> <label><?php esc_html_e( 'Global Discount', 'tripgo' ); ?></label> <table class="gb-discount"> <thead> <tr> <th><?php printf( $title_text ) ; ?></th> <th><?php printf( $price_adult_text ) ; ?></th> <?php if ( ! empty( $gd_children_price ) && $show_children === 'yes' ): ?> <th><?php printf( $price_children_text ) ; ?></th> <?php endif; ?> <?php if ( ! empty( $gd_baby_price ) && $show_baby === 'yes' ): ?> <th><?php printf( $price_baby_text ) ; ?></th> <?php endif; ?> </tr> </thead> <tbody> <?php $k = 0; foreach ($gd_duration_val_min as $key => $value) { ?> <tr class="<?php echo intval($k%2) ? 'eve' : 'odd'; $k++; ?>"> <td class="bold" data-title="<?php echo esc_attr( $title_text ) ; ?>"> <?php echo esc_html( $gd_duration_val_min[$key] ); ?> <?php echo esc_html__('-','tripgo'); ?> <?php echo esc_html( $gd_duration_val_max[$key] ); ?> </td> <td data-title="<?php echo esc_attr( $price_adult_text ).' '.esc_html__( 'from', 'tripgo' ).' '.$gd_duration_val_min[$key].' - '.$gd_duration_val_max[$key].' '.esc_html__( 'days', 'tripgo' ); ?>"> <?php echo ovabrw_wc_price( $gd_adult_price[$key] ); ?> </td> <?php if ( ! empty( $gd_children_price ) && $show_children === 'yes' ): ?> <td data-title="<?php echo esc_attr( $price_children_text ).' '.esc_html__( 'from', 'tripgo' ).' '.$gd_duration_val_min[$key].' - '.$gd_duration_val_max[$key].' '.esc_html__( 'days', 'tripgo' ); ?>"> <?php echo ovabrw_wc_price( $gd_children_price[$key] ); ?> </td> <?php endif; ?> <?php if ( ! empty( $gd_baby_price ) && $show_baby === 'yes' ): ?> <td data-title="<?php echo esc_attr( $price_baby_text ).' '.esc_html__( 'from', 'tripgo' ).' '.$gd_duration_val_min[$key].' - '.$gd_duration_val_max[$key].' '.esc_html__( 'days', 'tripgo' ); ?>"> <?php echo ovabrw_wc_price( $gd_baby_price[$key] ); ?> </td> <?php endif; ?> </tr> <?php } ?> </tbody> </table> </div> <?php } ?> <?php if ( ! empty( $st_startdate ) || !empty( $st_enddate ) ) { ?> <div class="price_table"> <label><?php esc_html_e( 'Special Time', 'tripgo' ); ?></label> <table class="special-time"> <thead> <tr> <th><?php esc_html_e( 'Start Date', 'tripgo' ); ?></th> <th><?php esc_html_e( 'End Date', 'tripgo' ); ?></th> <th><?php esc_html_e( 'Adult Price', 'tripgo' ); ?></th> <?php if ( $show_children === 'yes' ): ?> <th><?php esc_html_e( 'Children Price', 'tripgo' ); ?></th> <?php endif; ?> <?php if ( $show_baby === 'yes' ): ?> <th><?php esc_html_e( 'Baby Price', 'tripgo' ); ?></th> <?php endif; ?> <th><?php esc_html_e( 'Special Discount', 'tripgo' ); ?></th> </tr> </thead> <tbody> <?php if ( $st_adult_price ) { $d = 0; foreach( $st_adult_price as $key => $value ) { if ( $st_adult_price[$key] ) { $date_start = $st_startdate[$key] ; $date_end = $st_enddate[$key] ; ?> <tr class="<?php echo intval($d%2) ? 'eve' : 'odd'; $d++; ?>"> <td class="date bold" data-title="<?php esc_html_e( 'Start Date', 'tripgo' ); ?>"> <?php echo esc_html( $date_start ); ?> </td> <td class="date bold" data-title="<?php esc_html_e( 'End Date', 'tripgo' ); ?>"> <?php echo esc_html( $date_end ); ?> </td> <td data-title="<?php echo esc_html__( 'Price from', 'tripgo' ).' '.$date_start.' - '.$date_end; ?>"> <?php echo ovabrw_wc_price( $st_adult_price[$key] ); ?> </td> <?php if ( $show_children === 'yes' ): ?> <td data-title="<?php echo esc_html__( 'Price from', 'tripgo' ).' '.$date_start.' - '.$date_end; ?>"> <?php echo isset( $st_children_price[$key] ) ? ovabrw_wc_price( $st_children_price[$key] ) : ovabrw_wc_price(0); ?> </td> <?php endif; ?> <?php if ( $show_baby === 'yes' ): ?> <td data-title="<?php echo esc_html__( 'Price from', 'tripgo' ).' '.$date_start.' - '.$date_end; ?>"> <?php echo isset( $st_baby_price[$key] ) ? ovabrw_wc_price( $st_baby_price[$key] ) : ovabrw_wc_price(0); ?> </td> <?php endif; ?> <td data-title="<?php esc_html_e( 'Special Discount', 'tripgo' ); ?>"> <a href="#" class="ovabrw_open_popup" data-popup-open="popup-ovacrs-rt-discount-day-<?php echo esc_attr( $key ); ?>"> <?php esc_html_e( 'View Discount', 'tripgo' ); ?> <div class="ovacrs_st_discount popup" data-popup="popup-ovacrs-rt-discount-day-<?php echo esc_attr( $key ); ?>"> <div class="popup-inner"> <div class="price_table"> <div class="time_discount"> <span><?php esc_html_e( 'Time Discount: ', 'tripgo' ); ?></span> <span class="time"> <?php echo esc_html($date_start).esc_html__( ' to ', 'tripgo' ).esc_html($date_end); ?> </span> </div> <?php $st_discount_price = isset( $st_discount[$key]['price'] ) ? $st_discount[$key]['price'] : ''; $st_discount_duration_min = isset( $st_discount[$key]['min'] ) ? $st_discount[$key]['min'] : ''; $st_discount_duration_max = isset( $st_discount[$key]['max'] ) ? $st_discount[$key]['max'] : ''; $st_discount_adult_price = isset( $st_discount[$key]['adult_price'] ) ? $st_discount[$key]['adult_price'] : ''; $st_discount_children_price = isset( $st_discount[$key]['children_price'] ) ? $st_discount[$key]['children_price'] : ''; $st_discount_baby_price = isset( $st_discount[$key]['baby_price'] ) ? $st_discount[$key]['baby_price'] : ''; ?> <?php if( $st_discount_duration_min || $st_discount_duration_max ){ asort($st_discount_duration_min); asort($st_discount_duration_max); ?> <table> <thead> <tr> <th><?php esc_html_e( 'Min - Max (Persons)', 'tripgo' ); ?></th> <th><?php esc_html_e( 'Adult Price', 'tripgo' ); ?></th> <?php if ( $show_children === 'yes' ): ?> <th><?php esc_html_e( 'Children Price', 'tripgo' ); ?></th> <?php endif; ?> <?php if ( $show_baby === 'yes' ): ?> <th><?php esc_html_e( 'Baby Price', 'tripgo' ); ?></th> <?php endif; ?> </tr> </thead> <tbody> <?php $n = 0; foreach( $st_discount_duration_min as $k => $v ) { ?> <tr class="<?php echo intval($n%2) ? 'eve' : 'odd'; $n++; ?>"> <td class="bold" data-title="<?php esc_html_e( 'Min - Max (Days)', 'tripgo' ); ?>"> <?php echo esc_html( $st_discount_duration_min[$k] ).' - '.esc_html( $st_discount_duration_max[$k] ); ?> </td> <td data-title="<?php echo esc_html__( 'Price from', 'tripgo' ).' '.esc_html( $st_discount_duration_min[$k] ).' - '.esc_html( $st_discount_duration_max[$k] ).' '.esc_html__('days', 'tripgo'); ?>"> <?php echo ovabrw_wc_price( $st_discount_adult_price[$k] ); ?> </td> <?php if ( $show_children === 'yes' ): ?> <td data-title="<?php echo esc_html__( 'Price from', 'tripgo' ).' '.esc_html( $st_discount_duration_min[$k] ).' - '.esc_html( $st_discount_duration_max[$k] ).' '.esc_html__('days', 'tripgo'); ?>"> <?php echo ovabrw_wc_price( $st_discount_children_price[$k] ); ?> </td> <?php endif; ?> <?php if ( $show_baby === 'yes' ): ?> <td data-title="<?php echo esc_html__( 'Price from', 'tripgo' ).' '.esc_html( $st_discount_duration_min[$k] ).' - '.esc_html( $st_discount_duration_max[$k] ).' '.esc_html__('days', 'tripgo'); ?>"> <?php echo isset( $st_discount_baby_price[$k] ) ? ovabrw_wc_price( $st_discount_baby_price[$k] ) : ovabrw_wc_price(0); ?> </td> <?php endif; ?> </tr> <?php } ?> </tbody> </table> <?php } else { ?> <div class="no_discount"> <?php esc_html_e( 'No Discount in this time', 'tripgo' ); ?> </div> <?php } ?> </div> <div class="close_discount"> <a class="popup-close-2" data-popup-close="popup-ovacrs-rt-discount-day-<?php echo esc_attr( $key ); ?>" href="#"><?php esc_html_e( 'Close', 'tripgo' ); ?> </a> </div> <a class="popup-close" data-popup-close="popup-ovacrs-rt-discount-day-<?php echo esc_attr( $key ); ?>" href="#">x</a> </div> </div> </a> </td> </tr> <?php } } } ?> </tbody> </table> </div> <?php } ?> </div> </div> <?php } ?> <?php } ?>PK O2/]��{ { loop/forms.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $all_ids = ovabrw_get_all_id_product(); if( isset( $args['id'] ) && $args['id'] != '' ) { $product_id = ( in_array( $args['id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['id'] : get_the_id(); } elseif( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } if ( ! $product_id ) return ''; // Loading reCAPTCHA if ( function_exists( 'ovabrw_loading_reCAPTCHA' ) ) ovabrw_loading_reCAPTCHA(); $arr_price = tripgo_get_price_product( $product_id ); $show_booking_form = get_option( 'ova_brw_template_show_booking_form', 'yes' ); $show_enquiry_form = get_option( 'ova_brw_template_show_request_booking', 'yes' ); if ( $product_id ) { $forms_product = get_post_meta( $product_id, 'ovabrw_forms_product', true ); if ( $forms_product === 'all' ) { $show_booking_form = $show_enquiry_form = 'yes'; } elseif ( $forms_product === 'booking' ) { $show_booking_form = 'yes'; $show_enquiry_form = ''; } elseif ( $forms_product === 'enquiry' ) { $show_booking_form = ''; $show_enquiry_form = 'yes'; } } $show_form = isset( $args['show_form'] ) ? $args['show_form'] : 'yes'; ?> <?php if($show_form == 'yes') { ?> <div class="ova-forms-product"> <div class="forms-wrapper"> <div class="price-product"> <div class="label"> <i aria-hidden="true" class="icomoon icomoon-tag"></i> <span><?php esc_html_e( 'From', 'tripgo' ); ?></span> </div> <div class="price"> <span class="regular-price"> <?php echo wc_price( $arr_price['regular_price'] ); ?> </span> <?php if ( $arr_price['sale_price'] ): ?> <span class="sale-price"> <?php echo wc_price( $arr_price['sale_price'] ); ?> </span> <?php endif; ?> </div> </div> <div class="logo"> <span class="line"></span> <i aria-hidden="true" class="<?php echo esc_attr( apply_filters( 'ovaft_logo_booking_form', 'icomoon icomoon-flig-outline' ) ); ?>"></i> </div> <div class="tabs"> <?php if ( $show_booking_form == 'yes' ): ?> <div class="item" data-id="#booking-form"> <?php esc_html_e( 'Booking Form', 'tripgo' ); ?> </div> <?php endif; ?> <?php if ( $show_enquiry_form == 'yes' ): ?> <div class="item" data-id="#request-form"> <?php esc_html_e( 'Enquiry Form', 'tripgo' ); ?> </div> <?php endif; ?> </div> <?php /* Booking Form */ wc_get_template( 'rental/loop/booking-form.php', array( 'id' => $product_id ) ); wc_get_template( 'rental/loop/request-form.php', array( 'id' => $product_id ) ); ?> </div> </div> <?php } ?>PK O2/] P��� � loop/video-gallery.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 */ if ( !defined( 'ABSPATH' ) ) exit(); global $product; $all_ids = ovabrw_get_all_id_product(); if( isset( $args['id'] ) && $args['id'] != '' ) { $product_id = ( in_array( $args['id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['id'] : get_the_id(); } elseif( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } $embed_url = get_post_meta( $product_id, 'ovabrw_embed_video', true ); $controls = apply_filters( 'ft_wc_video_controls', array( 'autoplay' => 'yes', 'mute' => 'no', 'loop' => 'yes', 'controls' => 'yes', 'modest' => 'yes', 'rel' => 'yes', )); $arr_image_ids = tripgo_get_gallery_ids( $product_id ); $gallery_data = array(); if ( $arr_image_ids && is_array( $arr_image_ids ) ) { foreach( $arr_image_ids as $img_id ) { $image_url = wp_get_attachment_image_url( $img_id, 'tripgo_product_gallery' ); $image_caption = wp_get_attachment_caption( $img_id ); if ( !$image_caption ) { $image_caption = get_post_meta( $img_id, '_wp_attachment_image_alt', true ); } if ( !$image_caption ) { $image_caption = get_the_title( $img_id ); } array_push( $gallery_data, array( 'src' => $image_url, 'caption' => $image_caption, 'thumb' => $image_url, 'type' => 'image', )); } } $show_video = isset( $args['show_video'] ) ? $args['show_video'] : 'yes'; $show_gallery = isset( $args['show_gallery'] ) ? $args['show_gallery'] : 'yes'; $show_share = isset( $args['show_share'] ) ? $args['show_share'] : 'yes'; $product_url = get_permalink( $product_id ); $product_title = get_the_title( $product_id ); $args_social = apply_filters( 'ovabrw_ft_share_social', array( 'facebook' => array( 'icon' => 'flaticon flaticon-facebook', 'url' => 'https://www.facebook.com/sharer.php?u='.$product_url, ), 'twitter' => array( 'icon' => 'flaticon flaticon-twitter', 'url' => 'https://twitter.com/share/?url='.$product_url.'&text='.$product_title, ), 'whatsapp' => array( 'icon' => 'flaticon flaticon-whatsapp-1', 'url' => 'https://api.whatsapp.com/send?text=*'.$product_title.'*%0A'.$product_url, ), 'pinterest' => array( 'icon' => 'flaticon flaticon-pinterest', 'url' => 'https://www.pinterest.com/pin/create/button/?url='.$product_url, ), ), $product_url, $product_title ); ?> <div class="ova-video-gallery"> <?php if ( $embed_url && $show_video == 'yes' ): ?> <div class="btn-header btn-video btn-video-gallery" data-src="<?php echo esc_url( $embed_url ); ?>" data-controls="<?php echo esc_attr( json_encode( $controls ) ); ?>"> <i aria-hidden="true" class="icomoon icomoon-caret-circle-right"></i> <?php esc_html_e( 'View video', 'tripgo' ); ?> </div> <div class="video-container"> <div class="modal-container"> <div class="modal"> <i class="ovaicon-cancel"></i> <iframe class="modal-video" allow="autoplay" allowfullscreen></iframe> </div> </div> </div> <?php endif; ?> <?php if ( $gallery_data && is_array( $gallery_data ) && $show_gallery == 'yes' ): ?> <div class="btn-header btn-gallery btn-video-gallery fancybox" data-gallery="<?php echo esc_attr( json_encode( $gallery_data ) );?>"> <i aria-hidden="true" class="icomoon icomoon-gallery"></i> <?php echo sprintf( esc_html__( '%s photos', 'tripgo' ), count( $gallery_data ) ); ?> </div> <?php endif; ?> <?php if ( $show_share == 'yes' ): ?> <div class="btn-share btn-video-gallery"> <i aria-hidden="true" class="flaticon flaticon-share"></i> <ul class="ova-social"> <?php foreach ( $args_social as $name => $item_social ): ?> <li> <a href="<?php echo esc_url( $item_social['url'] ); ?>" class="<?php echo esc_attr( $name ); ?>" target="_blank"> <i aria-hidden="true" class="<?php echo esc_attr( $item_social['icon'] ); ?>"></i> </a> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?> </div>PK O2/]���7�0 �0 loop/request-form.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $product_id = isset( $args['id'] ) && $args['id'] ? $args['id'] : get_the_id(); $product = wc_get_product( $product_id ); if ( ! $product || !$product->is_type('ovabrw_car_rental') ) return; $title = $product->get_title(); // Get first day in week $first_day = get_option( 'ova_brw_calendar_first_day', '0' ); if ( empty( $first_day ) ) { $first_day = 0; } // Total Day $total_day = get_post_meta( $product_id, 'ovabrw_number_days', true ); if ( !$total_day ) { $total_day = 1; } // Duration $duration = get_post_meta( $product_id, 'ovabrw_duration_checkbox', true ); // Get booked time $statuses = brw_list_order_status(); $order_time = ovabrw_get_disabled_dates( $product_id, $statuses ); $placeholder_date = ovabrw_get_placeholder_date(); $label_time = esc_html__( 'Choose time', 'tripgo' ); $check_in_default = ovabrw_get_current_date_from_search( 'pickup_date', $product_id ); $check_out_default = ovabrw_get_current_date_from_search( 'dropoff_date', $product_id ); $fixed_time_check_in = get_post_meta( $product_id, 'ovabrw_fixed_time_check_in', true ); $fixed_time_check_out = get_post_meta( $product_id, 'ovabrw_fixed_time_check_out', true ); $readonly = $check_in_class = ''; if ( ! empty( $fixed_time_check_in ) && ! empty( $fixed_time_check_out ) && ! $duration ) { $readonly = 'readonly'; $check_in_class = ' ovabrw_readonly'; } // Show/Hide checkout field $hide_checkout = ''; $checkout_field = get_post_meta( $product_id, 'ovabrw_manage_checkout_field', true ); $show_checkout = get_option( 'ova_brw_booking_form_show_checkout', 'yes' ); if ( ! $checkout_field ) $checkout_field = 'global'; if ( $checkout_field === 'global' ) { if ( $show_checkout != 'yes' ) { $hide_checkout = ' ovabrw-hide-field'; } } elseif ( $checkout_field === 'hide' ) { $hide_checkout = ' ovabrw-hide-field'; } else { $hide_checkout = ''; } // Terms & conditions $terms_conditions = get_option( 'ova_brw_request_booking_terms_conditions', '' ); $terms_content = get_option( 'ova_brw_request_booking_terms_conditions_content', '' ); ?> <div class="ova-request-form" id="request-form"> <form class="form request-form" action="<?php echo home_url('/'); ?>" method="post" enctype="multipart/form-data"> <div class="ovabrw-form-container"> <div class="rental_item"> <label> <?php esc_html_e( 'Name *', 'tripgo' ); ?> </label> <input type="text" class="required" name="name" placeholder="<?php esc_html_e( 'Your name', 'tripgo' ); ?> " data-error="<?php esc_html_e( 'Name is required.', 'tripgo' ); ?>" /> </div> <div class="rental_item"> <label> <?php esc_html_e( 'Email *', 'tripgo' ); ?> </label> <input type="text" class="required" name="email" placeholder="<?php esc_html_e( 'example@gmail.com', 'tripgo' ); ?> " data-error="<?php esc_html_e( 'Email is required.', 'tripgo' ); ?>" /> </div> <?php if ( 'yes' === ovabrw_get_setting( get_option('ova_brw_request_booking_form_show_number', 'yes') ) ): ?> <div class="rental_item"> <label> <?php esc_html_e( 'Phone *', 'tripgo' ); ?> </label> <input type="text" class="required" name="phone" placeholder="<?php esc_html_e( '(229) 555-2872', 'tripgo' ); ?>" data-error="<?php esc_html_e( 'Phone is required.', 'tripgo' ); ?>" /> </div> <?php endif; ?> <?php if ( 'yes' === ovabrw_get_setting( get_option('ova_brw_request_booking_form_show_address', 'yes') ) ): ?> <div class="rental_item"> <label> <?php esc_html_e( 'Address *', 'tripgo' ); ?> </label> <input type="text" class="required" name="address" placeholder="<?php esc_html_e( 'Your address', 'tripgo' ); ?>" data-error="<?php esc_html_e( 'Address is required.', 'tripgo' ); ?>" /> </div> <?php endif; ?> <?php if ( ! $duration && ! empty( $fixed_time_check_in ) && ! empty( $fixed_time_check_out ) ): $fixed_dates = function_exists( 'ovabrw_get_fixed_dates' ) ? ovabrw_get_fixed_dates( $product_id ) : ''; ?> <div class="rental_item"> <label> <?php echo esc_html( $label_time ); ?> </label> <select name="ovabrw_fixed_time" class="ovabrw_fixed_time"> <?php if ( !empty( $fixed_dates ) && is_array( $fixed_dates ) ): ?> <?php foreach ( $fixed_dates as $date_range => $date_string ): ?> <option value="<?php echo esc_attr( $date_range ); ?>"> <?php echo esc_html( $date_string ); ?> </option> <?php endforeach; ?> <?php else: ?> <option value=""><?php esc_html_e( 'No time', 'tripgo' ); ?></option> <?php endif; ?> </select> </div> <?php endif; ?> <?php if ( 'yes' === ovabrw_get_setting( get_option( 'ova_brw_request_booking_form_show_dates', 'yes' ) ) ): ?> <div class="rental_item ovabrw_checkin_field"> <label> <?php esc_html_e( 'Check in *', 'tripgo' ); ?> </label> <input type="text" name="ovabrw_request_pickup_date" class="required ovabrw_datetimepicker ovabrw_start_date<?php echo esc_attr( $check_in_class ); ?>" placeholder="<?php echo esc_attr( $placeholder_date ); ?>" autocomplete="off" value="<?php echo esc_attr( $check_in_default ); ?>" data-firstday="<?php echo esc_attr( $first_day ); ?>" data-total-day="<?php echo esc_attr( $total_day ); ?>" data-order-time='<?php echo esc_attr( $order_time ); ?>' data-error="<?php esc_html_e( 'Check-in is required.', 'tripgo' ); ?>" data-readonly="<?php echo esc_attr( $readonly ); ?>" <?php echo esc_html( $readonly ); ?>/> <span class="ovabrw-date-loading"> <i aria-hidden="true" class="flaticon flaticon-spinner-of-dots"></i> </span> </div> <div class="rental_item ovabrw_checkout_field<?php echo esc_attr( $hide_checkout ); ?>"> <label> <?php esc_html_e( 'Check out *', 'tripgo' ); ?> </label> <input type="text" name="ovabrw_request_pickoff_date" class="required ovabrw_end_date" placeholder="<?php echo esc_attr( $placeholder_date ); ?>" autocomplete="off" value="<?php echo esc_attr( $check_in_default ); ?>" data-firstday="<?php echo esc_attr( $first_day ); ?>" data-total-day="<?php echo esc_attr( $total_day ); ?>" data-order-time='<?php echo esc_attr( $order_time ); ?>' data-error="<?php esc_html_e( 'Check-out is required.', 'tripgo' ); ?>" readonly /> <span class="ovabrw-date-loading"> <i aria-hidden="true" class="flaticon flaticon-spinner-of-dots"></i> </span> </div> <?php endif; ?> <?php wc_get_template( 'rental/loop/fields/guests.php', array( 'id' => $product_id ) ); ?> <?php if ( 'yes' === ovabrw_get_setting( get_option( 'ova_brw_request_booking_form_show_ckf', 'yes' ) ) ): ?> <?php wc_get_template( 'rental/loop/fields/extra_fields.php', array( 'id' => $product_id, 'form' => 'request' ) ); ?> <?php endif; ?> <?php wc_get_template( 'rental/loop/fields/quantity.php', array( 'id' => $product_id, 'form' => 'request' ) ); ?> <?php if ( 'yes' === ovabrw_get_setting( get_option( 'ova_brw_request_booking_form_show_extra_service', 'yes' ) ) ): ?> <?php wc_get_template( 'rental/loop/fields/resources.php', array( 'id' => $product_id, 'form' => 'request' ) ); ?> <?php endif; ?> <?php if ( 'yes' === ovabrw_get_setting( get_option( 'ova_brw_request_booking_form_show_service', 'yes' ) ) ): ?> <?php wc_get_template( 'rental/loop/fields/services.php', array( 'id' => $product_id ) ); ?> <?php endif; ?> <?php if ( 'yes' === ovabrw_get_setting( get_option( 'ova_brw_request_booking_form_show_extra_info', 'yes' ) ) ): ?> <div class="rental_item"> <textarea name="extra" cols="50" rows="5" placeholder="<?php esc_html_e( 'Extra Information', 'tripgo' ); ?>"></textarea> </div> <?php endif; ?> </div> <?php if ( $terms_conditions === 'yes' && $terms_content ): ?> <div class="terms-conditions"> <label> <input type="checkbox" name="ovabrw-request-booking-terms-conditions" value="yes" data-error="<?php esc_attr_e( 'Please read and accept the terms and conditions to continue.', 'ova-brw' ); ?>" /> <span class="terms-conditions-content"> <?php echo $terms_content; ?> <span class="terms-conditions-required">*</span> </span> </label> </div> <?php endif; ?> <?php if ( get_option( 'ova_brw_recapcha_enable', 'no' ) === 'yes' && ovabrw_get_recaptcha_form( 'enquiry' ) ): ?> <div id="ovabrw-g-recaptcha-enquiry"></div> <input type="hidden" id="ovabrw-recaptcha-enquiry-token" value="" data-mess="<?php esc_attr_e( 'Requires reCAPTCHA', 'tripgo' ); ?>" data-error="<?php esc_attr_e( 'reCAPTCHA response error, please try again later', 'tripgo' ); ?>" data-expired="<?php esc_attr_e( 'reCAPTCHA response expires, you needs to re-verify', 'tripgo' ); ?>" /> <?php endif; ?> <div class="ajax-error"></div> <button type="submit" class="request-form-submit"> <?php esc_html_e( 'Send Now', 'tripgo' ); ?> <span class="ovabrw-submit-loading"> <i aria-hidden="true" class="flaticon flaticon-spinner-of-dots"></i> </span> </button> <input type="hidden" name="product_name" value="<?php echo esc_html( $title ); ?>" /> <input type="hidden" name="product_id" value="<?php echo esc_attr( $product_id ); ?>" /> <input type="hidden" name="request_booking" value="request_booking" /> <input type="hidden" name="quantity" value="1" /> <input type="hidden" name="qty-by-guests" value="<?php echo esc_attr( ovabrw_qty_by_guests( $product_id ) ); ?>" /> </form> </div>PK O2/]~��� � loop/description.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 */ if ( ! defined( 'ABSPATH' ) ) exit(); $all_ids = ovabrw_get_all_id_product(); if( isset( $args['id'] ) && $args['id'] != '' ) { $product_id = ( in_array( $args['id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['id'] : get_the_id(); } elseif( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } $tour_description = apply_filters( 'woocommerce_short_description', get_post($product_id)->post_content ); ?> <?php if ( ! empty( $tour_description ) ) { ?> <div class="content-product-item tour-description" id="tour-description"> <?php echo $tour_description; // WPCS: XSS ok. ?> </div> <?php } ?> PK O2/]�J{v� � loop/gallery-slideshow.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $all_ids = ovabrw_get_all_id_product(); if( isset( $args['id'] ) && $args['id'] != '' ) { $product_id = ( in_array( $args['id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['id'] : get_the_id(); } elseif( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } $show_gallery = isset( $args['show_gallery'] ) ? $args['show_gallery'] : 'yes'; $arr_image_ids = tripgo_get_gallery_ids( $product_id ); $data_gallery = array(); if ( isset( $args['data_options'] ) ) { $data_options = $args['data_options']; } else { $data_options = apply_filters( 'ft_wc_slideshow_options', array( 'items' => 3, 'slideBy' => 1, 'margin' => 24, 'autoplayHoverPause' => true, 'loop' => true, 'autoplay' => true, 'autoplayTimeout' => 3000, 'smartSpeed' => 500, 'autoWidth' => false, 'center' => false, 'lazyLoad' => true, 'dots' => true, 'nav' => true, 'rtl' => is_rtl() ? true: false, 'nav_left' => 'icomoon icomoon-angle-left', 'nav_right' => 'icomoon icomoon-angle-right', )); } $thumbnail_size = 'tripgo_product_slider'; if ( isset( $args['thumbnail_size'] ) && $args['thumbnail_size'] ) { $thumbnail_size = $args['thumbnail_size']; } $gallery_size = apply_filters( 'ovabrw_ft_gallery_product_size', $thumbnail_size ); ?> <?php if ( $arr_image_ids && is_array( $arr_image_ids ) && $show_gallery == 'yes' ): ?> <div class="ova-gallery-popup"> <div class="ova-gallery-slideshow owl-carousel owl-theme" data-options="<?php echo esc_attr( json_encode( $data_options ) ); ?>"> <?php foreach( $arr_image_ids as $k => $img_id ): $gallery_url = wp_get_attachment_url( $img_id ); $gallery_alt = get_post_meta( $img_id, '_wp_attachment_image_alt', true ); if ( !$gallery_alt ) { $gallery_alt = get_the_title( $img_id ); } array_push( $data_gallery , array( 'src' => $gallery_url, 'caption' => $gallery_alt, 'thumb' => $gallery_url, )); ?> <div class="item"> <a class="gallery-fancybox" data-index="<?php echo esc_attr( $k ); ?>" href="javascript:void(0)"> <?php echo wp_get_attachment_image( $img_id, $gallery_size ); ?> </a> </div> <?php endforeach; ?> </div> <input type="hidden" class="ova-data-gallery" data-gallery="<?php echo esc_attr( json_encode( $data_gallery ) ); ?>"> </div> <?php endif; ?>PK O2/]��^� loop/location-review.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $all_ids = ovabrw_get_all_id_product(); if( isset( $args['id'] ) && $args['id'] != '' ) { $product_id = ( in_array( $args['id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['id'] : get_the_id(); } elseif( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } $product = wc_get_product($product_id); if ( ! $product ) return; $address = get_post_meta( $product_id, 'ovabrw_address', true ); $review_count = $product->get_review_count(); $rating = $product->get_average_rating(); $short_address = get_post_meta( $product_id, 'ovabrw_short_address', true ); if( $short_address && !empty($short_address) ) { $address = $short_address; } // Wishlist $wishlist = do_shortcode('[yith_wcwl_add_to_wishlist]'); // show fields $show_location = isset( $args['show_location'] ) ? $args['show_location'] : 'yes'; $show_rating = isset( $args['show_rating'] ) ? $args['show_rating'] : 'yes'; $show_wishlist = isset( $args['show_wishlist'] ) ? $args['show_wishlist'] : 'yes'; ?> <div class="ova-location-review"> <?php if ( $address && $show_location == 'yes' ): ?> <div class="ova-product-location"> <i aria-hidden="true" class="icomoon icomoon-location-2"></i> <a href="#ova-tour-map"> <?php echo esc_html( $address ); ?> </a> </div> <?php endif; ?> <?php if ( wc_review_ratings_enabled() && $rating > 0 && $show_rating == 'yes' ): ?> <div class="ova-product-review"> <div class="star-rating" role="img" aria-label="<?php echo sprintf( __( 'Rated %s out of 5', 'tripgo' ), $rating ); ?>"> <span class="rating-percent" style="width: <?php echo esc_attr( ( $rating / 5 ) * 100 ).'%'; ?>;"></span> </div> <a href="#reviews" class="woo-review-link" rel="nofollow"> ( <?php printf( _n( '%s review', '%s reviews', $review_count, 'tripgo' ), esc_html( $review_count ) ); ?> ) </a> </div> <?php endif; ?> <?php if ( '[yith_wcwl_add_to_wishlist]' != $wishlist && $show_wishlist == 'yes' ): ?> <div class="ova-single-product-wishlist"> <?php echo $wishlist; ?> </div> <?php endif; ?> </div>PK O2/]��H� � loop/custom_taxonimies.phpnu ��� <?php if( ! defined( 'ABSPATH' ) ) exit(); global $product; $id = $product->get_id(); $custom_taxonomy_choosed = ''; if( function_exists('ovabrw_get_custom_taxonomies') ){ $custom_taxonomy_choosed = ovabrw_get_custom_taxonomies( $id ); } $i = 1; $limit = apply_filters( 'tripgo_limit_custom_taxonomies_display', 3 ); if ( ! empty( $custom_taxonomy_choosed ) && is_array( $custom_taxonomy_choosed ) ): ?> <div class="tripgo-product-features"> <ul class="feature-list"> <?php foreach ( $custom_taxonomy_choosed as $taxonomy ): if ( $i > $limit ) { continue; } ?> <li class="label"><?php echo esc_html( $taxonomy['name'] ); ?></li> <?php $i++; endforeach; ?> </ul> </div> <?php endif; ?>PK O2/]��ܚB B loop/unavailable_time.phpnu ��� <?php /** * The template for displaying unavailable time content within single * * This template can be overridden by copying it to yourtheme/ovabrw-templates/single/unavailable_time.php * */ if ( ! defined( 'ABSPATH' ) ) exit(); // Get all id product $all_ids = ovabrw_get_all_id_product(); if( isset( $args['id'] ) && $args['id'] != '' ) { $product_id = ( in_array( $args['id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['id'] : get_the_id(); } elseif( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } // Check product type: rental $product = wc_get_product( $product_id ); if ( ! $product || $product->get_type() !== 'ovabrw_car_rental' ) return; $ovabrw_date_format = ovabrw_get_date_format(); $ovabrw_date_time_format = $ovabrw_date_format; $start_untime = get_post_meta( $product_id, 'ovabrw_untime_startdate', true ); $end_entime = get_post_meta( $product_id, 'ovabrw_untime_enddate', true ); if( $start_untime ){ ?> <div class="ovacrs_single_untime"> <h3><?php esc_html_e( 'You can\'t book product in this time', 'tripgo' ); ?></h3> <ul> <?php foreach ($start_untime as $key => $value) { ?> <?php if( $start_untime[$key] != $end_entime[$key] ) : ?> <li> <?php echo sprintf( esc_html__( '%s. %s to %s', 'tripgo' ), absint( $key + 1 ), date_i18n( $ovabrw_date_time_format, strtotime( $start_untime[$key] ) ), date_i18n( $ovabrw_date_time_format, strtotime( $end_entime[$key] ) ) ); ?> </li> <?php else : ?> <li> <?php echo sprintf( esc_html__( '%s. %s', 'tripgo' ), absint( $key + 1 ), date_i18n( $ovabrw_date_time_format, strtotime( $start_untime[$key] ) ) ); ?> </li> <?php endif; ?> <?php } ?> </ul> </div> <?php } ?> PK O2/]�"�� � loop/features.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $all_ids = ovabrw_get_all_id_product(); if( isset( $args['id'] ) && $args['id'] != '' ) { $product_id = ( in_array( $args['id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['id'] : get_the_id(); } elseif( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } $show_features = isset( $args['show_features'] ) ? $args['show_features'] : 'yes'; $features_icons = get_post_meta( $product_id, 'ovabrw_features_icons', true ); ?> <?php if ( $features_icons && is_array( $features_icons ) && $show_features == 'yes' ): $features_title = get_post_meta( $product_id, 'ovabrw_features_label', true ); $features_desc = get_post_meta( $product_id, 'ovabrw_features_desc', true ); ?> <div class="ova-features-product"> <?php foreach( $features_icons as $k => $icon ): ?> <div class="feature"> <i aria-hidden="true" class="<?php echo esc_attr( $icon ); ?>"></i> <div class="title-desc"> <?php if ( isset( $features_title[$k] ) && $features_title[$k] ): ?> <h6 class="title"> <?php echo esc_html( $features_title[$k] ); ?> </h6> <?php endif; ?> <?php if ( isset( $features_desc[$k] ) && $features_desc[$k] ): ?> <p class="desc"> <?php echo esc_html( $features_desc[$k] ); ?> </p> <?php endif; ?> </div> </div> <?php endforeach; ?> </div> <?php endif; ?> PK O2/]�'�xe e loop/tabs.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 */ if ( !defined( 'ABSPATH' ) ) exit(); $all_ids = ovabrw_get_all_id_product(); if ( isset( $args['product_id'] ) && $args['product_id'] != '' ) { $product_id = ( in_array( $args['product_id'], $all_ids ) == true && in_array( get_the_id(), $all_ids ) == false ) ? $args['product_id'] : get_the_id(); } elseif ( in_array( get_the_id(), $all_ids ) == false ) { $product_id = $all_ids[0]; } else { $product_id = get_the_id(); } $tour_description = wpautop( get_post($product_id)->post_content ); $group_tour_included = get_post_meta( $product_id,'ovabrw_group_tour_included',true ); $group_tour_excluded = get_post_meta( $product_id,'ovabrw_group_tour_excluded',true ); $group_tour_plan = get_post_meta( $product_id,'ovabrw_group_tour_plan',true ); $address = get_post_meta( $product_id, 'ovabrw_address', true ); // Description $description_label = isset( $args['description_label'] ) ? $args['description_label'] : esc_html__( 'Description', 'tripgo' ); $description_show = isset( $args['show_description'] ) ? $args['show_description'] : 'yes'; // Included/Excluded $incl_excl_label = isset( $args['incl_excl_label'] ) ? $args['incl_excl_label'] : esc_html__( 'Included/Excluded', 'tripgo' ); $incl_excl_show = isset( $args['show_incl_excl'] ) ? $args['show_incl_excl'] : 'yes'; // Tour Plan $tour_plan_label = isset( $args['tour_plan_label'] ) ? $args['tour_plan_label'] : esc_html__( 'Tour Plan', 'tripgo' ); $tour_plan_show = isset( $args['show_tour_plan'] ) ? $args['show_tour_plan'] : 'yes'; // Tour Plan $tour_map_label = isset( $args['tour_map_label'] ) ? $args['tour_map_label'] : esc_html__( 'Tour Map', 'tripgo' ); $tour_map_show = isset( $args['show_tour_map'] ) ? $args['show_tour_map'] : 'yes'; // Reviews $reviews_label = isset( $args['reviews_label'] ) ? $args['reviews_label'] : esc_html__( 'Reviews', 'tripgo' ); $reviews_show = isset( $args['show_reviews'] ) ? $args['show_reviews'] : 'yes'; ?> <div class="ova-tabs-product"> <div class="tabs"> <?php if ( ! empty( $tour_description ) && $description_show === 'yes' ) { ?> <div class="item" data-id="#tour-description"> <?php echo esc_html( $description_label ); ?> </div> <?php } ?> <?php if ( ( ! empty( $group_tour_included ) || ! empty( $group_tour_excluded ) ) && $incl_excl_show === 'yes' ) { ?> <div class="item" data-id="#tour-included-excluded"> <?php echo esc_html( $incl_excl_label ); ?> </div> <?php } ?> <?php if ( ! empty( $group_tour_plan ) && $tour_plan_show === 'yes' ) { ?> <div class="item" data-id="#tour-plan"> <?php echo esc_html( $tour_plan_label ); ?> </div> <?php } ?> <?php if ( ! empty( $address ) && $tour_map_show === 'yes' ) { ?> <div class="item" data-id="#ova-tour-map"> <?php echo esc_html( $tour_map_label ); ?> </div> <?php } ?> <?php if ( $reviews_show === 'yes' ) { ?> <div class="item" data-id="#ova-tour-review"> <?php echo esc_html( $reviews_label ); ?> </div> <?php } ?> </div> <?php /* Tab Content */ wc_get_template( 'rental/loop/description.php', array( 'id' => $product_id ) ); wc_get_template( 'rental/loop/included-excluded.php', array( 'id' => $product_id ) ); wc_get_template( 'rental/loop/plan.php', array( 'id' => $product_id ) ); wc_get_template( 'rental/loop/map.php', array( 'id' => $product_id ) ); wc_get_template( 'rental/loop/review.php', array( 'id' => $product_id ) ); ?> </div>PK O2/]$�6w� � content-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 */ if ( !defined( 'ABSPATH' ) ) exit(); global $product; /** * Hook: woocommerce_before_single_product. * * @hooked woocommerce_output_all_notices - 10 */ do_action( 'woocommerce_before_single_product' ); if ( post_password_required() ) { echo get_the_password_form(); // WPCS: XSS ok. return; } // show fields $args_show = array( 'show_title' => get_theme_mod('tour_single_show_title','yes'), 'show_location' => get_theme_mod('tour_single_show_location','yes'), 'show_rating' => get_theme_mod('tour_single_show_rating','yes'), 'show_wishlist' => get_theme_mod('tour_single_show_wishlist','yes'), 'show_video' => get_theme_mod('tour_single_show_video_button','yes'), 'show_gallery' => get_theme_mod('tour_single_show_gallery_button','yes'), 'show_share' => get_theme_mod('tour_single_show_share_button','yes'), 'show_gallery_slide' => get_theme_mod('tour_single_show_gallery_slide','yes'), 'show_features' => get_theme_mod('tour_single_show_features','yes'), 'show_description' => get_theme_mod('tour_single_show_description','yes'), 'show_inc_exc' => get_theme_mod('tour_single_show_inc_exc','yes'), 'show_tour_plan' => get_theme_mod('tour_single_show_tour_plan','yes'), 'show_map' => get_theme_mod('tour_single_show_map','yes'), 'show_reviews' => get_theme_mod('tour_single_show_reviews','yes'), 'show_form' => get_theme_mod('tour_single_show_form','yes'), 'show_table_price' => get_theme_mod('tour_single_show_table_price','yes'), 'show_related' => get_theme_mod('tour_single_show_related','yes'), ); ?> <div id="product-<?php the_ID(); ?>" <?php wc_product_class( '', $product ); ?>> <?php /** * Hook: tripgo_wc_before_single_product_summary. */ do_action( 'tripgo_wc_before_single_product_summary' ); ?> <div class="ova-content-single-product"> <div class="single-product-header"> <?php /** * Hook: tripgo_wc_before_single_product_header. */ do_action( 'tripgo_wc_before_single_product_header' ); ?> <?php /** * Hook: tripgo_wc_before_single_product_top_header. */ do_action( 'tripgo_wc_before_single_product_top_header' ); ?> <?php /** * Hook: tripgo_wc_single_product_top_header. * * @hooked tripgo_wc_template_single_title - 5 * @hooked tripgo_wc_template_single_video_gallery - 10 */ do_action( 'tripgo_wc_single_product_top_header', $args_show ); ?> <?php /** * Hook: tripgo_wc_after_single_product_top_header. */ do_action( 'tripgo_wc_after_single_product_top_header' ); ?> <?php /** * Hook: tripgo_wc_single_product_header. * * @hooked tripgo_wc_template_single_location - 10 * @hooked tripgo_wc_template_single_slideshow - 10 * @hooked tripgo_wc_template_single_features - 10 */ do_action( 'tripgo_wc_single_product_header', $args_show ); ?> <?php /** * Hook: tripgo_wc_after_single_product_header. */ do_action( 'tripgo_wc_after_single_product_header' ); ?> </div> <div class="single-product-summary"> <?php /** * Hook: tripgo_wc_before_single_product_content. */ do_action( 'tripgo_wc_before_single_product_content' ); ?> <?php /** * Hook: tripgo_wc_before_single_product_summary_left. */ do_action( 'tripgo_wc_before_single_product_summary_left' ); ?> <?php /** * Hook: tripgo_wc_single_product_summary_left. * * @hooked tripgo_wc_template_single_content - 10 * @hooked tripgo_wc_template_single_included-excluded - 10 * @hooked tripgo_wc_template_single_plan - 10 * @hooked tripgo_wc_template_single_map - 10 * @hooked tripgo_wc_template_single_review - 10 */ do_action( 'tripgo_wc_single_product_summary_left', $args_show ); ?> <?php /** * Hook: tripgo_wc_after_single_product_summary_left. */ do_action( 'tripgo_wc_after_single_product_summary_left' ); ?> <?php /** * Hook: tripgo_wc_before_single_product_summary_right. */ do_action( 'tripgo_wc_before_single_product_summary_right' ); ?> <?php /** * Hook: tripgo_wc_single_product_summary_right. * * @hooked tripgo_wc_template_single_forms - 10 * @hooked tripgo_wc_template_single_price_table - 10 */ do_action( 'tripgo_wc_single_product_summary_right', $args_show ); ?> <?php /** * Hook: tripgo_wc_after_single_product_summary_right. */ do_action( 'tripgo_wc_after_single_product_summary_right' ); ?> <?php /** * Hook: tripgo_wc_after_single_product_content. */ do_action( 'tripgo_wc_after_single_product_content' ); ?> </div> <?php if( $args_show['show_related'] == 'yes' ) { ?> <div class="single-product-related"> <?php /** * Hook: tripgo_wc_before_single_product_content. */ do_action( 'tripgo_wc_before_single_product_content' ); ?> <?php /** * Hook: tripgo_wc_single_product_related. * * @hooked tripgo_wc_template_single_product_related - 10 */ do_action( 'tripgo_wc_single_product_related' ); ?> <?php /** * Hook: tripgo_wc_after_single_product_content. */ do_action( 'tripgo_wc_after_single_product_content' ); ?> </div> <?php } ?> </div> <?php /** * Hook: tripgo_wc_after_single_product_summary. * * @hooked woocommerce_output_product_data_tabs - 10 * @hooked woocommerce_upsell_display - 15 * @hooked woocommerce_output_related_products - 20 */ do_action( 'tripgo_wc_after_single_product_summary' ); ?> </div> <?php do_action( 'woocommerce_after_single_product' ); ?>PK O2/])�)�# �# content-item-product.phpnu ��� PK O2/]�X� � �# single-product.phpnu ��� PK O2/]�l���2 �2 �( content-item-product-list.phpnu ��� PK O2/]|�� �[ loop/fields/services.phpnu ��� PK O2/]<�ػ� � 5n loop/fields/dates.phpnu ��� PK O2/]����R R � loop/fields/resources.phpnu ��� PK O2/]M':�S S �� loop/fields/deposit.phpnu ��� PK O2/]�L� � A� loop/fields/extra_fields.phpnu ��� PK O2/]��c! c! '� loop/fields/guests.phpnu ��� PK O2/]���( ( �� loop/fields/quantity.phpnu ��� PK O2/]4,��� � @� loop/fields/ajax-total.phpnu ��� PK O2/]o�a�c c N� loop/content.phpnu ��� PK O2/]h0��r r �� loop/map.phpnu ��� PK O2/]=��� � �� loop/review.phpnu ��� PK O2/]6N� � �� loop/booking-form.phpnu ��� PK O2/]�6v v � loop/included-excluded.phpnu ��� PK O2/]Z� � loop/title.phpnu ��� PK O2/]�t��� � � loop/plan.phpnu ��� PK O2/]t��2� � ( loop/related.phpnu ��� PK O2/]1�!�v1 v1 4 loop/table_price.phpnu ��� PK O2/]��{ { �e loop/forms.phpnu ��� PK O2/] P��� � �s loop/video-gallery.phpnu ��� PK O2/]���7�0 �0 |� loop/request-form.phpnu ��� PK O2/]~��� � �� loop/description.phpnu ��� PK O2/]�J{v� � z� loop/gallery-slideshow.phpnu ��� PK O2/]��^� {� loop/location-review.phpnu ��� PK O2/]��H� � �� loop/custom_taxonimies.phpnu ��� PK O2/]��ܚB B �� loop/unavailable_time.phpnu ��� PK O2/]�"�� � �� loop/features.phpnu ��� PK O2/]�'�xe e b� loop/tabs.phpnu ��� PK O2/]$�6w� � � content-single-product.phpnu ��� PK K �
| ver. 1.6 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка