ReduxDebugObject

Main ReduxFramework_import_export class.

Defined (1)

The class is defined in the following location(s).

/inc/ReduxFramework/ReduxCore/inc/debug.php  
  1. class ReduxDebugObject { 
  2. public function __construct( $parent ) { 
  3. $this->parent = $parent; 
  4.  
  5. public function render() { 
  6. echo '<div id="dev_mode_default_section_group' . '" class="redux-group-tab">'; 
  7. echo '<h3>' . __( 'Options Object', 'redux-framework' ) . '</h3>'; 
  8. echo '<div class="redux-section-desc">'; 
  9. echo '<div id="redux-object-browser"></div>'; 
  10. echo '</div>'; 
  11.  
  12. if ( version_compare( phpversion(), "5.3.0", ">=" ) ) { 
  13. $json = json_encode( $this->parent->options, true ); 
  14. } else { 
  15. $json = json_encode( $this->parent->options ); 
  16.  
  17. echo '<div id="redux-object-json" class="hide">' . $json . '</div>'; 
  18.  
  19. echo '<a href="#" id="consolePrintObject" class="button">' . __( 'Show Object in Javascript Console Object', 'redux-framework' ) . '</a>'; 
  20.  
  21. echo '</div>'; 
  22.  
  23. public function render_tab() { 
  24. echo '<li id="dev_mode_default_section_group_li" class="redux-group-tab-link-li">'; 
  25.  
  26. if ( ! empty( $this->parent->args['icon_type'] ) && $this->parent->args['icon_type'] == 'image' ) { 
  27. $icon = ( ! isset( $this->parent->args['dev_mode_icon'] ) ) ? '' : '<img src="' . $this->parent->args['dev_mode_icon'] . '" /> '; 
  28. } else { 
  29. $icon_class = ( ! isset( $this->parent->args['dev_mode_icon_class'] ) ) ? '' : ' ' . $this->parent->args['dev_mode_icon_class']; 
  30. $icon = ( ! isset( $this->parent->args['dev_mode_icon'] ) ) ? '<i class="el-icon-info-sign' . $icon_class . '"></i>' : '<i class="icon-' . $this->parent->args['dev_mode_icon'] . $icon_class . '"></i> '; 
  31.  
  32. echo '<a href="javascript:void(0);" id="dev_mode_default_section_group_li_a" class="redux-group-tab-link-a custom-tab" data-rel="dev_mode_default">' . $icon . ' <span class="group_title">' . __( 'Options Object', 'redux-framework' ) . '</span></a>'; 
  33. echo '</li>'; 
  34.  
  35. public function add_submenu() { 
  36. add_submenu_page( 
  37. $this->parent->args['page_slug'],  
  38. __( 'Options Object', 'redux-framework' ),  
  39. __( 'Options Object', 'redux-framework' ),  
  40. $this->parent->args['page_permissions'],  
  41. $this->parent->args['page_slug'] . '&tab=dev_mode_default',  
  42. '__return_null' 
  43. );