/** * urna functions and definitions. * * Set up the theme and provides some helper functions, which are used in the * theme as custom template tags. Others are attached to action and filter * hooks in WordPress to change core functionality. * * When using a child theme you can override certain functions (those wrapped * in a function_exists() call) by defining them first in your child theme's * functions.php file. The child theme's functions.php file is included before * the parent theme's file, so the child theme functions would be used. * * @see https://codex.wordpress.org/Theme_Development * @see https://codex.wordpress.org/Child_Themes * * Functions that are not pluggable (not wrapped in function_exists()) are * instead attached to a filter or action hook. * * For more information on hooks, actions, and filters, * {@link https://codex.wordpress.org/Plugin_API} * @since Urna 1.0 */ /* * Set the content width based on the theme's design and stylesheet. * * @since Urna 1.0 */ define('URNA_THEME_VERSION', '1.0'); /* * ------------------------------------------------------------------------------------------------ * Define constants. * ------------------------------------------------------------------------------------------------ */ define('URNA_THEME_DIR', get_template_directory_uri()); define('URNA_THEMEROOT', get_template_directory()); define('URNA_IMAGES', URNA_THEME_DIR.'/images'); define('URNA_SCRIPTS', URNA_THEME_DIR.'/js'); define('URNA_SCRIPTS_SKINS', URNA_SCRIPTS.'/skins'); define('URNA_STYLES', URNA_THEME_DIR.'/css'); define('URNA_STYLES_SKINS', URNA_STYLES.'/skins'); define('URNA_INC', 'inc'); define('URNA_MERLIN', URNA_INC.'/merlin'); define('URNA_CLASSES', URNA_INC.'/classes'); define('URNA_VENDORS', URNA_INC.'/vendors'); define('URNA_ELEMENTOR', URNA_THEMEROOT.'/inc/vendors/elementor'); define('URNA_ELEMENTOR_TEMPLATES', URNA_THEMEROOT.'/elementor_templates'); define('URNA_VISUALCOMPOSER', URNA_THEMEROOT.'/inc/vendors/visualcomposer'); define('URNA_WIDGETS', URNA_INC.'/widgets'); define('URNA_ASSETS', URNA_THEME_DIR.'/inc/assets'); define('URNA_ASSETS_IMAGES', URNA_ASSETS.'/images'); define('URNA_MIN_JS', ''); if (!isset($content_width)) { $content_width = 660; } if (!function_exists('urna_tbay_setup')) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. * * @since Urna 1.0 */ function urna_tbay_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on urna, use a find and replace * to change 'urna' to the name of your theme in all the template files */ load_theme_textdomain('urna', URNA_THEMEROOT.'/languages'); // Add default posts and comments RSS feed links to head. add_theme_support('automatic-feed-links'); add_theme_support('post-thumbnails'); add_image_size('urna_avatar_post_carousel', 100, 100, true); // This theme styles the visual editor with editor-style.css to match the theme style. $font_source = urna_tbay_get_config('show_typography', false); if (!$font_source) { add_editor_style(['css/editor-style.css', urna_fonts_url()]); } /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support('title-tag'); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support('html5', [ 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ]); add_theme_support('woocommerce'); /* * Enable support for Post Formats. * * See: https://codex.wordpress.org/Post_Formats */ add_theme_support('post-formats', [ 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'audio', ]); $color_scheme = urna_tbay_get_color_scheme(); $default_color = trim($color_scheme[0], '#'); // Setup the WordPress core custom background feature. add_theme_support('custom-background', apply_filters('urna_custom_background_args', [ 'default-color' => $default_color, 'default-attachment' => 'fixed', ])); if (apply_filters('urna_remove_widgets_block_editor', true)) { remove_theme_support('block-templates'); remove_theme_support('widgets-block-editor'); /*Remove extendify--spacing--larg CSS*/ update_option('use_extendify_templates', ''); } urna_tbay_get_load_plugins(); } endif; // urna_tbay_setup add_action('after_setup_theme', 'urna_tbay_setup', 10); /** * Enqueue scripts and styles. * * @since Urna 1.0 */ function urna_tbay_scripts() { $suffix = (urna_tbay_get_config('minified_js', false)) ? '.min' : URNA_MIN_JS; // load bootstrap style if (is_rtl()) { wp_enqueue_style('bootstrap', URNA_STYLES.'/bootstrap.rtl.css', [], '3.3.7'); } else { wp_enqueue_style('bootstrap', URNA_STYLES.'/bootstrap.css', [], '3.3.7'); } $skin = urna_tbay_get_theme(); // Load our main stylesheet. if (is_rtl()) { $css_path = URNA_STYLES.'/template.rtl.css'; $css_skin = URNA_STYLES_SKINS.'/'.$skin.'/type.rtl.css'; } else { $css_path = URNA_STYLES.'/template.css'; $css_skin = URNA_STYLES_SKINS.'/'.$skin.'/type.css'; } $css_array = []; if (urna_elementor_is_activated()) { array_push($css_array, 'elementor-frontend'); } wp_enqueue_style('urna-template', $css_path, $css_array, URNA_THEME_VERSION); wp_enqueue_style('urna-skin', $css_skin, [], URNA_THEME_VERSION); $vc_style = urna_tbay_print_vc_style(); wp_add_inline_style('urna-template', $vc_style); /*Put CSS elementor post to header*/ urna_get_elementor_post_scripts(); wp_enqueue_style('urna-style', URNA_THEME_DIR.'/style.css', [], URNA_THEME_VERSION); //load font awesome wp_enqueue_style('font-awesome', URNA_STYLES.'/font-awesome.css', [], '4.7.0'); //load font custom icon tbay wp_enqueue_style('font-tbay', URNA_STYLES.'/font-tbay-custom.css', [], '1.0.0'); //load simple-line-icons wp_enqueue_style('simple-line-icons', URNA_STYLES.'/simple-line-icons.css', [], '2.4.0'); //load linear icons wp_enqueue_style('linearicons', URNA_STYLES.'/linearicons.css', [], '1.0.0'); //load material font icons wp_enqueue_style('material-design-iconic-font', URNA_STYLES.'/material-design-iconic-font.css', [], '1.0.0'); // load animate version 3.5.0 wp_enqueue_style('animate-css', URNA_STYLES.'/animate.css', [], '3.5.0'); wp_enqueue_script('urna-skip-link-fix', URNA_SCRIPTS.'/skip-link-fix'.$suffix.'.js', [], URNA_THEME_VERSION, true); if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } wp_dequeue_script('wpb_composer_front_js'); wp_enqueue_script('wpb_composer_front_js'); wp_register_script('jquery-magnific-popup', URNA_SCRIPTS.'/jquery.magnific-popup'.$suffix.'.js', ['jquery'], '2.1.0', true); wp_enqueue_style('magnific-popup', URNA_STYLES.'/magnific-popup.css', [], '3.5.0'); /*mmenu menu*/ wp_register_script('jquery-mmenu', URNA_SCRIPTS.'/jquery.mmenu'.$suffix.'.js', ['jquery', 'underscore'], '7.0.5', true); /*Treeview menu*/ wp_enqueue_style('jquery-treeview', URNA_STYLES.'/jquery.treeview.css', [], '1.0.0'); /*Treeview menu*/ wp_enqueue_script('jquery-treeview', URNA_SCRIPTS.'/jquery.treeview'.$suffix.'.js', [], '1.4.0', true); /*hc sticky*/ wp_register_script('hc-sticky', URNA_SCRIPTS.'/hc-sticky'.$suffix.'.js', ['jquery'], '2.1.0', true); wp_enqueue_script('bootstrap', URNA_SCRIPTS.'/bootstrap'.$suffix.'.js', ['jquery'], '3.3.5', true); wp_enqueue_script('waypoints', URNA_SCRIPTS.'/jquery.waypoints'.$suffix.'.js', [], '4.0.0', true); /*slick jquery*/ wp_register_script('slick', URNA_SCRIPTS.'/slick'.$suffix.'.js', ['jquery'], '1.0.0', true); wp_register_script('urna-slick', URNA_SCRIPTS.'/custom-slick'.$suffix.'.js', ['jquery'], URNA_THEME_VERSION, true); // Add js Sumoselect version 3.0.2 wp_register_style('sumoselect', URNA_STYLES.'/sumoselect.css', [], '1.0.0', 'all'); wp_register_script('jquery-sumoselect', URNA_SCRIPTS.'/jquery.sumoselect'.$suffix.'.js', ['jquery'], '3.0.2', true); wp_register_script('jquery-shuffle', URNA_SCRIPTS.'/jquery.shuffle'.$suffix.'.js', ['jquery'], '3.0.0', true); wp_register_script('jquery-autocomplete', URNA_SCRIPTS.'/jquery.autocomplete'.$suffix.'.js', ['jquery', 'urna-script'], '1.0.0', true); wp_enqueue_script('jquery-autocomplete'); wp_register_style('magnific-popup', URNA_STYLES.'/magnific-popup.css', [], '1.0.0'); wp_enqueue_style('magnific-popup'); wp_register_script('jquery-countdowntimer', URNA_SCRIPTS.'/jquery.countdowntimer'.$suffix.'.js', ['jquery'], '20150315', true); wp_register_style('jquery-fancybox', URNA_STYLES.'/jquery.fancybox.css', [], '3.2.0'); wp_register_script('jquery-fancybox', URNA_SCRIPTS.'/jquery.fancybox'.$suffix.'.js', ['jquery'], '2.1.7', true); wp_register_script('urna-script', URNA_SCRIPTS.'/functions'.$suffix.'.js', ['bootstrap'], URNA_THEME_VERSION, true); wp_register_script('urna-skins-script', URNA_SCRIPTS_SKINS.'/'.$skin.$suffix.'.js', ['urna-script'], URNA_THEME_VERSION, true); if (wp_is_mobile()) { wp_enqueue_script('jquery-fastclick', URNA_SCRIPTS.'/jquery.fastclick'.$suffix.'.js', ['jquery'], '1.0.6', true); } wp_enqueue_script('urna-skins-script'); if (urna_tbay_get_config('header_js') != '') { wp_add_inline_script('urna-script', urna_tbay_get_config('header_js')); } $config = urna_localize_translate(); wp_localize_script('urna-script', 'urna_settings', $config); } add_action('wp_enqueue_scripts', 'urna_tbay_scripts', 100); if (!function_exists('urna_localize_translate')) { function urna_localize_translate() { global $wp_query; $urna_hash_transient = get_transient('urna-hash-time'); if (false === $urna_hash_transient) { $urna_hash_transient = time(); set_transient('urna-hash-time', $urna_hash_transient); } $config = [ 'storage_key' => apply_filters('urna_storage_key', 'urna_'.md5(get_current_blog_id().'_'.get_site_url(get_current_blog_id(), '/').get_template().$urna_hash_transient)), 'active_theme' => urna_tbay_get_theme(), 'ajaxurl' => admin_url('admin-ajax.php'), 'search_nonce' => wp_create_nonce('search_nonce'), 'category_open' => apply_filters('urna_category_inside_class', ''), 'quantity_minus' => apply_filters('tbay_quantity_minus', '<i class="linear-icon-minus"></i>'), 'quantity_plus' => apply_filters('tbay_quantity_plus', '<i class="linear-icon-plus"></i>'), 'quantity_mode' => (bool) apply_filters('urna_quantity_mode', 10, 2), 'cancel' => esc_html__('cancel', 'urna'), 'show_all_text' => esc_html__('View all', 'urna'), 'search' => esc_html__('Search', 'urna'), 'posts' => json_encode($wp_query->query_vars), // everything about your loop is here 'max_page' => $wp_query->max_num_pages, 'mobile' => wp_is_mobile(), 'images_mode' => apply_filters('urna_woo_display_image_mode', 10, 2), ]; if (defined('URNA_WOOCOMMERCE_ACTIVED') && URNA_WOOCOMMERCE_ACTIVED) { $full_width = urna_check_full_width(); $position = apply_filters('urna_cart_position', 10, 2); $woo_mode = urna_tbay_woocommerce_get_display_mode(); // loader gif $loader = apply_filters('tbay_quick_view_loader_gif', URNA_IMAGES.'/ajax-loader.gif'); $config['current_page'] = get_query_var('paged') ? get_query_var('paged') : 1; $config['popup_cart_icon'] = apply_filters('urna_popup_cart_icon', '<i class="linear-icon-cross"></i>', 2); $config['popup_cart_noti'] = esc_html__('was added to shopping cart.', 'urna'); $config['cart_position'] = $position; $config['ajax_update_quantity'] = (bool) urna_tbay_get_config('ajax_update_quantity', true); $config['full_width'] = $full_width['active']; $config['display_mode'] = $woo_mode; $config['wc_ajax_url'] = WC_AJAX::get_endpoint('%%endpoint%%'); $config['loader'] = $loader; $config['ajax_popup_quick'] = apply_filters('urna_ajax_popup_quick', urna_is_ajax_popup_quick()); $config['enable_ajax_add_to_cart'] = (get_option('woocommerce_enable_ajax_add_to_cart') === 'yes') ? true : false; $config['single_product'] = apply_filters('urna_active_single_product', is_product(), 2); $config['single_layout'] = urna_get_single_select_layout(); } /*Element ready default callback*/ if (urna_elementor_is_activated()) { $config['elements_ready'] = [ 'slick' => urna_elements_ready_slick(), 'ajax_tabs' => urna_elements_ajax_tabs(), 'countdowntimer' => urna_elements_ready_countdown_timer(), 'layzyloadimage' => urna_elements_ready_layzyload_image(), 'treeview' => urna_elements_ready_treeview(), ]; $config['combined_css'] = urna_get_elementor_css_print_method(); } return apply_filters('urna_localize_translate', $config); } } function urna_tbay_footer_scripts() { if (urna_tbay_get_config('footer_js') != '') { $footer_js = urna_tbay_get_config('footer_js'); echo trim($footer_js); } } add_action('wp_footer', 'urna_tbay_footer_scripts'); add_action('login_enqueue_scripts', 'urna_tbay_load_admin_styles', 1000); add_action('admin_enqueue_scripts', 'urna_tbay_load_admin_styles', 1000); function urna_tbay_load_admin_styles() { wp_enqueue_style('material-design-iconic-font', URNA_STYLES.'/material-design-iconic-font.css', [], '2.2.0'); wp_enqueue_style('urna-custom-admin', URNA_STYLES.'/admin/custom-admin.css', [], '1.0.0'); } /** * Display descriptions in main navigation. * * @since Urna 1.0 * * @param string $item_output The menu item output. * @param WP_Post $item Menu item object. * @param int $depth Depth of the menu. * @param array $args wp_nav_menu() arguments. * * @return string Menu item with possible description. */ function urna_tbay_nav_description($item_output, $item, $depth, $args) { if ('primary' == $args->theme_location && $item->description) { $item_output = str_replace($args->link_after.'</a>', '<div class="menu-item-description">'.$item->description.'</div>'.$args->link_after.'</a>', $item_output); } return $item_output; } add_filter('walker_nav_menu_start_el', 'urna_tbay_nav_description', 10, 4); /**Remove fonts scripts**/ if (!function_exists('urna_tbay_remove_fonts_redux_url')) { function urna_tbay_remove_fonts_redux_url() { $show_typography = urna_tbay_get_config('show_typography', false); if (!$show_typography) { wp_dequeue_style('redux-google-fonts-urna_tbay_theme_options'); } } add_action('wp_enqueue_scripts', 'urna_tbay_remove_fonts_redux_url', 9999); } /** * Add a `screen-reader-text` class to the search form's submit button. * * @since Urna 1.0 * * @param string $html Search form HTML. * * @return string Modified search form HTML. */ function urna_tbay_search_form_modify($html) { return str_replace('class="search-submit"', 'class="search-submit screen-reader-text"', $html); } add_filter('get_search_form', 'urna_tbay_search_form_modify', 10, 1); function urna_tbay_get_config($name, $default = '') { global $urna_options; if (isset($urna_options[$name])) { return $urna_options[$name]; } return $default; } if (!function_exists('urna_time_link')) : /** * Gets a nicely formatted string for the published date. */ function urna_time_link() { $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>'; $time_string = sprintf( $time_string, get_the_date(DATE_W3C), get_the_date(), get_the_modified_date(DATE_W3C), get_the_modified_date() ); // Wrap the time string in a link, and preface it with 'Posted on'. return sprintf( /* translators: %s: post date */ __('%sPosted on%s %s', 'urna'), '<span class="screen-reader-text">', '</span>', '<a href="'.esc_url(get_permalink()).'" rel="bookmark">'.$time_string.'</a>' ); } endif; function urna_tbay_get_global_config($name, $default = '') { $options = get_option('urna_tbay_theme_options', []); if (isset($options[$name])) { return $options[$name]; } return $default; } function urna_tbay_get_load_plugins() { $plugins[] = ([ 'name' => 'Cmb2', 'slug' => 'cmb2', 'required' => true, ]); $plugins[] = ([ 'name' => 'WooCommerce', 'slug' => 'woocommerce', 'required' => true, ]); $plugins[] = ([ 'name' => 'MailChimp', 'slug' => 'mailchimp-for-wp', 'required' => true, ]); $plugins[] = ([ 'name' => 'Contact Form 7', 'slug' => 'contact-form-7', 'required' => true, ]); $plugins[] = ([ 'name' => 'WPBakery Visual Composer', 'slug' => 'js_composer', 'required' => true, 'source' => esc_url('plugins.thembay.com/js_composer.zip'), ]); $plugins[] = ([ 'name' => 'Urna Core', 'slug' => 'urna-core', 'required' => true, 'source' => esc_url('plugins.thembay.com/urna-core.zip'), ]); $plugins[] = ([ 'name' => 'Redux Framework', 'slug' => 'redux-framework', 'required' => true, ]); $plugins[] = ([ 'name' => 'WooCommerce Variation Swatches', 'slug' => 'woo-variation-swatches', 'required' => true, 'source' => esc_url('downloads.wordpress.org/plugin/woo-variation-swatches.zip'), ]); $plugins[] = ([ 'name' => 'WooCommerce Products Filter', 'slug' => 'woocommerce-products-filter', 'required' => true, 'source' => esc_url('plugins.thembay.com/woocommerce-products-filter.zip'), ]); $plugins[] = ([ 'name' => 'WooCommerce Photo Reviews', 'slug' => 'woo-photo-reviews', 'required' => false, ]); $plugins[] = ([ 'name' => 'Revolution Slider', 'slug' => 'revslider', 'required' => true, 'source' => esc_url('plugins.thembay.com/revslider.zip'), ]); $plugins[] = ([ 'name' => 'Elementor Page Builder', 'slug' => 'elementor', 'required' => true, ]); tgmpa($plugins); } require_once get_parent_theme_file_path(URNA_INC.'/plugins/class-tgm-plugin-activation.php'); /**Include Merlin Import Demo**/ require_once get_parent_theme_file_path(URNA_MERLIN.'/vendor/autoload.php'); require_once get_parent_theme_file_path(URNA_MERLIN.'/class-merlin.php'); require_once get_parent_theme_file_path(URNA_INC.'/merlin-config.php'); require_once get_parent_theme_file_path(URNA_INC.'/functions-helper.php'); require_once get_parent_theme_file_path(URNA_INC.'/functions-frontend.php'); require_once get_parent_theme_file_path(URNA_INC.'/functions-mobile.php'); require_once get_parent_theme_file_path(URNA_INC.'/skins/'.urna_tbay_get_theme().'/functions.php'); /** * Implement the Custom Header feature. */ require_once get_parent_theme_file_path(URNA_INC.'/custom-header.php'); /** * Classess file. */ /** * Implement the Custom Styles feature. */ require_once get_parent_theme_file_path(URNA_INC.'/custom-styles.php'); /* * Register Sidebar * */ if (!function_exists('urna_tbay_widgets_init')) { function urna_tbay_widgets_init() { /* Check Redux */ if (defined('URNA_CORE_ACTIVED') && URNA_CORE_ACTIVED) { register_sidebar([ 'name' => esc_html__('Newsletter Popup', 'urna'), 'id' => 'newsletter-popup', 'description' => esc_html__('Add widgets here to appear in your site.', 'urna'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ]); } /* End Check Redux */ register_sidebar([ 'name' => esc_html__('Sidebar Default', 'urna'), 'id' => 'sidebar-default', 'description' => esc_html__('Add widgets here to appear in your Sidebar.', 'urna'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ]); /* Check Redux */ if (defined('URNA_CORE_ACTIVED') && URNA_CORE_ACTIVED) { register_sidebar([ 'name' => esc_html__('Blog Archive Sidebar', 'urna'), 'id' => 'blog-archive-sidebar', 'description' => esc_html__('Add widgets here to appear in your sidebar.', 'urna'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ]); register_sidebar([ 'name' => esc_html__('Blog Single Sidebar', 'urna'), 'id' => 'blog-single-sidebar', 'description' => esc_html__('Add widgets here to appear in your sidebar.', 'urna'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ]); register_sidebar([ 'name' => esc_html__('Product Top Archive Product', 'urna'), 'id' => 'product-top-archive', 'description' => esc_html__('Add widgets here to appear in your sidebar.', 'urna'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ]); register_sidebar([ 'name' => esc_html__('Product Archive Sidebar', 'urna'), 'id' => 'product-archive', 'description' => esc_html__('Add widgets here to appear in Product archive left, right sidebar.', 'urna'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ]); register_sidebar([ 'name' => esc_html__('Product Single Inner Sidebar', 'urna'), 'id' => 'product-single', 'description' => esc_html__('Add widgets here to appear in Product single left, right sidebar.', 'urna'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ]); register_sidebar([ 'name' => esc_html__('Product Single Normal Sidebar', 'urna'), 'id' => 'product-single-normal', 'description' => esc_html__('Add widgets here to appear in Product single left, right sidebar.', 'urna'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ]); register_sidebar([ 'name' => esc_html__('Product Sidebar Mobile', 'urna'), 'id' => 'sidebar-mobile', 'description' => esc_html__('Add widgets here to appear in Product archive in mobile', 'urna'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ]); } /* End Check Redux */ /* Check WPML */ if (urna_wpml_is_activated()) { register_sidebar([ 'name' => esc_html__('WPML Sidebar', 'urna'), 'id' => 'wpml-sidebar', 'description' => esc_html__('Add widgets here to appear.', 'urna'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ]); } /* End check WPML */ register_sidebar([ 'name' => esc_html__('Footer', 'urna'), 'id' => 'footer', 'description' => esc_html__('Add widgets here to appear in your sidebar.', 'urna'), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>', ]); } add_action('widgets_init', 'urna_tbay_widgets_init'); } if (!function_exists('urna_dokan_theme_store_sidebar')) { function urna_dokan_theme_store_sidebar() { if (function_exists('dokan_get_option') && dokan_get_option('enable_theme_store_sidebar', 'dokan_appearance', 'off') === 'off' && dokan_is_store_page()) { return true; } else { return false; } } } require_once get_parent_theme_file_path(URNA_CLASSES.'/megamenu.php'); require_once get_parent_theme_file_path(URNA_CLASSES.'/custommenu.php'); require_once get_parent_theme_file_path(URNA_CLASSES.'/mmenu.php'); /** * Custom template tags for this theme. */ require_once get_parent_theme_file_path(URNA_INC.'/template-tags.php'); require_once get_parent_theme_file_path(URNA_INC.'/template-hooks.php'); if (urna_is_cmb2()) { require_once get_parent_theme_file_path(URNA_VENDORS.'/cmb2/page.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/cmb2/post.php'); } if (urna_wpml_is_activated()) { require_once get_parent_theme_file_path(URNA_VENDORS.'/compatible/wpml.php'); } if (urna_is_Woocommerce_activated()) { require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/wc-admin.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/skins/'.urna_tbay_get_theme().'.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/wc-functions.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/wc-recently-viewed.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/wc-shop.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/wc-single-functions.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/wc-hooks.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/compatible/wc_vendors.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/compatible/wc-dokan.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/compatible/wcfm_multivendor.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/compatible/mvx_vendor.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/compatible/woo-brand-pro.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/compatible/woo-variation-swatches-pro.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/compatible/wc-advanced-free-shipping.php'); /**Modules**/ require_once( get_parent_theme_file_path( URNA_VENDORS . '/woocommerce/modules/size-guid.php') ); require_once( get_parent_theme_file_path( URNA_VENDORS . '/woocommerce/modules/delivery-return.php') ); require_once( get_parent_theme_file_path( URNA_VENDORS . '/woocommerce/modules/aska-question.php') ); require_once get_parent_theme_file_path(URNA_VENDORS.'/woocommerce/compatible/customize-checkout-payment.php'); } require_once get_parent_theme_file_path(URNA_VENDORS.'/visualcomposer/functions.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/visualcomposer/vc-maps.php'); if (urna_is_Woocommerce_activated()) { require_once get_parent_theme_file_path(URNA_VENDORS.'/visualcomposer/vc-maps-woo.php'); } if (defined('URNA_CORE_ACTIVED')) { require_once get_parent_theme_file_path(URNA_WIDGETS.'/custom_menu.php'); require_once get_parent_theme_file_path(URNA_WIDGETS.'/list-categories.php'); require_once get_parent_theme_file_path(URNA_WIDGETS.'/popular_posts.php'); if (function_exists('mc4wp_show_form')) { require_once get_parent_theme_file_path(URNA_WIDGETS.'/popup_newsletter.php'); } require_once get_parent_theme_file_path(URNA_WIDGETS.'/posts.php'); require_once get_parent_theme_file_path(URNA_WIDGETS.'/recent_comment.php'); require_once get_parent_theme_file_path(URNA_WIDGETS.'/recent_post.php'); require_once get_parent_theme_file_path(URNA_WIDGETS.'/single_image.php'); require_once get_parent_theme_file_path(URNA_WIDGETS.'/banner_image.php'); require_once get_parent_theme_file_path(URNA_WIDGETS.'/socials.php'); require_once get_parent_theme_file_path(URNA_WIDGETS.'/top_rate.php'); require_once get_parent_theme_file_path(URNA_WIDGETS.'/video.php'); require_once get_parent_theme_file_path(URNA_WIDGETS.'/woo-carousel.php'); require_once get_parent_theme_file_path(URNA_WIDGETS.'/yith-brand-image.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/redux-framework/redux-config.php'); } /** * Customizer additions. */ require_once get_parent_theme_file_path(URNA_INC.'/skins/'.urna_tbay_get_theme().'/customizer.php'); if (urna_elementor_is_activated()) { require_once get_parent_theme_file_path(URNA_VENDORS.'/elementor/class-elementor.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/elementor/class-elementor-pro.php'); require_once get_parent_theme_file_path(URNA_VENDORS.'/elementor/icons/icons.php'); }<!DOCTYPE html> <html lang="tr" class="no-js"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="profile" href="//gmpg.org/xfn/11" /> <meta name='robots' content='max-image-preview:large' /> <link rel="alternate" title="oEmbed (JSON)" type="application/json+oembed" href="https://mobimsa.com/index.php/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fmobimsa.com%2Findex.php%2Ftop-rated-products%2F" /> <link rel="alternate" title="oEmbed (XML)" type="text/xml+oembed" href="https://mobimsa.com/index.php/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fmobimsa.com%2Findex.php%2Ftop-rated-products%2F&format=xml" /> <style id='wp-img-auto-sizes-contain-inline-css' type='text/css'> img:is([sizes=auto i],[sizes^="auto," i]){contain-intrinsic-size:3000px 1500px} /*# sourceURL=wp-img-auto-sizes-contain-inline-css */ </style> <link rel='stylesheet' id='easy-autocomplete-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/js/easy-autocomplete/easy-autocomplete.min.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='easy-autocomplete-theme-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/js/easy-autocomplete/easy-autocomplete.themes.min.css?ver=3.3.6.5' type='text/css' media='all' /> <style id='wp-emoji-styles-inline-css' type='text/css'> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 0.07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } /*# sourceURL=wp-emoji-styles-inline-css */ </style> <link rel='stylesheet' id='wp-block-library-css' href='https://mobimsa.com/wp-includes/css/dist/block-library/style.min.css?ver=6.9.1' type='text/css' media='all' /> <style id='classic-theme-styles-inline-css' type='text/css'> /*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} /*# sourceURL=/wp-includes/css/classic-themes.min.css */ </style> <link rel='stylesheet' id='contact-form-7-css' href='https://mobimsa.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=6.0.6' type='text/css' media='all' /> <link rel='stylesheet' id='sr7css-css' href='//mobimsa.com/wp-content/plugins/revslider/public/css/sr7.css?ver=6.7.32' type='text/css' media='all' /> <link rel='stylesheet' id='woof-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/css/front.css?ver=3.3.6.5' type='text/css' media='all' /> <style id='woof-inline-css' type='text/css'> .woof_products_top_panel li span, .woof_products_top_panel2 li span{background: url(https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/img/delete.png);background-size: 14px 14px;background-repeat: no-repeat;background-position: right;} .woof_edit_view{ display: none; } /*# sourceURL=woof-inline-css */ </style> <link rel='stylesheet' id='chosen-drop-down-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/js/chosen/chosen.min.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='icheck-jquery-color-flat-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/js/icheck/skins/flat/_all.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='icheck-jquery-color-square-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/js/icheck/skins/square/_all.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='icheck-jquery-color-minimal-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/js/icheck/skins/minimal/_all.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_by_author_html_items-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/by_author/css/by_author.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_by_backorder_html_items-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/by_backorder/css/by_backorder.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_by_featured_html_items-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/by_featured/css/by_featured.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_by_instock_html_items-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/by_instock/css/by_instock.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_by_onsales_html_items-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/by_onsales/css/by_onsales.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_by_sku_html_items-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/by_sku/css/by_sku.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_color_html_items-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/color/css/html_types/color.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_image_html_items-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/image/css/html_types/image.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_label_html_items-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/label/css/html_types/label.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_select_hierarchy_html_items-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/select_hierarchy/css/html_types/select_hierarchy.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_select_radio_check_html_items-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/select_radio_check/css/html_types/select_radio_check.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_slider_html_items-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/slider/css/html_types/slider.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_sd_html_items_checkbox-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/smart_designer/css/elements/checkbox.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_sd_html_items_radio-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/smart_designer/css/elements/radio.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_sd_html_items_switcher-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/smart_designer/css/elements/switcher.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_sd_html_items_color-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/smart_designer/css/elements/color.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_sd_html_items_tooltip-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/smart_designer/css/tooltip.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof_sd_html_items_front-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/ext/smart_designer/css/front.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woof-switcher23-css' href='https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/css/switcher.css?ver=3.3.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='woocommerce-layout-css' href='https://mobimsa.com/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=9.8.6' type='text/css' media='all' /> <link rel='stylesheet' id='woocommerce-smallscreen-css' href='https://mobimsa.com/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=9.8.6' type='text/css' media='only screen and (max-width: 768px)' /> <link rel='stylesheet' id='woocommerce-general-css' href='https://mobimsa.com/wp-content/plugins/woocommerce/assets/css/woocommerce.css?ver=9.8.6' type='text/css' media='all' /> <style id='woocommerce-inline-inline-css' type='text/css'> .woocommerce form .form-row .required { visibility: visible; } /*# sourceURL=woocommerce-inline-inline-css */ </style> <link rel='stylesheet' id='woo-variation-swatches-css' href='https://mobimsa.com/wp-content/plugins/woo-variation-swatches/assets/css/frontend.min.css?ver=1746223402' type='text/css' media='all' /> <style id='woo-variation-swatches-inline-css' type='text/css'> :root { --wvs-tick:url("data:image/svg+xml;utf8,%3Csvg filter='drop-shadow(0px 0px 2px rgb(0 0 0 / .8))' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M4 16L11 23 27 7'/%3E%3C/svg%3E"); --wvs-cross:url("data:image/svg+xml;utf8,%3Csvg filter='drop-shadow(0px 0px 5px rgb(255 255 255 / .6))' xmlns='http://www.w3.org/2000/svg' width='72px' height='72px' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ff0000' stroke-linecap='round' stroke-width='0.6' d='M5 5L19 19M19 5L5 19'/%3E%3C/svg%3E"); --wvs-single-product-item-width:30px; --wvs-single-product-item-height:30px; --wvs-single-product-item-font-size:16px} /*# sourceURL=woo-variation-swatches-inline-css */ </style> <link rel='stylesheet' id='brands-styles-css' href='https://mobimsa.com/wp-content/plugins/woocommerce/assets/css/brands.css?ver=9.8.6' type='text/css' media='all' /> <link rel='stylesheet' id='js_composer_front-css' href='https://mobimsa.com/wp-content/plugins/js_composer/assets/css/js_composer.min.css?ver=8.4.1' type='text/css' media='all' /> <link rel='stylesheet' id='urna-style-css' href='https://mobimsa.com/wp-content/themes/urna/style.css?ver=6.9.1' type='text/css' media='all' /> <link rel='stylesheet' id='urna-child-style-css' href='https://mobimsa.com/wp-content/themes/urna-child/style.css?ver=2.4.8' type='text/css' media='all' /> <script type="text/javascript" src="https://mobimsa.com/wp-includes/js/jquery/jquery.min.js?ver=3.7.1" id="jquery-core-js"></script> <script type="text/javascript" src="https://mobimsa.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1" id="jquery-migrate-js"></script> <script type="text/javascript" src="https://mobimsa.com/wp-content/plugins/woocommerce-products-filter/js/easy-autocomplete/jquery.easy-autocomplete.min.js?ver=3.3.6.5" id="easy-autocomplete-js"></script> <script type="text/javascript" src="//mobimsa.com/wp-content/plugins/revslider/public/js/libs/tptools.js?ver=6.7.32" id="tp-tools-js" async="async" data-wp-strategy="async"></script> <script type="text/javascript" src="//mobimsa.com/wp-content/plugins/revslider/public/js/sr7.js?ver=6.7.32" id="sr7-js" async="async" data-wp-strategy="async"></script> <script type="text/javascript" src="https://mobimsa.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.7.0-wc.9.8.6" id="jquery-blockui-js" data-wp-strategy="defer"></script> <script type="text/javascript" id="wc-add-to-cart-js-extra"> /* <![CDATA[ */ var wc_add_to_cart_params = {"ajax_url":"/wp-admin/admin-ajax.php","wc_ajax_url":"/?wc-ajax=%%endpoint%%","i18n_view_cart":"Sepetim","cart_url":"https://mobimsa.com/index.php/cart-2/","is_cart":"","cart_redirect_after_add":"no"}; //# sourceURL=wc-add-to-cart-js-extra /* ]]> */ </script> <script type="text/javascript" src="https://mobimsa.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=9.8.6" id="wc-add-to-cart-js" data-wp-strategy="defer"></script> <script type="text/javascript" src="https://mobimsa.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4-wc.9.8.6" id="js-cookie-js" defer="defer" data-wp-strategy="defer"></script> <script type="text/javascript" id="woocommerce-js-extra"> /* <![CDATA[ */ var woocommerce_params = {"ajax_url":"/wp-admin/admin-ajax.php","wc_ajax_url":"/?wc-ajax=%%endpoint%%","i18n_password_show":"\u015eifreyi g\u00f6ster","i18n_password_hide":"\u015eifreyi gizle"}; //# sourceURL=woocommerce-js-extra /* ]]> */ </script> <script type="text/javascript" src="https://mobimsa.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=9.8.6" id="woocommerce-js" defer="defer" data-wp-strategy="defer"></script> <script type="text/javascript" src="https://mobimsa.com/wp-content/plugins/js_composer/assets/js/vendors/woocommerce-add-to-cart.js?ver=8.4.1" id="vc_woocommerce-add-to-cart-js-js"></script> <script></script><link rel="https://api.w.org/" href="https://mobimsa.com/index.php/wp-json/" /><link rel="alternate" title="JSON" type="application/json" href="https://mobimsa.com/index.php/wp-json/wp/v2/pages/6547" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://mobimsa.com/xmlrpc.php?rsd" /> <meta name="generator" content="WordPress 6.9.1" /> <meta name="generator" content="WooCommerce 9.8.6" /> <link rel="canonical" href="https://mobimsa.com/index.php/top-rated-products/" /> <link rel='shortlink' href='https://mobimsa.com/?p=6547' /> <meta name="generator" content="Redux 4.5.7" /> <noscript><style>.woocommerce-product-gallery{ opacity: 1 !important; }</style></noscript> <meta name="generator" content="Elementor 3.28.4; features: e_font_icon_svg, additional_custom_breakpoints, e_local_google_fonts, e_element_cache; settings: css_print_method-external, google_font-enabled, font_display-swap"> <style> .e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded):not(.e-no-lazyload), .e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded):not(.e-no-lazyload) * { background-image: none !important; } @media screen and (max-height: 1024px) { .e-con.e-parent:nth-of-type(n+3):not(.e-lazyloaded):not(.e-no-lazyload), .e-con.e-parent:nth-of-type(n+3):not(.e-lazyloaded):not(.e-no-lazyload) * { background-image: none !important; } } @media screen and (max-height: 640px) { .e-con.e-parent:nth-of-type(n+2):not(.e-lazyloaded):not(.e-no-lazyload), .e-con.e-parent:nth-of-type(n+2):not(.e-lazyloaded):not(.e-no-lazyload) * { background-image: none !important; } } </style> <meta name="generator" content="Powered by WPBakery Page Builder - drag and drop page builder for WordPress."/> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin> <meta name="generator" content="Powered by Slider Revolution 6.7.32 - responsive, Mobile-Friendly Slider Plugin for WordPress with comfortable drag and drop interface." /> <style class='wp-fonts-local' type='text/css'> @font-face{font-family:Inter;font-style:normal;font-weight:300 900;font-display:fallback;src:url('https://mobimsa.com/wp-content/plugins/woocommerce/assets/fonts/Inter-VariableFont_slnt,wght.woff2') format('woff2');font-stretch:normal;} @font-face{font-family:Cardo;font-style:normal;font-weight:400;font-display:fallback;src:url('https://mobimsa.com/wp-content/plugins/woocommerce/assets/fonts/cardo_normal_400.woff2') format('woff2');} </style> <script> window._tpt ??= {}; window.SR7 ??= {}; _tpt.R ??= {}; _tpt.R.fonts ??= {}; _tpt.R.fonts.customFonts??= {}; SR7.devMode = false; SR7.F ??= {}; SR7.G ??= {}; SR7.LIB ??= {}; SR7.E ??= {}; SR7.E.gAddons ??= {}; SR7.E.php ??= {}; SR7.E.nonce = '64fcf656cb'; SR7.E.ajaxurl = 'https://mobimsa.com/wp-admin/admin-ajax.php'; SR7.E.resturl = 'https://mobimsa.com/index.php/wp-json/'; SR7.E.slug_path = 'revslider/revslider.php'; SR7.E.slug = 'revslider'; SR7.E.plugin_url = 'https://mobimsa.com/wp-content/plugins/revslider/'; SR7.E.wp_plugin_url = 'https://mobimsa.com/wp-content/plugins/'; SR7.E.revision = '6.7.32'; SR7.E.fontBaseUrl = ''; SR7.G.breakPoints = [1240,1024,778,480]; SR7.E.modules = ['module','page','slide','layer','draw','animate','srtools','canvas','defaults','carousel','navigation','media','modifiers','migration']; SR7.E.libs = ['WEBGL']; SR7.E.css = ['csslp','cssbtns','cssfilters','cssnav','cssmedia']; SR7.E.resources = {}; SR7.JSON ??= {}; /*! Slider Revolution 7.0 - Page Processor */ !function(){"use strict";window.SR7??={},window._tpt??={},SR7.version="Slider Revolution 6.7.16",_tpt.getMobileZoom=()=>_tpt.is_mobile?document.documentElement.clientWidth/window.innerWidth:1,_tpt.getWinDim=function(t){_tpt.screenHeightWithUrlBar??=window.innerHeight;let e=SR7.F?.modal?.visible&&SR7.M[SR7.F.module.getIdByAlias(SR7.F.modal.requested)];_tpt.scrollBar=window.innerWidth!==document.documentElement.clientWidth||e&&window.innerWidth!==e.c.module.clientWidth,_tpt.winW=_tpt.getMobileZoom()*window.innerWidth-(_tpt.scrollBar||"prepare"==t?_tpt.scrollBarW??_tpt.mesureScrollBar():0),_tpt.winH=_tpt.getMobileZoom()*window.innerHeight,_tpt.winWAll=document.documentElement.clientWidth},_tpt.getResponsiveLevel=function(t,e){SR7.M[e];return _tpt.closestGE(t,_tpt.winWAll)},_tpt.mesureScrollBar=function(){let t=document.createElement("div");return t.className="RSscrollbar-measure",t.style.width="100px",t.style.height="100px",t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t),_tpt.scrollBarW=t.offsetWidth-t.clientWidth,document.body.removeChild(t),_tpt.scrollBarW},_tpt.loadCSS=async function(t,e,s){return s?_tpt.R.fonts.required[e].status=1:(_tpt.R[e]??={},_tpt.R[e].status=1),new Promise(((i,n)=>{if(_tpt.isStylesheetLoaded(t))s?_tpt.R.fonts.required[e].status=2:_tpt.R[e].status=2,i();else{const o=document.createElement("link");o.rel="stylesheet";let l="text",r="css";o["type"]=l+"/"+r,o.href=t,o.onload=()=>{s?_tpt.R.fonts.required[e].status=2:_tpt.R[e].status=2,i()},o.onerror=()=>{s?_tpt.R.fonts.required[e].status=3:_tpt.R[e].status=3,n(new Error(`Failed to load CSS: ${t}`))},document.head.appendChild(o)}}))},_tpt.addContainer=function(t){const{tag:e="div",id:s,class:i,datas:n,textContent:o,iHTML:l}=t,r=document.createElement(e);if(s&&""!==s&&(r.id=s),i&&""!==i&&(r.className=i),n)for(const[t,e]of Object.entries(n))"style"==t?r.style.cssText=e:r.setAttribute(`data-${t}`,e);return o&&(r.textContent=o),l&&(r.innerHTML=l),r},_tpt.collector=function(){return{fragment:new DocumentFragment,add(t){var e=_tpt.addContainer(t);return this.fragment.appendChild(e),e},append(t){t.appendChild(this.fragment)}}},_tpt.isStylesheetLoaded=function(t){let e=t.split("?")[0];return Array.from(document.querySelectorAll('link[rel="stylesheet"], link[rel="preload"]')).some((t=>t.href.split("?")[0]===e))},_tpt.preloader={requests:new Map,preloaderTemplates:new Map,show:function(t,e){if(!e||!t)return;const{type:s,color:i}=e;if(s<0||"off"==s)return;const n=`preloader_${s}`;let o=this.preloaderTemplates.get(n);o||(o=this.build(s,i),this.preloaderTemplates.set(n,o)),this.requests.has(t)||this.requests.set(t,{count:0});const l=this.requests.get(t);clearTimeout(l.timer),l.count++,1===l.count&&(l.timer=setTimeout((()=>{l.preloaderClone=o.cloneNode(!0),l.anim&&l.anim.kill(),void 0!==_tpt.gsap?l.anim=_tpt.gsap.fromTo(l.preloaderClone,1,{opacity:0},{opacity:1}):l.preloaderClone.classList.add("sr7-fade-in"),t.appendChild(l.preloaderClone)}),150))},hide:function(t){if(!this.requests.has(t))return;const e=this.requests.get(t);e.count--,e.count<0&&(e.count=0),e.anim&&e.anim.kill(),0===e.count&&(clearTimeout(e.timer),e.preloaderClone&&(e.preloaderClone.classList.remove("sr7-fade-in"),e.anim=_tpt.gsap.to(e.preloaderClone,.3,{opacity:0,onComplete:function(){e.preloaderClone.remove()}})))},state:function(t){if(!this.requests.has(t))return!1;return this.requests.get(t).count>0},build:(t,e="#ffffff",s="")=>{if(t<0||"off"===t)return null;const i=parseInt(t);if(t="prlt"+i,isNaN(i))return null;if(_tpt.loadCSS(SR7.E.plugin_url+"public/css/preloaders/t"+i+".css","preloader_"+t),isNaN(i)||i<6){const n=`background-color:${e}`,o=1===i||2==i?n:"",l=3===i||4==i?n:"",r=_tpt.collector();["dot1","dot2","bounce1","bounce2","bounce3"].forEach((t=>r.add({tag:"div",class:t,datas:{style:l}})));const d=_tpt.addContainer({tag:"sr7-prl",class:`${t} ${s}`,datas:{style:o}});return r.append(d),d}{let n={};if(7===i){let t;e.startsWith("#")?(t=e.replace("#",""),t=`rgba(${parseInt(t.substring(0,2),16)}, ${parseInt(t.substring(2,4),16)}, ${parseInt(t.substring(4,6),16)}, `):e.startsWith("rgb")&&(t=e.slice(e.indexOf("(")+1,e.lastIndexOf(")")).split(",").map((t=>t.trim())),t=`rgba(${t[0]}, ${t[1]}, ${t[2]}, `),t&&(n.style=`border-top-color: ${t}0.65); border-bottom-color: ${t}0.15); border-left-color: ${t}0.65); border-right-color: ${t}0.15)`)}else 12===i&&(n.style=`background:${e}`);const o=[10,0,4,2,5,9,0,4,4,2][i-6],l=_tpt.collector(),r=l.add({tag:"div",class:"sr7-prl-inner",datas:n});Array.from({length:o}).forEach((()=>r.appendChild(l.add({tag:"span",datas:{style:`background:${e}`}}))));const d=_tpt.addContainer({tag:"sr7-prl",class:`${t} ${s}`});return l.append(d),d}}},SR7.preLoader={show:(t,e)=>{"off"!==(SR7.M[t]?.settings?.pLoader?.type??"off")&&_tpt.preloader.show(e||SR7.M[t].c.module,SR7.M[t]?.settings?.pLoader??{color:"#fff",type:10})},hide:(t,e)=>{"off"!==(SR7.M[t]?.settings?.pLoader?.type??"off")&&_tpt.preloader.hide(e||SR7.M[t].c.module)},state:(t,e)=>_tpt.preloader.state(e||SR7.M[t].c.module)},_tpt.prepareModuleHeight=function(t){window.SR7.M??={},window.SR7.M[t.id]??={},"ignore"==t.googleFont&&(SR7.E.ignoreGoogleFont=!0);let e=window.SR7.M[t.id];if(null==_tpt.scrollBarW&&_tpt.mesureScrollBar(),e.c??={},e.states??={},e.settings??={},e.settings.size??={},t.fixed&&(e.settings.fixed=!0),e.c.module=document.querySelector("sr7-module#"+t.id),e.c.adjuster=e.c.module.getElementsByTagName("sr7-adjuster")[0],e.c.content=e.c.module.getElementsByTagName("sr7-content")[0],"carousel"==t.type&&(e.c.carousel=e.c.content.getElementsByTagName("sr7-carousel")[0]),null==e.c.module||null==e.c.module)return;t.plType&&t.plColor&&(e.settings.pLoader={type:t.plType,color:t.plColor}),void 0===t.plType||"off"===t.plType||SR7.preLoader.state(t.id)&&SR7.preLoader.state(t.id,e.c.module)||SR7.preLoader.show(t.id,e.c.module),_tpt.winW||_tpt.getWinDim("prepare"),_tpt.getWinDim();let s=""+e.c.module.dataset?.modal;"modal"==s||"true"==s||"undefined"!==s&&"false"!==s||(e.settings.size.fullWidth=t.size.fullWidth,e.LEV??=_tpt.getResponsiveLevel(window.SR7.G.breakPoints,t.id),t.vpt=_tpt.fillArray(t.vpt,5),e.settings.vPort=t.vpt[e.LEV],void 0!==t.el&&"720"==t.el[4]&&t.gh[4]!==t.el[4]&&"960"==t.el[3]&&t.gh[3]!==t.el[3]&&"768"==t.el[2]&&t.gh[2]!==t.el[2]&&delete t.el,e.settings.size.height=null==t.el||null==t.el[e.LEV]||0==t.el[e.LEV]||"auto"==t.el[e.LEV]?_tpt.fillArray(t.gh,5,-1):_tpt.fillArray(t.el,5,-1),e.settings.size.width=_tpt.fillArray(t.gw,5,-1),e.settings.size.minHeight=_tpt.fillArray(t.mh??[0],5,-1),e.cacheSize={fullWidth:e.settings.size?.fullWidth,fullHeight:e.settings.size?.fullHeight},void 0!==t.off&&(t.off?.t&&(e.settings.size.m??={})&&(e.settings.size.m.t=t.off.t),t.off?.b&&(e.settings.size.m??={})&&(e.settings.size.m.b=t.off.b),t.off?.l&&(e.settings.size.p??={})&&(e.settings.size.p.l=t.off.l),t.off?.r&&(e.settings.size.p??={})&&(e.settings.size.p.r=t.off.r),e.offsetPrepared=!0),_tpt.updatePMHeight(t.id,t,!0))},_tpt.updatePMHeight=(t,e,s)=>{let i=SR7.M[t];var n=i.settings.size.fullWidth?_tpt.winW:i.c.module.parentNode.offsetWidth;n=0===n||isNaN(n)?_tpt.winW:n;let o=i.settings.size.width[i.LEV]||i.settings.size.width[i.LEV++]||i.settings.size.width[i.LEV--]||n,l=i.settings.size.height[i.LEV]||i.settings.size.height[i.LEV++]||i.settings.size.height[i.LEV--]||0,r=i.settings.size.minHeight[i.LEV]||i.settings.size.minHeight[i.LEV++]||i.settings.size.minHeight[i.LEV--]||0;if(l="auto"==l?0:l,l=parseInt(l),"carousel"!==e.type&&(n-=parseInt(e.onw??0)||0),i.MP=!i.settings.size.fullWidth&&n<o||_tpt.winW<o?Math.min(1,n/o):1,e.size.fullScreen||e.size.fullHeight){let t=parseInt(e.fho)||0,s=(""+e.fho).indexOf("%")>-1;e.newh=_tpt.winH-(s?_tpt.winH*t/100:t)}else e.newh=i.MP*Math.max(l,r);if(e.newh+=(parseInt(e.onh??0)||0)+(parseInt(e.carousel?.pt)||0)+(parseInt(e.carousel?.pb)||0),void 0!==e.slideduration&&(e.newh=Math.max(e.newh,parseInt(e.slideduration)/3)),e.shdw&&_tpt.buildShadow(e.id,e),i.c.adjuster.style.height=e.newh+"px",i.c.module.style.height=e.newh+"px",i.c.content.style.height=e.newh+"px",i.states.heightPrepared=!0,i.dims??={},i.dims.moduleRect=i.c.module.getBoundingClientRect(),i.c.content.style.left="-"+i.dims.moduleRect.left+"px",!i.settings.size.fullWidth)return s&&requestAnimationFrame((()=>{n!==i.c.module.parentNode.offsetWidth&&_tpt.updatePMHeight(e.id,e)})),void _tpt.bgStyle(e.id,e,window.innerWidth==_tpt.winW,!0);_tpt.bgStyle(e.id,e,window.innerWidth==_tpt.winW,!0),requestAnimationFrame((function(){s&&requestAnimationFrame((()=>{n!==i.c.module.parentNode.offsetWidth&&_tpt.updatePMHeight(e.id,e)}))})),i.earlyResizerFunction||(i.earlyResizerFunction=function(){requestAnimationFrame((function(){_tpt.getWinDim(),_tpt.moduleDefaults(e.id,e),_tpt.updateSlideBg(t,!0)}))},window.addEventListener("resize",i.earlyResizerFunction))},_tpt.buildShadow=function(t,e){let s=SR7.M[t];null==s.c.shadow&&(s.c.shadow=document.createElement("sr7-module-shadow"),s.c.shadow.classList.add("sr7-shdw-"+e.shdw),s.c.content.appendChild(s.c.shadow))},_tpt.bgStyle=async(t,e,s,i,n)=>{const o=SR7.M[t];if((e=e??o.settings).fixed&&!o.c.module.classList.contains("sr7-top-fixed")&&(o.c.module.classList.add("sr7-top-fixed"),o.c.module.style.position="fixed",o.c.module.style.width="100%",o.c.module.style.top="0px",o.c.module.style.left="0px",o.c.module.style.pointerEvents="none",o.c.module.style.zIndex=5e3,o.c.content.style.pointerEvents="none"),null==o.c.bgcanvas){let t=document.createElement("sr7-module-bg"),l=!1;if("string"==typeof e?.bg?.color&&e?.bg?.color.includes("{"))if(_tpt.gradient&&_tpt.gsap)e.bg.color=_tpt.gradient.convert(e.bg.color);else try{let t=JSON.parse(e.bg.color);(t?.orig||t?.string)&&(e.bg.color=JSON.parse(e.bg.color))}catch(t){return}let r="string"==typeof e?.bg?.color?e?.bg?.color||"transparent":e?.bg?.color?.string??e?.bg?.color?.orig??e?.bg?.color?.color??"transparent";if(t.style["background"+(String(r).includes("grad")?"":"Color")]=r,("transparent"!==r||n)&&(l=!0),o.offsetPrepared&&(t.style.visibility="hidden"),e?.bg?.image?.src&&(t.style.backgroundImage=`url(${e?.bg?.image.src})`,t.style.backgroundSize=""==(e.bg.image?.size??"")?"cover":e.bg.image.size,t.style.backgroundPosition=e.bg.image.position,t.style.backgroundRepeat=""==e.bg.image.repeat||null==e.bg.image.repeat?"no-repeat":e.bg.image.repeat,l=!0),!l)return;o.c.bgcanvas=t,e.size.fullWidth?t.style.width=_tpt.winW-(s&&_tpt.winH<document.body.offsetHeight?_tpt.scrollBarW:0)+"px":i&&(t.style.width=o.c.module.offsetWidth+"px"),e.sbt?.use?o.c.content.appendChild(o.c.bgcanvas):o.c.module.appendChild(o.c.bgcanvas)}o.c.bgcanvas.style.height=void 0!==e.newh?e.newh+"px":("carousel"==e.type?o.dims.module.h:o.dims.content.h)+"px",o.c.bgcanvas.style.left=!s&&e.sbt?.use||o.c.bgcanvas.closest("SR7-CONTENT")?"0px":"-"+(o?.dims?.moduleRect?.left??0)+"px"},_tpt.updateSlideBg=function(t,e){const s=SR7.M[t];let i=s.settings;s?.c?.bgcanvas&&(i.size.fullWidth?s.c.bgcanvas.style.width=_tpt.winW-(e&&_tpt.winH<document.body.offsetHeight?_tpt.scrollBarW:0)+"px":preparing&&(s.c.bgcanvas.style.width=s.c.module.offsetWidth+"px"))},_tpt.moduleDefaults=(t,e)=>{let s=SR7.M[t];null!=s&&null!=s.c&&null!=s.c.module&&(s.dims??={},s.dims.moduleRect=s.c.module.getBoundingClientRect(),s.c.content.style.left="-"+s.dims.moduleRect.left+"px",s.c.content.style.width=_tpt.winW-_tpt.scrollBarW+"px","carousel"==e.type&&(s.c.module.style.overflow="visible"),_tpt.bgStyle(t,e,window.innerWidth==_tpt.winW))},_tpt.getOffset=t=>{var e=t.getBoundingClientRect(),s=window.pageXOffset||document.documentElement.scrollLeft,i=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+i,left:e.left+s}},_tpt.fillArray=function(t,e){let s,i;t=Array.isArray(t)?t:[t];let n=Array(e),o=t.length;for(i=0;i<t.length;i++)n[i+(e-o)]=t[i],null==s&&"#"!==t[i]&&(s=t[i]);for(let t=0;t<e;t++)void 0!==n[t]&&"#"!=n[t]||(n[t]=s),s=n[t];return n},_tpt.closestGE=function(t,e){let s=Number.MAX_VALUE,i=-1;for(let n=0;n<t.length;n++)t[n]-1>=e&&t[n]-1-e<s&&(s=t[n]-1-e,i=n);return++i}}();</script> <style type="text/css" data-type="vc_shortcodes-custom-css">.vc_custom_1556078259716{padding-top: 50px !important;}</style><noscript><style> .wpb_animate_when_almost_visible { opacity: 1; }</style></noscript></head> <body class="wp-singular page-template-default page page-id-6547 wp-theme-urna wp-child-theme-urna-child theme-urna woocommerce-no-js woo-variation-swatches wvs-behavior-blur wvs-theme-urna-child wvs-show-label wvs-tooltip wpb-js-composer js-comp-ver-8.4.1 vc_responsive elementor-default elementor-kit-11363"> <div id="wrapper-container" class="wrapper-container">