Submit
Path:
~
/
home
/
getwphos
/
www
/
shellfish
/
wp-content
/
plugins
/
redux-framework
/
redux-core
/
inc
/
classes
/
File Content:
class-redux-autoloader.php
<?php /** * Register an autoloader for custom mu-plugins. * * @package redux-framework */ /** * Class Autoloader * * @package altis/core */ class Redux_Autoloader { const NS_SEPARATOR = '\\'; /** * Prefix to validate against. * * @var string */ protected $prefix; /** * String length of the prefix. * * @var int */ protected $prefix_length; /** * Path to validate. * * @var string */ protected $path; /** * Autoloader constructor. * * @param string $prefix Prefix to validate against. * @param string $path Path to validate. */ public function __construct( string $prefix, string $path ) { $this->prefix = $prefix; $this->prefix_length = strlen( $prefix ); $this->path = trailingslashit( $path ); } /** * Load a class file if it matches our criteria. * * @param string $classname Class to test and/or load. */ public function load( string $classname ) { if ( strpos( $classname, 'Redux' ) === false ) { return; } // Strip prefix from the start (ala PSR-4). $classname = substr( $classname, $this->prefix_length + 1 ); if ( function_exists( 'mb_strtolower' ) && function_exists( 'mb_detect_encoding' ) ) { $classname = mb_strtolower( $classname, mb_detect_encoding( $classname ) ); } else { $classname = strtolower( $classname ); } $file = ''; // Split on namespace separator. $last_ns_pos = strripos( $classname, self::NS_SEPARATOR ); if ( false !== $last_ns_pos ) { $namespace = substr( $classname, 0, $last_ns_pos ); $classname = substr( $classname, $last_ns_pos + 1 ); $file = str_replace( self::NS_SEPARATOR, DIRECTORY_SEPARATOR, $namespace ) . DIRECTORY_SEPARATOR; } $file_prefix = $file; $file = $file_prefix . 'class-' . str_replace( '_', '-', $classname ) . '.php'; $path = $this->path . $file; if ( file_exists( $path ) ) { require_once $path; } else { $file = $file_prefix . 'class-redux-' . str_replace( '_', '-', $classname ) . '.php'; $path = $this->path . $file; if ( file_exists( $path ) ) { require_once $path; } } } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
class-redux-admin-notices.php
6703 bytes
0644
class-redux-ajax-save.php
6166 bytes
0644
class-redux-ajax-select2.php
3027 bytes
0644
class-redux-ajax-typography.php
1343 bytes
0644
class-redux-api.php
53888 bytes
0644
class-redux-args.php
11805 bytes
0644
class-redux-autoloader.php
2116 bytes
0644
class-redux-cdn.php
9937 bytes
0644
class-redux-class.php
1142 bytes
0644
class-redux-colors.php
11587 bytes
0644
class-redux-enqueue.php
19925 bytes
0644
class-redux-extension-abstract.php
6312 bytes
0644
class-redux-extensions.php
2236 bytes
0644
class-redux-field.php
5214 bytes
0644
class-redux-filesystem.php
29712 bytes
0644
class-redux-functions-ex.php
15919 bytes
0644
class-redux-functions.php
8827 bytes
0644
class-redux-helpers.php
37617 bytes
0644
class-redux-i18n.php
1313 bytes
0644
class-redux-installer-muter.php
506 bytes
0644
class-redux-instances.php
2831 bytes
0644
class-redux-network.php
2098 bytes
0644
class-redux-options-constructor.php
33772 bytes
0644
class-redux-options-defaults.php
6689 bytes
0644
class-redux-output.php
14619 bytes
0644
class-redux-page-render.php
37544 bytes
0644
class-redux-panel.php
14345 bytes
0644
class-redux-path.php
568 bytes
0644
class-redux-required.php
8692 bytes
0644
class-redux-sanitize.php
3778 bytes
0644
class-redux-thirdparty-fixes.php
3678 bytes
0644
class-redux-transients.php
844 bytes
0644
class-redux-validate.php
1560 bytes
0644
class-redux-validation.php
8427 bytes
0644
class-redux-wordpress-data.php
18511 bytes
0644
index.php
79 bytes
0644
N4ST4R_ID | Naxtarrr