Current Path: > home > transcarter > public_html > wp-content > plugins > LayerSlider > assets > > classes
Operation : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Software : Apache Server IP : 198.54.126.42 | Your IP: 216.73.216.135 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
class.km.autoupdate.plugins.v3.php | File | 1726 bytes | March 10 2023 20:45:24. | |
class.km.autoupdate.v3.php | File | 16249 bytes | March 10 2023 20:45:24. | |
class.ls.config.php | File | 2480 bytes | March 10 2023 20:45:24. | |
class.ls.dom.php | File | 4008 bytes | March 10 2023 20:45:24. | |
class.ls.elementor.php | File | 2533 bytes | March 10 2023 20:45:24. | |
class.ls.elementor.widget.php | File | 4505 bytes | March 10 2023 20:45:24. | |
class.ls.exportutil.php | File | 6149 bytes | March 10 2023 20:45:24. | |
class.ls.filesystem.php | File | 1953 bytes | March 10 2023 20:45:24. | |
class.ls.importutil.php | File | 9880 bytes | March 10 2023 20:45:24. | |
class.ls.modulemanager.php | File | 4185 bytes | March 10 2023 20:45:24. | |
class.ls.modules.php | File | 3000 bytes | March 10 2023 20:45:24. | |
class.ls.notifications.php | File | 13031 bytes | March 10 2023 20:45:24. | |
class.ls.popups.php | File | 4787 bytes | March 10 2023 20:45:24. | |
class.ls.posts.php | File | 10320 bytes | March 10 2023 20:45:24. | |
class.ls.remotedata.php | File | 2462 bytes | March 10 2023 20:45:24. | |
class.ls.revisions.php | File | 6622 bytes | March 10 2023 20:45:24. | |
class.ls.sliders.php | File | 21612 bytes | March 10 2023 20:45:24. | |
class.ls.sources.php | File | 7556 bytes | March 10 2023 20:45:24. | |
class.ls.templateutils.php | File | 6958 bytes | March 10 2023 20:45:24. | |
class.ls.transitionpresets.php | File | 785 bytes | March 10 2023 20:45:24. | |
class.ls.uninstaller.php | File | 4185 bytes | March 10 2023 20:45:24. | |
index.php | File | 27 bytes | March 10 2023 20:45:24. |
<?php namespace ElementorLayerSlider; // Prevent direct file access defined( 'LS_ROOT_FILE' ) || exit; final class LS_Elementor { const MINIMUM_ELEMENTOR_VERSION = '3.5.0'; const MINIMUM_PHP_VERSION = '5.4'; private static $_instance = null; public static function instance() { if( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } public function widget_scripts() { ls_enqueue_slider_library(); wp_enqueue_style('ls-elementor', LS_ROOT_URL.'/static/admin/css/elementor.css', ['elementor-editor'], LS_PLUGIN_VERSION ); wp_enqueue_script( 'ls-elementor-backend', LS_ROOT_URL.'/static/admin/js/elementor-backend.js', ['kreatura-modal'], LS_PLUGIN_VERSION, true); wp_localize_script('ls-elementor-backend', 'LS_Widget', [ 'editorUrl' => admin_url( 'admin.php?page=layerslider&action=edit&id=' ), 'i18n' => [ 'modalTitle' => __('Quick Edit LayerSlider', 'LayerSlider'), 'ChangesYouMadeMayNotBeSaved' => __( 'Changes you made may not be saved. Are you sure you want to continue?', 'LayerSlider' ), ] ]); } public function register_widgets( $widgets_manager ) { // Load Widget class and register it require_once( LS_ROOT_PATH . '/classes/class.ls.elementor.widget.php' ); $widgets_manager->register( new Widgets\LS_Elementor_Widget() ); // Override user provided advanced settings in order to // force loading all scripts in the preview window. if( is_admin() || ! empty( $_GET['elementor-preview'] ) ) { add_filter( 'ls_conditional_script_loading', function( $value ) { return false; } ); add_filter( 'ls_include_at_footer', function( $value ) { return false; } ); add_filter( 'ls_load_all_js_files', function( $value ) { return true; } ); } } public function init() { // Check if Elementor installed and activated if( ! did_action( 'elementor/loaded' ) ) { return false; } // Check for required Elementor version if( version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '<' ) ) { return false; } // Check for required PHP version if ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) { return false; } // Register widget scripts add_action( 'elementor/editor/before_enqueue_scripts', [ $this, 'widget_scripts' ] ); // Register widgets add_action( 'elementor/widgets/register', [ $this, 'register_widgets' ] ); } private function __construct() { add_action( 'plugins_loaded', [ $this, 'init' ] ); } } LS_Elementor::instance();
SILENT KILLER Tool