|
@@ -11,7 +11,7 @@ discard block |
|
|
block discarded – undo |
|
11
|
11
|
$info['url'] = $xml; |
|
12
|
12
|
} |
|
13
|
13
|
|
|
14
|
|
- $disabled = isset( $imported[ $info['form'] ] ) ? ' disabled' : ''; |
|
|
14
|
+ $disabled = isset( $imported[$info['form']] ) ? ' disabled' : ''; |
|
15
|
15
|
$url = isset( $info['url'] ) ? $info['url'] : ''; |
|
16
|
16
|
$value = $importing === 'form' ? $info['form'] : $info['key']; |
|
17
|
17
|
if ( ! isset( $info['img'] ) ) { |
|
@@ -21,7 +21,7 @@ discard block |
|
|
block discarded – undo |
|
21
|
21
|
continue; |
|
22
|
22
|
} |
|
23
|
23
|
|
|
24
|
|
- $hide_views = $importing === 'view' && ( ( $selected && $info['form'] !== $selected ) || isset( $imported[ $info['form'] ] ) ); |
|
|
24
|
+ $hide_views = $importing === 'view' && ( ( $selected && $info['form'] !== $selected ) || isset( $imported[$info['form']] ) ); |
|
25
|
25
|
?> |
|
26
|
26
|
<div class="frm_radio radio-inline radio frm_image_option<?php echo esc_attr( $importing === 'view' ? ' show_sub_opt show_' . $info['form'] : '' ); ?>" style="<?php echo esc_attr( $hide_views ? 'display:none' : '' ); ?>"> |
|
27
|
27
|
<?php if ( $importing === 'form' ) { ?> |
|
@@ -54,7 +54,7 @@ discard block |
|
|
block discarded – undo |
|
54
|
54
|
} |
|
55
|
55
|
|
|
56
|
56
|
if ( $importing === 'form' && $disabled ) { |
|
57
|
|
- FrmAppHelper::kses_echo( FrmFormsHelper::edit_form_link( $imported[ $info['form'] ] ), array( 'a' ) ); |
|
|
57
|
+ FrmAppHelper::kses_echo( FrmFormsHelper::edit_form_link( $imported[$info['form']] ), array( 'a' ) ); |
|
58
|
58
|
} else { |
|
59
|
59
|
echo esc_html( $info['name'] ); |
|
60
|
60
|
} |
Please login to merge, or discard this patch.