ReduxFramework_import_export

Main ReduxFramework_import_export class.

Defined (1)

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

/inc/ReduxFramework/ReduxCore/inc/fields/import_export/field_import_export.php  
  1. class ReduxFramework_import_export { 
  2.  
  3. /** 
  4. * Field Constructor. 
  5. * Required - must call the parent constructor, then assign field and value to vars, and obviously call the render field function 
  6. * @since 1.0.0 
  7. * @access public 
  8. * @return void 
  9. */ 
  10. public function __construct( $field = array(), $value = '', $parent ) { 
  11. $this->parent = $parent; 
  12. $this->field = $field; 
  13. $this->value = $value; 
  14.  
  15. if ( ! isset( $this->field['full_width'] ) ) { 
  16. $this->field['full_width'] = true; 
  17.  
  18. $args = array( 
  19. 'full_width' => $this->field['full_width'] 
  20. ); 
  21.  
  22. $this->parent->import_export->field_args = $args; 
  23.  
  24. /** 
  25. * Field Render Function. 
  26. * Takes the vars and outputs the HTML for the field in the settings 
  27. * @since 1.0.0 
  28. * @access public 
  29. * @return void 
  30. */ 
  31. public function render() { 
  32. $this->parent->import_export->render(); 
  33.  
  34. /** 
  35. * Enqueue Function. 
  36. * If this field requires any scripts, or css define this function and register/enqueue the scripts/css 
  37. * @since 1.0.0 
  38. * @access public 
  39. * @return void 
  40. */ 
  41. public function enqueue() { 
  42. $this->parent->import_export->enqueue();