start_controls_section( 'section_site_logo', [ 'label' => __( 'Site Logo', 'attesa-extra' ), ] ); $this->add_control( 'important_note', [ 'label' => __( 'Note', 'attesa-extra' ), 'type' => Controls_Manager::RAW_HTML, 'raw' => __( 'You can customize your settings (choose the logo, change the site title or tagline) from your WordPress Dashboard in "Appearance-> Customize-> Site Identity".', 'attesa-extra' ), 'content_classes' => 'elementor-descriptor', ] ); $this->add_responsive_control( 'site_logo_align', [ 'label' => __( 'Alignment', 'attesa-extra' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'flex-start' => [ 'title' => __( 'Left', 'attesa-extra' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => __( 'Center', 'attesa-extra' ), 'icon' => 'fa fa-align-center', ], 'flex-end' => [ 'title' => __( 'Right', 'attesa-extra' ), 'icon' => 'fa fa-align-right', ], ], 'default' => 'flex-start', 'toggle' => true, 'selectors' => [ '{{WRAPPER}} .attesa-custom-logo .attesa-text-logo' => 'align-items: {{VALUE}};', '{{WRAPPER}} .attesa-custom-logo .attesa-logo' => 'justify-content: {{VALUE}};', ], ] ); $this->add_responsive_control( 'max_height', [ 'label' => __( 'Logo Max Height', 'attesa-extra' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 60, ], 'range' => [ 'px' => [ 'min' => 50, 'max' => 500, 'step' => 1, ], ], 'selectors' => [ '{{WRAPPER}} .attesa-custom-logo .attesa-logo img' => 'max-height: {{SIZE}}{{UNIT}};width: auto;', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'site_title_style', [ 'label' => __( 'Site title style (if used)', 'attesa-extra' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'site_title_color', [ 'label' => __( 'Site Title Text Color', 'attesa-extra' ), 'type' => Controls_Manager::COLOR, 'default' => '#f06292', 'selectors' => [ '{{WRAPPER}} .attesa-custom-logo .site-title a' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'title_typography', 'selector' => '{{WRAPPER}} .attesa-custom-logo .site-title a', 'scheme' => Scheme_Typography::TYPOGRAPHY_3, ] ); $this->end_controls_section(); $this->start_controls_section( 'site_tagline_style', [ 'label' => __( 'Site tagline style (if used)', 'attesa-extra' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'site_tagline_color', [ 'label' => __( 'Site Tagline Text Color', 'attesa-extra' ), 'type' => Controls_Manager::COLOR, 'default' => '#000000', 'selectors' => [ '{{WRAPPER}} .attesa-custom-logo .site-description' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'tagline_typography', 'selector' => '{{WRAPPER}} .attesa-custom-logo .site-description', 'scheme' => Scheme_Typography::TYPOGRAPHY_3, ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings(); ?>