get_settings_for_display( 'image' ); $heading = $this->get_settings_for_display( 'heading' ); $description = $this->get_settings_for_display( 'description' ); $button_text = $this->get_settings_for_display( 'button_text' ); $button_link = $this->get_settings_for_display( 'button_link' ); $link_target = $this->get_settings_for_display( 'link_target' ); $details = $this->get_settings_for_display( 'details' ); $toggle_details = $this->get_settings_for_display( 'toggle_details' ); ?>
start_controls_section( 'image_section', [ 'label' => esc_html__( 'Deal Image', 'copy-the-code' ), ] ); $this->add_control( 'image', [ 'label' => esc_html__( 'Deal Image', 'copy-the-code' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], ] ); $this->end_controls_section(); $this->start_controls_section( 'heading_section', [ 'label' => esc_html__( 'Heading', 'copy-the-code' ), ] ); $this->add_control( 'heading', [ 'label' => esc_html__( 'Heading', 'copy-the-code' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'Get up to 10% off on all products', 'copy-the-code' ), ] ); $this->end_controls_section(); $this->start_controls_section( 'description_section', [ 'label' => esc_html__( 'Short Description', 'copy-the-code' ), ] ); $this->add_control( 'description', [ 'label' => esc_html__( 'Short Description', 'copy-the-code' ), 'type' => Controls_Manager::WYSIWYG, 'default' => 'Get up to 50% off on all products. Offer valid till 31st December 2020.', ] ); $this->end_controls_section(); $this->start_controls_section( 'button_section', [ 'label' => esc_html__( 'Button', 'copy-the-code' ), ] ); // Button Text. $this->add_control( 'button_text', [ 'label' => esc_html__( 'Button Text', 'copy-the-code' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'Get Deal', 'copy-the-code' ), ] ); // Button Link. $this->add_control( 'button_link', [ 'label' => esc_html__( 'Button Link', 'copy-the-code' ), 'type' => Controls_Manager::URL, 'default' => [ 'url' => '#', ], ] ); // Link target. $this->add_control( 'link_target', [ 'label' => esc_html__( 'Link Target', 'copy-the-code' ), 'type' => Controls_Manager::SELECT, 'default' => '_blank', 'options' => [ '_self' => esc_html__( 'Self', 'copy-the-code' ), '_blank' => esc_html__( 'Blank', 'copy-the-code' ), ], ] ); $this->end_controls_section(); $this->start_controls_section( 'details_section', [ 'label' => esc_html__( 'Details', 'copy-the-code' ), ] ); // Details. $this->add_control( 'details', [ 'label' => esc_html__( 'Details', 'copy-the-code' ), 'type' => Controls_Manager::WYSIWYG, 'default' => '