Skip to content

Commit 1ec20f4

Browse files
committed
v4.3.15 bump
Signed-off-by: Kev Provance <[email protected]>
1 parent 0fbdb0f commit 1ec20f4

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

redux-core/inc/extensions/datetime/datetime/class-redux-datetime.php

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function render() {
114114
}
115115
}
116116

117-
// Assignment, make it eaasier to read.
117+
// Assignment, make it easier to read.
118118
$field_id = $this->field['id'];
119119
$field_name = $this->field['name'];
120120
$split = $this->field['split'];
@@ -154,63 +154,63 @@ public function render() {
154154

155155
// Output defaults to div, so JS can read it.
156156
// Broken up for readability, coz I'm the one who has to debug it!
157-
echo '<div id="' . esc_attr( $field_id ) . '" class="redux-datetime-container"
157+
echo '<div id="' . esc_attr( $field_id ) . '" class="redux-datetime-container"
158158
data-dev-mode="' . esc_attr( $this->parent->args['dev_mode'] ) . '"
159159
data-version="' . esc_attr( Redux_Extension_Datetime::$version ) . '"
160-
data-id="' . esc_attr( $field_id ) . '"
161-
data-mode="' . esc_attr( $split ) . '"
162-
data-separator="' . esc_attr( $this->field['separator'] ) . '"
163-
data-control-type="' . esc_attr( $control_type ) . '"
164-
data-rtl="' . esc_attr( is_rtl() ) . '"
165-
data-num-of-months="' . esc_attr( $num_of_months ) . '"
166-
data-hour-min="' . esc_attr( $hour_min ) . '"
167-
data-hour-max="' . esc_attr( $hour_max ) . '"
168-
data-minute-min="' . esc_attr( $min_min ) . '"
169-
data-minute-max="' . esc_attr( $min_max ) . '"
170-
data-date-min="' . rawurlencode( wp_json_encode( $this->field['date-min'] ) ) . '"
171-
data-date-max="' . rawurlencode( wp_json_encode( $this->field['date-max'] ) ) . '"
172-
data-timezone="' . esc_attr( $this->field['timezone'] ) . '"
173-
data-timezone-list="' . rawurlencode( wp_json_encode( $this->field['timezone-list'] ) ) . '"
174-
data-date-picker="' . esc_attr( $this->field['date-picker'] ) . '"
175-
data-time-picker="' . esc_attr( $this->field['time-picker'] ) . '"
176-
data-time-format="' . esc_attr( $this->field['time-format'] ) . '"
160+
data-id="' . esc_attr( $field_id ) . '"
161+
data-mode="' . esc_attr( $split ) . '"
162+
data-separator="' . esc_attr( $this->field['separator'] ) . '"
163+
data-control-type="' . esc_attr( $control_type ) . '"
164+
data-rtl="' . esc_attr( is_rtl() ) . '"
165+
data-num-of-months="' . esc_attr( $num_of_months ) . '"
166+
data-hour-min="' . esc_attr( $hour_min ) . '"
167+
data-hour-max="' . esc_attr( $hour_max ) . '"
168+
data-minute-min="' . esc_attr( $min_min ) . '"
169+
data-minute-max="' . esc_attr( $min_max ) . '"
170+
data-date-min="' . rawurlencode( wp_json_encode( $this->field['date-min'] ) ) . '"
171+
data-date-max="' . rawurlencode( wp_json_encode( $this->field['date-max'] ) ) . '"
172+
data-timezone="' . esc_attr( $this->field['timezone'] ) . '"
173+
data-timezone-list="' . rawurlencode( wp_json_encode( $this->field['timezone-list'] ) ) . '"
174+
data-date-picker="' . esc_attr( $this->field['date-picker'] ) . '"
175+
data-time-picker="' . esc_attr( $this->field['time-picker'] ) . '"
176+
data-time-format="' . esc_attr( $this->field['time-format'] ) . '"
177177
data-date-format="' . esc_attr( $this->field['date-format'] ) . '">';
178178

179179
// If split mode is on, output two text boxes.
180180
if ( true === $split ) {
181181
echo '<div class="redux-date-input input_wrapper">';
182182
echo '<label class="redux-date-input-label">' . esc_html( $date_placeholder ) . '</label>';
183-
echo ' <input
184-
data-id="' . esc_attr( $field_id ) . '"
185-
type="text"
186-
id="' . esc_attr( $field_id ) . '-date"
187-
name="' . esc_attr( $field_name ) . '[date]"
188-
placeholder="' . esc_attr( $date_placeholder ) . '"
189-
value="' . esc_attr( $this->value['date'] ) . '"
183+
echo ' <input
184+
data-id="' . esc_attr( $field_id ) . '"
185+
type="text"
186+
id="' . esc_attr( $field_id ) . '-date"
187+
name="' . esc_attr( $field_name ) . '[date]"
188+
placeholder="' . esc_attr( $date_placeholder ) . '"
189+
value="' . esc_attr( $this->value['date'] ) . '"
190190
class="redux-date-picker ' . esc_attr( $this->field['class'] ) . '" />&nbsp;&nbsp;';
191191

192192
echo '</div>';
193193

194194
echo '<div class="redux-time-input input_wrapper">';
195195
echo '<label class="redux-time-input-label">' . esc_html( $time_placeholder ) . '</label>';
196-
echo ' <input
197-
data-id="' . esc_attr( $field_id ) . '"
198-
type="text" id="' . esc_attr( $field_id ) . '-time"
199-
name="' . esc_attr( $field_name ) . '[time]"
200-
placeholder="' . esc_attr( $time_placeholder ) . '"
201-
value="' . esc_attr( $this->value['time'] ) . '"
196+
echo ' <input
197+
data-id="' . esc_attr( $field_id ) . '"
198+
type="text" id="' . esc_attr( $field_id ) . '-time"
199+
name="' . esc_attr( $field_name ) . '[time]"
200+
placeholder="' . esc_attr( $time_placeholder ) . '"
201+
value="' . esc_attr( $this->value['time'] ) . '"
202202
class="redux-time-picker ' . esc_attr( $this->field['class'] ) . '" />';
203203

204204
// Otherwise, just one.
205205
} else {
206206
echo '<div class="redux-datetime-input single_wrapper">';
207207
echo '<label class="redux-datetime-input-label">' . esc_attr( $date_placeholder ) . '</label>';
208-
echo ' <input
209-
data-id="' . esc_attr( $field_id ) . '"
210-
type="text" id="' . esc_attr( $field_id ) . '-date"
211-
name="' . esc_attr( $field_name ) . '"
212-
placeholder="' . esc_attr( $date_placeholder ) . '"
213-
value="' . esc_attr( $this->value ) . '"
208+
echo ' <input
209+
data-id="' . esc_attr( $field_id ) . '"
210+
type="text" id="' . esc_attr( $field_id ) . '-date"
211+
name="' . esc_attr( $field_name ) . '"
212+
placeholder="' . esc_attr( $date_placeholder ) . '"
213+
value="' . esc_attr( $this->value ) . '"
214214
class="redux-date-picker ' . esc_attr( $this->field['class'] ) . '" />';
215215

216216
}

0 commit comments

Comments
 (0)