start_controls_section( 'section_items', [ 'label' => esc_html__( 'List Items', 'addronix-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $repeater = new \Elementor\Repeater(); // Index $repeater->add_control( 'show_index', [ 'label' => esc_html__( 'Show Index', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', ] ); $repeater->add_control( 'index_text', [ 'label' => esc_html__( 'Index Text', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::TEXT, 'default' => '/01', 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::TEXT_CATEGORY ] ], 'condition' => [ 'show_index' => 'yes' ], ] ); $repeater->add_control( 'index_tag', [ 'label' => esc_html__( 'HTML Tag', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'h1'=>'H1','h2'=>'H2','h3'=>'H3','h4'=>'H4','h5'=>'H5','h6'=>'H6','div'=>'div','span'=>'span','p'=>'p' ], 'default' => 'span', 'condition' => [ 'show_index' => 'yes' ], ] ); // Title $repeater->add_control( 'show_title', [ 'label' => esc_html__( 'Show Title', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', ] ); $repeater->add_control( 'title_text', [ 'label' => esc_html__( 'Title Text', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::TEXT, 'default' => 'Immersive Web', 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::TEXT_CATEGORY ] ], 'condition' => [ 'show_title' => 'yes' ], ] ); $repeater->add_control( 'title_tag', [ 'label' => esc_html__( 'HTML Tag', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'h1'=>'H1','h2'=>'H2','h3'=>'H3','h4'=>'H4','h5'=>'H5','h6'=>'H6','div'=>'div','span'=>'span','p'=>'p' ], 'default' => 'h3', 'condition' => [ 'show_title' => 'yes' ], ] ); // Meta $repeater->add_control( 'show_meta', [ 'label' => esc_html__( 'Show Meta', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', ] ); $repeater->add_control( 'meta_text', [ 'label' => esc_html__( 'Meta Text', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::TEXT, 'default' => 'WEBGL, XR, REAL-TIME', 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::TEXT_CATEGORY ] ], 'condition' => [ 'show_meta' => 'yes' ], ] ); $repeater->add_control( 'meta_tag', [ 'label' => esc_html__( 'HTML Tag', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'h1'=>'H1','h2'=>'H2','h3'=>'H3','h4'=>'H4','h5'=>'H5','h6'=>'H6','div'=>'div','span'=>'span','p'=>'p' ], 'default' => 'span', 'condition' => [ 'show_meta' => 'yes' ], ] ); // Image $repeater->add_control( 'image', [ 'label' => esc_html__( 'Image', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::MEDIA, 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::IMAGE_CATEGORY ] ], 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src() ], ] ); // Link $repeater->add_control( 'link', [ 'label' => esc_html__( 'Link', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::URL, 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::URL_CATEGORY ] ], ] ); $this->add_control( 'items', [ 'label' => esc_html__( 'Items', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'index_text' => '/01', 'title_text' => 'Immersive Web', 'meta_text' => 'WEBGL, XR, REAL-TIME' ], [ 'index_text' => '/02', 'title_text' => 'Spatial Apps', 'meta_text' => 'MOBILE, APPLE VISION PRO, META QUEST' ], [ 'index_text' => '/03', 'title_text' => 'Mobile Apps', 'meta_text' => 'IOS, ANDROID, STARTUPS' ], [ 'index_text' => '/04', 'title_text' => 'Machine Learning & AI', 'meta_text' => 'AGENTS, VISION, GENAI' ], ], 'title_field' => '{{{ title_text }}}', ] ); $this->add_control( 'default_active_index', [ 'label' => esc_html__( 'Default Active Index', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::NUMBER, 'default' => 0, 'min' => 0, ] ); $this->end_controls_section(); /* ── STYLE: Item Row ──────────────────────────────── */ $this->start_controls_section( 'style_item', [ 'label' => esc_html__( 'Item Row', 'addronix-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->start_controls_tabs( 'tabs_item_style' ); $this->start_controls_tab( 'tab_item_normal', [ 'label' => esc_html__( 'Normal', 'addronix-addons-for-elementor' ) ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'item_bg_normal', 'selector' => '{{WRAPPER}} .aafe-hover-image-list__item', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'item_border_normal', 'selector' => '{{WRAPPER}} .aafe-hover-image-list__item', ] ); $this->add_responsive_control( 'item_radius', [ 'label' => esc_html__( 'Border Radius', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__item' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'item_shadow_normal', 'selector' => '{{WRAPPER}} .aafe-hover-image-list__item', ] ); $this->add_control( 'item_opacity_normal', [ 'label' => esc_html__( 'Opacity', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 1, 'step' => 0.05 ] ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__item' => 'opacity: {{SIZE}};' ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_item_hover', [ 'label' => esc_html__( 'Hover', 'addronix-addons-for-elementor' ) ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'item_bg_hover', 'selector' => '{{WRAPPER}} .aafe-hover-image-list__item.active, {{WRAPPER}} .aafe-hover-image-list__item:hover', ] ); $this->add_control( 'item_border_color_hover', [ 'label' => esc_html__( 'Border Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__item.active, {{WRAPPER}} .aafe-hover-image-list__item:hover' => 'border-color: {{VALUE}};' ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'item_shadow_hover', 'selector' => '{{WRAPPER}} .aafe-hover-image-list__item.active, {{WRAPPER}} .aafe-hover-image-list__item:hover', ] ); $this->add_control( 'item_opacity_hover', [ 'label' => esc_html__( 'Opacity', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 1, 'step' => 0.05 ] ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__item.active, {{WRAPPER}} .aafe-hover-image-list__item:hover' => 'opacity: {{SIZE}};' ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_responsive_control( 'item_layout', [ 'label' => esc_html__( 'Layout', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'row' => [ 'title' => esc_html__( 'Row', 'addronix-addons-for-elementor' ), 'icon' => 'eicon-h-align-left', ], 'column' => [ 'title' => esc_html__( 'Column', 'addronix-addons-for-elementor' ), 'icon' => 'eicon-v-align-top', ], ], 'default' => 'row', 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__inner' => 'flex-direction: {{VALUE}};' ], ] ); $this->add_responsive_control( 'item_align', [ 'label' => esc_html__( 'Alignment', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'flex-start' => [ 'title' => 'Start', 'icon' => 'eicon-h-align-left' ], 'center' => [ 'title' => 'Center', 'icon' => 'eicon-h-align-center' ], 'flex-end' => [ 'title' => 'End', 'icon' => 'eicon-h-align-right' ], ], 'default' => 'center', 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__inner' => 'align-items: {{VALUE}};' ], ] ); $this->add_responsive_control( 'item_gap', [ 'label' => esc_html__( 'Gap', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%', 'vw', 'rem' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100 ] ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__inner' => 'gap: {{SIZE}}{{UNIT}};' ], ] ); $this->add_responsive_control( 'item_padding', [ 'label' => esc_html__( 'Padding', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em', 'rem' ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__item' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->add_responsive_control( 'item_margin', [ 'label' => esc_html__( 'Margin', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em', 'rem' ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__item' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->end_controls_section(); /* ── STYLE: Index ──────────────────────────────── */ $this->start_controls_section( 'style_index', [ 'label' => esc_html__( 'Index', 'addronix-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'index_typography', 'selector' => '{{WRAPPER}} .aafe-hover-image-list__index', ] ); $this->start_controls_tabs( 'tabs_index_style' ); $this->start_controls_tab( 'tab_index_normal', [ 'label' => esc_html__( 'Normal', 'addronix-addons-for-elementor' ) ] ); $this->add_control( 'index_color_normal', [ 'label' => esc_html__( 'Text Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__item .aafe-hover-image-list__index' => 'color: {{VALUE}};' ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_index_hover', [ 'label' => esc_html__( 'Hover', 'addronix-addons-for-elementor' ) ] ); $this->add_control( 'index_color_hover', [ 'label' => esc_html__( 'Text Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__item.active .aafe-hover-image-list__index, {{WRAPPER}} .aafe-hover-image-list__item:hover .aafe-hover-image-list__index' => 'color: {{VALUE}};' ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_responsive_control( 'index_margin', [ 'label' => esc_html__( 'Margin', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__index' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->end_controls_section(); /* ── STYLE: Title ──────────────────────────────── */ $this->start_controls_section( 'style_title', [ 'label' => esc_html__( 'Title', 'addronix-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'title_typography', 'selector' => '{{WRAPPER}} .aafe-hover-image-list__title', ] ); $this->start_controls_tabs( 'tabs_title_style' ); $this->start_controls_tab( 'tab_title_normal', [ 'label' => esc_html__( 'Normal', 'addronix-addons-for-elementor' ) ] ); $this->add_control( 'title_color_normal', [ 'label' => esc_html__( 'Text Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__item .aafe-hover-image-list__title' => 'color: {{VALUE}};' ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_title_hover', [ 'label' => esc_html__( 'Hover', 'addronix-addons-for-elementor' ) ] ); $this->add_control( 'title_color_hover', [ 'label' => esc_html__( 'Text Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__item.active .aafe-hover-image-list__title, {{WRAPPER}} .aafe-hover-image-list__item:hover .aafe-hover-image-list__title' => 'color: {{VALUE}};' ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_responsive_control( 'title_margin', [ 'label' => esc_html__( 'Margin', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->end_controls_section(); /* ── STYLE: Meta ──────────────────────────────── */ $this->start_controls_section( 'style_meta', [ 'label' => esc_html__( 'Meta', 'addronix-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'meta_typography', 'selector' => '{{WRAPPER}} .aafe-hover-image-list__meta', ] ); $this->start_controls_tabs( 'tabs_meta_style' ); $this->start_controls_tab( 'tab_meta_normal', [ 'label' => esc_html__( 'Normal', 'addronix-addons-for-elementor' ) ] ); $this->add_control( 'meta_color_normal', [ 'label' => esc_html__( 'Text Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__item .aafe-hover-image-list__meta' => 'color: {{VALUE}};' ], ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_meta_hover', [ 'label' => esc_html__( 'Hover', 'addronix-addons-for-elementor' ) ] ); $this->add_control( 'meta_color_hover', [ 'label' => esc_html__( 'Text Color', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__item.active .aafe-hover-image-list__meta, {{WRAPPER}} .aafe-hover-image-list__item:hover .aafe-hover-image-list__meta' => 'color: {{VALUE}};' ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_responsive_control( 'meta_margin', [ 'label' => esc_html__( 'Margin', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__meta' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->add_responsive_control( 'meta_alignment', [ 'label' => esc_html__( 'Alignment', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left'=>['title'=>'Left','icon'=>'eicon-text-align-left'], 'center'=>['title'=>'Center','icon'=>'eicon-text-align-center'], 'right'=>['title'=>'Right','icon'=>'eicon-text-align-right'] ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__meta' => 'text-align: {{VALUE}};' ], ] ); $this->end_controls_section(); /* ── STYLE: Image ──────────────────────────────── */ $this->start_controls_section( 'style_image', [ 'label' => esc_html__( 'Image', 'addronix-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'image_width', [ 'label' => esc_html__( 'Width', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%', 'vw', 'rem' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 1400 ], '%' => [ 'min' => 0, 'max' => 100 ] ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__image' => 'width: {{SIZE}}{{UNIT}};' ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'desktop_default' => [ 'size' => 400, 'unit' => 'px' ], ] ); $this->add_responsive_control( 'image_height', [ 'label' => esc_html__( 'Height', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', 'vh', 'rem' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 1000 ] ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__image' => 'height: {{SIZE}}{{UNIT}};' ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'desktop_default' => [ 'size' => 300, 'unit' => 'px' ], ] ); $this->add_control( 'image_object_fit', [ 'label' => esc_html__( 'Object Fit', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'cover'=>'Cover', 'contain'=>'Contain', 'fill'=>'Fill', 'none'=>'None' ], 'default' => 'cover', 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__image' => 'object-fit: {{VALUE}};' ], ] ); $this->add_responsive_control( 'image_radius', [ 'label' => esc_html__( 'Border Radius', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__image' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->add_group_control( Group_Control_Css_Filter::get_type(), [ 'name' => 'image_filter', 'selector' => '{{WRAPPER}} .aafe-hover-image-list__image', ] ); $this->add_control( 'image_opacity', [ 'label' => esc_html__( 'Opacity', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 1, 'step' => 0.05 ] ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list__image' => 'opacity: {{SIZE}};' ], ] ); $this->end_controls_section(); /* ── STYLE: Wrapper / Layout ──────────────────────────────── */ $this->start_controls_section( 'style_wrapper', [ 'label' => esc_html__( 'Wrapper', 'addronix-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'wrapper_width', [ 'label' => esc_html__( 'Width', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%', 'vw', 'rem' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 1400 ], '%' => [ 'min' => 0, 'max' => 100 ] ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list-wrapper' => 'width: {{SIZE}}{{UNIT}};' ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'desktop_default' => [ 'size' => 100, 'unit' => '%' ], ] ); $this->add_responsive_control( 'wrapper_padding', [ 'label' => esc_html__( 'Padding', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em', 'rem' ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list-wrapper' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'wrapper_bg', 'selector' => '{{WRAPPER}} .aafe-hover-image-list-wrapper', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'wrapper_border', 'selector' => '{{WRAPPER}} .aafe-hover-image-list-wrapper', ] ); $this->add_responsive_control( 'wrapper_radius', [ 'label' => esc_html__( 'Border Radius', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list-wrapper' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'wrapper_shadow', 'selector' => '{{WRAPPER}} .aafe-hover-image-list-wrapper', ] ); $this->end_controls_section(); /* ── STYLE: Hover Effects ──────────────────────────────── */ $this->start_controls_section( 'style_hover_effects', [ 'label' => esc_html__( 'Hover Effects', 'addronix-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'hover_effect_type', [ 'label' => esc_html__( 'Hover Effect Type', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'none' => esc_html__( 'None', 'addronix-addons-for-elementor' ), 'lift' => esc_html__( 'Lift Up', 'addronix-addons-for-elementor' ), 'scale' => esc_html__( 'Scale', 'addronix-addons-for-elementor' ), 'glow' => esc_html__( 'Glow', 'addronix-addons-for-elementor' ), 'border-pop' => esc_html__( 'Border Pop', 'addronix-addons-for-elementor' ), 'shine' => esc_html__( 'Shine', 'addronix-addons-for-elementor' ), ], 'default' => 'none', ] ); $this->add_control( 'hover_duration', [ 'label' => esc_html__( 'Transition Duration (ms)', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 100, 'max' => 800 ] ], 'default' => [ 'size' => 300 ], 'selectors' => [ '{{WRAPPER}} .aafe-hover-image-list-wrapper, {{WRAPPER}} .aafe-hover-image-list__item, {{WRAPPER}} .aafe-hover-image-list__index, {{WRAPPER}} .aafe-hover-image-list__title, {{WRAPPER}} .aafe-hover-image-list__meta, {{WRAPPER}} .aafe-hover-image-list__image' => '--aafe-transition: {{SIZE}}ms; transition-duration: {{SIZE}}ms;' ], ] ); $this->add_control( 'hover_easing', [ 'label' => esc_html__( 'Transition Easing', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'ease' => 'Ease', 'ease-in' => 'Ease In', 'ease-out' => 'Ease Out', 'ease-in-out' => 'Ease In Out', 'linear' => 'Linear', ], 'default' => 'ease', ] ); $this->add_control( 'hover_scale', [ 'label' => esc_html__( 'Scale Amount', 'addronix-addons-for-elementor' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 1.00, 'max' => 1.20, 'step' => 0.01 ] ], 'default' => [ 'size' => 1.03 ], 'condition' => [ 'hover_effect_type' => [ 'scale', 'lift' ] ], ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); $hover_type = ! empty( $settings['hover_effect_type'] ) ? $settings['hover_effect_type'] : 'none'; $hover_sc = isset( $settings['hover_scale']['size'] ) ? $settings['hover_scale']['size'] : 1.03; $default_index = isset( $settings['default_active_index'] ) ? (int) $settings['default_active_index'] : 0; ?>
<# var hoverType = settings.hover_effect_type || 'none'; var hoverSc = settings.hover_scale && settings.hover_scale.size ? settings.hover_scale.size : 1.03; var defaultIdx = settings.default_active_index || 0; #>