PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.6
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.6
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/controllers/FrmFormsController.php +30 -1 6.56.6 View file →
@@ -397,13 +397,29 @@
397 397 add_filter( 'is_active_sidebar', '__return_false' );
398 398 FrmStylesController::enqueue_css( 'enqueue', true );
399 399
400 400 if ( false === get_template_part( 'page' ) ) {
401 + if ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) {
402 + add_filter( 'body_class', 'FrmFormsController::preview_block_theme_body_classnames' );
403 + }
401 404 self::fallback_when_page_template_part_is_not_supported_by_theme();
402 405 }
403 406 }
404 407
405 408 /**
409 + * Add padding to the body for block themes.
410 + *
411 + * @since 6.5.2
412 + *
413 + * @param array $classes The body classes list.
414 + * @return array
415 + */
416 + public static function preview_block_theme_body_classnames( $classes ) {
417 + $classes[] = 'has-global-padding';
418 + return $classes;
419 + }
420 +
421 + /**
406 422 * Not every theme supports get_template_part( 'page' ).
407 423 * When this is not supported, false is returned, and we can handle a fallback.
408 424 */
409 425 private static function fallback_when_page_template_part_is_not_supported_by_theme() {
@@ -1269,8 +1285,21 @@
1269 1285 'screenshot' => 'chat.png',
1270 1286 )
1271 1287 ),
1272 1288 ),
1289 + 'abandonment' => array(
1290 + 'name' => __( 'Form Abandonment', 'formidable' ),
1291 + 'icon' => 'frm_icon_font frm_abandoned_icon',
1292 + 'html_class' => 'frm_show_upgrade_tab frm_noallow',
1293 + 'data' => FrmAppHelper::get_upgrade_data_params(
1294 + 'abandonment',
1295 + array(
1296 + 'upgrade' => __( 'Form abandonment settings', 'formidable' ),
1297 + 'message' => __( 'Unlock the power of data capture to boost lead generation and master the art of form optimization.', 'formidable' ),
1298 + 'screenshot' => 'abandonment.png',
1299 + )
1300 + ),
1301 + ),
1273 1302 'html' => array(
1274 1303 'name' => __( 'Customize HTML', 'formidable' ),
1275 1304 'class' => __CLASS__,
1276 1305 'function' => 'html_settings',
@@ -1277,9 +1306,9 @@
1277 1306 'icon' => 'frm_icon_font frm_code_icon',
1278 1307 ),
1279 1308 );
1280 1309
1281 - foreach ( array( 'landing', 'chat' ) as $feature ) {
1310 + foreach ( array( 'landing', 'chat', 'abandonment' ) as $feature ) {
1282 1311 if ( ! FrmAppHelper::show_new_feature( $feature ) ) {
1283 1312 unset( $sections[ $feature ] );
1284 1313 }
1285 1314 }