| Server IP : 62.60.133.156 / Your IP : 216.73.217.51 Web Server : LiteSpeed System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : mimradmin ( 1166) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mimradmin/theme/digitaz/inc/elementor/custom-widgets/ |
Upload File : |
<?php
// Button
use Elementor\Controls_Manager;
add_action( 'elementor/element/button/section_style/after_section_end', function ($element, $args ) {
$element->update_control(
'background_color',
[
'global' => [
'default' => '',
],
'selectors' => [
'{{WRAPPER}} .elementor-button' => ' background-color: {{VALUE}};',
],
]
);
}, 10, 2 );
add_action('elementor/element/button/section_style/before_section_end', function ($element, $args) {
$element->add_control(
'icon_button_size',
[
'label' => esc_html__('Icon Size', 'digitaz'),
'type' => Controls_Manager::SLIDER,
'range' => [
'px' => [
'min' => 6,
'max' => 300,
],
],
'selectors' => [
'{{WRAPPER}} .elementor-button .elementor-button-icon i' => 'font-size: {{SIZE}}{{UNIT}};',
],
'condition' => [
'selected_icon[value]!' => '',
],
]
);
$element->add_control(
'button_icon_color',
[
'label' => esc_html__('Icon Color', 'digitaz'),
'type' => Controls_Manager::COLOR,
'default' => '',
'selectors' => [
'{{WRAPPER}} .elementor-button .elementor-button-icon' => 'fill: {{VALUE}}; color: {{VALUE}};',
],
'condition' => [
'selected_icon[value]!' => '',
],
]
);
}, 10, 2);
add_action('elementor/element/button/section_style/before_section_end', function ($element, $args) {
$element->add_control(
'button_style_theme',
[
'label' => esc_html__('Style', 'digitaz'),
'type' => Controls_Manager::SWITCHER,
'default' => 'yes',
'prefix_class' => 'button-style-digitaz-',
]
);
}, 10, 2);
add_action('elementor/element/button/section_button/after_section_start', function ($element, $args) {
$element->add_control(
'button_typo',
[
'label' => esc_html__( 'Typo', 'digitaz' ),
'type' => Controls_Manager::SELECT,
'default' => '',
'options' => [
'' => esc_html__( 'Default', 'digitaz' ),
'link' => esc_html__( 'Link', 'digitaz' ),
],
'prefix_class' => 'elementor-button-typo-',
]
);
}, 10, 2);