PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.1
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.1
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
← All changes | includes/fields/class-field-image.php +5 -5 1.6.241.6.1 View file →
@@ -19,18 +19,18 @@
19 19 *
20 20 * @return void
21 21 */
22 22 public function render( $field_settings, $form_id ) {
23 - $form_settings = weforms()->form->get( $form_id )->get_settings();
24 - $use_theme_css = isset( $form_settings['use_theme_css'] ) ? $form_settings['use_theme_css'] : 'wpuf-style';
25 23 $unique_id = sprintf( '%s-%d', $field_settings['name'], $form_id ); ?>
26 24 <li <?php $this->print_list_attributes( $field_settings ); ?>>
27 25 <?php $this->print_label( $field_settings, $form_id ); ?>
26 +
28 27 <div class="wpuf-fields">
29 - <div id="wpuf-<?php echo esc_attr( $unique_id ); ?>-upload-container" data-style="<?php echo esc_attr( $use_theme_css ); ?>">
30 - <div class="wpuf-attachment-upload-filelist" data-style="<?php echo esc_attr( $use_theme_css ); ?>" data-type="file" data-required="<?php echo esc_attr( $field_settings['required'] ); ?>" data-style="<?php echo esc_attr( $use_theme_css ); ?>">
31 - <a id="wpuf-<?php echo esc_attr( $unique_id ); ?>-pickfiles" data-style="<?php echo esc_attr( $use_theme_css ); ?>" data-form_id="<?php echo esc_attr( $form_id ); ?>" class="button file-selector <?php echo ' wpuf_' . esc_attr( $field_settings['name'] ) . '_' . esc_attr(
28 + <div id="wpuf-<?php echo esc_attr( $unique_id ); ?>-upload-container">
29 + <div class="wpuf-attachment-upload-filelist" data-type="file" data-required="<?php echo esc_attr( $field_settings['required'] ); ?>">
30 + <a id="wpuf-<?php echo esc_attr( $unique_id ); ?>-pickfiles" data-form_id="<?php echo esc_attr( $form_id ); ?>" class="button file-selector <?php echo ' wpuf_' . esc_attr( $field_settings['name'] ) . '_' . esc_attr(
32 31 $form_id); ?>" href="#"><?php echo esc_attr ( $field_settings['button_label'] ); ?></a>
32 +
33 33 <ul class="wpuf-attachment-list thumbnails"></ul>
34 34 </div>
35 35 </div><!-- .container -->
36 36