'', 'url' => \Elementor\Utils::get_placeholder_image_src(), ]; } return $items; } const TD = 'addronix-addons-for-elementor'; public function get_name() { return 'aafe_orbit_image_showcase'; } public function get_title() { return esc_html__( 'AAFE Orbit Image Showcase', 'addronix-addons-for-elementor' ); } public function get_icon() { return 'eicon-image-rollover'; } public function get_categories() { return [ 'addronix-addons-for-elementor' ]; } public function get_keywords() { return [ 'orbit', 'arc', 'gallery', 'image', 'showcase', 'hero', 'rotate', 'spin' ]; } public function get_style_depends() { return [ 'aafe-orbit-image-showcase-style' ]; } public function get_script_depends() { return [ 'aafe-orbit-image-showcase-script' ]; } protected function register_controls() { /* ══════════════════════════════════════════════════════ * CONTENT TAB * ══════════════════════════════════════════════════════ */ /* ── Arc Gallery Images ───────────────────────────── */ $this->start_controls_section( 'section_gallery', [ 'label' => esc_html__( 'Arc Gallery Images', self::TD ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'gallery_items', [ 'label' => esc_html__( 'Gallery Images', self::TD ), 'type' => Controls_Manager::GALLERY, 'default' => [], 'dynamic' => [ 'active' => true ], ] ); $this->end_controls_section(); /* ── Arc Layout Settings ──────────────────────────── */ $this->start_controls_section( 'section_settings', [ 'label' => esc_html__( 'Arc Settings', self::TD ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_responsive_control( 'arc_radius', [ 'label' => esc_html__( 'Arc Radius (px)', self::TD ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 80, 'max' => 1000 ] ], 'desktop_default' => [ 'size' => 450, 'unit' => 'px' ], 'tablet_default' => [ 'size' => 300, 'unit' => 'px' ], 'mobile_default' => [ 'size' => 140, 'unit' => 'px' ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase-wrapper' => '--aafe-arc-radius: {{SIZE}}px;' ], ] ); $this->add_responsive_control( 'layout_type', [ 'label' => esc_html__( 'Distribution Layout', self::TD ), 'type' => Controls_Manager::SELECT, 'options' => [ '0' => esc_html__( 'Partial Arc', self::TD ), '1' => esc_html__( 'Full Circle', self::TD ), ], 'desktop_default' => '0', 'tablet_default' => '0', 'mobile_default' => '1', ] ); $this->add_responsive_control( 'arc_span', [ 'label' => esc_html__( 'Arc Span (Degrees)', self::TD ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'deg' ], 'range' => [ 'deg' => [ 'min' => 10, 'max' => 360 ] ], 'desktop_default' => [ 'size' => 260, 'unit' => 'deg' ], 'tablet_default' => [ 'size' => 260, 'unit' => 'deg' ], 'mobile_default' => [ 'size' => 360, 'unit' => 'deg' ], 'condition' => [ 'layout_type' => '0' ], ] ); $this->add_responsive_control( 'arc_offset', [ 'label' => esc_html__( 'Rotation Offset (Degrees)', self::TD ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'deg' ], 'range' => [ 'deg' => [ 'min' => -180, 'max' => 180 ] ], 'desktop_default' => [ 'size' => 0, 'unit' => 'deg' ], 'tablet_default' => [ 'size' => 0, 'unit' => 'deg' ], 'mobile_default' => [ 'size' => 0, 'unit' => 'deg' ], ] ); $this->add_responsive_control( 'arc_center_y_pct', [ 'label' => esc_html__( 'Arc Center Y – % of widget height', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 150 ] ], 'desktop_default' => [ 'size' => 90 ], 'tablet_default' => [ 'size' => 90 ], 'mobile_default' => [ 'size' => 90 ], 'description' => esc_html__( '90 = center near bottom. 50 = perfectly centered.', self::TD ), 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase-wrapper' => '--aafe-cy-pct: {{SIZE}}%;' ], ] ); $this->add_control( 'card_tilt_enabled', [ 'label' => esc_html__( 'Auto-tilt Cards Along Arc', self::TD ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'yes', 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase-wrapper' => '--aafe-do-tilt: 1;' ], ] ); $this->add_control( 'card_scale_enabled', [ 'label' => esc_html__( 'Center Cards Larger', self::TD ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => '', 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase-wrapper' => '--aafe-do-scale: 1;' ], ] ); $this->add_responsive_control( 'card_scale_min', [ 'label' => esc_html__( 'Edge Card Scale (0.4–1.0)', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0.4, 'max' => 1.0, 'step' => 0.05 ] ], 'default' => [ 'size' => 0.60 ], 'condition' => [ 'card_scale_enabled' => 'yes' ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase-wrapper' => '--aafe-scale-min: {{SIZE}};' ], ] ); /* — Auto-Rotate — */ $this->add_control( 'auto_rotate_heading', [ 'label' => esc_html__( 'Auto-Rotate', self::TD ), 'type' => Controls_Manager::HEADING, ] ); $this->add_control( 'auto_rotate', [ 'label' => esc_html__( 'Enable Auto-Rotate', self::TD ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => '', ] ); $this->add_control( 'auto_rotate_speed', [ 'label' => esc_html__( 'Speed (seconds / full rotation)', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 3, 'max' => 120, 'step' => 1 ] ], 'default' => [ 'size' => 20 ], 'condition' => [ 'auto_rotate' => 'yes' ], ] ); $this->add_control( 'auto_rotate_direction', [ 'label' => esc_html__( 'Direction', self::TD ), 'type' => Controls_Manager::SELECT, 'options' => [ 'cw' => esc_html__( 'Clockwise', self::TD ), 'ccw' => esc_html__( 'Counter-Clockwise', self::TD ), ], 'default' => 'cw', 'condition' => [ 'auto_rotate' => 'yes' ], ] ); $this->end_controls_section(); /* ── Main Content ─────────────────────────────────── */ $this->start_controls_section( 'section_main', [ 'label' => esc_html__( 'Main Content', self::TD ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_responsive_control( 'content_vertical_align', [ 'label' => esc_html__( 'Content Position (Top/Center/Bottom)', self::TD ), 'type' => Controls_Manager::SELECT, 'options' => [ 'flex-start' => esc_html__( 'Top', self::TD ), 'center' => esc_html__( 'Center', self::TD ), 'flex-end' => esc_html__( 'Bottom', self::TD ), ], 'desktop_default' => 'flex-end', 'tablet_default' => 'flex-end', 'mobile_default' => 'flex-start', 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase-wrapper' => 'justify-content: {{VALUE}};' ], ] ); /* — Heading — */ $this->add_control( 'show_heading', [ 'label' => esc_html__( 'Show Heading', self::TD ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'yes', ] ); $this->add_control( 'heading_text', [ 'label' => esc_html__( 'Heading', self::TD ), 'type' => Controls_Manager::TEXTAREA, 'default' => 'Create Stunning AI Generated Photos Instantly', 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::TEXT_CATEGORY ] ], 'condition' => [ 'show_heading' => 'yes' ], ] ); $this->add_control( 'heading_tag', [ 'label' => esc_html__( 'HTML Tag', self::TD ), 'type' => Controls_Manager::SELECT, 'options' => [ 'h1'=>'H1','h2'=>'H2','h3'=>'H3','h4'=>'H4','h5'=>'H5','h6'=>'H6','div'=>'div' ], 'default' => 'h2', 'condition' => [ 'show_heading' => 'yes' ], ] ); /* — Description — */ $this->add_control( 'show_desc', [ 'label' => esc_html__( 'Show Description', self::TD ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'yes', ] ); $this->add_control( 'desc_text', [ 'label' => esc_html__( 'Description', self::TD ), 'type' => Controls_Manager::TEXTAREA, 'default' => 'Transform your ideas into breathtaking visuals with cutting-edge AI technology.', 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::TEXT_CATEGORY ] ], 'condition' => [ 'show_desc' => 'yes' ], ] ); $this->end_controls_section(); /* ── Buttons ──────────────────────────────────────── */ $this->start_controls_section( 'section_buttons', [ 'label' => esc_html__( 'Buttons', self::TD ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); /* — Primary Button — */ $this->add_control( 'show_btn', [ 'label' => esc_html__( 'Show Primary Button', self::TD ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'yes', ] ); $this->add_control( 'btn_text', [ 'label' => esc_html__( 'Button Text', self::TD ), 'type' => Controls_Manager::TEXT, 'default' => 'Start Generating Now', 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::TEXT_CATEGORY ] ], 'condition' => [ 'show_btn' => 'yes' ], ] ); $this->add_control( 'btn_link', [ 'label' => esc_html__( 'Button Link', self::TD ), 'type' => Controls_Manager::URL, 'default' => [ 'url' => '#' ], 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::URL_CATEGORY ] ], 'condition' => [ 'show_btn' => 'yes' ], ] ); $this->add_control( 'btn_icon', [ 'label' => esc_html__( 'Button Icon', self::TD ), 'type' => Controls_Manager::ICONS, 'default' => [ 'value' => 'fas fa-arrow-right', 'library' => 'fa-solid' ], 'condition' => [ 'show_btn' => 'yes' ], ] ); /* — Secondary Button — */ $this->add_control( 'show_btn2', [ 'label' => esc_html__( 'Show Secondary Button', self::TD ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => '', ] ); $this->add_control( 'btn2_text', [ 'label' => esc_html__( 'Secondary Button Text', self::TD ), 'type' => Controls_Manager::TEXT, 'default' => 'Learn More', 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::TEXT_CATEGORY ] ], 'condition' => [ 'show_btn2' => 'yes' ], ] ); $this->add_control( 'btn2_link', [ 'label' => esc_html__( 'Secondary Button Link', self::TD ), 'type' => Controls_Manager::URL, 'default' => [ 'url' => '#' ], 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::URL_CATEGORY ] ], 'condition' => [ 'show_btn2' => 'yes' ], ] ); $this->add_control( 'btn2_icon', [ 'label' => esc_html__( 'Secondary Button Icon', self::TD ), 'type' => Controls_Manager::ICONS, 'default' => [], 'condition' => [ 'show_btn2' => 'yes' ], ] ); $this->end_controls_section(); /* ── Features Grid ────────────────────────────────── */ $this->start_controls_section( 'section_features', [ 'label' => esc_html__( 'Features Grid', self::TD ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'show_features', [ 'label' => esc_html__( 'Show Features', self::TD ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'yes', ] ); $fr = new Repeater(); $fr->add_control( 'feature_icon', [ 'label' => esc_html__( 'Icon', self::TD ), 'type' => Controls_Manager::ICONS, 'default' => [ 'value' => 'fas fa-star', 'library' => 'fa-solid' ], ] ); $fr->add_control( 'feature_title', [ 'label' => esc_html__( 'Title', self::TD ), 'type' => Controls_Manager::TEXT, 'default' => 'Feature Title', 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::TEXT_CATEGORY ] ], ] ); $fr->add_control( 'feature_desc', [ 'label' => esc_html__( 'Description', self::TD ), 'type' => Controls_Manager::TEXTAREA, 'default' => 'Feature description.', 'dynamic' => [ 'active' => true, 'categories' => [ DynamicTagsModule::TEXT_CATEGORY ] ], ] ); $this->add_control( 'features_list', [ 'label' => esc_html__( 'Features', self::TD ), 'type' => Controls_Manager::REPEATER, 'fields' => $fr->get_controls(), 'default' => [ [ 'feature_icon' => [ 'value' => 'fas fa-magic', 'library' => 'fa-solid' ], 'feature_title' => 'Realistic Results', 'feature_desc' => 'Photos that look professionally crafted.' ], [ 'feature_icon' => [ 'value' => 'fas fa-bolt', 'library' => 'fa-solid' ], 'feature_title' => 'Fast Generation', 'feature_desc' => 'Turn ideas into images in seconds.' ], [ 'feature_icon' => [ 'value' => 'fas fa-palette', 'library' => 'fa-solid' ], 'feature_title' => 'Diverse Styles', 'feature_desc' => 'Choose from a wide range of artistic options.' ], ], 'title_field' => '{{{ feature_title }}}', 'condition' => [ 'show_features' => 'yes' ], ] ); $this->add_responsive_control( 'features_columns', [ 'label' => esc_html__( 'Columns', self::TD ), 'type' => Controls_Manager::SELECT, 'options' => [ '1'=>'1','2'=>'2','3'=>'3','4'=>'4' ], 'default' => '3', 'tablet_default' => '3', 'mobile_default' => '1', 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__features' => 'grid-template-columns: repeat({{VALUE}}, 1fr);' ], 'condition' => [ 'show_features' => 'yes' ], ] ); $this->end_controls_section(); /* ══════════════════════════════════════════════════════ * STYLE TAB * ══════════════════════════════════════════════════════ */ /* ── Layout & Background ──────────────────────────── */ $this->start_controls_section( 'style_layout', [ 'label' => esc_html__( 'Layout & Background', self::TD ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'wrapper_min_height', [ 'label' => esc_html__( 'Widget Min Height', self::TD ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', 'vh' ], 'range' => [ 'px' => [ 'min' => 300, 'max' => 1400 ] ], 'desktop_default' => [ 'size' => 820, 'unit' => 'px' ], 'tablet_default' => [ 'size' => 650, 'unit' => 'px' ], 'mobile_default' => [ 'size' => 480, 'unit' => 'px' ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase-wrapper' => 'min-height: {{SIZE}}{{UNIT}} !important;' ], ] ); $this->add_responsive_control( 'wrapper_padding', [ 'label' => esc_html__( 'Wrapper Padding', self::TD ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top'=>0,'right'=>0,'bottom'=>48,'left'=>0,'unit'=>'px','isLinked'=>false ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase-wrapper' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'wrapper_background', 'label' => esc_html__( 'Background', self::TD ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .aafe-orbit-image-showcase-wrapper', ] ); /* — Entrance Animation — */ $this->add_control( 'entrance_heading', [ 'label' => esc_html__( 'Entrance Animation', self::TD ), 'type' => Controls_Manager::HEADING, ] ); $this->add_control( 'entrance_animation', [ 'label' => esc_html__( 'Animation', self::TD ), 'type' => Controls_Manager::SELECT, 'options' => [ 'none' => esc_html__( 'None', self::TD ), 'fadeInUp' => esc_html__( 'Fade In Up', self::TD ), 'fadeInDown' => esc_html__( 'Fade In Down', self::TD ), 'fadeInLeft' => esc_html__( 'Fade In Left', self::TD ), 'fadeInRight' => esc_html__( 'Fade In Right', self::TD ), 'zoomIn' => esc_html__( 'Zoom In', self::TD ), ], 'default' => 'none', ] ); $this->add_control( 'entrance_duration', [ 'label' => esc_html__( 'Duration (ms)', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 300, 'max' => 2000, 'step' => 100 ] ], 'default' => [ 'size' => 800 ], 'condition' => [ 'entrance_animation!' => 'none' ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__main' => 'animation-duration: {{SIZE}}ms;' ], ] ); $this->add_control( 'entrance_delay', [ 'label' => esc_html__( 'Delay (ms)', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 2000, 'step' => 100 ] ], 'default' => [ 'size' => 0 ], 'condition' => [ 'entrance_animation!' => 'none' ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__main' => 'animation-delay: {{SIZE}}ms;' ], ] ); $this->end_controls_section(); /* ── Gallery Cards ────────────────────────────────── */ $this->start_controls_section( 'style_gallery', [ 'label' => esc_html__( 'Gallery Cards', self::TD ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'card_width', [ 'label' => esc_html__( 'Card Width', self::TD ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 40, 'max' => 400 ] ], 'desktop_default' => [ 'size' => 160, 'unit' => 'px' ], 'tablet_default' => [ 'size' => 120, 'unit' => 'px' ], 'mobile_default' => [ 'size' => 80, 'unit' => 'px' ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase-wrapper' => '--aafe-card-w: {{SIZE}}px;', '{{WRAPPER}} .aafe-orbit-image-showcase__card' => 'width: {{SIZE}}px;', ], ] ); $this->add_responsive_control( 'card_height', [ 'label' => esc_html__( 'Card Height', self::TD ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 40, 'max' => 500 ] ], 'desktop_default' => [ 'size' => 160, 'unit' => 'px' ], 'tablet_default' => [ 'size' => 120, 'unit' => 'px' ], 'mobile_default' => [ 'size' => 80, 'unit' => 'px' ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase-wrapper' => '--aafe-card-h: {{SIZE}}px;', '{{WRAPPER}} .aafe-orbit-image-showcase__card' => 'height: {{SIZE}}px;', ], ] ); $this->add_responsive_control( 'card_radius', [ 'label' => esc_html__( 'Border Radius', self::TD ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%' ], 'default' => [ 'top'=>22,'right'=>22,'bottom'=>22,'left'=>22,'unit'=>'px','isLinked'=>true ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__card' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'card_border', 'selector' => '{{WRAPPER}} .aafe-orbit-image-showcase__card', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'card_shadow', 'selector' => '{{WRAPPER}} .aafe-orbit-image-showcase__card', ] ); /* — Image Filters — */ $this->add_control( 'card_filters_heading', [ 'label' => esc_html__( 'Image Filters', self::TD ), 'type' => Controls_Manager::HEADING, ] ); $this->add_control( 'card_grayscale', [ 'label' => esc_html__( 'Grayscale (%)', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 100 ] ], 'default' => [ 'size' => 0 ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__card img' => '--aafe-filter-grayscale: {{SIZE}}%;' ], ] ); $this->add_control( 'card_brightness', [ 'label' => esc_html__( 'Brightness (%)', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 50, 'max' => 150 ] ], 'default' => [ 'size' => 100 ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__card img' => '--aafe-filter-brightness: {{SIZE}}%;' ], ] ); $this->add_control( 'card_blur_filter', [ 'label' => esc_html__( 'Blur (px)', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 10 ] ], 'default' => [ 'size' => 0 ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__card img' => '--aafe-filter-blur: {{SIZE}}px;' ], ] ); $this->end_controls_section(); /* ── Content Styling ──────────────────────────────── */ $this->start_controls_section( 'style_content', [ 'label' => esc_html__( 'Content', self::TD ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'content_max_width', [ 'label' => esc_html__( 'Content Max Width', self::TD ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px','%' ], 'range' => [ 'px' => [ 'min' => 300, 'max' => 1200 ] ], 'desktop_default' => [ 'size' => 760, 'unit' => 'px' ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__main-inner' => 'max-width: {{SIZE}}{{UNIT}};' ], ] ); $this->add_responsive_control( 'content_padding', [ 'label' => esc_html__( 'Content Padding', self::TD ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'default' => [ 'top'=>0,'right'=>20,'bottom'=>52,'left'=>20,'unit'=>'px','isLinked'=>false ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__main-inner' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->add_responsive_control( 'content_text_align', [ 'label' => esc_html__( 'Text Alignment', self::TD ), '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' ], ], 'default' => 'center', 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__main-inner' => 'text-align: {{VALUE}};' ], ] ); /* — Heading Style — */ $this->add_control( 'hh', [ 'label' => 'Heading', 'type' => Controls_Manager::HEADING ] ); $this->add_control( 'heading_color', [ 'label' => esc_html__( 'Color', self::TD ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__heading' => 'color: {{VALUE}} !important;' ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'heading_typography', 'selector' => '{{WRAPPER}} .aafe-orbit-image-showcase__heading', ] ); $this->add_group_control( Group_Control_Text_Shadow::get_type(), [ 'name' => 'heading_text_shadow', 'selector' => '{{WRAPPER}} .aafe-orbit-image-showcase__heading', ] ); $this->add_responsive_control( 'heading_margin', [ 'label' => esc_html__( 'Margin Bottom', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 80 ] ], 'default' => [ 'size' => 14 ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__heading' => 'margin-bottom: {{SIZE}}px !important;' ], ] ); /* — Description Style — */ $this->add_control( 'dh', [ 'label' => 'Description', 'type' => Controls_Manager::HEADING ] ); $this->add_control( 'desc_color', [ 'label' => esc_html__( 'Color', self::TD ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__desc' => 'color: {{VALUE}} !important;' ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'desc_typography', 'selector' => '{{WRAPPER}} .aafe-orbit-image-showcase__desc', ] ); $this->add_group_control( Group_Control_Text_Shadow::get_type(), [ 'name' => 'desc_text_shadow', 'selector' => '{{WRAPPER}} .aafe-orbit-image-showcase__desc', ] ); $this->add_responsive_control( 'desc_margin', [ 'label' => esc_html__( 'Margin Bottom', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 80 ] ], 'default' => [ 'size' => 28 ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__desc' => 'margin-bottom: {{SIZE}}px !important;' ], ] ); $this->end_controls_section(); /* ── Buttons Styling ──────────────────────────────── */ $this->start_controls_section( 'style_buttons', [ 'label' => esc_html__( 'Buttons', self::TD ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'btn_group_direction', [ 'label' => esc_html__( 'Button Layout', self::TD ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'row' => [ 'title' => 'Inline (Row)', 'icon' => 'eicon-h-align-center' ], 'column' => [ 'title' => 'Stacked (Column)', 'icon' => 'eicon-v-align-middle' ], ], 'desktop_default' => 'row', 'tablet_default' => 'row', 'mobile_default' => 'column', 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__btn-group' => 'flex-direction: {{VALUE}};' ], ] ); /* — Primary Button Style — */ $this->add_control( 'bh', [ 'label' => 'Primary Button', 'type' => Controls_Manager::HEADING ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'btn_typography', 'selector' => '{{WRAPPER}} .aafe-orbit-image-showcase__btn', ] ); $this->add_responsive_control( 'btn_padding', [ 'label' => 'Padding', 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px'], 'default' => ['top'=>14,'right'=>30,'bottom'=>14,'left'=>30,'unit'=>'px'], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__btn' => 'padding:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->add_responsive_control( 'btn_radius', [ 'label' => 'Border Radius', 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px','%'], 'default' => ['top'=>50,'right'=>50,'bottom'=>50,'left'=>50,'unit'=>'px'], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__btn' => 'border-radius:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); $this->add_control( 'btn_icon_size', [ 'label' => esc_html__( 'Icon Size (px)', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 8, 'max' => 40 ] ], 'default' => [ 'size' => 13 ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__icon-wrap' => 'font-size: {{SIZE}}px;' ], ] ); $this->start_controls_tabs( 'tabs_btn' ); $this->start_controls_tab( 'tab_btn_n', [ 'label' => 'Normal' ] ); $this->add_control( 'btn_color', [ 'label'=>'Text Color','type'=>Controls_Manager::COLOR,'default'=>'#fff','selectors'=>['{{WRAPPER}} .aafe-orbit-image-showcase__btn'=>'color:{{VALUE}} !important;'] ] ); $this->add_control( 'btn_bg', [ 'label'=>'Background','type'=>Controls_Manager::COLOR,'default'=>'#1a1a24','selectors'=>['{{WRAPPER}} .aafe-orbit-image-showcase__btn'=>'background-color:{{VALUE}} !important;'] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name'=>'btn_border','selector'=>'{{WRAPPER}} .aafe-orbit-image-showcase__btn' ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name'=>'btn_box_shadow','selector'=>'{{WRAPPER}} .aafe-orbit-image-showcase__btn' ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_btn_h', [ 'label' => 'Hover' ] ); $this->add_control( 'btn_color_h', [ 'label'=>'Text Color','type'=>Controls_Manager::COLOR,'selectors'=>['{{WRAPPER}} .aafe-orbit-image-showcase__btn:hover'=>'color:{{VALUE}} !important;'] ] ); $this->add_control( 'btn_bg_h', [ 'label'=>'Background','type'=>Controls_Manager::COLOR,'selectors'=>['{{WRAPPER}} .aafe-orbit-image-showcase__btn:hover'=>'background-color:{{VALUE}} !important;'] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name'=>'btn_border_h','selector'=>'{{WRAPPER}} .aafe-orbit-image-showcase__btn:hover' ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name'=>'btn_box_shadow_h','selector'=>'{{WRAPPER}} .aafe-orbit-image-showcase__btn:hover' ] ); $this->add_control( 'btn_hover_animation', [ 'label' => esc_html__( 'Hover Animation', self::TD ), 'type' => Controls_Manager::HOVER_ANIMATION, ] ); $this->end_controls_tab(); $this->end_controls_tabs(); /* — Secondary Button Style — */ $this->add_control( 'bh2', [ 'label' => 'Secondary Button', 'type' => Controls_Manager::HEADING, 'condition' => [ 'show_btn2' => 'yes' ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'btn2_typography', 'selector' => '{{WRAPPER}} .aafe-orbit-image-showcase__btn2', 'condition' => [ 'show_btn2' => 'yes' ], ] ); $this->add_responsive_control( 'btn2_padding', [ 'label' => 'Padding', 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px'], 'default' => ['top'=>13,'right'=>28,'bottom'=>13,'left'=>28,'unit'=>'px'], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__btn2' => 'padding:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], 'condition' => [ 'show_btn2' => 'yes' ], ] ); $this->add_responsive_control( 'btn2_radius', [ 'label' => 'Border Radius', 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px','%'], 'default' => ['top'=>50,'right'=>50,'bottom'=>50,'left'=>50,'unit'=>'px'], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__btn2' => 'border-radius:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], 'condition' => [ 'show_btn2' => 'yes' ], ] ); $this->start_controls_tabs( 'tabs_btn2', [ 'condition' => [ 'show_btn2' => 'yes' ] ] ); $this->start_controls_tab( 'tab_btn2_n', [ 'label' => 'Normal' ] ); $this->add_control( 'btn2_color', [ 'label'=>'Text Color','type'=>Controls_Manager::COLOR,'default'=>'#1a1a24','selectors'=>['{{WRAPPER}} .aafe-orbit-image-showcase__btn2'=>'color:{{VALUE}} !important;'] ] ); $this->add_control( 'btn2_bg', [ 'label'=>'Background','type'=>Controls_Manager::COLOR,'default'=>'transparent','selectors'=>['{{WRAPPER}} .aafe-orbit-image-showcase__btn2'=>'background-color:{{VALUE}} !important;'] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name'=>'btn2_border','selector'=>'{{WRAPPER}} .aafe-orbit-image-showcase__btn2' ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_btn2_h', [ 'label' => 'Hover' ] ); $this->add_control( 'btn2_color_h', [ 'label'=>'Text Color','type'=>Controls_Manager::COLOR,'selectors'=>['{{WRAPPER}} .aafe-orbit-image-showcase__btn2:hover'=>'color:{{VALUE}} !important;'] ] ); $this->add_control( 'btn2_bg_h', [ 'label'=>'Background','type'=>Controls_Manager::COLOR,'selectors'=>['{{WRAPPER}} .aafe-orbit-image-showcase__btn2:hover'=>'background-color:{{VALUE}} !important;'] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name'=>'btn2_border_h','selector'=>'{{WRAPPER}} .aafe-orbit-image-showcase__btn2:hover' ] ); $this->add_control( 'btn2_hover_animation', [ 'label' => esc_html__( 'Hover Animation', self::TD ), 'type' => Controls_Manager::HOVER_ANIMATION, ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /* ── Features Style ───────────────────────────────── */ $this->start_controls_section( 'style_features', [ 'label' => esc_html__( 'Features', self::TD ), 'tab' => Controls_Manager::TAB_STYLE, ] ); // AAFE FIX: removed a duplicate "features_columns" control (it is already defined in the // Content tab). Elementor rejected the duplicate, so this one never worked. $this->add_responsive_control( 'feature_gap', [ 'label' => esc_html__( 'Gap', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 80 ] ], 'default' => [ 'size' => 0 ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__features' => 'gap: {{SIZE}}px;' ], ] ); $this->add_control( 'divider_color', [ 'label' => 'Divider Color', 'type' => Controls_Manager::COLOR, 'default' => '#e5e7eb', 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__feature:not(:last-child)' => 'border-right-color:{{VALUE}};' ], ] ); $this->add_responsive_control( 'feature_padding', [ 'label' => esc_html__( 'Feature Item Padding', self::TD ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em' ], 'default' => [ 'top'=>0,'right'=>24,'bottom'=>0,'left'=>24,'unit'=>'px','isLinked'=>false ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__feature' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], ] ); /* — Feature Icon — */ $this->add_control( 'fih', [ 'label' => 'Feature Icon', 'type' => Controls_Manager::HEADING ] ); $this->add_control( 'f_icon_color', [ 'label' => esc_html__( 'Color', self::TD ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__feature-icon' => 'color: {{VALUE}};', '{{WRAPPER}} .aafe-orbit-image-showcase__feature-icon svg' => 'fill: {{VALUE}};', ], ] ); $this->add_control( 'f_icon_size', [ 'label' => esc_html__( 'Size (px)', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 12, 'max' => 80 ] ], 'default' => [ 'size' => 28 ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__feature-icon' => 'font-size: {{SIZE}}px;' ], ] ); $this->add_control( 'f_icon_bg', [ 'label' => esc_html__( 'Background', self::TD ), 'type' => Controls_Manager::COLOR, 'default' => 'transparent', 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__feature-icon-wrap' => 'background-color: {{VALUE}};' ], ] ); $this->add_control( 'f_icon_bg_size', [ 'label' => esc_html__( 'Background Size (px)', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 24, 'max' => 100 ] ], 'default' => [ 'size' => 44 ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__feature-icon-wrap' => 'width: {{SIZE}}px; height: {{SIZE}}px;' ], ] ); $this->add_control( 'f_icon_bg_radius', [ 'label' => esc_html__( 'Background Radius', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 50 ] ], 'default' => [ 'size' => 12 ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__feature-icon-wrap' => 'border-radius: {{SIZE}}px;' ], ] ); $this->add_responsive_control( 'f_icon_mb', [ 'label' => esc_html__( 'Margin Bottom', self::TD ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 40 ] ], 'default' => [ 'size' => 12 ], 'selectors' => [ '{{WRAPPER}} .aafe-orbit-image-showcase__feature-icon-wrap' => 'margin-bottom: {{SIZE}}px;' ], ] ); /* — Feature Title — */ $this->add_control( 'fth', [ 'label' => 'Feature Title', 'type' => Controls_Manager::HEADING ] ); $this->add_control( 'f_title_color', [ 'label'=>'Color','type'=>Controls_Manager::COLOR,'default'=>'#111','selectors'=>['{{WRAPPER}} .aafe-orbit-image-showcase__feature-title'=>'color:{{VALUE}} !important;'] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name'=>'f_title_typo','selector'=>'{{WRAPPER}} .aafe-orbit-image-showcase__feature-title' ] ); $this->add_group_control( Group_Control_Text_Shadow::get_type(), [ 'name'=>'f_title_text_shadow','selector'=>'{{WRAPPER}} .aafe-orbit-image-showcase__feature-title' ] ); /* — Feature Desc — */ $this->add_control( 'fdh', [ 'label' => 'Feature Description', 'type' => Controls_Manager::HEADING ] ); $this->add_control( 'f_desc_color', [ 'label'=>'Color','type'=>Controls_Manager::COLOR,'default'=>'#888','selectors'=>['{{WRAPPER}} .aafe-orbit-image-showcase__feature-desc'=>'color:{{VALUE}} !important;'] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name'=>'f_desc_typo','selector'=>'{{WRAPPER}} .aafe-orbit-image-showcase__feature-desc' ] ); $this->end_controls_section(); } /* ── Arc Position Math ─────────────────────────────────── */ private function calc_arc_vars( $items, $layout, $span, $offset ) { $count = count( $items ); $styles = []; if ( $count === 0 ) return $styles; if ( $layout === 'full' || $layout === '1' ) { $step = 360 / $count; $start = $offset + 270; } else { $step = $count > 1 ? $span / ( $count - 1 ) : 0; $start = $offset + 270 - ( $span / 2 ); } $mid = ( $count - 1 ) / 2; foreach ( $items as $i => $item ) { $angle_deg = $start + $step * $i; $angle_rad = deg2rad( $angle_deg ); $styles[ $i ] = [ 'cos' => round( cos( $angle_rad ), 5 ), 'sin' => round( sin( $angle_rad ), 5 ), 'tilt' => round( $angle_deg - 270, 2 ), 'dist' => round( abs( $i - $mid ) / ( $mid > 0 ? $mid : 1 ), 5 ), 'z' => round( ( 1 - ( abs( $i - $mid ) / ( $mid > 0 ? $mid : 1 ) ) ) * 8 ) + 2, ]; } return $styles; } private function get_responsive_arc_styles( $settings ) { $items = ! empty( $settings['gallery_items'] ) ? $settings['gallery_items'] : self::aafe_placeholder_gallery( 7 ); $layout_d = isset( $settings['layout_type'] ) ? $settings['layout_type'] : '0'; $span_d = isset( $settings['arc_span']['size'] ) && is_numeric( $settings['arc_span']['size'] ) ? (float) $settings['arc_span']['size'] : 260; $off_d = isset( $settings['arc_offset']['size'] ) && is_numeric( $settings['arc_offset']['size'] ) ? (float) $settings['arc_offset']['size'] : 0; $desktop = $this->calc_arc_vars( $items, $layout_d, $span_d, $off_d ); $layout_t = isset( $settings['layout_type_tablet'] ) ? $settings['layout_type_tablet'] : $layout_d; $span_t = isset( $settings['arc_span_tablet']['size'] ) && is_numeric( $settings['arc_span_tablet']['size'] ) ? (float) $settings['arc_span_tablet']['size'] : $span_d; $off_t = isset( $settings['arc_offset_tablet']['size'] ) && is_numeric( $settings['arc_offset_tablet']['size'] ) ? (float) $settings['arc_offset_tablet']['size'] : $off_d; $tablet = $this->calc_arc_vars( $items, $layout_t, $span_t, $off_t ); $layout_m = isset( $settings['layout_type_mobile'] ) ? $settings['layout_type_mobile'] : $layout_t; $span_m = isset( $settings['arc_span_mobile']['size'] ) && is_numeric( $settings['arc_span_mobile']['size'] ) ? (float) $settings['arc_span_mobile']['size'] : $span_t; $off_m = isset( $settings['arc_offset_mobile']['size'] ) && is_numeric( $settings['arc_offset_mobile']['size'] ) ? (float) $settings['arc_offset_mobile']['size'] : $off_t; $mobile = $this->calc_arc_vars( $items, $layout_m, $span_m, $off_m ); $final_styles = []; if ( empty( $desktop ) ) return $final_styles; foreach ( $items as $i => $item ) { $final_styles[ $i ] = [ '--c-cos-d' => $desktop[ $i ]['cos'], '--c-sin-d' => $desktop[ $i ]['sin'], '--c-tilt-d' => $desktop[ $i ]['tilt'] . 'deg', '--c-dist-d' => $desktop[ $i ]['dist'], '--c-z-d' => $desktop[ $i ]['z'], '--c-cos-t' => $tablet[ $i ]['cos'], '--c-sin-t' => $tablet[ $i ]['sin'], '--c-tilt-t' => $tablet[ $i ]['tilt'] . 'deg', '--c-dist-t' => $tablet[ $i ]['dist'], '--c-z-t' => $tablet[ $i ]['z'], '--c-cos-m' => $mobile[ $i ]['cos'], '--c-sin-m' => $mobile[ $i ]['sin'], '--c-tilt-m' => $mobile[ $i ]['tilt'] . 'deg', '--c-dist-m' => $mobile[ $i ]['dist'], '--c-z-m' => $mobile[ $i ]['z'], ]; } return $final_styles; } /* ── Render ────────────────────────────────────────────── */ protected function render() { $s = $this->get_settings_for_display(); $main_tag = ! empty( $s['heading_tag'] ) ? $s['heading_tag'] : 'h2'; $items = ! empty( $s['gallery_items'] ) ? $s['gallery_items'] : self::aafe_placeholder_gallery( 7 ); // AAFE FIX: placeholders while empty. $entrance = ! empty( $s['entrance_animation'] ) ? $s['entrance_animation'] : 'none'; // Auto-rotate data $auto_rotate = ! empty( $s['auto_rotate'] ) && $s['auto_rotate'] === 'yes'; $rotate_speed = isset( $s['auto_rotate_speed']['size'] ) ? (float) $s['auto_rotate_speed']['size'] : 20; $rotate_dir = ! empty( $s['auto_rotate_direction'] ) ? $s['auto_rotate_direction'] : 'cw'; // Arc math $card_styles = $this->get_responsive_arc_styles( $s ); // Button attributes if ( ! empty( $s['btn_link']['url'] ) ) { $this->add_link_attributes( 'btn', $s['btn_link'] ); } $btn_classes = 'aafe-orbit-image-showcase__btn'; if ( ! empty( $s['btn_hover_animation'] ) ) $btn_classes .= ' elementor-animation-' . $s['btn_hover_animation']; $this->add_render_attribute( 'btn', 'class', $btn_classes ); if ( ! empty( $s['btn2_link']['url'] ) ) { $this->add_link_attributes( 'btn2', $s['btn2_link'] ); } $btn2_classes = 'aafe-orbit-image-showcase__btn2'; if ( ! empty( $s['btn2_hover_animation'] ) ) $btn2_classes .= ' elementor-animation-' . $s['btn2_hover_animation']; $this->add_render_attribute( 'btn2', 'class', $btn2_classes ); // Wrapper data attrs $wrapper_data = []; if ( $auto_rotate ) { $wrapper_data[] = 'data-auto-rotate="yes"'; $wrapper_data[] = 'data-rotate-speed="' . esc_attr( $rotate_speed ) . '"'; $wrapper_data[] = 'data-rotate-dir="' . esc_attr( $rotate_dir ) . '"'; } ?>
>
$item ) : $img_url = ! empty( $item['url'] ) ? $item['url'] : ''; $img_full = ! empty( $item['url'] ) ? $item['url'] : ''; if ( empty( $img_url ) ) continue; $cs = isset( $card_styles[ $i ] ) ? $card_styles[ $i ] : []; $inline = ''; if ( $cs ) { foreach ( $cs as $k => $v ) { $inline .= $k . ':' . esc_attr( $v ) . ';'; } } ?>
<?php esc_attr_e( 'Gallery Image', self::TD ); ?>
'true' ] ); ?>

