Submit
Path:
~
/
home
/
getwphos
/
www
/
twinkletown
/
wp-content
/
plugins
/
wuko-core
/
includes
/
elementor
/
widgets
/
File Content:
wgl-showcase.php
<?php /** * This template can be overridden by copying it to `yourtheme[-child]/wgl-extensions/elementor/widgets/wgl-showcase.php`. */ namespace WGL_Extensions\Widgets; defined('ABSPATH') || exit; // Abort, if called directly. use Elementor\{Plugin, Utils, Widget_Base, Controls_Manager, Icons_Manager, Control_Media, Group_Control_Image_Size, Repeater, Group_Control_Border, Group_Control_Box_Shadow, Group_Control_Typography, Group_Control_Background}; use WGL_Extensions\{ WGL_Framework_Global_Variables as WGL_Globals, Includes\WGL_Elementor_Helper, Includes\WGL_Cursor, }; class WGL_Showcase extends Widget_Base { public function get_name() { return 'wgl-showcase'; } public function get_title() { return esc_html__('WGL Showcase', 'wuko-core'); } public function get_icon() { return 'wgl-showcase'; } public function get_keywords() { return [ 'showcase', 'title' ]; } public function get_script_depends() { return [ 'wgl-widgets', ]; } public function get_categories() { return ['wgl-modules']; } protected function register_controls() { /** * CONTENT -> GENERAL */ $this->start_controls_section( 'content_general', ['label' => esc_html__('General', 'wuko-core')] ); $repeater = new Repeater(); $repeater->add_control( 'link', [ 'label' => esc_html__('Link', 'wuko-core'), 'type' => Controls_Manager::URL, 'dynamic' => ['active' => true], 'label_block' => true, 'placeholder' => esc_attr__( 'https://your-link.com', 'wuko-core' ), 'default' => [ 'url' => '#' ], ] ); $repeater->add_control( 'thumbnail', [ 'label' => esc_html__('Image', 'wuko-core'), 'type' => Controls_Manager::MEDIA, 'dynamic' => ['active' => true], 'label_block' => true, 'default' => ['url' => Utils::get_placeholder_image_src()], ] ); $repeater->add_control( 'title', [ 'label' => esc_html__('Title', 'wuko-core'), 'type' => Controls_Manager::TEXT, 'dynamic' => ['active' => true], 'label_block' => true, 'default' => esc_html__('Showcase Title', 'wuko-core'), ] ); $repeater->add_control( 'subtitle', [ 'label' => esc_html__('Subtitle', 'wuko-core'), 'type' => Controls_Manager::TEXT, 'dynamic' => ['active' => true], ] ); $repeater->add_control( 'bg_text', [ 'label' => esc_html__('Background Text', 'wuko-core'), 'type' => Controls_Manager::TEXT, 'dynamic' => ['active' => true], 'label_block' => true, ] ); $repeater->add_control( 'content', [ 'label' => esc_html__('Content', 'wuko-core'), 'type' => Controls_Manager::WYSIWYG, 'dynamic' => ['active' => true], 'label_block' => true, 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis.', 'wuko-core'), ] ); $repeater->add_control( 'link_active', [ 'label' => esc_html__( 'Active by Default', 'wuko-core' ), 'type' => Controls_Manager::SWITCHER, ] ); WGL_Cursor::init( $repeater, [ 'section' => false, 'repeater' => true, 'prefix' => 'showcase_', ] ); $repeater->start_controls_tabs( 'items_tabs' ); $repeater->start_controls_tab( 'items_tab_idle', ['label' => esc_html__('Idle', 'wuko-core')] ); $repeater->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'items_bg_idle', 'selector' => '{{WRAPPER}} {{CURRENT_ITEM}} .showcase__background::before', ] ); $repeater->end_controls_tab(); $repeater->start_controls_tab( 'items_tab_hover', ['label' => esc_html__('Hover/Active' , 'wuko-core')] ); $repeater->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'items_bg_hover', 'selector' => '{{WRAPPER}} {{CURRENT_ITEM}} .showcase__background::after', ] ); $repeater->end_controls_tab(); $repeater->start_controls_tab( 'items_tab_responsive', ['label' => esc_html__('Responsive' , 'wuko-core')] ); $repeater->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'items_bg_responsive', 'selector' => 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra {{CURRENT_ITEM}} .showcase__background::after, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet {{CURRENT_ITEM}} .showcase__background::after, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra {{CURRENT_ITEM}} .showcase__background::after, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile {{CURRENT_ITEM}} .showcase__background::after', ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_control( 'items', [ 'label' => esc_html__('Items', 'wuko-core'), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'title_field' => '{{{ title }}}', 'default' => [ [ 'title' => esc_html__( 'UI/UX Design', 'wuko-core' ), 'subtitle' => esc_html__( '(01)', 'wuko-core' ), ], [ 'title' => esc_html__( 'Branding', 'wuko-core' ), 'subtitle' => esc_html__( '(02)', 'wuko-core' ), ], [ 'title' => esc_html__( 'Mobile Design', 'wuko-core' ), 'subtitle' => esc_html__( '(03)', 'wuko-core' ), 'link_active' => 'yes' ], [ 'title' => esc_html__( 'Illustration', 'wuko-core' ), 'subtitle' => esc_html__( '(04)', 'wuko-core' ), ], [ 'title' => esc_html__( '3D Motion', 'wuko-core' ), 'subtitle' => esc_html__( '(05)', 'wuko-core' ), ], ], ] ); $this->add_responsive_control( 'items_justify_content', [ 'label' => esc_html__( 'Justify Items', 'wuko-core' ), 'type' => Controls_Manager::CHOOSE, 'toggle' => false, 'style_transfer' => true, 'options' => [ 'flex-start' => [ 'title' => esc_html__( 'Start', 'wuko-core' ), 'icon' => 'eicon-flex eicon-justify-start-h', ], 'center' => [ 'title' => esc_html__( 'Center', 'wuko-core' ), 'icon' => 'eicon-flex eicon-justify-center-h', ], 'flex-end' => [ 'title' => esc_html__( 'End', 'wuko-core' ), 'icon' => 'eicon-flex eicon-justify-end-h', ], 'space-between' => [ 'title' => esc_html__( 'Space Between', 'wuko-core' ), 'icon' => 'eicon-flex eicon-justify-space-between-h', ], 'space-around' => [ 'title' => esc_html__( 'Space Around', 'wuko-core' ), 'icon' => 'eicon-flex eicon-justify-space-around-h', ], 'space-evenly' => [ 'title' => esc_html__( 'Space Evenly', 'wuko-core' ), 'icon' => 'eicon-flex eicon-justify-space-evenly-h', ], ], 'default' => 'flex-start', 'selectors' => [ '{{WRAPPER}} .showcase__item_inner' => 'justify-content: {{VALUE}};', ], ] ); $this->add_responsive_control( 'content_justify', [ 'label' => esc_html__( 'Justify Content', 'wuko-core' ), 'type' => Controls_Manager::CHOOSE, 'toggle' => false, 'style_transfer' => true, 'options' => [ '0' => [ 'title' => esc_html__( 'Default', 'wuko-core' ), 'icon' => 'eicon-h-align-left', ], '0 auto' => [ 'title' => esc_html__( 'Center', 'wuko-core' ), 'icon' => 'eicon-h-align-center', ], ], 'condition' => ['items_justify_content' => 'flex-start'], 'default' => '0', 'selectors' => [ '{{WRAPPER}} .showcase__content_wrapper' => 'margin: {{VALUE}};', ], ] ); $this->add_responsive_control( 'items_align_items', [ 'label' => esc_html__( 'Align Items', 'wuko-core' ), 'type' => Controls_Manager::CHOOSE, 'toggle' => false, 'style_transfer' => true, 'options' => [ 'flex-start' => [ 'title' => esc_html__( 'Start', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-start-v', ], 'center' => [ 'title' => esc_html__( 'Center', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-center-v', ], 'flex-end' => [ 'title' => esc_html__( 'End', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-end-v', ], 'stretch' => [ 'title' => esc_html__( 'Stretch', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-stretch-v', ], ], 'default' => 'center', 'selectors' => [ '{{WRAPPER}} .showcase__item, {{WRAPPER}} .showcase__item_inner' => 'align-items: {{VALUE}};', ], ] ); $this->add_responsive_control( 'alignment', [ 'label' => esc_html__('Alignment', 'wuko-core'), 'type' => Controls_Manager::CHOOSE, 'style_transfer' => true, 'options' => [ 'left' => [ 'title' => esc_html__('Left', 'wuko-core'), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => esc_html__('Center', 'wuko-core'), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => esc_html__('Right', 'wuko-core'), 'icon' => 'eicon-text-align-right', ], ], 'default' => 'left', 'selectors' => [ '{{WRAPPER}} .showcase__item, {{WRAPPER}} .showcase__content_wrapper' => 'text-align: {{VALUE}};', ], ] ); $this->add_control( 'content_animation', [ 'label' => esc_html__('Content Animation', 'wuko-core'), 'description' => esc_html__('Show Content on Hover', 'wuko-core'), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__('True', 'wuko-core'), 'label_off' => esc_html__('False', 'wuko-core'), 'default' => 'yes', ] ); $this->add_mobile_breakpoint(); $this->end_controls_section(); /** * CONTENT -> BUTTON */ $this->start_controls_section( 'section_style_link', [ 'label' => esc_html__('Link', 'wuko-core'), ] ); $this->add_control( 'add_item_link', [ 'label' => esc_html__('Whole Item Link', 'wuko-core'), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__('On', 'wuko-core'), 'label_off' => esc_html__('Off', 'wuko-core'), 'default' => '', ] ); $this->add_control( 'add_read_more', [ 'label' => esc_html__('\'Read More\' Button', 'wuko-core'), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__('Use', 'wuko-core'), 'label_off' => esc_html__('Hide', 'wuko-core'), 'default' => '', ] ); $this->add_control( 'read_more_text', [ 'label' => esc_html__('Button Text', 'wuko-core'), 'type' => Controls_Manager::TEXT, 'dynamic' => ['active' => true], 'condition' => [ 'add_read_more' => 'yes' ], 'label_block' => true, 'default' => esc_html__('Read More', 'wuko-core'), ] ); $this->add_control( 'button_type', [ 'label' => esc_html__( 'Button Type', 'wuko-core' ), 'type' => Controls_Manager::SELECT, 'style_transfer' => true, 'options' => [ 'wgl-button' => esc_html__( 'Default Button Style', 'wuko-core' ), 'button-read-more' => esc_html__( 'Read More Style', 'wuko-core' ), ], 'condition' => [ 'add_read_more' => 'yes' ], 'default' => 'wgl-button', ] ); $this->add_control( 'read_more_anim', [ 'label' => esc_html__('Read More Animation', 'wuko-core'), 'type' => Controls_Manager::SELECT, 'style_transfer' => true, 'render_type' => 'template', 'options' => [ 'default' => esc_html__( 'Default', 'wuko-core' ), 'disable' => esc_html__( 'Disable', 'wuko-core' ), ], 'condition' => [ 'add_read_more' => 'yes', 'button_type' => 'button-read-more', ], 'prefix_class' => 'button_animation-', 'default' => 'default', ] ); $this->add_control( 'read_more_icon_type', [ 'label' => esc_html__('Icon Type', 'wuko-core'), 'type' => Controls_Manager::CHOOSE, 'separator' => 'before', 'label_block' => false, 'condition' => [ 'add_read_more' => 'yes', 'button_type' => 'wgl-button' ], 'toggle' => false, 'options' => [ '' => [ 'title' => esc_html__('None', 'wuko-core'), 'icon' => 'eicon-ban', ], 'font' => [ 'title' => esc_html__('Icon', 'wuko-core'), 'icon' => 'far fa-smile', ], 'image' => [ 'title' => esc_html__('Image', 'wuko-core'), 'icon' => 'far fa-image', ] ], 'default' => '', ] ); $this->add_control( 'read_more_icon_fontawesome', [ 'label' => esc_html__('Button Icon', 'wuko-core'), 'type' => Controls_Manager::ICONS, 'condition' => [ 'add_read_more' => 'yes', 'read_more_icon_type' => 'font', 'button_type' => 'wgl-button', ], 'description' => esc_html__('Select icon from available libraries.', 'wuko-core'), 'label_block' => true, 'default' => [ 'library' => 'fa-solid', 'value' => 'fas fa-circle', ], ] ); $this->add_control( 'read_more_icon_thumbnail', [ 'label' => esc_html__('Image', 'wuko-core'), 'type' => Controls_Manager::MEDIA, 'dynamic' => ['active' => true], 'condition' => [ 'add_read_more' => 'yes', 'read_more_icon_type' => 'image', 'button_type' => 'wgl-button', ], 'label_block' => true, 'default' => ['url' => Utils::get_placeholder_image_src()], ] ); $this->add_control( 'read_more_icon_align', [ 'label' => esc_html__( 'Position', 'wuko-core' ), 'type' => Controls_Manager::SELECT, 'condition' => [ 'add_read_more' => 'yes', 'read_more_icon_type!' => '', 'button_type' => 'wgl-button', ], 'options' => [ 'row' => esc_html__( 'Before', 'wuko-core' ), 'row-reverse' => esc_html__( 'After', 'wuko-core' ), ], 'default' => 'row', 'selectors' => [ '{{WRAPPER}} .button-read-more, {{WRAPPER}} .wgl-showcase__button .button__content' => 'flex-direction: {{VALUE}};', ], ] ); $this->add_responsive_control( 'button_icon_top', [ 'label' => esc_html__('Icon/Image Top Offset', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px', 'em', 'rem', 'custom'], 'range' => [ 'px' => ['min' => -50, 'max' => 50], ], 'condition' => [ 'add_read_more' => 'yes', 'read_more_text!' => '', 'read_more_icon_type' => ['font','image'], 'button_type' => 'wgl-button', ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button .wgl-icon' => '--icon-translate-y: {{SIZE}}{{UNIT}};', '{{WRAPPER}} .wgl-showcase__button .wgl-button__media img' => 'top: {{SIZE}}{{UNIT}};' ], ] ); $this->add_responsive_control( 'button_icon_size', [ 'label' => esc_html__('Icon Size', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px', 'em', 'custom'], 'range' => [ 'px' => ['min' => 6, 'max' => 300], ], 'condition' => [ 'add_read_more' => 'yes', 'read_more_icon_type' => 'font', 'read_more_icon_fontawesome[value]!' => '', 'button_type' => 'wgl-button', ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button' => '--icon-size: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_image_size', [ 'label' => esc_html__('Image Width', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px', 'em', 'custom'], 'range' => [ 'px' => ['min' => 6, 'max' => 200], ], 'condition' => [ 'add_read_more' => 'yes', 'read_more_icon_type' => 'image', 'button_type' => 'wgl-button', ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button .wgl-button__media img' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_icon_stroke_size', [ 'label' => esc_html__('SVG Stroke Width', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px'], 'range' => [ 'px' => ['min' => 0, 'max' => 300], ], 'condition' => [ 'add_read_more' => 'yes', 'read_more_icon_fontawesome[library]' => 'svg', 'button_type' => 'wgl-button', ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button .wgl-icon path' => 'stroke-width: {{SIZE}}{{UNIT}};' ], ] ); $this->end_controls_section(); /** * STYLE -> ITEM CONTAINER */ $this->start_controls_section( 'style_item_container', [ 'label' => esc_html__('Item Container', 'wuko-core'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'item_overflow', [ 'label' => esc_html__('Items Overflow', 'wuko-core'), 'type' => Controls_Manager::SELECT, 'options' => [ '' => esc_html__('Theme Default', 'wuko-core'), 'overflow: visible;' => esc_html__('Visible', 'wuko-core'), 'overflow: hidden;' => esc_html__('Hidden', 'wuko-core'), ], 'selectors' => [ '{{WRAPPER}} .showcase__item' => '{{VALUE}}', ], ] ); $this->add_responsive_control( 'item_height', [ 'label' => esc_html__( 'Items Min Height', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px', '%', 'vh', 'vw', 'custom'], 'range' => ['px' => ['max' => 500]], 'default' => ['size' => 153, 'unit' => 'px'], 'tablet_default' => ['size' => 0, 'unit' => 'px'], 'selectors' => [ '{{WRAPPER}} .showcase__item' => 'min-height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'item_margin', [ 'label' => esc_html__('Margin (px)', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px'], 'selectors' => [ '{{WRAPPER}} .showcase__item' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->add_responsive_control( 'item_padding', [ 'label' => esc_html__('Padding', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%', 'custom'], 'default' => [ 'top' => '1', 'right' => '2.8', 'bottom' => '1', 'left' => '2.8', 'unit' => '%', 'isLinked' => false ], 'tablet_default' => [ 'top' => '25', 'right' => '0', 'bottom' => '30', 'left' => '0', 'unit' => 'px', 'isLinked' => false ], 'mobile_default' => [ 'top' => '12', 'right' => '0', 'bottom' => '18', 'left' => '0', 'unit' => 'px', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .showcase__item' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'item_radius', [ 'label' => esc_html__('Border Radius', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'custom'], 'selectors' => [ '{{WRAPPER}} .showcase__item' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'items_gap', [ 'label' => esc_html__( 'Items Gap', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'separator' => 'before', 'size_units' => ['px', 'custom'], 'range' => [ 'px' => ['min' => 0, 'max' => 100] ], 'default' => ['size' => 0, 'unit' => 'px'], 'selectors' => [ '{{WRAPPER}} .wgl-showcase' => 'gap: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'item_divider', [ 'label' => esc_html__( 'Divider Width', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'separator' => 'before', 'size_units' => ['px'], 'range' => [ 'px' => ['min' => 0, 'max' => 10] ], 'default' => ['size' => 1, 'unit' => 'px'], 'selectors' => [ '{{WRAPPER}} .wgl-showcase' => '--divider-width: {{SIZE}}px; --divider-opacity: 1;', ], ] ); $this->add_control( 'item_divider_top', [ 'label' => esc_html__('Hide Divider on Top', 'wuko-core'), 'type' => Controls_Manager::SWITCHER, 'condition' => ['item_divider[size]!' => ['', 0]], 'selectors' => [ '{{WRAPPER}} .showcase__item:first-child::after' => 'border-top: unset !important;', ], ] ); $this->add_control( 'item_divider_bottom', [ 'label' => esc_html__('Hide Divider om Bottom', 'wuko-core'), 'type' => Controls_Manager::SWITCHER, 'condition' => ['item_divider[size]!' => ['', 0]], 'selectors' => [ '{{WRAPPER}} .showcase__item:last-child::after' => 'border-bottom: unset !important;', ], ] ); $this->add_control( 'item_divider_position', [ 'label' => esc_html__('Divider Position', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'allowed_dimensions' => ['top', 'right', 'left'], 'size_units' => ['px', '%', 'vw', 'custom'], 'condition' => ['item_divider[size]!' => ['', 0]], 'default' => [ 'bottom' => '', ], 'selectors' => [ '{{WRAPPER}} .showcase__item::after' => 'top: min({{top}}{{UNIT}}, 0px); right: {{RIGHT}}{{UNIT}}; left: {{LEFT}}{{UNIT}};', '{{WRAPPER}} .showcase__item:last-child::after' => 'bottom: min({{top}}{{UNIT}}, 0px);', ], ] ); $this->add_responsive_control( 'item_divider_z_index', [ 'label' => esc_html__( 'Divider Z-Index', 'wuko-core' ), 'type' => Controls_Manager::NUMBER, 'dynamic' => ['active' => true], 'condition' => ['item_divider[size]!' => ['', 0]], 'min' => -5, 'default' => -2, 'selectors' => [ '{{WRAPPER}} .showcase__item::after' => 'z-index: {{VALUE}};', ], ] ); $this->start_controls_tabs( 'item_tabs' ); $this->start_controls_tab( 'item_tab_idle', ['label' => esc_html__('Idle', 'wuko-core')] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'item_bg_idle', 'selector' => '{{WRAPPER}} .showcase__background::before', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'item_border_idle', 'selector' => '{{WRAPPER}} .showcase__item', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'item_shadow_idle', 'selector' => '{{WRAPPER}} .showcase__item', ] ); $this->add_control( 'item_divider_color_idle', [ 'label' => esc_html__('Divider Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => ['item_divider[size]!' => ['', 0]], 'selectors' => [ '{{WRAPPER}} .showcase__item' => '--divider-color: {{VALUE}}; --divider-color-last: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'item_tab_hover', ['label' => esc_html__('Hover/Active' , 'wuko-core')] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'item_bg_hover', 'fields_options' => [ 'background' => [ 'default' => 'classic' ], 'color' => [ 'default' => WGL_Globals::get_primary_color(), ], ], 'selector' => '{{WRAPPER}} .showcase__background::after', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'item_border_hover', 'selector' => '{{WRAPPER}} .showcase__item:is(.active, :hover)', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'item_shadow_hover', 'selector' => '{{WRAPPER}} .showcase__item:is(.active, :hover)' ] ); $this->add_control( 'item_divider_color_hover', [ 'label' => esc_html__('Divider Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => ['item_divider[size]!' => ['', 0]], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover), {{WRAPPER}} .showcase__item:is(.active, :hover) + .showcase__item' => '--divider-color: {{VALUE}};', '{{WRAPPER}} .showcase__item:last-child:is(.active, :hover)' => '--divider-color-last: {{VALUE}};', ], ] ); $this->add_control( 'item_transition', [ 'label' => esc_html__('Transition', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'range' => [ 'px' => ['max' => 3, 'step' => 0.1], ], 'default' => ['size' => 0.4], 'selectors' => [ '{{WRAPPER}} .showcase__item' => 'transition: {{SIZE}}s', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'item_tab_responsive', ['label' => esc_html__('Responsive' , 'wuko-core')] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'item_bg_responsive', 'fields_options' => [ 'background' => [ 'default' => 'classic' ], 'color' => [ 'default' => WGL_Globals::get_primary_color(0), ], ], 'selector' => 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__background::after, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__background::after, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__background::after, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__background::after', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'item_border_responsive', 'selector' => 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'item_shadow_responsive', 'selector' => 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item' ] ); $this->add_control( 'item_divider_color_responsive', [ 'label' => esc_html__('Divider Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => ['item_divider[size]!' => ['', 0]], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item' => '--divider-color: {{VALUE}}; --divider-color-last: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /** * STYLE -> Title */ $this->start_controls_section( 'style_title', [ 'label' => esc_html__('Title', 'wuko-core'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'title_width', [ 'label' => esc_html__( 'Title Width', 'wuko-core' ), 'description' => esc_html__( 'Title Width has Priority', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px', 'em', 'rem', '%', 'vw', 'custom'], 'default' => ['size' => 51, 'unit' => '%'], 'tablet_default' => ['size' => 100, 'unit' => '%'], 'range' => [ 'px' => ['max' => 1200] ], 'selectors' => [ '{{WRAPPER}} .showcase__title' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'title_align_self', [ 'label' => esc_html__( 'Align Self', 'wuko-core' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'flex-start' => [ 'title' => esc_html__( 'Start', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-start-v', ], 'center' => [ 'title' => esc_html__( 'Center', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-center-v', ], 'flex-end' => [ 'title' => esc_html__( 'End', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-end-v', ], 'stretch' => [ 'title' => esc_html__( 'Stretch', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-stretch-v', ], ], 'selectors' => [ '{{WRAPPER}} .showcase__title' => 'align-self: {{VALUE}};', ], ] ); $this->add_responsive_control( 'title_alignment', [ 'label' => esc_html__('Self Alignment', 'wuko-core'), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => esc_html__('Left', 'wuko-core'), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => esc_html__('Center', 'wuko-core'), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => esc_html__('Right', 'wuko-core'), 'icon' => 'eicon-text-align-right', ], ], 'selectors_dictionary' => [ 'left' => 'flex-start; text-align: left', 'center' => 'center; text-align: center', 'right' => 'flex-end; text-align: right', ], 'tablet_default' => 'left', 'selectors' => [ '{{WRAPPER}} .showcase__title' => 'justify-content: {{VALUE}};', '{{WRAPPER}} .wgl-showcase.breakpoint_on-mobile .showcase__title' => 'align-items: {{VALUE}};', ], ] ); $this->add_responsive_control( 'title_z_index', [ 'label' => esc_html__('Z-Index', 'wuko-core' ), 'type' => Controls_Manager::NUMBER, 'dynamic' => ['active' => true], 'min' => -5, 'selectors' => [ '{{WRAPPER}} .showcase__title, {{WRAPPER}} .title' => 'z-index: {{VALUE}}', ], ] ); $this->add_control( 'title_tag', [ 'label' => esc_html__('HTML tag', 'wuko-core'), 'type' => Controls_Manager::SELECT, 'options' => [ 'h1' => esc_html('‹h1›'), 'h2' => esc_html('‹h2›'), 'h3' => esc_html('‹h3›'), 'h4' => esc_html('‹h4›'), 'h5' => esc_html('‹h5›'), 'h6' => esc_html('‹h6›'), 'div' => esc_html('‹div›'), 'span' => esc_html('‹span›'), ], 'separator' => 'before', 'default' => 'h3', ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'custom_font_title', 'fields_options' => [ 'typography' => ['default' => 'yes'], 'font_size' => [ 'default' => ['size' => 'clamp(22px, 6vw, 96px)', 'unit' => 'custom'], ], 'line_height' => [ 'default' => ['size' => 1.2, 'unit' => 'em'], ], ], 'selector' => '{{WRAPPER}} .title', ] ); $this->add_control( 'title_font', [ 'label' => esc_html__('Theme Font Family', 'wuko-core'), 'type' => Controls_Manager::SELECT, 'options' => [ '' => esc_html__('Default', 'wuko-core'), 'header' => esc_html__('Headings Font', 'wuko-core'), 'content' => esc_html__('Content Font', 'wuko-core'), 'additional' => esc_html__('Additional Font', 'wuko-core'), ], 'selectors' => [ '{{WRAPPER}} .title' => 'font-family: var(--wuko-{{VALUE}}-font-family);', ], ] ); $this->add_responsive_control( 'title_padding', [ 'label' => esc_html__('Padding', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%', 'custom'], 'selectors' => [ '{{WRAPPER}} .showcase__title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'title_stroke_size', [ 'label' => esc_html__('Stroke Width', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px'], 'range' => ['px' => ['min' => 0, 'max' => 2, 'step' => 0.1]], 'selectors' => [ '{{WRAPPER}} .title' => '-webkit-text-stroke-width: {{SIZE}}{{UNIT}};', ], ] ); $this->start_controls_tabs( 'title_tabs' ); $this->start_controls_tab( 'title_color_tab_idle', ['label' => esc_html__('Idle', 'wuko-core')] ); $this->add_control( 'title_color', [ 'label' => esc_html__('Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'default' => WGL_Globals::get_h_font_color(), 'selectors' => [ '{{WRAPPER}} .title' => 'color: {{VALUE}};' ], ] ); $this->add_control( 'title_bg', [ 'label' => esc_html__('Background Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__title' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'title_stroke_color', [ 'label' => esc_html__('Stroke Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'condition' => [ 'title_stroke_size[size]!' => ['', 0] ], 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .title' => '-webkit-text-stroke-color: {{VALUE}};', ], ] ); $this->add_responsive_control( 'title_skew', [ 'label' => esc_html__('Skew the title', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'deg' ], 'range' => [ 'deg' => ['min' => -45, 'max' => 45], ], 'selectors' => [ '{{WRAPPER}} .title' => 'transform: skew({{SIZE}}deg)', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'title_tab_hover', ['label' => esc_html__('Hover/Active' , 'wuko-core')] ); $this->add_control( 'title_color_hover', [ 'label' => esc_html__('Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .title' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'title_bg_hover', [ 'label' => esc_html__('Background Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .showcase__title' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'title_stroke_color_hover', [ 'label' => esc_html__('Stroke Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'title_stroke_size[size]!' => ['', 0] ], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .title' => '-webkit-text-stroke-color: {{VALUE}};', ], ] ); $this->add_responsive_control( 'title_skew_hover', [ 'label' => esc_html__('Skew the title', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'deg' ], 'range' => [ 'deg' => ['min' => -45, 'max' => 45], ], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .title' => 'transform: skew({{SIZE}}deg)', ], ] ); $this->add_control( 'title_transition', [ 'label' => esc_html__('Transition', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'range' => [ 'px' => ['max' => 3, 'step' => 0.1], ], 'default' => ['size' => 0.4], 'selectors' => [ '{{WRAPPER}} .showcase__title, {{WRAPPER}} .title' => 'transition: {{SIZE}}s', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'title_tab_responsive', ['label' => esc_html__('Responsive' , 'wuko-core')] ); $this->add_control( 'title_color__responsive', [ 'label' => esc_html__('Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .title, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .title, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .title, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .title' => 'color: {{VALUE}};' ], ] ); $this->add_control( 'title_bg_responsive', [ 'label' => esc_html__('Background Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .showcase__title, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .showcase__title, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .showcase__title, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .showcase__title' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'title_stroke_color_responsive', [ 'label' => esc_html__('Stroke Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'title_stroke_size[size]!' => ['', 0] ], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .title, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .title, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .title, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .title' => '-webkit-text-stroke-color: {{VALUE}};', ], ] ); $this->add_responsive_control( 'title_skew_responsive', [ 'label' => esc_html__('Skew the title', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'deg' ], 'range' => [ 'deg' => ['min' => -45, 'max' => 45], ], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .title, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .title, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .title, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .title' => 'transform: skew({{SIZE}}deg)', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /** * STYLE -> Subtitle */ $this->start_controls_section( 'style_subtitle', [ 'label' => esc_html__('Subtitle', 'wuko-core'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'subtitle_position', [ 'label' => esc_html__('Subtitle Position', 'wuko-core'), 'type' => Controls_Manager::SELECT, 'options' => [ 'default' => esc_html__('Default', 'wuko-core'), 'left_w' => esc_html__('Left of the Title Wrapper', 'wuko-core'), 'right_w' => esc_html__('Right of the Title Wrapper', 'wuko-core'), 'left' => esc_html__('Left of the Title', 'wuko-core'), 'right' => esc_html__('Right of the Title', 'wuko-core'), ], 'default' => 'left', ] ); $this->add_responsive_control( 'subtitle_visibility', [ 'label' => esc_html__('Subtitle Visibility', 'wuko-core'), 'type' => Controls_Manager::SELECT, 'options' => [ 'none' => esc_html__('Hide', 'wuko-core'), 'inline-block' => esc_html__('Show', 'wuko-core'), ], 'default' => 'inline-block', 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'display: {{VALUE}};', ], ] ); $this->add_responsive_control( 'subtitle_width', [ 'label' => esc_html__( 'Subtitle Width', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px', 'em', 'rem', '%', 'vw', 'custom'], 'range' => [ 'px' => ['max' => 1200], '%' => ['step' => 0.5], 'vw' => ['step' => 0.5], ], 'default' => [ 'size' => 50, 'unit' => 'px', ], 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'subtitle_align_self', [ 'label' => esc_html__( 'Align Self', 'wuko-core' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'flex-start' => [ 'title' => esc_html__( 'Start', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-start-v', ], 'center' => [ 'title' => esc_html__( 'Center', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-center-v', ], 'flex-end' => [ 'title' => esc_html__( 'End', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-end-v', ], 'stretch' => [ 'title' => esc_html__( 'Stretch', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-stretch-v', ], ], 'default' => 'flex-start', 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'align-self: {{VALUE}};', ], ] ); $this->add_responsive_control( 'subtitle_alignment', [ 'label' => esc_html__('Self Alignment', 'wuko-core'), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => esc_html__('Left', 'wuko-core'), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => esc_html__('Center', 'wuko-core'), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => esc_html__('Right', 'wuko-core'), 'icon' => 'eicon-text-align-right', ], ], 'default' => 'left', 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'text-align: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'custom_font_subtitle', 'separator' => 'before', 'selector' => '{{WRAPPER}} .showcase__subtitle', ] ); $this->add_control( 'subtitle_font', [ 'label' => esc_html__('Theme Font Family', 'wuko-core'), 'type' => Controls_Manager::SELECT, 'options' => [ '' => esc_html__('Default', 'wuko-core'), 'header' => esc_html__('Headings Font', 'wuko-core'), 'content' => esc_html__('Content Font', 'wuko-core'), 'additional' => esc_html__('Additional Font', 'wuko-core'), ], 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'font-family: var(--wuko-{{VALUE}}-font-family);', ], ] ); $this->add_responsive_control( 'subtitle_margin', [ 'label' => esc_html__('Margin', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'custom'], 'default' => [ 'top' => '16', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => false ], 'tablet_default' => [ 'top' => '10', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => false ], 'mobile_default' => [ 'top' => '10', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'subtitle_padding', [ 'label' => esc_html__('Padding', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'custom'], 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'subtitle_radius', [ 'label' => esc_html__('Border Radius', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'custom'], 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'subtitle_top_offset', [ 'label' => esc_html__('Top Offset', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['%', 'px', 'custom'], 'range' => [ '%' => ['min' => -100, 'max' => 100], 'px' => ['min' => -100, 'max' => 100, 'step' => 1], ], 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'transform: translateY( {{SIZE}}{{UNIT}} );', ], ] ); $this->add_responsive_control( 'subtitle_offset', [ 'label' => esc_html__('Left Offset', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px', 'custom'], 'range' => [ 'px' => ['min' => -100, 'max' => 100, 'step' => 1], ], 'condition' => [ 'subtitle_position' => 'right' ], 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'margin-left: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'subtitle_offset_right', [ 'label' => esc_html__('Right Offset', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px', 'custom'], 'range' => [ 'px' => ['min' => -100, 'max' => 100, 'step' => 1], ], 'condition' => [ 'subtitle_position' => 'left' ], 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'margin-right: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'subtitle_border', 'render_type' => 'template', 'dynamic' => ['active' => true], 'fields_options' => [ 'color' => ['type' => Controls_Manager::HIDDEN], ], 'selector' => '{{WRAPPER}} .showcase__subtitle', ] ); $this->start_controls_tabs( 'subtitle_tabs' ); $this->start_controls_tab( 'subtitle_tab', ['label' => esc_html__('Idle' , 'wuko-core')] ); $this->add_control( 'subtitle_color_idle', [ 'label' => esc_html__('Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'default' => WGL_Globals::get_main_font_color(), 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'color: {{VALUE}};' ], ] ); $this->add_control( 'subtitle_bg_color_idle', [ 'label' => esc_html__('Background Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'background-color: {{VALUE}}', ], ] ); $this->add_control( 'subtitle_border_color_idle', [ 'label' => esc_html__('Border Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'subtitle_border_border!' => ['', 'none'] ], 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'border-color: {{VALUE}}' ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'subtitle_hover_tab', ['label' => esc_html__('Hover/Active' , 'wuko-core')] ); $this->add_control( 'subtitle_hover', [ 'label' => esc_html__('Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'default' => WGL_Globals::get_h_font_color(), 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .showcase__subtitle' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'subtitle_bg_color_hover', [ 'label' => esc_html__('Background Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .showcase__subtitle' => 'background-color: {{VALUE}}', ], ] ); $this->add_control( 'subtitle_border_color_hover', [ 'label' => esc_html__('Border Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'subtitle_border_border!' => ['', 'none'] ], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .showcase__subtitle' => 'border-color: {{VALUE}}', ], ] ); $this->add_control( 'subtitle_transition', [ 'label' => esc_html__('Transition', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'range' => [ 'px' => ['max' => 3, 'step' => 0.1], ], 'default' => ['size' => 0], 'selectors' => [ '{{WRAPPER}} .showcase__subtitle' => 'transition: {{SIZE}}s', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'subtitle_tab_responsive', ['label' => esc_html__('Responsive' , 'wuko-core')] ); $this->add_control( 'subtitle_responsive', [ 'label' => esc_html__('Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .showcase__subtitle, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .showcase__subtitle, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .showcase__subtitle, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .showcase__subtitle' => 'color: {{VALUE}};' ], ] ); $this->add_control( 'subtitle_bg_color_responsive', [ 'label' => esc_html__('Background Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .showcase__subtitle, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .showcase__subtitle, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .showcase__subtitle, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .showcase__subtitle' => 'background-color: {{VALUE}}', ], ] ); $this->add_control( 'subtitle_border_color_responsive', [ 'label' => esc_html__('Border Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'subtitle_border_border!' => ['', 'none'] ], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .showcase__subtitle, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .showcase__subtitle, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .showcase__subtitle, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .showcase__subtitle' => 'border-color: {{VALUE}}', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /** * STYLE -> Background Text */ $this->start_controls_section( 'style_bg_text', [ 'label' => esc_html__('Background Text', 'wuko-core'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'bg_text_z_index', [ 'label' => esc_html__('Z-Index', 'wuko-core' ), 'type' => Controls_Manager::NUMBER, 'dynamic' => ['active' => true], 'min' => -5, 'selectors' => [ '{{WRAPPER}} .showcase__bg_text' => 'z-index: {{VALUE}}', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'custom_font_bg_text', 'fields_options' => [ 'typography' => ['default' => 'yes'], 'font_size' => [ 'default' => ['size' => 'clamp(56px, 14vw, 170px)', 'unit' => 'custom'], ], 'line_height' => ['default' => ['size' => 1.2, 'unit' => 'em']], ], 'selector' => '{{WRAPPER}} .showcase__bg_text', ] ); $this->add_control( 'bg_text_font', [ 'label' => esc_html__('Theme Font Family', 'wuko-core'), 'type' => Controls_Manager::SELECT, 'options' => [ '' => esc_html__('Default', 'wuko-core'), 'header' => esc_html__('Headings Font', 'wuko-core'), 'content' => esc_html__('Content Font', 'wuko-core'), 'additional' => esc_html__('Additional Font', 'wuko-core'), ], 'selectors' => [ '{{WRAPPER}} .showcase__bg_text' => 'font-family: var(--wuko-{{VALUE}}-font-family);', ], ] ); $this->add_responsive_control( 'bg_text_position', [ 'label' => esc_html__('Position', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%', 'custom'], 'selectors' => [ '{{WRAPPER}} .showcase__bg_text' => 'top: {{TOP}}{{UNIT}}; right: {{RIGHT}}{{UNIT}}; bottom: {{BOTTOM}}{{UNIT}}; left: {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'bg_text_margin', [ 'label' => esc_html__('Margin', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%', 'custom'], 'default' => [ 'top' => 'auto', 'right' => 'auto', 'bottom' => 'auto', 'left' => '0', 'unit' => 'custom', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .showcase__bg_text' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'bg_text_padding', [ 'label' => esc_html__('Padding', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%', 'custom'], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '10', 'unit' => '%', 'isLinked' => false ], 'tablet_default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '3', 'unit' => '%', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .showcase__bg_text' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->start_controls_tabs( 'bg_text_tabs' ); $this->start_controls_tab( 'bg_text_tab_idle', ['label' => esc_html__('Idle', 'wuko-core')] ); $this->add_control( 'bg_text_color', [ 'label' => esc_html__('Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'default' => 'transparent', 'selectors' => [ '{{WRAPPER}} .showcase__bg_text' => 'color: {{VALUE}};' ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'bg_text_tab_hover', ['label' => esc_html__('Hover/Active' , 'wuko-core')] ); $this->add_control( 'bg_text_hover', [ 'label' => esc_html__('Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'default' => '#EFEFEF', 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .showcase__bg_text' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'bg_text_transition', [ 'label' => esc_html__('Transition', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'range' => [ 'px' => ['max' => 3, 'step' => 0.1], ], 'default' => ['size' => 0.4], 'selectors' => [ '{{WRAPPER}} .showcase__bg_text' => 'transition: {{SIZE}}s', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'bg_text_tab_responsive', ['label' => esc_html__('Responsive' , 'wuko-core')] ); $this->add_control( 'bg_text_responsive', [ 'label' => esc_html__('Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'default' => '#EFEFEF', 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .showcase__bg_text, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .showcase__bg_text, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .showcase__bg_text, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .showcase__bg_text' => 'color: {{VALUE}};' ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /** * STYLE -> CONTENT */ $this->start_controls_section( 'style_content', [ 'label' => esc_html__('Content', 'wuko-core'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'content_width', [ 'label' => esc_html__( 'Content Width', 'wuko-core' ), 'description' => esc_html__( 'Title Width has Priority', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px', 'em', 'rem', '%', 'vw', 'custom'], 'range' => [ 'px' => ['max' => 1200] ], 'default' => ['size' => '320', 'unit' => 'px'], 'tablet_default' => ['size' => '100', 'unit' => '%'], 'selectors' => [ '{{WRAPPER}} .showcase__content_wrapper, {{WRAPPER}} .showcase__content' => '--sc-content-width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'content_align_self', [ 'label' => esc_html__( 'Align Self', 'wuko-core' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'flex-start' => [ 'title' => esc_html__( 'Start', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-start-v', ], 'center' => [ 'title' => esc_html__( 'Center', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-center-v', ], 'flex-end' => [ 'title' => esc_html__( 'End', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-end-v', ], 'stretch' => [ 'title' => esc_html__( 'Stretch', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-stretch-v', ], ], 'selectors' => [ '{{WRAPPER}} .showcase__content_wrapper' => 'align-self: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'custom_fonts_content', 'separator' => 'before', 'fields_options' => [ 'typography' => ['default' => 'yes'], 'font_size' => [ 'default' => ['size' => 15], ], 'line_height' => ['default' => ['size' => 2, 'unit' => 'em']], ], 'selector' => '{{WRAPPER}} .showcase__content_wrapper', ] ); $this->add_responsive_control( 'content_padding', [ 'label' => esc_html__('Padding', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%', 'vw', 'custom'], 'default' => [ 'top' => '4', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => false ], 'mobile_default' => [ 'top' => '11', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .showcase__content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->start_controls_tabs('content_color_tab'); $this->start_controls_tab( 'custom_content_color_idle', ['label' => esc_html__('Idle', 'wuko-core')] ); $this->add_control( 'content_color', [ 'label' => esc_html__('Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'default' => WGL_Globals::get_main_font_color(), 'selectors' => [ '{{WRAPPER}} .showcase__content_wrapper' => 'color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'custom_content_color_hover', ['label' => esc_html__('Hover/Active', 'wuko-core')] ); $this->add_control( 'content_color_hover', [ 'label' => esc_html__('Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .showcase__content_wrapper' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'content_transition', [ 'label' => esc_html__('Transition', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'range' => [ 'px' => ['max' => 3, 'step' => 0.1], ], 'default' => ['size' => 0], 'selectors' => [ '{{WRAPPER}} .showcase__content_wrapper' => 'transition: {{SIZE}}s', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'custom_content_color_responsive', ['label' => esc_html__('Responsive', 'wuko-core')] ); $this->add_control( 'content_color_responsive', [ 'label' => esc_html__('Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .showcase__content_wrapper, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .showcase__content_wrapper, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .showcase__content_wrapper, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .showcase__content_wrapper' => 'color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /** * STYLE -> IMAGE */ $this->start_controls_section( 'image_style_section', [ 'label' => esc_html__('Image', 'wuko-core'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'img_size_string', [ 'type' => Controls_Manager::SELECT, 'label' => esc_html__('Image Size', 'wuko-core'), 'separator' => 'before', 'options' => [ '150' => esc_html__('150x150 - Thumbnail', 'wuko-core'), '300' => esc_html__('300x300 - Medium', 'wuko-core'), '768' => esc_html__('768x768 - Medium Large', 'wuko-core'), '1024' => esc_html__('1024x1024 - Large', 'wuko-core'), 'full' => esc_html__('Full', 'wuko-core'), 'custom' => esc_html__('Custom', 'wuko-core'), ], 'default' => 'full', ] ); $this->add_control( 'img_size_array', [ 'label' => esc_html__('Image Dimension', 'wuko-core'), 'type' => Controls_Manager::IMAGE_DIMENSIONS, 'condition' => [ 'img_size_string' => 'custom' ], 'description' => esc_html__('Crop the original image to any custom size. You can also set a single value for width to keep the initial ratio.', 'wuko-core'), ] ); $this->add_control( 'img_aspect_ratio', [ 'label' => esc_html__('Image Aspect Ratio', 'wuko-core'), 'type' => Controls_Manager::SELECT, 'options' => [ '' => esc_html__('No Crop', 'wuko-core'), '1:1' => esc_html__('1:1', 'wuko-core'), '3:2' => esc_html__('3:2', 'wuko-core'), '4:3' => esc_html__('4:3', 'wuko-core'), '6:5' => esc_html__('6:5', 'wuko-core'), '9:16' => esc_html__('9:16', 'wuko-core'), '16:9' => esc_html__('16:9', 'wuko-core'), '21:9' => esc_html__('21:9', 'wuko-core'), ], 'default' => '', ] ); $this->add_responsive_control( 'image_custom_width', [ 'label' => esc_html__( 'Image Width', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'separator' => 'before', 'range' => [ 'px' => [ 'min' => 0, 'max' => 1000, ], ], 'size_units' => [ 'px', 'vh', 'vw', 'custom'], 'default' => ['size' => 350, 'unit' => 'px'], 'tablet_default' => ['size' => 250, 'unit' => 'px'], 'mobile_default' => ['size' => 200, 'unit' => 'px'], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__image img' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'image_position', [ 'label' => esc_html__( 'Image Horizontal Position', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'range' => [ '%' => [ 'min' => -150, 'max' => 150 ], 'px' => [ 'min' => -1920, 'max' => 1920 ], ], 'size_units' => [ 'px', '%', 'custom' ], 'default' => [ 'size' => 76, 'unit' => '%' ], 'tablet_default' => [ 'size' => 0, 'unit' => '%' ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__image' => '--wgl-image-position: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'image_near_title', [ 'label' => esc_html__( 'Place Image Near Title', 'mindy-core' ), 'type' => Controls_Manager::SWITCHER, 'default' => '', ] ); $this->add_responsive_control( 'image_margin', [ 'label' => esc_html__('Margin', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'custom'], 'tablet_default' => [ 'top' => '0', 'right' => '30', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => true ], 'mobile_default' => [ 'top' => '0', 'right' => '20', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => true ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__image' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'image_radius', [ 'label' => esc_html__('Border Radius', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'custom'], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__image img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'image_border', 'render_type' => 'template', 'dynamic' => ['active' => true], 'fields_options' => [ 'width' => [ 'label' => esc_html__( 'Border Width', 'wuko-core' ) ], 'color' => ['type' => Controls_Manager::HIDDEN], ], 'selector' => '{{WRAPPER}} .showcase__item .showcase__image', ] ); $this->add_responsive_control( 'image_visibility', [ 'label' => esc_html__( 'Image Visibility', 'wuko-core' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'block' => esc_html__( 'Show', 'wuko-core' ), 'none' => esc_html__( 'Hide', 'wuko-core' ), ], 'selectors' => [ '{{WRAPPER}} .image_on_responsive, {{WRAPPER}} .image_on_default' => 'display: {{VALUE}};', ], ] ); $this->start_controls_tabs('image'); $this->start_controls_tab( 'image_idle', ['label' => esc_html__('Idle', 'wuko-core')] ); $this->add_control( 'image_border_color_idle', [ 'label' => esc_html__('Border Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'image_border_border!' => ['', 'none'] ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__image' => 'border-color: {{VALUE}}' ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'image_shadow_idle', 'selector' => '{{WRAPPER}} .showcase__item .showcase__image', ] ); $this->add_responsive_control( 'image_rotation_idle', [ 'label' => esc_html__( 'Rotation', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'deg' ], 'range' => [ 'deg' => [ 'min' => -360, 'max' => 360 ], ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__image' => '--wgl-image-rotate: {{SIZE}}deg;', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'image_hover', ['label' => esc_html__('Hover/Active', 'wuko-core')] ); $this->add_control( 'image_border_color_hover', [ 'label' => esc_html__('Border Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'image_border_border!' => ['', 'none'] ], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .showcase__image' => 'border-color: {{VALUE}}' ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'image_shadow_hover', 'selector' => '{{WRAPPER}} .showcase__item:is(.active, :hover) .showcase__image', ] ); $this->add_responsive_control( 'image_rotation_hover', [ 'label' => esc_html__( 'Rotation', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'deg' ], 'range' => [ 'deg' => [ 'min' => -360, 'max' => 360 ], ], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .showcase__image' => '--wgl-image-rotate: {{SIZE}}deg;', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'image_responsive', ['label' => esc_html__('Responsive', 'wuko-core')] ); $this->add_control( 'image_border_color_responsive', [ 'label' => esc_html__('Border Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'image_border_border!' => ['', 'none'] ], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .showcase__image, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .showcase__image, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .showcase__image, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .showcase__image' => 'border-color: {{VALUE}}', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'image_shadow_responsive', 'selector' => 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .showcase__image, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .showcase__image, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .showcase__image, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .showcase__image', ] ); $this->add_responsive_control( 'image_rotation_responsive', [ 'label' => esc_html__( 'Rotation', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'deg' ], 'range' => [ 'deg' => [ 'min' => -360, 'max' => 360 ], ], 'default' => [ 'size' => 0, 'unit' => 'deg' ], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .showcase__image, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .showcase__image, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .showcase__image, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .showcase__image' => '--wgl-image-rotate: {{SIZE}}deg;', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /** * STYLE -> BUTTON */ $this->start_controls_section( 'button_style_section', [ 'label' => esc_html__('Button', 'wuko-core'), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => ['add_read_more!' => ''], ] ); $this->add_responsive_control( 'button_align_self', [ 'label' => esc_html__( 'Align Self', 'wuko-core' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'flex-start' => [ 'title' => esc_html__( 'Start', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-start-v', ], 'center' => [ 'title' => esc_html__( 'Center', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-center-v', ], 'flex-end' => [ 'title' => esc_html__( 'End', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-end-v', ], 'stretch' => [ 'title' => esc_html__( 'Stretch', 'wuko-core' ), 'icon' => 'eicon-flex eicon-align-stretch-v', ], ], 'default' => 'center', 'selectors' => [ '{{WRAPPER}} .wgl-button-wrapper' => 'align-self: {{VALUE}};', ], ] ); $this->add_responsive_control( 'button_top_offset', [ 'label' => esc_html__('Top Offset', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px', '%', 'custom' ], 'range' => [ 'px' => ['min' => -100, 'max' => 100], '%' => ['min' => -100, 'max' => 100], ], 'selectors' => [ '{{WRAPPER}} .wgl-button-wrapper' => 'top: {{SIZE}}{{UNIT}};' ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'button_custom_fonts', 'separator' => 'before', 'selector' => '{{WRAPPER}} .wgl-showcase__button .button__text', ] ); $this->add_responsive_control( 'button_decoration_line_size', [ 'label' => esc_html__('Decoration Line Size', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'button_custom_fonts_text_decoration' => ['line-through', 'overline', 'underline'] ], 'size_units' => ['px', 'em'], 'range' => [ 'px' => ['min' => 0, 'max' => 20, 'step' => 1], 'em' => ['min' => 0, 'max' => 1, 'step' => 0.1], ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button .button__text' => 'text-decoration-thickness: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_underline_offset', [ 'label' => esc_html__('Underline Offset Size', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'button_custom_fonts_text_decoration' => 'underline' ], 'size_units' => ['px', 'em'], 'range' => [ 'px' => ['min' => -20, 'max' => 20, 'step' => 1], 'em' => ['min' => -1, 'max' => 1, 'step' => 0.05], ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button .button__text' => 'text-underline-offset: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_margin', [ 'label' => esc_html__('Margin', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'custom'], 'default' => [ 'top' => '0', 'right' => '5', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => false ], 'tablet_default' => [ 'top' => '15', 'right' => '3', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .wgl-button-wrapper' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_padding', [ 'label' => esc_html__('Padding', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%', 'custom'], 'selectors' => [ '{{WRAPPER}} .wgl-button-wrapper' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_inner_padding', [ 'label' => esc_html__('Inner Padding', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%', 'custom'], 'condition' => [ 'button_type' => 'wgl-button', ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_radius', [ 'label' => esc_html__('Border Radius', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'custom'], 'condition' => [ 'button_type' => 'wgl-button', ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'button_border', 'render_type' => 'template', 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', ], 'fields_options' => [ 'width' => [ 'label' => esc_html__( 'Border Width', 'wuko-core' ), 'default' => [ 'top' => 1, 'right' => 1, 'bottom' => 1, 'left' => 1, ], ], 'color' => [ 'type' => Controls_Manager::HIDDEN ], ], 'selector' => '{{WRAPPER}} .wgl-showcase__button', ] ); $this->add_responsive_control( 'read_more_button_width', [ 'label' => esc_html__( 'Button Min-Width', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px', 'em', 'rem', '%', 'custom'], 'range' => [ 'px' => ['max' => 500], '%' => ['max' => 100], ], 'default' => ['size' => 'fit-content', 'unit' => 'custom'], 'mobile_default' => ['size' => 100, 'unit' => '%'], 'selectors' => [ '{{WRAPPER}} .wgl-button-wrapper' => 'min-width: {{SIZE}}{{UNIT}};', ], ] ); $this->start_controls_tabs( 'tabs_button' ); $this->start_controls_tab( 'tab_button_idle', ['label' => esc_html__('Idle' , 'wuko-core') ] ); $this->add_control( 'button_color_idle', [ 'label' => esc_html__('Text Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button' => 'color: {{VALUE}}; fill: {{VALUE}};', ], ] ); $this->add_control( 'button_bg_idle', [ 'label' => esc_html__('Background Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'button_decoration_color_idle', [ 'label' => esc_html__('Decoration Line Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'button_custom_fonts_text_decoration' => ['line-through', 'overline', 'underline'] ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button .button__text' => 'text-decoration-color: {{VALUE}};', ], ] ); $this->add_control( 'button_icon_color_idle', [ 'label' => esc_html__('Icon Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button .wgl-icon' => 'color: {{VALUE}}; fill: {{VALUE}};', '{{WRAPPER}} .wgl-showcase__button' => '--read-more-icon-color: {{VALUE}};', ], ] ); $this->add_control( 'button_icon_bg_color_idle', [ 'label' => esc_html__('Icon BG Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_fontawesome[value]!' => '' ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button .wgl-icon' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'button_icon_stroke_idle', [ 'label' => esc_html__('Stroke Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_fontawesome[library]' => 'svg' ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button .wgl-icon' => 'stroke: {{VALUE}}' ], ] ); $this->add_control( 'button_border_color_idle', [ 'label' => esc_html__('Border Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'button_border_border!' => ['', 'none'], 'read_more_icon_fontawesome[value]!' => '', ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button' => 'border-color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'button_shadow_idle', 'condition' => [ 'button_type' => 'wgl-button', ], 'selector' => '{{WRAPPER}} .wgl-showcase__button', ] ); $this->add_responsive_control( 'button_icon_offset_idle', [ 'label' => esc_html__( 'Icon/Image Offset', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_type' => ['font','image'], ], 'range' => [ 'px' => [ 'max' => 250 ], ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button' => '--wgl-icon-gap: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_icon_rotation_idle', [ 'label' => esc_html__( 'Icon Rotate', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'deg', 'turn' ], 'range' => [ 'deg' => [ 'min' => -360, 'max' => 360 ], 'turn' => ['min' => -1, 'max' => 1, 'step' => 0.1], ], 'default' => ['unit' => 'deg'], 'tablet_default' => ['unit' => 'deg'], 'mobile_default' => ['unit' => 'deg'], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_type' => 'font' ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button .wgl-icon' => '--icon-rotate: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_button_opacity_idle', [ 'label' => esc_html__('Opacity', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['%'], 'range' => [ '%' => ['min' => 0, 'max' => 1, 'step' => 0.02], ], 'selectors' => [ '{{WRAPPER}} .wgl-showcase__button' => 'opacity: {{SIZE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_button_item_hover', ['label' => esc_html__('Item Hover', 'wuko-core')] ); $this->add_control( 'button_color_item_hover', [ 'label' => esc_html__('Text Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .wgl-showcase__button' => 'color: {{VALUE}}; fill: {{VALUE}};', ], ] ); $this->add_control( 'button_bg_item_hover', [ 'label' => esc_html__('Background Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .wgl-showcase__button' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'button_decoration_color_item_hover', [ 'label' => esc_html__('Decoration Line Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'button_custom_fonts_text_decoration' => ['line-through', 'overline', 'underline'] ], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .wgl-showcase__button .button__text' => 'text-decoration-color: {{VALUE}};', ], ] ); $this->add_control( 'button_icon_color_item_hover', [ 'label' => esc_html__('Icon Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .wgl-showcase__button .wgl-icon' => 'color: {{VALUE}}; fill: {{VALUE}};', '{{WRAPPER}} .showcase__item:is(.active, :hover) .wgl-showcase__button' => '--read-more-icon-color: {{VALUE}};', ], ] ); $this->add_control( 'button_icon_bg_color_item_hover', [ 'label' => esc_html__('Icon BG Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_fontawesome[value]!' => '' ], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .wgl-showcase__button .wgl-icon' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'button_icon_stroke_item_hover', [ 'label' => esc_html__('Icon Stroke Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_fontawesome[library]' => 'svg' ], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .wgl-showcase__button .wgl-icon' => 'stroke: {{VALUE}};', ], ] ); $this->add_control( 'button_border_color_item_hover', [ 'label' => esc_html__('Border Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'button_border_border!' => ['', 'none'], 'read_more_icon_fontawesome[value]!' => '', ], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .wgl-showcase__button' => 'border-color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'button_shadow_item_hover', 'condition' => [ 'button_type' => 'wgl-button', ], 'selector' => '{{WRAPPER}} .showcase__item:is(.active, :hover) .wgl-showcase__button', ] ); $this->add_responsive_control( 'button_bg_backdrop_filter_item_hover', [ 'label' => esc_html__('Backdrop Filter', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'range' => [ 'px' => ['max' => 100, 'step' => 0.5], ], 'condition' => [ 'button_type' => 'wgl-button', ], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .wgl-showcase__button .wgl-icon' => 'backdrop-filter: blur({{SIZE}}px); -webkit-backdrop-filter: blur({{SIZE}}px);', ], ] ); $this->add_responsive_control( 'button_icon_offset_item_hover', [ 'label' => esc_html__( 'Icon/Image Offset', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_type' => ['font','image'], ], 'range' => [ 'px' => [ 'max' => 250 ], ], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .wgl-showcase__button' => '--wgl-icon-gap: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_icon_rotation_item_hover', [ 'label' => esc_html__( 'Icon Rotate', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['deg', 'turn'], 'range' => [ 'deg' => ['min' => -360, 'max' => 360], 'turn' => ['min' => -1, 'max' => 1, 'step' => 0.1], ], 'default' => ['unit' => 'deg'], 'tablet_default' => ['unit' => 'deg'], 'mobile_default' => ['unit' => 'deg'], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_type' => 'font' ], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .wgl-showcase__button .wgl-icon' => 'transform: rotate({{SIZE}}{{UNIT}});', ], ] ); $this->add_responsive_control( 'button_button_opacity_hover_item', [ 'label' => esc_html__('Opacity', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['%'], 'range' => [ '%' => ['min' => 0, 'max' => 1, 'step' => 0.02], ], 'selectors' => [ '{{WRAPPER}} .showcase__item:is(.active, :hover) .wgl-showcase__button' => 'opacity: {{SIZE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_button_hover', [ 'label' => esc_html__( 'Hover Button', 'wuko-core' ) ] ); $this->add_control( 'button_color_hover', [ 'label' => esc_html__('Text Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item .wgl-button-wrapper .wgl-showcase__button:hover' => 'color: {{VALUE}}; fill: {{VALUE}};', ], ] ); $this->add_control( 'button_bg_hover', [ 'label' => esc_html__('Background Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item .wgl-button-wrapper .wgl-showcase__button:hover' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'button_decoration_color_hover', [ 'label' => esc_html__('Decoration Line Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'button_custom_fonts_text_decoration' => ['line-through', 'overline', 'underline'] ], 'selectors' => [ '{{WRAPPER}} .showcase__item .wgl-button-wrapper .wgl-showcase__button:hover .button__text' => 'text-decoration-color: {{VALUE}};', ], ] ); $this->add_control( 'button_icon_color_hover', [ 'label' => esc_html__('Icon Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item .wgl-button-wrapper .wgl-showcase__button:hover .wgl-icon' => 'color: {{VALUE}}; fill: {{VALUE}};', '{{WRAPPER}} .showcase__item .wgl-button-wrapper .wgl-showcase__button:hover' => '--read-more-icon-color: {{VALUE}};', ], ] ); $this->add_control( 'button_icon_bg_color_hover', [ 'label' => esc_html__('Icon BG Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_fontawesome[value]!' => '' ], 'selectors' => [ '{{WRAPPER}} .elementor-widget-container .wgl-showcase__button:hover .wgl-icon' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'button_icon_stroke_hover', [ 'label' => esc_html__('Icon Stroke Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_fontawesome[library]' => 'svg' ], 'selectors' => [ '{{WRAPPER}} .showcase__item .wgl-button-wrapper .wgl-showcase__button:hover .wgl-icon' => 'stroke: {{VALUE}};', ], ] ); $this->add_control( 'button_border_color_hover', [ 'label' => esc_html__('Border Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'button_border_border!' => ['', 'none'], 'read_more_icon_fontawesome[value]!' => '', ], 'selectors' => [ '{{WRAPPER}} .showcase__item .wgl-button-wrapper .wgl-showcase__button:hover' => 'border-color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'button_shadow_hover', 'condition' => [ 'button_type' => 'wgl-button', ], 'selector' => '{{WRAPPER}} .showcase__item .wgl-button-wrapper .wgl-showcase__button:hover', ] ); $this->add_responsive_control( 'button_bg_backdrop_filter_hover', [ 'label' => esc_html__('Backdrop Filter', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'range' => [ 'px' => ['max' => 100, 'step' => 0.5], ], 'condition' => [ 'button_type' => 'wgl-button', ], 'selectors' => [ '{{WRAPPER}} .showcase__item .wgl-button-wrapper .wgl-showcase__button:hover' => 'backdrop-filter: blur({{SIZE}}px); -webkit-backdrop-filter: blur({{SIZE}}px);', ], ] ); $this->add_responsive_control( 'button_icon_offset_hover', [ 'label' => esc_html__( 'Icon/Image Offset', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_type' => ['font','image'], ], 'range' => [ 'px' => [ 'max' => 250 ], ], 'selectors' => [ '{{WRAPPER}} .showcase__item .wgl-button-wrapper .wgl-showcase__button:hover' => '--wgl-icon-gap: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_icon_rotation_hover', [ 'label' => esc_html__( 'Icon Rotate', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['deg', 'turn'], 'range' => [ 'deg' => ['min' => -360, 'max' => 360], 'turn' => ['min' => -1, 'max' => 1, 'step' => 0.1], ], 'default' => ['unit' => 'deg'], 'tablet_default' => ['unit' => 'deg'], 'mobile_default' => ['unit' => 'deg'], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_type' => 'font' ], 'selectors' => [ '{{WRAPPER}} .showcase__item .wgl-button-wrapper .wgl-showcase__button:hover .wgl-icon' => 'transform: rotate({{SIZE}}{{UNIT}});', ], ] ); $this->add_responsive_control( 'button_opacity_hover', [ 'label' => esc_html__('Opacity', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['%'], 'range' => [ '%' => ['min' => 0, 'max' => 1, 'step' => 0.02], ], 'selectors' => [ '{{WRAPPER}} .showcase__item .wgl-button-wrapper .wgl-showcase__button:hover' => 'opacity: {{SIZE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_button_responsive', [ 'label' => esc_html__( 'Responsive', 'wuko-core' ) ] ); $this->add_control( 'button_color_responsive', [ 'label' => esc_html__('Text Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .wgl-button-wrapper .wgl-showcase__button' => 'color: {{VALUE}}; fill: {{VALUE}};', ], ] ); $this->add_control( 'button_bg_responsive', [ 'label' => esc_html__('Background Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .wgl-button-wrapper .wgl-showcase__button' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'button_decoration_color_responsive', [ 'label' => esc_html__('Decoration Line Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'button_custom_fonts_text_decoration' => ['line-through', 'overline', 'underline'] ], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .wgl-showcase__button .button__text, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .wgl-showcase__button .button__text, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .wgl-showcase__button .button__text, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .wgl-showcase__button .button__text' => 'text-decoration-color: {{VALUE}};', ], ] ); $this->add_control( 'button_icon_color_responsive', [ 'label' => esc_html__('Icon Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon' => 'color: {{VALUE}}; fill: {{VALUE}};', 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .wgl-button-wrapper .wgl-showcase__button' => '--read-more-icon-color: {{VALUE}}; fill: {{VALUE}};', ], ] ); $this->add_control( 'button_icon_bg_color_responsive', [ 'label' => esc_html__('Icon BG Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_fontawesome[value]!' => '' ], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'button_icon_stroke_responsive', [ 'label' => esc_html__('Icon Stroke Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_fontawesome[library]' => 'svg' ], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon' => 'stroke: {{VALUE}};', ], ] ); $this->add_control( 'button_border_color_responsive', [ 'label' => esc_html__('Border Color', 'wuko-core'), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'button_border_border!' => ['', 'none'], 'read_more_icon_fontawesome[value]!' => '', ], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .wgl-button-wrapper .wgl-showcase__button' => 'border-color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'button_shadow_responsive', 'condition' => [ 'button_type' => 'wgl-button', ], 'selector' => 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .wgl-button-wrapper .wgl-showcase__button', ] ); $this->add_responsive_control( 'button_bg_backdrop_filter_responsive', [ 'label' => esc_html__('Backdrop Filter', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'range' => [ 'px' => ['max' => 100, 'step' => 0.5], ], 'condition' => [ 'button_type' => 'wgl-button', ], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .wgl-button-wrapper .wgl-showcase__button' => 'backdrop-filter: blur({{SIZE}}px); -webkit-backdrop-filter: blur({{SIZE}}px);', ], ] ); $this->add_responsive_control( 'button_icon_offset_responsive', [ 'label' => esc_html__( 'Icon/Image Offset', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_type' => ['font','image'], ], 'range' => [ 'px' => [ 'max' => 250 ], ], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .wgl-button-wrapper .wgl-showcase__button' => '--wgl-icon-gap: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_icon_rotation_responsive', [ 'label' => esc_html__( 'Icon Rotate', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['deg', 'turn'], 'range' => [ 'deg' => ['min' => -360, 'max' => 360], 'turn' => ['min' => -1, 'max' => 1, 'step' => 0.1], ], 'default' => ['unit' => 'deg'], 'tablet_default' => ['unit' => 'deg'], 'mobile_default' => ['unit' => 'deg'], 'condition' => [ 'button_type' => 'wgl-button', 'read_more_icon_type' => 'font' ], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .wgl-button-wrapper .wgl-showcase__button .wgl-icon' => 'transform: rotate({{SIZE}}{{UNIT}});', ], ] ); $this->add_responsive_control( 'button_opacity_responsive', [ 'label' => esc_html__('Opacity', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['%'], 'range' => [ '%' => ['min' => 0, 'max' => 1, 'step' => 0.02], ], 'selectors' => [ 'body[data-elementor-device-mode="tablet_extra"] {{WRAPPER}} .breakpoint_on-tablet_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="tablet"] {{WRAPPER}} .breakpoint_on-tablet .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile_extra"] {{WRAPPER}} .breakpoint_on-mobile_extra .showcase__item .wgl-button-wrapper .wgl-showcase__button, body[data-elementor-device-mode="mobile"] {{WRAPPER}} .breakpoint_on-mobile .showcase__item .wgl-button-wrapper .wgl-showcase__button' => 'opacity: {{SIZE}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /** STYLE -> BUTTON ANIMATION */ $this->start_controls_section( 'style_button_animation', [ 'label' => esc_html__( 'Button Animation', 'wuko-core' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'button_type' => 'wgl-button' ], ] ); $this->add_control( 'button_animation_style', [ 'label' => esc_html__('Animation Style', 'wuko-core'), 'type' => Controls_Manager::SELECT, 'render_type' => 'template', 'options' => [ '' => esc_html__('None', 'wuko-core'), 'letter_animation' => esc_html__('Letter Animation', 'wuko-core'), 'background_gradient' => esc_html__('Background Gradient', 'wuko-core'), 'border_gradient' => esc_html__('Border Gradient', 'wuko-core'), 'separated' => esc_html__('Separated Button', 'wuko-core'), 'highlight_animation' => esc_html__('Highlight Animation', 'wuko-core'), 'bg_animation' => esc_html__('Background Animation ', 'wuko-core'), 'border_animation' => esc_html__('Border Animation', 'wuko-core'), 'magnetic' => esc_html__('Magnetic', 'wuko-core'), 'icon_size_animation' => esc_html__('Icon Size Animation', 'wuko-core'), 'icon_visibility' => esc_html__('Icon Visibility', 'wuko-core'), ], 'prefix_class' => 'has-', ] ); /** Background Gradient Animation */ $this->add_responsive_control( 'background_gradient_location_1', [ 'label' => esc_html__('Primary Color Location', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ '%', 'px' ], 'default' => [ 'unit' => '%', 'size' => 0 ], 'render_type' => 'ui', 'condition' => [ 'button_animation_style' => 'background_gradient', ], 'selectors' => [ '{{WRAPPER}} .showcase__button' => '--bg-gradient-location-1: {{SIZE}}{{UNIT}}', ], ] ); $this->add_responsive_control( 'background_gradient_location_2', [ 'label' => esc_html__('Secondary Color Location', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ '%', 'px' ], 'default' => [ 'unit' => '%', 'size' => 100 ], 'render_type' => 'ui', 'condition' => [ 'button_animation_style' => 'background_gradient', ], 'selectors' => [ '{{WRAPPER}} .showcase__button' => '--bg-gradient-location-2: {{SIZE}}{{UNIT}}', ], ] ); $this->add_control( 'background_gradient_type', [ 'label' => esc_html__('Type', 'wuko-core'), 'type' => Controls_Manager::SELECT, 'options' => [ 'linear' => esc_html__( 'Linear', 'wuko-core' ), 'radial' => esc_html__( 'Radial', 'wuko-core' ), ], 'default' => 'linear', 'render_type' => 'ui', 'condition' => [ 'button_animation_style' => 'background_gradient', ], ] ); $this->add_responsive_control( 'background_gradient_angle', [ 'label' => esc_html__('Angle', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'deg' ], 'default' => [ 'unit' => 'deg', 'size' => 90 ], 'range' => [ 'deg' => [ 'step' => 10 ], ], 'condition' => [ 'button_animation_style' => 'background_gradient', 'background_gradient_type' => 'linear', ], 'selectors' => [ '{{WRAPPER}} .showcase__button' => 'background-color: transparent; background-image: linear-gradient({{SIZE}}{{UNIT}}, var(--wgl-bg-gradient-primary) var(--bg-gradient-location-1), var(--wgl-bg-gradient-secondary) var(--bg-gradient-location-2));', ], ] ); $this->add_responsive_control( 'background_gradient_position', [ 'label' => esc_html__('Position', 'wuko-core'), 'type' => Controls_Manager::SELECT, 'options' => [ 'center center' => esc_html__( 'Center Center', 'wuko-core' ), 'center left' => esc_html__( 'Center Left', 'wuko-core' ), 'center right' => esc_html__( 'Center Right', 'wuko-core' ), 'top center' => esc_html__( 'Top Center', 'wuko-core' ), 'top left' => esc_html__( 'Top Left', 'wuko-core' ), 'top right' => esc_html__( 'Top Right', 'wuko-core' ), 'bottom center' => esc_html__( 'Bottom Center', 'wuko-core' ), 'bottom left' => esc_html__( 'Bottom Left', 'wuko-core' ), 'bottom right' => esc_html__( 'Bottom Right', 'wuko-core' ), 'var(--h-pos) var(--v-pos)' => esc_html__( 'Custom', 'wuko-core' ), ], 'default' => 'center center', 'condition' => [ 'button_animation_style' => 'background_gradient', 'background_gradient_type' => 'radial', ], 'selectors' => [ '{{WRAPPER}} .showcase__button' => 'background-color: transparent; background-image: radial-gradient(circle at {{VALUE}}, var(--wgl-bg-gradient-primary) var(--bg-gradient-location-1), var(--wgl-bg-gradient-secondary) var(--bg-gradient-location-2));', ], ] ); $this->add_responsive_control( 'background_gradient_h_position', [ 'label' => esc_html__('Horizontal Position', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px', '%', 'vw', 'custom'], 'range' => [ 'px' => [ 'min' => -2560, 'max' => 2560 ], '%' => [ 'min' => -100, 'max' => 200 ], 'vw' => [ 'min' => -100, 'max' => 100 ], ], 'condition' => [ 'button_animation_style' => 'background_gradient', 'background_gradient_type' => 'radial', 'background_gradient_position' => 'var(--h-pos) var(--v-pos)', ], 'default' => [ 'size' => 50, 'unit' => '%' ], 'selectors' => [ '{{WRAPPER}} .showcase__button' => '--h-pos: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'background_gradient_v_position', [ 'label' => esc_html__('Vertical Position', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px', '%', 'vw', 'custom'], 'range' => [ 'px' => [ 'min' => -2560, 'max' => 2560 ], '%' => [ 'min' => -100, 'max' => 200 ], 'vw' => [ 'min' => -100, 'max' => 100 ], ], 'condition' => [ 'button_animation_style' => 'background_gradient', 'background_gradient_type' => 'radial', 'background_gradient_position' => 'var(--h-pos) var(--v-pos)', ], 'default' => [ 'size' => 100, 'unit' => '%' ], 'selectors' => [ '{{WRAPPER}} .showcase__button' => '--v-pos: {{SIZE}}{{UNIT}};', ], ] ); $this->start_controls_tabs( 'gradient_background_tabs', [ 'condition' => [ 'button_animation_style' => 'background_gradient' ] ]); $this->start_controls_tab( 'gradient_background_tab_idle', [ 'label' => esc_html__( 'Idle', 'wuko-core' ) ]); $this->add_control( 'gradient_background_primary_idle', [ 'label' => esc_html__( 'Gradient Color Primary', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'default' => '#5A76F7', 'selectors' => [ '{{WRAPPER}} .showcase__button' => '--wgl-bg-gradient-primary: {{VALUE}};', ], ] ); $this->add_control( 'gradient_background_secondary_idle', [ 'label' => esc_html__( 'Gradient Color Secondary', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'default' => '#A96FF3', 'selectors' => [ '{{WRAPPER}} .showcase__button' => '--wgl-bg-gradient-secondary: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'gradient_background_tab_item_hover', [ 'label' => esc_html__( 'Hover', 'wuko-core' ) ]); $this->add_control( 'gradient_background_primary_item_hover', [ 'label' => esc_html__( 'Primary BG Gradient Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item:hover .showcase__button' => '--wgl-bg-gradient-primary: {{VALUE}};', ], ] ); $this->add_control( 'gradient_background_secondary_item_hover', [ 'label' => esc_html__( 'Secondary BG Gradient Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item:hover .showcase__button' => '--wgl-bg-gradient-secondary: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'gradient_background_tab_hover', [ 'label' => esc_html__( 'Hover', 'wuko-core' ) ]); $this->add_control( 'gradient_background_primary_hover', [ 'label' => esc_html__( 'Primary BG Gradient Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'default' => '#A96FF3', 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:is(:hover, :focus)' => '--wgl-bg-gradient-primary: {{VALUE}};', ], ] ); $this->add_control( 'gradient_background_secondary_hover', [ 'label' => esc_html__( 'Secondary BG Gradient Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'default' => '#5A76F7', 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:is(:hover, :focus)' => '--wgl-bg-gradient-secondary: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'gradient_background_tab_active', [ 'label' => esc_html__( 'Active', 'wuko-core' ) ]); $this->add_control( 'gradient_background_primary_active', [ 'label' => esc_html__( 'Primary BG Gradient Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:active' => '--wgl-bg-gradient-primary: {{VALUE}};', ], ] ); $this->add_control( 'gradient_background_secondary_active', [ 'label' => esc_html__( 'Secondary BG Gradient Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:active' => '--wgl-bg-gradient-secondary: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); /** Border Gradient Animation */ $this->add_responsive_control( 'gradient_border_width', [ 'label' => esc_html__( 'Border Width', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px', '%', 'vw', 'custom'], 'condition' => [ 'button_animation_style' => 'border_gradient' ], 'selectors' => [ '{{WRAPPER}} .showcase__button' => '--wgl-mask-border: {{SIZE}}{{UNIT}};', ], ] ); $this->start_controls_tabs( 'gradient_border_tabs', [ 'condition' => [ 'button_animation_style' => 'border_gradient' ] ] ); $this->start_controls_tab( 'gradient_border_tab_idle', [ 'label' => esc_html__( 'Idle', 'wuko-core' ) ] ); $this->add_control( 'gradient_border_color_primary_idle', [ 'label' => esc_html__( 'Gradient Color Primary', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__button::after' => '--wgl-border-gradient-primary: {{VALUE}};', ], ] ); $this->add_control( 'gradient_border_color_secondary_idle', [ 'label' => esc_html__( 'Gradient Color Secondary', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__button::after' => '--wgl-border-gradient-secondary: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'gradient_border_tab_item_hover', [ 'label' => esc_html__( 'Item Hover', 'wuko-core' ) ] ); $this->add_control( 'gradient_border_color_primary_item_hover', [ 'label' => esc_html__( 'Gradient Color Primary', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item:hover .showcase__button::after' => '--wgl-border-gradient-primary: {{VALUE}};', ], ] ); $this->add_control( 'gradient_border_color_secondary_item_hover', [ 'label' => esc_html__( 'Gradient Color Secondary', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item:hover .showcase__button::after' => '--wgl-border-gradient-secondary: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'gradient_border_tab_hover', [ 'label' => esc_html__( 'Hover', 'wuko-core' ) ] ); $this->add_control( 'gradient_border_color_primary_hover', [ 'label' => esc_html__( 'Gradient Color Primary', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:is(:hover, :focus, :active)::after' => '--wgl-border-gradient-primary: {{VALUE}};', ], ] ); $this->add_control( 'gradient_border_color_secondary_hover', [ 'label' => esc_html__( 'Gradient Color Secondary', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:is(:hover, :focus, :active)::after' => '--wgl-border-gradient-secondary: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); /** Separated Button Animation */ $this->add_responsive_control( 'icon_wrapper_size', [ 'label' => esc_html__( 'Icon Wrapper Size', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px', '%', 'vw', 'custom'], 'condition' => [ 'button_animation_style' => 'separated' ], 'selectors' => [ '{{WRAPPER}} .showcase__button' => '--wgl-icon-wrapper: {{SIZE}}{{UNIT}};', ], ] ); /** Highlight Animation */ $this->add_control( 'stroke_highlight_color_normal', [ 'label' => esc_html__( 'Stroke Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'highlight_animation' ], 'selectors' => [ '{{WRAPPER}} .highlight_svg path' => 'stroke: {{VALUE}};', ], ] ); $this->add_responsive_control( 'stroke_highlight_width_normal', [ 'label' => esc_html__( 'Stroke Width', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px', '%', 'vw', 'custom'], 'condition' => [ 'button_animation_style' => 'highlight_animation' ], 'range' => [ 'px' => [ 'min' => 0.1, 'max' => 10 ], ], 'selectors' => [ '{{WRAPPER}} .highlight_svg path' => 'stroke-width: {{SIZE}}{{UNIT}};', ], ] ); /** Background Animation */ $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'button_bg_border', 'fields_options' => [ 'width' => [ 'label' => esc_html__( 'Border Width', 'wuko-core' ) ], 'color' => [ 'type' => Controls_Manager::HIDDEN ], ], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'selector' => '{{WRAPPER}} .showcase__button::after', ] ); $this->add_control( 'button_bg_z_index', [ 'label' => esc_html__( 'Z-Index', 'wuko-core' ), 'type' => Controls_Manager::NUMBER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'step' => 1, 'selectors' => [ '{{WRAPPER}} .showcase__button::after' => 'z-index: {{VALUE}}', ], ] ); $this->start_controls_tabs( 'button_animation', [ 'condition' => [ 'button_animation_style' => 'bg_animation' ], ] ); $this->start_controls_tab( 'button_animation_idle', [ 'label' => esc_html__( 'Idle', 'wuko-core' ) ] ); $this->add_responsive_control( 'button_bg_x_pos_idle', [ 'label' => esc_html__( 'Horizontal Position', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => [ 'px', '%', 'custom' ], 'range' => [ 'px' => [ 'min' => -200, 'max' => 200 ], '%' => ['min' => -100,'max' => 100], ], 'selectors' => [ '{{WRAPPER}} .showcase__button::after' => '--pos-x: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_bg_y_pos_idle', [ 'label' => esc_html__( 'Vertical Position', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => [ 'px', '%', 'custom' ], 'range' => [ 'px' => [ 'min' => -200, 'max' => 200 ], '%' => ['min' => -100,'max' => 100], ], 'selectors' => [ '{{WRAPPER}} .showcase__button::after' => '--pos-y:{{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_bg_size_w', [ 'label' => esc_html__('Background Size - Width', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => [ 'px', '%', 'custom' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 200 ], '%' => [ 'min' => 0, 'max' => 100 ], ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'selectors' => [ '{{WRAPPER}} .showcase__button::after' => 'width: {{SIZE}}{{UNIT}};', ] ] ); $this->add_responsive_control( 'button_bg_size_h', [ 'label' => esc_html__('Background Size - Height', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => [ 'px', '%', 'custom' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 200 ], '%' => [ 'min' => 0, 'max' => 100 ], ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'selectors' => [ '{{WRAPPER}} .showcase__button::after' => 'height: {{SIZE}}{{UNIT}};', ] ] ); $this->add_control( 'button_bg_border_radius', [ 'label' => esc_html__('Border Radius', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => ['px', '%', 'custom'], 'selectors' => [ '{{WRAPPER}} .showcase__button::after' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'button_bg_bg_idle', [ 'label' => esc_html__( 'Background Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__button::after' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'button_bg_border_color_idle', [ 'label' => esc_html__( 'Border Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation', 'button_bg_border_border!' => ['', 'none'] ], 'selectors' => [ '{{WRAPPER}} .showcase__button::after' => 'border-color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'button_animation_item_hover', [ 'label' => esc_html__( 'Item Hover', 'wuko-core' ) ] ); $this->add_responsive_control( 'button_bg_x_pos_item_hover', [ 'label' => esc_html__( 'Horizontal Position', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => [ 'px', '%', 'custom' ], 'range' => [ 'px' => [ 'min' => -200, 'max' => 200 ], '%' => ['min' => -100,'max' => 100], ], 'selectors' => [ '{{WRAPPER}} .showcase__item:hover .showcase__button::after' => '--pos-x: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_bg_y_pos_item_hover', [ 'label' => esc_html__( 'Vertical Position', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => [ 'px', '%', 'custom' ], 'range' => [ 'px' => [ 'min' => -200, 'max' => 200 ], '%' => ['min' => -100,'max' => 100], ], 'selectors' => [ '{{WRAPPER}} .showcase__item:hover .showcase__button::after' => '--pos-y:{{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_bg_size_w_item_hover', [ 'label' => esc_html__('Background Size - Width', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px', '%', 'custom' ], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'render_type' => 'template', 'range' => [ 'px' => [ 'min' => 0, 'max' => 2000 ], '%' => [ 'min' => 0, 'max' => 100 ], ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'selectors' => [ '{{WRAPPER}} .showcase__item:hover .showcase__button::after' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_bg_size_h_item_hover', [ 'label' => esc_html__('Background Size - Height', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px', '%', 'custom' ], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'render_type' => 'template', 'range' => [ 'px' => [ 'min' => 0, 'max' => 2000 ], '%' => [ 'min' => 0, 'max' => 100 ], ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'selectors' => [ '{{WRAPPER}} .showcase__item:hover .showcase__button::after' => 'height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'button_bg_border_radius_item_hover', [ 'label' => esc_html__('Border Radius', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => ['px', '%', 'custom'], 'selectors' => [ '{{WRAPPER}} .showcase__item:hover .showcase__button::after' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'button_bg_bg_item_hover', [ 'label' => esc_html__( 'Background Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item:hover .showcase__button::after' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'button_bg_border_color_item_hover', [ 'label' => esc_html__( 'Border Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation', 'button_bg_border_border!' => ['', 'none'] ], 'selectors' => [ '{{WRAPPER}} .showcase__item:hover .showcase__button::after' => 'border-color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'button_animation_hover', [ 'label' => esc_html__( 'Hover', 'wuko-core' ) ] ); $this->add_responsive_control( 'button_bg_x_pos_hover', [ 'label' => esc_html__( 'Horizontal Position', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => [ 'px', '%', 'custom' ], 'range' => [ 'px' => [ 'min' => -200, 'max' => 200 ], '%' => ['min' => -100,'max' => 100], ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:is(:hover, :focus)::after' => '--pos-x: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_bg_y_pos_hover', [ 'label' => esc_html__( 'Vertical Position', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => [ 'px', '%', 'custom' ], 'range' => [ 'px' => [ 'min' => -200, 'max' => 200 ], '%' => ['min' => -100,'max' => 100], ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:is(:hover, :focus)::after' => '--pos-y:{{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_bg_size_w_hover', [ 'label' => esc_html__('Background Size - Width', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px', '%', 'custom' ], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'render_type' => 'template', 'range' => [ 'px' => [ 'min' => 0, 'max' => 2000 ], '%' => [ 'min' => 0, 'max' => 100 ], ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:is(:hover, :focus)::after' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_bg_size_h_hover', [ 'label' => esc_html__('Background Size - Height', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px', '%', 'custom' ], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'render_type' => 'template', 'range' => [ 'px' => [ 'min' => 0, 'max' => 2000 ], '%' => [ 'min' => 0, 'max' => 100 ], ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:is(:hover, :focus)::after' => 'height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'button_bg_border_radius_hover', [ 'label' => esc_html__('Border Radius', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => ['px', '%', 'custom'], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:is(:hover, :focus)::after' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'button_bg_bg_hover', [ 'label' => esc_html__( 'Background Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:is(:hover, :focus)::after' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'button_bg_border_color_hover', [ 'label' => esc_html__( 'Border Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation', 'button_bg_border_border!' => ['', 'none'] ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:is(:hover, :focus)::after' => 'border-color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'button_animation_active', [ 'label' => esc_html__( 'Active', 'wuko-core' ) ] ); $this->add_responsive_control( 'button_bg_x_pos_active', [ 'label' => esc_html__( 'Horizontal Position', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => [ 'px', '%', 'custom' ], 'range' => [ 'px' => [ 'min' => -200, 'max' => 200 ], '%' => ['min' => -100,'max' => 100], ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:active::after' => '--pos-x: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_bg_y_pos_active', [ 'label' => esc_html__( 'Vertical Position', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => [ 'px', '%', 'custom' ], 'range' => [ 'px' => [ 'min' => -200, 'max' => 200 ], '%' => ['min' => -100,'max' => 100], ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:active::after' => '--pos-y:{{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_bg_size_w_active', [ 'label' => esc_html__('Background Size - Width', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => [ 'px', '%', 'custom' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 200 ], '%' => [ 'min' => 0, 'max' => 100 ], ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:active::after' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'button_bg_size_h_active', [ 'label' => esc_html__('Background Size - Height', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => [ 'px', '%', 'custom' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 200 ], '%' => [ 'min' => 0, 'max' => 100 ], ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:active::after' => 'height: {{SIZE}}{{UNIT}};', ] ] ); $this->add_control( 'button_bg_border_radius_active', [ 'label' => esc_html__('Border Radius', 'wuko-core'), 'type' => Controls_Manager::DIMENSIONS, 'condition' => [ 'button_animation_style' => 'bg_animation' ], 'size_units' => ['px', '%', 'custom'], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:active::after' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'button_bg_bg_active', [ 'label' => esc_html__( 'Background Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:active::after' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'button_bg_border_color_active', [ 'label' => esc_html__( 'Border Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'bg_animation', 'button_bg_border_border!' => ['', 'none'] ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:active::after' => 'border-color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); /** Border Animation */ $this->add_control( 'button_border_animation_revers', [ 'label' => esc_html__( 'Revers This Animation', 'wuko-core' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'revers', 'prefix_class' => '', 'condition' => [ 'button_animation_style' => 'border_animation' ], ] ); $this->add_control( 'button_border_animation_color', [ 'label' => esc_html__( 'Animation Border Color', 'wuko-core' ), 'type' => Controls_Manager::COLOR, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'border_animation' ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button' => '--ab-color: {{VALUE}};', ], ] ); $this->add_responsive_control( 'button_border_animation_offset', [ 'label' => esc_html__('Animation Offset', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px'], 'range' => [ 'px' => ['min' => 1, 'max' => 20, 'step' => 1], ], 'condition' => [ 'button_animation_style' => 'border_animation' ], 'default' => ['size' => 6], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button' => '--ab-offset: {{SIZE}};', ], ] ); $this->add_responsive_control( 'button_border_animation_width', [ 'label' => esc_html__('Animation Border Width', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px'], 'range' => [ 'px' => ['min' => 1, 'max' => 10, 'step' => 1], ], 'condition' => [ 'button_animation_style' => 'border_animation' ], 'default' => ['size' => 1], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button' => '--ab-width: {{SIZE}};', ], ] ); $this->add_responsive_control( 'button_border_animation_extend', [ 'label' => esc_html__('Mow Much to Extend the Border', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => ['px'], 'range' => [ 'px' => ['min' => 1, 'max' => 50, 'step' => 1], ], 'condition' => [ 'button_animation_style' => 'border_animation' ], 'default' => ['size' => 4], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button' => '--ab-extend: {{SIZE}};', ], ] ); /** Magnetic Threshold */ $this->add_control( 'button_magnetic_threshold', [ 'label' => esc_html__('Magnetic Threshold', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'render_type' => 'template', 'style_transfer' => true, 'size_units' => ['px'], 'range' => [ 'px' => ['min' => 10, 'max' => 1920, 'step' => 1], ], 'condition' => [ 'button_animation_style' => 'magnetic' ], 'default' => ['size' => 500], ] ); $this->add_control( 'button_magnetic_strong', [ 'label' => esc_html__('Magnetic Strong', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'render_type' => 'template', 'style_transfer' => true, 'size_units' => ['px'], 'range' => [ 'px' => ['min' => 0.05, 'max' => 1, 'step' => 0.05], ], 'condition' => [ 'button_animation_style' => 'magnetic' ], 'default' => ['size' => 0.2], ] ); /** Icon Size Animation */ $this->add_control( 'button_icon_bg_animation', [ 'label' => esc_html__( 'Background Size(px)', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'condition' => [ 'button_animation_style' => 'icon_size_animation' ], 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, 'step' => 1 ] ], 'default' => ['size' => 40, 'unit' => 'px'], 'selectors' => [ '{{WRAPPER}} .showcase__button .wgl-icon' => '--icon-bg-size: {{SIZE}};', ], ] ); $this->start_controls_tabs( 'button_icon_size_animation_tabs', [ 'condition' => [ 'button_animation_style' => 'icon_size_animation' ], ] ); $this->start_controls_tab( 'button_icon_size_animation_tab_idle', [ 'label' => esc_html__( 'Idle', 'wuko-core' ) ] ); $this->add_control( 'button_icon_size_animation_idle', [ 'label' => esc_html__( 'Icon Scale', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 5, 'step' => 0.01 ] ], 'selectors' => [ '{{WRAPPER}} .showcase__button .wgl-icon' => '--icon-scale: {{SIZE}};', ], ] ); $this->add_control( 'button_icon_bg_animation_idle', [ 'label' => esc_html__( 'Background Scale', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 5, 'step' => 0.01 ] ], 'selectors' => [ '{{WRAPPER}} .showcase__button .wgl-icon' => '--icon-bg-scale: {{SIZE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'button_icon_size_animation_tab_item_hover', [ 'label' => esc_html__( 'Item Hover', 'wuko-core' ) ] ); $this->add_control( 'button_icon_size_animation_item_hover', [ 'label' => esc_html__( 'Icon Scale', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 5, 'step' => 0.01 ] ], 'selectors' => [ '{{WRAPPER}} .showcase__item:hover .showcase__button .wgl-icon' => '--icon-scale: {{SIZE}};', ], ] ); $this->add_control( 'button_icon_bg_animation_item_hover', [ 'label' => esc_html__( 'Background Scale', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 5, 'step' => 0.01 ] ], 'selectors' => [ '{{WRAPPER}} .showcase__item:hover .showcase__button .wgl-icon' => '--icon-bg-scale: {{SIZE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'button_icon_size_animation_tab_hover', [ 'label' => esc_html__( 'Hover', 'wuko-core' ) ] ); $this->add_control( 'button_icon_size_animation_hover', [ 'label' => esc_html__( 'Icon Scale', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 5, 'step' => 0.01 ] ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:is(:hover, :focus) .wgl-icon' => '--icon-scale: {{SIZE}};', ], ] ); $this->add_control( 'button_icon_bg_animation_hover', [ 'label' => esc_html__( 'Background Scale', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 5, 'step' => 0.01 ] ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:is(:hover, :focus) .wgl-icon' => '--icon-bg-scale: {{SIZE}};', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'button_icon_size_animation_tab_active', [ 'label' => esc_html__( 'Active', 'wuko-core' ) ] ); $this->add_control( 'button_icon_size_animation_active', [ 'label' => esc_html__( 'Icon Scale', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 5, 'step' => 0.01 ] ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:active .wgl-icon' => '--icon-scale: {{SIZE}};', ], ] ); $this->add_control( 'button_icon_bg_animation_active', [ 'label' => esc_html__( 'Background Scale', 'wuko-core' ), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 5, 'step' => 0.01 ] ], 'selectors' => [ '{{WRAPPER}} .showcase__item .showcase__button:active .wgl-icon' => '--icon-bg-scale: {{SIZE}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); /** Icon Visibility */ $this->add_control( 'icon_visibility', [ 'label' => esc_html__( 'Icon Visibility', 'wuko-core' ), 'type' => Controls_Manager::SELECT, 'condition' => [ 'button_animation_style' => 'icon_visibility' ], 'options' => [ 'default' => esc_html__( 'Default', 'wuko-core' ), 'revert' => esc_html__( 'Revert', 'wuko-core' ), ], 'default' => 'default', 'prefix_class' => 'icon-visibility-' ] ); $this->end_controls_section(); } protected function add_mobile_breakpoint() { // The 'Hide On X' controls are displayed from largest to smallest, while the method returns smallest to largest. $active_devices = Plugin::$instance->breakpoints->get_active_devices_list( [ 'reverse' => true ] ); $active_breakpoints = Plugin::$instance->breakpoints->get_active_breakpoints(); $avaliable_breakpoints = []; foreach ( $active_devices as $breakpoint_key ) { if( array_key_exists($breakpoint_key, $active_breakpoints) ) { $avaliable_breakpoints[$breakpoint_key] = $active_breakpoints[$breakpoint_key]->get_label(); } } $this->add_control( 'wgl_mobile_breakpoint', [ /* translators: %s: Device Name. */ 'label' => esc_html__( 'Set Mobile Template On', 'wuko-core' ), 'type' => Controls_Manager::SELECT, 'render_type' => 'template', 'options' => $avaliable_breakpoints + [ '' => esc_html__('Disable', 'wuko-core') ], 'default' => 'tablet', ] ); } protected function render() { // Build structure $_s = $this->get_settings_for_display(); // Variables validation $img_size_string = $_s['img_size_string'] ?? ''; $img_size_array = $_s['img_size_array'] ?? []; $img_aspect_ratio = $_s['img_aspect_ratio'] ?? ''; $showcase__wrapper = ''; foreach ($_s['items'] as $index => $item) { // Fields validation $title = $item['title'] ?? ''; $subtitle = $item['subtitle'] ?? ''; $link = $item['link'] ?? ''; $content = $item['content'] ?? ''; $bg_text = $item['bg_text'] ?? ''; if (!$title && !$content) return; $has_link = !empty($link['url']); if ($has_link) { $link = $this->get_repeater_setting_key('link', 'items', $index); $this->add_link_attributes($link, $item['link']); } //Cursor if (isset($item['showcase_cursor_tooltip']) && '' != $item['showcase_cursor_tooltip']) { add_filter( 'wgl/wuko_module_cursor', function () { return true; }); } $cursor = new WGL_Cursor; $cursor_data = $cursor->build($this, $item, $item['_id'], 'showcase_'); $showcase__item = $this->get_repeater_setting_key( 'item_link_active', 'items', $index ); $this->add_render_attribute( $showcase__item, [ 'class' => [ 'showcase__item', 'elementor-repeater-item-'. $item['_id'], $item[ 'link_active' ] ? 'active' : '', isset($item['showcase_cursor_tooltip']) && !empty($item['showcase_cursor_tooltip']) ? 'wgl-cursor-text' : '' ], ] ); //* Image size $image = ''; if($thumbnail = $item['thumbnail']){ $dim = null; $image_data = wp_get_attachment_image_src($thumbnail['id'], 'full'); if ($image_data) { $dim = WGL_Elementor_Helper::get_image_dimensions( $img_size_array ?: $img_size_string, $img_aspect_ratio, $image_data ); } if($dim){ $image_url = aq_resize($image_data[0], $dim['width'], $dim['height'], true, true, true) ?: $image_data[0]; $this->add_render_attribute('image' . $index, [ 'class' => 'image', 'src' => $image_url, 'alt' => get_post_meta($thumbnail['id'], '_wp_attachment_image_alt', true) ]); $this->add_render_attribute('showcase__image' . $index, [ 'class' => 'showcase__image', ]); $image .= '<span '.$this->get_render_attribute_string('showcase__image' . $index).'>'; $image .= '<img '. $this->get_render_attribute_string('image' . $index). '>'; $image .= '</span>'; } } $subtitle = !empty($subtitle) ? '<span class="showcase__subtitle">'. esc_html($subtitle) .'</span>' : ''; $title = ('left_w' === $_s['subtitle_position'] ? $subtitle : '' ) . '<' . esc_attr($_s['title_tag']) . ' class="showcase__title">' . ('left' === $_s['subtitle_position'] ? $subtitle : '' ) . (!empty($title) ? '<span class="title">'. esc_html($title) .'</span>' : '') . ('yes' === $_s['image_near_title'] ? '<span class="image_on_default">'.$image.'</span>' : '' ) . ('right' === $_s['subtitle_position'] ? $subtitle : '' ) . '</' . esc_attr($_s['title_tag']) . '>' . ('right_w' === $_s['subtitle_position'] ? $subtitle : '' ); if (!empty($content)) { $content = '<div class="showcase__content_wrapper"><div class="showcase__content">' . $content . '</div></div>'; } if (!empty($bg_text)) { $bg_text = '<div class="showcase__bg_text">' . $bg_text . '</div>'; } $showcase__wrapper .= '<div '. $this->get_render_attribute_string( $showcase__item ). ' ' . $cursor_data . '>'; $showcase__wrapper .= '<div class="showcase__background"></div>'; $showcase__wrapper .= $bg_text; if ($_s['add_item_link'] && $has_link) { $showcase__wrapper .= '<a class="showcase__link" ' . $this->get_render_attribute_string($link) . '></a>'; } $showcase__wrapper .= 'default' === $_s['subtitle_position'] ? $subtitle : ''; $showcase__wrapper .= '<div class="image_on_responsive">'.$image.'</div>'; $showcase__wrapper .= '<div class="showcase__item_inner">'; $showcase__wrapper .= $title; $showcase__wrapper .= $content; $showcase__wrapper .= $this->read_more_button($index, $has_link, $link, $_s); $showcase__wrapper .= '</div>'; $showcase__wrapper .= 'yes' !== $_s['image_near_title'] ? '<div class="image_on_default">'.$image.'</div>' : ''; $showcase__wrapper .= '</div>'; } $this->add_render_attribute( 'general', [ 'class' => [ 'wgl-showcase', $_s['content_animation'] ? 'content_animation-yes' : '', ], ] ); if (!empty($_s['wgl_mobile_breakpoint'])){ $active_devices = Plugin::$instance->breakpoints->get_active_devices_list( [ 'reverse' => true ] ); $key = array_search($_s['wgl_mobile_breakpoint'], $active_devices); $all_breakpoints = array_slice($active_devices, $key); foreach($all_breakpoints as $breakpoint){ $this->add_render_attribute( 'general', [ 'class' => [ 'breakpoint_on-' . $breakpoint ] ] ); } } ?><div <?php echo $this->get_render_attribute_string('general') ?>><?php echo $showcase__wrapper; ?></div><?php } public function read_more_button($index, $has_link, $link_item, $_s) { $s_button = $btn_icon = ''; // Read more button if ($_s['add_read_more']) { $this->add_render_attribute('btn' . $index, 'class', ['wgl-showcase__button', $_s['button_type'] ?? '', 'showcase__button']); // Media if ('' !== $_s['read_more_icon_type'] ) { if ( 'font' === $_s['read_more_icon_type'] ) { if(isset($_s['read_more_icon_fontawesome']["value"])) { $migrated = isset( $_s['__fa4_migrated']['read_more_icon_fontawesome'] ); $is_new = Icons_Manager::is_migration_allowed(); if ( $is_new || $migrated ) { ob_start(); Icons_Manager::render_icon($_s['read_more_icon_fontawesome'], ['class' => 'read-more-icon', 'aria-hidden' => 'true']); $btn_icon = ob_get_clean(); } if ('svg' === $_s['read_more_icon_fontawesome']['library']) { $wrapper_icon = '<span class="read-more-icon read-more-svg">'; $wrapper_icon .= $btn_icon; $wrapper_icon .= '</span>'; $btn_icon = $wrapper_icon; } $btn_icon = !!$btn_icon ? '<div class="wgl-icon"><div class="icon-wrapper">' . $btn_icon . '</div></div>' : ''; } } if ( 'image' === $_s['read_more_icon_type'] && !empty($_s['read_more_icon_thumbnail']['url']) ) { $this->add_render_attribute('thumbnail', 'src', $_s['read_more_icon_thumbnail']['url']); $this->add_render_attribute('thumbnail', 'alt', Control_Media::get_image_alt($_s['read_more_icon_thumbnail'])); $this->add_render_attribute('thumbnail', 'title', Control_Media::get_image_title($_s['read_more_icon_thumbnail'])); $media_html = Group_Control_Image_Size::get_attachment_image_html($_s, 'thumbnail', 'read_more_icon_thumbnail'); $btn_icon = '<span class="wgl-infobox_button__media">'.$media_html.'</span>'; $this->add_render_attribute(['btn' => ['class' => [ 'image']]]); } }else{ $this->add_render_attribute(['btn' => ['class' => [ 'no_media']]]); } if (!empty($_s['read_more_text']) && ( 'button-read-more' === $_s['button_type'] || 'letter_animation' === $_s[ 'button_animation_style' ] )) { $letters = ''; $len = mb_strlen($_s['read_more_text'], 'UTF-8'); for ($i = 0; $i < $len; $i++) { $value = mb_substr(esc_html($_s['read_more_text']), $i, 1, 'UTF-8'); $letters .= $value == ' ' ? ' ' : '<span class="letter">' . $value . '</span>'; } $_s['read_more_text'] = $letters; }else{ $_s['read_more_text'] = esc_html($_s['read_more_text']); } if (!empty($btn_icon) || $_s['read_more_text']) { $s_button = '<div class="wgl-button-wrapper'.('button-read-more' === $_s['button_type'] ? ' rm_btn' : '' ).'">'; $s_button .= 'button-read-more' === $_s['button_type'] ? '<div class="read-more-wrap">' : ''; $s_button .= sprintf('<%s %s %s>', !$has_link ? 'div' : 'a', $has_link ? $this->get_render_attribute_string($link_item) : '', $this->get_render_attribute_string('btn' . $index) ); $s_button .= 'wgl-button' === $_s['button_type'] ? '<div class="button__content">' : ''; $s_button .= $btn_icon ?: ''; $s_button .= $_s['read_more_text'] ? '<span class="button__text">'.$_s['read_more_text'].'</span>' : ''; $s_button .= 'wgl-button' === $_s['button_type'] ? '</div>' : ''; $s_button .= !$has_link ? '</div>' : '</a>'; $s_button .= 'button-read-more' === $_s['button_type'] ? '</div>' : ''; $s_button .= '</div>'; } } return $s_button; } public function wpml_support_module() { add_filter( 'wpml_elementor_widgets_to_translate', [$this, 'wpml_widgets_to_translate_filter']); } public function wpml_widgets_to_translate_filter( $widgets ){ return \WGL_Extensions\Includes\WGL_WPML_Settings::get_translate( $this, $widgets ); } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
wgl-accordion-service.php
110791 bytes
0644
wgl-background-clip-text.php
21249 bytes
0644
wgl-blog.php
54012 bytes
0644
wgl-button-physics.php
48634 bytes
0644
wgl-button-widget.php
78290 bytes
0644
wgl-carousel.php
5648 bytes
0644
wgl-cases.php
174614 bytes
0644
wgl-circuit-service.php
21621 bytes
0644
wgl-clients.php
28542 bytes
0644
wgl-combo-menu.php
17440 bytes
0644
wgl-contact-form-7.php
64476 bytes
0644
wgl-countdown.php
19442 bytes
0644
wgl-counter.php
36515 bytes
0644
wgl-demo-item.php
33716 bytes
0644
wgl-double-heading.php
71788 bytes
0644
wgl-dynamic-title.php
11086 bytes
0644
wgl-flipbox.php
154999 bytes
0644
wgl-gallery.php
53821 bytes
0644
wgl-highlight-board.php
64418 bytes
0644
wgl-horizontal-scroll.php
25075 bytes
0644
wgl-image-animate.php
20947 bytes
0644
wgl-image-comparison.php
6032 bytes
0644
wgl-image-hotspots.php
52892 bytes
0644
wgl-image-layers.php
25243 bytes
0644
wgl-infinity-carousel.php
30821 bytes
0644
wgl-info-box.php
224793 bytes
0644
wgl-instagram.php
38631 bytes
0644
wgl-link-overlay.php
2495 bytes
0644
wgl-pie-chart.php
22332 bytes
0644
wgl-portfolio.php
115147 bytes
0644
wgl-pricing-table.php
209138 bytes
0644
wgl-products-categories.php
51718 bytes
0644
wgl-products-grid.php
79654 bytes
0644
wgl-progress-bar.php
30822 bytes
0644
wgl-rotated-text.php
22605 bytes
0644
wgl-satellite-service.php
35978 bytes
0644
wgl-showcase.php
208669 bytes
0644
wgl-social-icons.php
22240 bytes
0644
wgl-steps.php
48391 bytes
0644
wgl-striped-services.php
183259 bytes
0644
wgl-tabs-horizontal.php
42144 bytes
0644
wgl-tabs.php
53431 bytes
0644
wgl-team.php
36456 bytes
0644
wgl-template.php
8246 bytes
0644
wgl-testimonials.php
61375 bytes
0644
wgl-text-editor.php
55551 bytes
0644
wgl-text-path.php
41438 bytes
0644
wgl-time-line-horizontal.php
37694 bytes
0644
wgl-time-line-vertical.php
199396 bytes
0644
wgl-toggle-accordion.php
66819 bytes
0644
wgl-video-popup.php
30956 bytes
0644
wgl-working-hours.php
10870 bytes
0644
wgl-zoom.php
24854 bytes
0644
N4ST4R_ID | Naxtarrr