Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.80.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : cafe-custom-widgets.php
<?php
/**
 * elementor-theme Custom widgets.
 * Custom widget control for widget of Cafe plugins.
 */

add_action( 'elementor/element/clever-posts/layout_settings/before_section_end', function( $element, $args ) {
    $element->add_control('disable_border', [
        'label' => esc_html__('Disable border', 'doma'),
        'description' => esc_html__('', 'doma'),
        'type' => \Elementor\Controls_Manager::SWITCHER,
        'return_value' => 'true',
        'default' => 'false',
    ]);
}, 10, 2 );
add_action( 'elementor/element/clever-services/layout_settings/before_section_end', function( $element, $args ) {
    $element->remove_control('style');
    $element->add_control('style', [
        'label' => esc_html__('Style', 'doma'),
        'type' => \Elementor\Controls_Manager::SELECT,
        'default' => 'default',
        'options' => [
            'default' => esc_html__('Default', 'doma'),
            'boxed' => esc_html__('Boxed', 'doma'),
            'inline' => esc_html__('Inline', 'doma'),
        ],
        'description' => esc_html__('Style of service.', 'doma'),
    ]);
    $element->add_responsive_control('height', [
        'label' => esc_html__('Min Height', 'doma'),
        'type' => \Elementor\Controls_Manager::SLIDER,
        'size_units'    => ['px', 'vh'],
        'range' => [
            'px' => [
                'min' => 1,
                'max' => 2000,
            ],'vh' => [
                'min' => 1,
                'max' => 100,
            ],
        ],
        'selectors' => [
            '{{WRAPPER}} .cafe-services .cafe-wrap-service' => 'min-height: {{SIZE}}{{UNIT}};',
        ],
        'devices' => ['desktop', 'tablet', 'mobile'],
        'condition' => [
            'style' => 'inline'
        ],
    ]);
}, 10, 2 );
© 2025 XylotrechusZ