| @@ -1,49 +1,27 @@ | ||
| 1 | -<table class="form-table"> | |
| 2 | - | |
| 3 | - <tr class="wpuf-label-position"> | |
| 4 | - <th><?php esc_html_e( 'Label Position', 'weforms' ); ?></th> | |
| 5 | - <td> | |
| 6 | - <select v-model="settings.label_position"> | |
| 7 | - <?php | |
| 8 | - $positions = [ | |
| 9 | - 'above' => __( 'Above Element', 'weforms' ), | |
| 10 | - 'left' => __( 'Left of Element', 'weforms' ), | |
| 11 | - 'right' => __( 'Right of Element', 'weforms' ), | |
| 12 | - 'hidden' => __( 'Hidden', 'weforms' ), | |
| 13 | - ]; | |
| 14 | - | |
| 15 | - foreach ($positions as $to => $label) { | |
| 16 | - printf( '<option value="%s"%s>%s</option>', esc_attr( $to ), '', esc_attr( $label ) ); | |
| 17 | - } | |
| 18 | - ?> | |
| 19 | - </select> | |
| 20 | - | |
| 21 | - <p class="description"> | |
| 22 | - <?php esc_html_e( 'Where the labels of the form should display', 'weforms' ) ?> | |
| 23 | - </p> | |
| 24 | - </td> | |
| 25 | - </tr> | |
| 26 | - | |
| 27 | - <tr class="wpuf-use-theme-css"> | |
| 28 | - <th><?php esc_html_e( 'Use Theme CSS', 'weforms' ); ?></th> | |
| 29 | - <td> | |
| 30 | - <select v-model="settings.use_theme_css"> | |
| 31 | - <?php | |
| 32 | - $options = [ | |
| 33 | - 'wpuf-theme-style' => __( 'Yes', 'weforms' ), | |
| 34 | - 'wpuf-style' => __( 'No', 'weforms' ), | |
| 35 | - ]; | |
| 36 | - | |
| 37 | - foreach ($options as $key => $label) { | |
| 38 | - printf( '<option value="%s"%s>%s</option>', esc_attr( $key ), '', esc_attr( $label ) ); | |
| 39 | - } | |
| 40 | - ?> | |
| 41 | - </select> | |
| 42 | - | |
| 43 | - <p class="description"> | |
| 44 | - <?php wp_kses_post( __( "Selecting <strong>Yes</strong> will use your theme's style for form fields.", "weforms" ) ) ?> | |
| 45 | - </p> | |
| 46 | - </td> | |
| 47 | - </tr> | |
| 48 | - | |
| 49 | -</table> | |
| 1 | +<table class="form-table"> | |
| 2 | + | |
| 3 | + <tr class="wpuf-label-position"> | |
| 4 | + <th><?php _e( 'Label Position', 'weforms' ); ?></th> | |
| 5 | + <td> | |
| 6 | + <select v-model="settings.label_position"> | |
| 7 | + <?php | |
| 8 | + $positions = array( | |
| 9 | + 'above' => __( 'Above Element', 'weforms' ), | |
| 10 | + 'left' => __( 'Left of Element', 'weforms' ), | |
| 11 | + 'right' => __( 'Right of Element', 'weforms' ), | |
| 12 | + 'hidden' => __( 'Hidden', 'weforms' ), | |
| 13 | + ); | |
| 14 | + | |
| 15 | + foreach ($positions as $to => $label) { | |
| 16 | + printf('<option value="%s"%s>%s</option>', $to, '', $label ); | |
| 17 | + } | |
| 18 | + ?> | |
| 19 | + </select> | |
| 20 | + | |
| 21 | + <p class="description"> | |
| 22 | + <?php _e( 'Where the labels of the form should display', 'weforms' ) ?> | |
| 23 | + </p> | |
| 24 | + </td> | |
| 25 | + </tr> | |
| 26 | + | |
| 27 | +</table> | |