start_controls_section( 'section_tab', [ 'label' => esc_html__('Logo settings', 'cafesio' ), ] ); $this->add_control( 'site_logo', [ 'label' => esc_html__('Logo', 'cafesio' ), 'type' => Controls_Manager::MEDIA, ] ); $this->add_responsive_control( 'logo_size_width', [ 'label' => esc_html__('Logo Width', 'cafesio' ), 'type' => Controls_Manager::NUMBER, 'default' => '', 'selectors' => [ '{{WRAPPER}} .widget-logo img' => 'max-width: {{VALUE}}px;', ], ] ); $this->add_responsive_control( 'logo_size_height', [ 'label' => esc_html__('Logo Height', 'cafesio' ), 'type' => Controls_Manager::NUMBER, 'default' => '', 'selectors' => [ '{{WRAPPER}} .widget-logo img' => 'max-height: {{VALUE}}px;', '{{WRAPPER}} .widget-logo a' => 'line-height: {{VALUE}}px;', ], ] ); $this->add_responsive_control( 'date_text_align', [ 'label' => esc_html__( 'Alignment', 'cafesio' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => esc_html__( 'Left', 'cafesio' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => esc_html__( 'Center', 'cafesio' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => esc_html__( 'Right', 'cafesio' ), 'icon' => 'fa fa-align-right', ], ], 'default' => '', 'selectors' => [ '{{WRAPPER}} .widget-logo' => 'text-align: {{VALUE}};' ], ] ); $this->add_responsive_control( 'logo_padding', [ 'label' =>esc_html__( 'Padding', 'cafesio' ), 'type' => \Elementor\Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .widget-logo' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); } protected function render( ) { $settings = $this->get_settings(); $site_logo = $settings['site_logo']; ?>