PluginProbe ʕ •ᴥ•ʔ
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor / 3.2.5
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor v3.2.5
3.9.5 3.9.6 3.9.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.1 2.3.1.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4.0 2.5.0 2.5.1 2.5.10 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.2 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.6.0 3.6.1 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8.0 3.8.1 3.8.2 3.9.0 3.9.1 3.9.2 trunk 1.2.6 1.2.7 1.2.9 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.11 1.5.12 1.5.2 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.0.9.1 2.0.9.2 2.0.9.3
elementskit-lite / autoloader.php
elementskit-lite Last commit date
compatibility 1 year ago config 2 years ago core 3 years ago helpers 2 years ago languages 1 year ago libs 1 year ago modules 1 year ago traits 4 years ago widgets 1 year ago autoloader.php 4 years ago elementskit-lite.php 1 year ago plugin.php 1 year ago readme.txt 1 year ago wpml-config.xml 3 years ago
autoloader.php
59 lines
1 <?php
2 namespace ElementsKit_Lite;
3
4 defined( 'ABSPATH' ) || exit;
5
6 /**
7 * ElementsKit_Lite autoloader.
8 * Handles dynamically loading classes only when needed.
9 *
10 * @since 1.0.0
11 */
12 class Autoloader {
13
14 /**
15 * Run autoloader.
16 * Register a function as `__autoload()` implementation.
17 *
18 * @since 1.0.0
19 * @access public
20 */
21 public static function run() {
22 spl_autoload_register( array( __CLASS__, 'autoload' ) );
23 }
24
25 /**
26 * Autoload.
27 * For a given class, check if it exist and load it.
28 *
29 * @since 1.0.0
30 * @access private
31 * @param string $class Class name.
32 */
33 private static function autoload( $class_name ) {
34
35 // If the class being requested does not start with our prefix
36 // we know it's not one in our project.
37 if ( 0 !== strpos( $class_name, __NAMESPACE__ ) ) {
38 return;
39 }
40
41 $file_name = strtolower(
42 preg_replace(
43 array( '/\b' . __NAMESPACE__ . '\\\/', '/([a-z])([A-Z])/', '/_/', '/\\\/' ),
44 array( '', '$1-$2', '-', DIRECTORY_SEPARATOR ),
45 $class_name
46 )
47 );
48
49 // Compile our path from the corosponding location.
50 $file = \ElementsKit_Lite::plugin_dir() . $file_name . '.php';
51
52 // If a file is found.
53 if ( file_exists( $file ) ) {
54 // Then load it up!
55 require_once $file;
56 }
57 }
58 }
59