<# var mainTag = settings.heading_tag || 'h2'; var items = ( settings.gallery_items && settings.gallery_items.length ) ? settings.gallery_items : ( function () { var a = []; for ( var i = 0; i < 7; i++ ) { a.push( { id: '', url: '' } ); } return a; } )(); var count = items.length; var entrance = settings.entrance_animation || 'none'; var autoRotate = settings.auto_rotate === 'yes'; var showHeading = settings.show_heading === 'yes'; var showDesc = settings.show_desc === 'yes'; var showBtn = settings.show_btn === 'yes'; var showBtn2 = settings.show_btn2 === 'yes'; var showFeatures= settings.show_features === 'yes'; function calcArcVars(layout, span, offset) { var styles = []; if (count === 0) return styles; var step = 0, startAng = 0; if ( layout === 'full' || layout === '1' ) { step = 360 / count; startAng = offset + 270; } else { step = count > 1 ? span / (count - 1) : 0; startAng = offset + 270 - (span / 2); } var mid = (count - 1) / 2; for (var i = 0; i < count; i++) { var a = startAng + step * i, r = a * Math.PI / 180; var dist = Math.abs(i - mid) / (mid > 0 ? mid : 1); styles.push({ cos: Math.cos(r).toFixed(5), sin: Math.sin(r).toFixed(5), tilt: (a - 270).toFixed(2), dist: dist.toFixed(5), z: Math.round((1 - dist) * 8) + 2 }); } return styles; } var lay_d = settings.layout_type || '0'; var span_d = settings.arc_span && settings.arc_span.size !== '' ? parseFloat(settings.arc_span.size) : 260; var off_d = settings.arc_offset && settings.arc_offset.size !== '' ? parseFloat(settings.arc_offset.size) : 0; var deskStyles = calcArcVars(lay_d, span_d, off_d); var lay_t = settings.layout_type_tablet || lay_d; var span_t = settings.arc_span_tablet && settings.arc_span_tablet.size !== '' ? parseFloat(settings.arc_span_tablet.size) : span_d; var off_t = settings.arc_offset_tablet && settings.arc_offset_tablet.size !== '' ? parseFloat(settings.arc_offset_tablet.size) : off_d; var tabStyles = calcArcVars(lay_t, span_t, off_t); var lay_m = settings.layout_type_mobile || lay_t; var span_m = settings.arc_span_mobile && settings.arc_span_mobile.size !== '' ? parseFloat(settings.arc_span_mobile.size) : span_t; var off_m = settings.arc_offset_mobile && settings.arc_offset_mobile.size !== '' ? parseFloat(settings.arc_offset_mobile.size) : off_t; var mobStyles = calcArcVars(lay_m, span_m, off_m); // Icon helper function renderIcon(iconSetting, wrapClass) { if (!iconSetting || !iconSetting.value) return ''; var iconObj = elementor.helpers.renderIcon(view, iconSetting, {'aria-hidden': true}, 'i', 'object'); return '' + (iconObj ? iconObj.value : '') + ''; } var wrapperClass = 'aafe-orbit-image-showcase-wrapper'; if (entrance !== 'none') wrapperClass += ' aafe-entrance-' + entrance; var wrapperData = ''; if (autoRotate) { var rSpeed = settings.auto_rotate_speed && settings.auto_rotate_speed.size ? settings.auto_rotate_speed.size : 20; var rDir = settings.auto_rotate_direction || 'cw'; wrapperData = ' data-auto-rotate="yes" data-rotate-speed="' + rSpeed + '" data-rotate-dir="' + rDir + '"'; } #>
<# if (count > 0) { _.each(items, function(item, i) { var imgUrl = item.url ? item.url : ''; var d = deskStyles[i], t = tabStyles[i], m = mobStyles[i]; var cv = '--c-cos-d:'+d.cos+';--c-sin-d:'+d.sin+';--c-tilt-d:'+d.tilt+'deg;--c-dist-d:'+d.dist+';--c-z-d:'+d.z+';' + '--c-cos-t:'+t.cos+';--c-sin-t:'+t.sin+';--c-tilt-t:'+t.tilt+'deg;--c-dist-t:'+t.dist+';--c-z-t:'+t.z+';' + '--c-cos-m:'+m.cos+';--c-sin-m:'+m.sin+';--c-tilt-m:'+m.tilt+'deg;--c-dist-m:'+m.dist+';--c-z-m:'+m.z+';'; #>
<# if (imgUrl) { #>Gallery Image<# } #>
<# }); } #>
<# if (showHeading && settings.heading_text) { #> <{{{ mainTag }}} class="aafe-orbit-image-showcase__heading">{{{ settings.heading_text }}} <# } #> <# if (showDesc && settings.desc_text) { #>

