PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.8
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.8
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/xml/import_form.php +14 -15 6.346.8 View file →
@@ -11,9 +11,9 @@
11 11 )
12 12 );
13 13 ?>
14 14 <div class="wrap">
15 - <?php require FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php'; ?>
15 + <?php include( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); ?>
16 16
17 17 <h2 class="frm-h2"><?php esc_html_e( 'Import', 'formidable' ); ?></h2>
18 18 <p class="howto">
19 19 <?php
@@ -33,9 +33,9 @@
33 33 <form enctype="multipart/form-data" method="post" class="frm-fields">
34 34 <input type="hidden" name="frm_action" value="import_xml" />
35 35 <?php wp_nonce_field( 'import-xml-nonce', 'import-xml' ); ?>
36 36 <p>
37 - <label for="frm_import_file">
37 + <label>
38 38 <?php
39 39 if ( FrmAppHelper::is_formidable_branding() ) {
40 40 $file_section_title = esc_html__( 'Choose a Formidable XML file', 'formidable' );
41 41 } else {
@@ -52,9 +52,9 @@
52 52 echo esc_html( sprintf( __( 'Maximum size: %s', 'formidable' ), ini_get( 'upload_max_filesize' ) ) );
53 53 ?>)
54 54 </label>
55 55 <br/>
56 - <input id="frm_import_file" type="file" name="frm_import_file" size="25" accept="<?php echo esc_attr( implode( ', ', FrmXMLHelper::get_supported_upload_file_types() ) ); ?>" />
56 + <input type="file" name="frm_import_file" size="25" />
57 57 </p>
58 58
59 59 <?php do_action( 'frm_csv_opts', $forms ); ?>
60 60
@@ -68,9 +68,9 @@
68 68 <?php do_action( 'frm_import_settings' ); ?>
69 69
70 70 <h2 class="frm-h2"><?php esc_html_e( 'Export', 'formidable' ); ?></h2>
71 71 <p class="howto">
72 - <?php esc_html_e( 'Export your forms, entries, views, and styles so you can easily import them on another site.', 'formidable' ); ?>
72 + <?php echo esc_html( __( 'Export your forms, entries, views, and styles so you can easily import them on another site.', 'formidable' ) ); ?>
73 73 </p>
74 74 <form method="post" action="<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>" id="frm_export_xml" class="frm-fields frm_grid_container">
75 75 <input type="hidden" name="action" value="frm_export_xml" />
76 76 <?php wp_nonce_field( 'export-xml-nonce', 'export-xml' ); ?>
@@ -76,12 +76,12 @@
76 76 <?php wp_nonce_field( 'export-xml-nonce', 'export-xml' ); ?>
77 77
78 78 <p class="frm4 frm_form_field">
79 79 <label for="format"><?php esc_html_e( 'Export Format', 'formidable' ); ?></label>
80 - <select id="format" name="format">
80 + <select name="format">
81 81 <?php foreach ( $export_format as $t => $type ) { ?>
82 82 <option value="<?php echo esc_attr( $t ); ?>" data-support="<?php echo esc_attr( $type['support'] ); ?>" <?php echo isset( $type['count'] ) ? 'data-count="' . esc_attr( $type['count'] ) . '"' : ''; ?>>
83 - <?php echo esc_html( $type['name'] ?? $t ); ?>
83 + <?php echo esc_html( isset( $type['name'] ) ? $type['name'] : $t ); ?>
84 84 </option>
85 85 <?php } ?>
86 86 </select>
87 87 </p>
@@ -86,12 +86,12 @@
86 86 </select>
87 87 </p>
88 88
89 89 <p class="frm_hidden csv_opts export-filters frm4 frm_form_field">
90 - <label for="frm_csv_format" class="frm_help" title="<?php esc_attr_e( 'If your CSV special characters are not working correctly, try a different formatting option.', 'formidable' ); ?>">
90 + <label for="csv_format" class="frm_help" title="<?php esc_attr_e( 'If your CSV special characters are not working correctly, try a different formatting option.', 'formidable' ); ?>">
91 91 <?php esc_html_e( 'CSV Encoding Format', 'formidable' ); ?>
92 92 </label>
93 - <select id="frm_csv_format" name="csv_format">
93 + <select name="csv_format">
94 94 <?php foreach ( FrmCSVExportHelper::csv_format_options() as $format ) { ?>
95 95 <option value="<?php echo esc_attr( $format ); ?>">
96 96 <?php echo esc_html( $format ); ?>
97 97 </option>
@@ -99,9 +99,9 @@
99 99 </select>
100 100 </p>
101 101
102 102 <p class="frm_hidden csv_opts export-filters frm4 frm_form_field">
103 - <label for="frm_csv_col_sep">
103 + <label for="csv_col_sep">
104 104 <?php esc_html_e( 'Column Separation', 'formidable' ); ?>
105 105 </label>
106 106 <input id="frm_csv_col_sep" name="csv_col_sep" value="," type="text" />
107 107 </p>
@@ -156,9 +156,9 @@
156 156 <input type="checkbox" name="frm_export_forms[]" value="<?php echo esc_attr( $form->id ); ?>" id="export_form_<?php echo esc_attr( $form->id ); ?>" />
157 157 </td>
158 158 <td>
159 159 <label for="export_form_<?php echo esc_attr( $form->id ); ?>">
160 - <?php echo esc_html( '' === $form->name ? FrmFormsHelper::get_no_title_text() : $form->name ); ?>
160 + <?php echo esc_html( '' === $form->name ? __( '(no title)', 'formidable' ) : $form->name ); ?>
161 161 </label>
162 162 </td>
163 163 <td>
164 164 <?php echo esc_html( $form->id ); ?> / <?php echo esc_html( $form->form_key ); ?>
@@ -186,14 +186,13 @@
186 186 </a>
187 187 </td>
188 188 <td class="column-entries">
189 189 <?php
190 - $style = $form->options['custom_style'] ?? 1;
191 -
192 - if ( $style ) {
190 + $style = isset( $form->options['custom_style'] ) ? $form->options['custom_style'] : 1;
191 + if ( empty( $style ) ) {
192 + echo '0';
193 + } else {
193 194 echo '1';
194 - } else {
195 - echo '0';
196 195 }
197 196 ?>
198 197 </td>
199 198 </tr>