Submit
Path:
~
/
home
/
getwphos
/
public_html
/
shellfish
/
wp-content
/
plugins
/
uipro
/
widgets
/
uiadvancedproduct-category
/
File Content:
config.php
<?php /** * UIPro Advanced Product Slideshow config class * * @version 1.0.0 * @author TemPlaza * @package UIPro/Classes * @category Classes */ /** * Prevent loading this file directly */ defined( 'ABSPATH' ) || exit; use Elementor\Controls_Manager; use Elementor\Group_Control_Typography; use Elementor\Core\Schemes\Typography; require_once plugin_dir_path( __DIR__ ).'uiadvancedproducts/helper.php'; if ( ! class_exists( 'UIPro_Config_Uiadvancedproduct_Category' ) ) { /** * Class UIPro_Config_Uiadvancedproduct_Category */ class UIPro_Config_Uiadvancedproduct_Category extends UIPro_Abstract_Config { /** * UIPro_Config_Uiadvancedproduct_Category constructor. */ public function __construct() { // info self::$base = 'uiadvancedproduct-category'; self::$name = esc_html__( 'TemPlaza: Advanced Product Category', 'uipro' ); self::$desc = esc_html__( 'Display Advanced Product Category.', 'uipro' ); self::$icon = 'eicon-apps'; self::$assets_path = plugin_dir_url(__FILE__). 'assets/'; parent::__construct(); } public function get_styles() { return array( 'templaza-tiny-style' => array( 'src' => 'tiny-slider.css' ) ); } public function get_scripts() { return array( 'templaza-tiny-script' => array( 'src' => 'tiny-slider.js', 'deps' => array('jquery') ) ); } /** * @return array */ public function get_options() { $categories = UIPro_UIAdvancedProducts_Helper::get_custom_categories(); $store_id = md5(__METHOD__); if(isset(static::$cache[$store_id])){ return static::$cache[$store_id]; } $slug_cat = array( 'ap_category' => esc_html__( 'Advanced Product Category', 'uipro' ), 'ap_branch' => esc_html__( 'Branch', 'uipro' ) ); $slug_tax = array(); if(!empty($categories) && count($categories)){ foreach ($categories as $cat){ $slug_tax[''.get_post_meta($cat -> ID, 'slug', true)] = $cat -> post_title; } } $all_tax = array_merge($slug_cat,$slug_tax); $all_thumbnails = get_intermediate_image_sizes(); $arr_thumbnails = array(); foreach ($all_thumbnails as $thumbnail){ $arr_thumbnails[$thumbnail] = $thumbnail; } $arr_thumbnails['full'] = 'full'; $arr_thumbnails['custom'] = 'custom'; $options = array( array( 'type' => Controls_Manager::SELECT, 'name' => 'layout', 'show_label' => true, 'label' => esc_html__( 'Category Layout', 'uipro' ), 'options' => array( 'base' => esc_html__( 'Slider', 'uipro' ), 'grid' => esc_html__( 'Grid', 'uipro' ), 'style1' => esc_html__( 'Slider Style1', 'uipro' ), ), 'default' => 'base', ), array( 'type' => Controls_Manager::SELECT, 'name' => 'source', 'show_label' => true, 'label' => esc_html__( 'Choose Source', 'uipro' ), 'options' => $all_tax, 'default' => 'ap_category', ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'ap_product_category', 'label' => esc_html__( 'Select Category', 'uipro' ), 'options' => UIPro_Helper::get_cat_taxonomy( 'ap_category' ), 'multiple' => true, 'condition' => array( 'source' => 'ap_category' ), ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'ap_product_branch', 'label' => esc_html__( 'Select Branch', 'uipro' ), 'options' => UIPro_Helper::get_cat_taxonomy( 'ap_branch' ), 'multiple' => true, 'condition' => array( 'source' => 'ap_branch' ), ), ); if(!empty($categories) && count($categories)){ foreach ($categories as $cat){ $slug = get_post_meta($cat -> ID, 'slug', true); if(!taxonomy_exists($slug)){ continue; } $cat_options = UIPro_Helper::get_cat_taxonomy( $slug ); if(empty($cat_options) || !count($cat_options)){ continue; } $options[] = array( 'type' => Controls_Manager::SELECT2, 'id' => 'ap_product_'.$slug, 'label' => sprintf(esc_html__( 'Select %s', 'uipro' ), $cat -> post_title), 'options' => $cat_options, 'multiple' => true, 'condition' => array( 'source' => ''.$slug.'', ), ); } } // options $options = array_merge($options,array( array( 'type' => Controls_Manager::SELECT, 'id' => 'ordering', 'label' => esc_html__( 'Ordering', 'uipro' ), 'options' => array( 'latest' => esc_html__('Latest', 'uipro'), 'oldest' => esc_html__('Oldest', 'uipro'), 'popular' => esc_html__('Popular', 'uipro'), 'sticky' => esc_html__('Sticky Only', 'uipro'), 'random' => esc_html__('Random', 'uipro'), ), 'default' => 'latest', 'description' => esc_html__( 'Select Product ordering from the list.', 'uipro' ), ), array( 'id' => 'show_product_count', 'type' => Controls_Manager::SWITCHER, 'label' => esc_html__( 'Show Product Count', 'uipro' ), 'label_on' => esc_html__( 'Yes', 'uipro' ), 'label_off' => esc_html__( 'No', 'uipro' ), 'return_value' => '1', 'default' => '0', ), array( 'name' => 'product_single_label', 'label' => esc_html__('Single Label', 'uipro'), 'type' => Controls_Manager::TEXT, 'condition' => array( 'show_product_count' => '1' ), ), array( 'name' => 'product_label', 'label' => esc_html__('Product Label', 'uipro'), 'type' => Controls_Manager::TEXT, 'condition' => array( 'show_product_count' => '1' ), ), array( 'id' => 'hide_empty', 'type' => Controls_Manager::SWITCHER, 'label' => esc_html__( 'Hide Empty', 'uipro' ), 'label_on' => esc_html__( 'Yes', 'uipro' ), 'label_off' => esc_html__( 'No', 'uipro' ), 'return_value' => true, 'default' => false, ), array( 'id' => 'large_desktop_columns', 'label' => esc_html__( 'Large Desktop Columns', 'uipro' ), 'type' => Controls_Manager::SELECT, 'options' => array( '1' => esc_html__('1 Column', 'uipro'), '2' => esc_html__('2 Columns', 'uipro'), '3' => esc_html__('3 Columns', 'uipro'), '4' => esc_html__('4 Columns', 'uipro'), '5' => esc_html__('5 Columns', 'uipro'), '6' => esc_html__('6 Columns', 'uipro'), ), 'default' => '3', 'separator' => 'before', ), array( 'id' => 'desktop_columns', 'label' => esc_html__( 'Desktop Columns', 'uipro' ), 'type' => Controls_Manager::SELECT, 'options' => array( '1' => esc_html__('1 Column', 'uipro'), '2' => esc_html__('2 Columns', 'uipro'), '3' => esc_html__('3 Columns', 'uipro'), '4' => esc_html__('4 Columns', 'uipro'), '5' => esc_html__('5 Columns', 'uipro'), '6' => esc_html__('6 Columns', 'uipro'), ), 'default' => '3', ), array( 'id' => 'laptop_columns', 'label' => esc_html__( 'Laptop Columns', 'uipro' ), 'type' => Controls_Manager::SELECT, 'options' => array( '1' => esc_html__('1 Column', 'uipro'), '2' => esc_html__('2 Columns', 'uipro'), '3' => esc_html__('3 Columns', 'uipro'), '4' => esc_html__('4 Columns', 'uipro'), '5' => esc_html__('5 Columns', 'uipro'), '6' => esc_html__('6 Columns', 'uipro'), ), 'default' => '3' ), array( 'id' => 'tablet_columns', 'label' => esc_html__( 'Tablet Columns', 'uipro' ), 'type' => Controls_Manager::SELECT, 'options' => array( '1' => esc_html__('1 Column', 'uipro'), '2' => esc_html__('2 Columns', 'uipro'), '3' => esc_html__('3 Columns', 'uipro'), '4' => esc_html__('4 Columns', 'uipro'), '5' => esc_html__('5 Columns', 'uipro'), '6' => esc_html__('6 Columns', 'uipro'), ), 'default' => '2' ), array( 'id' => 'mobile_columns', 'label' => esc_html__( 'Mobile Columns', 'uipro' ), 'type' => Controls_Manager::SELECT, 'options' => array( '1' => esc_html__('1 Column', 'uipro'), '2' => esc_html__('2 Columns', 'uipro'), '3' => esc_html__('3 Columns', 'uipro'), '4' => esc_html__('4 Columns', 'uipro'), '5' => esc_html__('5 Columns', 'uipro'), '6' => esc_html__('6 Columns', 'uipro'), ), 'default' => '1' ), array( 'type' => Controls_Manager::SELECT, 'id' => 'column_grid_gap', 'label' => esc_html__('Column Gap', 'uipro'), 'description' => esc_html__('Modified Gap Column', 'uipro'), 'options' => array( '' => esc_html__('Default', 'uipro'), 'small' => esc_html__('Small', 'uipro'), 'medium' => esc_html__('Medium', 'uipro'), 'large' => esc_html__('Large', 'uipro'), 'collapse' => esc_html__('Collapse', 'uipro'), ), 'default' => '', ), //Card Settings array( 'type' => Controls_Manager::SELECT, 'name' => 'card_style', 'label' => esc_html__( 'Card Style', 'uipro' ), 'default' => '', 'options' => [ '' => esc_html__('None', 'uipro'), 'default' => esc_html__('Card Default', 'uipro'), 'primary' => esc_html__('Card Primary', 'uipro'), 'secondary' => esc_html__('Card Secondary', 'uipro'), 'hover' => esc_html__('Card Hover', 'uipro'), 'custom' => esc_html__('Custom', 'uipro'), ], 'start_section' => 'card_settings', 'section_name' => esc_html__('Card Settings', 'uipro') ), array( 'type' => Controls_Manager::COLOR, 'name' => 'card_background', 'label' => esc_html__('Card Background', 'uipro'), 'description' => esc_html__('Set the Background Color of Card.', 'uipro'), 'selectors' => [ '{{WRAPPER}} .uk-card' => 'background-color: {{VALUE}}', ], 'conditions' => [ 'terms' => [ ['name' => 'card_style', 'operator' => '===', 'value' => 'custom'], ], ], ), array( 'type' => Controls_Manager::COLOR, 'name' => 'card_color', 'label' => esc_html__('Card Color', 'uipro'), 'description' => esc_html__('Set the Color of Card.', 'uipro'), 'selectors' => [ '{{WRAPPER}} .uk-card' => 'color: {{VALUE}}', ], 'conditions' => [ 'terms' => [ ['name' => 'card_style', 'operator' => '===', 'value' => 'custom'], ], ], ), array( 'type' => Controls_Manager::SELECT, 'id' => 'card_size', 'label' => esc_html__( 'Card Size', 'uipro' ), 'default' => '', 'options' => [ '' => esc_html__('Default', 'uipro'), 'small' => esc_html__('Small', 'uipro'), 'large' => esc_html__('Large', 'uipro'), 'custom' => esc_html__('Custom', 'uipro'), ], ), array( 'type' => Controls_Manager::DIMENSIONS, 'name' => 'card_padding', 'label' => esc_html__( 'Card Padding', 'uipro' ), 'responsive' => true, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .uk-card .uk-card-body' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'conditions' => [ 'terms' => [ ['name' => 'card_size', 'operator' => '===', 'value' => 'custom'], ], ], ), array( 'type' => Controls_Manager::DIMENSIONS, 'name' => 'card_margin', 'label' => esc_html__( 'Card Margin', 'uipro' ), 'responsive' => true, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .uk-card .uk-card-body' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'conditions' => [ 'terms' => [ ['name' => 'card_size', 'operator' => '===', 'value' => 'custom'], ], ], ), array( 'type' => Controls_Manager::DIMENSIONS, 'name' => 'card_radius', 'label' => esc_html__( 'Border radius', 'uipro' ), 'responsive' => true, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .uk-card' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}; overflow:hidden;', ], ), // image settings array( 'type' => Controls_Manager::SWITCHER, 'id' => 'image_show', 'label' => esc_html__('Show Image', 'uipro'), 'label_on' => esc_html__( 'Yes', 'uipro' ), 'label_off' => esc_html__( 'No', 'uipro' ), 'return_value' => '1', 'default' => '1', 'start_section' => 'ap-image', 'section_name' => esc_html__('Image Settings', 'uipro') ), array( 'type' => Controls_Manager::SELECT, 'id' => 'image_layout', 'label' => esc_html__( 'Layout', 'uipro' ), 'default' => '', 'options' => [ '' => esc_html__('Default', 'uipro'), 'thumbnail' => esc_html__('Thumbnail', 'uipro') ], 'conditions' => [ 'terms' => [ ['name' => 'image_show', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => \Elementor\Group_Control_Background::get_type(), 'name' => 'image_background_overlay', 'label' => __( 'Image Overlay Background', 'uipro' ), 'default' => '', 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .ap-category-image .uk-overlay', 'conditions' => [ 'terms' => [ ['name' => 'image_layout', 'operator' => '===', 'value' => 'thumbnail'], ['name' => 'image_show', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Controls_Manager::SWITCHER, 'id' => 'thumbnail_hover', 'label' => esc_html__('Content display on hover', 'uipro'), 'description' => esc_html__( 'Whether to enable on hover content article with thumbnail.', 'uipro' ), 'label_on' => esc_html__( 'Yes', 'uipro' ), 'label_off' => esc_html__( 'No', 'uipro' ), 'return_value' => '1', 'default' => '0', 'conditions' => [ 'terms' => [ ['name' => 'layout', 'operator' => '===', 'value' => 'thumbnail'], ['name' => 'image_show', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Controls_Manager::SELECT, 'id' => 'thumbnail_hover_transition', 'label' => esc_html__( 'Hover Transition', 'uipro' ), 'default' => 'fade', 'options' => [ 'fade' => esc_html__('Fade', 'uipro'), 'scale-up' => esc_html__('Scale Up', 'uipro'), 'scale-down' => esc_html__('Scale Down', 'uipro'), 'slide-top' => esc_html__('Slide Top', 'uipro'), 'slide-bottom' => esc_html__('Slide Bottom', 'uipro'), 'slide-left' => esc_html__('Slide Left', 'uipro'), 'slide-right' => esc_html__('Slide Right', 'uipro'), 'slide-top-small' => esc_html__('Slide Top Small', 'uipro'), 'slide-bottom-small' => esc_html__('Slide Bottom Small', 'uipro'), 'slide-left-small' => esc_html__('Slide Left Small', 'uipro'), 'slide-right-small' => esc_html__('Slide Right Small', 'uipro'), 'slide-top-medium' => esc_html__('Slide Top Medium', 'uipro'), 'slide-bottom-medium' => esc_html__('Slide Bottom Medium', 'uipro'), 'slide-left-medium' => esc_html__('Slide Left Medium', 'uipro'), 'slide-right-medium' => esc_html__('Slide Right Medium', 'uipro'), ], 'conditions' => [ 'terms' => [ ['name' => 'thumbnail_hover', 'operator' => '===', 'value' => '1'], ['name' => 'image_show', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Controls_Manager::SELECT, 'id' => 'image_position', 'label' => esc_html__( 'Image Position', 'uipro' ), 'default' => 'uk-card-media-top', 'options' => [ 'uk-card-media-top' => esc_html__('Top', 'uipro'), 'uk-card-media-bottom' => esc_html__('Bottom', 'uipro'), 'uk-card-media-left' => esc_html__('Left', 'uipro'), 'uk-card-media-right' => esc_html__('Right', 'uipro'), 'inside' => esc_html__('Inside', 'uipro'), ], 'conditions' => [ 'terms' => [ ['name' => 'image_layout', 'operator' => '!=', 'value' => 'thumbnail'], ['name' => 'image_show', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Controls_Manager::SELECT, 'id' => 'image_size', 'label' => esc_html__( 'Select Image Size', 'uipro' ), 'options' => $arr_thumbnails, 'multiple' => true, 'conditions' => [ 'terms' => [ ['name' => 'image_show', 'operator' => '===', 'value' => '1'], ], ], ), array( 'name' => 'image_width', 'label' => __( 'Image Width', 'uipro' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px','%' ], 'responsive' => true, 'range' => [ 'px' => [ 'min' => 0, 'max' => 2000, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], ], 'selectors' => [ '{{WRAPPER}} .ap-category-image img' => 'width: {{SIZE}}{{UNIT}};', ], 'conditions' => [ 'terms' => [ ['name' => 'image_size', 'operator' => '===', 'value' => 'custom'], ], ], ), array( 'name' => 'image_height', 'label' => __( 'Image Height', 'uipro' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px','%' ], 'responsive' => true, 'range' => [ 'px' => [ 'min' => 0, 'max' => 2000, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], ], 'selectors' => [ '{{WRAPPER}} .ap-category-image img' => 'height: {{SIZE}}{{UNIT}};', ], 'conditions' => [ 'terms' => [ ['name' => 'image_size', 'operator' => '===', 'value' => 'custom'], ], ], ), array( 'id' => 'image_cover', 'type' => Controls_Manager::SWITCHER, 'label' => esc_html__( 'Image cover', 'uipro' ), 'label_on' => esc_html__( 'Yes', 'uipro' ), 'label_off' => esc_html__( 'No', 'uipro' ), 'return_value' => '1', 'default' => '0', 'conditions' => [ 'terms' => [ ['name' => 'image_show', 'operator' => '===', 'value' => '1'], ], ], ), array( 'name' => 'cover_height', 'label' => __( 'Image Cover Height', 'uipro' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px','%' ], 'responsive' => true, 'range' => [ 'px' => [ 'min' => 0, 'max' => 2000, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], ], 'selectors' => [ '{{WRAPPER}} .ap-category-image' => 'height: {{SIZE}}{{UNIT}};', ], 'condition' => array( 'image_cover' => '1' ), ), array( 'type' => Controls_Manager::DIMENSIONS, 'name' => 'image_radius', 'label' => esc_html__( 'Image Border radius', 'uipro' ), 'responsive' => true, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .tz-ap-category .ap-category-image' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}; overflow:hidden;', ], 'conditions' => [ 'terms' => [ ['name' => 'image_show', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Controls_Manager::DIMENSIONS, 'name' => 'image_hover_margin', 'label' => esc_html__( 'Image Hover Margin', 'uipro' ), 'responsive' => true, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .uk-card:hover img' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'conditions' => [ 'terms' => [ ['name' => 'image_show', 'operator' => '===', 'value' => '1'], ], ], ), array( 'name' => 'image_hover_animation', 'label' => __( 'Transition Duration', 'uipro' ), 'type' => Controls_Manager::SLIDER, 'size_units' => ['s'], 'range' => [ 's' => [ 'min' => 0, 'max' => 10, 'step' => 0.1, ], ], 'selectors' => [ '{{WRAPPER}} .ap-category-image img' => 'transition: all {{SIZE}}s ease-in-out;', ], 'conditions' => [ 'terms' => [ ['name' => 'image_show', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Controls_Manager::SWITCHER, 'id' => 'flash_effect', 'label' => esc_html__('Flash Effect', 'uipro'), 'label_on' => esc_html__( 'Yes', 'uipro' ), 'label_off' => esc_html__( 'No', 'uipro' ), 'return_value' => '1', 'default' => '0', 'conditions' => [ 'terms' => [ ['name' => 'image_show', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Controls_Manager::SELECT, 'id' => 'image_transition', 'label' => esc_html__( 'Transition', 'uipro' ), 'description' => esc_html__( 'Select the image\'s transition style.', 'uipro' ), 'options' => array( '' => __('None', 'uipro'), 'scale-up' => __('Scales Up', 'uipro'), 'scale-down' => __('Scales Down', 'uipro'), 'ripple' => __('Ripple', 'uipro'), ), 'default' => '', 'conditions' => [ 'terms' => [ ['name' => 'image_show', 'operator' => '===', 'value' => '1'], ], ], ), array( 'id' => 'ripple_width', 'label' => __( 'Ripple Width', 'uipro' ), 'type' => Controls_Manager::SLIDER, 'responsive' => true, 'size_units' => [ 'px','%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 2000, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 200, ], ], 'default' => [ 'unit' => 'px', 'size' => 200, ], 'conditions' => [ 'terms' => [ ['name' => 'image_transition', 'operator' => '===', 'value' => 'ripple'], ], ], 'selectors' => [ '{{WRAPPER}} .templaza-ripple-circles' => 'width: {{SIZE}}{{UNIT}};', ], ), array( 'id' => 'ripple_height', 'label' => __( 'Ripple Height', 'uipro' ), 'type' => Controls_Manager::SLIDER, 'responsive' => true, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 2000, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 200, ], ], 'default' => [ 'unit' => 'px', 'size' => 200, ], 'conditions' => [ 'terms' => [ ['name' => 'image_transition', 'operator' => '===', 'value' => 'ripple'], ], ], 'selectors' => [ '{{WRAPPER}} .templaza-ripple-circles' => 'height: {{SIZE}}{{UNIT}};', ], ), array( 'label' => esc_html__( 'Ripple background color', 'uipro' ), 'name' => 'ripple_bg', 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .templaza-ripple-circles > div' => 'background-color: {{VALUE}}', ], 'conditions' => [ 'terms' => [ ['name' => 'image_transition', 'operator' => '===', 'value' => 'ripple'], ], ], ), array( 'type' => Group_Control_Typography::get_type(), 'name' => 'title_typography', 'scheme' => Typography::TYPOGRAPHY_1, 'label' => esc_html__('Title Font', 'uipro'), 'description' => esc_html__('Select a font family, font size for the addon title.', 'uipro'), 'selector' => '{{WRAPPER}} .ap-title', 'start_section' => 'ap-title', 'section_name' => esc_html__('Title Settings', 'uipro') ), array( 'type' => Controls_Manager::COLOR, 'name' => 'title_color', 'label' => esc_html__('Title Color', 'uipro'), 'selectors' => [ '{{WRAPPER}} .ap-title a' => 'color: {{VALUE}}', ], ), array( 'type' => Controls_Manager::COLOR, 'name' => 'title_color_hover', 'label' => esc_html__('Title Color Hover', 'uipro'), 'selectors' => [ '{{WRAPPER}} .uk-card:hover .ap-title a' => 'color: {{VALUE}}', ], ), array( 'type' => Controls_Manager::DIMENSIONS, 'name' => 'title_margin', 'label' => esc_html__( 'Title Margin', 'uipro' ), 'responsive' => true, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ap-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ), array( 'id' => 'title_overlay', 'type' => Controls_Manager::SWITCHER, 'label' => esc_html__( 'Title overlay', 'uipro' ), 'label_on' => esc_html__( 'Yes', 'uipro' ), 'label_off' => esc_html__( 'No', 'uipro' ), 'return_value' => '1', 'default' => '1', 'conditions' => [ 'terms' => [ ['name' => 'layout', 'operator' => 'in', 'value' => ['style1']], ], ], ), array( 'label' => esc_html__( 'Overlay background color', 'uipro' ), 'name' => 'title_overlay_bg', 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .uk-overlay-primary' => 'background-color: {{VALUE}}', ], 'condition' => array( 'title_overlay' => '1' ), ), array( 'type' => \Elementor\Group_Control_Background::get_type(), 'name' => 'title_overlay_bg_gradient', 'label' => __( 'Overlay Background', 'uipro' ), 'default' => '', 'types' => [ 'gradient' ], 'selector' => '{{WRAPPER}} .uk-overlay-primary', 'condition' => array( 'title_overlay' => '1' ), ), array( 'type' => Controls_Manager::SELECT, 'name' => 'title_position', 'label' => esc_html__( 'Title position', 'uipro' ), 'options' => array( 'uk-position-top-left' => esc_html__('Top Left', 'uipro'), 'uk-position-top-center' => esc_html__('Top Center', 'uipro'), 'uk-position-top-right' => esc_html__('Top Right', 'uipro'), 'uk-position-center' => esc_html__('Center', 'uipro'), 'uk-position-center-left' => esc_html__('Center Left', 'uipro'), 'uk-position-center-right' => esc_html__('Center right', 'uipro'), 'uk-position-bottom-left' => esc_html__('Bottom left', 'uipro'), 'uk-position-bottom-center' => esc_html__('Bottom Center', 'uipro'), 'uk-position-bottom-right' => esc_html__('Bottom Right', 'uipro'), ), 'default' => 'uk-position-bottom-left', 'condition' => array( 'title_overlay' => '1' ), ), array( 'label' => esc_html__( 'Background title box', 'uipro' ), 'name' => 'title_bg', 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ap-title-wrap' => 'background-color: {{VALUE}}', ], 'conditions' => [ 'terms' => [ ['name' => 'layout', 'operator' => 'in', 'value' => ['style1']], ], ], ), array( 'type' => Controls_Manager::SELECT, 'name' => 'count_display', 'label' => esc_html__( 'Product Count Display', 'uipro' ), 'options' => array( '' => esc_html__('Inline', 'uipro'), 'before' => esc_html__('Before title', 'uipro'), 'after' => esc_html__('After title', 'uipro'), ), 'default' => '', 'conditions' => [ 'terms' => [ ['name' => 'show_product_count', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Group_Control_Typography::get_type(), 'name' => 'count_typography', 'scheme' => Typography::TYPOGRAPHY_1, 'label' => esc_html__('Product Count Font', 'uipro'), 'description' => esc_html__('Select a font family.', 'uipro'), 'selector' => '{{WRAPPER}} .ap-product-count', 'conditions' => [ 'terms' => [ ['name' => 'show_product_count', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Controls_Manager::COLOR, 'name' => 'count_color', 'label' => esc_html__('Product Count Color', 'uipro'), 'selectors' => [ '{{WRAPPER}} .ap-product-count' => 'color: {{VALUE}}', ], 'conditions' => [ 'terms' => [ ['name' => 'show_product_count', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Controls_Manager::SELECT, 'name' => 'slider_wrap_visible', 'label' => esc_html__( 'Slider visible', 'uipro' ), 'options' => array( '' => esc_html__('Default', 'uipro'), 'tz-visible' => esc_html__('Visible', 'uipro'), 'tz-visible-right' => esc_html__('Visible right', 'uipro'), 'tz-visible-left' => esc_html__('Visible left', 'uipro'), ), 'default' => '', 'start_section' => 'slider_settings', 'section_name' => esc_html__( 'Slider Settings', 'uipro' ), 'conditions' => [ 'terms' => [ ['name' => 'layout', 'operator' => '===', 'value' => 'style1'], ], ], ), array( 'id' => 'show_nav', 'type' => Controls_Manager::SWITCHER, 'label' => esc_html__( 'Enable Nav', 'uipro' ), 'label_on' => esc_html__( 'Yes', 'uipro' ), 'label_off' => esc_html__( 'No', 'uipro' ), 'return_value' => '1', 'default' => '0', 'conditions' => [ 'terms' => [ ['name' => 'layout', 'operator' => 'in', 'value' => ['base','style1']], ], ], ), array( 'type' => Controls_Manager::SELECT, 'id' => 'navigation_position', 'label' => esc_html__( 'Navigation Position', 'uipro' ), 'default' => '', 'options' => [ '' => esc_html__('Outside', 'uipro'), 'inside' => esc_html__('Inside', 'uipro'), 'top-left' => esc_html__( 'Top Left', 'uipro' ), 'top-right' => esc_html__( 'Top Right', 'uipro' ), 'center-left' => esc_html__( 'Center Left', 'uipro' ), 'center-right' => esc_html__( 'Center Right', 'uipro' ), 'bottom-left' => esc_html__( 'Bottom Left', 'uipro' ), 'bottom-center' => esc_html__( 'Bottom Center', 'uipro' ), 'bottom-right' => esc_html__( 'Bottom Right', 'uipro' ), ], 'conditions' => [ 'terms' => [ ['name' => 'layout', 'operator' => '!=', 'value' => 'grid'], ['name' => 'show_nav', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Controls_Manager::DIMENSIONS, 'name' => 'navigation_pos_margin', 'label' => esc_html__( 'Next Margin', 'uipro' ), 'responsive' => true, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .uk-slidenav-next' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ], 'conditions' => [ 'terms' => [ ['name' => 'layout', 'operator' => '!=', 'value' => 'grid'], ['name' => 'show_nav', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Controls_Manager::DIMENSIONS, 'name' => 'navigation_pos_margin_pre', 'label' => esc_html__( 'Preview Margin', 'uipro' ), 'responsive' => true, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .uk-slidenav-previous' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ], 'conditions' => [ 'terms' => [ ['name' => 'layout', 'operator' => '!=', 'value' => 'grid'], ['name' => 'show_nav', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Controls_Manager::DIMENSIONS, 'name' => 'navigation_margin_custom', 'label' => esc_html__( 'Navigation Margin', 'uipro' ), 'responsive' => true, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .uk-nav-wrap' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ], 'conditions' => [ 'terms' => [ ['name' => 'layout', 'operator' => '!=', 'value' => 'grid'], ['name' => 'show_nav', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => \Elementor\Group_Control_Border::get_type(), 'name' => 'nav_border', 'label' => esc_html__('Nav Border', 'uipro'), 'selector' => '{{WRAPPER}} .uk-slider .uk-slidenav', 'condition' => array( 'show_nav' => '1' ), ), array( 'type' => \Elementor\Group_Control_Box_Shadow::get_type(), 'name' => 'nav_shadow', 'label' => esc_html__('Nav Shadow', 'uipro'), 'selector' => '{{WRAPPER}} .uk-slidenav', 'conditions' => [ 'terms' => [ ['name' => 'layout', 'operator' => '!=', 'value' => 'grid'], ['name' => 'show_nav', 'operator' => '===', 'value' => '1'], ], ], ), array( 'type' => Controls_Manager::DIMENSIONS, 'name' => 'nav_radius', 'label' => esc_html__( 'Nav radius', 'uipro' ), 'responsive' => true, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .uk-slider .uk-slidenav' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}; overflow:hidden;', ], 'condition' => array( 'show_nav' => '1' ), ), array( 'label' => esc_html__( 'Nav background color', 'uipro' ), 'name' => 'nav_bg', 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .uk-slider .uk-slidenav' => 'background-color: {{VALUE}}', ], 'condition' => array( 'show_nav' => '1' ), ), array( 'label' => esc_html__( 'Nav color', 'uipro' ), 'name' => 'nav_color', 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .uk-slider .uk-slidenav' => 'color: {{VALUE}}', ], 'condition' => array( 'show_nav' => '1' ), ), array( 'label' => esc_html__( 'Nav Hover background color', 'uipro' ), 'name' => 'nav_bg_hover', 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .uk-slider .uk-slidenav:hover' => 'background-color: {{VALUE}}', ], 'condition' => array( 'show_nav' => '1' ), ), array( 'label' => esc_html__( 'Nav Hover color', 'uipro' ), 'name' => 'nav_color_hover', 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .uk-slider .uk-slidenav:hover' => 'color: {{VALUE}}', ], 'condition' => array( 'show_nav' => '1' ), ), array( 'id' => 'show_dots', 'type' => Controls_Manager::SWITCHER, 'label' => esc_html__( 'Enable Dots', 'uipro' ), 'label_on' => esc_html__( 'Yes', 'uipro' ), 'label_off' => esc_html__( 'No', 'uipro' ), 'return_value' => '1', 'default' => '0', 'conditions' => [ 'terms' => [ ['name' => 'layout', 'operator' => 'in', 'value' => ['base','style1']], ], ], ), array( 'type' => Controls_Manager::DIMENSIONS, 'name' => 'dots_margin', 'label' => esc_html__( 'Dots Margin', 'uipro' ), 'responsive' => true, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .uk-dotnav' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ], 'condition' => array( 'show_dots' => '1' ), ), array( 'label' => esc_html__( 'Dots Slider Color', 'uipro' ), 'name' => 'quote_dots_color', 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .uk-dotnav>*>*' => 'border-color: {{VALUE}}', '{{WRAPPER}} .uk-dotnav>.uk-active>*, {{WRAPPER}} .uk-dotnav li:hover>*' => 'background-color: {{VALUE}}', ], 'condition' => array( 'show_dots' => '1' ), ), )); $options = array_merge($options, $this->get_general_options()); static::$cache[$store_id] = $options; return $options; } } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
assets
---
0755
tpl
---
0755
class-el-uiadvancedproduct-category.php
1605 bytes
0644
config.php
55333 bytes
0644
N4ST4R_ID | Naxtarrr