%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 54.36.91.62 / Your IP : 216.73.217.162 Web Server : Apache System : Linux webm002.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : wellingtpa ( 97533) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/w/e/l/wellingtpa/www/wp-content/plugins/kata-plus/includes/elementor/modules/email/ |
Upload File : |
<?php
/**
* Email module config.
*
* @author ClimaxThemes
* @package Kata Plus
* @since 1.0.0
*/
// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
use Elementor\Widget_Base;
use Elementor\Controls_Manager;
use Elementor\Utils;
use Elementor\Group_Control_Image_Size;
class Kata_Plus_Email extends Widget_Base {
public function get_name() {
return 'kata-plus-email';
}
public function get_title() {
return esc_html__( 'Email', 'kata-plus' );
}
public function get_icon() {
return 'kata-widget kata-eicon-email';
}
public function get_categories() {
return array( 'kata_plus_elementor_most_usefull' );
}
protected function register_controls() {
$this->start_controls_section(
'section_text_content',
array(
'label' => esc_html__( 'Email Settings', 'kata-plus' ),
)
);
$this->add_control(
'label',
array(
'label' => __( 'Email', 'kata-plus' ),
'type' => Controls_Manager::TEXT,
'placeholder' => __( 'Write a label', 'kata-plus' ),
'default' => __( 'Label', 'kata-plus' ),
'dynamic' => array(
'active' => true,
),
)
);
$this->add_control(
'email',
array(
'label' => __( 'Email', 'kata-plus' ),
'type' => Controls_Manager::TEXTAREA,
'placeholder' => __( 'Enter your Email', 'kata-plus' ),
'default' => __( 'info@example.com', 'kata-plus' ),
'dynamic' => array(
'active' => true,
),
)
);
$this->add_control(
'email_link',
array(
'label' => __( 'URL', 'kata-plus' ),
'type' => Controls_Manager::URL,
'placeholder' => __( 'info@example.com', 'kata-plus' ),
'show_external' => true,
'default' => array(
'url' => '',
'is_external' => false,
'nofollow' => false,
),
)
);
$this->add_control(
'symbol',
array(
'label' => __( 'Icon Source', 'kata-plus' ),
'type' => Controls_Manager::SELECT,
'default' => 'icon',
'options' => array(
'icon' => __( 'Kata Icons', 'kata-plus' ),
'imagei' => __( 'Image', 'kata-plus' ),
'svg' => __( 'Svg', 'kata-plus' ),
),
)
);
$this->add_control(
'email_icon',
array(
'label' => esc_html__( 'Icon', 'kata-plus' ),
'type' => 'kata_plus_icons',
'default' => 'themify/alarm-clock',
'condition' => array(
'symbol' => array(
'icon',
),
),
)
);
$this->add_control(
'email_image',
array(
'label' => __( 'Choose Image', 'kata-plus' ),
'type' => Controls_Manager::MEDIA,
'default' => array(
'url' => Utils::get_placeholder_image_src(),
),
'condition' => array(
'symbol' => array(
'imagei',
'svg',
),
),
)
);
$this->add_group_control(
Group_Control_Image_Size::get_type(),
array(
'name' => 'email_image',
'default' => 'full',
'separator' => 'none',
'condition' => array(
'symbol' => array(
'imagei',
'svg',
),
),
)
);
$this->end_controls_section();
$this->start_controls_section(
'section_box_style',
array(
'label' => esc_html__( 'Styler', 'kata-plus' ),
'tab' => Controls_Manager::TAB_STYLE,
)
);
$this->add_control(
'styler_email_wrapper',
array(
'label' => esc_html__( 'Wrapper', 'kata-plus' ),
'type' => 'styler',
'selector' => '.kata-plus-email-wrapper',
'isSVG' => true,
'isInput' => false,
'wrapper' => '{{WRAPPER}}',
)
);
$this->add_control(
'styler_email_label',
array(
'label' => esc_html__( 'Label', 'kata-plus' ),
'type' => 'styler',
'selector' => '.kata-plus-email-wrapper .kata-plus-email-label',
'isSVG' => true,
'isInput' => false,
'wrapper' => '{{WRAPPER}}',
)
);
$this->add_control(
'styler_email',
array(
'label' => esc_html__( 'Email', 'kata-plus' ),
'type' => 'styler',
'selector' => '.kata-plus-email-wrapper .kata-plus-email-number',
'isSVG' => true,
'isInput' => false,
'wrapper' => '{{WRAPPER}}',
)
);
$this->add_control(
'styler_email_icon_wrap',
array(
'label' => esc_html__( 'Icon Wrapper', 'kata-plus' ),
'type' => 'styler',
'selector' => '.kata-plus-email-wrapper .kata-plus-email-icon-wrap',
'isSVG' => true,
'isInput' => false,
'wrapper' => '{{WRAPPER}}',
)
);
$this->add_control(
'styler_email_icon',
array(
'label' => esc_html__( 'Icon', 'kata-plus' ),
'type' => 'styler',
'selector' => '.kata-plus-email-wrapper .kata-plus-email-icon-wrap i',
'isSVG' => true,
'isInput' => false,
'wrapper' => '{{WRAPPER}}',
'condition' => array(
'symbol' => array(
'icon',
'svg',
),
),
)
);
$this->add_control(
'styler_email_icon_image',
array(
'label' => esc_html__( 'Image', 'kata-plus' ),
'type' => 'styler',
'selector' => '.kata-plus-address-wrapper .kata-plus-email-icon-wrap img',
'isSVG' => true,
'isInput' => false,
'wrapper' => '{{WRAPPER}}',
'condition' => array(
'symbol' => array(
'imagei',
),
),
)
);
$this->end_controls_section();
// Common controls
do_action( 'kata_plus_common_controls', $this );
}
protected function render() {
require __DIR__ . '/view.php';
}
}