start_controls_section( 'section_title', [ 'label' => __( 'Title Element', 'addonnest' ) ] ); $this->add_control( 'title_txt', [ 'label' => __( 'First Title Text', 'addonnest' ), 'type' => \Elementor\Controls_Manager::TEXT, 'label_block' => true, 'placeholder' => __( 'Enter title', 'addonnest' ), 'default' => __( 'Explore Featured', 'addonnest' ), ] ); $this->add_control( 'title_txt2', [ 'label' => __( 'Second Title Text', 'addonnest' ), 'type' => \Elementor\Controls_Manager::TEXT, 'label_block' => true, 'placeholder' => __( 'Enter title two', 'addonnest' ), 'default' => __( 'Cources', 'addonnest' ), ] ); $this->add_control( 'subtitle_content', [ 'label' => __( 'Sub Title Content', 'addonnest' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'label_block' => true, 'placeholder' => __( 'Enter Sub Title', 'addonnest' ), 'default' => __( 'Write your sub title content of this section.', 'addonnest' ), ] ); $this->add_responsive_control( 'align', [ 'label' => esc_html__( 'Alignment', 'addonnest' ), 'type' => \Elementor\Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => esc_html__( 'Left', 'addonnest' ), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => esc_html__( 'Center', 'addonnest' ), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => esc_html__( 'Right', 'addonnest' ), 'icon' => 'eicon-text-align-right', ], 'justify' => [ 'title' => esc_html__( 'Justified', 'addonnest' ), 'icon' => 'eicon-text-align-justify', ], ], 'default' => '', 'selectors' => [ '{{WRAPPER}}' => 'text-align: {{VALUE}};', ], ] ); $this->end_controls_section(); # Option End $this->start_controls_section( 'section_title_style', [ 'label' => __( 'Title', 'addonnest' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'first_title_color', [ 'label' => __( 'First Text Color', 'addonnest' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .addonnest_heading_caption h2' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'second_title_color', [ 'label' => __( 'Second Text Color', 'addonnest' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .addonnest_heading_caption .theme-cl' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'typography', 'selector' => '{{WRAPPER}} .addonnest_heading_caption h2', ] ); $this->add_responsive_control( 'addonnest_title_space', [ 'label' => esc_html__( 'Spacing', 'addonnest' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'default' => [ 'size' => 5, ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .addonnest_heading_caption h2' => 'margin-bottom: {{SIZE}}{{UNIT}};', ], ] ); $this->end_controls_section(); # Title Section end 1 # Sub Title Section 2 $this->start_controls_section( 'section_subtitle_style', [ 'label' => __( 'Sub Title', 'addonnest' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'subtitle_color', [ 'label' => __( 'Subtitle Color', 'addonnest' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .addonnest_heading_caption p' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'typography2', 'selector' => '{{WRAPPER}} .addonnest_heading_caption p', ] ); $this->end_controls_section(); # Subtitle part 2 end } protected function render( ) { $settings = $this->get_settings(); ?>

array() ) ); ?>

widgets_manager->register_widget_type( new AddonNest_Widget_Title() );