|
@@ 57-62 (lines=6) @@
|
54 |
|
// Custom attribute handling |
55 |
|
$custom_attributes = array(); |
56 |
|
|
57 |
|
if ( ! empty( $field['custom_attributes'] ) && is_array( $field['custom_attributes'] ) ) { |
58 |
|
|
59 |
|
foreach ( $field['custom_attributes'] as $attribute => $value ){ |
60 |
|
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $value ) . '"'; |
61 |
|
} |
62 |
|
} |
63 |
|
|
64 |
|
echo '<p class="form-field ' . esc_attr( $field['id'] ) . '_field ' . esc_attr( $field['wrapper_class'] ) . '"><label for="' . esc_attr( $field['id'] ) . '">' . wp_kses_post( $field['label'] ) . '</label><input type="' . esc_attr( $field['type'] ) . '" class="' . esc_attr( $field['class'] ) . '" style="' . esc_attr( $field['style'] ) . '" name="' . esc_attr( $field['name'] ) . '" id="' . esc_attr( $field['id'] ) . '" value="' . esc_attr( $field['value'] ) . '" placeholder="' . esc_attr( $field['placeholder'] ) . '" ' . implode( ' ', $custom_attributes ) . ' /> '; |
65 |
|
|
|
@@ 110-115 (lines=6) @@
|
107 |
|
// Custom attribute handling |
108 |
|
$custom_attributes = array(); |
109 |
|
|
110 |
|
if ( ! empty( $field['custom_attributes'] ) && is_array( $field['custom_attributes'] ) ) { |
111 |
|
|
112 |
|
foreach ( $field['custom_attributes'] as $attribute => $value ){ |
113 |
|
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $value ) . '"'; |
114 |
|
} |
115 |
|
} |
116 |
|
|
117 |
|
echo '<p class="form-field ' . esc_attr( $field['id'] ) . '_field ' . esc_attr( $field['wrapper_class'] ) . '"><label for="' . esc_attr( $field['id'] ) . '">' . wp_kses_post( $field['label'] ) . '</label><textarea class="' . esc_attr( $field['class'] ) . '" style="' . esc_attr( $field['style'] ) . '" name="' . esc_attr( $field['id'] ) . '" id="' . esc_attr( $field['id'] ) . '" placeholder="' . esc_attr( $field['placeholder'] ) . '" rows="2" cols="20" ' . implode( ' ', $custom_attributes ) . '>' . esc_textarea( $field['value'] ) . '</textarea> '; |
118 |
|
|
|
@@ 149-154 (lines=6) @@
|
146 |
|
// Custom attribute handling |
147 |
|
$custom_attributes = array(); |
148 |
|
|
149 |
|
if ( ! empty( $field['custom_attributes'] ) && is_array( $field['custom_attributes'] ) ) { |
150 |
|
|
151 |
|
foreach ( $field['custom_attributes'] as $attribute => $value ){ |
152 |
|
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $value ) . '"'; |
153 |
|
} |
154 |
|
} |
155 |
|
|
156 |
|
echo '<p class="form-field ' . esc_attr( $field['id'] ) . '_field ' . esc_attr( $field['wrapper_class'] ) . '"><label for="' . esc_attr( $field['id'] ) . '">' . wp_kses_post( $field['label'] ) . '</label><input type="checkbox" class="' . esc_attr( $field['class'] ) . '" style="' . esc_attr( $field['style'] ) . '" name="' . esc_attr( $field['name'] ) . '" id="' . esc_attr( $field['id'] ) . '" value="' . esc_attr( $field['cbvalue'] ) . '" ' . checked( $field['value'], $field['cbvalue'], false ) . ' ' . implode( ' ', $custom_attributes ) . '/> '; |
157 |
|
|
|
@@ 188-193 (lines=6) @@
|
185 |
|
// Custom attribute handling |
186 |
|
$custom_attributes = array(); |
187 |
|
|
188 |
|
if ( ! empty( $field['custom_attributes'] ) && is_array( $field['custom_attributes'] ) ) { |
189 |
|
|
190 |
|
foreach ( $field['custom_attributes'] as $attribute => $value ){ |
191 |
|
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $value ) . '"'; |
192 |
|
} |
193 |
|
} |
194 |
|
|
195 |
|
echo '<p class="form-field ' . esc_attr( $field['id'] ) . '_field ' . esc_attr( $field['wrapper_class'] ) . '"><label for="' . esc_attr( $field['id'] ) . '">' . wp_kses_post( $field['label'] ) . '</label><select id="' . esc_attr( $field['id'] ) . '" name="' . esc_attr( $field['name'] ) . '" class="' . esc_attr( $field['class'] ) . '" style="' . esc_attr( $field['style'] ) . '" ' . implode( ' ', $custom_attributes ) . '>'; |
196 |
|
|