%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/wellingtpa/www/wp-content/plugins/kata-plus/includes/elementor/modules/phone/ |
Upload File : |
<?php
/**
* Phone module config.
*
* @author ClimaxThemes
* @package Kata Plus Pro
* @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_Phone extends Widget_Base {
public function get_name() {
return 'kata-plus-phone';
}
public function get_title() {
return esc_html__( 'Phone', 'kata-plus' );
}
public function get_icon() {
return 'kata-widget kata-eicon-phone';
}
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__( 'Phone Settings', 'kata-plus' ),
)
);
$this->add_control(
'label',
array(
'label' => __( 'Label', 'kata-plus' ),
'type' => Controls_Manager::TEXT,
'placeholder' => __( 'Write a label', 'kata-plus' ),
'default' => __( 'Phone', 'kata-plus' ),
'dynamic' => array(
'active' => true,
),
)
);
$this->add_control(
'phonenumber',
array(
'label' => __( 'Phone Number', 'kata-plus' ),
'type' => Controls_Manager::TEXT,
'placeholder' => __( 'Write the phone number', 'kata-plus' ),
'default' => __( '+1(408)785-9933', 'kata-plus' ),
'dynamic' => array(
'active' => true,
),
)
);
$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(
'phone_icon',
array(
'label' => esc_html__( 'Icon', 'kata-plus' ),
'type' => 'kata_plus_icons',
'default' => 'font-awesome/phone2',
'condition' => array(
'symbol' => array(
'icon',
),
),
)
);
$this->add_control(
'phone_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' => 'phone_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_phone_wrapper',
array(
'label' => esc_html__( 'Wrapper', 'kata-plus' ),
'type' => 'styler',
'selector' => '.kata-plus-phone-wrapper',
'isSVG' => true,
'isInput' => false,
'wrapper' => '{{WRAPPER}}',
)
);
$this->add_control(
'styler_phone_label',
array(
'label' => esc_html__( 'Label', 'kata-plus' ),
'type' => 'styler',
'selector' => '.kata-plus-phone-wrapper .kata-plus-phone-label',
'isSVG' => true,
'isInput' => false,
'wrapper' => '{{WRAPPER}}',
)
);
$this->add_control(
'styler_phonenumber',
array(
'label' => esc_html__( 'Phone Number', 'kata-plus' ),
'type' => 'styler',
'selector' => '.kata-plus-phone-wrapper .kata-plus-phone-number',
'isSVG' => true,
'isInput' => false,
'wrapper' => '{{WRAPPER}}',
)
);
$this->add_control(
'styler_phone_icon_wrap',
array(
'label' => esc_html__( 'Icon Wrapper', 'kata-plus' ),
'type' => 'styler',
'selector' => '.kata-plus-phone-wrapper .kata-plus-phone-icon-wrap',
'isSVG' => true,
'isInput' => false,
'wrapper' => '{{WRAPPER}}',
)
);
$this->add_control(
'styler_phone_icon',
array(
'label' => esc_html__( 'Icon', 'kata-plus' ),
'type' => 'styler',
'selector' => '.kata-plus-phone-wrapper .kata-plus-phone-icon-wrap i',
'isSVG' => true,
'isInput' => false,
'wrapper' => '{{WRAPPER}}',
'condition' => array(
'symbol' => array(
'icon',
'svg',
),
),
)
);
$this->add_control(
'styler_phone_icon_image',
array(
'label' => esc_html__( 'Image', 'kata-plus' ),
'type' => 'styler',
'selector' => '.kata-plus-address-wrapper .kata-plus-phone-icon-wrap img',
'isSVG' => true,
'isInput' => false,
'wrapper' => '{{WRAPPER}}',
'condition' => array(
'symbol' => array(
'imagei',
),
),
)
);
$this->end_controls_section();
do_action( 'kata_plus_common_controls', $this );
}
protected function render() {
require __DIR__ . '/view.php';
}
}