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/solutions/_import.php +4 -2 6.25 → trunk View file →
@@ -13,8 +13,9 @@
13 13
14 14 $disabled = isset( $imported[ $info['form'] ] ) ? ' disabled' : '';
15 15 $url = $info['url'] ?? '';
16 16 $value = $importing === 'form' ? $info['form'] : $info['key'];
17 +
17 18 if ( ! isset( $info['img'] ) ) {
18 19 ?>
19 20 <input type="hidden" name="<?php echo esc_attr( $importing ); ?>[<?php echo esc_attr( $info['form'] ); ?>]" value="<?php echo esc_attr( $value ); ?>" <?php echo esc_attr( $disabled ); ?>/>
20 21 <?php
@@ -30,9 +31,10 @@
30 31 <label>
31 32 <input type="radio" name="<?php echo esc_attr( $importing . ( $importing === 'view' ? '[' . $info['form'] . ']' : '' ) ); ?>" value="<?php echo esc_attr( $value ); ?>"
32 33 <?php
33 34 echo esc_attr( $disabled );
34 - if ( ! $selected && empty( $disabled ) ) {
35 +
36 + if ( ! $selected && ! $disabled ) {
35 37 echo ' checked="checked"';
36 38 $selected = $info['form'];
37 39 }
38 40 ?>
@@ -43,9 +45,9 @@
43 45 <div class="frm_image_option_container frm_label_with_image">
44 46 <?php FrmAppHelper::kses_echo( $info['img'], array( 'svg', 'rect', 'path' ) ); ?>
45 47 <span class="frm_text_label_for_image">
46 48 <?php
47 - if ( ! empty( $disabled ) ) {
49 + if ( $disabled ) {
48 50 FrmAppHelper::icon_by_class(
49 51 'frmfont frm_step_complete_icon',
50 52 array(
51 53 'aria-label' => __( 'Imported', 'formidable' ),