sections, $parent->args ); $this->parent = $parent; $this->field = $field; $this->value = $value; } /** * Field Render Function. * * Takes the vars and outputs the HTML for the field in the settings * * @since Redux_Options 2.0.1 */ function render() { if ( empty( $this->field['mode'] ) ) { $this->field['mode'] = "text"; } if ( $this->field['mode'] != "checkbox" && $this->field['mode'] != "text" ) { $this->field['mode'] = "text"; } $class = (isset($this->field['class'])) ? $this->field['class'] : ''; $options = $this->field['options']; if (!empty($this->value)) { foreach ($this->value as $k=>$v) { if (!isset($options[$k])) { unset($this->value[$k]); } } } foreach ($options as $k=>$v) { if (!isset($this->value[$k])) { $this->value[$k] = $v; } } echo ''; } function enqueue() { wp_enqueue_style( 'redux-field-sortable-css', ReduxFramework::$_url.'inc/fields/sortable/field_sortable.css', time(), true ); wp_enqueue_script( 'redux-field-sortable-js', ReduxFramework::$_url . 'inc/fields/sortable/field_sortable.js', array('jquery'), time(), true ); } }