start_controls_section( 'section_colormag_global_widgets_title_title_manage', array( 'label' => esc_html__( 'Block Title', 'colormag' ), ) ); $this->add_control( 'widget_title', array( 'label' => esc_html__( 'Title:', 'colormag' ), 'type' => Controls_Manager::TEXT, 'placeholder' => esc_html__( 'Add your custom block title', 'colormag' ), 'label_block' => true, ) ); $this->end_controls_section(); // Widget design section $this->start_controls_section( 'section_colormag_global_widgets_title_design_manage', array( 'label' => esc_html__( 'Widget Title', 'colormag' ), 'tab' => Controls_Manager::TAB_STYLE, ) ); $this->add_control( 'widget_title_color', array( 'label' => esc_html__( 'Color:', 'colormag' ), 'type' => Controls_Manager::COLOR, 'default' => '#289dcc', 'scheme' => array( 'type' => Scheme_Color::get_type(), 'value' => Scheme_Color::COLOR_1, ), 'selectors' => array( '{{WRAPPER}} .tg-module-wrapper .module-title span' => 'background-color: {{VALUE}}', '{{WRAPPER}} .tg-module-wrapper .module-title' => 'border-bottom-color: {{VALUE}}', ), ) ); $this->add_control( 'widget_title_text_color', array( 'label' => esc_html__( 'Text Color:', 'colormag' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'scheme' => array( 'type' => Scheme_Color::get_type(), 'value' => Scheme_Color::COLOR_1, ), 'selectors' => array( '{{WRAPPER}} .tg-module-wrapper .module-title span' => 'color: {{VALUE}}', ), ) ); $this->end_controls_section(); } /** * Render ColorMag_Elementor_Global_Widgets_Title widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @access protected */ protected function render() { $widget_title = $this->get_settings( 'widget_title' ); if ( ! empty( $widget_title ) ) : ?>

get_settings( 'widget_title' ); ?>