';
foreach ( $this->field['accordions'] as $key => $accordion ) {
echo '
';
$icon = ( ! empty( $accordion['icon'] ) ) ? 'csf--icon '. $accordion['icon'] : 'csf-accordion-icon fas fa-angle-right';
echo '
';
echo '';
echo esc_html( $accordion['title'] );
echo '
';
echo '
';
foreach ( $accordion['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/accordion' );
}
echo '
';
echo '