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