Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-includes/ID3/tripgo.zip
Назад
PK M<,]�5�w� � sidebar-shop.phpnu ��� <?php if(is_active_sidebar('woo-sidebar')){ ?> <aside id="woo-sidebar" class="sidebar woo-sidebar"> <?php dynamic_sidebar('woo-sidebar'); ?> </aside> <?php } ?>PK M<,]�os�9* 9* inc/class-main.phpnu ��� <?php if (!defined( 'ABSPATH' )) exit; if( !class_exists('Tripgo_Main') ){ class Tripgo_Main { public function __construct() { /* Add theme support */ add_action( 'after_setup_theme', array( $this, 'tripgo_theme_support' ) ); /** * Register Menu */ add_action( 'init', array( $this, 'tripgo_register_menus' ) ); /** * Load google font from customize */ add_action('wp_enqueue_scripts', array( $this, 'tripgo_load_google_fonts' ) ); /** * Add Body class */ add_filter('body_class', array( $this, 'tripgo_body_classes' ) ); /** * Enqueue CSS, Javascript */ add_action('wp_enqueue_scripts', array( $this, 'tripgo_enqueue_scripts' ) ); /** * Enqueue style from customize */ add_action('wp_enqueue_scripts', array( $this, 'tripgo_enqueue_customize' ), 11 ); } function tripgo_theme_support(){ $GLOBALS['content_width'] = apply_filters('tripgo_content_width', 800); add_theme_support('title-tag'); // Adds RSS feed links to <head> for posts and comments. add_theme_support( 'automatic-feed-links' ); // Switches default core markup for search form, comment form, and comments // to output valid HTML5. add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) ); add_theme_support( 'responsive-embeds' ); /* See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'image', 'gallery', 'audio', 'video') ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'custom-header' ); add_theme_support( 'custom-background'); add_theme_support('responsive-embeds'); add_theme_support( 'woocommerce' ); add_theme_support( 'ova_framework_hf_el' ); add_filter('gutenberg_use_widgets_block_editor', '__return_false'); add_filter('use_widgets_block_editor', '__return_false'); add_image_size( 'tripgo_thumbnail', 768, 660, true ); add_image_size( 'tripgo_blog_thumbnail', 416, 280, true ); add_image_size( 'tripgo_product_slider', 636, 426, true ); add_image_size( 'tripgo_product_gallery', 800, 450, true ); } function tripgo_register_menus() { register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'tripgo' ) ) ); } function tripgo_load_google_fonts(){ $fonts_url = ''; $custom_font = get_theme_mod( 'ova_custom_font', '["HK Grotesk", "300:400:500:600:700:800:900"]' ); $default_primary_font = json_decode( tripgo_default_primary_font() ); $custom_fonts = get_theme_mod('ova_custom_font',''); // Primary Font $primary_font = json_decode( get_theme_mod( 'primary_font' ) ) ? json_decode( get_theme_mod( 'primary_font' ) ) : $default_primary_font; $primary_font_family = $primary_font->font; $primary_font_weights_string = $primary_font->regularweight ? $primary_font->regularweight : '100,200,300,400,500,600,700,800,900'; $is_custom_primary_font = $custom_fonts != '' ? !strpos($primary_font_family, $custom_fonts) : true; $general_flag = _x( 'on', $primary_font_family.': on or off', 'tripgo'); if ( 'off' !== $general_flag ) { $font_families = array(); if ( 'off' !== $general_flag && $is_custom_primary_font ) { $font_families[] = $primary_font_family.':'.$primary_font_weights_string; } if($font_families != null){ $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ) ); $fonts_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' ); } } $google_fonts = esc_url_raw( $fonts_url ); /** * Load google font from customize */ if ( !str_contains( $custom_font, $primary_font_family ) ) { wp_enqueue_style( 'ova-google-fonts', $google_fonts, array(), null ); } } function tripgo_body_classes( $classes ){ global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone; if ($is_lynx) { $classes[] = 'lynx'; } elseif ($is_gecko) { $classes[] = 'gecko'; } elseif ($is_opera) { $classes[] = 'opera'; } elseif ($is_NS4) { $classes[] = 'ns4'; } elseif ($is_safari) { $classes[] = 'safari'; } elseif ($is_chrome) { $classes[] = 'chrome'; } elseif ($is_IE) { $classes[] = 'ie'; } if ($is_iphone) { $classes[] = 'iphone'; } // Adds a class to blogs with more than 1 published author. if (is_multi_author()) { $classes[] = 'group-blog'; } // Add class when using homepage template + featured image. if (has_post_thumbnail()) { $classes[] = 'has-post-thumbnail'; } $classes[] = apply_filters( 'tripgo_theme_sidebar','' ); $classes[] = tripgo_woo_sidebar(); $wide_site = apply_filters( 'tripgo_wide_site', '' ); if( $wide_site == 'boxed' ){ $classes[] = 'container_boxed'; } return $classes; } function tripgo_enqueue_scripts() { // enqueue the javascript that performs in-link comment reply fanciness if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } // Carousel wp_enqueue_script('carousel', TRIPGO_URI.'/assets/libs/carousel/owl.carousel.min.js', array('jquery'),null,true); wp_enqueue_style('carousel', TRIPGO_URI.'/assets/libs/carousel/assets/owl.carousel.min.css', array(), null); // Font Icon wp_enqueue_style('ovaicon', TRIPGO_URI.'/assets/libs/ovaicon/font/ovaicon.css', array(), null); // Icomoon wp_enqueue_style('ova-icomoon', TRIPGO_URI.'/assets/libs/icomoon/style.css', array(), null); // Flaticon wp_enqueue_style('ova-flaticon', TRIPGO_URI.'/assets/libs/flaticon/font/flaticon_tripgo.css', array(), null); // Flaticon 2 wp_enqueue_style('ova-flaticon2', TRIPGO_URI.'/assets/libs/flaticon2/font/flaticon_tripgo2.css', array(), null); wp_enqueue_script('masonry', TRIPGO_URI.'/assets/libs/masonry.min.js', array('jquery'),null,true); wp_enqueue_script('tripgo-script', TRIPGO_URI.'/assets/js/script.js', array('jquery'),null,true); wp_localize_script( 'tripgo-script', 'ScrollUpText', array('value' => esc_html__( 'Go to top', 'tripgo' ))); wp_enqueue_style( 'tripgo-style', get_template_directory_uri() . '/style.css' ); } function tripgo_enqueue_customize(){ $css = ''; $primary_color = get_theme_mod( 'primary_color', '#FD4C5C' ); $primary_color_hover = get_theme_mod( 'primary_color_hover', '#E64251' ); $secondary_color = get_theme_mod( 'secondary_color', '#00BB98' ); $secondary_color_hover = get_theme_mod( 'secondary_color_hover', '#05977C' ); $heading_color = get_theme_mod( 'heading_color', '#111B19' ); $text_color = get_theme_mod( 'text_color', '#444444' ); $light_color = get_theme_mod( 'light_color', '#999999' ); $border_color = get_theme_mod( 'border_color', '#E6E6E6' ); $first_background = get_theme_mod( 'first_background', '#F5F5F5' ); $second_background = get_theme_mod( 'second_background', '#F2FBFA' ); $third_background = get_theme_mod( 'third_background', '#1A1A3D' ); /* Primary Font */ $default_primary_font = json_decode( tripgo_default_primary_font() ); $primary_font = json_decode( get_theme_mod( 'primary_font' ) ) ? json_decode( get_theme_mod( 'primary_font' ) ) : $default_primary_font; $primary_font_family = $primary_font->font; /* General Typo */ $general_font_size = get_theme_mod( 'general_font_size', '16px' ); $general_line_height = get_theme_mod( 'general_line_height', '1.63em' ); $general_letter_space = get_theme_mod( 'general_letter_space', '0px' ); // Width Sidebar $global_layout_sidebar = apply_filters( 'tripgo_get_layout', '' ); $width_sidebar = is_array( $global_layout_sidebar ) ? $global_layout_sidebar[1] : '0'; // Container width $container_width = get_theme_mod( 'global_boxed_container_width', '1290' ); $container_width_break = $container_width + 60; $boxed_offset = get_theme_mod( 'global_boxed_offset', '20' ); // WooCommerce Sidebar $woo_archive_layout = get_theme_mod( 'woo_archive_layout', 'layout_1c' ); $woo_sidebar_width = get_theme_mod( 'woo_sidebar_width', '320' ); $css .= '--primary: '.$primary_color.';'; $css .= '--primary-hover: '.$primary_color_hover.';'; $css .= '--secondary: '.$secondary_color.';'; $css .= '--secondary-hover: '.$secondary_color_hover.';'; $css .= '--heading: '.$heading_color.';'; $css .= '--text: '.$text_color.';'; $css .= '--light: '.$light_color.';'; $css .= '--border: '.$border_color.';'; $css .= '--first-background: '.$first_background.';'; $css .= '--second-background: '.$second_background.';'; $css .= '--third-background: '.$third_background.';'; $css .= '--primary-font: '.$primary_font_family.';'; $css .= '--font-size: '.$general_font_size.';'; $css .= '--line-height: '.$general_line_height.';'; $css .= '--letter-spacing: '.$general_letter_space.';'; $css .= '--width-sidebar: '.$width_sidebar.'px;'; $css .= '--main-content: calc( 100% - '.$width_sidebar.'px )'.';'; $css .= '--container-width: '.$container_width.'px;'; $css .= '--boxed-offset: '.$boxed_offset.'px;'; $css .= '--woo-layout: '.$woo_archive_layout.';'; $css .= '--woo-width-sidebar: '.$woo_sidebar_width.'px;'; $css .= '--woo-main-content: calc( 100% - '.$woo_sidebar_width.'px )'.';'; $var = ":root{{$css}}"; $var .= '@media (min-width: 1024px) and ( max-width: '.$container_width_break.'px ){ body .row_site, body .elementor-section.elementor-section-boxed>.elementor-container{ max-width: 100%; padding-left: 30px; padding-right: 30px; } }'; wp_add_inline_style( 'tripgo-style', $var ); } } } return new Tripgo_Main();PK M<,]���=� � inc/class-woo.phpnu ��� <?php if (!defined( 'ABSPATH' )) exit; if( !class_exists('Tripgo_Woo') ){ class Tripgo_Woo { public function __construct() { // Show title archive shop page add_filter( 'woocommerce_show_page_title', array( $this, 'tripgo_woocommerce_show_title_shop_page' ) ); // Insert category to loop product add_action( 'woocommerce_shop_loop_item_title', array( $this, 'tripgo_woocommerce_template_loop_product_cat' ), 5 ); remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); // Remove breadcrumb woo remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 ); add_action( 'woocommerce_before_main_content', array( $this, 'tripgo_woocommerce_before_main_content' ), 10 ); remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 ); add_action( 'woocommerce_sidebar', array( $this, 'tripgo_woocommerce_sidebar' ), 10 ); /* * Pagination change next, pre text */ add_filter( 'woocommerce_pagination_args', array( $this, 'tripgo_woocommerce_pagination_args' ) ); /* Change number product related */ add_filter( 'woocommerce_output_related_products_args', array( $this, 'tripgo_change_number_product_related' ) ); /* add data prettyPhoto in gallery */ add_filter( 'woocommerce_single_product_image_thumbnail_html', array( $this, 'tripgo_single_product_image_thumbnail_html' ), 10, 2 ); add_action( 'woocommerce_before_customer_login_form', array( $this, 'tripgo_woocommerce_before_customer_login_form' ), 100 ); // Remove title in Product Detail if( get_theme_mod( 'woo_product_detail_show_title', 'yes' ) != 'yes' ){ remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); } // Remove Heading in Content Description Tab Woo add_filter('woocommerce_product_description_heading', '__return_null'); add_action('wp_enqueue_scripts', array( $this, 'tripgo_enqueue_scripts_woo' ) ); // Shop filter products by product type add_action('pre_get_posts', array( $this, 'tripgo_shop_filter_by_product_type' )); } function tripgo_woocommerce_show_title_shop_page( $param ){ if( ( is_shop() || is_product_category() || is_product_tag() ) && get_theme_mod( 'woo_archive_show_title', 'yes' ) == 'yes' ){ return true; } return false; } function tripgo_woocommerce_template_loop_product_cat(){ $id = get_the_id(); $cats = get_the_terms( $id, 'product_cat') ? get_the_terms( $id, 'product_cat') : '' ; $value_cats = array(); if ( $cats ) { foreach ( $cats as $value ) { $value_cats[] = is_object($value) && $value->term_id ? '<span class="cat_product">' . $value->name . '</span>' : ""; } } echo implode(' ', $value_cats); } function tripgo_woocommerce_before_main_content(){ ?> <div class="row_site"> <div class="container_site"> <div id="woo_main"> <?php wc_get_template( 'global/wrapper-start.php' ); } function tripgo_woocommerce_sidebar(){ ?> </div> <?php if( tripgo_woo_sidebar() != 'woo_layout_1c' && is_active_sidebar('woo-sidebar') ){ ?> <div id="woo_sidebar"> <?php wc_get_template( 'global/sidebar.php' ); ?> </div> <?php } ?> </div> </div> <?php } function tripgo_woocommerce_pagination_args( $array ) { $args = array( 'next_text' => '<i class="ovaicon-next"></i>', 'prev_text' => '<i class="ovaicon-back"></i>', ); $agrs = array_merge( $array, $args ); return $agrs; } function tripgo_change_number_product_related( $agrs ){ $agrs_setting = [ 'posts_per_page' => apply_filters( 'number_product_realated_posts_per_page', 3 ), 'columns' => apply_filters( 'number_product_realated_columns', 3 ), ]; $agrs = array_merge( $agrs, $agrs_setting ); return $agrs; } function tripgo_single_product_image_thumbnail_html( $html, $attachment_id ){ if ( $attachment_id ) { $thumbnail_url = wp_get_attachment_image_url ( $attachment_id, 'large' ); $thumbnail_alt = trim( wp_strip_all_tags( get_post_meta( $attachment_id, '_wp_attachment_image_alt', true ) ) ); $html = '<div data-thumb="' . esc_url( $thumbnail_url ) . '" data-thumb-alt="' . esc_attr( $thumbnail_alt ) . '" class="woocommerce-product-gallery__image">'; $html .= '<a href="'.esc_url( $thumbnail_url ).'" data-fancybox="product_gallery">'; $html .= '<img src="'.esc_url( $thumbnail_url ).'" class="wp-post-image" alt="'.esc_attr( $thumbnail_alt ).'">'; $html .= '</a>'; $html .= '</div>'; } else { $html = '<div class="woocommerce-product-gallery__image--placeholder">'; $html .= sprintf( '<img src="%s" alt="%s" class="wp-post-image" />', esc_url( wc_placeholder_img_src() ), esc_html__( 'Awaiting product image', 'tripgo' ) ); $html .= '</div>'; } return $html; } function tripgo_woocommerce_before_customer_login_form(){ ?> <ul class="ova-login-register-woo"> <li class="active"> <a href="javascript:void(0)" data-type="login"> <?php esc_html_e( 'Login', 'tripgo' ); ?> </a> </li> <?php if ( 'yes' === get_option( 'woocommerce_enable_myaccount_registration' ) ) : ?> <li> <a href="javascript:void(0)" data-type="register"> <?php esc_html_e( 'Register', 'tripgo' ); ?> </a> </li> <?php endif; ?> </ul> <?php } function tripgo_enqueue_scripts_woo() { if( is_product() ){ // Fancybox wp_enqueue_script('fancybox', TRIPGO_URI.'/assets/libs/fancybox/fancybox.umd.js', array('jquery'),null,true); wp_enqueue_style('fancybox', TRIPGO_URI.'/assets/libs/fancybox/fancybox.css', array(), null); } wp_enqueue_script('tripgo-woo', TRIPGO_URI.'/assets/js/woo.js', array('jquery'),null,true); } function tripgo_shop_filter_by_product_type($query) { $terms = get_theme_mod( 'woo_archive_display', 'all' ); if( $terms == 'ovabrw_car_rental' ) { if (!is_admin() && is_post_type_archive( 'product' ) && $query->is_main_query()) { $query->set('tax_query', array( array ('taxonomy' => 'product_type', 'field' => 'slug', 'terms' => $terms, 'operator' => 'IN' ) ) ); } } elseif( $terms == 'not_rental') { if (!is_admin() && is_post_type_archive( 'product' ) && $query->is_main_query()) { $query->set('tax_query', array( array ('taxonomy' => 'product_type', 'field' => 'slug', 'terms' => array('simple', 'grouped', 'variable', 'external'), 'operator' => 'IN' ) ) ); } } } } } new Tripgo_Woo();PK M<,]�\0� inc/class-widgets.phpnu ��� <?php if (!defined( 'ABSPATH' )) exit; if( !class_exists('Tripgo_Widgets') ){ class Tripgo_Widgets { function __construct(){ /** * Regsiter Widget */ add_action( 'widgets_init', array( $this, 'tripgo_register_widgets' ) ); } function tripgo_register_widgets() { $args_blog = array( 'name' => esc_html__( 'Main Sidebar', 'tripgo'), 'id' => "main-sidebar", 'description' => esc_html__( 'Main Sidebar', 'tripgo' ), 'class' => '', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => "</div>", 'before_title' => '<h4 class="widget-title">', 'after_title' => "</h4>", ); register_sidebar( $args_blog ); if( tripgo_is_woo_active() ) { $args_woo = array( 'name' => esc_html__( 'WooCommerce Sidebar', 'tripgo'), 'id' => "woo-sidebar", 'description' => esc_html__( 'WooCommerce Sidebar', 'tripgo' ), 'class' => '', 'before_widget' => '<div id="%1$s" class="widget woo_widget %2$s">', 'after_widget' => "</div>", 'before_title' => '<h4 class="widget-title">', 'after_title' => "</h4>", ); register_sidebar( $args_woo ); } } } } return new Tripgo_Widgets();PK M<,];yW' ' $ inc/class-woo-template-functions.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(); /* Single Product */ if ( ! function_exists( 'tripgo_wc_before_main_content' ) ) { function tripgo_wc_before_main_content() { echo '<div class="ova-single-product">'; } } if ( ! function_exists( 'tripgo_wc_after_main_content' ) ) { function tripgo_wc_after_main_content() { echo '</div>'; } } /* Header */ if ( ! function_exists( 'tripgo_wc_before_single_product_header' ) ) { function tripgo_wc_before_single_product_header() { echo '<div class="row_site"> <div class="container_site">'; } } if ( ! function_exists( 'tripgo_wc_after_single_product_header' ) ) { function tripgo_wc_after_single_product_header() { echo '</div> </div>'; } } /* Top Header */ if ( ! function_exists( 'tripgo_wc_before_single_product_top_header' ) ) { function tripgo_wc_before_single_product_top_header() { echo '<div class="single-product-top-header">'; } } if ( ! function_exists( 'tripgo_wc_after_single_product_top_header' ) ) { function tripgo_wc_after_single_product_top_header() { echo '</div>'; } } /* Product Summary Left */ if ( ! function_exists( 'tripgo_wc_before_single_product_summary_left' ) ) { function tripgo_wc_before_single_product_summary_left() { echo '<div class="ova-single-product-summary-left">'; } } if ( ! function_exists( 'tripgo_wc_after_single_product_summary_left' ) ) { function tripgo_wc_after_single_product_summary_left() { echo '</div>'; } } /* Product Summary Right */ if ( ! function_exists( 'tripgo_wc_before_single_product_summary_right' ) ) { function tripgo_wc_before_single_product_summary_right() { echo '<div class="ova-single-product-summary-right">'; } } if ( ! function_exists( 'tripgo_wc_after_single_product_summary_right' ) ) { function tripgo_wc_after_single_product_summary_right() { echo '</div>'; } } /* Title */ if ( ! function_exists( 'tripgo_wc_template_single_title' ) ) { function tripgo_wc_template_single_title( $args ) { wc_get_template( 'rental/loop/title.php', [ 'show_title' => $args['show_title'] ] ); } } /* Location and Review */ if ( ! function_exists( 'tripgo_wc_template_single_location_review' ) ) { function tripgo_wc_template_single_location_review( $args ) { wc_get_template( 'rental/loop/location-review.php', $args ); } } /* Video, Gallery Button + Share Button */ if ( ! function_exists( 'tripgo_wc_template_single_video_gallery' ) ) { function tripgo_wc_template_single_video_gallery( $args ) { wc_get_template( 'rental/loop/video-gallery.php', $args ); } } /* Gallery Slideshow */ if ( ! function_exists( 'tripgo_wc_template_single_slideshow' ) ) { function tripgo_wc_template_single_slideshow( $args ) { wc_get_template( 'rental/loop/gallery-slideshow.php', [ 'show_gallery' => $args['show_gallery_slide'] ] ); } } /* Features */ if ( ! function_exists( 'tripgo_wc_template_single_features' ) ) { function tripgo_wc_template_single_features( $args ) { wc_get_template( 'rental/loop/features.php', [ 'show_features' => $args['show_features'] ] ); } } /* Content */ if ( ! function_exists( 'tripgo_wc_before_single_product_content' ) ) { function tripgo_wc_before_single_product_content() { echo '<div class="row_site"> <div class="container_site">'; } } if ( ! function_exists( 'tripgo_wc_after_single_product_content' ) ) { function tripgo_wc_after_single_product_content() { echo '</div> </div>'; } } /* Related */ if ( ! function_exists( 'tripgo_wc_template_single_product_related' ) ) { function tripgo_wc_template_single_product_related() { wc_get_template( 'rental/loop/related.php' ); } } /* Description */ if ( ! function_exists( 'tripgo_wc_template_single_content' ) ) { function tripgo_wc_template_single_content( $args ) { wc_get_template( 'rental/loop/content.php', [ 'show_description' => $args['show_description'] ] ); } } /* Included/Excluded */ if ( ! function_exists( 'tripgo_wc_template_single_included_excluded' ) ) { function tripgo_wc_template_single_included_excluded( $args ) { wc_get_template( 'rental/loop/included-excluded.php', [ 'show_inc_exc' => $args['show_inc_exc'] ] ); } } /* Plan */ if ( ! function_exists( 'tripgo_wc_template_single_plan' ) ) { function tripgo_wc_template_single_plan( $args ) { wc_get_template( 'rental/loop/plan.php', [ 'show_tour_plan' => $args['show_tour_plan'] ] ); } } /* Map */ if ( ! function_exists( 'tripgo_wc_template_single_map' ) ) { function tripgo_wc_template_single_map( $args ) { wc_get_template( 'rental/loop/map.php', [ 'show_map' => $args['show_map'] ] ); } } /* Map */ if ( ! function_exists( 'tripgo_wc_template_single_review' ) ) { function tripgo_wc_template_single_review( $args ) { wc_get_template( 'rental/loop/review.php', [ 'show_reviews' => $args['show_reviews'] ] ); } } /* Form */ if ( ! function_exists( 'tripgo_wc_template_single_forms' ) ) { function tripgo_wc_template_single_forms( $args ) { wc_get_template( 'rental/loop/forms.php', [ 'show_form' => $args['show_form'] ] ); } } /* Table Price */ if ( ! function_exists( 'tripgo_wc_template_single_table_price' ) ) { function tripgo_wc_template_single_table_price( $args ) { wc_get_template( 'rental/loop/table_price.php', [ 'show_table_price' => $args['show_table_price'] ] ); } } /* Unavailable time */ if ( ! function_exists( 'tripgo_wc_template_single_unavailable_time' ) ) { function tripgo_wc_template_single_unavailable_time() { wc_get_template( 'rental/loop/unavailable_time.php' ); } } /* Content Product */ if ( ! function_exists( 'tripgo_template_wc_loop_item' ) ) { /** * Get after head product price in the loop. */ function tripgo_template_wc_loop_item() { wc_get_template( 'rental/content-item-product.php' ); } } /* Booking form */ // Dates if ( ! function_exists( 'tripgo_booking_form_dates' ) ) { function tripgo_booking_form_dates( $args ) { wc_get_template( 'rental/loop/fields/dates.php', $args ); } } // Guests if ( ! function_exists( 'tripgo_booking_form_guests' ) ) { function tripgo_booking_form_guests( $args ) { wc_get_template( 'rental/loop/fields/guests.php', $args ); } } // Extra Fields if ( ! function_exists( 'tripgo_booking_form_extra_fields' ) ) { function tripgo_booking_form_extra_fields( $args ) { wc_get_template( 'rental/loop/fields/extra_fields.php', $args ); } } // Quantity if ( ! function_exists( 'tripgo_booking_form_quantity' ) ) { function tripgo_booking_form_quantity( $args ) { wc_get_template( 'rental/loop/fields/quantity.php', $args ); } } // Resources if ( ! function_exists( 'tripgo_booking_form_resources' ) ) { function tripgo_booking_form_resources( $args ) { wc_get_template( 'rental/loop/fields/resources.php', $args ); } } // Services if ( ! function_exists( 'tripgo_booking_form_services' ) ) { function tripgo_booking_form_services( $args ) { wc_get_template( 'rental/loop/fields/services.php', $args ); } } // Deposit if ( ! function_exists( 'tripgo_booking_form_deposit' ) ) { function tripgo_booking_form_deposit( $args ) { wc_get_template( 'rental/loop/fields/deposit.php', $args ); } } // Ajax Total if ( ! function_exists( 'tripgo_booking_form_ajax_total' ) ) { function tripgo_booking_form_ajax_total( $args ) { wc_get_template( 'rental/loop/fields/ajax-total.php', $args ); } }PK M<,]�� �1 �1 inc/class-hook.phpnu ��� <?php if (!defined( 'ABSPATH' )) exit; if( !class_exists('Tripgo_Hooks') ){ class Tripgo_Hooks { public function __construct() { // Return HTML for Header add_filter( 'tripgo_render_header', array( $this, 'tripgo_render_header' ) ); // Return HTML for Footer add_filter( 'tripgo_render_footer', array( $this, 'tripgo_render_footer' ) ); /* Get All Header */ add_filter( 'tripgo_list_header', array( $this, 'tripgo_list_header' ) ); /* Get All Footer */ add_filter( 'tripgo_list_footer', array( $this, 'tripgo_list_footer' ) ); /* Define Layout */ add_filter( 'tripgo_define_layout', array( $this, 'tripgo_define_layout' ) ); /* Define Wide */ add_filter( 'tripgo_define_wide_boxed', array( $this, 'tripgo_define_wide_boxed' ) ); /* Get layout */ add_filter( 'tripgo_get_layout', array( $this, 'tripgo_get_layout' ) ); /* Get sidebar */ add_filter( 'tripgo_theme_sidebar', array( $this, 'tripgo_theme_sidebar' ) ); /* Wide or Boxed */ add_filter( 'tripgo_wide_site', array( $this, 'tripgo_wide_site' ) ); /* Get Blog Template */ add_filter( 'tripgo_blog_template', array( $this, 'tripgo_blog_template' ) ); // Comment Form Default Field add_filter( 'comment_form_default_fields', array( $this, 'tripgo_comment_form_default_fields') ); add_filter( 'comment_form_defaults', array( $this, 'tripgo_comment_form_defaults' ) ); // add_filter show Wysiwyg Editor add_filter( 'ova_the_content', 'do_blocks', 9 ); add_filter( 'ova_the_content', 'wptexturize' ); add_filter( 'ova_the_content', 'convert_smilies', 20 ); add_filter( 'ova_the_content', 'wpautop' ); add_filter( 'ova_the_content', 'shortcode_unautop' ); add_filter( 'ova_the_content', 'prepend_attachment' ); add_filter( 'ova_the_content', 'wp_filter_content_tags' ); add_filter( 'ova_the_content', 'wp_replace_insecure_home_url' ); add_filter( 'ova_the_content', 'do_shortcode', 11 ); // Remove Prefix display in Title of archive, category add_filter( 'get_the_archive_title_prefix', array( $this, 'tripgo_get_the_archive_title_prefix' ), 10, 1 ); } public function tripgo_render_header(){ $current_id = tripgo_get_current_id(); // Get header default from customizer $global_header = get_theme_mod('global_header','default'); // Header in Metabox of Post, Page $meta_header = get_post_meta($current_id, 'ova_met_header_version', 'true'); // Header use in post,page if( $current_id != '' && $meta_header != 'global' && $meta_header != '' ){ $header = $meta_header; }else if( tripgo_is_blog_archive() && !tripgo_is_woo_archive() ){ // Header use in blog $header = get_theme_mod('blog_header', 'default'); }else if( tripgo_is_woo_archive() ){ // Header use in Product pages $header = get_theme_mod('woo_archive_header', 'default'); }else if( is_singular('post') ){ // Header use in single post $header = get_theme_mod('single_header', 'default'); } else if( is_singular('product') ){ // Header use in single product $header = get_theme_mod('woo_single_header', 'default'); }else{ // Header use in global $header = $global_header; } $header_split = explode(',', apply_filters( 'tripgo_header_customize', $header, $header )); if ( tripgo_is_elementor_active() && isset( $header_split[1] ) ) { $post_id_header = tripgo_get_id_by_slug( $header_split[1] ); // Check WPML if( function_exists( 'icl_object_id' ) ){ $post_id_header = icl_object_id($post_id_header, 'ova_framework_hf_el', false); if ( ! $post_id_header ) { $post_id_header = tripgo_get_id_by_slug( $header_split[1] ); } } return Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $post_id_header ); }else if ( tripgo_is_elementor_active() && !isset( $header_split[1] ) ) { return get_template_part( 'template-parts/header', $header_split[0] ); }else if ( !tripgo_is_elementor_active() ) { return get_template_part( 'template-parts/header', 'default' ); } } public function tripgo_render_footer(){ $current_id = tripgo_get_current_id(); // Get Footer default from customizer $global_footer = get_theme_mod('global_footer', 'default' ); // Footer in Metabox of Post, Page $meta_footer = get_post_meta( $current_id, 'ova_met_footer_version', 'true' ); if( $current_id != '' && $meta_footer != 'global' && $meta_footer != '' ){ $footer = $meta_footer; }else if( tripgo_is_blog_archive() && !tripgo_is_woo_archive() ){ $footer = get_theme_mod('blog_footer', 'default'); }else if( tripgo_is_woo_archive() ){ // Footer use in Product pages $footer = get_theme_mod('woo_archive_footer', 'default'); }else if( is_singular('post') ){ $footer = get_theme_mod('single_footer', 'default'); }else if( is_singular('product') ){ // Footer use in single product $footer = get_theme_mod('woo_single_footer', 'default'); }else{ $footer = $global_footer; } $footer_split = explode(',', apply_filters( 'tripgo_footer_customize', $footer, $footer )); if ( tripgo_is_elementor_active() && isset( $footer_split[1] ) ) { $post_id_footer = tripgo_get_id_by_slug( $footer_split[1] ); // Check WPML if( function_exists( 'icl_object_id' ) ){ $post_id_footer = icl_object_id($post_id_footer, 'ova_framework_hf_el', false); if ( ! $post_id_footer ) { $post_id_footer = tripgo_get_id_by_slug( $footer_split[1] ); } } return Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $post_id_footer ); }else if ( tripgo_is_elementor_active() && !isset( $footer_split[1] ) ) { get_template_part( 'template-parts/footer', $footer_split[0] ); }else if( !tripgo_is_elementor_active() ){ get_template_part( 'template-parts/footer', 'default' ); } } function tripgo_list_header() { $hf_header_array['default'] = esc_html__( 'Default', 'tripgo' ); if ( ! tripgo_is_elementor_active() ) return $hf_header_array; $args_hf = array( 'post_type' => 'ova_framework_hf_el', 'post_status' => 'publish', 'posts_per_page' => '-1', 'meta_query' => array( array( 'key' => 'hf_options', 'value' => 'header', 'compare' => '=', ), ) ); $hf = get_posts( $args_hf ); foreach ( $hf as $post ) { setup_postdata( $post ); $hf_header_array[ 'ova,'.$post->post_name ] = get_the_title( $post->ID ); } wp_reset_postdata(); return $hf_header_array; } function tripgo_list_footer() { $hf_footer_array['default'] = esc_html__( 'Default', 'tripgo' ); if ( ! tripgo_is_elementor_active() ) return $hf_footer_array; $args_hf = array( 'post_type' => 'ova_framework_hf_el', 'post_status' => 'publish', 'posts_per_page' => '-1', 'meta_query' => array( array( 'key' => 'hf_options', 'value' => 'footer', 'compare' => '=', ), ) ); $hf = get_posts( $args_hf ); foreach ( $hf as $post ) { setup_postdata( $post ); $hf_footer_array[ 'ova,'.$post->post_name ] = get_the_title( $post->ID ); } wp_reset_postdata(); return $hf_footer_array; } function tripgo_define_layout(){ return array( 'layout_1c' => esc_html__('No Sidebar', 'tripgo'), 'layout_2r' => esc_html__('Right Sidebar', 'tripgo'), 'layout_2l' => esc_html__('Left Sidebar', 'tripgo'), ); } function tripgo_get_layout(){ $layout = ''; $width_sidebar = get_theme_mod( 'global_sidebar_width', '320' ); if( is_singular( 'post' ) ){ $layout = get_theme_mod( 'single_layout', 'layout_2r' ); }else if( tripgo_is_blog_archive() ){ $layout = get_theme_mod( 'blog_layout', 'layout_2r' ); }else if( tripgo_is_woo_active() && is_product() ){ $layout = get_theme_mod( 'woo_product_layout', 'woo_layout_1c' ); $width_sidebar = get_theme_mod( 'woo_sidebar_width', '320' ); } else if( tripgo_is_woo_active() && ( is_product_category() || is_product_tag() || is_shop() ) ){ $layout = get_theme_mod( 'woo_archive_layout', 'woo_layout_1c' ); $width_sidebar = get_theme_mod( 'woo_sidebar_width', '320' ); } $current_id = tripgo_get_current_id(); if( $current_id ){ $layout_in_post = get_post_meta( $current_id, 'ova_met_main_layout', true ); if( $layout_in_post != 'global' && $layout_in_post != '' ){ $layout = $layout_in_post; } } // Check if page is posts (settings >> reading >> posts page) if( get_option( 'page_for_posts' ) == $current_id ){ $layout_in_post = get_post_meta( $current_id, 'ova_met_main_layout', true ); if( $layout_in_post == 'global' ){ $layout = get_theme_mod( 'blog_layout', 'layout_2r' ); } } if( isset( $_GET['layout_sidebar'] ) ){ $layout = $_GET['layout_sidebar']; } if( !$layout ){ $layout = get_theme_mod( 'global_layout', 'layout_2r' ); $width_sidebar = get_theme_mod( 'global_sidebar_width', '320' ); } // Check if Woo Sidebar is inactive if( tripgo_is_woo_active() && ( is_product_category() || is_product_tag() || is_shop() ) ){ if( !is_active_sidebar('woo-sidebar') ){ $layout = 'woo_layout_1c'; $width_sidebar = 0; } }else if( tripgo_is_woo_active() && is_product() ){ if( !is_active_sidebar('woo-sidebar') ){ $layout = 'woo_layout_1c'; $width_sidebar = 0; } }else if( !is_active_sidebar('main-sidebar') ){ $layout = 'layout_1c'; $width_sidebar = 0; } return array( $layout, $width_sidebar ); } function tripgo_wide_site(){ $current_id = tripgo_get_current_id(); $width_site = get_post_meta( $current_id, 'ova_met_wide_site', true ); if( $current_id && $width_site != 'global' ){ $width = $width_site; }else{ $width = get_theme_mod( 'global_wide_site', 'wide' ); } return $width; } function tripgo_theme_sidebar(){ $layout_sidebar = apply_filters( 'tripgo_get_layout', '' ); return $layout_sidebar[0]; } function tripgo_define_wide_boxed(){ return array( 'wide' => esc_html__('Wide', 'tripgo'), 'boxed' => esc_html__('Boxed', 'tripgo'), ); } function tripgo_blog_template(){ $blog_template = get_theme_mod( 'blog_template', 'default' ); if( isset( $_GET['blog_template'] ) ){ $blog_template = $_GET['blog_template']; } return $blog_template; } function tripgo_comment_form_defaults( $defaults ){ $defaults['comment_field'] = sprintf( '<p class="comment-form-comment"> %s</p>', '<textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required="required" placeholder="'.esc_attr__( 'Comment', 'tripgo' ).'"></textarea>' ); return $defaults; } function tripgo_comment_form_default_fields( $fields ){ $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $html_req = ( $req ? " required='required'" : '' ); $html5 = true; $fields['author'] = sprintf( '<p class="comment-form-author">%s</p>', sprintf( '<input id="author" name="author" type="text" value="%s" placeholder="'.esc_attr__( 'Name', 'tripgo' ).'" size="30" maxlength="245"%s />', esc_attr( $commenter['comment_author'] ), $html_req ) ); $fields['email'] = sprintf( '<p class="comment-form-email"> %s</p>', sprintf( '<input id="email" name="email" %s value="%s" size="30" maxlength="100" placeholder="'.esc_attr__( 'Email', 'tripgo' ).'" aria-describedby="email-notes"%s />', ( $html5 ? 'type="email"' : 'type="text"' ), esc_attr( $commenter['comment_author_email'] ), $html_req ) ); $fields['url'] = sprintf( '<p class="comment-form-url">%s</p>', sprintf( '<input id="url" name="url" %s value="%s" size="30" maxlength="200" placeholder="'.esc_attr__( 'Website', 'tripgo' ).'" />', ( $html5 ? 'type="url"' : 'type="text"' ), esc_attr( $commenter['comment_author_url'] ) ) ); return $fields; } function tripgo_get_the_archive_title_prefix( $prefix ){ return ''; } } } new Tripgo_Hooks();PK M<,]m�(�� � inc/class-woo-template-hooks.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(); add_action( 'tripgo_wc_before_main_content', 'tripgo_wc_before_main_content', 10 ); add_action( 'tripgo_wc_after_main_content', 'tripgo_wc_after_main_content', 10 ); // Header add_action( 'tripgo_wc_before_single_product_header', 'tripgo_wc_before_single_product_header', 5 ); add_action( 'tripgo_wc_after_single_product_header', 'tripgo_wc_after_single_product_header', 5 ); add_action( 'tripgo_wc_before_single_product_top_header', 'tripgo_wc_before_single_product_top_header', 5 ); add_action( 'tripgo_wc_after_single_product_top_header', 'tripgo_wc_after_single_product_top_header', 5 ); add_action( 'tripgo_wc_single_product_top_header', 'tripgo_wc_template_single_title', 10 ); add_action( 'tripgo_wc_single_product_top_header', 'tripgo_wc_template_single_video_gallery', 10 ); add_action( 'tripgo_wc_single_product_header', 'tripgo_wc_template_single_location_review', 10 ); add_action( 'tripgo_wc_single_product_header', 'tripgo_wc_template_single_slideshow', 10 ); add_action( 'tripgo_wc_single_product_header', 'tripgo_wc_template_single_features', 10 ); // Content add_action( 'tripgo_wc_before_single_product_content', 'tripgo_wc_before_single_product_content', 10 ); add_action( 'tripgo_wc_before_single_product_summary_left', 'tripgo_wc_before_single_product_summary_left', 15 ); add_action( 'tripgo_wc_single_product_summary_left', 'tripgo_wc_template_single_content', 20 ); add_action( 'tripgo_wc_single_product_summary_left', 'tripgo_wc_template_single_included_excluded', 20 ); add_action( 'tripgo_wc_single_product_summary_left', 'tripgo_wc_template_single_plan', 20 ); add_action( 'tripgo_wc_single_product_summary_left', 'tripgo_wc_template_single_map', 20 ); add_action( 'tripgo_wc_single_product_summary_left', 'tripgo_wc_template_single_review', 20 ); add_action( 'tripgo_wc_after_single_product_summary_left', 'tripgo_wc_after_single_product_summary_left', 15 ); add_action( 'tripgo_wc_before_single_product_summary_right', 'tripgo_wc_before_single_product_summary_right', 15 ); add_action( 'tripgo_wc_single_product_summary_right', 'tripgo_wc_template_single_forms', 20 ); add_action( 'tripgo_wc_single_product_summary_right', 'tripgo_wc_template_single_table_price', 20 ); add_action( 'tripgo_wc_after_single_product_summary_right', 'tripgo_wc_after_single_product_summary_right', 15 ); add_action( 'tripgo_wc_after_single_product_content', 'tripgo_wc_after_single_product_content', 10 ); // Related add_action( 'tripgo_wc_single_product_related', 'tripgo_wc_template_single_product_related', 20 ); /** * Tripgo Product Loop Items. * @see tripgo_wc_loop_item() */ add_action( 'tripgo_wc_loop_item', 'tripgo_template_wc_loop_item', 10 ); // Booking form add_action( 'tripgo_booking_form', 'tripgo_booking_form_dates', 5 ); add_action( 'tripgo_booking_form', 'tripgo_booking_form_guests', 5 ); add_action( 'tripgo_booking_form', 'tripgo_booking_form_extra_fields', 10 ); add_action( 'tripgo_booking_form', 'tripgo_booking_form_quantity', 10 ); add_action( 'tripgo_booking_form', 'tripgo_booking_form_resources', 15 ); add_action( 'tripgo_booking_form', 'tripgo_booking_form_services', 15 ); add_action( 'tripgo_booking_form', 'tripgo_booking_form_deposit', 20 ); add_action( 'tripgo_booking_form', 'tripgo_booking_form_ajax_total', 25 );PK M<,]�e��B �B inc/functions.phpnu ��� <?php if (!defined( 'ABSPATH' )) exit; // Get current ID of post/page, etc if( !function_exists( 'tripgo_get_current_id' )): function tripgo_get_current_id(){ $current_page_id = ''; // Get The Page ID You Need if(class_exists("woocommerce")) { if( is_shop() ){ ///|| is_product_category() || is_product_tag()) { $current_page_id = get_option ( 'woocommerce_shop_page_id' ); }elseif(is_cart()) { $current_page_id = get_option ( 'woocommerce_cart_page_id' ); }elseif(is_checkout()){ $current_page_id = get_option ( 'woocommerce_checkout_page_id' ); }elseif(is_account_page()){ $current_page_id = get_option ( 'woocommerce_myaccount_page_id' ); }elseif(is_view_order_page()){ $current_page_id = get_option ( 'woocommerce_view_order_page_id' ); } } if($current_page_id=='') { if ( is_home () && is_front_page () ) { $current_page_id = ''; } elseif ( is_home () ) { $current_page_id = get_option ( 'page_for_posts' ); } elseif ( is_search () || is_category () || is_tag () || is_tax () || is_archive() ) { $current_page_id = ''; } elseif ( !is_404 () ) { $current_page_id = get_the_id(); } } return $current_page_id; } endif; if (!function_exists('tripgo_is_elementor_active')) { function tripgo_is_elementor_active(){ return did_action( 'elementor/loaded' ); } } if (!function_exists('tripgo_is_woo_active')) { function tripgo_is_woo_active(){ return class_exists('woocommerce'); } } if (!function_exists('tripgo_is_blog_archive')) { function tripgo_is_blog_archive() { return (is_home() && is_front_page()) || is_archive() || is_category() || is_tag() || is_home(); } } if (!function_exists('tripgo_is_woo_archive')) { function tripgo_is_woo_archive() { return is_post_type_archive('product') || is_tax('product_cat') || is_tax('product_tag'); } } /* Get ID from Slug of Header Footer Builder - Post Type */ function tripgo_get_id_by_slug( $page_slug ) { $page = get_page_by_path( $page_slug, OBJECT, 'ova_framework_hf_el' ) ; if ($page) { return $page->ID; } else { return null; } } function tripgo_custom_text ($content = "",$limit = 15) { $content = explode(' ', $content, $limit); if (count($content)>=$limit) { array_pop($content); $content = implode(" ",$content).'...'; } else { $content = implode(" ",$content); } $content = preg_replace('`[[^]]*]`','',$content); return strip_tags( $content ); } /** * Google Font sanitization * * @param string JSON string to be sanitized * @return string Sanitized input */ if ( ! function_exists( 'tripgo_google_font_sanitization' ) ) { function tripgo_google_font_sanitization( $input ) { $val = json_decode( $input, true ); if( is_array( $val ) ) { foreach ( $val as $key => $value ) { $val[$key] = sanitize_text_field( $value ); } $input = json_encode( $val ); } else { $input = json_encode( sanitize_text_field( $val ) ); } return $input; } } /* Default Primary Font in Customize */ if ( ! function_exists( 'tripgo_default_primary_font' ) ) { function tripgo_default_primary_font() { $customizer_defaults = json_encode( array( 'font' => 'HK Grotesk', 'regularweight' => '300,400,500,600,700,800,900', 'category' => 'serif' ) ); return $customizer_defaults; } } if ( ! function_exists( 'tripgo_woo_sidebar' ) ) { function tripgo_woo_sidebar(){ if( class_exists('woocommerce') && is_product() ){ return get_theme_mod( 'woo_product_layout', 'woo_layout_1c' ); }else{ return get_theme_mod( 'woo_archive_layout', 'woo_layout_1c' ); } } } if( !function_exists( 'tripgo_blog_show_media' ) ){ function tripgo_blog_show_media(){ $show_media = get_theme_mod( 'blog_archive_show_media', 'yes' ); return isset( $_GET['show_media'] ) ? sanitize_text_field( $_GET['show_media'] ) : $show_media; } } if( !function_exists( 'tripgo_blog_show_title' ) ){ function tripgo_blog_show_title(){ $show_title = get_theme_mod( 'blog_archive_show_title', 'yes' ); return isset( $_GET['show_title'] ) ? sanitize_text_field( $_GET['show_title'] ) : $show_title; } } if( !function_exists( 'tripgo_blog_show_date' ) ){ function tripgo_blog_show_date(){ $show_date = get_theme_mod( 'blog_archive_show_date', 'yes' ); return isset( $_GET['show_date'] ) ? sanitize_text_field( $_GET['show_date'] ) : $show_date; } } if( !function_exists( 'tripgo_blog_show_cat' ) ){ function tripgo_blog_show_cat(){ $show_cat = get_theme_mod( 'blog_archive_show_cat', 'yes' ); return isset( $_GET['show_cat'] ) ? sanitize_text_field( $_GET['show_cat'] ) : $show_cat; } } if( !function_exists( 'tripgo_blog_show_author' ) ){ function tripgo_blog_show_author(){ $show_author = get_theme_mod( 'blog_archive_show_author', 'yes' ); return isset( $_GET['show_author'] ) ? sanitize_text_field( $_GET['show_author'] ) : $show_author; } } if( !function_exists( 'tripgo_blog_show_comment' ) ){ function tripgo_blog_show_comment(){ $show_comment = get_theme_mod( 'blog_archive_show_comment', 'yes' ); return isset( $_GET['show_comment'] ) ? sanitize_text_field( $_GET['show_comment'] ) : $show_comment; } } if( !function_exists( 'tripgo_blog_show_excerpt' ) ){ function tripgo_blog_show_excerpt(){ $show_excerpt = get_theme_mod( 'blog_archive_show_excerpt', 'yes' ); return isset( $_GET['show_excerpt'] ) ? sanitize_text_field( $_GET['show_excerpt'] ) : $show_excerpt; } } if( !function_exists( 'tripgo_blog_show_readmore' ) ){ function tripgo_blog_show_readmore(){ $show_readmore = get_theme_mod( 'blog_archive_show_readmore', 'yes' ); return isset( $_GET['show_readmore'] ) ? sanitize_text_field( $_GET['show_readmore'] ) : $show_readmore; } } if( !function_exists( 'tripgo_post_show_media' ) ){ function tripgo_post_show_media(){ $show_media = get_theme_mod( 'blog_single_show_media', 'yes' ); return isset( $_GET['show_media'] ) ? sanitize_text_field( $_GET['show_media'] ) : $show_media; } } if( !function_exists( 'tripgo_post_show_title' ) ){ function tripgo_post_show_title(){ $show_title = get_theme_mod( 'blog_single_show_title', 'yes' ); return isset( $_GET['show_title'] ) ? sanitize_text_field( $_GET['show_title'] ) : $show_title; } } if( !function_exists( 'tripgo_post_show_date' ) ){ function tripgo_post_show_date(){ $show_date = get_theme_mod( 'blog_single_show_date', 'yes' ); return isset( $_GET['show_date'] ) ? sanitize_text_field( $_GET['show_date'] ) : $show_date; } } if( !function_exists( 'tripgo_post_show_cat' ) ){ function tripgo_post_show_cat(){ $show_cat = get_theme_mod( 'blog_single_show_cat', 'yes' ); return isset( $_GET['show_cat'] ) ? sanitize_text_field( $_GET['show_cat'] ) : $show_cat; } } if( !function_exists( 'tripgo_post_show_author' ) ){ function tripgo_post_show_author(){ $show_author = get_theme_mod( 'blog_single_show_author', 'yes' ); return isset( $_GET['show_author'] ) ? sanitize_text_field( $_GET['show_author'] ) : $show_author; } } if( !function_exists( 'tripgo_post_show_comment' ) ){ function tripgo_post_show_comment(){ $show_comment = get_theme_mod( 'blog_single_show_comment', 'yes' ); return isset( $_GET['show_comment'] ) ? sanitize_text_field( $_GET['show_comment'] ) : $show_comment; } } if( !function_exists( 'tripgo_post_show_content' ) ){ function tripgo_post_show_content(){ $show_content = get_theme_mod( 'blog_single_show_content', 'yes' ); return isset( $_GET['show_content'] ) ? $_GET['show_content'] : $show_content; } } if( !function_exists( 'tripgo_post_show_tag' ) ){ function tripgo_post_show_tag(){ $show_tag = get_theme_mod( 'blog_single_show_tag', 'yes' ); return isset( $_GET['show_tag'] ) ? sanitize_text_field( $_GET['show_tag'] ) : $show_tag; } } if( !function_exists( 'tripgo_post_show_share_social_icon' ) ){ function tripgo_post_show_share_social_icon(){ $show_share_social_icon = get_theme_mod( 'blog_single_show_share_social_icon', 'yes' ); return isset( $_GET['show_share_social_icon'] ) ? sanitize_text_field( $_GET['show_share_social_icon'] ) : $show_share_social_icon; } } if( !function_exists( 'tripgo_post_show_next_prev_post' ) ){ function tripgo_post_show_next_prev_post(){ $show_next_prev_post = get_theme_mod( 'blog_single_show_next_prev_post', 'yes' ); return isset( $_GET['show_next_prev_post'] ) ? sanitize_text_field( $_GET['show_next_prev_post'] ) : $show_next_prev_post; } } if( !function_exists( 'tripgo_post_show_leave_a_reply' ) ){ function tripgo_post_show_leave_a_reply(){ $show_leave_a_reply = get_theme_mod( 'blog_single_show_leave_a_reply', 'yes' ); return isset( $_GET['show_leave_a_reply'] ) ? $_GET['show_leave_a_reply'] : $show_leave_a_reply; } } /* Get Gallery ids Product */ if ( !function_exists( 'tripgo_get_gallery_ids' ) ) { function tripgo_get_gallery_ids( $product_id ) { $product = wc_get_product( $product_id ); if ( $product ) { $arr_image_ids = array(); $product_image_id = $product->get_image_id(); if ( $product_image_id ) { array_push( $arr_image_ids, $product_image_id ); } $product_gallery_ids = $product->get_gallery_image_ids(); if ( $product_gallery_ids && is_array( $product_gallery_ids ) ) { $arr_image_ids = array_merge( $arr_image_ids, $product_gallery_ids ); } return $arr_image_ids; } return false; } } /* Get Price Product */ if ( !function_exists( 'tripgo_get_price_product' ) ) { function tripgo_get_price_product( $product_id ) { $product = wc_get_product( $product_id ); if ( ! $product ) { return array( 'regular_price' => 0, 'sale_price' => 0, ); } $regular_price = $sale_price = 0; if ( $product->is_on_sale() && $product->get_sale_price() ) { $regular_price = $product->get_sale_price(); $sale_price = $product->get_regular_price(); } else { $regular_price = $product->get_regular_price(); } $result = array( 'regular_price' => $regular_price, 'sale_price' => $sale_price, ); return $result; } } // Get Price - Multi Currency if ( ! function_exists( 'ovabrw_wc_price' ) ) { function ovabrw_wc_price( $price = null, $args = array(), $convert = true ) { $new_price = $price; if ( ! $price ) $new_price = 0; do_action( 'ovabrw_wc_price_before', $price, $args, $convert ); $current_currency = isset( $args['currency'] ) && $args['currency'] ? $args['currency'] : false; // CURCY - Multi Currency for WooCommerce // WooCommerce Multilingual & Multicurrency if ( is_plugin_active( 'woo-multi-currency/woo-multi-currency.php' ) || is_plugin_active( 'woocommerce-multi-currency/woocommerce-multi-currency.php' ) ) { $new_price = wmc_get_price( $price, $current_currency ); } elseif ( is_plugin_active( 'woocommerce-multilingual/wpml-woocommerce.php' ) ) { if ( $convert ) { // WPML multi currency global $woocommerce_wpml; if ( $woocommerce_wpml && is_object( $woocommerce_wpml ) ) { if ( wp_doing_ajax() ) add_filter( 'wcml_load_multi_currency_in_ajax', '__return_true' ); $multi_currency = $woocommerce_wpml->get_multi_currency(); $currency_options = $woocommerce_wpml->get_setting( 'currency_options' ); $WMCP = new WCML_Multi_Currency_Prices( $multi_currency, $currency_options ); $new_price = $WMCP->convert_price_amount( $price, $current_currency ); } } } else { // nothing } do_action( 'ovabrw_wc_price_after', $price, $args, $convert ); return apply_filters( 'ovabrw_wc_price', wc_price( $new_price, $args ), $price, $args, $convert ); } } // Convert Price - Multi Currency if ( ! function_exists( 'ovabrw_convert_price' ) ) { function ovabrw_convert_price( $price = null, $args = array(), $convert = true ) { $new_price = $price; if ( ! $price ) $new_price = 0; do_action( 'ovabrw_convert_price_before', $price, $args, $convert ); $current_currency = isset( $args['currency'] ) && $args['currency'] ? $args['currency'] : false; // CURCY - Multi Currency for WooCommerce // WooCommerce Multilingual & Multicurrency if ( is_plugin_active( 'woo-multi-currency/woo-multi-currency.php' ) || is_plugin_active( 'woocommerce-multi-currency/woocommerce-multi-currency.php' ) ) { $new_price = wmc_get_price( $price, $current_currency ); } elseif ( is_plugin_active( 'woocommerce-multilingual/wpml-woocommerce.php' ) ) { if ( $convert ) { // WPML multi currency global $woocommerce_wpml; if ( $woocommerce_wpml && is_object( $woocommerce_wpml ) ) { if ( wp_doing_ajax() ) add_filter( 'wcml_load_multi_currency_in_ajax', '__return_true' ); $multi_currency = $woocommerce_wpml->get_multi_currency(); $currency_options = $woocommerce_wpml->get_setting( 'currency_options' ); $WMCP = new WCML_Multi_Currency_Prices( $multi_currency, $currency_options ); $new_price = $WMCP->convert_price_amount( $price, $current_currency ); } } } else { // nothing } do_action( 'ovabrw_convert_price_after', $price, $args, $convert ); return apply_filters( 'ovabrw_convert_price', $new_price, $price, $args, $convert ); } } // Convert Price in Admin - Multi Currency if ( ! function_exists( 'ovabrw_convert_price_in_admin' ) ) { function ovabrw_convert_price_in_admin( $price = null, $currency_code = '' ) { $new_price = $price; if ( ! $price ) $new_price = 0; if ( is_admin() && ( is_plugin_active( 'woo-multi-currency/woo-multi-currency.php' ) || is_plugin_active( 'woocommerce-multi-currency/woocommerce-multi-currency.php' ) ) ) { $setting = ''; if ( is_plugin_active( 'woo-multi-currency/woo-multi-currency.php' ) ) { $setting = WOOMULTI_CURRENCY_F_Data::get_ins(); } if ( is_plugin_active( 'woocommerce-multi-currency/woocommerce-multi-currency.php' ) ) { $setting = WOOMULTI_CURRENCY_Data::get_ins(); } if ( ! empty( $setting ) && is_object( $setting ) ) { /*Check currency*/ $selected_currencies = $setting->get_list_currencies(); $current_currency = $setting->get_current_currency(); if ( ! $currency_code || $currency_code === $current_currency ) { return $new_price; } if ( $new_price ) { if ( $currency_code && isset( $selected_currencies[ $currency_code ] ) ) { $new_price = $price * (float) $selected_currencies[ $currency_code ]['rate']; } else { $new_price = $price * (float) $selected_currencies[ $current_currency ]['rate']; } } } } return apply_filters( 'ovabrw_convert_price_in_admin', $new_price, $price, $currency_code ); } } // Conver number to hours if ( ! function_exists( 'ovabrw_convert_number_to_hours' ) ) { function ovabrw_convert_number_to_hours( $number = '' ) { if ( ! $number ) return false; $hours = floor( (float)$number ); return absint( $hours ); } } // Conver number to minutes if ( ! function_exists( 'ovabrw_convert_number_to_minutes' ) ) { function ovabrw_convert_number_to_minutes( $number = '' ) { if ( ! $number ) return false; $hours = floor( (float)$number ); $minutes = round( ( $number - $hours ) * 60 ); return absint( $minutes ); } }PK M<,]��� � inc/class-customize.phpnu ��� <?php if (!defined( 'ABSPATH' )) exit; if (!class_exists( 'Tripgo_Customize' )){ class Tripgo_Customize { public function __construct() { add_action( 'customize_register', array( $this, 'tripgo_customize_register' ) ); } public function tripgo_customize_register($wp_customize) { $this->tripgo_init_remove_setting( $wp_customize ); $this->tripgo_init_ova_typography( $wp_customize ); $this->tripgo_init_ova_color( $wp_customize ); $this->tripgo_init_ova_layout( $wp_customize ); $this->tripgo_init_ova_header( $wp_customize ); $this->tripgo_init_ova_footer( $wp_customize ); $this->tripgo_init_ova_blog( $wp_customize ); if( tripgo_is_woo_active() ){ $this->tripgo_init_ova_tour( $wp_customize ); $this->tripgo_init_ova_woo( $wp_customize ); } do_action( 'tripgo_customize_register', $wp_customize ); } public function tripgo_init_remove_setting( $wp_customize ){ /* Remove Colors & Header Image Customize */ $wp_customize->remove_section('colors'); $wp_customize->remove_section('header_image'); $wp_customize->add_setting( 'logo', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo', array( 'label' => esc_html__( 'Logo Default', 'tripgo' ), 'section' => 'title_tagline', 'settings' => 'logo' ))); } /* Typo */ public function tripgo_init_ova_typography($wp_customize){ /* Body Pane ******************************/ $wp_customize->add_section( 'typo_general' , array( 'title' => esc_html__( 'Typography', 'tripgo' ), 'priority' => 1, // 'panel' => 'typo_panel', ) ); /* General Typo */ $wp_customize->add_setting( 'general_heading', array( 'default' => '', 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); /* Message */ $wp_customize->add_setting( 'text_typo_message', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new Tripgo_Customize_Control_Heading( $wp_customize, 'text_typo_message', array( 'label' => esc_html__('Text Font','tripgo'), 'section' => 'typo_general', 'settings' => 'text_typo_message', ) ) ); /* Font Size */ $wp_customize->add_setting( 'general_font_size', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '16px', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('general_font_size', array( 'label' => esc_html__('Font Size','tripgo'), 'description' => esc_html__('Example: 16px, 1.2em','tripgo'), 'section' => 'typo_general', 'settings' => 'general_font_size', 'type' =>'text' )); /* Line Height */ $wp_customize->add_setting( 'general_line_height', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '1.63em', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('general_line_height', array( 'label' => esc_html__('Line height','tripgo'), 'description' => esc_html__('Recommend use em. Example: 1.6em, 23px','tripgo'), 'section' => 'typo_general', 'settings' => 'general_line_height', 'type' =>'text' )); /* Letter Space */ $wp_customize->add_setting( 'general_letter_space', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '0px', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('general_letter_space', array( 'label' => esc_html__('Letter Spacing','tripgo'), 'description' => esc_html__('Example: 0px, 0.5em','tripgo'), 'section' => 'typo_general', 'settings' => 'general_letter_space', 'type' =>'text' )); $wp_customize->add_control( new Tripgo_Customize_Control_Heading( $wp_customize, 'general_heading', array( 'label' => esc_html__('Primary Font','tripgo'), 'section' => 'typo_general', 'settings' => 'general_heading', ) ) ); /* General Font */ $wp_customize->add_setting( 'primary_font', array( 'default' => tripgo_default_primary_font(), 'sanitize_callback' => 'tripgo_google_font_sanitization' ) ); $wp_customize->add_control( new Tripgo_Google_Font_Select_Custom_Control( $wp_customize, 'primary_font', array( 'label' => esc_html__( 'Primary Font', 'tripgo' ), 'section' => 'typo_general', 'input_attrs' => array( 'font_count' => 'all', 'orderby' => 'popular', ), ) ) ); /* Custom Font */ /* Message */ $wp_customize->add_setting( 'custom_font_message', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new Tripgo_Customize_Control_Heading( $wp_customize, 'custom_font_message', array( 'label' => esc_html__('Custom Font','tripgo'), 'section' => 'typo_general', 'settings' => 'custom_font_message', ) ) ); $wp_customize->add_control( new Tripgo_Customize_Control_Heading( $wp_customize, 'custom_font_message', array( 'label' => esc_html__('Custom Font','tripgo'), 'section' => 'typo_general', 'settings' => 'custom_font_message', ) ) ); $wp_customize->add_setting( 'ova_custom_font', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '["HK Grotesk", "300:400:500:600:700:800:900"]', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('ova_custom_font', array( 'label' => esc_html__('Custom Font','tripgo'), 'description' => esc_html__('Step 1: Insert font-face in style.css file: Refer https://www.w3schools.com/cssref/css3_pr_font-face_rule.asp. Step 2: Insert font-family and font-weight like format: ["Perpetua", "Regular:Bold:Italic:Light"] | ["Name-Font", "Regular:Bold:Italic:Light"]. Step 3: Refresh customize page to display new font in dropdown font field.','tripgo'), 'section' => 'typo_general', 'settings' => 'ova_custom_font', 'type' =>'textarea' )); } /* Color */ public function tripgo_init_ova_color( $wp_customize ){ /* Body Pane ******************************/ $wp_customize->add_section( 'color_section' , array( 'title' => esc_html__( 'Color', 'tripgo' ), 'priority' => 2, ) ); $wp_customize->add_setting( 'primary_color', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'transport' => 'refresh', // or postMessage 'default' => '#FD4C5C', 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'primary_color', array( 'label' => esc_html__("Primary",'tripgo'), 'section' => 'color_section', 'settings' => 'primary_color', ) ) ); $wp_customize->add_setting( 'primary_color_hover', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'transport' => 'refresh', // or postMessage 'default' => '#E64251', 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'primary_color_hover', array( 'label' => esc_html__("Primary Hover",'tripgo'), 'section' => 'color_section', 'settings' => 'primary_color_hover', ) ) ); $wp_customize->add_setting( 'secondary_color', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '#00BB98', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'secondary_color', array( 'label' => esc_html__("Secondary",'tripgo'), 'section' => 'color_section', 'settings' => 'secondary_color', ) ) ); $wp_customize->add_setting( 'secondary_color_hover', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '#05977C', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'secondary_color_hover', array( 'label' => esc_html__("Secondary Hover",'tripgo'), 'section' => 'color_section', 'settings' => 'secondary_color_hover', ) ) ); $wp_customize->add_setting( 'heading_color', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '#111B19', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'heading_color', array( 'label' => esc_html__("Heading",'tripgo'), 'section' => 'color_section', 'settings' => 'heading_color', ) ) ); $wp_customize->add_setting( 'text_color', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '#444444', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'text_color', array( 'label' => esc_html__("Text",'tripgo'), 'section' => 'color_section', 'settings' => 'text_color', ) ) ); $wp_customize->add_setting( 'light_color', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '#999999', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'light_color', array( 'label' => esc_html__("Light",'tripgo'), 'section' => 'color_section', 'settings' => 'light_color', ) ) ); $wp_customize->add_setting( 'border_color', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '#E6E6E6', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'border_color', array( 'label' => esc_html__("Border",'tripgo'), 'section' => 'color_section', 'settings' => 'border_color', ) ) ); $wp_customize->add_setting( 'first_background', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '#F5F5F5', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'first_background', array( 'label' => esc_html__("First Background",'tripgo'), 'section' => 'color_section', 'settings' => 'first_background', ) ) ); $wp_customize->add_setting( 'second_background', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '#F2FBFA', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'second_background', array( 'label' => esc_html__("Second Background",'tripgo'), 'section' => 'color_section', 'settings' => 'second_background', ) ) ); $wp_customize->add_setting( 'third_background', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '#1A1A3D', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'third_background', array( 'label' => esc_html__("Third Background",'tripgo'), 'section' => 'color_section', 'settings' => 'third_background', ) ) ); } /* Layout */ public function tripgo_init_ova_layout( $wp_customize ){ $wp_customize->add_section( 'layout_section' , array( 'title' => esc_html__( 'Layout', 'tripgo' ), 'priority' => 2, ) ); $wp_customize->add_setting( 'global_boxed_container_width', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '1290', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('global_boxed_container_width', array( 'label' => esc_html__('Container (px)','tripgo'), 'section' => 'layout_section', 'settings' => 'global_boxed_container_width', 'type' =>'number', 'default' => '1290' )); $wp_customize->add_setting( 'global_layout', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'layout_2r', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('global_layout', array( 'label' => esc_html__('Layout','tripgo'), 'section' => 'layout_section', 'settings' => 'global_layout', 'type' =>'select', 'choices' => apply_filters( 'tripgo_define_layout', '' ) )); $wp_customize->add_setting( 'global_sidebar_width', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '320', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('global_sidebar_width', array( 'label' => esc_html__('Sidebar Width (px)','tripgo'), 'section' => 'layout_section', 'settings' => 'global_sidebar_width', 'type' =>'number' )); $wp_customize->add_setting( 'global_wide_site', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'wide', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('global_wide_site', array( 'label' => esc_html__('Wide Site','tripgo'), 'section' => 'layout_section', 'settings' => 'global_wide_site', 'type' =>'select', 'choices' => apply_filters('tripgo_define_wide_boxed', '') )); $wp_customize->add_setting( 'global_boxed_offset', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '20', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('global_boxed_offset', array( 'label' => esc_html__('Boxed Offset (px)','tripgo'), 'section' => 'layout_section', 'settings' => 'global_boxed_offset', 'type' =>'number', 'default' => '20' )); } /* Header */ public function tripgo_init_ova_header( $wp_customize ){ $wp_customize->add_section( 'header_section' , array( 'title' => esc_html__( 'Header', 'tripgo' ), 'priority' => 3, ) ); $wp_customize->add_setting( 'global_header', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'default', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('global_header', array( 'label' => esc_html__('Header Default','tripgo'), 'description' => esc_html__('This isn\'t effect in Blog' ,'tripgo'), 'section' => 'header_section', 'settings' => 'global_header', 'type' =>'select', 'choices' => apply_filters('tripgo_list_header', '') )); } /* Footer */ public function tripgo_init_ova_footer( $wp_customize ){ $wp_customize->add_section( 'footer_section' , array( 'title' => esc_html__( 'Footer', 'tripgo' ), 'priority' => 4, ) ); $wp_customize->add_setting( 'global_footer', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'default', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('global_footer', array( 'label' => esc_html__('Footer Default','tripgo'), 'description' => esc_html__('This isn\'t effect in Blog' ,'tripgo'), 'section' => 'footer_section', 'settings' => 'global_footer', 'type' =>'select', 'choices' => apply_filters('tripgo_list_footer', '') )); } /* Blog */ public function tripgo_init_ova_blog( $wp_customize ){ $wp_customize->add_panel( 'blog_panel', array( 'title' => esc_html__( 'Blog', 'tripgo' ), 'priority' => 5, ) ); $wp_customize->add_section( 'blog_section' , array( 'title' => esc_html__( 'Archive', 'tripgo' ), 'priority' => 30, 'panel' => 'blog_panel', ) ); $wp_customize->add_setting( 'blog_template', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'default', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_template', array( 'label' => esc_html__('Type','tripgo'), 'section' => 'blog_section', 'settings' => 'blog_template', 'type' =>'select', 'choices' => array( 'default' => esc_html__('Default', 'tripgo'), 'grid' => esc_html__('Grid', 'tripgo'), 'masonry' => esc_html__('Masonry', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_archive_show_media', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_archive_show_media', array( 'label' => esc_html__('Show Media','tripgo'), 'section' => 'blog_section', 'settings' => 'blog_archive_show_media', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_archive_show_title', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_archive_show_title', array( 'label' => esc_html__('Show Title','tripgo'), 'section' => 'blog_section', 'settings' => 'blog_archive_show_title', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_archive_show_date', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_archive_show_date', array( 'label' => esc_html__('Show Date','tripgo'), 'section' => 'blog_section', 'settings' => 'blog_archive_show_date', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_archive_show_cat', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_archive_show_cat', array( 'label' => esc_html__('Show Category','tripgo'), 'section' => 'blog_section', 'settings' => 'blog_archive_show_cat', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_archive_show_author', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'no', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_archive_show_author', array( 'label' => esc_html__('Show Author','tripgo'), 'section' => 'blog_section', 'settings' => 'blog_archive_show_author', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_archive_show_comment', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_archive_show_comment', array( 'label' => esc_html__('Show Comment','tripgo'), 'section' => 'blog_section', 'settings' => 'blog_archive_show_comment', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_archive_show_excerpt', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_archive_show_excerpt', array( 'label' => esc_html__('Show Excerpt','tripgo'), 'section' => 'blog_section', 'settings' => 'blog_archive_show_excerpt', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_archive_show_readmore', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_archive_show_readmore', array( 'label' => esc_html__('Show Read More','tripgo'), 'section' => 'blog_section', 'settings' => 'blog_archive_show_readmore', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_layout', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'layout_2r', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_layout', array( 'label' => esc_html__('Layout','tripgo'), 'section' => 'blog_section', 'settings' => 'blog_layout', 'type' =>'select', 'choices' => apply_filters( 'tripgo_define_layout', '' ) )); $wp_customize->add_setting( 'blog_header', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'default', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_header', array( 'label' => esc_html__('Header','tripgo'), 'section' => 'blog_section', 'settings' => 'blog_header', 'type' =>'select', 'choices' => apply_filters('tripgo_list_header', '') )); $wp_customize->add_setting( 'blog_footer', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'default', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_footer', array( 'label' => esc_html__('Footer','tripgo'), 'section' => 'blog_section', 'settings' => 'blog_footer', 'type' =>'select', 'choices' => apply_filters('tripgo_list_footer', '') )); $wp_customize->add_section( 'single_section' , array( 'title' => esc_html__( 'Single', 'tripgo' ), 'priority' => 30, 'panel' => 'blog_panel', ) ); $wp_customize->add_setting( 'single_layout', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'layout_2r', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('single_layout', array( 'label' => esc_html__('Layout','tripgo'), 'section' => 'single_section', 'settings' => 'single_layout', 'type' =>'select', 'choices' => apply_filters( 'tripgo_define_layout', '' ) )); $wp_customize->add_setting( 'blog_single_show_media', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_single_show_media', array( 'label' => esc_html__('Show Media','tripgo'), 'section' => 'single_section', 'settings' => 'blog_single_show_media', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_single_show_title', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_single_show_title', array( 'label' => esc_html__('Show Title','tripgo'), 'section' => 'single_section', 'settings' => 'blog_single_show_title', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_single_show_date', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_single_show_date', array( 'label' => esc_html__('Show Date','tripgo'), 'section' => 'single_section', 'settings' => 'blog_single_show_date', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_single_show_cat', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_single_show_cat', array( 'label' => esc_html__('Show Category','tripgo'), 'section' => 'single_section', 'settings' => 'blog_single_show_cat', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_single_show_author', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'no', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_single_show_author', array( 'label' => esc_html__('Show Author','tripgo'), 'section' => 'single_section', 'settings' => 'blog_single_show_author', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_single_show_comment', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_single_show_comment', array( 'label' => esc_html__('Show Comment','tripgo'), 'section' => 'single_section', 'settings' => 'blog_single_show_comment', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_single_show_content', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_single_show_content', array( 'label' => esc_html__('Show Content','tripgo'), 'section' => 'single_section', 'settings' => 'blog_single_show_content', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_single_show_tag', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_single_show_tag', array( 'label' => esc_html__('Show Tag','tripgo'), 'section' => 'single_section', 'settings' => 'blog_single_show_tag', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_single_show_share_social_icon', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_single_share_social_icon', array( 'label' => esc_html__('Show Share Social Icon','tripgo'), 'section' => 'single_section', 'settings' => 'blog_single_show_share_social_icon', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_single_show_next_prev_post', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_single_show_next_prev_post', array( 'label' => esc_html__('Show Next Prev Post','tripgo'), 'section' => 'single_section', 'settings' => 'blog_single_show_next_prev_post', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'blog_single_show_leave_a_reply', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('blog_single_show_leave_a_reply', array( 'label' => esc_html__('Show Leave a Reply','tripgo'), 'section' => 'single_section', 'settings' => 'blog_single_show_leave_a_reply', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'single_header', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'default', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('single_header', array( 'label' => esc_html__('Header','tripgo'), 'section' => 'single_section', 'settings' => 'single_header', 'type' =>'select', 'choices' => apply_filters('tripgo_list_header', '') )); $wp_customize->add_setting( 'single_footer', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'default', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('single_footer', array( 'label' => esc_html__('Footer','tripgo'), 'section' => 'single_section', 'settings' => 'single_footer', 'type' =>'select', 'choices' => apply_filters('tripgo_list_footer', '') )); } /* Tour */ public function tripgo_init_ova_tour( $wp_customize ){ $wp_customize->add_panel( 'tour_panel', array( 'title' => esc_html__( 'Tour', 'tripgo' ), 'priority' => 6, ) ); $wp_customize->add_section( 'tour_archive_section' , array( 'title' => esc_html__( 'Archive', 'tripgo' ), 'priority' => 30, 'panel' => 'tour_panel', ) ); $wp_customize->add_setting( 'tour_archive_show_featured', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_archive_show_featured', array( 'label' => esc_html__('Show Featured','tripgo'), 'section' => 'tour_archive_section', 'settings' => 'tour_archive_show_featured', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_archive_show_wishlist', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_archive_show_wishlist', array( 'label' => esc_html__('Show Wishlist','tripgo'), 'section' => 'tour_archive_section', 'settings' => 'tour_archive_show_wishlist', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_archive_show_max_guest', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_archive_show_max_guest', array( 'label' => esc_html__('Show Max Guest','tripgo'), 'section' => 'tour_archive_section', 'settings' => 'tour_archive_show_max_guest', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_archive_show_duration', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_archive_show_duration', array( 'label' => esc_html__('Show Duration','tripgo'), 'section' => 'tour_archive_section', 'settings' => 'tour_archive_show_duration', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_archive_show_title', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_archive_show_title', array( 'label' => esc_html__('Show Title','tripgo'), 'section' => 'tour_archive_section', 'settings' => 'tour_archive_show_title', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_archive_show_location', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_archive_show_location', array( 'label' => esc_html__('Show Location','tripgo'), 'section' => 'tour_archive_section', 'settings' => 'tour_archive_show_location', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_archive_show_rating', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_archive_show_rating', array( 'label' => esc_html__('Show Rating','tripgo'), 'section' => 'tour_archive_section', 'settings' => 'tour_archive_show_rating', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_archive_show_price', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_archive_show_price', array( 'label' => esc_html__('Show Price','tripgo'), 'section' => 'tour_archive_section', 'settings' => 'tour_archive_show_price', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_archive_show_explore_button', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_archive_show_explore_button', array( 'label' => esc_html__('Show Button','tripgo'), 'section' => 'tour_archive_section', 'settings' => 'tour_archive_show_explore_button', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_section( 'tour_single_section' , array( 'title' => esc_html__( 'Single', 'tripgo' ), 'priority' => 30, 'panel' => 'tour_panel', 'description' => esc_html__( 'Apply for Product Templates: Default', 'tripgo' ), ) ); $wp_customize->add_setting( 'tour_single_show_title', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_title', array( 'label' => esc_html__('Show Title','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_title', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_location', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_location', array( 'label' => esc_html__('Show Location','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_location', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_rating', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_rating', array( 'label' => esc_html__('Show Rating','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_rating', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_wishlist', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_wishlist', array( 'label' => esc_html__('Show Wishlist','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_wishlist', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_video_button', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_video_button', array( 'label' => esc_html__('Show Video Button','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_video_button', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_gallery_button', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_gallery_button', array( 'label' => esc_html__('Show Gallery Button','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_gallery_button', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_share_button', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_share_button', array( 'label' => esc_html__('Show Share Button','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_share_button', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_gallery_slide', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_gallery_slide', array( 'label' => esc_html__('Show Gallery Slide','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_gallery_slide', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_features', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_features', array( 'label' => esc_html__('Show Features','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_features', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_description', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_description', array( 'label' => esc_html__('Show Description','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_description', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_inc_exc', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_inc_exc', array( 'label' => esc_html__('Show Included/Excluded','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_inc_exc', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_tour_plan', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_tour_plan', array( 'label' => esc_html__('Show Tour Plan','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_tour_plan', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_map', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_map', array( 'label' => esc_html__('Show Map','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_map', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_reviews', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_reviews', array( 'label' => esc_html__('Show Reviews','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_reviews', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_form', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_form', array( 'label' => esc_html__('Show Form','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_form', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_table_price', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_table_price', array( 'label' => esc_html__('Show Table Price','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_table_price', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); $wp_customize->add_setting( 'tour_single_show_related', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'yes', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('tour_single_show_related', array( 'label' => esc_html__('Show Related','tripgo'), 'section' => 'tour_single_section', 'settings' => 'tour_single_show_related', 'type' =>'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); } /* Woo */ public function tripgo_init_ova_woo( $wp_customize ){ /* Show/hide products by product type */ $wp_customize->add_setting( 'woo_archive_display', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'all', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field', // Get function name ) ); $wp_customize->add_control('woo_archive_display', array( 'label' => esc_html__('Shop products display','tripgo'), 'section' => 'woocommerce_product_catalog', 'settings' => 'woo_archive_display', 'type' =>'select', 'choices' => array( 'all' => esc_html__('All products', 'tripgo'), 'ovabrw_car_rental' => esc_html__('Rental products', 'tripgo'), 'not_rental' => esc_html__('Not Rental products', 'tripgo'), ) )); $wp_customize->add_setting( 'woo_archive_layout', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'woo_layout_1c', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('woo_archive_layout', array( 'label' => esc_html__('Archive Layout','tripgo'), 'section' => 'woocommerce_product_catalog', 'settings' => 'woo_archive_layout', 'type' =>'select', 'choices' => array( 'woo_layout_1c' => esc_html__('No Sidebar', 'tripgo'), 'woo_layout_2r' => esc_html__('Right Sidebar', 'tripgo'), 'woo_layout_2l' => esc_html__('Left Sidebar', 'tripgo'), ) )); $wp_customize->add_setting( 'woo_archive_header', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'default', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('woo_archive_header', array( 'label' => esc_html__('Header','tripgo'), 'section' => 'woocommerce_product_catalog', 'settings' => 'woo_archive_header', 'type' =>'select', 'choices' => apply_filters('tripgo_list_header', '') )); $wp_customize->add_setting( 'woo_archive_footer', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'default', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('woo_archive_footer', array( 'label' => esc_html__('Footer','tripgo'), 'section' => 'woocommerce_product_catalog', 'settings' => 'woo_archive_footer', 'type' =>'select', 'choices' => apply_filters('tripgo_list_footer', '') )); $wp_customize->add_setting( 'woo_sidebar_width', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => '320', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('woo_sidebar_width', array( 'label' => esc_html__('Sidebar Width (px)','tripgo'), 'section' => 'woocommerce_product_catalog', 'settings' => 'woo_sidebar_width', 'type' =>'number' )); /* Show/hide title in category,tag */ $wp_customize->add_setting( 'woo_archive_show_title', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field', // Get function name 'default' => 'yes', ) ); $wp_customize->add_control('woo_archive_show_title', array( 'label' => esc_html__('Show/Hide Title','tripgo'), 'section' => 'woocommerce_product_catalog', 'settings' => 'woo_archive_show_title', 'type' => 'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); /* Product Detail */ $wp_customize->add_section( 'product_detail' , array( 'title' => esc_html__( 'Product detail', 'tripgo' ), 'priority' => 30, 'panel' => 'woocommerce', ) ); $wp_customize->add_setting( 'woo_product_layout', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'woo_layout_1c', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('woo_product_layout', array( 'label' => esc_html__('Single Layout','tripgo'), 'section' => 'product_detail', 'settings' => 'woo_product_layout', 'type' =>'select', 'choices' => array( 'woo_layout_1c' => esc_html__('No Sidebar', 'tripgo'), 'woo_layout_2r' => esc_html__('Right Sidebar', 'tripgo'), 'woo_layout_2l' => esc_html__('Left Sidebar', 'tripgo'), ) )); $wp_customize->add_setting( 'woo_single_header', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'default', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('woo_single_header', array( 'label' => esc_html__('Header','tripgo'), 'section' => 'product_detail', 'settings' => 'woo_single_header', 'type' =>'select', 'choices' => apply_filters('tripgo_list_header', '') )); $wp_customize->add_setting( 'woo_single_footer', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'default' => 'default', 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field' // Get function name ) ); $wp_customize->add_control('woo_single_footer', array( 'label' => esc_html__('Footer','tripgo'), 'section' => 'product_detail', 'settings' => 'woo_single_footer', 'type' =>'select', 'choices' => apply_filters('tripgo_list_footer', '') )); $wp_customize->add_setting( 'woo_product_detail_show_title', array( 'type' => 'theme_mod', // or 'option' 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. 'transport' => 'refresh', // or postMessage 'sanitize_callback' => 'sanitize_text_field', // Get function name 'default' => 'yes', ) ); $wp_customize->add_control('woo_product_detail_show_title', array( 'label' => esc_html__('Show/Hide Title','tripgo'), 'section' => 'product_detail', 'settings' => 'woo_product_detail_show_title', 'type' => 'select', 'choices' => array( 'yes' => esc_html__('Yes', 'tripgo'), 'no' => esc_html__('No', 'tripgo'), ) )); } } } new Tripgo_Customize();PK M<,]6�f6E 6E inc/class-elementor.phpnu ��� <?php class Tripgo_Elementor { function __construct() { // Register Header Footer Category in Pane add_action( 'elementor/elements/categories_registered', array( $this, 'tripgo_add_category' ) ); add_action( 'elementor/frontend/after_register_scripts', array( $this, 'tripgo_enqueue_scripts' ) ); add_action( 'elementor/widgets/register', array( $this, 'tripgo_include_widgets' ) ); add_filter( 'elementor/controls/animations/additional_animations', array( $this, 'tripgo_add_animations'), 10 , 0 ); add_action( 'wp_print_footer_scripts', array( $this, 'tripgo_enqueue_footer_scripts' ) ); // load icons add_filter( 'elementor/icons_manager/additional_tabs', array( $this, 'tripgo_icons_filters_new' ), 9999999, 1 ); // Add icons social custom add_action( 'elementor/element/social-icons/section_social_hover/after_section_end', array( $this, 'tripgo_social_icons_custom' ), 10, 2 ); // Add text editor custom control style add_action( 'elementor/element/text-editor/section_style/after_section_end', array( $this, 'tripgo_text_editor_custom' ), 10, 2 ); // Add customize accordion add_action( 'elementor/element/accordion/section_toggle_style_content/after_section_end', array( $this, 'tripgo_accordion_custom' ), 10, 2 ); // Add customize button add_action( 'elementor/element/button/section_style/after_section_end', array( $this, 'tripgo_button_custom' ), 10, 2 ); // Add customize icon box add_action( 'elementor/element/icon-box/section_style_content/after_section_end', array( $this, 'tripgo_icon_box_custom' ), 10, 2 ); // Add customize icon list add_action( 'elementor/element/icon-list/section_text_style/after_section_end', array( $this, 'tripgo_icon_list_custom' ), 10, 2 ); // Remove animations style from Elementor add_action( 'wp_enqueue_scripts', array( $this, 'tripgo_remove_animations_styles' ) ); } function tripgo_add_category( ) { \Elementor\Plugin::instance()->elements_manager->add_category( 'hf', [ 'title' => __( 'Header Footer', 'tripgo' ), 'icon' => 'fa fa-plug', ] ); \Elementor\Plugin::instance()->elements_manager->add_category( 'tripgo', [ 'title' => __( 'Tripgo', 'tripgo' ), 'icon' => 'fa fa-plug', ] ); } function tripgo_enqueue_scripts(){ $files = glob(get_theme_file_path('/assets/js/elementor/*.js')); foreach ($files as $file) { $file_name = wp_basename($file); $handle = str_replace(".js", '', $file_name); $src = get_theme_file_uri('/assets/js/elementor/' . $file_name); if (file_exists($file)) { wp_register_script( 'tripgo-elementor-' . $handle, $src, ['jquery'], false, true ); } } } function tripgo_include_widgets( $widgets_manager ) { $files = glob(get_theme_file_path('elementor/widgets/*.php')); foreach ($files as $file) { $file = get_theme_file_path('elementor/widgets/' . wp_basename($file)); if (file_exists($file)) { require_once $file; } } } function tripgo_add_animations(){ $animations = array( 'Tripgo' => array( 'ova-move-up' => esc_html__('Move Up', 'tripgo'), 'ova-move-down' => esc_html__( 'Move Down', 'tripgo' ), 'ova-move-left' => esc_html__('Move Left', 'tripgo'), 'ova-move-right' => esc_html__('Move Right', 'tripgo'), 'ova-scale-up' => esc_html__('Scale Up', 'tripgo'), 'ova-flip' => esc_html__('Flip', 'tripgo'), 'ova-helix' => esc_html__('Helix', 'tripgo'), 'ova-popup' => esc_html__( 'PopUp','tripgo' ) ), ); return $animations; } function tripgo_enqueue_footer_scripts(){ // Font Icon wp_enqueue_style('ovaicon', TRIPGO_URI.'/assets/libs/ovaicon/font/ovaicon.css', array(), null); // Icomoon wp_enqueue_style('ova-icomoon', TRIPGO_URI.'/assets/libs/icomoon/style.css', array(), null); // Flaticon wp_enqueue_style('ova-flaticon', TRIPGO_URI.'/assets/libs/flaticon/font/flaticon_tripgo.css', array(), null); // Flaticon 2 wp_enqueue_style('ova-flaticon2', TRIPGO_URI.'/assets/libs/flaticon2/font/flaticon_tripgo2.css', array(), null); } public function tripgo_icons_filters_new( $tabs = array() ) { $newicons = []; // Font Icon $font_data['json_url'] = TRIPGO_URI.'/assets/libs/ovaicon/ovaicon.json'; $font_data['name'] = 'ovaicon'; $newicons[ $font_data['name'] ] = [ 'name' => $font_data['name'], 'label' => esc_html__( 'Default', 'tripgo' ), 'url' => '', 'enqueue' => '', 'prefix' => 'ovaicon-', 'displayPrefix' => '', 'ver' => '1.0', 'fetchJson' => $font_data['json_url'], ]; // Icomoon $font_icomoon['json_url'] = TRIPGO_URI.'/assets/libs/icomoon/icomoon.json'; $font_icomoon['name'] = 'icomoon'; $newicons[ $font_icomoon['name'] ] = [ 'name' => $font_icomoon['name'], 'label' => esc_html__( 'Icomoon', 'tripgo' ), 'url' => '', 'enqueue' => '', 'prefix' => 'icomoon-', 'displayPrefix' => '', 'ver' => '1.0', 'fetchJson' => $font_icomoon['json_url'], ]; // Flaticon $font_flaticon['json_url'] = TRIPGO_URI.'/assets/libs/flaticon/flaticon.json'; $font_flaticon['name'] = 'flaticon'; $newicons[ $font_flaticon['name'] ] = [ 'name' => $font_flaticon['name'], 'label' => esc_html__( 'Flaticon', 'tripgo' ), 'url' => '', 'enqueue' => '', 'prefix' => 'flaticon-', 'displayPrefix' => '', 'ver' => '1.0', 'fetchJson' => $font_flaticon['json_url'], ]; // Flaticon 2 $font_flaticon2['json_url'] = TRIPGO_URI.'/assets/libs/flaticon2/flaticon.json'; $font_flaticon2['name'] = 'flaticon2'; $newicons[ $font_flaticon2['name'] ] = [ 'name' => $font_flaticon2['name'], 'label' => esc_html__( 'Flaticon 2', 'tripgo' ), 'url' => '', 'enqueue' => '', 'prefix' => 'flaticon2-', 'displayPrefix' => '', 'ver' => '1.0', 'fetchJson' => $font_flaticon2['json_url'], ]; return array_merge( $tabs, $newicons ); } function tripgo_social_icons_custom ( $element, $args ) { /** @var \Elementor\Element_Base $element */ $element->start_controls_section( 'ova_social_icons', [ 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'label' => esc_html__( 'Ova Social Icon', 'tripgo' ), ] ); $element->add_responsive_control( 'ova_social_icons_display', [ 'label' => esc_html__( 'Display', 'tripgo' ), 'type' => \Elementor\Controls_Manager::CHOOSE, 'options' => [ 'inline-block' => [ 'title' => esc_html__( 'Block', 'tripgo' ), 'icon' => 'eicon-h-align-left', ], 'inline-flex' => [ 'title' => esc_html__( 'Flex', 'tripgo' ), 'icon' => 'eicon-h-align-center', ], ], 'selectors' => [ '{{WRAPPER}} .elementor-icon.elementor-social-icon' => 'display: {{VALUE}}', ], ] ); $element->end_controls_section(); } // Ova text-editor custom function tripgo_text_editor_custom( $element, $args ) { /** @var \Elementor\Element_Base $element */ $element->start_controls_section( 'ova_tabs', [ 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'label' => esc_html__( 'Ova Text Editor', 'tripgo' ), ] ); $element->add_responsive_control( 'text_margin', [ 'label' => esc_html__( 'Margin', 'tripgo' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} p' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $element->add_responsive_control( 'text_padding', [ 'label' => esc_html__( 'Padding', 'tripgo' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} p' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $element->end_controls_section(); } // Accordion customize public function tripgo_accordion_custom( $element, $args) { /** @var \Elementor\Element_Base $element */ $element->start_controls_section( 'ova_accordion_customize', [ 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'label' => esc_html__( 'Ova Accordion', 'tripgo' ), ] ); $element->add_responsive_control( 'acc_border_radius', [ 'label' => esc_html__( 'Border Radius', 'tripgo' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .elementor-accordion-item.ova-active' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $element->add_control( 'acc_border_width', [ 'label' => esc_html__( 'Border Width', 'tripgo' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 10, ], ], 'selectors' => [ '{{WRAPPER}} .elementor-accordion-item.ova-active' => 'border-width: {{SIZE}}{{UNIT}} !important;', ], ] ); $element->add_control( 'acc_border_color', [ 'label' => esc_html__( 'Border Color', 'tripgo' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .elementor-accordion-item.ova-active' => 'border-color: {{VALUE}} !important;', ], ] ); $element->add_responsive_control( 'acc_content_padding', [ 'label' => esc_html__( 'Content Padding', 'tripgo' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .elementor-accordion-item .elementor-tab-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} ;', ], ] ); $element->end_controls_section(); } public function tripgo_button_custom($element, $args){ $element->start_controls_section( 'ova_button_customize', [ 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'label' => esc_html__( 'Ova Button', 'tripgo' ), ] ); $element->add_control( 'ova_button_icon_font_size', [ 'label' => esc_html__( 'Icon Size', 'tripgo' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 1, 'max' => 300, 'step' => 1, ] ], 'selectors' => [ '{{WRAPPER}} .elementor-button .elementor-button-icon i' => 'font-size: {{SIZE}}{{UNIT}};', ], ] ); $element->add_control( 'ova_button_icon_right_margin_left', [ 'label' => esc_html__( 'Icon Margin Left', 'tripgo' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 35, 'step' => 1, ] ], 'selectors' => [ '{{WRAPPER}} .elementor-button .elementor-align-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};', ], ] ); $element->add_responsive_control( 'ova_button_alignment', [ 'label' => esc_html__( 'Alignment', 'tripgo' ), 'type' => \Elementor\Controls_Manager::CHOOSE, 'options' => [ 'flex-start' => [ 'title' => esc_html__( 'Flex start', 'tripgo' ), 'icon' => 'eicon-v-align-top', ], 'center' => [ 'title' => esc_html__( 'Center', 'tripgo' ), 'icon' => 'eicon-v-align-middle', ], 'end' => [ 'title' => esc_html__( 'End', 'tripgo' ), 'icon' => 'eicon-v-align-bottom', ], ], 'selectors' => [ '{{WRAPPER}} .elementor-button-content-wrapper' => 'align-items: {{VALUE}};', ], ] ); $element->end_controls_section(); } public function tripgo_icon_box_custom($element, $args){ $element->start_controls_section( 'ova_icon_box_customize', [ 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'label' => esc_html__( 'Ova Icon Box', 'tripgo' ), ] ); $element->add_control( 'icon_heading', [ 'label' => esc_html__( 'Icon', 'tripgo' ), 'type' => \Elementor\Controls_Manager::HEADING, ] ); $element->add_group_control( \Elementor\Group_Control_Box_Shadow::get_type(), [ 'name' => 'icon_box_shadow', 'selector' => '{{WRAPPER}} .elementor-icon', ] ); $element->add_responsive_control( 'ova_shape_polygon', [ 'label' => esc_html__( 'Polygon Shape', 'tripgo' ), 'type' => \Elementor\Controls_Manager::CHOOSE, 'options' => [ 'clip-path' => [ 'title' => esc_html__( 'Polygon', 'tripgo' ), 'icon' => 'eicon-check', ], ], 'selectors' => [ '{{WRAPPER}} .elementor-icon-box-icon .elementor-icon' => '-webkit-clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);', '{{WRAPPER}} .elementor-icon-box-icon .elementor-icon' => '{{VALUE}}: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%)', ], ] ); $element->add_control( 'content_heading', [ 'label' => esc_html__( 'Content', 'tripgo' ), 'type' => \Elementor\Controls_Manager::HEADING, 'separator' => 'before', ] ); $element->add_control( 'title_color_hover', [ 'label' => esc_html__( 'Title Color Hover', 'tripgo' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .elementor-widget-container:hover .elementor-icon-box-title' => 'color: {{VALUE}}', ], ] ); $element->add_control( 'description_color_hover', [ 'label' => esc_html__( 'Description Color Hover', 'tripgo' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .elementor-widget-container:hover .elementor-icon-box-description' => 'color: {{VALUE}}', ], ] ); $element->add_responsive_control( 'title_margin', [ 'label' => esc_html__( 'Title Margin', 'tripgo' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .elementor-icon-box-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $element->end_controls_section(); } public function tripgo_icon_list_custom($element, $args){ $element->start_controls_section( 'ova_icon_list_customize', [ 'tab' => \Elementor\Controls_Manager::TAB_STYLE, 'label' => esc_html__( 'Ova Icon List', 'tripgo' ), ] ); $element->add_control( 'icon_heading', [ 'label' => esc_html__( 'Icon', 'tripgo' ), 'type' => \Elementor\Controls_Manager::HEADING, ] ); $element->add_control( 'icon_first_child_color', [ 'label' => esc_html__( 'First child Color', 'tripgo' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .elementor-icon-list-items .elementor-icon-list-item:first-child .elementor-icon-list-icon i' => 'color: {{VALUE}}', ], ] ); $element->add_control( 'icon_secondary_color', [ 'label' => esc_html__( 'Secondary Color', 'tripgo' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .elementor-icon-list-items .elementor-icon-list-item:nth-child(2) .elementor-icon-list-icon i' => 'color: {{VALUE}}', ], ] ); $element->end_controls_section(); } // Remove animations style from Elementor public function tripgo_remove_animations_styles() { // Deregister the stylesheet by handle foreach ( $this->tripgo_add_animations() as $animations ) { if ( !empty( $animations ) && is_array( $animations ) ) { foreach ( array_keys( $animations ) as $animation ) { wp_deregister_style( 'e-animation-'.$animation ); wp_enqueue_style( 'e-animation-'.$animation, TRIPGO_URI.'/assets/scss/none.css', array(), null); } } } } } return new Tripgo_Elementor();PK M<,]2}^�R R header.phpnu ��� <!DOCTYPE html> <html <?php language_attributes(); ?> > <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" /> <link rel="profile" href="//gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/> <?php wp_head(); ?> </head> <?php $type = ''; if ( tripgo_is_woo_active() ) { if( is_product()) { $id = get_the_ID(); $product = wc_get_product($id); $type = $product->get_type(); } } ?> <body <?php if( ($type == 'simple') || ($type == 'grouped') || ($type == 'variable') || ($type == 'external') ) { body_class('single-product-not-rental'); } else { body_class(); } ?>> <?php if ( function_exists( 'wp_body_open' ) ) { wp_body_open(); } ?> <div class="ovamegamenu_container_default"></div> <div class="wrap-fullwidth"><div class="inside-content"> <?php echo apply_filters( 'tripgo_render_header', '' ); ?>PK M<,]�ʄ� � assets/img/logo.pngnu ��� �PNG IHDR d 2 �5~� AiCCPICC Profile H ��wTS��Ͻ7��" %�z �;HQ�I�P��&vDF)VdT�G�"cE��b� �P�QDE�k �5�ޚ��Y�����g�} P���tX�4�X��\��X��ffG�D��=���HƳ��.�d��,�P&s��"7C$ E�6<~&��S��2���)2�12� ��"�įl���+�ɘ�&�Y��4���Pޚ%ᣌ�\�%�g�|e�TI� �(���L 0�_��&�l�2E�� ��9�r��9h� x�g��Ib�טi���f��S�b1+��M�xL���0��o�E%Ym�h����Y��h����~S�=�z�U�&�ϞA��Y�l�/� �$Z����U �m@��O� � �ޜ��l^���'���ls�k.+�7���oʿ�9����V;�?�#I3eE妧�KD����d����9i���,�����UQ� ��h��<�X�.d ���6'~�khu_ }�9P�I�o= C#$n?z}�[1 Ⱦ�h���s�2z��\�n�LA"S��dr%�,�߄l��t� 4�.0,` �3p� ��H�.Hi@�A>� A1�v�jp ԁz�N�6p\W� p�G@ ��K0ށi���A����B�ZyCAP8�C���@��&�*���CP=�#t�]���� 4�}���a � ��ٰ;G���Dx����J�>���� ,�_@��FX�DB�X$!k�"��E�����H�q���a���Y��bVa�bJ0c�VL�6f3����bձ�X'�?v 6��-�V`�`[����a�;��p~�\2n5������ �&�x�*���s�b|!� ߏƿ'� Zk�!� $l$T����4Q��Ot"�y�\b)���A�I&N�I�$R$)���TIj"]&=&�!��:dGrY@^O�$� _%�?P�(&OJEB�N9J�@y@yC�R �n�X����ZO�D}J}/G�3���ɭ���k��{%O�חw�_.�'_!J����Q�@�S���V�F��=�IE���b�b�b�b��5�Q%�����O�@��%�!BӥyҸ�M�:�e�0G7��ӓ����� e%e[�(����R�0`�3R��������4�����6�i^��)��*n*|�"�f����LUo�՝�m�O�0j&jaj�j��.��ϧ�w�ϝ_4��갺�z��j���=���U�4�5�n�ɚ��4ǴhZ�Z�Z�^0����Tf%��9����-�>�ݫ=�c��Xg�N��]�.[7A�\�SwBOK/X/_�Q�>Q�����G�[�� �`�A�������a�a��c#����*�Z�;�8c�q��>�[&���I�I��MS���T`�ϴ�k�h&4�5�Ǣ��YY�F֠9�<�|�y��+=�X���_,�,S-�,Y)YXm����Ěk]c}džj�c�Φ�浭�-�v��};�]���N���"�&�1=�x����tv(��}�������'{'��I�ߝY�)� Σ��-r�q�r�.d.�_xp��Uە�Z��M�v�m���=���+K�G�ǔ����^���W�W����b�j�>:>�>�>�v��}/�a��v�������O8� � �FV>2 u����/�_$\�B�Cv�< 5]�s.,4�&�y�Ux~xw-bEDCĻH����G��KwF�G�E�GME{E�EK�X,Y��F�Z� �={$vr����K���� ��.3\����r���Ϯ�_�Yq*���©�L��_�w�ד������+��]�e�������D��]�cI�II�OA��u�_�䩔���)3�ѩ�i�����B%a��+]3='�/�4�0C��i��U�@ёL(sYf����L�H�$�%�Y�j��gGe��Q�����n����~5f5wug�v����5�k��֮\۹Nw]����m mH���Fˍe�n���Q�Q��`h����B�BQ�-�[l�ll��f��jۗ"^�b���O%ܒ��Y}W��������w�vw����X�bY^�Ю�]�����W�Va[q`i�d��2���J�jGէ������{������m���>��Pk�Am�a�����꺿g_D�H��G�G��u�;��7�7�6�Ʊ�q�o��C{��P3���8!9����<�y�}��'�����Z�Z���։��6i{L{��ӝ�-?��|����gKϑ���9�w~�Bƅ��:Wt>���ҝ����ˁ��^�r�۽��U��g�9];}�}�������_�~i��m��p���㭎�}�]�/��}�����.�{�^�=�}���^?�z8�h�c��' O*��?����f�����`ϳ�g���C/����O�ϩ�+F�F�G�Gό���z����ˌ��ㅿ)����ѫ�~w��gb���k��?Jި�9��m�d���wi獵�ޫ�?�����c�Ǒ��O�O���?w| ��x&mf����2:Y~ IDATx�Z�j"A-u�W��(����'���}�HP�-&�5QQw�@��:kDk� ��TwO�9s�[���v��&��H4%D؇��(!��*D ���pT!J�0��� QB�! ,U�"a�B�aG��C@X8�%D������H(��p8�>{���ȯ�?����kx�ӡ��;j�Z�v___��-Bj��b1���N�ш"�5 �ϫ�\.���Y�B�@�|�j����'Z�VT*�(��zmq��*���Q���e___�������yy�J�B~��>>>>��v��t:M�v��i�@J�Z%�+�nJ )n[����-e��e��L�l ������ !P!�"ٰ7ԇgA�R���8J�~����h�0��q�$�L&V�5�AҖ[Q�s0�|��0��@9(&H����+O&�4�N�\.;��x4���gB�b�~���g�k�" AZ���b�6�f�X ��x����i����sN=˞t��MoY^�td�'���KF�<6��[W0�L&�Î��gC���g��Ϲv-R!H/H-(h�!�q� n��ܴ�fc�PP"��]X�1�& 9�']�!R!�=��C��\.g� �ÔJ�>�{ܢp��l ��T,y���O9�CnC:���y��)Μw�~�K�E*/x�~�%�v>���r�Z�r���SB����(!��*D ���pT!J�0��� QB�! ,U�"a�B�aG��C@X8�%D��Q�#�'W/*}�A� IEND�B`�PK M<,]���2+ + assets/img/base/vector1.pngnu ��� �PNG IHDR � � K�i� pHYs �� sRGB ��� gAMA ���a *�IDATx��Kv[Wz��� V����+��z9�������\#�k�{�Yh���R���X��2 �ߛ>P`Z��}�y���R�ıK_~�R � ggg���( �p� Zo2��B��B :`oo� �!�* t@UU� ��� �)T? h�* �V�L&����� ��0Q������(B �o � B Z���/ D�@�� D�@����� F�@�� F�@�ٟ @ U h�q @�U h)�Sh*� �u �@B Z���� � �u&��`0�5 ��LT������ %T��z��W %T��� %T�e&��Az� J�@��q @� U h�Sh4�� @�L&�Q��� �`&� �"��p �pB Zd>�[�@� U h���� 'T�%NOO�� �pB Z"MS� ��P�� ��P����� Z@�@; ��P���ʵ4 ��P���L&a�/ -"T���q @�U h8�~h� f�/ m$T����� ��� �l� ��� �P������� �PUU= h!� �5 h!� ��ի������ �@�^�ݩ �V @�L&���`�k @K��@��ã �� �0���i� ���� � ��d4~ h1U h�~��u @� U h�����@� U h����q�;�� �i��% :�aJ � Q�KLT����8 �#�* 4�b�x �B �% �F�@��@�8L �% ��D �� :F�@�,����* j:��C� � � �Z,�� t�Ô �@Q��LT�@)R� t��* �4��3Q���C{S�4� �Y,� &T� �� � EI�T�(�yB a� �� P�4Mu� �P�"�����c �P�TUe� �* ���L&��`�K WLT`�R�:� V���������������������Ǚ������Ǚ���������������������LT`�LS�f&� �E�� p;U �"�T ���* l�i* ܍�* l�i* ܍�* l�i* ܝ�* l�i* ܝ�* l�i* �* lX��� �3� 4�N��c �� U ؠ�bao* ܓP� ���� ��aJ ���d0� � �f� 0��H�1Q�5s <��* �Y�T(�#���M�Ӄ�b�6 �3Q�5J��c �"T`M\G �a�/ �A}��$�* <��* �A}��( �G3Q�Gr ���* <R�� X� �� % X?K�� �a� � % �U x��tz�X,� �v&� � )R `#�* �S��Z� d�/ ܃;S`�LT�ܙ �'T�^�~�,,����� � /��o��� `�� �j0|�" ���_ �E��w �VX� 7�� ���_ ��%� �}���'L���a�/ l��� �y�o��� �֙��G�H� �B ����� � K`���鸪*�T �!U ��}�)R� `��* ���%� P � ��ׯ���q ;g�* ��������UU� �sB�NK��?ކ%� PK�4�R�<B�Ϊ��~ @Q,����K�r U :ǾT (��� tN��oC�@��* �2�N��I� ��_ :c2��K~����� ���? P<� @'�H��}� �B��;;;sx 4�P���Ó� �1�@k�~��h>�ۗ #Th�|xR��[U�~ �� h����|x�H��G�֩�� �HB�V9;;�>= h,� @k�'� �hS�r�.�o h<� @�y���l6{ @+U m2��kh �=�* ��r �( ��� 4�H��� 4�H�v� 4J���oC�@k�G�ƨ#�$ Z�D�FX�ԃ Z�D�F�߇H�N� ���,G�Q �`�/ E�#�8 ��� K�@7 U �$R���* E�O��1� �IB�b�� Ȅ* E� ��P`�R���H �yB��� �u� �I�z R�� ;pzz:N�|��~ �0Q`�yIz�T �O�* [5�N��f� � S`k��ξM�� �B����H�Q� p� �F�~ �/{Tؘ|�o��" �� �F�C��� <��� �U�5�t TX�Q�u����x���S�Q�u0Q�Q��� ��U �^��G= �5���y����z��H ��D�{q�/ �iB�;;==WU�}80 � � ��� l�P�F�� �� U >� �� ���� �$T���� @ ܣ ���^�_B� ;f� �q�2u � 5�LF�aI� P�~ �)y�p8|6���i�� PU��Pg��7UU T �XB�����b���|G P8� �bJ �H��ЫW��z�� @ U��ȇ$ ���6�( ʩ� �_ �mLT����b�8v�/ �&B�A��toool�) �fB�LO�.� �Z9�0= :D�D� U��{���h6��8 �"T�,OM���A�s�>́: >� v-L�� �FB`ͦ��l6;�z���Qz ܙPx�<%��_��qq��t����-��� �*@m������(�g~��B4?���/�c4< 6B���O���|��_˸̟Ka9����#3�O�>������ E��N-��+�9ʟ_Ff�f�5?�ϋK ���Z� g��l6�z�l�r���x��| p�Pn��z�6G�l������� �B:.G�p8� h>�6( ;&T��V���kTrt�=�N�� �H�B�]���ODGB ����9FW��~���p -#T�0��ѼL����LF � � ;�1�)@) �� [POI��%��|,H ��*��t:=�O�ͧ�MI �~�*<��4}����R x� w��S�����cQ �!T��MK��50 �Bjyoi���x��i) �P��V��K�� @9�*�����f�#S (�P����G{{{G�� @�UZ���t�<�7}8 �q�*�����ח�� @;Ug��4��*LM �u�*�����8�5 �V�+�iUU_�8�� �C�Rq UvN� ��*;��s:�Ͽ� �*����d���3w� 7�l���4=}� ���F�w <�Pem��t0��_��) �@��G�Fz6����C�S �QLTy�S `SLT��ս�az l��*wR��0= 6L��I+���G �B�?Y�|>���2 �� U>�N�iz�'�G ����� @Q�j� T �DB��* P2��! h�� h��b h"��B��d4�� 4�Pm���)P��� h�~�x9P���|�u? �D��^�~�l6�}SU�@ ZA�6��� ��� �J�ߦH= �� ���2_ �̈́j��|�u3� h9�Z0�| �.���O�M��?�u b�Z�4E=߆�| ��2Q-�t:}��'�E :�D� K �?Bu��3���yz�u pE��H�5OQ� ����'��z���� ��Du��u |T/؊<E�oC� ��Du�� p?Bu���~�� ܙ������H�K}G �����Y����8 �7��F����0E x0K��͛7O�S}G ��������Y^��T_ �5��P�Gͧ�� ���d?* �fأ� �_�>� `3��=M����Ǫ�� ����� �yB�� �=B���I9R ���7p�/ ��9L�R��T ���rzz:N����ɾ [f�z͛7o�VU5q� �n��_�~6��^ ;#Tk���|>�. �)���X,� v��*R ���P� ��l��T �2u2TE* @�:�" �l� �7o�<uO* @�:�" �:����`0� ��K�:�� ���b9R�$5G�~ ��]���� �1Z��7E�!R ���zvv�mz �ӺP�N����� ��Z�G�������w @c�&Tݕ ��X�[��c �x�U�� �G�C�>�w �B�C5�N� h���T�K�% h�FNT�H� ���P��� �T�Bu:�>���( h�F�Q�L&���m �Z����R Z�1��"�yؗ �z���tz�� @��G5/��o��� Z������T ��(z�o��&= ��(v�o}��/ @�;QM�: :��P���� ��)n�%� �V�D5E� @g����8=� @g��^�P �U�D5E�� (c�:�N��� ��H�1 � �Q @�x�� �n�U( p��&��4�� �;����o ��I�����Q �5; ��� >b��: n��P5M �&[ U�T n��P5M �6[�4M͑: ��VBu2���4�8 �[ ��p�4LS �����i* w��Pu�/ ���Pu�/ ���P5M �6��� ���B�4 ���X��i� �{�H������� �6�UU= x�*�l2����/ ���j�T'� �`�X�; x����+i x����b��� �GY[��WҌ am��J �a-�Ӹ� �uY�Du8� �`-��X,� �����Z� �:=z��"Օ4 ��:��� ��Q���T ��Q���T ��)M&����� �5y�Du8�H `��� �5{���z�� k���j�� ��A�j�/ �r勵�� �I������ 6�ޡ��,� `c�G�AJ l̽B���t�� r�P���i ��w��8 `�����d�� � �s���q ���9T���� l�}�� l؝Bյ4 l�]'�G [p�P��� �-�n�&��`0�5 `n����� ���P��j �%w U�S ؚ��ڟ ���8Q� [t���q ���UU} �E�MT-� `�>���$G�~ �}2T�ái* [��P],�� �u7�Q5Q `�* E�h����� v࣡ZU�i* ;� �Bu �� �q ��)T'���� �̟Buooo �# U'� �Kۣ��_ v�c�Q ��|l�j�/ ;�Pu�/ ���Pu�/ ���Pu�/ �v}�� ة�� ��>Q�� ������$OSMT ةՉ�( `�>���i (��P�z� �����b �c�{T� �cB���Q ��9� �����;T ع�P�L&� �\�j�� �*T��e� �*T{��( � &� e�� �,���5 � � ��,Cu P � @Q,� �(��d2 (D���C �b�P ���b!T (��� ��U �a�/ Eq�* E��Q @!LT (J��� (DU�) PK (�P �(9T-� �B ��X� @Q�* E� %��( �&� E� P� @Q�* E� E� P� @Q�* E� E� P� @Q�* E� %��y @!LT (�P �(B ��U ��0% �b� @Q�* E�-�� �ȡ�� �BX� @QzUUY� @1�DU� PK (J>L�<