| @@ -19,12 +19,9 @@ | ||
| 19 | 19 | * |
| 20 | 20 | * @return void |
| 21 | 21 | */ |
| 22 | 22 | public function render( $field_settings, $form_id ) { |
| 23 | - $value = $field_settings['default']; | |
| 24 | - $form_settings = weforms()->form->get( $form_id )->get_settings(); | |
| 25 | - $use_theme_css = isset( $form_settings['use_theme_css'] ) ? $form_settings['use_theme_css'] : 'wpuf-style'; | |
| 26 | - ?> | |
| 23 | + $value = $field_settings['default']; ?> | |
| 27 | 24 | <li <?php $this->print_list_attributes( $field_settings ); ?>> |
| 28 | 25 | <?php $this->print_label( $field_settings, $form_id ); ?> |
| 29 | 26 | |
| 30 | 27 | <div class="wpuf-fields"> |
| @@ -37,9 +34,8 @@ | ||
| 37 | 34 | data-type="text" name="<?php echo esc_attr( $field_settings['name'] ); ?>" |
| 38 | 35 | placeholder="<?php echo esc_attr( $field_settings['placeholder'] ); ?>" |
| 39 | 36 | value="<?php echo esc_attr( $value ); ?>" |
| 40 | 37 | size="<?php echo esc_attr( $field_settings['size'] ); ?>" |
| 41 | - data-style="<?php echo esc_attr( $use_theme_css ); ?>" | |
| 42 | 38 | /> |
| 43 | 39 | |
| 44 | 40 | <span class="wpuf-wordlimit-message wpuf-help"></span> |
| 45 | 41 | <?php $this->help_text( $field_settings ); ?> |