plugin updates

This commit is contained in:
Tony Volpe
2024-11-20 22:40:39 -05:00
parent 0238f0c4ca
commit 3362947c6e
434 changed files with 13405 additions and 9202 deletions

View File

@@ -214,7 +214,7 @@ class GF_Block_Form extends GF_Block {
}
// Get form output string.
$form_string = gravity_form( $form_id, $title, $description, false, $field_values, $ajax, $tabindex, false );
$form_string = gravity_form( $form_id, $title, $description, false, $field_values, $ajax, $tabindex, false, rgar( $attributes, 'theme' ), json_encode( $attributes ) );
// Get output buffer contents.
$buffer_contents = ob_get_contents();
@@ -236,7 +236,7 @@ class GF_Block_Form extends GF_Block {
$field_values = '';
}
return gravity_form( $form_id, $title, $description, false, $field_values, $ajax, $tabindex, false );
return gravity_form( $form_id, $title, $description, false, $field_values, $ajax, $tabindex, false, rgar( $attributes, 'theme' ), json_encode( $attributes ) );
}

View File

@@ -132,6 +132,21 @@ class GF_Blocks_Service_Provider extends GF_Service_Provider {
// buttonPrimaryBackgroundColor
'default' => rgar( $global_styles, 'inputPrimaryColor' ) ? $global_styles['inputPrimaryColor'] : '', // #204ce5
),
'inputImageChoiceAppearance' =>
array(
'type' => 'string',
'default' => rgar( $global_styles, 'inputImageChoiceAppearance' ) ? $global_styles['inputImageChoiceAppearance'] : 'card',
),
'inputImageChoiceStyle' =>
array(
'type' => 'string',
'default' => rgar( $global_styles, 'inputImageChoiceStyle' ) ? $global_styles['inputImageChoiceStyle'] : 'square',
),
'inputImageChoiceSize' =>
array(
'type' => 'string',
'default' => rgar( $global_styles, 'inputImageChoiceSize' ) ? $global_styles['inputImageChoiceSize'] : 'md',
),
'labelFontSize' =>
array(
'type' => 'string',

View File

@@ -56,6 +56,7 @@ class GF_Blocks_Config extends GF_Config {
'title' => $form['title'],
'hasConditionalLogic' => GFFormDisplay::has_conditional_logic( $form ),
'isLegacyMarkup' => GFCommon::is_legacy_markup_enabled( $form ),
'hasImageChoices' => GFFormDisplay::has_image_choices( $form ),
);
}