{{{ settings.desc_text }}}

<# } #> <# if (showBtn || showBtn2) { #>
<# if (showBtn && settings.btn_text) { var btn1Icon = renderIcon(settings.btn_icon, 'aafe-orbit-image-showcase__icon-wrap'); var btn1Class = 'aafe-orbit-image-showcase__btn'; if (settings.btn_hover_animation) btn1Class += ' elementor-animation-' + settings.btn_hover_animation; #> {{{ settings.btn_text }}} {{{ btn1Icon }}} <# } #> <# if (showBtn2 && settings.btn2_text) { var btn2Icon = renderIcon(settings.btn2_icon, 'aafe-orbit-image-showcase__icon-wrap2'); var btn2Class = 'aafe-orbit-image-showcase__btn2'; if (settings.btn2_hover_animation) btn2Class += ' elementor-animation-' + settings.btn2_hover_animation; #> {{{ settings.btn2_text }}} {{{ btn2Icon }}} <# } #>
<# } #>
<# if (showFeatures && settings.features_list && settings.features_list.length) { #>
<# _.each(settings.features_list, function(f) { var fIcon = renderIcon(f.feature_icon, 'aafe-orbit-image-showcase__feature-icon'); #>
<# if (fIcon) { #>
{{{ fIcon }}}
<# } #> <# if (f.feature_title) { #>

{{{ f.feature_title }}}

<# } #> <# if (f.feature_desc) { #>

{{{ f.feature_desc }}}

<# } #>
<# }); #>
<# } #>