in web/wp-content/plugins/acf-extended/includes/fields/field-flexible-content-controls.php [54:155]
function render_field_settings($field){
// Advanced settings
acf_render_field_setting($field, array(
'label' => __('Advanced Flexible Content', 'acfe'),
'name' => 'acfe_flexible_advanced',
'key' => 'acfe_flexible_advanced',
'instructions' => __('Show advanced Flexible Content settings', 'acfe'),
'type' => 'true_false',
'message' => '',
'default_value' => false,
'ui' => true,
'ui_on_text' => '',
'ui_off_text' => '',
));
// Stylised button
acf_render_field_setting($field, array(
'label' => __('Stylised Button', 'acfe'),
'name' => 'acfe_flexible_stylised_button',
'key' => 'acfe_flexible_stylised_button',
'instructions' => __('Better actions buttons integration', 'acfe') . '. ' . '<a href="https://www.acf-extended.com/features/fields/flexible-content/advanced-settings#stylised-button" target="_blank">' . __('See documentation', 'acfe') . '</a>',
'type' => 'true_false',
'message' => '',
'default_value' => false,
'ui' => true,
'ui_on_text' => '',
'ui_off_text' => '',
'conditional_logic' => array(
array(
array(
'field' => 'acfe_flexible_advanced',
'operator' => '==',
'value' => '1',
),
array(
'field' => 'acfe_flexible_remove_add_button',
'operator' => '!=',
'value' => '1',
),
)
)
));
// Hide Empty Message
acf_render_field_setting($field, array(
'label' => __('Hide Empty Message', 'acfe'),
'name' => 'acfe_flexible_hide_empty_message',
'key' => 'acfe_flexible_hide_empty_message',
'instructions' => '<a href="https://www.acf-extended.com/features/fields/flexible-content/advanced-settings#empty-message" target="_blank">' . __('See documentation', 'acfe') . '</a>',
'type' => 'true_false',
'message' => '',
'default_value' => false,
'ui' => true,
'ui_on_text' => '',
'ui_off_text' => '',
'conditional_logic' => array(
array(
array(
'field' => 'acfe_flexible_advanced',
'operator' => '==',
'value' => '1',
),
array(
'field' => 'acfe_flexible_stylised_button',
'operator' => '!=',
'value' => '1',
),
)
)
));
// Empty Message
acf_render_field_setting($field, array(
'label' => __('Empty Message', 'acfe'),
'name' => 'acfe_flexible_empty_message',
'key' => 'acfe_flexible_empty_message',
'instructions' => __('Text displayed when the flexible field is empty', 'acfe'),
'type' => 'text',
'placeholder' => __('Click the "Add Row" button below to start creating your layout', 'acfe'),
'conditional_logic' => array(
array(
array(
'field' => 'acfe_flexible_advanced',
'operator' => '==',
'value' => '1',
),
array(
'field' => 'acfe_flexible_stylised_button',
'operator' => '!=',
'value' => '1',
),
array(
'field' => 'acfe_flexible_hide_empty_message',
'operator' => '!=',
'value' => '1',
)
)
)
));
}