PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.35
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.35
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
formidable / classes / views / solutions / _import.php

_import.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.35, at classes/views/solutions/_import.php

73 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5 ?>
6 <div class="frm_image_options frm_form_field" style="--image-size:<?php echo esc_attr( $width ); ?>px">
7 <div class="frm_opt_container">
8 <?php
9 foreach ( $options as $info ) {
10 if ( ! empty( $xml ) && isset( $info['url'] ) && $info['url'] === 'auto' ) {
11 $info['url'] = $xml;
12 }
13
14 $disabled = isset( $imported[ $info['form'] ] ) ? ' disabled' : '';
15 $url = $info['url'] ?? '';
16 $value = $importing === 'form' ? $info['form'] : $info['key'];
17
18 if ( ! isset( $info['img'] ) ) {
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 ); ?>/>
21 <?php
22 continue;
23 }
24
25 $hide_views = $importing === 'view' && ( ( $selected && $info['form'] !== $selected ) || isset( $imported[ $info['form'] ] ) );
26 ?>
27 <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' : '' ); ?>">
28 <?php if ( $importing === 'form' ) { ?>
29 <input type="hidden" name="xml[<?php echo esc_attr( $info['form'] ); ?>]" value="<?php echo esc_attr( $url ); ?>" <?php echo esc_attr( $disabled ); ?>/>
30 <?php } ?>
31 <label>
32 <input type="radio" name="<?php echo esc_attr( $importing . ( $importing === 'view' ? '[' . $info['form'] . ']' : '' ) ); ?>" value="<?php echo esc_attr( $value ); ?>"
33 <?php
34 echo esc_attr( $disabled );
35
36 if ( ! $selected && ! $disabled ) {
37 echo ' checked="checked"';
38 $selected = $info['form'];
39 }
40 ?>
41 <?php if ( $importing === 'form' ) { ?>
42 onchange="frm_show_div('show_sub_opt',this.checked,false,'.');frm_show_div('show_<?php echo esc_attr( $info['form'] ); ?>',this.checked,true,'.')"
43 <?php } ?>
44 />
45 <div class="frm_image_option_container frm_label_with_image">
46 <?php FrmAppHelper::kses_echo( $info['img'], array( 'svg', 'rect', 'path' ) ); ?>
47 <span class="frm_text_label_for_image">
48 <?php
49 if ( $disabled ) {
50 FrmAppHelper::icon_by_class(
51 'frmfont frm_step_complete_icon',
52 array(
53 'aria-label' => __( 'Imported', 'formidable' ),
54 )
55 );
56 }
57
58 if ( $importing === 'form' && $disabled ) {
59 FrmAppHelper::kses_echo( FrmFormsHelper::edit_form_link( $imported[ $info['form'] ] ), array( 'a' ) );
60 } else {
61 echo esc_html( $info['name'] );
62 }
63 ?>
64 </span>
65 </div>
66 </label>
67 </div>
68 <?php
69 }//end foreach
70 ?>
71 </div>
72 </div>
73