Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
subversal
/
video
/
wp-content
/
wp-includes
/
wp-content
/
plugins
/
atlas-core
/
framework
/
redux-core
/
inc
/
classes
:
class-redux-class.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Redux Class * * @class Redux_Class * @version 4.0.0 * @package Redux Framework/Classes */ defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'Redux_Class', false ) ) { /** * Class Redux_Class */ class Redux_Class { /** * Pointer to ReduxFramework object. * * @var null|ReduxFramework */ public $parent = null; /** * Global arguments array. * * @var array|mixed|void */ public $args = array(); /** * Project opt_name * * @var mixed|string */ public $opt_name = ''; /** * Redux_Class constructor. * * @param null|object $redux Pointer to ReduxFramework object. */ public function __construct( $redux = null ) { if ( is_object( $redux ) ) { $this->parent = $redux; $this->args = $redux->args; $this->opt_name = $this->args['opt_name']; } } /** * Pointer to a project-specific ReduxFramework object. * * @return null|object|ReduxFramework */ public function core() { if ( isset( $this->opt_name ) && '' !== $this->opt_name ) { return Redux::instance( $this->opt_name ); } return null; } } }