'field-list',
'placeholder' => __( 'Search Fields', 'formidable' ),
'tosearch' => 'frmbutton',
)
);
?>
$field_type ) {
if ( ! is_array( $field_type ) ) {
continue;
}
// Skip showing field if it's in a section.
if ( isset( $field_type['section'] ) ) {
if ( ! isset( $field_sections[ $field_type['section'] ] ) ) {
$field_sections[ $field_type['section'] ] = array();
}
// Mark this field as available when showing in later sections.
$field_type['is_available'] = true;
$field_sections[ $field_type['section'] ][ $field_key ] = $field_type;
continue;
}
$field_type['key'] = $field_key;
FrmFieldsHelper::show_add_field_link( $field_type );
unset( $field_key, $field_type );
}//end foreach
?>
$field_type ) {
if ( ! is_array( $field_type ) || ! isset( $field_type['section'] ) ) {
continue;
}
if ( ! isset( $field_sections[ $field_type['section'] ] ) ) {
$field_sections[ $field_type['section'] ] = array();
}
$field_sections[ $field_type['section'] ][ $field_key ] = $field_type;
}
$section_labels = FrmField::field_section_labels();
foreach ( $field_sections as $section => $section_fields ) {
?>
$field_type ) {
if ( ! empty( $field_type['is_available'] ) ) {
$field_type['key'] = $field_key;
FrmFieldsHelper::show_add_field_link( $field_type );
} else {
FrmFieldsHelper::show_add_field_buttons( compact( 'field_key', 'field_type', 'id', 'no_allow_class' ) );
}
unset( $field_key, $field_type );
}
?>
$field_type ) {
if ( isset( $field_type['section'] ) ) {
continue;
}
if ( is_array( $field_type ) && isset( $field_type['switch_from'] ) ) {
continue;
}
if ( is_array( $field_type ) && isset( $field_type['types'] ) ) {
_deprecated_argument( 'Field with sub types', '4.0' );
$field_label = $field_type['name'];
?>
-