first commit
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
namespace ElementorPro\Modules\FloatingButtons\Widgets;
|
||||
|
||||
use Elementor\Modules\FloatingButtons\Base\Widget_Contact_Button_Base;
|
||||
use ElementorPro\Modules\FloatingButtons\Classes\Render\Contact_Buttons_Var_1_Render;
|
||||
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
class Contact_Buttons_Var_1 extends Widget_Contact_Button_Base {
|
||||
|
||||
public static function get_configuration() {
|
||||
$config = parent::get_configuration();
|
||||
$config['style']['has_platform_colors'] = false;
|
||||
$config['content']['chat_button_section']['has_platform'] = false;
|
||||
$config['content']['chat_button_section']['has_icon'] = true;
|
||||
$config['content']['message_bubble_section']['has_typing_animation'] = false;
|
||||
$config['style']['message_bubble_section']['has_chat_background'] = false;
|
||||
$config['style']['send_button_section']['has_typography'] = false;
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
public function get_name(): string {
|
||||
return 'contact-buttons-var-1';
|
||||
}
|
||||
|
||||
public function get_title(): string {
|
||||
return esc_html__( 'Multi Chat', 'elementor-pro' );
|
||||
}
|
||||
|
||||
protected function add_content_tab(): void {
|
||||
$this->add_chat_button_section();
|
||||
|
||||
$this->add_top_bar_section();
|
||||
|
||||
$this->add_message_bubble_section();
|
||||
|
||||
$this->add_contact_section();
|
||||
}
|
||||
|
||||
protected function add_style_tab(): void {
|
||||
$this->add_style_chat_button_section();
|
||||
|
||||
$this->add_style_top_bar_section();
|
||||
|
||||
$this->add_style_message_bubble_section();
|
||||
|
||||
$this->add_style_contact_section();
|
||||
|
||||
$this->add_style_chat_box_section();
|
||||
}
|
||||
|
||||
public function render(): void {
|
||||
$render_strategy = new Contact_Buttons_Var_1_Render( $this );
|
||||
|
||||
$render_strategy->render();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
namespace ElementorPro\Modules\FloatingButtons\Widgets;
|
||||
|
||||
use Elementor\Core\Base\Providers\Social_Network_Provider;
|
||||
use Elementor\Modules\FloatingButtons\Base\Widget_Contact_Button_Base;
|
||||
use ElementorPro\Modules\FloatingButtons\Classes\Render\Contact_Buttons_Var_10_Render;
|
||||
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
class Contact_Buttons_Var_10 extends Widget_Contact_Button_Base {
|
||||
|
||||
public static function get_configuration() {
|
||||
$config = parent::get_configuration();
|
||||
$config['content']['contact_section']['has_cta_text'] = false;
|
||||
$config['content']['contact_section']['repeater']['has_title'] = true;
|
||||
$config['content']['contact_section']['platform']['limit'] = null;
|
||||
$config['content']['contact_section']['platform']['group-1'] = [
|
||||
Social_Network_Provider::EMAIL,
|
||||
Social_Network_Provider::TELEPHONE,
|
||||
Social_Network_Provider::SMS,
|
||||
Social_Network_Provider::WHATSAPP,
|
||||
Social_Network_Provider::SKYPE,
|
||||
Social_Network_Provider::MESSENGER,
|
||||
Social_Network_Provider::VIBER,
|
||||
Social_Network_Provider::WAZE,
|
||||
Social_Network_Provider::URL,
|
||||
];
|
||||
$config['style']['contact_section']['has_buttons_size'] = true;
|
||||
$config['style']['contact_section']['has_hover_animation'] = false;
|
||||
$config['style']['contact_section']['has_buttons_spacing'] = true;
|
||||
$config['style']['contact_section']['has_box_shadow'] = true;
|
||||
$config['style']['contact_section']['has_padding'] = true;
|
||||
$config['style']['contact_section']['has_button_corners'] = true;
|
||||
$config['style']['contact_section']['has_typography'] = true;
|
||||
$config['style']['contact_section']['has_text_color'] = true;
|
||||
$config['style']['contact_section']['has_bg_color'] = true;
|
||||
$config['style']['contact_section']['has_tabs'] = false;
|
||||
$config['style']['contact_section']['has_hover_transition_duration'] = true;
|
||||
$config['style']['contact_section']['icon_color_label'] = esc_html__( 'Text and Icon Color', 'elementor-pro' );
|
||||
$config['advanced']['horizontal_position_default'] = 'start';
|
||||
$config['style']['send_button_section']['has_typography'] = false;
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
public function get_name(): string {
|
||||
return 'contact-buttons-var-10';
|
||||
}
|
||||
|
||||
public function get_title(): string {
|
||||
return esc_html__( 'Interactive', 'elementor-pro' );
|
||||
}
|
||||
|
||||
protected function add_content_tab(): void {
|
||||
$this->add_contact_section();
|
||||
}
|
||||
|
||||
protected function add_style_tab(): void {
|
||||
$this->add_style_contact_section();
|
||||
}
|
||||
|
||||
public function render(): void {
|
||||
$render_strategy = new Contact_Buttons_Var_10_Render( $this );
|
||||
|
||||
$render_strategy->render();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
<?php
|
||||
|
||||
namespace ElementorPro\Modules\FloatingButtons\Widgets;
|
||||
|
||||
use Elementor\Core\Base\Providers\Social_Network_Provider;
|
||||
use Elementor\Modules\FloatingButtons\Base\Widget_Contact_Button_Base;
|
||||
use ElementorPro\Modules\FloatingButtons\Classes\Render\Contact_Buttons_Var_3_Render;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
class Contact_Buttons_Var_3 extends Widget_Contact_Button_Base {
|
||||
|
||||
public static function get_configuration() {
|
||||
$config = parent::get_configuration();
|
||||
$config['style']['has_platform_colors'] = false;
|
||||
$config['content']['chat_button_section']['section_name'] = esc_html__( 'Info Button', 'elementor-pro' );
|
||||
$config['content']['chat_button_section']['has_platform'] = false;
|
||||
$config['content']['chat_button_section']['has_notification_dot'] = false;
|
||||
$config['content']['chat_button_section']['has_active_tab'] = true;
|
||||
$config['content']['chat_button_section']['has_icon'] = true;
|
||||
$config['content']['chat_button_section']['icon_default'] = [
|
||||
'value' => 'fas fa-info',
|
||||
'library' => 'fa-solid',
|
||||
];
|
||||
$config['content']['chat_button_section']['icons_recommended'] = [
|
||||
'fa-solid' => [
|
||||
'info',
|
||||
'info-circle',
|
||||
'question',
|
||||
'question-circle',
|
||||
],
|
||||
];
|
||||
$config['content']['top_bar_section']['section_name'] = esc_html__( 'Heading', 'elementor-pro' );
|
||||
$config['content']['top_bar_section']['title']['label'] = esc_html__( 'Greeting', 'elementor-pro' );
|
||||
$config['content']['top_bar_section']['title']['placeholder'] = esc_html__( 'Enter your text here', 'elementor-pro' );
|
||||
$config['content']['top_bar_section']['title']['dynamic'] = true;
|
||||
$config['content']['top_bar_section']['title']['ai'] = true;
|
||||
$config['content']['top_bar_section']['title']['label_block'] = true;
|
||||
$config['content']['top_bar_section']['title']['default'] = esc_html__( 'Need help?', 'elementor-pro' );
|
||||
$config['content']['top_bar_section']['has_image'] = false;
|
||||
$config['content']['top_bar_section']['has_active_dot'] = false;
|
||||
$config['content']['top_bar_section']['has_subtitle'] = false;
|
||||
$config['style']['top_bar_section']['has_title_heading'] = false;
|
||||
$config['style']['top_bar_section']['has_close_button_heading'] = false;
|
||||
$config['style']['top_bar_section']['has_background'] = false;
|
||||
|
||||
$config['content']['contact_section']['section_name'] = esc_html__( 'Info Links', 'elementor-pro' );
|
||||
$config['content']['contact_section']['has_cta_text'] = false;
|
||||
$config['content']['contact_section']['platform']['limit'] = null;
|
||||
$config['content']['contact_section']['repeater']['has_tooltip'] = true;
|
||||
$config['content']['contact_section']['repeater']['tooltip_default'] = esc_html__( 'Sample Link Text', 'elementor-pro' );
|
||||
$config['content']['contact_section']['repeater']['tooltip_placeholder'] = esc_html__( 'Enter your text here', 'elementor-pro' );
|
||||
$config['content']['contact_section']['platform']['group-1'] = [
|
||||
Social_Network_Provider::EMAIL,
|
||||
Social_Network_Provider::TELEPHONE,
|
||||
Social_Network_Provider::SMS,
|
||||
Social_Network_Provider::WHATSAPP,
|
||||
Social_Network_Provider::SKYPE,
|
||||
Social_Network_Provider::MESSENGER,
|
||||
Social_Network_Provider::VIBER,
|
||||
Social_Network_Provider::WAZE,
|
||||
Social_Network_Provider::URL,
|
||||
];
|
||||
$config['content']['contact_section']['default'] = [
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::TELEPHONE,
|
||||
],
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::MESSENGER,
|
||||
],
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::URL,
|
||||
],
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::WAZE,
|
||||
],
|
||||
];
|
||||
|
||||
$config['style']['chat_box_section']['section_name'] = esc_html__( 'Box', 'elementor-pro' );
|
||||
$config['style']['chat_box_section']['has_width'] = false;
|
||||
$config['style']['chat_box_section']['has_padding'] = true;
|
||||
|
||||
$config['content']['send_button_section']['section_name'] = esc_html__( 'CTA Button', 'elementor-pro' );
|
||||
$config['content']['send_button_section']['text']['default'] = esc_html__( 'Shop Now', 'elementor-pro' );
|
||||
$config['content']['send_button_section']['has_link'] = true;
|
||||
$config['style']['send_button_section']['has_platform_colors'] = false;
|
||||
$config['style']['send_button_section']['has_icon_color'] = false;
|
||||
$config['style']['send_button_section']['has_background_color'] = true;
|
||||
$config['style']['send_button_section']['has_text_color'] = true;
|
||||
$config['style']['send_button_section']['typography_selector'] = '{{WRAPPER}} .e-contact-buttons__cta-button';
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
public function get_name(): string {
|
||||
return 'contact-buttons-var-3';
|
||||
}
|
||||
|
||||
public function get_title(): string {
|
||||
return esc_html__( 'Info Button Box', 'elementor-pro' );
|
||||
}
|
||||
|
||||
protected function add_content_tab(): void {
|
||||
$this->add_chat_button_section();
|
||||
|
||||
$this->add_top_bar_section();
|
||||
|
||||
$this->add_contact_section();
|
||||
|
||||
$this->add_send_button_section();
|
||||
}
|
||||
|
||||
protected function add_style_tab(): void {
|
||||
$this->add_style_chat_button_section();
|
||||
|
||||
$this->add_style_top_bar_section();
|
||||
|
||||
$this->add_style_info_links_section();
|
||||
|
||||
$this->add_style_send_button_section();
|
||||
|
||||
$this->add_style_chat_box_section();
|
||||
}
|
||||
|
||||
public function render(): void {
|
||||
$render_strategy = new Contact_Buttons_Var_3_Render( $this );
|
||||
|
||||
$render_strategy->render();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
namespace ElementorPro\Modules\FloatingButtons\Widgets;
|
||||
|
||||
use Elementor\Core\Base\Providers\Social_Network_Provider;
|
||||
use Elementor\Modules\FloatingButtons\Base\Widget_Contact_Button_Base;
|
||||
use ElementorPro\Modules\FloatingButtons\Classes\Render\Contact_Buttons_Var_4_Render;
|
||||
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
class Contact_Buttons_Var_4 extends Widget_Contact_Button_Base {
|
||||
|
||||
public static function get_configuration() {
|
||||
$config = parent::get_configuration();
|
||||
$config['style']['has_platform_colors'] = false;
|
||||
$config['content']['chat_button_section']['section_name'] = esc_html__( 'Menu Button', 'elementor-pro' );
|
||||
$config['content']['chat_button_section']['has_platform'] = false;
|
||||
$config['content']['chat_button_section']['has_icon'] = true;
|
||||
$config['content']['chat_button_section']['icon_default'] = [
|
||||
'value' => 'fas fa-ellipsis-v',
|
||||
'library' => 'fa-solid',
|
||||
];
|
||||
$config['content']['chat_button_section']['has_notification_dot'] = false;
|
||||
$config['content']['chat_button_section']['has_active_tab'] = true;
|
||||
$config['content']['contact_section']['platform']['group-1'] = [
|
||||
Social_Network_Provider::EMAIL,
|
||||
Social_Network_Provider::TELEPHONE,
|
||||
Social_Network_Provider::SMS,
|
||||
Social_Network_Provider::WHATSAPP,
|
||||
Social_Network_Provider::SKYPE,
|
||||
Social_Network_Provider::MESSENGER,
|
||||
Social_Network_Provider::VIBER,
|
||||
Social_Network_Provider::WAZE,
|
||||
Social_Network_Provider::URL,
|
||||
];
|
||||
$config['content']['contact_section']['default'] = [
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::WHATSAPP,
|
||||
],
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::MESSENGER,
|
||||
],
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::EMAIL,
|
||||
],
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::TELEPHONE,
|
||||
],
|
||||
];
|
||||
$config['content']['contact_section']['has_cta_text'] = false;
|
||||
$config['content']['contact_section']['repeater']['has_tooltip'] = true;
|
||||
$config['content']['contact_section']['repeater']['tooltip_label'] = esc_html__( 'Tooltip', 'elementor-pro' );
|
||||
$config['content']['contact_section']['platform']['limit'] = null;
|
||||
$config['style']['contact_section']['has_buttons_heading'] = false;
|
||||
$config['style']['contact_section']['has_buttons_size'] = false;
|
||||
$config['style']['contact_section']['has_box_shadow'] = true;
|
||||
$config['style']['contact_section']['has_buttons_spacing'] = true;
|
||||
$config['style']['contact_section']['has_hover_animation'] = false;
|
||||
$config['style']['contact_section']['has_chat_box_animation'] = true;
|
||||
$config['style']['send_button_section']['has_typography'] = false;
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
public function get_name(): string {
|
||||
return 'contact-buttons-var-4';
|
||||
}
|
||||
|
||||
public function get_title(): string {
|
||||
return esc_html__( 'Vertical Links', 'elementor-pro' );
|
||||
}
|
||||
|
||||
protected function add_content_tab(): void {
|
||||
$this->add_chat_button_section();
|
||||
|
||||
$this->add_contact_section();
|
||||
}
|
||||
|
||||
protected function add_style_tab(): void {
|
||||
$this->add_style_chat_button_section();
|
||||
|
||||
$this->add_style_contact_section();
|
||||
}
|
||||
|
||||
public function render(): void {
|
||||
$render_strategy = new Contact_Buttons_Var_4_Render( $this );
|
||||
|
||||
$render_strategy->render();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
namespace ElementorPro\Modules\FloatingButtons\Widgets;
|
||||
|
||||
use Elementor\Core\Base\Providers\Social_Network_Provider;
|
||||
use Elementor\Modules\FloatingButtons\Base\Widget_Contact_Button_Base;
|
||||
use ElementorPro\Modules\FloatingButtons\Classes\Render\Contact_Buttons_Var_5_Render;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
class Contact_Buttons_Var_5 extends Widget_Contact_Button_Base {
|
||||
|
||||
public static function get_configuration() {
|
||||
$config = parent::get_configuration();
|
||||
$config['content']['chat_button_section']['has_notification_dot'] = true;
|
||||
$config['content']['chat_button_section']['has_notification_dot_default_enabled'] = false;
|
||||
$config['content']['chat_button_section']['platform']['group'] = [
|
||||
Social_Network_Provider::EMAIL,
|
||||
Social_Network_Provider::TELEPHONE,
|
||||
Social_Network_Provider::SMS,
|
||||
Social_Network_Provider::WHATSAPP,
|
||||
Social_Network_Provider::SKYPE,
|
||||
Social_Network_Provider::MESSENGER,
|
||||
Social_Network_Provider::VIBER,
|
||||
Social_Network_Provider::WAZE,
|
||||
];
|
||||
$config['style']['send_button_section']['has_typography'] = false;
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
public function get_name(): string {
|
||||
return 'contact-buttons-var-5';
|
||||
}
|
||||
|
||||
public function get_title(): string {
|
||||
return esc_html__( 'Classic', 'elementor-pro' );
|
||||
}
|
||||
|
||||
protected function add_content_tab(): void {
|
||||
$this->add_chat_button_section();
|
||||
}
|
||||
|
||||
protected function add_style_tab(): void {
|
||||
$this->add_style_chat_button_section();
|
||||
}
|
||||
|
||||
public function render(): void {
|
||||
$render_strategy = new Contact_Buttons_Var_5_Render( $this );
|
||||
|
||||
$render_strategy->render();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
namespace ElementorPro\Modules\FloatingButtons\Widgets;
|
||||
|
||||
use Elementor\Core\Base\Providers\Social_Network_Provider;
|
||||
use Elementor\Modules\FloatingButtons\Base\Widget_Contact_Button_Base;
|
||||
use ElementorPro\Modules\FloatingButtons\Classes\Render\Contact_Buttons_Var_6_Render;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
class Contact_Buttons_Var_6 extends Widget_Contact_Button_Base {
|
||||
|
||||
public static function get_configuration() {
|
||||
$config = parent::get_configuration();
|
||||
$config['style']['has_platform_colors'] = false;
|
||||
$config['content']['contact_section']['section_name'] = esc_html__( 'Contact Buttons', 'elementor-pro' );
|
||||
$config['content']['contact_section']['has_cta_text'] = false;
|
||||
$config['content']['contact_section']['platform']['limit'] = 4;
|
||||
$config['content']['contact_section']['platform']['min_items'] = 2;
|
||||
$config['content']['contact_section']['platform']['group-1'] = [
|
||||
Social_Network_Provider::EMAIL,
|
||||
Social_Network_Provider::TELEPHONE,
|
||||
Social_Network_Provider::SMS,
|
||||
Social_Network_Provider::WHATSAPP,
|
||||
Social_Network_Provider::SKYPE,
|
||||
Social_Network_Provider::MESSENGER,
|
||||
Social_Network_Provider::VIBER,
|
||||
Social_Network_Provider::WAZE,
|
||||
];
|
||||
$config['content']['contact_section']['default'] = [
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::TELEPHONE,
|
||||
],
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::EMAIL,
|
||||
],
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::WHATSAPP,
|
||||
],
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::WAZE,
|
||||
],
|
||||
];
|
||||
$config['style']['contact_section']['has_buttons_heading'] = true;
|
||||
$config['style']['contact_section']['buttons_heading_label'] = esc_html__( 'Icons', 'elementor-pro' );
|
||||
$config['style']['contact_section']['has_icon_bg_color'] = false;
|
||||
$config['style']['contact_section']['has_button_bar'] = true;
|
||||
$config['advanced']['horizontal_position_default'] = 'center';
|
||||
$config['style']['send_button_section']['has_typography'] = false;
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
public function get_name(): string {
|
||||
return 'contact-buttons-var-6';
|
||||
}
|
||||
|
||||
public function get_title(): string {
|
||||
return esc_html__( 'Quick Access Bar', 'elementor-pro' );
|
||||
}
|
||||
|
||||
protected function add_content_tab(): void {
|
||||
$this->add_contact_section();
|
||||
}
|
||||
|
||||
protected function add_style_tab(): void {
|
||||
$this->add_style_contact_section();
|
||||
}
|
||||
|
||||
public function render(): void {
|
||||
$render_strategy = new Contact_Buttons_Var_6_Render( $this );
|
||||
|
||||
$render_strategy->render();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
namespace ElementorPro\Modules\FloatingButtons\Widgets;
|
||||
|
||||
use Elementor\Core\Base\Providers\Social_Network_Provider;
|
||||
use Elementor\Modules\FloatingButtons\Base\Widget_Contact_Button_Base;
|
||||
use ElementorPro\Modules\FloatingButtons\Classes\Render\Contact_Buttons_Var_7_Render;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
class Contact_Buttons_Var_7 extends Widget_Contact_Button_Base {
|
||||
|
||||
public static function get_configuration() {
|
||||
$config = parent::get_configuration();
|
||||
$config['content']['chat_button_section']['has_notification_dot'] = false;
|
||||
$config['content']['chat_button_section']['platform']['group'] = [
|
||||
Social_Network_Provider::EMAIL,
|
||||
Social_Network_Provider::TELEPHONE,
|
||||
Social_Network_Provider::SMS,
|
||||
Social_Network_Provider::WHATSAPP,
|
||||
Social_Network_Provider::SKYPE,
|
||||
Social_Network_Provider::MESSENGER,
|
||||
Social_Network_Provider::VIBER,
|
||||
Social_Network_Provider::WAZE,
|
||||
Social_Network_Provider::URL,
|
||||
];
|
||||
$config['content']['chat_button_section']['platform']['default'] = Social_Network_Provider::TELEPHONE;
|
||||
$config['content']['chat_button_section']['defaults']['number'] = esc_html__( '+1.212.555.7979', 'elementor-pro' );
|
||||
$config['content']['chat_button_section']['has_display_text'] = true;
|
||||
$config['style']['chat_button_section']['has_entrance_animation'] = false;
|
||||
$config['style']['chat_button_section']['has_box_shadow'] = false;
|
||||
$config['style']['chat_button_section']['has_padding'] = true;
|
||||
$config['style']['chat_button_section']['has_button_size'] = false;
|
||||
$config['style']['chat_button_section']['has_typography'] = true;
|
||||
$config['style']['chat_button_section']['has_icon_position'] = true;
|
||||
$config['style']['chat_button_section']['has_icon_spacing'] = true;
|
||||
$config['advanced']['has_mobile_full_width'] = true;
|
||||
$config['style']['send_button_section']['has_typography'] = false;
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
public function get_name(): string {
|
||||
return 'contact-buttons-var-7';
|
||||
}
|
||||
|
||||
public function get_title(): string {
|
||||
return esc_html__( 'Mobile Bar', 'elementor-pro' );
|
||||
}
|
||||
|
||||
protected function add_content_tab(): void {
|
||||
$this->add_chat_button_section();
|
||||
}
|
||||
|
||||
protected function add_style_tab(): void {
|
||||
$this->add_style_chat_button_section();
|
||||
}
|
||||
|
||||
public function render(): void {
|
||||
$render_strategy = new Contact_Buttons_Var_7_Render( $this );
|
||||
|
||||
$render_strategy->render();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
<?php
|
||||
|
||||
namespace ElementorPro\Modules\FloatingButtons\Widgets;
|
||||
|
||||
use Elementor\Core\Base\Providers\Social_Network_Provider;
|
||||
use Elementor\Modules\FloatingButtons\Base\Widget_Contact_Button_Base;
|
||||
use ElementorPro\Modules\FloatingButtons\Classes\Render\Contact_Buttons_Var_8_Render;
|
||||
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
class Contact_Buttons_Var_8 extends Widget_Contact_Button_Base {
|
||||
|
||||
public static function get_configuration() {
|
||||
$config = parent::get_configuration();
|
||||
$config['style']['has_platform_colors'] = false;
|
||||
$config['content']['chat_button_section']['section_name'] = esc_html__( 'Floating Button', 'elementor-pro' );
|
||||
$config['content']['chat_button_section']['has_platform'] = false;
|
||||
$config['content']['chat_button_section']['has_icon'] = true;
|
||||
$config['content']['chat_button_section']['icon_default'] = [
|
||||
'value' => 'fas fa-life-ring',
|
||||
'library' => 'fa-solid',
|
||||
];
|
||||
$config['content']['chat_button_section']['icons_recommended'] = [
|
||||
'fa-solid' => [
|
||||
'life-ring',
|
||||
'info',
|
||||
'question',
|
||||
],
|
||||
'fa-regular' => [
|
||||
'info',
|
||||
'question',
|
||||
'comment-alt',
|
||||
],
|
||||
];
|
||||
$config['content']['chat_button_section']['has_notification_dot'] = false;
|
||||
$config['content']['chat_button_section']['has_active_tab'] = true;
|
||||
|
||||
$config['content']['top_bar_section']['title']['label'] = esc_html__( 'Greeting', 'elementor-pro' );
|
||||
$config['content']['top_bar_section']['title']['default'] = __( 'We\'re here for you', 'elementor-pro' );
|
||||
$config['content']['top_bar_section']['title']['placeholder'] = esc_html__( 'Enter your text here', 'elementor-pro' );
|
||||
$config['content']['top_bar_section']['title']['dynamic'] = true;
|
||||
$config['content']['top_bar_section']['title']['ai'] = true;
|
||||
$config['content']['top_bar_section']['title']['label_block'] = true;
|
||||
$config['content']['top_bar_section']['subtitle']['label'] = esc_html__( 'Call to Action', 'elementor-pro' );
|
||||
$config['content']['top_bar_section']['subtitle']['default'] = esc_html__( 'Explore our resources', 'elementor-pro' );
|
||||
$config['content']['top_bar_section']['subtitle']['placeholder'] = esc_html__( 'Enter your text here', 'elementor-pro' );
|
||||
$config['content']['top_bar_section']['subtitle']['dynamic'] = true;
|
||||
$config['content']['top_bar_section']['subtitle']['ai'] = true;
|
||||
$config['content']['top_bar_section']['subtitle']['label_block'] = true;
|
||||
$config['content']['top_bar_section']['has_image'] = false;
|
||||
$config['content']['top_bar_section']['has_active_dot'] = false;
|
||||
$config['style']['top_bar_section']['title_heading_label'] = esc_html__( 'Greeting', 'elementor-pro' );
|
||||
$config['style']['top_bar_section']['subtitle_heading_label'] = esc_html__( 'Call to Action', 'elementor-pro' );
|
||||
$config['style']['top_bar_section']['has_style_close_button'] = false;
|
||||
|
||||
$config['content']['contact_section']['platform']['limit'] = null;
|
||||
$config['content']['contact_section']['section_name'] = esc_html__( 'Resource Links', 'elementor-pro' );
|
||||
$config['content']['contact_section']['platform']['group-1'] = [
|
||||
Social_Network_Provider::EMAIL,
|
||||
Social_Network_Provider::TELEPHONE,
|
||||
Social_Network_Provider::SMS,
|
||||
Social_Network_Provider::WHATSAPP,
|
||||
Social_Network_Provider::SKYPE,
|
||||
Social_Network_Provider::MESSENGER,
|
||||
Social_Network_Provider::VIBER,
|
||||
Social_Network_Provider::WAZE,
|
||||
Social_Network_Provider::URL,
|
||||
];
|
||||
$config['content']['contact_section']['default'] = [
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::WHATSAPP,
|
||||
],
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::MESSENGER,
|
||||
],
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::EMAIL,
|
||||
],
|
||||
[
|
||||
'contact_icon_platform' => Social_Network_Provider::TELEPHONE,
|
||||
],
|
||||
];
|
||||
$config['content']['contact_section']['has_cta_text'] = false;
|
||||
$config['content']['contact_section']['repeater']['has_title'] = true;
|
||||
$config['content']['contact_section']['repeater']['has_description'] = true;
|
||||
|
||||
$config['style']['chat_box_section']['section_name'] = esc_html__( 'Box', 'elementor-pro' );
|
||||
$config['style']['send_button_section']['has_typography'] = false;
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
public function get_name(): string {
|
||||
return 'contact-buttons-var-8';
|
||||
}
|
||||
|
||||
public function get_title(): string {
|
||||
return esc_html__( 'Resource Box', 'elementor-pro' );
|
||||
}
|
||||
|
||||
protected function add_content_tab(): void {
|
||||
$this->add_chat_button_section();
|
||||
|
||||
$this->add_top_bar_section();
|
||||
|
||||
$this->add_contact_section();
|
||||
}
|
||||
|
||||
protected function add_style_tab(): void {
|
||||
$this->add_style_chat_button_section();
|
||||
|
||||
$this->add_style_top_bar_section();
|
||||
|
||||
$this->add_style_resource_links_section();
|
||||
|
||||
$this->add_style_chat_box_section();
|
||||
}
|
||||
|
||||
public function render(): void {
|
||||
$render_strategy = new Contact_Buttons_Var_8_Render( $this );
|
||||
|
||||
$render_strategy->render();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
namespace ElementorPro\Modules\FloatingButtons\Widgets;
|
||||
|
||||
use Elementor\Core\Base\Providers\Social_Network_Provider;
|
||||
use Elementor\Modules\FloatingButtons\Base\Widget_Contact_Button_Base;
|
||||
use ElementorPro\Modules\FloatingButtons\Classes\Render\Contact_Buttons_Var_9_Render;
|
||||
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
class Contact_Buttons_Var_9 extends Widget_Contact_Button_Base {
|
||||
|
||||
public static function get_configuration() {
|
||||
$config = parent::get_configuration();
|
||||
$config['content']['chat_button_section']['has_notification_dot'] = false;
|
||||
$config['content']['chat_button_section']['has_display_text'] = true;
|
||||
$config['content']['chat_button_section']['display_text_label'] = esc_html__( 'Get in touch', 'elementor-pro' );
|
||||
$config['content']['chat_button_section']['has_display_text_select'] = false;
|
||||
$config['content']['chat_button_section']['platform']['group'] = [
|
||||
Social_Network_Provider::EMAIL,
|
||||
Social_Network_Provider::TELEPHONE,
|
||||
Social_Network_Provider::SMS,
|
||||
Social_Network_Provider::WHATSAPP,
|
||||
Social_Network_Provider::SKYPE,
|
||||
Social_Network_Provider::MESSENGER,
|
||||
Social_Network_Provider::VIBER,
|
||||
Social_Network_Provider::WAZE,
|
||||
Social_Network_Provider::URL,
|
||||
];
|
||||
$config['style']['chat_button_section']['has_box_shadow'] = false;
|
||||
$config['style']['chat_button_section']['has_drop_shadow'] = true;
|
||||
$config['style']['chat_button_section']['has_padding'] = true;
|
||||
$config['style']['chat_button_section']['has_tabs'] = false;
|
||||
$config['style']['chat_button_section']['has_platform_color_controls'] = true;
|
||||
$config['style']['chat_button_section']['has_entrance_animation'] = false;
|
||||
$config['style']['chat_button_section']['hover_animation_type'] = 'custom';
|
||||
$config['style']['chat_button_section']['icon_color_label'] = esc_html__( 'Text and Icon Color', 'elementor-pro' );
|
||||
$config['style']['chat_button_section']['has_typography'] = true;
|
||||
$config['style']['chat_button_section']['button_size_default'] = 'medium';
|
||||
$config['style']['send_button_section']['has_typography'] = false;
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
public function get_name(): string {
|
||||
return 'contact-buttons-var-9';
|
||||
}
|
||||
|
||||
public function get_title(): string {
|
||||
return esc_html__( 'Animated Classic', 'elementor-pro' );
|
||||
}
|
||||
|
||||
protected function add_content_tab(): void {
|
||||
$this->add_chat_button_section();
|
||||
}
|
||||
|
||||
protected function add_style_tab(): void {
|
||||
$this->add_style_chat_button_section();
|
||||
}
|
||||
|
||||
public function render(): void {
|
||||
$render_strategy = new Contact_Buttons_Var_9_Render( $this );
|
||||
|
||||
$render_strategy->render();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user