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