field_before(); echo '
'; foreach ( $this->field['tabs'] as $key => $tab ) { $tabbed_icon = ( ! empty( $tab['icon'] ) ) ? '' : ''; $tabbed_active = ( empty( $key ) ) ? 'csf-tabbed-active' : ''; echo ''. $tabbed_icon . esc_attr( $tab['title'] ) .''; } echo '
'; echo '
'; foreach ( $this->field['tabs'] as $key => $tab ) { $tabbed_hidden = ( ! empty( $key ) ) ? ' hidden' : ''; echo '
'; foreach ( $tab['fields'] as $field ) { if ( in_array( $field['type'], $unallows ) ) { $field['_notice'] = true; } $field_id = ( isset( $field['id'] ) ) ? $field['id'] : ''; $field_default = ( isset( $field['default'] ) ) ? $field['default'] : ''; $field_value = ( isset( $this->value[$field_id] ) ) ? $this->value[$field_id] : $field_default; $unique_id = ( ! empty( $this->unique ) ) ? $this->unique .'['. $this->field['id'] .']' : $this->field['id']; Sakurairo_CSF::field( $field, $field_value, $unique_id, 'field/tabbed' ); } echo '
'; } echo '
'; echo $this->field_after(); } } }