start_controls_section( 'logo_showcase_content', [ 'label' => __( 'Logo Showcase', '99fy' ), ] ); $this->add_control( 'logoes', [ 'label' => __( 'Add Images', '99fy' ), 'type' => Controls_Manager::GALLERY, 'default' => [], ] ); $this->add_group_control( \Elementor\Group_Control_Image_Size::get_type(), [ 'name' => 'logosize', 'default' => 'large', 'separator' => 'none', ] ); $this->add_control( 'navigation', [ 'label' => __( 'Navigation', '99fy' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => __( 'Yes', '99fy' ), 'label_off' => __( 'No', '99fy' ), 'return_value' => 'yes', 'default' => 'no', ] ); $this->add_control( 'autoplay', [ 'label' => __( 'Auto Play', '99fy' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => __( 'Yes', '99fy' ), 'label_off' => __( 'No', '99fy' ), 'return_value' => 'yes', 'default' => 'no', ] ); $this->add_control( 'loop', [ 'label' => __( 'Loop', '99fy' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => __( 'Yes', '99fy' ), 'label_off' => __( 'No', '99fy' ), 'return_value' => 'yes', 'default' => 'yes', ] ); $this->add_control( 'autoplaytimeout', [ 'label' => __( 'Autoplay Timeout', '99fy' ), 'type' => Controls_Manager::TEXT, 'default' => __( '5000', '99fy' ), ] ); $this->end_controls_section(); $this->start_controls_section( 'logo_style_section', [ 'label' => __( 'Style', '99fy' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'logo_border', 'label' => __( 'Border', '99fy' ), 'selector' => '{{WRAPPER}} .logo_showcase .single-logo', ] ); $this->add_control( 'logo_margin', [ 'label' => __( 'Margin', '99fy' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .logo_showcase .single-logo' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'logo_padding', [ 'label' => __( 'Padding', '99fy' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .logo_showcase .single-logo' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); // Style tab section $this->start_controls_section( 'slider_navigation_style_section', [ 'label' => __( 'Navigation', '99fy' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'navigation' => 'yes', ] ] ); $this->add_control( 'sldier_navigation_color', [ 'label' => __( 'Navigation Color', '99fy' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .logo_showcase .owl-nav div' => 'color: {{VALUE}}' ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'sldier_navigation_typography', 'label' => __( 'Navigation Typography', '99fy' ), 'selector' => '{{WRAPPER}} .logo_showcase .owl-nav div', ] ); $this->add_control( 'sldier_navigation_bg_color', [ 'label' => __( 'Navigation Background Color', '99fy' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .logo_showcase .owl-nav div' => 'background-color: {{VALUE}}' ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'bsldier_navigation_order', 'label' => __( 'Border', '99fy' ), 'selector' => '{{WRAPPER}} .logo_showcase .owl-nav div', ] ); $this->end_controls_section(); } protected function render( $instance = [] ) { $settings = $this->get_settings_for_display(); $id = $this->get_id(); $this->add_render_attribute( 'logo_area_attr', 'class', 'sc_logo_showcase' ); // Image Size $size = 'full'; if( $settings['logosize_size'] == 'custom' ){ $size = $settings['logosize_custom_dimension']; }else{ $size = $settings['logosize_size']; } ?>