%PDF- %PDF-
Direktori : /home/opti/public_html/stlc/wp-content/plugins/insur-addon/includes/Widgets/ |
Current File : /home/opti/public_html/stlc/wp-content/plugins/insur-addon/includes/Widgets/Newsletter.php |
<?php namespace Layerdrops\Insur\Widgets; class Newsletter extends \Elementor\Widget_Base { public function get_name() { return 'newsletter'; } public function get_title() { return __('Newsletter', 'insur-addon'); } public function get_icon() { return 'eicon-cogs'; } public function get_categories() { return ['insur-category']; } protected function register_controls() { $this->start_controls_section( 'layout_section', [ 'label' => __('Layout', 'insur-addon'), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'layout_type', [ 'label' => __('Select Layout', 'insur-addon'), 'type' => \Elementor\Controls_Manager::SELECT2, 'default' => 'layout_one', 'options' => [ 'layout_one' => __('Layout One', 'insur-addon'), ] ] ); $this->end_controls_section(); $this->start_controls_section( 'content_section', [ 'label' => __('Content', 'insur-addon'), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'mailchimp_url', [ 'label' => __('Add Mailchimp URL', 'insur-addon'), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => '#', ] ); $this->add_control( 'mc_input_placeholder', [ 'label' => __('Input Placeholder Text', 'insur-addon'), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => __('Don’t hesitate, contact us for better future life.', 'insur-addon'), 'label_block' => true ] ); $this->add_control( 'button_label', [ 'label' => __('Button Label', 'insur-addon'), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => __('Get a Quote', 'insur-addon'), 'label_block' => true ] ); $this->end_controls_section(); //style $this->start_controls_section( 'style_option', [ 'label' => esc_html__('Style Options', 'insur-addon'), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, ] ); insur_typo_and_color_options($this, 'Button', '{{WRAPPER}} .process__btn', ['layout_one']); insur_typo_and_color_options($this, 'Button Background', '{{WRAPPER}} .process__btn', ['layout_one'], 'background-color', false); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); include insur_get_template('newsletter-one.php'); } }