/home/techb158/dev.aleamaralawal.com/wp-content/plugins/gravityforms
Edit: /home/techb158/dev.aleamaralawal.com/wp-content/plugins/gravityforms/form_detail.php (190445B)
get( GF_Save_Form_Service_Provider::GF_SAVE_FROM_HELPER );
$update_result = '';
if ( rgpost( 'operation' ) == 'trash' ) {
check_admin_referer( 'gforms_trash_form', 'gforms_trash_form' );
GFFormsModel::trash_form( $form_id );
?>
is_ajax_save_action() === false ) {
check_admin_referer( "gforms_update_form_{$form_id}", 'gforms_update_form' );
$update_result = self::save_form_info( $form_id, rgpost( 'gform_meta', false ) );
?>
var form = " . json_encode( $form ) . ';';
} else {
echo "";
}
?>
array(
'name' => 'standard_fields',
'label' => __( 'Standard Fields', 'gravityforms' ),
'tooltip_class' => 'tooltip_bottomleft',
'fields' => array(),
'fields' => array(
array( 'data-type' => 'text', 'value' => GFCommon::get_field_type_title( 'text' ) ),
array( 'data-type' => 'textarea', 'value' => GFCommon::get_field_type_title( 'textarea' ) ),
array( 'data-type' => 'select', 'value' => GFCommon::get_field_type_title( 'select' ) ),
array( 'data-type' => 'number', 'value' => GFCommon::get_field_type_title( 'number' ) ),
array( 'data-type' => 'checkbox', 'value' => GFCommon::get_field_type_title( 'checkbox' ) ),
array( 'data-type' => 'radio', 'value' => GFCommon::get_field_type_title( 'radio' ) ),
array( 'data-type' => 'hidden', 'value' => GFCommon::get_field_type_title( 'hidden' ) ),
array( 'data-type' => 'html', 'value' => GFCommon::get_field_type_title( 'html' ) ),
array( 'data-type' => 'section', 'value' => GFCommon::get_field_type_title( 'section' ) ),
array( 'data-type' => 'page', 'value' => GFCommon::get_field_type_title( 'page' ) ),
),
),
'advanced_fields' => array(
'name' => 'advanced_fields',
'label' => __( 'Advanced Fields', 'gravityforms' ),
'fields' => array(
array( 'data-type' => 'name', 'value' => GFCommon::get_field_type_title( 'name' ) ),
array( 'data-type' => 'date', 'value' => GFCommon::get_field_type_title( 'date' ) ),
array( 'data-type' => 'time', 'value' => GFCommon::get_field_type_title( 'time' ) ),
array( 'data-type' => 'phone', 'value' => GFCommon::get_field_type_title( 'phone' ) ),
array( 'data-type' => 'address', 'value' => GFCommon::get_field_type_title( 'address' ) ),
array( 'data-type' => 'website', 'value' => GFCommon::get_field_type_title( 'website' ) ),
array( 'data-type' => 'email', 'value' => GFCommon::get_field_type_title( 'email' ) ),
array( 'data-type' => 'fileupload', 'value' => GFCommon::get_field_type_title( 'fileupload' ) ),
array( 'data-type' => 'captcha', 'value' => GFCommon::get_field_type_title( 'captcha' ) ),
array( 'data-type' => 'list', 'value' => GFCommon::get_field_type_title( 'list' ) ),
array( 'data-type' => 'multiselect', 'value' => GFCommon::get_field_type_title( 'multiselect' ) ),
),
),
'post_fields' => array(
'name' => 'post_fields',
'label' => __( 'Post Fields', 'gravityforms' ),
'fields' => array(
array( 'data-type' => 'post_title', 'value' => GFCommon::get_field_type_title( 'post_title' ) ),
array( 'data-type' => 'post_content', 'value' => GFCommon::get_field_type_title( 'post_content' ) ),
array( 'data-type' => 'post_excerpt', 'value' => GFCommon::get_field_type_title( 'post_excerpt' ) ),
array( 'data-type' => 'post_tags', 'value' => GFCommon::get_field_type_title( 'post_tags' ) ),
array( 'data-type' => 'post_category', 'value' => GFCommon::get_field_type_title( 'post_category' ) ),
array( 'data-type' => 'post_image', 'value' => GFCommon::get_field_type_title( 'post_image' ) ),
array( 'data-type' => 'post_custom_field', 'value' => GFCommon::get_field_type_title( 'post_custom_field' ) ),
),
),
'pricing_fields' => array(
'name' => 'pricing_fields',
'label' => __( 'Pricing Fields', 'gravityforms' ),
'fields' => array(
array( 'data-type' => 'product', 'value' => GFCommon::get_field_type_title( 'product' ) ),
array( 'data-type' => 'quantity', 'value' => GFCommon::get_field_type_title( 'quantity' ) ),
array( 'data-type' => 'option', 'value' => GFCommon::get_field_type_title( 'option' ) ),
array( 'data-type' => 'shipping', 'value' => GFCommon::get_field_type_title( 'shipping' ) ),
array( 'data-type' => 'total', 'value' => GFCommon::get_field_type_title( 'total' ) ),
),
),
);
// If enabled insert the password field between the email and fileupload fields.
if ( apply_filters( 'gform_enable_password_field', false ) ) {
$password = array(
'data-type' => 'password',
'value' => GFCommon::get_field_type_title( 'password' )
);
array_splice( $field_groups['advanced_fields']['fields'], 7, 0, array( $password ) );
}
// Add credit card field, if enabled.
if ( apply_filters( 'gform_enable_credit_card_field', false ) ) {
$field_groups['pricing_fields']['fields'][] = array(
'data-type' => 'creditcard',
'value' => GFCommon::get_field_type_title( 'creditcard' )
);
}
/**
* Modify the field groups before fields are added.
*
* @since 2.2.6
*
* @param array $field_groups The field groups, including group name, label and fields.
*/
$field_groups = apply_filters( 'gform_field_groups_form_editor', $field_groups );
// Remove array keys from field groups array.
$field_groups = array_values( $field_groups );
// Add buttons to fields.
foreach ( GF_Fields::get_all() as $gf_field ) {
$field_groups = $gf_field->add_button( $field_groups );
}
/**
* Add/edit/remove "Add Field" buttons from the form editor's floating toolbox.
*
* @param array $field_groups The field groups, including group name, label and fields.
*/
return apply_filters( 'gform_add_field_buttons', $field_groups );
}
public static function color_picker( $field_name, $callback ) {
?>