__( 'Apple', 'aw_elementor' ), 'behance' => __( 'Behance', 'aw_elementor' ), 'bitbucket' => __( 'BitBucket', 'aw_elementor' ), 'codepen' => __( 'CodePen', 'aw_elementor' ), 'delicious' => __( 'Delicious', 'aw_elementor' ), 'deviantart' => __( 'DeviantArt', 'aw_elementor' ), 'digg' => __( 'Digg', 'aw_elementor' ), 'dribbble' => __( 'Dribbble', 'aw_elementor' ), 'email' => __( 'Email', 'aw_elementor' ), 'facebook' => __( 'Facebook', 'aw_elementor' ), 'flickr' => __( 'Flicker', 'aw_elementor' ), 'foursquare' => __( 'FourSquare', 'aw_elementor' ), 'github' => __( 'Github', 'aw_elementor' ), 'houzz' => __( 'Houzz', 'aw_elementor' ), 'instagram' => __( 'Instagram', 'aw_elementor' ), 'jsfiddle' => __( 'JS Fiddle', 'aw_elementor' ), 'linkedin' => __( 'LinkedIn', 'aw_elementor' ), 'medium' => __( 'Medium', 'aw_elementor' ), 'pinterest' => __( 'Pinterest', 'aw_elementor' ), 'product-hunt' => __( 'Product Hunt', 'aw_elementor' ), 'reddit' => __( 'Reddit', 'aw_elementor' ), 'slideshare' => __( 'Slide Share', 'aw_elementor' ), 'snapchat' => __( 'Snapchat', 'aw_elementor' ), 'soundcloud' => __( 'SoundCloud', 'aw_elementor' ), 'spotify' => __( 'Spotify', 'aw_elementor' ), 'stack-overflow' => __( 'StackOverflow', 'aw_elementor' ), 'tripadvisor' => __( 'TripAdvisor', 'aw_elementor' ), 'tumblr' => __( 'Tumblr', 'aw_elementor' ), 'twitch' => __( 'Twitch', 'aw_elementor' ), 'twitter' => __( 'Twitter', 'aw_elementor' ), 'vimeo' => __( 'Vimeo', 'aw_elementor' ), 'vk' => __( 'VK', 'aw_elementor' ), 'website' => __( 'Website', 'aw_elementor' ), 'whatsapp' => __( 'WhatsApp', 'aw_elementor' ), 'wordpress' => __( 'WordPress', 'aw_elementor' ), 'xing' => __( 'Xing', 'aw_elementor' ), 'yelp' => __( 'Yelp', 'aw_elementor' ), 'youtube' => __( 'YouTube', 'aw_elementor' ), ]; } protected function _register_controls() { $this->start_controls_section( '_section_info', [ 'label' => __( 'Notifications', ' aw_elementor' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); /*------------------------------------- Visual Style -------------------------------------*/ $this->add_control( 'style', [ 'label' => __( 'Visual Style', ' aw_elementor' ), 'type' => Controls_Manager::SELECT, 'default' => 'style1', 'options' => [ 'style1' => __( 'Style 1', ' aw_elementor' ), 'style2' => __( 'Style 2', ' aw_elementor' ), ], ] ); $this->add_control( 'title', [ 'label' => __( 'Title', ' aw_elementor' ), 'type' => Controls_Manager::TEXT, 'placeholder' => __( 'Enter your pre title', ' aw_elementor' ), 'default' => __( 'Success', ' aw_elementor' ), 'label_block' => true, 'condition' => [ 'style' => [ 'style1'], ], ] ); $this->add_control( 'sub_title', [ 'label' => __( 'Content', ' aw_elementor' ), 'type' => Controls_Manager::TEXTAREA, 'placeholder' => __( 'Enter your sub title', ' aw_elementor' ), 'default' => __( 'Anyone with access can view your invited visitors.', ' aw_elementor' ), 'label_block' => true, 'condition' => [ 'style' => [ 'style1'], ], ] ); $this->add_control( 'text_content', [ 'label' => __( 'Content', ' aw_elementor' ), 'type' => Controls_Manager::TEXTAREA, 'placeholder' => __( 'Enter your sub title', ' aw_elementor' ), 'default' => __( 'Do you know that you can assign status and relation to a company right in the visit list?', ' aw_elementor' ), 'label_block' => true, 'condition' => [ 'style' => [ 'style2'], ], ] ); $this->add_control( 'icon', [ 'label' => __( 'Icon', 'aw_elementor' ), 'type' => Controls_Manager::ICON, 'label_block' => true, 'default' => 'fa fa-exclamation-triangle', 'condition' => [ 'style' => [ 'style1','style2'], ], ] ); $this->end_controls_section(); $this->start_controls_section( '_section_btns', [ 'label' => __( 'Button', ' aw_elementor' ), 'tab' => Controls_Manager::TAB_CONTENT, 'condition' => [ 'style' => ['style2'], ], ] ); $this->add_control( 'button_text', [ 'label' => __( 'Button Text', 'aw_elementor' ), 'type' => Controls_Manager::TEXT, 'default' => __( 'Interested', 'aw_elementor' ), 'placeholder' => __( 'Type button text here', 'aw_elementor' ), 'label_block' => true, ] ); $this->add_control( 'button_link', [ 'label' => __( 'Link', 'aw_elementor' ), 'type' => Controls_Manager::URL, 'placeholder' => __( 'https://example.com/', 'aw_elementor' ), ] ); $this->add_control( 'button_text2', [ 'label' => __( 'Button Text Close', 'aw_elementor' ), 'type' => Controls_Manager::TEXT, 'default' => __( 'No, not interested', 'aw_elementor' ), 'placeholder' => __( 'Type button text here', 'aw_elementor' ), 'label_block' => true, ] ); $this->end_controls_section(); $this->start_controls_section( '_section_style_common', [ 'label' => __( 'Common Style', ' aw_elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'padding', [ 'label' => __( 'Padding', ' aw_elementor'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%'], 'selectors' => [ '{{WRAPPER}} .awe-main' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'margin', [ 'label' => __( 'Margin', ' aw_elementor'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%'], 'selectors' => [ '{{WRAPPER}} .awe-main' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'p_background', 'label' => __( 'Background Color', ' aw_elementor' ), 'types' => [ 'classic', 'gradient'], 'selector' => '{{WRAPPER}} .awe-main', ] ); $this->add_group_control( Group_Control_Border:: get_type(), [ 'name' => 'links_border', 'selector' => '{{WRAPPER}} .awe-main' ] ); $this->add_responsive_control( 'border_radius', [ 'label' => __( 'Border Radius', ' aw_elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%' ], 'selectors' => [ '{{WRAPPER}} .awe-main' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); $this->start_controls_section( '_section_border_right', [ 'label' => __( 'Border Right', ' aw_elementor' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'style' => ['style1'], ], ] ); $this->add_responsive_control( 'border_right_color', [ 'label' => __( 'Border Right bg Color ', ' aw_elementor' ), 'type' => Controls_Manager::COLOR, 'size_units' => [ 'px', '%' ], 'selectors' => [ '{{WRAPPER}} .noti--green::before' =>'background-color: {{VALUE}} !important', ], ] ); $this->add_responsive_control( 'border_right_width', [ 'label' => __( 'Border Right Width', ' aw_elementor' ), 'type' => Controls_Manager::NUMBER, 'size_units' => [ 'px', '%' ], 'selectors' => [ '{{WRAPPER}} .noti--green::before' =>'width: {{VALUE}}px !important', ], ] ); $this->end_controls_section(); $this->start_controls_section( '_section_style_title', [ 'label' => __( 'Title Style', ' aw_elementor' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'style' => ['style1'], ], ] ); $this->add_responsive_control( 'title_color', [ 'label' => __( 'Title Color', ' aw_elementor' ), 'type' => Controls_Manager::COLOR, 'size_units' => [ 'px', '%' ], 'selectors' => [ '{{WRAPPER}} .awe-alert-title' =>'color: {{VALUE}} !important', ] ] ); $this->add_group_control( Group_Control_Typography:: get_type(), [ 'name' => 'title_typography', 'label' => __( 'Title Typography', ' aw_elementor' ), 'selector' => '{{WRAPPER}} .awe-alert-title', 'scheme' => Scheme_Typography::TYPOGRAPHY_4, ] ); $this->end_controls_section(); $this->start_controls_section( '_section_style_content', [ 'label' => __( 'Content Style', ' aw_elementor' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'style' => ['style1'], ], ] ); $this->add_responsive_control( 'content_color', [ 'label' => __( 'Content Color', ' aw_elementor' ), 'type' => Controls_Manager::COLOR, 'size_units' => [ 'px', '%' ], 'selectors' => [ '{{WRAPPER}} .awe-alert-subtitle' =>'color: {{VALUE}} !important', ] ] ); $this->add_group_control( Group_Control_Typography:: get_type(), [ 'name' => 'content_typography', 'label' => __( 'Title Typography', ' aw_elementor' ), 'selector' => '{{WRAPPER}} .awe-alert-subtitle', 'scheme' => Scheme_Typography::TYPOGRAPHY_4, ] ); $this->end_controls_section(); $this->start_controls_section( '_section_style_text', [ 'label' => __( 'Content Style', ' aw_elementor' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'style' => ['style2'], ], ] ); $this->add_responsive_control( 'text_color', [ 'label' => __( 'Content Color', ' aw_elementor' ), 'type' => Controls_Manager::COLOR, 'size_units' => [ 'px', '%' ], 'selectors' => [ '{{WRAPPER}} .awe-noti-textcontent' =>'color: {{VALUE}} !important', ] ] ); $this->add_group_control( Group_Control_Typography:: get_type(), [ 'name' => 'text_typography', 'label' => __( 'Title Typography', ' aw_elementor' ), 'selector' => '{{WRAPPER}} .awe-noti-textcontent', 'scheme' => Scheme_Typography::TYPOGRAPHY_4, ] ); $this->end_controls_section(); $this->start_controls_section( '_section_style_icon', [ 'label' => __( 'Icon Style', ' aw_elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'icon_color', [ 'label' => __( 'Icon Color', ' aw_elementor' ), 'type' => Controls_Manager::COLOR, 'size_units' => [ 'px', '%' ], 'default' => '#61ce70', 'selectors' => [ '{{WRAPPER}} .awe-icon i' =>'color: {{VALUE}} !important', ] ] ); $this->add_responsive_control( 'icon_bg_color', [ 'label' => __( 'Icon BG Color', ' aw_elementor' ), 'type' => Controls_Manager::COLOR, 'size_units' => [ 'px', '%' ], 'selectors' => [ '{{WRAPPER}} .awe-icon' =>'background: {{VALUE}} !important', ], 'condition' => [ 'style' => ['style2'], ], ] ); $this->end_controls_section(); $this->start_controls_section( '_section_style_cicon', [ 'label' => __( 'Close Icon Style', ' aw_elementor' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'style' => ['style1'], ], ] ); $this->add_responsive_control( 'cicon_color', [ 'label' => __( 'Close Icon Color', ' aw_elementor' ), 'type' => Controls_Manager::COLOR, 'size_units' => [ 'px', '%' ], 'default' => '#61ce70', 'selectors' => [ '{{WRAPPER}} .noti__close' =>'color: {{VALUE}} !important', ] ] ); $this->end_controls_section(); $this->start_controls_section( '_section_style_button', [ 'label' => __( 'Button Style', ' aw_elementor' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'style' => ['style2'], ], ] ); $this->add_group_control( Group_Control_Border:: get_type(), [ 'name' => 'links_borders', 'selector' => '{{WRAPPER}} .Message-button' ] ); $this->add_responsive_control( 'links_border_radius', [ 'label' => __( 'Border Radius', 'aw_elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%' ], 'selectors' => [ '{{WRAPPER}} .Message-button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->start_controls_tabs( '_tab_links_colors' ); $this->start_controls_tab( '_tab_links_normal', [ 'label' => __( 'Normal', 'aw_elementor' ), ] ); $this->add_control( 'links_color', [ 'label' => __( 'Text Color', 'aw_elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .Message-button' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'links_bg_color', [ 'label' => __( 'Background Color', 'aw_elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .Message-button' => 'background-color: {{VALUE}} !important', ], ] ); $this->end_controls_tab(); $this->start_controls_tab( '_tab_links_hover', [ 'label' => __( 'Hover', 'aw_elementor' ), ] ); $this->add_control( 'links_hover_color', [ 'label' => __( 'Text Color', 'aw_elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .Message-body a:hover, {{WRAPPER}} .Message-body a:focus' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'links_hover_bg_color', [ 'label' => __( 'Background Color', 'aw_elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .Message-body a:hover, {{WRAPPER}} .Message-body a:focus' => 'background-color: {{VALUE}} !important', ], ] ); $this->add_control( 'links_hover_border_color', [ 'label' => __( 'Border Color', 'aw_elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .Message-body a:hover, {{WRAPPER}} .Message-body a:focus' => 'border-color: {{VALUE}};', ], 'condition' => [ 'links_border_border!' => '', ] ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); } protected function render() { require AWE_PATH . '/modules/notifications/template/view.php'; } // protected function _content_template() { // require AWE_PATH . '/modules/notifications/template/content-template.php'; // } }