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