| @@ -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' ), |