PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
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/views/styles/_style-preview-container.php +12 -6 6.4.1 → trunk View file →
@@ -10,8 +10,9 @@
10 10 $sample_toggle_text = $sample_form_is_on ? __( 'View my form', 'formidable' ) : __( 'View sample form', 'formidable' );
11 11 $active_form_wrapper_params = array(
12 12 'id' => 'frm_active_style_form',
13 13 );
14 +
14 15 if ( $sample_form_is_on ) {
15 16 $active_form_wrapper_params['class'] = 'frm_hidden';
16 17 }
17 18 ?>
@@ -18,11 +19,14 @@
18 19 <div id="frm_style_preview">
19 20 <div class="frm-m-12 frm-mt-0">
20 21 <?php
21 22 // If a $message, $warnings, or $notes variable are not empty, it will be rendered here.
22 - include FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php';
23 + require FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php';
23 24 ?>
24 - <?php FrmTipsHelper::pro_tip( 'get_styling_tip', 'p' ); // If Pro is not active, this will show an upsell. ?>
25 + <?php
26 + // If Pro is not active, this will show an upsell.
27 + FrmTipsHelper::pro_tip( 'get_styling_tip', 'p' );
28 + ?>
25 29 <div id="frm_broken_styles_warning" class="frm_warning_style">
26 30 <?php esc_html_e( 'One or more of your style settings may contain invalid characters that break form styling.', 'formidable' ); ?>
27 31 </div>
28 32 <div <?php FrmAppHelper::array_to_html_params( $active_form_wrapper_params, true ); ?>>
@@ -30,23 +34,25 @@
30 34 // The right side body shows a preview (of the target form) so you can see the form you're actually styling.
31 35 echo $target_form_preview_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
32 36 ?>
33 37 </div>
34 - <?php // Add a sample form to toggle between. This is toggled by the #frm_toggle_sample_form below this and is hidden by default. ?>
38 + <?php
39 + // Add a sample form to toggle between. This is toggled by the #frm_toggle_sample_form below this and is hidden by default.
40 + ?>
35 41 <div id="frm_sample_form">
36 42 <?php
37 43 $frm_settings = FrmAppHelper::get_settings();
38 - include $style_views_path . '_sample_form.php';
44 + require $style_views_path . '_sample_form.php';
39 45 unset( $frm_settings );
40 46 ?>
41 47 </div>
42 48 <?php if ( 'edit' !== $view ) { ?>
43 49 <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-styles&frm_action=edit&form=' . $form->id ) ); ?>" id="frm_edit_style" class="frm_floating_style_button button frm-button-secondary frm-with-icon" tabindex="0" role="button">
44 - <?php FrmAppHelper::icon_by_class( 'frmfont frm_pencil_icon', array( 'echo' => true ) ); ?> <?php esc_html_e( 'Edit style', 'formidable' ); ?>
50 + <?php FrmAppHelper::icon_by_class( 'frmfont frm_pencil_icon' ); ?> <?php esc_html_e( 'Edit style', 'formidable' ); ?>
45 51 </a>
46 52 <?php } ?>
47 53 <button id="frm_toggle_sample_form" class="frm_floating_style_button button frm-button-secondary frm-with-icon">
48 - <?php FrmAppHelper::icon_by_class( 'frmfont frm_sample_form_icon', array( 'echo' => true ) ); ?> <span><?php echo esc_html( $sample_toggle_text ); ?></span>
54 + <?php FrmAppHelper::icon_by_class( 'frmfont frm_sample_form_icon' ); ?> <span><?php echo esc_html( $sample_toggle_text ); ?></span>
49 55 </button>
50 56 <?php
51 57 /**
52 58 * This is used in Pro to add a "Apply style" button to the preview.