403Webshell
Server IP : 89.108.64.180  /  Your IP : 216.73.217.92
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-root ( 1010)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/apartadler.ru/wp-content/plugins/stm-configurations/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/apartadler.ru/wp-content/plugins/stm-configurations/helpers/enqueue.php
<?php
if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}

function stm_config_admin_enqueue($hook)
{
    wp_enqueue_style('stm_admin_butterbean_datepicker',
        STM_CONFIGURATIONS_URL . 'assets/css/jquery-ui.min.css',
        false,
        1,
        false);

    wp_enqueue_script('jquery-ui-datepicker');

    wp_enqueue_style('stm_admin_butterbean_timepicker',
        '//cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.css',
        false,
        1,
        false);

    wp_enqueue_script('stm_admin_butterbean_timepicker_js',
        '//cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.js',
        array('jquery'),
        1,
        false
    );

}

if(function_exists('vc_add_shortcode_param')) {
    add_action('admin_enqueue_scripts', 'stm_config_admin_enqueue');

    vc_add_shortcode_param('stm_datepicker_vc', 'stm_datepicker_vc_st', get_template_directory_uri() . '/public/js/admin/datepicker.js');
    function stm_datepicker_vc_st($settings, $value)
    {
        return '<div class="stm_datepicker_vc_field">'
        . '<input type="text" name="' . esc_attr($settings['param_name']) . '" class="stm_datepicker_vc wpb_vc_param_value wpb-textinput ' .
        esc_attr($settings['param_name']) . ' ' .
        esc_attr($settings['type']) . '_field" type="text" value="' . esc_attr($value) . '" />' .
        '</div>';
    }

    vc_add_shortcode_param('stm_timepicker_vc', 'stm_timepicker_vc_st', get_template_directory_uri() . '/public/js/admin/timepicker.js');
    function stm_timepicker_vc_st($settings, $value)
    {
        return '<div class="stm_timepicker_vc_field">'
        . '<input type="text" name="' . esc_attr($settings['param_name']) . '" class="stm_timepicker_vc wpb_vc_param_value wpb-textinput ' .
        esc_attr($settings['param_name']) . ' ' .
        esc_attr($settings['type']) . '_field" type="text" value="' . esc_attr($value) . '" />' .
        '</div>';
    }

	//vc_add_shortcode_param('stm_autocomplete_vc', 'stm_autocomplete_vc_st', get_template_directory_uri() . '/includes/theme/vc/admin_js/autocomplete.js');
	function stm_autocomplete_vc_st($settings, $value)
	{
		return '<div class="stm_autocomplete_vc_field">'
			. '<input type="text" name="' . esc_attr($settings['param_name']) . '" class="stm_autocomplete_vc wpb_vc_param_value wpb-textinput ' .
			esc_attr($settings['param_name']) . ' ' .
			esc_attr($settings['type']) . '_field" type="text" value="' . esc_attr($value) . '" />' .
			'</div>';
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit