@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <p class="about-description"> |
2 | 2 | <?php esc_html_e( |
3 | - 'Event Espresso is created by an international team of passionate individuals with a drive to empower your events!', |
|
4 | - 'event_espresso' |
|
5 | - ); ?> |
|
3 | + 'Event Espresso is created by an international team of passionate individuals with a drive to empower your events!', |
|
4 | + 'event_espresso' |
|
5 | + ); ?> |
|
6 | 6 | </p> |
7 | 7 | <h3 class="wp-people-group"><?php esc_html_e('Founders', 'event_espresso'); ?></h3> |
8 | 8 | <ul class="wp-people-group" id="ee-people-group-owners"> |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | </li> |
48 | 48 | <li class='wp-person' id='ee-person-mwani'> |
49 | 49 | <a href="<?php |
50 | - esp_gravatar_profile('[email protected]'); ?>" target='_blank'> |
|
50 | + esp_gravatar_profile('[email protected]'); ?>" target='_blank'> |
|
51 | 51 | <?php esp_gravatar_image('[email protected]', 'Manzoor Ahmad Wani'); ?> |
52 | 52 | </a> |
53 | 53 | <a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>" target='_blank'> |
@@ -87,15 +87,15 @@ discard block |
||
87 | 87 | <h3 class="wp-people-group"><?php esc_html_e('Contributor Recognition', 'event_espresso'); ?></h3> |
88 | 88 | <p class="description"> |
89 | 89 | <?php |
90 | - printf( |
|
91 | - esc_html__( |
|
92 | - 'For every major release we want to recognize the people who contributed to the release via a GitHub pull request. Want to see your name listed here? %sWhen you submit a pull request that gets included in a major release%s, we\'ll add your name here linked to your GitHub profile.', |
|
93 | - 'event_espresso' |
|
94 | - ), |
|
95 | - '<a href="https://github.com/eventespresso/event-espresso-core" title="Contribute to Event Espresso by making a pull request via GitHub" target="_blank">', |
|
96 | - '</a>' |
|
97 | - ); |
|
98 | - ?> |
|
90 | + printf( |
|
91 | + esc_html__( |
|
92 | + 'For every major release we want to recognize the people who contributed to the release via a GitHub pull request. Want to see your name listed here? %sWhen you submit a pull request that gets included in a major release%s, we\'ll add your name here linked to your GitHub profile.', |
|
93 | + 'event_espresso' |
|
94 | + ), |
|
95 | + '<a href="https://github.com/eventespresso/event-espresso-core" title="Contribute to Event Espresso by making a pull request via GitHub" target="_blank">', |
|
96 | + '</a>' |
|
97 | + ); |
|
98 | + ?> |
|
99 | 99 | </p> |
100 | 100 | <p class="wp-credits-list"> |
101 | 101 | <ul> |
@@ -110,15 +110,15 @@ discard block |
||
110 | 110 | <h3 class="wp-people-group"><?php esc_html_e('External Libraries', 'event_espresso'); ?></h3> |
111 | 111 | <p class="description"> |
112 | 112 | <?php |
113 | - printf( |
|
114 | - esc_html__( |
|
115 | - 'Along with the libraries %sincluded with WordPress%s, Event Espresso utilizes the following third party libraries:', |
|
116 | - 'event_espresso' |
|
117 | - ), |
|
118 | - '<a href="credits.php">', |
|
119 | - '</a>' |
|
120 | - ); |
|
121 | - ?> |
|
113 | + printf( |
|
114 | + esc_html__( |
|
115 | + 'Along with the libraries %sincluded with WordPress%s, Event Espresso utilizes the following third party libraries:', |
|
116 | + 'event_espresso' |
|
117 | + ), |
|
118 | + '<a href="credits.php">', |
|
119 | + '</a>' |
|
120 | + ); |
|
121 | + ?> |
|
122 | 122 | </p> |
123 | 123 | <p class="wp-credits-list"> |
124 | 124 | <a href="https://openexchangerates.github.io/accounting.js/" target='_blank'>accounting.js</a>, |
@@ -135,13 +135,13 @@ discard block |
||
135 | 135 | <?php |
136 | 136 | function esp_gravatar_profile($email) |
137 | 137 | { |
138 | - echo esc_url_raw('https://www.gravatar.com/' . md5($email)); |
|
138 | + echo esc_url_raw('https://www.gravatar.com/' . md5($email)); |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | function esp_gravatar_image($email, $name) |
142 | 142 | { |
143 | - $email = md5($email); |
|
144 | - $name = esc_attr($name); |
|
145 | - $url = esc_url_raw("https://0.gravatar.com/avatar/{$email}?s=60"); |
|
146 | - echo "<img src='{$url}' class='gravatar' alt='{$name}'/>"; |
|
143 | + $email = md5($email); |
|
144 | + $name = esc_attr($name); |
|
145 | + $url = esc_url_raw("https://0.gravatar.com/avatar/{$email}?s=60"); |
|
146 | + echo "<img src='{$url}' class='gravatar' alt='{$name}'/>"; |
|
147 | 147 | } |
@@ -135,7 +135,7 @@ |
||
135 | 135 | <?php |
136 | 136 | function esp_gravatar_profile($email) |
137 | 137 | { |
138 | - echo esc_url_raw('https://www.gravatar.com/' . md5($email)); |
|
138 | + echo esc_url_raw('https://www.gravatar.com/'.md5($email)); |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | function esp_gravatar_image($email, $name) |
@@ -26,21 +26,21 @@ discard block |
||
26 | 26 | $has_answers = $question->has_answers(); |
27 | 27 | |
28 | 28 | if ($QST_system === 'country') { |
29 | - // already escaped |
|
30 | - echo EEH_HTML::div( |
|
31 | - EEH_HTML::h4( |
|
32 | - '<span class="dashicons dashicons-info"></span>' |
|
33 | - . esc_html__('Did you know...', 'event_espresso') |
|
34 | - ) . |
|
35 | - EEH_HTML::p( |
|
36 | - esc_html__( |
|
37 | - 'If you add a State/Province Select input immediately after this Country Select input when building your registration form, then the State/Province Select input options will change to correspond with the choice made in this input. So for example, choosing "United States" in this Country Select input will populate the State/Province Select input with just the state options for the United States.', |
|
38 | - 'event_espresso' |
|
39 | - ) |
|
40 | - ), |
|
41 | - '', |
|
42 | - 'ee-info-box' |
|
43 | - ); |
|
29 | + // already escaped |
|
30 | + echo EEH_HTML::div( |
|
31 | + EEH_HTML::h4( |
|
32 | + '<span class="dashicons dashicons-info"></span>' |
|
33 | + . esc_html__('Did you know...', 'event_espresso') |
|
34 | + ) . |
|
35 | + EEH_HTML::p( |
|
36 | + esc_html__( |
|
37 | + 'If you add a State/Province Select input immediately after this Country Select input when building your registration form, then the State/Province Select input options will change to correspond with the choice made in this input. So for example, choosing "United States" in this Country Select input will populate the State/Province Select input with just the state options for the United States.', |
|
38 | + 'event_espresso' |
|
39 | + ) |
|
40 | + ), |
|
41 | + '', |
|
42 | + 'ee-info-box' |
|
43 | + ); |
|
44 | 44 | } |
45 | 45 | ?> |
46 | 46 | |
@@ -76,9 +76,9 @@ discard block |
||
76 | 76 | </th> |
77 | 77 | <td> |
78 | 78 | <?php |
79 | - $id = ! empty($QST_system) ? '_disabled' : ''; |
|
80 | - $disabled_attr = ! empty($QST_system) ? ' disabled="disabled"' : ''; |
|
81 | - ?> |
|
79 | + $id = ! empty($QST_system) ? '_disabled' : ''; |
|
80 | + $disabled_attr = ! empty($QST_system) ? ' disabled="disabled"' : ''; |
|
81 | + ?> |
|
82 | 82 | <input class='regular-text' |
83 | 83 | id="QST_admin_label<?php echo $id; // escape not needed ?>" |
84 | 84 | name="QST_admin_label<?php echo $id; // escape not needed ?>" |
@@ -120,30 +120,30 @@ discard block |
||
120 | 120 | </th> |
121 | 121 | <td> |
122 | 122 | <?php |
123 | - $id = ! empty($QST_system) ? '_disabled' : ''; |
|
124 | - $disabled_attr = ! empty($QST_system) ? ' disabled="disabled"' : ''; |
|
125 | - $admin_only = $question->get('QST_admin_only'); |
|
126 | - $checked = ! empty($admin_only) ? ' checked="checked"' : ''; |
|
127 | - ?> |
|
123 | + $id = ! empty($QST_system) ? '_disabled' : ''; |
|
124 | + $disabled_attr = ! empty($QST_system) ? ' disabled="disabled"' : ''; |
|
125 | + $admin_only = $question->get('QST_admin_only'); |
|
126 | + $checked = ! empty($admin_only) ? ' checked="checked"' : ''; |
|
127 | + ?> |
|
128 | 128 | <input class="QST_admin_only" |
129 | 129 | id="QST_admin_only<?php echo $id; // escape not needed ?>" |
130 | 130 | name="QST_admin_only<?php echo $id; // escape not needed ?>" |
131 | 131 | type="checkbox" |
132 | 132 | value="1" |
133 | 133 | <?php |
134 | - echo $disabled_attr; // escape not needed |
|
135 | - echo $checked; // escape not needed |
|
136 | - ?> |
|
134 | + echo $disabled_attr; // escape not needed |
|
135 | + echo $checked; // escape not needed |
|
136 | + ?> |
|
137 | 137 | /> |
138 | 138 | <br /> |
139 | 139 | <p class="description"> |
140 | 140 | <?php |
141 | - if (! empty($QST_system)) { ?> |
|
141 | + if (! empty($QST_system)) { ?> |
|
142 | 142 | <span class="description" style="color:#D54E21;"> |
143 | 143 | <?php esc_html_e( |
144 | - 'System question! This field cannot be changed.', |
|
145 | - 'event_espresso' |
|
146 | - ); ?> |
|
144 | + 'System question! This field cannot be changed.', |
|
145 | + 'event_espresso' |
|
146 | + ); ?> |
|
147 | 147 | </span> |
148 | 148 | <?php } ?> |
149 | 149 | </p> |
@@ -159,44 +159,44 @@ discard block |
||
159 | 159 | </th> |
160 | 160 | <td> |
161 | 161 | <?php |
162 | - $disabled = ! empty($QST_system) && $QST_system !== EEM_Attendee::system_question_phone; |
|
163 | - if ($disabled) { |
|
164 | - $disabled_attr = 'disabled="disabled"'; |
|
165 | - $id = '_disabled'; |
|
166 | - } else { |
|
167 | - $disabled_attr = ''; |
|
168 | - $id = ''; |
|
169 | - } |
|
162 | + $disabled = ! empty($QST_system) && $QST_system !== EEM_Attendee::system_question_phone; |
|
163 | + if ($disabled) { |
|
164 | + $disabled_attr = 'disabled="disabled"'; |
|
165 | + $id = '_disabled'; |
|
166 | + } else { |
|
167 | + $disabled_attr = ''; |
|
168 | + $id = ''; |
|
169 | + } |
|
170 | 170 | |
171 | - // Only display Confirm email for |
|
172 | - if (empty($QST_system) || $QST_system !== EEM_Attendee::system_question_email_confirm) { |
|
173 | - unset($question_types[ EEM_Question::QST_type_email_confirm ]); |
|
174 | - } |
|
171 | + // Only display Confirm email for |
|
172 | + if (empty($QST_system) || $QST_system !== EEM_Attendee::system_question_email_confirm) { |
|
173 | + unset($question_types[ EEM_Question::QST_type_email_confirm ]); |
|
174 | + } |
|
175 | 175 | |
176 | - echo EEH_Form_Fields::select_input( |
|
177 | - 'QST_type' . $id, |
|
178 | - $question_types, |
|
179 | - $question->type(), |
|
180 | - 'id="QST_type' . $id . '"' . $disabled_attr |
|
181 | - ); // already escaped |
|
182 | - if ($disabled) { ?> |
|
176 | + echo EEH_Form_Fields::select_input( |
|
177 | + 'QST_type' . $id, |
|
178 | + $question_types, |
|
179 | + $question->type(), |
|
180 | + 'id="QST_type' . $id . '"' . $disabled_attr |
|
181 | + ); // already escaped |
|
182 | + if ($disabled) { ?> |
|
183 | 183 | <input id='QST_type' |
184 | 184 | name="QST_type" |
185 | 185 | type="hidden" |
186 | 186 | value="<?php echo esc_attr($question->type()); ?>" |
187 | 187 | /> |
188 | 188 | <?php |
189 | - $explanatory_text = esc_html__( |
|
190 | - 'System question! This field cannot be changed.', |
|
191 | - 'event_espresso' |
|
192 | - ); |
|
193 | - } else { |
|
194 | - $explanatory_text = esc_html__( |
|
195 | - 'Because there are currently answers for this question in the database, your options to change the question type have been limited to similar question-types.', |
|
196 | - 'event_espresso' |
|
197 | - ); |
|
198 | - } |
|
199 | - if ($disabled || $has_answers) { ?> |
|
189 | + $explanatory_text = esc_html__( |
|
190 | + 'System question! This field cannot be changed.', |
|
191 | + 'event_espresso' |
|
192 | + ); |
|
193 | + } else { |
|
194 | + $explanatory_text = esc_html__( |
|
195 | + 'Because there are currently answers for this question in the database, your options to change the question type have been limited to similar question-types.', |
|
196 | + 'event_espresso' |
|
197 | + ); |
|
198 | + } |
|
199 | + if ($disabled || $has_answers) { ?> |
|
200 | 200 | <p> |
201 | 201 | <span class="description" style="color:#D54E21;"> |
202 | 202 | <?php echo esc_html($explanatory_text); ?> |
@@ -225,21 +225,21 @@ discard block |
||
225 | 225 | <p> |
226 | 226 | <span class="description"> |
227 | 227 | <?php esc_html_e( |
228 | - 'Maximum number of characters allowed when answering this question', |
|
229 | - 'event_espresso' |
|
230 | - ); ?> |
|
228 | + 'Maximum number of characters allowed when answering this question', |
|
229 | + 'event_espresso' |
|
230 | + ); ?> |
|
231 | 231 | </span> |
232 | 232 | </p> |
233 | 233 | <?php if ($QST_system) { ?> |
234 | 234 | <p> |
235 | 235 | <span class="description" style="color:#D54E21;"> |
236 | 236 | <?php printf( |
237 | - esc_html__( |
|
238 | - 'System question! The maximum number of characters that can be used for this question is %1$s', |
|
239 | - 'event_espresso' |
|
240 | - ), |
|
241 | - $max_max |
|
242 | - ); ?> |
|
237 | + esc_html__( |
|
238 | + 'System question! The maximum number of characters that can be used for this question is %1$s', |
|
239 | + 'event_espresso' |
|
240 | + ), |
|
241 | + $max_max |
|
242 | + ); ?> |
|
243 | 243 | </span> |
244 | 244 | </p> |
245 | 245 | <?php } ?> |
@@ -261,9 +261,9 @@ discard block |
||
261 | 261 | </th> |
262 | 262 | <th class="option-desc-header"> |
263 | 263 | <?php esc_html_e( |
264 | - 'Description (optional, only shown on registration form)', |
|
265 | - 'event_espresso' |
|
266 | - ) ?> |
|
264 | + 'Description (optional, only shown on registration form)', |
|
265 | + 'event_espresso' |
|
266 | + ) ?> |
|
267 | 267 | </th> |
268 | 268 | <th> |
269 | 269 | </th> |
@@ -298,14 +298,14 @@ discard block |
||
298 | 298 | </tr> |
299 | 299 | |
300 | 300 | <?php |
301 | - $count = 0; |
|
302 | - $question_options = $question->options(); |
|
303 | - if (! empty($question_options)) { |
|
304 | - foreach ($question_options as $option_id => $option) { |
|
305 | - $disabled_attr = $has_answers || $option->get('QSO_system') |
|
306 | - ? ' disabled="disabled"' |
|
307 | - : ''; |
|
308 | - ?> |
|
301 | + $count = 0; |
|
302 | + $question_options = $question->options(); |
|
303 | + if (! empty($question_options)) { |
|
304 | + foreach ($question_options as $option_id => $option) { |
|
305 | + $disabled_attr = $has_answers || $option->get('QSO_system') |
|
306 | + ? ' disabled="disabled"' |
|
307 | + : ''; |
|
308 | + ?> |
|
309 | 309 | <tr class="question-option ee-options-sortable"> |
310 | 310 | <td class="option-value-cell"> |
311 | 311 | <input type="hidden" |
@@ -342,21 +342,21 @@ discard block |
||
342 | 342 | </span> |
343 | 343 | </td> |
344 | 344 | <?php |
345 | - echo EEH_Form_Fields::hidden_input( |
|
346 | - "question_options[{$count}][QST_ID])", |
|
347 | - $option->question_ID() |
|
348 | - ); // already escaped |
|
349 | - echo EEH_Form_Fields::hidden_input( |
|
350 | - "question_options[{$count}][QSO_ID])", |
|
351 | - $option->ID() |
|
352 | - ); // already escaped |
|
353 | - $count++; |
|
354 | - ?> |
|
345 | + echo EEH_Form_Fields::hidden_input( |
|
346 | + "question_options[{$count}][QST_ID])", |
|
347 | + $option->question_ID() |
|
348 | + ); // already escaped |
|
349 | + echo EEH_Form_Fields::hidden_input( |
|
350 | + "question_options[{$count}][QSO_ID])", |
|
351 | + $option->ID() |
|
352 | + ); // already escaped |
|
353 | + $count++; |
|
354 | + ?> |
|
355 | 355 | </tr> |
356 | 356 | <?php |
357 | - } |
|
358 | - } else { |
|
359 | - ?> |
|
357 | + } |
|
358 | + } else { |
|
359 | + ?> |
|
360 | 360 | <tr class="question-option ee-options-sortable"> |
361 | 361 | <td class="option-value-cell"> |
362 | 362 | <input type="hidden" |
@@ -380,8 +380,8 @@ discard block |
||
380 | 380 | </td> |
381 | 381 | </tr> |
382 | 382 | <?php |
383 | - } |
|
384 | - ?> |
|
383 | + } |
|
384 | + ?> |
|
385 | 385 | <tr style="display:none"> |
386 | 386 | <td colspan="3"> |
387 | 387 | <?php echo EEH_Form_Fields::hidden_input("question_options_count", $count); // already escaped ?> |
@@ -400,16 +400,16 @@ discard block |
||
400 | 400 | |
401 | 401 | <p class="description"> |
402 | 402 | <?php esc_html_e( |
403 | - 'Answer Options are the choices that you give people to select from for RADIO_BTN, CHECKBOX or DROPDOWN questions. The Value is a simple key that will be saved to the database and the description is optional. Note that values CANNOT contain any HTML, but descriptions can.', |
|
404 | - 'event_espresso' |
|
405 | - ) ?> |
|
403 | + 'Answer Options are the choices that you give people to select from for RADIO_BTN, CHECKBOX or DROPDOWN questions. The Value is a simple key that will be saved to the database and the description is optional. Note that values CANNOT contain any HTML, but descriptions can.', |
|
404 | + 'event_espresso' |
|
405 | + ) ?> |
|
406 | 406 | </p> |
407 | 407 | <?php if ($has_answers) : ?> |
408 | 408 | <p class="description" style="color:#D54E21;"> |
409 | 409 | <?php esc_html_e( |
410 | - 'Answer values that are uneditable are this way because there are registrations in the database that have answers for this question. If you need to correct a mistake, or edit an existing option value, then trash the existing one and create a new option with the changes. This will ensure that the existing registrations that chose the original answer will preserve that answer.', |
|
411 | - 'event_espresso' |
|
412 | - ); ?> |
|
410 | + 'Answer values that are uneditable are this way because there are registrations in the database that have answers for this question. If you need to correct a mistake, or edit an existing option value, then trash the existing one and create a new option with the changes. This will ensure that the existing registrations that chose the original answer will preserve that answer.', |
|
411 | + 'event_espresso' |
|
412 | + ); ?> |
|
413 | 413 | </p> |
414 | 414 | |
415 | 415 | <?php endif; ?> |
@@ -425,40 +425,40 @@ discard block |
||
425 | 425 | </th> |
426 | 426 | <td> |
427 | 427 | <?php |
428 | - $system_required = ['fname', 'email']; |
|
429 | - $disabled_attr = in_array($QST_system, $system_required) ? ' disabled="disabled"' : ''; |
|
430 | - $required_on = $question->get('QST_admin_only'); |
|
431 | - $show_required_msg = $required_on ? '' : ' display:none;'; |
|
432 | - $disabled_attr = $required_on || ! empty($disabled_attr) ? ' disabled="disabled"' : ''; |
|
433 | - $id = |
|
434 | - ! empty($disabled_attr) && in_array($QST_system, $system_required) ? '_disabled' : ''; |
|
435 | - $requiredOptions = [ |
|
436 | - ['text' => esc_html__('Optional', 'event_espresso'), 'id' => 0], |
|
437 | - ['text' => esc_html__('Required', 'event_espresso'), 'id' => 1], |
|
438 | - ]; |
|
439 | - echo EEH_Form_Fields::select_input( |
|
440 | - 'QST_required' . $id, |
|
441 | - $requiredOptions, |
|
442 | - $question->required(), |
|
443 | - 'id="QST_required' . $id . '"' . $disabled_attr |
|
444 | - ); // already escaped |
|
445 | - ?> |
|
428 | + $system_required = ['fname', 'email']; |
|
429 | + $disabled_attr = in_array($QST_system, $system_required) ? ' disabled="disabled"' : ''; |
|
430 | + $required_on = $question->get('QST_admin_only'); |
|
431 | + $show_required_msg = $required_on ? '' : ' display:none;'; |
|
432 | + $disabled_attr = $required_on || ! empty($disabled_attr) ? ' disabled="disabled"' : ''; |
|
433 | + $id = |
|
434 | + ! empty($disabled_attr) && in_array($QST_system, $system_required) ? '_disabled' : ''; |
|
435 | + $requiredOptions = [ |
|
436 | + ['text' => esc_html__('Optional', 'event_espresso'), 'id' => 0], |
|
437 | + ['text' => esc_html__('Required', 'event_espresso'), 'id' => 1], |
|
438 | + ]; |
|
439 | + echo EEH_Form_Fields::select_input( |
|
440 | + 'QST_required' . $id, |
|
441 | + $requiredOptions, |
|
442 | + $question->required(), |
|
443 | + 'id="QST_required' . $id . '"' . $disabled_attr |
|
444 | + ); // already escaped |
|
445 | + ?> |
|
446 | 446 | <p> |
447 | 447 | <span id="required_toggled_on" class="description" |
448 | 448 | style="color:#D54E21;<?php echo $show_required_msg; ?>" |
449 | 449 | > |
450 | 450 | <?php esc_html_e( |
451 | - 'Required is set to optional, and this field is disabled, because the question is Admin-Only.', |
|
452 | - 'event_espresso' |
|
453 | - ) ?> |
|
451 | + 'Required is set to optional, and this field is disabled, because the question is Admin-Only.', |
|
452 | + 'event_espresso' |
|
453 | + ) ?> |
|
454 | 454 | </span |
455 | 455 | </p> |
456 | 456 | <p> |
457 | 457 | <span id="required_toggled_off" class="description" style="color:#D54E21; display: none;"> |
458 | 458 | <?php esc_html_e( |
459 | - 'Required option field is no longer disabled because the question is not Admin-Only', |
|
460 | - 'event_espresso' |
|
461 | - ) ?> |
|
459 | + 'Required option field is no longer disabled because the question is not Admin-Only', |
|
460 | + 'event_espresso' |
|
461 | + ) ?> |
|
462 | 462 | </span> |
463 | 463 | </p> |
464 | 464 | <?php if (! empty($disabled_attr) && in_array($QST_system, $system_required)) { ?> |
@@ -491,8 +491,8 @@ discard block |
||
491 | 491 | </td> |
492 | 492 | </tr> |
493 | 493 | <?php |
494 | - do_action('AHEE__questions_main_meta_box__template__after_table_form_table', $question); |
|
495 | - ?> |
|
494 | + do_action('AHEE__questions_main_meta_box__template__after_table_form_table', $question); |
|
495 | + ?> |
|
496 | 496 | </tbody> |
497 | 497 | </table> |
498 | 498 |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | EEH_HTML::h4( |
32 | 32 | '<span class="dashicons dashicons-info"></span>' |
33 | 33 | . esc_html__('Did you know...', 'event_espresso') |
34 | - ) . |
|
34 | + ). |
|
35 | 35 | EEH_HTML::p( |
36 | 36 | esc_html__( |
37 | 37 | 'If you add a State/Province Select input immediately after this Country Select input when building your registration form, then the State/Province Select input options will change to correspond with the choice made in this input. So for example, choosing "United States" in this Country Select input will populate the State/Province Select input with just the state options for the United States.', |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | type="hidden" |
93 | 93 | value="<?php echo esc_attr($question->get('QST_order')); ?>" |
94 | 94 | /> |
95 | - <?php if (! empty($QST_system)) { ?> |
|
95 | + <?php if ( ! empty($QST_system)) { ?> |
|
96 | 96 | <input id='QST_admin_label' |
97 | 97 | name="QST_admin_label" |
98 | 98 | type="hidden" |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | <?php } ?> |
102 | 102 | <br /> |
103 | 103 | <p class="description"> |
104 | - <?php if (! empty($QST_system)) { ?> |
|
104 | + <?php if ( ! empty($QST_system)) { ?> |
|
105 | 105 | <span class="description" style="color:#D54E21;"> |
106 | 106 | <?php esc_html_e('System question! This field cannot be changed.', 'event_espresso') ?> |
107 | 107 | </span> |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | <br /> |
139 | 139 | <p class="description"> |
140 | 140 | <?php |
141 | - if (! empty($QST_system)) { ?> |
|
141 | + if ( ! empty($QST_system)) { ?> |
|
142 | 142 | <span class="description" style="color:#D54E21;"> |
143 | 143 | <?php esc_html_e( |
144 | 144 | 'System question! This field cannot be changed.', |
@@ -170,14 +170,14 @@ discard block |
||
170 | 170 | |
171 | 171 | // Only display Confirm email for |
172 | 172 | if (empty($QST_system) || $QST_system !== EEM_Attendee::system_question_email_confirm) { |
173 | - unset($question_types[ EEM_Question::QST_type_email_confirm ]); |
|
173 | + unset($question_types[EEM_Question::QST_type_email_confirm]); |
|
174 | 174 | } |
175 | 175 | |
176 | 176 | echo EEH_Form_Fields::select_input( |
177 | - 'QST_type' . $id, |
|
177 | + 'QST_type'.$id, |
|
178 | 178 | $question_types, |
179 | 179 | $question->type(), |
180 | - 'id="QST_type' . $id . '"' . $disabled_attr |
|
180 | + 'id="QST_type'.$id.'"'.$disabled_attr |
|
181 | 181 | ); // already escaped |
182 | 182 | if ($disabled) { ?> |
183 | 183 | <input id='QST_type' |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | </th> |
217 | 217 | <td> |
218 | 218 | <input id="QST_max" |
219 | - <?php echo $max_max === EE_INF ? '' : 'max="' . esc_attr($max_max) . '"'; ?> |
|
219 | + <?php echo $max_max === EE_INF ? '' : 'max="'.esc_attr($max_max).'"'; ?> |
|
220 | 220 | min="1" |
221 | 221 | name="QST_max" |
222 | 222 | type="number" |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | <?php |
301 | 301 | $count = 0; |
302 | 302 | $question_options = $question->options(); |
303 | - if (! empty($question_options)) { |
|
303 | + if ( ! empty($question_options)) { |
|
304 | 304 | foreach ($question_options as $option_id => $option) { |
305 | 305 | $disabled_attr = $has_answers || $option->get('QSO_system') |
306 | 306 | ? ' disabled="disabled"' |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | /> |
335 | 335 | </td> |
336 | 336 | <td> |
337 | - <?php if (! $option->system()) { ?> |
|
337 | + <?php if ( ! $option->system()) { ?> |
|
338 | 338 | <span class="dashicons clickable dashicons-post-trash ee-icon-size-18 remove-option remove-item"> |
339 | 339 | </span> |
340 | 340 | <?php } ?> |
@@ -437,10 +437,10 @@ discard block |
||
437 | 437 | ['text' => esc_html__('Required', 'event_espresso'), 'id' => 1], |
438 | 438 | ]; |
439 | 439 | echo EEH_Form_Fields::select_input( |
440 | - 'QST_required' . $id, |
|
440 | + 'QST_required'.$id, |
|
441 | 441 | $requiredOptions, |
442 | 442 | $question->required(), |
443 | - 'id="QST_required' . $id . '"' . $disabled_attr |
|
443 | + 'id="QST_required'.$id.'"'.$disabled_attr |
|
444 | 444 | ); // already escaped |
445 | 445 | ?> |
446 | 446 | <p> |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | ) ?> |
462 | 462 | </span> |
463 | 463 | </p> |
464 | - <?php if (! empty($disabled_attr) && in_array($QST_system, $system_required)) { ?> |
|
464 | + <?php if ( ! empty($disabled_attr) && in_array($QST_system, $system_required)) { ?> |
|
465 | 465 | <input type="hidden" id="QST_required" name="QST_required" value="1" /> |
466 | 466 | <p> |
467 | 467 | <span class="description" style="color:#D54E21;"> |
@@ -15,95 +15,95 @@ discard block |
||
15 | 15 | class espresso_events_Registration_Form_Hooks extends EE_Admin_Hooks |
16 | 16 | { |
17 | 17 | |
18 | - /** |
|
19 | - * @var EE_Event|null |
|
20 | - */ |
|
21 | - protected $_event; |
|
22 | - |
|
23 | - |
|
24 | - protected function _set_hooks_properties() |
|
25 | - { |
|
26 | - |
|
27 | - $this->_name = 'registration_form'; |
|
28 | - $this->_metaboxes = [ |
|
29 | - 0 => [ |
|
30 | - 'page_route' => ['edit', 'create_new'], |
|
31 | - 'func' => 'primary_questions', |
|
32 | - 'label' => esc_html__('Questions for Primary Registrant', 'event_espresso'), |
|
33 | - 'priority' => 'default', |
|
34 | - 'context' => 'side', |
|
35 | - ], |
|
36 | - ]; |
|
37 | - |
|
38 | - // hook into the handler for saving question groups |
|
39 | - add_filter( |
|
40 | - 'FHEE__Events_Admin_Page___insert_update_cpt_item__event_update_callbacks', |
|
41 | - [$this, 'modify_callbacks'], |
|
42 | - 10 |
|
43 | - ); |
|
44 | - |
|
45 | - // hook into revision restores (we're hooking into the global action because EE_Admin_Hooks classes are already |
|
46 | - // restricted by page) |
|
47 | - add_action('AHEE_EE_Admin_Page_CPT__restore_revision', [$this, 'restore_revision'], 10, 2); |
|
48 | - } |
|
49 | - |
|
50 | - |
|
51 | - /** |
|
52 | - * Callback for FHEE__Events_Admin_Page___insert_update_cpt_item__event_update_callbacks hook |
|
53 | - * |
|
54 | - * @param $callbacks |
|
55 | - * @return array |
|
56 | - */ |
|
57 | - public function modify_callbacks($callbacks) |
|
58 | - { |
|
59 | - // now let's add the question group callback |
|
60 | - $callbacks[] = [$this, 'primary_question_group_update']; |
|
61 | - return $callbacks; |
|
62 | - } |
|
63 | - |
|
64 | - |
|
65 | - /** |
|
66 | - * Hooked into revision restores. |
|
67 | - * |
|
68 | - * @param $post_id |
|
69 | - * @param $revision_id |
|
70 | - * @return EE_Base_Class |
|
71 | - * @throws EE_Error |
|
72 | - * @throws InvalidArgumentException |
|
73 | - * @throws InvalidDataTypeException |
|
74 | - * @throws InvalidInterfaceException |
|
75 | - */ |
|
76 | - public function restore_revision($post_id, $revision_id) |
|
77 | - { |
|
78 | - $post_evt = EEM_Event::instance()->get_one_by_ID($post_id); |
|
79 | - // restore revision for primary questions |
|
80 | - if ($post_evt instanceof EE_Event) { |
|
81 | - $post_evt->restore_revision( |
|
82 | - $revision_id, |
|
83 | - ['Question_Group'], |
|
84 | - ['Question_Group' => ['Event_Question_Group.EQG_primary' => true]] |
|
85 | - ); |
|
86 | - } |
|
87 | - return $post_evt; |
|
88 | - } |
|
89 | - |
|
90 | - |
|
91 | - /** |
|
92 | - * Content of metabox. |
|
93 | - * |
|
94 | - * @param $post_id |
|
95 | - * @param $post |
|
96 | - * @throws EE_Error |
|
97 | - * @throws InvalidArgumentException |
|
98 | - * @throws InvalidDataTypeException |
|
99 | - * @throws InvalidInterfaceException |
|
100 | - * @throws ReflectionException |
|
101 | - */ |
|
102 | - public function primary_questions($post_id, $post) |
|
103 | - { |
|
104 | - $this->_event = $this->_adminpage_obj->get_event_object(); |
|
105 | - $event_id = $this->_event->ID(); |
|
106 | - ?> |
|
18 | + /** |
|
19 | + * @var EE_Event|null |
|
20 | + */ |
|
21 | + protected $_event; |
|
22 | + |
|
23 | + |
|
24 | + protected function _set_hooks_properties() |
|
25 | + { |
|
26 | + |
|
27 | + $this->_name = 'registration_form'; |
|
28 | + $this->_metaboxes = [ |
|
29 | + 0 => [ |
|
30 | + 'page_route' => ['edit', 'create_new'], |
|
31 | + 'func' => 'primary_questions', |
|
32 | + 'label' => esc_html__('Questions for Primary Registrant', 'event_espresso'), |
|
33 | + 'priority' => 'default', |
|
34 | + 'context' => 'side', |
|
35 | + ], |
|
36 | + ]; |
|
37 | + |
|
38 | + // hook into the handler for saving question groups |
|
39 | + add_filter( |
|
40 | + 'FHEE__Events_Admin_Page___insert_update_cpt_item__event_update_callbacks', |
|
41 | + [$this, 'modify_callbacks'], |
|
42 | + 10 |
|
43 | + ); |
|
44 | + |
|
45 | + // hook into revision restores (we're hooking into the global action because EE_Admin_Hooks classes are already |
|
46 | + // restricted by page) |
|
47 | + add_action('AHEE_EE_Admin_Page_CPT__restore_revision', [$this, 'restore_revision'], 10, 2); |
|
48 | + } |
|
49 | + |
|
50 | + |
|
51 | + /** |
|
52 | + * Callback for FHEE__Events_Admin_Page___insert_update_cpt_item__event_update_callbacks hook |
|
53 | + * |
|
54 | + * @param $callbacks |
|
55 | + * @return array |
|
56 | + */ |
|
57 | + public function modify_callbacks($callbacks) |
|
58 | + { |
|
59 | + // now let's add the question group callback |
|
60 | + $callbacks[] = [$this, 'primary_question_group_update']; |
|
61 | + return $callbacks; |
|
62 | + } |
|
63 | + |
|
64 | + |
|
65 | + /** |
|
66 | + * Hooked into revision restores. |
|
67 | + * |
|
68 | + * @param $post_id |
|
69 | + * @param $revision_id |
|
70 | + * @return EE_Base_Class |
|
71 | + * @throws EE_Error |
|
72 | + * @throws InvalidArgumentException |
|
73 | + * @throws InvalidDataTypeException |
|
74 | + * @throws InvalidInterfaceException |
|
75 | + */ |
|
76 | + public function restore_revision($post_id, $revision_id) |
|
77 | + { |
|
78 | + $post_evt = EEM_Event::instance()->get_one_by_ID($post_id); |
|
79 | + // restore revision for primary questions |
|
80 | + if ($post_evt instanceof EE_Event) { |
|
81 | + $post_evt->restore_revision( |
|
82 | + $revision_id, |
|
83 | + ['Question_Group'], |
|
84 | + ['Question_Group' => ['Event_Question_Group.EQG_primary' => true]] |
|
85 | + ); |
|
86 | + } |
|
87 | + return $post_evt; |
|
88 | + } |
|
89 | + |
|
90 | + |
|
91 | + /** |
|
92 | + * Content of metabox. |
|
93 | + * |
|
94 | + * @param $post_id |
|
95 | + * @param $post |
|
96 | + * @throws EE_Error |
|
97 | + * @throws InvalidArgumentException |
|
98 | + * @throws InvalidDataTypeException |
|
99 | + * @throws InvalidInterfaceException |
|
100 | + * @throws ReflectionException |
|
101 | + */ |
|
102 | + public function primary_questions($post_id, $post) |
|
103 | + { |
|
104 | + $this->_event = $this->_adminpage_obj->get_event_object(); |
|
105 | + $event_id = $this->_event->ID(); |
|
106 | + ?> |
|
107 | 107 | <div class="inside"> |
108 | 108 | <p> |
109 | 109 | <strong> |
@@ -111,64 +111,64 @@ discard block |
||
111 | 111 | </strong> |
112 | 112 | <br /> |
113 | 113 | <?php |
114 | - printf( |
|
115 | - esc_html__( |
|
116 | - 'Add a pre-populated %1$sgroup of questions%2$s to your event. The personal information group is required for all events', |
|
117 | - 'event_espresso' |
|
118 | - ), |
|
119 | - '<a href="admin.php?page=espresso_registration_form" target="_blank">', |
|
120 | - '</a>' |
|
121 | - ) |
|
122 | - ?> |
|
114 | + printf( |
|
115 | + esc_html__( |
|
116 | + 'Add a pre-populated %1$sgroup of questions%2$s to your event. The personal information group is required for all events', |
|
117 | + 'event_espresso' |
|
118 | + ), |
|
119 | + '<a href="admin.php?page=espresso_registration_form" target="_blank">', |
|
120 | + '</a>' |
|
121 | + ) |
|
122 | + ?> |
|
123 | 123 | </p> |
124 | 124 | <?php |
125 | 125 | |
126 | - $qsg_where['QSG_deleted'] = false; |
|
127 | - $query_params = apply_filters( |
|
128 | - 'FHEE__espresso_events_Registration_Form_Hooks__primary_questions__question_group_query_parameters', |
|
129 | - [$qsg_where, 'order_by' => ['QSG_order' => 'ASC']] |
|
130 | - ); |
|
131 | - $QSGs = EEM_Question_Group::instance()->get_all($query_params); |
|
132 | - $EQGs = ! empty($event_id) |
|
133 | - ? $this->_event->get_many_related( |
|
134 | - 'Question_Group', |
|
135 | - [['Event_Question_Group.EQG_primary' => true]] |
|
136 | - ) |
|
137 | - : []; |
|
138 | - $EQGids = array_keys($EQGs); |
|
139 | - |
|
140 | - if (! empty($QSGs)) { |
|
141 | - $html = count($QSGs) > 10 ? '<div style="height:250px;overflow:auto;">' : ''; |
|
142 | - foreach ($QSGs as $QSG) { |
|
143 | - $QSG_ID = absint($QSG->ID()); |
|
144 | - $checked = in_array($QSG_ID, $EQGids, true) || $QSG->get('QSG_system') === 1 |
|
145 | - ? ' checked="checked"' |
|
146 | - : ''; |
|
147 | - $visibility = $QSG->get('QSG_system') === 1 |
|
148 | - ? ' style="visibility:hidden"' |
|
149 | - : ''; |
|
150 | - $edit_query_args = $this->_adminpage_obj->is_caf() |
|
151 | - ? [ |
|
152 | - 'action' => 'edit_question_group', |
|
153 | - 'QSG_ID' => $QSG_ID, |
|
154 | - ] |
|
155 | - : ['action' => 'question_groups']; |
|
156 | - $edit_link = EE_Admin_Page::add_query_args_and_nonce( |
|
157 | - $edit_query_args, |
|
158 | - EE_FORMS_ADMIN_URL |
|
159 | - ); |
|
160 | - $edit_link_title = sprintf( |
|
161 | - esc_attr__('Edit %s Group', 'event_espresso'), |
|
162 | - $QSG->get('QSG_name') |
|
163 | - ); |
|
164 | - |
|
165 | - $html .= ' |
|
126 | + $qsg_where['QSG_deleted'] = false; |
|
127 | + $query_params = apply_filters( |
|
128 | + 'FHEE__espresso_events_Registration_Form_Hooks__primary_questions__question_group_query_parameters', |
|
129 | + [$qsg_where, 'order_by' => ['QSG_order' => 'ASC']] |
|
130 | + ); |
|
131 | + $QSGs = EEM_Question_Group::instance()->get_all($query_params); |
|
132 | + $EQGs = ! empty($event_id) |
|
133 | + ? $this->_event->get_many_related( |
|
134 | + 'Question_Group', |
|
135 | + [['Event_Question_Group.EQG_primary' => true]] |
|
136 | + ) |
|
137 | + : []; |
|
138 | + $EQGids = array_keys($EQGs); |
|
139 | + |
|
140 | + if (! empty($QSGs)) { |
|
141 | + $html = count($QSGs) > 10 ? '<div style="height:250px;overflow:auto;">' : ''; |
|
142 | + foreach ($QSGs as $QSG) { |
|
143 | + $QSG_ID = absint($QSG->ID()); |
|
144 | + $checked = in_array($QSG_ID, $EQGids, true) || $QSG->get('QSG_system') === 1 |
|
145 | + ? ' checked="checked"' |
|
146 | + : ''; |
|
147 | + $visibility = $QSG->get('QSG_system') === 1 |
|
148 | + ? ' style="visibility:hidden"' |
|
149 | + : ''; |
|
150 | + $edit_query_args = $this->_adminpage_obj->is_caf() |
|
151 | + ? [ |
|
152 | + 'action' => 'edit_question_group', |
|
153 | + 'QSG_ID' => $QSG_ID, |
|
154 | + ] |
|
155 | + : ['action' => 'question_groups']; |
|
156 | + $edit_link = EE_Admin_Page::add_query_args_and_nonce( |
|
157 | + $edit_query_args, |
|
158 | + EE_FORMS_ADMIN_URL |
|
159 | + ); |
|
160 | + $edit_link_title = sprintf( |
|
161 | + esc_attr__('Edit %s Group', 'event_espresso'), |
|
162 | + $QSG->get('QSG_name') |
|
163 | + ); |
|
164 | + |
|
165 | + $html .= ' |
|
166 | 166 | <p id="event-question-group-' . $QSG_ID . '"> |
167 | 167 | <input value="' . $QSG_ID . '" |
168 | 168 | type="checkbox" |
169 | 169 | name="question_groups[' . $QSG_ID . ']" ' |
170 | - . esc_attr($visibility) |
|
171 | - . esc_attr($checked) . ' |
|
170 | + . esc_attr($visibility) |
|
171 | + . esc_attr($checked) . ' |
|
172 | 172 | /> |
173 | 173 | <a href="' . esc_url_raw($edit_link) . '" |
174 | 174 | title="' . esc_attr($edit_link_title) . '" |
@@ -177,63 +177,63 @@ discard block |
||
177 | 177 | ' . $QSG->get('QSG_name') . ' |
178 | 178 | </a> |
179 | 179 | </p>'; |
180 | - } |
|
181 | - $html .= count($QSGs) > 10 ? '</div>' : ''; |
|
182 | - |
|
183 | - echo $html; // already escaped |
|
184 | - } else { |
|
185 | - esc_html_e( |
|
186 | - 'There seems to be a problem with your questions. Please contact [email protected]', |
|
187 | - 'event_espresso' |
|
188 | - ); |
|
189 | - } |
|
190 | - do_action('AHEE_event_editor_questions_notice'); |
|
191 | - ?> |
|
180 | + } |
|
181 | + $html .= count($QSGs) > 10 ? '</div>' : ''; |
|
182 | + |
|
183 | + echo $html; // already escaped |
|
184 | + } else { |
|
185 | + esc_html_e( |
|
186 | + 'There seems to be a problem with your questions. Please contact [email protected]', |
|
187 | + 'event_espresso' |
|
188 | + ); |
|
189 | + } |
|
190 | + do_action('AHEE_event_editor_questions_notice'); |
|
191 | + ?> |
|
192 | 192 | </div> |
193 | 193 | <?php |
194 | - } |
|
195 | - |
|
196 | - |
|
197 | - /** |
|
198 | - * @param EE_Event $event |
|
199 | - * @param array $data |
|
200 | - * @return bool |
|
201 | - * @throws EE_Error |
|
202 | - * @throws ReflectionException |
|
203 | - */ |
|
204 | - public function primary_question_group_update($event, $data) |
|
205 | - { |
|
206 | - $question_groups = ! empty($data['question_groups']) ? (array) $data['question_groups'] : []; |
|
207 | - $added_qgs = array_keys($question_groups); |
|
208 | - $success = true; |
|
209 | - |
|
210 | - // let's get all current question groups associated with this event. |
|
211 | - $current_qgs = $event->get_many_related( |
|
212 | - 'Question_Group', |
|
213 | - [['Event_Question_Group.EQG_primary' => true]] |
|
214 | - ); |
|
215 | - $current_qgs = array_keys($current_qgs); // we just want the ids |
|
216 | - |
|
217 | - // now let's get the groups selected in the editor and update (IF we have data) |
|
218 | - if (! empty($question_groups)) { |
|
219 | - foreach ($question_groups as $QSG_ID => $val) { |
|
220 | - // add to event |
|
221 | - if ($val) { |
|
222 | - $qg = $event->_add_relation_to($QSG_ID, 'Question_Group', ['EQG_primary' => true]); |
|
223 | - } |
|
224 | - // trip success to false if result is empty |
|
225 | - $success = ! empty($qg) ? $success : false; |
|
226 | - } |
|
227 | - } |
|
228 | - |
|
229 | - // wait a minute... are there question groups missing in the saved groups that ARE with the current event? |
|
230 | - $removed_qgs = array_diff($current_qgs, $added_qgs); |
|
231 | - |
|
232 | - foreach ($removed_qgs as $QSG_ID) { |
|
233 | - $qg = $event->_remove_relation_to($QSG_ID, 'Question_Group', ['EQG_primary' => true]); |
|
234 | - // trip success to false if result is empty |
|
235 | - $success = ! empty($qg) ? $success : false; |
|
236 | - } |
|
237 | - return $success; |
|
238 | - } |
|
194 | + } |
|
195 | + |
|
196 | + |
|
197 | + /** |
|
198 | + * @param EE_Event $event |
|
199 | + * @param array $data |
|
200 | + * @return bool |
|
201 | + * @throws EE_Error |
|
202 | + * @throws ReflectionException |
|
203 | + */ |
|
204 | + public function primary_question_group_update($event, $data) |
|
205 | + { |
|
206 | + $question_groups = ! empty($data['question_groups']) ? (array) $data['question_groups'] : []; |
|
207 | + $added_qgs = array_keys($question_groups); |
|
208 | + $success = true; |
|
209 | + |
|
210 | + // let's get all current question groups associated with this event. |
|
211 | + $current_qgs = $event->get_many_related( |
|
212 | + 'Question_Group', |
|
213 | + [['Event_Question_Group.EQG_primary' => true]] |
|
214 | + ); |
|
215 | + $current_qgs = array_keys($current_qgs); // we just want the ids |
|
216 | + |
|
217 | + // now let's get the groups selected in the editor and update (IF we have data) |
|
218 | + if (! empty($question_groups)) { |
|
219 | + foreach ($question_groups as $QSG_ID => $val) { |
|
220 | + // add to event |
|
221 | + if ($val) { |
|
222 | + $qg = $event->_add_relation_to($QSG_ID, 'Question_Group', ['EQG_primary' => true]); |
|
223 | + } |
|
224 | + // trip success to false if result is empty |
|
225 | + $success = ! empty($qg) ? $success : false; |
|
226 | + } |
|
227 | + } |
|
228 | + |
|
229 | + // wait a minute... are there question groups missing in the saved groups that ARE with the current event? |
|
230 | + $removed_qgs = array_diff($current_qgs, $added_qgs); |
|
231 | + |
|
232 | + foreach ($removed_qgs as $QSG_ID) { |
|
233 | + $qg = $event->_remove_relation_to($QSG_ID, 'Question_Group', ['EQG_primary' => true]); |
|
234 | + // trip success to false if result is empty |
|
235 | + $success = ! empty($qg) ? $success : false; |
|
236 | + } |
|
237 | + return $success; |
|
238 | + } |
|
239 | 239 | } |
@@ -135,9 +135,9 @@ discard block |
||
135 | 135 | [['Event_Question_Group.EQG_primary' => true]] |
136 | 136 | ) |
137 | 137 | : []; |
138 | - $EQGids = array_keys($EQGs); |
|
138 | + $EQGids = array_keys($EQGs); |
|
139 | 139 | |
140 | - if (! empty($QSGs)) { |
|
140 | + if ( ! empty($QSGs)) { |
|
141 | 141 | $html = count($QSGs) > 10 ? '<div style="height:250px;overflow:auto;">' : ''; |
142 | 142 | foreach ($QSGs as $QSG) { |
143 | 143 | $QSG_ID = absint($QSG->ID()); |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | 'QSG_ID' => $QSG_ID, |
154 | 154 | ] |
155 | 155 | : ['action' => 'question_groups']; |
156 | - $edit_link = EE_Admin_Page::add_query_args_and_nonce( |
|
156 | + $edit_link = EE_Admin_Page::add_query_args_and_nonce( |
|
157 | 157 | $edit_query_args, |
158 | 158 | EE_FORMS_ADMIN_URL |
159 | 159 | ); |
@@ -163,18 +163,18 @@ discard block |
||
163 | 163 | ); |
164 | 164 | |
165 | 165 | $html .= ' |
166 | - <p id="event-question-group-' . $QSG_ID . '"> |
|
167 | - <input value="' . $QSG_ID . '" |
|
166 | + <p id="event-question-group-' . $QSG_ID.'"> |
|
167 | + <input value="' . $QSG_ID.'" |
|
168 | 168 | type="checkbox" |
169 | - name="question_groups[' . $QSG_ID . ']" ' |
|
169 | + name="question_groups[' . $QSG_ID.']" ' |
|
170 | 170 | . esc_attr($visibility) |
171 | - . esc_attr($checked) . ' |
|
171 | + . esc_attr($checked).' |
|
172 | 172 | /> |
173 | - <a href="' . esc_url_raw($edit_link) . '" |
|
174 | - title="' . esc_attr($edit_link_title) . '" |
|
173 | + <a href="' . esc_url_raw($edit_link).'" |
|
174 | + title="' . esc_attr($edit_link_title).'" |
|
175 | 175 | target="_blank" |
176 | 176 | > |
177 | - ' . $QSG->get('QSG_name') . ' |
|
177 | + ' . $QSG->get('QSG_name').' |
|
178 | 178 | </a> |
179 | 179 | </p>'; |
180 | 180 | } |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | $current_qgs = array_keys($current_qgs); // we just want the ids |
216 | 216 | |
217 | 217 | // now let's get the groups selected in the editor and update (IF we have data) |
218 | - if (! empty($question_groups)) { |
|
218 | + if ( ! empty($question_groups)) { |
|
219 | 219 | foreach ($question_groups as $QSG_ID => $val) { |
220 | 220 | // add to event |
221 | 221 | if ($val) { |
@@ -3,9 +3,9 @@ discard block |
||
3 | 3 | </p> |
4 | 4 | <p> |
5 | 5 | <?php esc_html_e( |
6 | - 'This page shows options for Email Validation, the EE "Bot Trap" and reCAPTCHA which can help prevent SPAM registrations on your site.', |
|
7 | - 'event_espresso' |
|
8 | - ); ?> |
|
6 | + 'This page shows options for Email Validation, the EE "Bot Trap" and reCAPTCHA which can help prevent SPAM registrations on your site.', |
|
7 | + 'event_espresso' |
|
8 | + ); ?> |
|
9 | 9 | </p> |
10 | 10 | <div id="email_validation_info"> |
11 | 11 | <p> |
@@ -13,9 +13,9 @@ discard block |
||
13 | 13 | </p> |
14 | 14 | <p> |
15 | 15 | <?php esc_html_e( |
16 | - "Validating an email address is extremely difficult to do correctly. Your server's configuration, as well as your own tolerances and needs, can affect the type of validation needed. We offer different types of validation so that you can control how strict your registration form responds to entered email addresses. If you are receiving too many bogus email addresses, then you can try the WordPress Default validation setting. If you find that the form validation is blocking a valid email address you can try the Basic setting, or if available, the International validation settings.", |
|
17 | - 'event_espresso' |
|
18 | - ); ?> |
|
16 | + "Validating an email address is extremely difficult to do correctly. Your server's configuration, as well as your own tolerances and needs, can affect the type of validation needed. We offer different types of validation so that you can control how strict your registration form responds to entered email addresses. If you are receiving too many bogus email addresses, then you can try the WordPress Default validation setting. If you find that the form validation is blocking a valid email address you can try the Basic setting, or if available, the International validation settings.", |
|
17 | + 'event_espresso' |
|
18 | + ); ?> |
|
19 | 19 | </p> |
20 | 20 | <p> |
21 | 21 | <strong><?php esc_html_e('Validation Options:', 'event_espresso'); ?></strong> |
@@ -23,27 +23,27 @@ discard block |
||
23 | 23 | <ul> |
24 | 24 | <li> |
25 | 25 | <?php esc_html_e( |
26 | - '"Basic" - only checks that an email address follows the most basic structure guidelines ( ie: [email protected] ). Will work with the widest range of email addresses but will also allow the most garbage through.', |
|
27 | - 'event_espresso' |
|
28 | - ); ?> |
|
26 | + '"Basic" - only checks that an email address follows the most basic structure guidelines ( ie: [email protected] ). Will work with the widest range of email addresses but will also allow the most garbage through.', |
|
27 | + 'event_espresso' |
|
28 | + ); ?> |
|
29 | 29 | </li> |
30 | 30 | <li> |
31 | 31 | <?php esc_html_e( |
32 | - '"WordPress Default" - uses built in WordPress email validation, but does not support unicode characters (ie: international characters from non-latin based languages).', |
|
33 | - 'event_espresso' |
|
34 | - ); ?> |
|
32 | + '"WordPress Default" - uses built in WordPress email validation, but does not support unicode characters (ie: international characters from non-latin based languages).', |
|
33 | + 'event_espresso' |
|
34 | + ); ?> |
|
35 | 35 | </li> |
36 | 36 | <li> |
37 | 37 | <?php esc_html_e( |
38 | - '"International" - supports unicode characters but may not be supported by all server configurations. Try this first if you need to international language support, but drop back down to "Basic" if your server configuration conflicts.', |
|
39 | - 'event_espresso' |
|
40 | - ); ?> |
|
38 | + '"International" - supports unicode characters but may not be supported by all server configurations. Try this first if you need to international language support, but drop back down to "Basic" if your server configuration conflicts.', |
|
39 | + 'event_espresso' |
|
40 | + ); ?> |
|
41 | 41 | </li> |
42 | 42 | <li> |
43 | 43 | <?php esc_html_e( |
44 | - '"International + DNS Check" - same as "International" but also performs MX and A record DNS checks to verify that the email address domain exists (ie: the portion of the address after the "@"). Can not verify that the local portion of the email address is valid (ie: the first portion of the address before the "@").', |
|
45 | - 'event_espresso' |
|
46 | - ); ?> |
|
44 | + '"International + DNS Check" - same as "International" but also performs MX and A record DNS checks to verify that the email address domain exists (ie: the portion of the address after the "@"). Can not verify that the local portion of the email address is valid (ie: the first portion of the address before the "@").', |
|
45 | + 'event_espresso' |
|
46 | + ); ?> |
|
47 | 47 | </li> |
48 | 48 | </ul> |
49 | 49 | </div> |
@@ -51,21 +51,21 @@ discard block |
||
51 | 51 | <p><strong><?php esc_html_e('reCAPTCHA Information', 'event_espresso'); ?></strong></p> |
52 | 52 | <p> |
53 | 53 | <?php printf( |
54 | - esc_html__( |
|
55 | - '%s helps prevent automated abuse of your site (such as comment spam or bogus registrations) by using a reCAPTCHA to ensure that only humans perform certain actions.', |
|
56 | - 'event_espresso' |
|
57 | - ), |
|
58 | - '<a href="https://www.google.com/recaptcha/intro/index.html" target="_blank" rel="noopener noreferrer">reCAPTCHA</a>' |
|
59 | - ); ?> |
|
54 | + esc_html__( |
|
55 | + '%s helps prevent automated abuse of your site (such as comment spam or bogus registrations) by using a reCAPTCHA to ensure that only humans perform certain actions.', |
|
56 | + 'event_espresso' |
|
57 | + ), |
|
58 | + '<a href="https://www.google.com/recaptcha/intro/index.html" target="_blank" rel="noopener noreferrer">reCAPTCHA</a>' |
|
59 | + ); ?> |
|
60 | 60 | </p> |
61 | 61 | <p> |
62 | 62 | <?php printf( |
63 | - esc_html__( |
|
64 | - 'You must sign up for a free %s account to use it with this plugin. If you already have a reCAPTCHA account enter your "Public" and "Private" keys on this page.', |
|
65 | - 'event_espresso' |
|
66 | - ), |
|
67 | - '<a href="https://www.google.com/recaptcha/admin#createsite" target="_blank" rel="noopener noreferrer">reCAPTCHA</a>' |
|
68 | - ); ?> |
|
63 | + esc_html__( |
|
64 | + 'You must sign up for a free %s account to use it with this plugin. If you already have a reCAPTCHA account enter your "Public" and "Private" keys on this page.', |
|
65 | + 'event_espresso' |
|
66 | + ), |
|
67 | + '<a href="https://www.google.com/recaptcha/admin#createsite" target="_blank" rel="noopener noreferrer">reCAPTCHA</a>' |
|
68 | + ); ?> |
|
69 | 69 | </p> |
70 | 70 | <p><strong><?php esc_html_e('Helpful Information:', 'event_espresso'); ?></strong></p> |
71 | 71 | <ul> |
@@ -82,14 +82,14 @@ discard block |
||
82 | 82 | <p> |
83 | 83 | <strong><?php esc_html_e('Recommendations', 'event_espresso'); ?></strong><br /> |
84 | 84 | <?php esc_html_e( |
85 | - 'Want to see a tour of this screen? Click on the Registration Form Settings Tour button which appears on the right side of the page. To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
86 | - 'event_espresso' |
|
87 | - ); ?> |
|
85 | + 'Want to see a tour of this screen? Click on the Registration Form Settings Tour button which appears on the right side of the page. To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
86 | + 'event_espresso' |
|
87 | + ); ?> |
|
88 | 88 | </p> |
89 | 89 | <p> |
90 | 90 | <strong><?php esc_html_e('Screen Options', 'event_espresso'); ?></strong><br /> |
91 | 91 | <?php esc_html_e( |
92 | - 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
93 | - 'event_espresso' |
|
94 | - ); ?> |
|
92 | + 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
93 | + 'event_espresso' |
|
94 | + ); ?> |
|
95 | 95 | </p> |
@@ -8,81 +8,81 @@ |
||
8 | 8 | </p> |
9 | 9 | <p> |
10 | 10 | <?php printf( |
11 | - esc_html__('This page allows you to add a new question group for %s.', 'event_espresso'), |
|
12 | - Domain::brandName() |
|
13 | - ); ?> |
|
11 | + esc_html__('This page allows you to add a new question group for %s.', 'event_espresso'), |
|
12 | + Domain::brandName() |
|
13 | + ); ?> |
|
14 | 14 | </p> |
15 | 15 | <ul> |
16 | 16 | <li> |
17 | 17 | <strong><?php esc_html_e('Group Name', 'event_espresso'); ?></strong> |
18 | 18 | <br /> |
19 | 19 | <?php esc_html_e( |
20 | - 'This is the name (title) of the question group as it will be displayed on the registration form. HTML cannot be used.', |
|
21 | - 'event_espresso' |
|
22 | - ); ?> |
|
20 | + 'This is the name (title) of the question group as it will be displayed on the registration form. HTML cannot be used.', |
|
21 | + 'event_espresso' |
|
22 | + ); ?> |
|
23 | 23 | </li> |
24 | 24 | <li> |
25 | 25 | <strong><?php esc_html_e('Group Identifier', 'event_espresso'); ?></strong> |
26 | 26 | <br /> |
27 | 27 | <?php esc_html_e( |
28 | - 'This is a unique name (slug) for this group. It helps you tell the difference between this group and other groups that may appear to be similar. It is not shown to registrants and HTML cannot be used.', |
|
29 | - 'event_espresso' |
|
30 | - ); ?> |
|
28 | + 'This is a unique name (slug) for this group. It helps you tell the difference between this group and other groups that may appear to be similar. It is not shown to registrants and HTML cannot be used.', |
|
29 | + 'event_espresso' |
|
30 | + ); ?> |
|
31 | 31 | </li> |
32 | 32 | <li> |
33 | 33 | <strong><?php esc_html_e('Group Description', 'event_espresso'); ?></strong> |
34 | 34 | <br /> |
35 | 35 | <?php esc_html_e( |
36 | - 'This is the description for the question group as it will be shown on the registration form. This can be shown to registrants and HTML is allowed.', |
|
37 | - 'event_espresso' |
|
38 | - ); ?> |
|
36 | + 'This is the description for the question group as it will be shown on the registration form. This can be shown to registrants and HTML is allowed.', |
|
37 | + 'event_espresso' |
|
38 | + ); ?> |
|
39 | 39 | </li> |
40 | 40 | <li> |
41 | 41 | <strong><?php esc_html_e('Question Group Order', 'event_espresso'); ?></strong> |
42 | 42 | <br /> |
43 | 43 | <?php esc_html_e( |
44 | - 'Question Groups can be sorted by using the drag and drop feature on the Questions Group page. Another way to sort question groups is to adjust their order of application by using this field. A smaller order of application will be shown first. For example, a question group with an order of application of 1 will appear before one that has an order of application of 5.', |
|
45 | - 'event_espresso' |
|
46 | - ); ?> |
|
44 | + 'Question Groups can be sorted by using the drag and drop feature on the Questions Group page. Another way to sort question groups is to adjust their order of application by using this field. A smaller order of application will be shown first. For example, a question group with an order of application of 1 will appear before one that has an order of application of 5.', |
|
45 | + 'event_espresso' |
|
46 | + ); ?> |
|
47 | 47 | </li> |
48 | 48 | <li> |
49 | 49 | <strong><?php esc_html_e('Show Name', 'event_espresso'); ?></strong> |
50 | 50 | <br /> |
51 | 51 | <?php esc_html_e( |
52 | - 'Whether the group name will be displayed on the registration form.', |
|
53 | - 'event_espresso' |
|
54 | - ); ?> |
|
52 | + 'Whether the group name will be displayed on the registration form.', |
|
53 | + 'event_espresso' |
|
54 | + ); ?> |
|
55 | 55 | </li> |
56 | 56 | <li> |
57 | 57 | <strong><?php esc_html_e('Show Description', 'event_espresso'); ?></strong> |
58 | 58 | <br /> |
59 | 59 | <?php esc_html_e( |
60 | - 'Whether the description for the question group be will displayed on the registration form.', |
|
61 | - 'event_espresso' |
|
62 | - ); ?> |
|
60 | + 'Whether the description for the question group be will displayed on the registration form.', |
|
61 | + 'event_espresso' |
|
62 | + ); ?> |
|
63 | 63 | </li> |
64 | 64 | <li> |
65 | 65 | <strong><?php esc_html_e('Questions that appear in this group', 'event_espresso'); ?></strong> |
66 | 66 | <br /> |
67 | 67 | <?php esc_html_e( |
68 | - 'This shows all available custom questions. If checked, then that question will appear with this question group.', |
|
69 | - 'event_espresso' |
|
70 | - ); ?> |
|
68 | + 'This shows all available custom questions. If checked, then that question will appear with this question group.', |
|
69 | + 'event_espresso' |
|
70 | + ); ?> |
|
71 | 71 | </li> |
72 | 72 | </ul> |
73 | 73 | <p> |
74 | 74 | <strong><?php esc_html_e('Recommendations', 'event_espresso'); ?></strong> |
75 | 75 | <br /> |
76 | 76 | <?php esc_html_e( |
77 | - 'Want to see a tour of this screen? Click on the Add New Question Group Tour button which appears on the right side of the page. To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
78 | - 'event_espresso' |
|
79 | - ); ?> |
|
77 | + 'Want to see a tour of this screen? Click on the Add New Question Group Tour button which appears on the right side of the page. To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
78 | + 'event_espresso' |
|
79 | + ); ?> |
|
80 | 80 | </p> |
81 | 81 | <p> |
82 | 82 | <strong><?php esc_html_e('Screen Options', 'event_espresso'); ?></strong> |
83 | 83 | <br /> |
84 | 84 | <?php esc_html_e( |
85 | - 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
86 | - 'event_espresso' |
|
87 | - ); ?> |
|
85 | + 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
86 | + 'event_espresso' |
|
87 | + ); ?> |
|
88 | 88 | </p> |
89 | 89 | \ No newline at end of file |
@@ -8,34 +8,34 @@ discard block |
||
8 | 8 | </p> |
9 | 9 | <p> |
10 | 10 | <?php printf( |
11 | - esc_html__('This page allows you to add a new question for %s.', 'event_espresso'), |
|
12 | - Domain::brandName() |
|
13 | - ); ?> |
|
11 | + esc_html__('This page allows you to add a new question for %s.', 'event_espresso'), |
|
12 | + Domain::brandName() |
|
13 | + ); ?> |
|
14 | 14 | </p> |
15 | 15 | <ul> |
16 | 16 | <li> |
17 | 17 | <strong><?php esc_html_e('Question Text', 'event_espresso'); ?></strong> |
18 | 18 | <br /> |
19 | 19 | <?php esc_html_e( |
20 | - 'This shows the question as it will be displayed on the registration form. HTML can be used here.', |
|
21 | - 'event_espresso' |
|
22 | - ); ?> |
|
20 | + 'This shows the question as it will be displayed on the registration form. HTML can be used here.', |
|
21 | + 'event_espresso' |
|
22 | + ); ?> |
|
23 | 23 | </li> |
24 | 24 | <li> |
25 | 25 | <strong><?php esc_html_e('Question Label (admin-only)', 'event_espresso'); ?></strong> |
26 | 26 | <br /> |
27 | 27 | <?php esc_html_e( |
28 | - 'This field is only shown to the admin. It is useful for understanding the difference between questions that appear to be similar but are used in various situations. HTML cannot be used.', |
|
29 | - 'event_espresso' |
|
30 | - ); ?> |
|
28 | + 'This field is only shown to the admin. It is useful for understanding the difference between questions that appear to be similar but are used in various situations. HTML cannot be used.', |
|
29 | + 'event_espresso' |
|
30 | + ); ?> |
|
31 | 31 | </li> |
32 | 32 | <li> |
33 | 33 | <strong><?php esc_html_e('Question Order', 'event_espresso'); ?></strong> |
34 | 34 | <br /> |
35 | 35 | <?php esc_html_e( |
36 | - 'Questions can be sorted by using the drag and drop feature on the Questions Overview page. Another way to sort questions is to adjust their order of application by using this field. A smaller order of application will be shown first. For example, a question with an order of application of 1 will appear before one that has an order of application of 5.', |
|
37 | - 'event_espresso' |
|
38 | - ); ?> |
|
36 | + 'Questions can be sorted by using the drag and drop feature on the Questions Overview page. Another way to sort questions is to adjust their order of application by using this field. A smaller order of application will be shown first. For example, a question with an order of application of 1 will appear before one that has an order of application of 5.', |
|
37 | + 'event_espresso' |
|
38 | + ); ?> |
|
39 | 39 | </li> |
40 | 40 | <li> |
41 | 41 | <strong><?php esc_html_e('Admin-Only Question?', 'event_espresso'); ?></strong> |
@@ -46,9 +46,9 @@ discard block |
||
46 | 46 | <strong><?php esc_html_e('Question Type', 'event_espresso'); ?></strong> |
47 | 47 | <br /> |
48 | 48 | <?php esc_html_e( |
49 | - 'This shows the type of question. Available options are Text, Textarea, Checkboxes, Radio Buttons, Dropdown, State/Province Dropdown, Country Dropdown, and Date Picker.', |
|
50 | - 'event_espresso' |
|
51 | - ); ?> |
|
49 | + 'This shows the type of question. Available options are Text, Textarea, Checkboxes, Radio Buttons, Dropdown, State/Province Dropdown, Country Dropdown, and Date Picker.', |
|
50 | + 'event_espresso' |
|
51 | + ); ?> |
|
52 | 52 | </li> |
53 | 53 | <li> |
54 | 54 | <strong><?php esc_html_e('Answer Options (for applicable question types)', 'event_espresso'); ?></strong> |
@@ -64,24 +64,24 @@ discard block |
||
64 | 64 | <strong><?php esc_html_e('Required Text', 'event_espresso'); ?></strong> |
65 | 65 | <br /> |
66 | 66 | <?php esc_html_e( |
67 | - 'This text is displayed when a registrant does not answer a question but is required to do so. The default message will show "this field is required."', |
|
68 | - 'event_espresso' |
|
69 | - ); ?> |
|
67 | + 'This text is displayed when a registrant does not answer a question but is required to do so. The default message will show "this field is required."', |
|
68 | + 'event_espresso' |
|
69 | + ); ?> |
|
70 | 70 | </li> |
71 | 71 | </ul> |
72 | 72 | <p> |
73 | 73 | <strong><?php esc_html_e('Recommendations', 'event_espresso'); ?></strong> |
74 | 74 | <br /> |
75 | 75 | <?php esc_html_e( |
76 | - 'Want to see a tour of this screen? Click on the Add New Question Tour button which appears on the right side of the page. To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
77 | - 'event_espresso' |
|
78 | - ); ?> |
|
76 | + 'Want to see a tour of this screen? Click on the Add New Question Tour button which appears on the right side of the page. To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
77 | + 'event_espresso' |
|
78 | + ); ?> |
|
79 | 79 | </p> |
80 | 80 | <p> |
81 | 81 | <strong><?php esc_html_e('Screen Options', 'event_espresso'); ?></strong> |
82 | 82 | <br /> |
83 | 83 | <?php esc_html_e( |
84 | - 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
85 | - 'event_espresso' |
|
86 | - ); ?> |
|
84 | + 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
85 | + 'event_espresso' |
|
86 | + ); ?> |
|
87 | 87 | </p> |
88 | 88 | \ No newline at end of file |
@@ -3,16 +3,16 @@ discard block |
||
3 | 3 | </p> |
4 | 4 | <p> |
5 | 5 | <?php esc_html_e( |
6 | - 'Bulk actions allow you to perform an action to multiple questions at once. The following bulk actions are supported: Move to Trash. To use the bulk action feature, place a checkmark next to the questions that you want to include. Then select a bulk action from the menu and click on the Apply button.', |
|
7 | - 'event_espresso' |
|
8 | - ); ?> |
|
6 | + 'Bulk actions allow you to perform an action to multiple questions at once. The following bulk actions are supported: Move to Trash. To use the bulk action feature, place a checkmark next to the questions that you want to include. Then select a bulk action from the menu and click on the Apply button.', |
|
7 | + 'event_espresso' |
|
8 | + ); ?> |
|
9 | 9 | </p> |
10 | 10 | <p><strong><?php esc_html_e('Question Groups Views', 'event_espresso'); ?></strong></p> |
11 | 11 | <p> |
12 | 12 | <?php esc_html_e( |
13 | - 'Views allow you to restrict what you see in the Questions Overview table. The following views are available: All and Trash. The number in parentheses next to each view represents the number of questions that will be displayed with that view.', |
|
14 | - 'event_espresso' |
|
15 | - ); ?> |
|
13 | + 'Views allow you to restrict what you see in the Questions Overview table. The following views are available: All and Trash. The number in parentheses next to each view represents the number of questions that will be displayed with that view.', |
|
14 | + 'event_espresso' |
|
15 | + ); ?> |
|
16 | 16 | </p> |
17 | 17 | <ul> |
18 | 18 | <li> |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | <p><strong><?php esc_html_e('Question Groups Search', 'event_espresso'); ?></strong></p> |
28 | 28 | <p> |
29 | 29 | <?php esc_html_e( |
30 | - 'You can perform a search to find certain question groups. The following sources will be searched: Question Group (name of question group). To use the search feature, enter a value into the search box and click on the Search Questions Groups button.', |
|
31 | - 'event_espresso' |
|
32 | - ); ?> |
|
30 | + 'You can perform a search to find certain question groups. The following sources will be searched: Question Group (name of question group). To use the search feature, enter a value into the search box and click on the Search Questions Groups button.', |
|
31 | + 'event_espresso' |
|
32 | + ); ?> |
|
33 | 33 | </p> |
34 | 34 | \ No newline at end of file |
@@ -8,34 +8,34 @@ discard block |
||
8 | 8 | <strong><?php esc_html_e('Notice', 'event_espresso'); ?></strong> |
9 | 9 | <br /> |
10 | 10 | <?php esc_html_e( |
11 | - 'System questions may have some options disabled. This is to ensure that your registrations don\'t break from accidental changes.', |
|
12 | - 'event_espresso' |
|
13 | - ); ?> |
|
11 | + 'System questions may have some options disabled. This is to ensure that your registrations don\'t break from accidental changes.', |
|
12 | + 'event_espresso' |
|
13 | + ); ?> |
|
14 | 14 | </p> |
15 | 15 | <ul> |
16 | 16 | <li> |
17 | 17 | <strong><?php esc_html_e('Question Text', 'event_espresso'); ?></strong> |
18 | 18 | <br /> |
19 | 19 | <?php esc_html_e( |
20 | - 'This shows the question as it will be displayed on the registration form. HTML can be used here.', |
|
21 | - 'event_espresso' |
|
22 | - ); ?> |
|
20 | + 'This shows the question as it will be displayed on the registration form. HTML can be used here.', |
|
21 | + 'event_espresso' |
|
22 | + ); ?> |
|
23 | 23 | </li> |
24 | 24 | <li> |
25 | 25 | <strong><?php esc_html_e('Question Label (admin-only)', 'event_espresso'); ?></strong> |
26 | 26 | <br /> |
27 | 27 | <?php esc_html_e( |
28 | - 'This field is only shown to the admin. It is useful for understanding the difference between questions that appear to be similar but are used in various situations. HTML cannot be used.', |
|
29 | - 'event_espresso' |
|
30 | - ); ?> |
|
28 | + 'This field is only shown to the admin. It is useful for understanding the difference between questions that appear to be similar but are used in various situations. HTML cannot be used.', |
|
29 | + 'event_espresso' |
|
30 | + ); ?> |
|
31 | 31 | </li> |
32 | 32 | <li> |
33 | 33 | <strong><?php esc_html_e('Question Order', 'event_espresso'); ?></strong> |
34 | 34 | <br /> |
35 | 35 | <?php esc_html_e( |
36 | - 'Questions are now sorted per question group. To order the questions edit a question group and you can reorder the questions attached to that group.', |
|
37 | - 'event_espresso' |
|
38 | - ); ?> |
|
36 | + 'Questions are now sorted per question group. To order the questions edit a question group and you can reorder the questions attached to that group.', |
|
37 | + 'event_espresso' |
|
38 | + ); ?> |
|
39 | 39 | </li> |
40 | 40 | <li> |
41 | 41 | <strong><?php esc_html_e('Admin-Only Question?', 'event_espresso'); ?></strong> |
@@ -46,17 +46,17 @@ discard block |
||
46 | 46 | <strong><?php esc_html_e('Question Type', 'event_espresso'); ?></strong> |
47 | 47 | <br /> |
48 | 48 | <?php esc_html_e( |
49 | - 'This shows the type of question. Available options are Text, Textarea, Checkboxes, Radio Buttons, Dropdown, State/Province Dropdown, Country Dropdown, Date Picker, and HTML Textarea (allowed tags: a, abbr, acronym, b, br, blockquote ,cite, code, del ,em, i, li, ol, p, q, s, strike, strong, ul).', |
|
50 | - 'event_espresso' |
|
51 | - ); ?> |
|
49 | + 'This shows the type of question. Available options are Text, Textarea, Checkboxes, Radio Buttons, Dropdown, State/Province Dropdown, Country Dropdown, Date Picker, and HTML Textarea (allowed tags: a, abbr, acronym, b, br, blockquote ,cite, code, del ,em, i, li, ol, p, q, s, strike, strong, ul).', |
|
50 | + 'event_espresso' |
|
51 | + ); ?> |
|
52 | 52 | </li> |
53 | 53 | <li> |
54 | 54 | <strong><?php esc_html_e('Answer Options (for applicable question types)', 'event_espresso'); ?></strong> |
55 | 55 | <strong> |
56 | 56 | <?php esc_html_e( |
57 | - 'Values do not allow any HTML, however, descriptions do allow HTML.', |
|
58 | - 'event_espresso' |
|
59 | - ); ?> |
|
57 | + 'Values do not allow any HTML, however, descriptions do allow HTML.', |
|
58 | + 'event_espresso' |
|
59 | + ); ?> |
|
60 | 60 | </strong> |
61 | 61 | </li> |
62 | 62 | <li> |
@@ -68,24 +68,24 @@ discard block |
||
68 | 68 | <strong><?php esc_html_e('Required Text', 'event_espresso'); ?></strong> |
69 | 69 | <br /> |
70 | 70 | <?php esc_html_e( |
71 | - 'This text is displayed when a registrant does not answer a question but is required to do so. The default message will show "this field is required."', |
|
72 | - 'event_espresso' |
|
73 | - ); ?> |
|
71 | + 'This text is displayed when a registrant does not answer a question but is required to do so. The default message will show "this field is required."', |
|
72 | + 'event_espresso' |
|
73 | + ); ?> |
|
74 | 74 | </li> |
75 | 75 | </ul> |
76 | 76 | <p> |
77 | 77 | <strong><?php esc_html_e('Recommendations', 'event_espresso'); ?></strong> |
78 | 78 | <br /> |
79 | 79 | <?php esc_html_e( |
80 | - 'Want to see a tour of this screen? Click on the Edit Question Tour button which appears on the right side of the page. To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
81 | - 'event_espresso' |
|
82 | - ); ?> |
|
80 | + 'Want to see a tour of this screen? Click on the Edit Question Tour button which appears on the right side of the page. To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
81 | + 'event_espresso' |
|
82 | + ); ?> |
|
83 | 83 | </p> |
84 | 84 | <p> |
85 | 85 | <strong><?php esc_html_e('Screen Options', 'event_espresso'); ?></strong> |
86 | 86 | <br /> |
87 | 87 | <?php esc_html_e( |
88 | - 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
89 | - 'event_espresso' |
|
90 | - ); ?> |
|
88 | + 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
89 | + 'event_espresso' |
|
90 | + ); ?> |
|
91 | 91 | </p> |
92 | 92 | \ No newline at end of file |
@@ -5,23 +5,23 @@ discard block |
||
5 | 5 | <li> |
6 | 6 | <strong><?php esc_html_e('ID', 'event_espresso'); ?></strong><br /> |
7 | 7 | <?php esc_html_e( |
8 | - 'This is the numerical ID of the question group. This is used internally for Event Espresso.', |
|
9 | - 'event_espresso' |
|
10 | - ); ?> |
|
8 | + 'This is the numerical ID of the question group. This is used internally for Event Espresso.', |
|
9 | + 'event_espresso' |
|
10 | + ); ?> |
|
11 | 11 | </li> |
12 | 12 | <li> |
13 | 13 | <strong><?php esc_html_e('Group Name', 'event_espresso'); ?></strong><br /> |
14 | 14 | <?php esc_html_e( |
15 | - 'This shows the name of the question group as it will be displayed on the registration form.', |
|
16 | - 'event_espresso' |
|
17 | - ); ?> |
|
15 | + 'This shows the name of the question group as it will be displayed on the registration form.', |
|
16 | + 'event_espresso' |
|
17 | + ); ?> |
|
18 | 18 | </li> |
19 | 19 | <li> |
20 | 20 | <strong><?php esc_html_e('Description', 'event_espresso'); ?></strong><br /> |
21 | 21 | <?php esc_html_e( |
22 | - 'This shows the description for the question group as it will be shown on the registration form.', |
|
23 | - 'event_espresso' |
|
24 | - ); ?> |
|
22 | + 'This shows the description for the question group as it will be shown on the registration form.', |
|
23 | + 'event_espresso' |
|
24 | + ); ?> |
|
25 | 25 | </li> |
26 | 26 | <li> |
27 | 27 | <strong><?php esc_html_e('Show Name', 'event_espresso'); ?></strong><br /> |
@@ -30,14 +30,14 @@ discard block |
||
30 | 30 | <li> |
31 | 31 | <strong><?php esc_html_e('Show Desc', 'event_espresso'); ?></strong><br /> |
32 | 32 | <?php esc_html_e( |
33 | - 'Shows if the description for the question group be will displayed on the registration form.', |
|
34 | - 'event_espresso' |
|
35 | - ); ?> |
|
33 | + 'Shows if the description for the question group be will displayed on the registration form.', |
|
34 | + 'event_espresso' |
|
35 | + ); ?> |
|
36 | 36 | </li> |
37 | 37 | </ul> |
38 | 38 | <p> |
39 | 39 | <?php esc_html_e( |
40 | - 'Dragging and dropping the question groups will change the order that they appear in. A question group that is at the top of the list will appear before one that is at the bottom of the list.', |
|
41 | - 'event_espresso' |
|
42 | - ); ?> |
|
40 | + 'Dragging and dropping the question groups will change the order that they appear in. A question group that is at the top of the list will appear before one that is at the bottom of the list.', |
|
41 | + 'event_espresso' |
|
42 | + ); ?> |
|
43 | 43 | </p> |
44 | 44 | \ No newline at end of file |