element_before(); $unallows = array(); $tabs = array_values( $this->field['tabs'] ); $unique_id = ( ! empty( $this->unique ) ) ? $this->unique : $this->field['id']; $self = new Exopite_Simple_Options_Framework( array( 'id' => $this->element_name(), 'multilang' => $this->config['multilang'], 'is_options_simple' => $this->config['is_options_simple'], ), null ); echo '
'; $i = 0; $equal_width = ( isset( $this->field['options']['equal_width'] ) && $this->field['options']['equal_width'] ) ? ' equal-width' : ''; /** * Tab navigation */ echo ''; /** * Tab content */ foreach ( $tabs as $key => $tab ) { reset( $tabs ); $tab_active = ( $key === key( $tabs ) ) ? ' active' : ''; echo '
'; echo '
' . $tab['title'] . '
'; echo '
'; echo '
'; foreach ( $tab['fields'] as $field ) { if ( in_array( $field['type'], $unallows ) ) { $field['_notice'] = true; continue; } if ( is_serialized( $this->value ) ) { $this->value = unserialize( $this->value ); } $field_value = ''; if ( isset( $this->value[ $field['id'] ] ) ) { $field_value = $this->value[ $field['id'] ]; } elseif ( isset( $field['default'] ) ) { $field_value = $field['default']; } $class = 'Exopite_Simple_Options_Framework_Field_' . $field['type']; echo $self->add_field( $field, $field_value ); } echo '
'; echo '
'; echo '
'; } echo '
'; echo $this->element_after(); } } }