.
*
* @package ReduxFramework
* @subpackage debug object
* @author Dovy Paukstys
* @author Kevin Provance (kprovance)
* @version 3.1.8
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'ReduxDebugObject' ) ) {
/**
* Main ReduxFramework_import_export class
*
* @since 1.0.0
*/
class ReduxDebugObject {
public function __construct( $parent ) {
$this->parent = $parent;
}
public function render() {
echo '
';
}
public function render_tab() {
echo '';
if ( ! empty( $this->parent->args['icon_type'] ) && $this->parent->args['icon_type'] == 'image' ) {
$icon = ( ! isset( $this->parent->args['dev_mode_icon'] ) ) ? '' : '
';
} else {
$icon_class = ( ! isset( $this->parent->args['dev_mode_icon_class'] ) ) ? '' : ' ' . $this->parent->args['dev_mode_icon_class'];
$icon = ( ! isset( $this->parent->args['dev_mode_icon'] ) ) ? '' : ' ';
}
echo '' . $icon . ' ' . __( 'Options Object', 'redux-framework' ) . '';
echo '';
}
public function add_submenu() {
add_theme_page(
$this->parent->args['page_slug'],
__( 'Options Object', 'redux-framework' ),
__( 'Options Object', 'redux-framework' ),
$this->parent->args['page_permissions'],
$this->parent->args['page_slug'] . '&tab=dev_mode_default',
'__return_null'
);
}
}
}