PluginProbe
Booking Calendar / 11.7
Booking Calendar v11.7
11.8.4 11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 All 204 releases
booking / includes / page-form-builder / legacy-import / form_templates.php

form_templates.php in Booking Calendar 11.7, at includes/page-form-builder/legacy-import/form_templates.php

1,531 lines 103.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php /**
2 * @version 1.0
3 * @package Booking Calendar
4 * @category Booking Forms Templates
5 * @author wpdevelop
6 *
7 * @web-site https://wpbookingcalendar.com/
8 * @email info@wpbookingcalendar.com
9 *
10 * @modified 2024-10-08
11 */
12
13 if ( ! defined( 'ABSPATH' ) ) exit; // Exit, if accessed directly // FixIn: 10.6.2.1.
14
15
16 // ---------------------------------------------------------------------------------------------------------------------
17 // Templates for "Booking Form"
18 // ---------------------------------------------------------------------------------------------------------------------
19
20 /**
21 * Get Booking Form Template - HTML content with Shortcodes
22 *
23 * @param string $template_name
24 *
25 * @return string
26 */
27 function wpbc_get__booking_form__template( $template_name ) {
28
29 $booking_form = '';
30
31 switch ( $template_name ) {
32
33 case 'standard':
34
35 $booking_form = '[calendar] \n\
36 <div class="standard-form"> \n\
37 <p>'.__('First Name (required)' ,'booking').':<br />[text* name] </p> \n\
38 <p>'.__('Last Name (required)' ,'booking').':<br />[text* secondname] </p> \n\
39 <p>'.__('Email (required)' ,'booking').':<br />[email* email] </p> \n\
40 <p>'.__('Phone' ,'booking').':<br />[text phone] </p> \n\
41 <p>'.__('Adults' ,'booking').':<br />[selectbox visitors "1" "2" "3" "4"] </p> \n\
42 <p>'.__('Children' ,'booking').':<br />[selectbox children "0" "1" "2" "3"] </p> \n\
43 <p>'.__('Details' ,'booking').':<br /> [textarea details] </p> \n\
44 <p>[checkbox* term_and_condition use_label_element "'.__('I Accept term and conditions' ,'booking').'"] </p> \n\
45 <p>[submit class:btn "'.__('Send' ,'booking').'"]</p> \n\
46 </div>';
47 break;
48
49
50 case 'calendar_next_to_form':
51 $booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\
52 Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\
53 <r> \n\
54 <c>[calendar]</c> \n\
55 <spacer>width:40px;</spacer> \n\
56 <c> \n\
57 <r><c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l> <br>[text* name]</c></r> \n\
58 <r><c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . '):</l> <br>[text* secondname] </c></r> \n\
59 <r><c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l> <br>[email* email] </c></r> \n\
60 <r><c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l> <br>[text phone] </c></r> \n\
61 <r><c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l> <br>[selectbox visitors "1" "2" "3" "4"] </c></r> \n\
62 <r><c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l> <br>[selectbox children "0" "1" "2" "3"] </c></r> \n\
63 <r><c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l><br> [textarea details]</c></r> \n\
64 <r> \n\
65 <c>[checkbox* term_and_condition use_label_element "' . __( 'I Accept term and conditions', 'booking' ) . '"]</c> \n\
66 </r> \n\
67 <hr/> \n\
68 <r><c>[submit class:btn "' . __( 'Send', 'booking' ) . '"]</c></r> \n\
69 </c> \n\
70 </r>';
71
72 break;
73
74
75 case '2_columns':
76
77 $booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\
78 Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\
79 [calendar]\n\
80 <div class="wpbc__form__div" style="padding: 1em 0;"> \n\
81 <r> \n\
82 <c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c> \n\
83 <c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c> \n\
84 </r> \n\
85 <r> \n\
86 <c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c> \n\
87 <c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n\
88 </r> \n\
89 <r> \n\
90 <c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n\
91 <c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n\
92 </r> \n\
93 <r> \n\
94 <c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l> <div style="clear:both;width:100%"></div> \n\
95 [textarea details] </c> \n\
96 </r> \n\
97 <r>\n\
98 <c> [checkbox* term_and_condition use_label_element "' . __( 'I Accept term and conditions', 'booking' ) . '"] </c>\n\
99 </r>\n\
100 <p>[submit "' . __( 'Send', 'booking' ) . '"]</p> \n\
101 </div>';
102 break;
103
104
105 case '2_columns_times_2_hours':
106
107 $booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\
108 Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\
109 <div class="wpbc__form__div" style="padding: 1em 0;"> \n\
110 <r> \n\
111 <c> <l>' . esc_html__( 'Select Date', 'booking' ) . ':</l><br />[calendar] </c> \n\
112 <c> <l>' . esc_html__( 'Select Times', 'booking' ) . '*:</l><br /> \n\
113 [selectbox* rangetime "10:00 AM - 12:00 PM@@10:00 - 12:00" "12:00 PM - 02:00 PM@@12:00 - 14:00" "02:00 PM - 04:00 PM@@14:00 - 16:00" "04:00 PM - 06:00 PM@@16:00 - 18:00" "06:00 PM - 08:00 PM@@18:00 - 20:00"] </c> \n\
114 </r> \n\
115 <r> \n\
116 <c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c> \n\
117 <c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c> \n\
118 </r> \n\
119 <r> \n\
120 <c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c> \n\
121 <c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n\
122 </r> \n\
123 <r> \n\
124 <c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n\
125 <c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n\
126 </r> \n\
127 <r> \n\
128 <c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l> <div style="clear:both;width:100%"></div> \n\
129 [textarea details] </c> \n\
130 </r> \n\
131 <p>[submit "' . __( 'Send', 'booking' ) . '"]</p> \n\
132 </div>';
133 break;
134
135
136 case '2_columns_times_30_minutes_wizard':
137
138 $booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\
139 Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\
140 <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step1"> \n\
141 <r> \n\
142 <c> <l>' . esc_html__( 'Select Date', 'booking' ) . ':</l><br />[calendar] </c> \n\
143 <c> <l>' . esc_html__( 'Select Times', 'booking' ) . '*:</l><br /> \n\
144 [selectbox rangetime "09:00 - 09:30" "09:30 - 10:00" "10:00 - 10:30" "10:30 - 11:00" "11:00 - 11:30" "11:30 - 12:00" "12:00 - 12:30" "12:30 - 13:00" "13:00 - 13:30" "13:30 - 14:00" "14:00 - 14:30" "14:30 - 15:00" "15:00 - 15:30" "15:30 - 16:00" "16:00 - 16:30" "16:30 - 17:00"] </c> \n\
145 </r><hr> \n\
146 <r> \n\
147 <div class="wpbc__field" style="justify-content: flex-end"> \n\
148 <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2"> \n\
149 ' . esc_attr__( 'Next', 'booking' ) . ' \n\
150 </a> \n\
151 </div> \n\
152 </r> \n\
153 </div> \n\
154 <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step2 wpbc_wizard_step_hidden" style="clear:both"> \n\
155 <r> \n\
156 <c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c> \n\
157 <c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c> \n\
158 </r> \n\
159 <r> \n\
160 <c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c> \n\
161 <c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n\
162 </r> \n\
163 <r> \n\
164 <c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n\
165 <c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n\
166 </r> \n\
167 <r> \n\
168 <c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n\
169 [textarea details] </c> \n\
170 </r> \n\
171 <spacer>height:10px;</spacer> \n\
172 <hr> \n\
173 <r> \n\
174 <div class="wpbc__field" style="justify-content: flex-end"> \n\
175 <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_1">' . esc_attr__( 'Back', 'booking' ) . '</a>&nbsp;&nbsp;&nbsp; \n\
176 [submit "' . __( 'Send', 'booking' ) . '"] \n\
177 </div> \n\
178 </r> \n\
179 </div>';
180 break;
181
182
183 case '2_columns_hint_cost_nights':
184
185 $booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\
186 Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\
187 [calendar]\n\
188 <div class="wpbc__form__div">\n\
189 <r>\n\
190 <c><div class="form-hints">\n\
191 ' . __( 'Dates', 'booking' ) . ': [selected_short_timedates_hint] ([nights_number_hint] - ' . __( 'night(s)', 'booking' ) . ')<br> \n\
192 ' . __( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br>\n\
193 </div></c>\n\
194 </r>\n\
195 <hr> \n\
196 <r>\n\
197 <c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c>\n\
198 <c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c>\n\
199 </r>\n\
200 <r>\n\
201 <c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c>\n\
202 <c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c>\n\
203 </r>\n\
204 <r>\n\
205 <c> <l>' . esc_html__( 'Address (required)', 'booking' ) . ':</l><br />[text* address] </c>\n\
206 <c> <l>' . esc_html__( 'City (required)', 'booking' ) . ':</l><br />[text* city] </c>\n\
207 </r>\n\
208 <r>\n\
209 <c> <l>' . esc_html__( 'Post code (required)', 'booking' ) . ':</l><br />[text* postcode] </c>\n\
210 <c> <l>' . esc_html__( 'Country (required)', 'booking' ) . ':</l><br />[country] </c>\n\
211 </r>\n\
212 <r>\n\
213 <c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c>\n\
214 <c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c>\n\
215 </r>\n\
216 <r>\n\
217 <c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l><div style="clear:both;width:100%"></div>\n\
218 [textarea details] </c>\n\
219 </r>\n\
220 <div style="margin-top:10px;clear:both;"></div>\n\
221 <r>\n\
222 <c> [checkbox* term_and_condition use_label_element "' . __( 'I Accept term and conditions', 'booking' ) . '"] </c>\n\
223 </r>\n\
224 <r>\n\
225 <c><p>\n\
226 ' . __( 'Dates', 'booking' ) . ': [selected_short_timedates_hint] ([nights_number_hint] - ' . __( 'night(s)', 'booking' ) . ')<br>\n\
227 ' . __( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br>\n\
228 </p></c>\n\
229 </r> <hr> \n\
230 <r>\n\
231 <c> <p>[submit "Send"]</p> </c> \n\
232 </r> \n\
233 </div>';
234 break;
235
236
237 case '2_columns_hint_availability':
238
239 $booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\
240 Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\
241 [calendar]\n\
242 <div class="wpbc__form__div">\n\
243 <r>\n\
244 <c><p>\n\
245 ' . __( 'Dates', 'booking' ) . ': [selected_short_timedates_hint] ([nights_number_hint] - ' . __( 'night(s)', 'booking' ) . ')<br> \n\
246 ' . __( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> \n\
247 </p></c>\n\
248 <c><l>' . esc_html__( 'Availability', 'booking' ) . ':</l><spacer></spacer>[capacity_hint]</c> \n\
249 </r>\n\
250 <hr> \n\
251 <r>\n\
252 <c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c>\n\
253 <c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c>\n\
254 </r>\n\
255 <r>\n\
256 <c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c>\n\
257 <c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c>\n\
258 </r>\n\
259 <r>\n\
260 <c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c>\n\
261 <c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c>\n\
262 </r>\n\
263 <r>\n\
264 <c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l><div style="clear:both;width:100%"></div>\n\
265 [textarea details] </c>\n\
266 </r>\n\
267 <r>\n\
268 <c> <l>' . esc_html__( 'Coupon (required)', 'booking' ) . ':</l><br />[coupon coupon] </c>\n\
269 </r>\n\
270 <div style="margin-top:10px;clear:both;"></div>\n\
271 <r>\n\
272 <c> [checkbox* term_and_condition use_label_element "' . __( 'I Accept term and conditions', 'booking' ) . '"] </c>\n\
273 </r>\n\
274 <r>\n\
275 <c><p>\n\
276 ' . __( 'Dates', 'booking' ) . ': [selected_short_timedates_hint] ([nights_number_hint] - ' . __( 'night(s)', 'booking' ) . ')<br>\n\
277 ' . __( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br>\n\
278 </p></c>\n\
279 </r> <hr> \n\
280 <r>\n\
281 <c> <p>[submit "Send"]</p> </c> \n\
282 </r> \n\
283 </div>';
284 break;
285
286
287 case '2_columns_times_30_minutes_hints_coupon':
288
289 $booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\
290 Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\
291 [calendar] \n\
292 <r>\n\
293 <c> <l>' . esc_html__( 'Select Times', 'booking' ) . '*:</l><br />\n\
294 [selectbox rangetime "9:00 AM - 9:30 AM@@09:00 - 09:30" "9:30 AM - 10:00 AM@@09:30 - 10:00" "10:00 AM - 10:30 AM@@10:00 - 10:30" "10:30 AM - 11:00 AM@@10:30 - 11:00" "11:00 AM - 11:30 AM@@11:00 - 11:30" "11:30 AM - 12:00 PM@@11:30 - 12:00" "12:00 PM - 12:30 PM@@12:00 - 12:30" "12:30 PM - 1:00 PM@@12:30 - 13:00" "1:00 PM - 1:30 PM@@13:00 - 13:30" "1:30 PM - 2:00 PM@@13:30 - 14:00" "2:00 PM - 2:30 PM@@14:00 - 14:30" "2:30 PM - 3:00 PM@@14:30 - 15:00" "3:00 PM - 3:30 PM@@15:00 - 15:30" "3:30 PM - 4:00 PM@@15:30 - 16:00" "4:00 PM - 4:30 PM@@16:00 - 16:30" "4:30 PM - 5:00 PM@@16:30 - 17:00" "5:00 PM - 5:30 PM@@17:00 - 17:30" "5:30 PM - 6:00 PM@@17:30 - 18:00" "6:00 PM - 6:30 PM@@18:00 - 18:30"]\n\
295 </c>\n\
296 </r>\n\
297 <div class="wpbc__form__div">\n\
298 <r>\n\
299 <c>
300 <div>\n\
301 ' . __( 'Date', 'booking' ) . ': <strong>[selected_dates_hint]</strong><br> \n\
302 ' . __( 'Times', 'booking' ) . ': <strong>[start_time_hint] - [end_time_hint]</strong><br> \n\
303 ' . __( 'Total cost', 'booking' ) . ': <strong>[cost_hint]</strong> \n\
304 </div>\n\
305 </c>\n\
306 </r>\n\
307 <hr> \n\
308 <r>\n\
309 <c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c>\n\
310 <c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c>\n\
311 </r>\n\
312 <r>\n\
313 <c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c>\n\
314 <c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c>\n\
315 </r>\n\
316 <r>\n\
317 <c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c>\n\
318 <c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c>\n\
319 </r>\n\
320 <r>\n\
321 <c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l><div style="clear:both;width:100%"></div>\n\
322 [textarea details] </c>\n\
323 </r>\n\
324 <r>\n\
325 <c> <l>' . esc_html__( 'Coupon (required)', 'booking' ) . ':</l><br />[coupon coupon] </c>\n\
326 </r>\n\
327 <div style="margin-top:10px;clear:both;"></div>\n\
328 <r>\n\
329 <c> [checkbox* term_and_condition use_label_element "' . __( 'I Accept term and conditions', 'booking' ) . '"] </c>\n\
330 </r>\n\
331 <r>\n\
332 <c><p>\n\
333 ' . __( 'Dates', 'booking' ) . ': [selected_short_timedates_hint] ([nights_number_hint] - ' . __( 'night(s)', 'booking' ) . ')<br>\n\
334 ' . __( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br>\n\
335 </p></c>\n\
336 </r> <hr> \n\
337 <r>\n\
338 <c> <p>[submit "Send"]</p> </c> \n\
339 </r> \n\
340 </div>';
341 break;
342
343
344 case '2_columns_hints_coupon':
345
346 $booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\
347 Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\
348 [calendar]\n\
349 <div class="wpbc__form__div">\n\
350 <r>\n\
351 <c>
352 <div>\n\
353 ' . __( 'Date', 'booking' ) . ': <strong>[selected_dates_hint]</strong><br> \n\
354 ' . __( 'Times', 'booking' ) . ': <strong>[start_time_hint] - [end_time_hint]</strong><br> \n\
355 ' . __( 'Total cost', 'booking' ) . ': <strong>[cost_hint]</strong> \n\
356 </div>\n\
357 </c>\n\
358 </r>\n\
359 <hr> \n\
360 <r>\n\
361 <c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c>\n\
362 <c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c>\n\
363 </r>\n\
364 <r>\n\
365 <c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c>\n\
366 <c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c>\n\
367 </r>\n\
368 <r>\n\
369 <c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c>\n\
370 <c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c>\n\
371 </r>\n\
372 <r>\n\
373 <c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l><div style="clear:both;width:100%"></div>\n\
374 [textarea details] </c>\n\
375 </r>\n\
376 <r>\n\
377 <c> <l>' . esc_html__( 'Coupon (required)', 'booking' ) . ':</l><br />[coupon coupon] </c>\n\
378 </r>\n\
379 <div style="margin-top:10px;clear:both;"></div>\n\
380 <r>\n\
381 <c> [checkbox* term_and_condition use_label_element "' . __( 'I Accept term and conditions', 'booking' ) . '"] </c>\n\
382 </r>\n\
383 <r>\n\
384 <c><p>\n\
385 ' . __( 'Dates', 'booking' ) . ': [selected_short_timedates_hint] ([nights_number_hint] - ' . __( 'night(s)', 'booking' ) . ')<br>\n\
386 ' . __( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br>\n\
387 </p></c>\n\
388 </r> <hr> \n\
389 <r>\n\
390 <c> <p>[submit "Send"]</p> </c> \n\
391 </r> \n\
392 </div>';
393 break;
394 }
395
396 if (empty($booking_form)){
397 $booking_form = wpbc_get__predefined_booking_form__template( $template_name );
398 }
399
400 return $booking_form;
401 }
402
403
404 /**
405 * Get "Content of booking fields data" - HTML content with Shortcodes
406 *
407 * @param string $template_name
408 *
409 * @return string
410 */
411 function wpbc_get__booking_data__template( $template_name ) {
412
413 $booking_form = '';
414
415 switch ( $template_name ) {
416
417 case 'standard':
418 case '2_columns':
419 case 'calendar_next_to_form':
420 case 'wizard_no_times_a':
421 $booking_form = '<div class="standard-content-form"> \n\
422 <b>' . esc_html__('First Name' ,'booking').'</b>: <f>[name]</f><br/> \n\
423 <b>' . esc_html__('Last Name' ,'booking').'</b>: <f>[secondname]</f><br/> \n\
424 <b>' . esc_html__('Email' ,'booking').'</b>: <f>[email]</f><br/> \n\
425 <b>' . esc_html__('Phone' ,'booking').'</b>: <f>[phone]</f><br/> \n\
426 <b>' . esc_html__('Adults' ,'booking').'</b>: <f>[visitors]</f><br/> \n\
427 <b>' . esc_html__('Children' ,'booking').'</b>: <f>[children]</f><br/> \n\
428 <b>' . esc_html__('Details' ,'booking').'</b>: <f>[details]</f> \n\
429 </div>';
430 break;
431
432 case '2_columns_times_2_hours':
433 case '2_columns_times_30_minutes_wizard':
434 $booking_form = '<div class="standard-content-form"> \n\
435 <b>' . esc_html__('Times' ,'booking').'</b>: <f>[rangetime]</f><br/> \n\
436 <b>' . esc_html__('First Name' ,'booking').'</b>: <f>[name]</f><br/> \n\
437 <b>' . esc_html__('Last Name' ,'booking').'</b>: <f>[secondname]</f><br/> \n\
438 <b>' . esc_html__('Email' ,'booking').'</b>: <f>[email]</f><br/> \n\
439 <b>' . esc_html__('Phone' ,'booking').'</b>: <f>[phone]</f><br/> \n\
440 <b>' . esc_html__('Adults' ,'booking').'</b>: <f>[visitors]</f><br/> \n\
441 <b>' . esc_html__('Children' ,'booking').'</b>: <f>[children]</f><br/> \n\
442 <b>' . esc_html__('Details' ,'booking').'</b>: <f>[details]</f> \n\
443 </div>';
444 break;
445
446
447
448 case 'appointments_service_c':
449 $booking_form = '<div class="standard-content-form"> \n\
450 <b>' . esc_html__('Times' ,'booking').'</b>: <f>[rangetime]</f><br/> \n\
451 <b>' . esc_html__('First Name' ,'booking').'</b>: <f>[name]</f><br/> \n\
452 <b>' . esc_html__('Last Name' ,'booking').'</b>: <f>[secondname]</f><br/> \n\
453 <b>' . esc_html__('Email' ,'booking').'</b>: <f>[email]</f><br/> \n\
454 <b>' . esc_html__('Phone' ,'booking').'</b>: <f>[phone]</f><br/> \n\
455 <b>' . esc_html__('Details' ,'booking').'</b>: <f>[details]</f> \n\
456 </div>';
457 break;
458
459 case '2_columns_hint_cost_nights':
460
461 $booking_form = '<div class="standard-content-form"> \n\
462 <b>' . esc_html__('First Name' ,'booking').'</b>: <f>[name]</f><br/> \n\
463 <b>' . esc_html__('Last Name' ,'booking').'</b>: <f>[secondname]</f><br/> \n\
464 <b>' . esc_html__('Email' ,'booking').'</b>: <f>[email]</f><br/> \n\
465 <b>' . esc_html__('Phone' ,'booking').'</b>: <f>[phone]</f><br/> \n\
466 <b>' . esc_html__('Adults' ,'booking').'</b>: <f>[visitors]</f><br/> \n\
467 <b>' . esc_html__('Children' ,'booking').'</b>: <f>[children]</f><br/> \n\
468 <b>' . esc_html__('Address' ,'booking').'</b>: <f>[address]</f><br/> \n\
469 <b>' . esc_html__('City' ,'booking').'</b>: <f>[city]</f><br/> \n\
470 <b>' . esc_html__('Post code' ,'booking').'</b>: <f>[postcode]</f><br/> \n\
471 <b>' . esc_html__('Country' ,'booking').'</b>: <f>[country]</f><br/> \n\
472 <b>' . esc_html__('Details' ,'booking').'</b>: <f>[details]</f> \n\
473 </div>';
474 break;
475
476 case '2_columns_hint_availability':
477 case '2_columns_hints_coupon':
478 $booking_form = '<div class="standard-content-form"> \n\
479 <b>' . esc_html__('First Name' ,'booking').'</b>: <f>[name]</f><br/> \n\
480 <b>' . esc_html__('Last Name' ,'booking').'</b>: <f>[secondname]</f><br/> \n\
481 <b>' . esc_html__('Email' ,'booking').'</b>: <f>[email]</f><br/> \n\
482 <b>' . esc_html__('Phone' ,'booking').'</b>: <f>[phone]</f><br/> \n\
483 <b>' . esc_html__('Adults' ,'booking').'</b>: <f>[visitors]</f><br/> \n\
484 <b>' . esc_html__('Children' ,'booking').'</b>: <f>[children]</f><br/> \n\
485 <b>' . esc_html__('Coupon' ,'booking').'</b>: <f>[coupon]</f><br/> \n\
486 <b>' . esc_html__('Details' ,'booking').'</b>: <f>[details]</f> \n\
487 </div>';
488 break;
489
490 case '2_columns_times_30_minutes_hints_coupon':
491 $booking_form = '<div class="standard-content-form"> \n\
492 <b>' . esc_html__('Times' ,'booking').'</b>: <f>[rangetime]</f><br/> \n\
493 <b>' . esc_html__('First Name' ,'booking').'</b>: <f>[name]</f><br/> \n\
494 <b>' . esc_html__('Last Name' ,'booking').'</b>: <f>[secondname]</f><br/> \n\
495 <b>' . esc_html__('Email' ,'booking').'</b>: <f>[email]</f><br/> \n\
496 <b>' . esc_html__('Phone' ,'booking').'</b>: <f>[phone]</f><br/> \n\
497 <b>' . esc_html__('Adults' ,'booking').'</b>: <f>[visitors]</f><br/> \n\
498 <b>' . esc_html__('Children' ,'booking').'</b>: <f>[children]</f><br/> \n\
499 <b>' . esc_html__('Coupon' ,'booking').'</b>: <f>[coupon]</f><br/> \n\
500 <b>' . esc_html__('Details' ,'booking').'</b>: <f>[details]</f> \n\
501 </div>';
502 break;
503 }
504
505 return $booking_form;
506 }
507
508
509
510
511 function wpbc_get__predefined_booking_form__template( $form_type ){
512
513 $form_content = '';
514 // FixIn: 10.7.1.4.
515 if ( in_array( $form_type, array( 'appointments30' ) ) ) {
516 $form_content = '';
517 $form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n';
518 $form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n';
519 $form_content .='<div class="wpbc_wizard__border_container"> \n';
520 $form_content .='<div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step1"> \n';
521 $form_content .=' <r> \n';
522 $form_content .=' <c> <l>' . esc_attr__( 'Select Date', 'booking' ) . ':</l><br /> [calendar] </c> \n';
523 $form_content .=' <c> <l>' . esc_attr__( 'Select Times', 'booking' ) . ':</l><br /> \n';
524 $form_content .=' [selectbox rangetime "09:00 - 09:30" "09:30 - 10:00" "10:00 - 10:30" "10:30 - 11:00" "11:00 - 11:30" "11:30 - 12:00" "12:00 - 12:30" "12:30 - 13:00" "13:00 - 13:30" "13:30 - 14:00" "14:00 - 14:30" "14:30 - 15:00" "15:00 - 15:30" "15:30 - 16:00" "16:00 - 16:30" "16:30 - 17:00" "17:00 - 17:30" "17:30 - 18:00"] \n';
525 $form_content .=' </c> \n';
526 $form_content .=' </r> \n';
527 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
528 $form_content .= ' <r> <c> \n';
529 $form_content .= ' <div class="form-hints"> \n';
530 $form_content .= ' ' . esc_attr__( 'Date', 'booking' ) . ': &nbsp;<strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n';
531 $form_content .= ' ' . esc_attr__( 'Time', 'booking' ) . ': &nbsp;<strong>[start_time_hint] - [end_time_hint]</strong> \n';
532 $form_content .= ' </div> \n';
533 $form_content .= ' </c> \n';
534 $form_content .= ' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': &nbsp;<strong>[cost_hint]</strong></c> \n';
535 $form_content .= ' </r> \n';
536 }
537 $form_content .=' <hr><r> \n';
538 $form_content .=' <div class="wpbc__field" style="justify-content: flex-end;"> \n';
539 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2" > \n';
540 $form_content .=' ' . esc_attr__( 'Next', 'booking' ) . ' \n';
541 $form_content .=' </a> \n';
542 $form_content .=' </div> \n';
543 $form_content .=' </r> \n';
544 $form_content .='</div> \n';
545 $form_content .='<div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step2 wpbc_wizard_step_hidden" style="display:none;clear:both;"> \n';
546 $form_content .=' <r> \n';
547 $form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* name] </c> \n';
548 $form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* secondname] </c> \n';
549 $form_content .=' </r> \n';
550 $form_content .=' <r> \n';
551 $form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[email* email] </c> \n';
552 $form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n';
553 $form_content .=' </r> \n';
554 $form_content .=' <r> \n';
555 $form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n';
556 $form_content .=' [textarea details] </c> \n';
557 $form_content .=' </r> \n';
558 $form_content .=' <spacer>height:10px;</spacer> \n';
559 $form_content .=' <r> \n';
560 $form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n';
561 $form_content .=' </r> \n';
562 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
563 $form_content .= ' <r> <c> \n';
564 $form_content .= ' <div class="form-hints"> \n';
565 $form_content .= ' ' . esc_attr__( 'Date', 'booking' ) . ': &nbsp;<strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n';
566 $form_content .= ' ' . esc_attr__( 'Time', 'booking' ) . ': &nbsp;<strong>[start_time_hint] - [end_time_hint]</strong> \n';
567 $form_content .= ' </div> \n';
568 $form_content .= ' </c> \n';
569 $form_content .= ' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': &nbsp;<strong>[cost_hint]</strong></c> \n';
570 $form_content .= ' </r> \n';
571 }
572 $form_content .=' <hr><r> \n';
573 $form_content .=' <div class="wpbc__field" style="justify-content: flex-end;"> \n';
574 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_1">' . esc_attr__( 'Back', 'booking' ) . '</a>&nbsp;&nbsp;&nbsp; \n';
575 $form_content .=' [submit "' . esc_attr__( 'Send', 'booking' ) . '"] \n';
576 $form_content .=' </div> \n';
577 $form_content .=' </r> \n';
578 $form_content .='</div> \n';
579 $form_content .='</div> \n'; // class=wpbc_wizard__border_container.
580
581 }
582
583 if ( in_array( $form_type, array( 'times', 'times30', 'times15', 'times120', 'times60', 'times60_24h', 'endtime', 'durationtime' ) ) ){
584 $form_content = '';
585 $form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n';
586 $form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n';
587 $form_content .='<div class="wpbc__form__div"> \n';
588 $form_content .=' <r> \n';
589 $form_content .=' <c> [calendar] </c> \n';
590
591 if ( in_array( $form_type, array( 'times', 'times30', 'times15', 'times120', 'times60', 'times60_24h' ) ) ){
592 $form_content .=' <c> <l>' . esc_attr__( 'Select Times', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br /> \n';
593
594 if ( $form_type == 'times' ){
595 $form_content .=' [selectbox rangetime "10:00 AM - 12:00 PM@@10:00 - 12:00" "12:00 PM - 02:00 PM@@12:00 - 14:00" "02:00 PM - 04:00 PM@@14:00 - 16:00" "04:00 PM - 06:00 PM@@16:00 - 18:00" "06:00 PM - 08:00 PM@@18:00 - 20:00"] \n';
596 }
597 if ( $form_type == 'times120' ){
598 $form_content .=' [selectbox* rangetime "6:00 AM - 8:00 AM@@06:00 - 08:00" "8:00 AM - 10:00 AM@@08:00 - 10:00" "10:00 AM - 12:00 PM@@10:00 - 12:00" "12:00 PM - 2:00 PM@@12:00 - 14:00" "2:00 PM - 4:00 PM@@14:00 - 16:00" "4:00 PM - 6:00 PM@@16:00 - 18:00" "6:00 PM - 8:00 PM@@18:00 - 20:00"] \n';
599 }
600 if ( $form_type == 'times60' ){
601 $form_content .=' [selectbox* rangetime "6:00 AM - 7:00 AM@@06:00 - 07:00" "7:00 AM - 8:00 AM@@07:00 - 08:00" "8:00 AM - 9:00 AM@@08:00 - 09:00" "9:00 AM - 10:00 AM@@09:00 - 10:00" "10:00 AM - 11:00 AM@@10:00 - 11:00" "11:00 AM - 12:00 PM@@11:00 - 12:00" "12:00 PM - 1:00 PM@@12:00 - 13:00" "1:00 PM - 2:00 PM@@13:00 - 14:00" "2:00 PM - 3:00 PM@@14:00 - 15:00" "3:00 PM - 4:00 PM@@15:00 - 16:00" "4:00 PM - 5:00 PM@@16:00 - 17:00" "5:00 PM - 6:00 PM@@17:00 - 18:00" "6:00 PM - 7:00 PM@@18:00 - 19:00" "7:00 PM - 8:00 PM@@19:00 - 20:00" "8:00 PM - 9:00 PM@@20:00 - 21:00"] \n';
602 }
603 if ( $form_type == 'times60_24h' ){
604 $form_content .=' [selectbox* rangetime "07:00 - 08:00" "08:00 - 09:00" "09:00 - 10:00" "10:00 - 11:00" "11:00 - 12:00" "12:00 - 13:00" "13:00 - 14:00" "14:00 - 15:00" "15:00 - 16:00" "16:00 - 17:00" "17:00 - 18:00" "18:00 - 19:00" "19:00 - 20:00" "20:00 - 21:00"] \n';
605 }
606 if ( $form_type == 'times30' ){
607 $form_content .=' [selectbox rangetime "06:00 - 06:30" "06:30 - 07:00" "07:00 - 07:30" "07:30 - 08:00" "08:00 - 08:30" "08:30 - 09:00" "09:00 - 09:30" "09:30 - 10:00" "10:00 - 10:30" "10:30 - 11:00" "11:00 - 11:30" "11:30 - 12:00" "12:00 - 12:30" "12:30 - 13:00" "13:00 - 13:30" "13:30 - 14:00" "14:00 - 14:30" "14:30 - 15:00" "15:00 - 15:30" "15:30 - 16:00" "16:00 - 16:30" "16:30 - 17:00" "17:00 - 17:30" "17:30 - 18:00" "18:00 - 18:30" "18:30 - 19:00" "19:00 - 19:30" "19:30 - 20:00" "20:00 - 20:30" "20:30 - 21:00" "21:00 - 21:30"] \n';
608 }
609 if ( $form_type == 'times15' ){
610 $form_content .=' [selectbox rangetime "8:00 AM - 8:15 AM@@08:00 - 08:15" "8:15 AM - 8:30 AM@@08:15 - 08:30" "8:30 AM - 8:45 AM@@08:30 - 08:45" "8:45 AM - 9:00 AM@@08:45 - 09:00" "9:00 AM - 9:15 AM@@09:00 - 09:15" "9:15 AM - 9:30 AM@@09:15 - 09:30" "9:30 AM - 9:45 AM@@09:30 - 09:45" "9:45 AM - 10:00 AM@@09:45 - 10:00" "10:00 AM - 10:15 AM@@10:00 - 10:15" "10:15 AM - 10:30 AM@@10:15 - 10:30" "10:30 AM - 10:45 AM@@10:30 - 10:45" "10:45 AM - 11:00 AM@@10:45 - 11:00" "11:00 AM - 11:15 AM@@11:00 - 11:15" "11:15 AM - 11:30 AM@@11:15 - 11:30" "11:30 AM - 11:45 AM@@11:30 - 11:45" "11:45 AM - 12:00 AM@@11:45 - 12:00" "12:00 AM - 12:15 AM@@12:00 - 12:15" "12:15 AM - 12:30 AM@@12:15 - 12:30" "12:30 AM - 12:45 AM@@12:30 - 12:45" "12:45 AM - 1:00 PM@@12:45 - 13:00" "1:00 PM - 1:15 PM@@13:00 - 13:15" "1:15 PM - 1:30 PM@@13:15 - 13:30" "1:30 PM - 1:45 PM@@13:30 - 13:45" "1:45 PM - 2:00 PM@@13:45 - 14:00" "2:00 PM - 2:15 PM@@14:00 - 14:15" "2:15 PM - 2:30 PM@@14:15 - 14:30" "2:30 PM - 2:45 PM@@14:30 - 14:45" "2:45 PM - 3:00 PM@@14:45 - 15:00" "3:00 PM - 3:15 PM@@15:00 - 15:15" "3:15 PM - 3:30 PM@@15:15 - 15:30" "3:30 PM - 3:45 PM@@15:30 - 15:45" "3:45 PM - 4:00 PM@@15:45 - 16:00" "4:00 PM - 4:15 PM@@16:00 - 16:15" "4:15 PM - 4:30 PM@@16:15 - 16:30" "4:30 PM - 4:45 PM@@16:30 - 16:45" "4:45 PM - 5:00 PM@@16:45 - 17:00" "5:00 PM - 5:15 PM@@17:00 - 17:15" "5:15 PM - 5:30 PM@@17:15 - 17:30" "5:30 PM - 5:45 PM@@17:30 - 17:45" "5:45 PM - 6:00 PM@@17:45 - 18:00" "6:00 PM - 6:15 PM@@18:00 - 18:15" "6:15 PM - 6:30 PM@@18:15 - 18:30" "6:30 PM - 6:45 PM@@18:30 - 18:45" "6:45 PM - 7:00 PM@@18:45 - 19:00" "7:00 PM - 7:15 PM@@19:00 - 19:15" "7:15 PM - 7:30 PM@@19:15 - 19:30" "7:30 PM - 7:45 PM@@19:30 - 19:45" "7:45 PM - 8:00 PM@@19:45 - 20:00" "8:00 PM - 8:15 PM@@20:00 - 20:15" "8:15 PM - 8:30 PM@@20:15 - 20:30" "8:30 PM - 8:45 PM@@20:30 - 20:45" "8:45 PM - 9:00 PM@@20:45 - 21:00" "9:00 PM - 9:15 PM@@21:00 - 21:15" "9:15 PM - 9:30 PM@@21:15 - 21:30" "9:30 PM - 9:45 PM@@21:30 - 21:45"] \n';
611 }
612 $form_content .=' </c> \n';
613 }
614 if ( in_array( $form_type, array( 'endtime', 'durationtime' ) ) ){
615 $form_content .=' </r> \n';
616 $form_content .=' <r> \n';
617 $form_content .=' <c> <l>' . esc_attr__( 'Start Time', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br /> \n';
618 $form_content .=' [selectbox starttime "08:00" "09:00" "10:00" "11:00" "12:00" "13:00" "14:00" "15:00" "16:00" "17:00" "18:00" "19:00" "20:00" "21:00" "22:00"] \n';
619 $form_content .=' </c> \n';
620 $form_content .=' <c> \n';
621 if ( $form_type == 'endtime' ){
622 $form_content .=' <l>' . esc_attr__( 'End Time', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br /> \n';
623 $form_content .=' [selectbox endtime "08:00" "09:00" "10:00" "11:00" "12:00" "13:00" "14:00" "15:00" "16:00" "17:00" "18:00" "19:00" "20:00" "21:00" "22:00" "23:00"] \n';
624 }
625 if ( $form_type == 'durationtime' ){
626 $form_content .=' <l>' . esc_attr__( 'Duration Time', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br /> \n';
627 $form_content .=' [selectbox durationtime "15 min@@00:15" "30 min@@00:30" "45 min@@00:45" "1 hour@@01:00" "1 hour 30 min@@01:30" "2 hours@@02:00" "3 hours@@03:00" "4 hours@@04:00"] \n';
628 }
629 $form_content .=' </c> \n';
630 }
631 $form_content .=' </r> \n';
632 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
633 $form_content .=' <r> \n';
634 $form_content .=' <c> \n';
635 if ( class_exists( 'wpdev_bk_biz_l' ) ){ // >= biz_l
636 $form_content .=' <l>' . esc_attr__( 'Availability', 'booking' ) . ':</l><spacer></spacer> \n';
637 $form_content .=' [capacity_hint] \n';
638 $form_content .=' <spacer>height:1em;</spacer> \n';
639 }
640 $form_content .=' <p> \n';
641 $form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ': <strong>[selected_short_timedates_hint]</strong> \n';
642 $form_content .=' ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br> \n';
643 $form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br> \n';
644 $form_content .=' </p> \n';
645 $form_content .=' </c> \n';
646 $form_content .=' </r><hr> \n';
647 }
648 $form_content .=' <r> \n';
649 $form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* name] </c> \n';
650 $form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* secondname] </c> \n';
651 $form_content .=' </r> \n';
652 $form_content .=' <r> \n';
653 $form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[email* email] </c> \n';
654 $form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n';
655 $form_content .=' </r> \n';
656 $form_content .=' <r> \n';
657 $form_content .=' <c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n';
658 $form_content .=' <c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n';
659 $form_content .=' </r> \n';
660 $form_content .=' <r> \n';
661 $form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n';
662 $form_content .=' [textarea details] </c> \n';
663 $form_content .=' </r> \n';
664 $form_content .=' <spacer>height:10px;</spacer> \n';
665 $form_content .=' <r> \n';
666 $form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n';
667 $form_content .=' </r> \n';
668 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
669 $form_content .=' <r> \n';
670 $form_content .=' <c><p> \n';
671 $form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ': <strong>[selected_short_timedates_hint]</strong> \n';
672 $form_content .=' ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br> \n';
673 $form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br> \n';
674 $form_content .=' </p></c> \n';
675 $form_content .=' </r> \n';
676 }
677 $form_content .=' <hr> \n';
678 $form_content .=' <r> \n';
679 $form_content .=' <c> <p>[submit "' . esc_attr__( 'Send', 'booking' ) . '"]</p> </c> \n';
680 $form_content .=' </r> \n';
681 $form_content .='</div> \n';
682 }
683
684 if ($form_type == 'timesweek'){
685 $form_content = '';
686 $form_content .='[calendar] \n';
687 $form_content .='<div class="times-form"> \n';
688 $form_content .='<p> \n';
689 $form_content .=' [condition name="weekday-condition" type="weekday" value="*"] \n';
690 $form_content .=' Select Time Slot:<br> [selectbox rangetime multiple "10:00 - 12:00" "12:00 - 14:00" "14:00 - 16:00" "16:00 - 18:00" "18:00 - 20:00"] \n';
691 $form_content .=' [/condition] \n';
692 $form_content .=' [condition name="weekday-condition" type="weekday" value="1,2"] \n';
693 $form_content .=' Select Time Slot available on Monday, Tuesday:<br> [selectbox rangetime multiple "10:00 - 12:00" "12:00 - 14:00"] \n';
694 $form_content .=' [/condition] \n';
695 $form_content .=' [condition name="weekday-condition" type="weekday" value="3,4"] \n';
696 $form_content .=' Select Time Slot available on Wednesday, Thursday:<br> [selectbox rangetime multiple "14:00 - 16:00" "16:00 - 18:00" "18:00 - 20:00"] \n';
697 $form_content .=' [/condition] \n';
698 $form_content .=' [condition name="weekday-condition" type="weekday" value="5,6,0"] \n';
699 $form_content .=' Select Time Slot available on Friday, Saturday, Sunday:<br> [selectbox rangetime multiple "12:00 - 14:00" "14:00 - 16:00" "16:00 - 18:00"] \n';
700 $form_content .=' [/condition] \n';
701 $form_content .='</p> \n';
702 $form_content .=' <p>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* name] </p> \n';
703 $form_content .=' <p>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* secondname] </p> \n';
704 $form_content .=' <p>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[email* email] </p> \n';
705 $form_content .=' <p>' . esc_attr__( 'Phone', 'booking' ) . ':<br />[text phone] </p> \n';
706 $form_content .=' <p>' . esc_attr__( 'Adults', 'booking' ) . ':<br />[selectbox visitors "1" "2" "3" "4"]</p> \n';
707 $form_content .=' <p>' . esc_attr__( 'Children', 'booking' ) . ':<br />[selectbox children "0" "1" "2" "3"]</p> \n';
708 $form_content .=' <p>' . esc_attr__( 'Details', 'booking' ) . ':<br /> [textarea details] </p> \n';
709 $form_content .=' <p>[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </p>\n';
710 $form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</p> \n';
711 $form_content .='</div>';
712 }
713
714 if ($form_type == 'hints'){
715 $form_content = '';
716 $form_content .='[calendar] \n';
717 $form_content .='<div class="standard-form"> \n';
718 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
719 $form_content .=' <div class="form-hints"> \n';
720 $form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ':[selected_short_timedates_hint] ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br><br> \n';
721 $form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': [cost_hint] <br> \n';
722 $form_content .=' </div><hr/> \n';
723 }
724 $form_content .=' <p>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* name] </p> \n';
725 $form_content .=' <p>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* secondname] </p> \n';
726 $form_content .=' <p>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[email* email] </p> \n';
727 $form_content .=' <p>' . esc_attr__( 'Phone', 'booking' ) . ':<br />[text phone] </p> \n';
728 $form_content .=' <p>' . esc_attr__( 'Adults', 'booking' ) . ':<br />[selectbox visitors "1" "2" "3" "4"]</p> \n';
729 $form_content .=' <p>' . esc_attr__( 'Children', 'booking' ) . ':<br />[selectbox children "0" "1" "2" "3"]</p> \n';
730 $form_content .=' <p>' . esc_attr__( 'Details', 'booking' ) . ':<br /> [textarea details] </p> \n';
731 $form_content .=' <p>[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </p>\n';
732 $form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</p> \n';
733 $form_content .='</div>';
734 }
735
736 // FixIn: 8.7.3.5.
737 if ( 'hints-dev' == $form_type ){
738 $form_content = '';
739 $form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n';
740 $form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n';
741 $form_content .='[calendar] \n';
742 $form_content .='<div class="wpbc__form__div"> \n';
743
744 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
745 $form_content .=' <r> \n';
746 $form_content .=' <c><div> \n';
747 $form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ': <strong>[selected_short_timedates_hint]</strong> \n';
748 $form_content .=' ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br> \n';
749 $form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br> \n';
750 if ( class_exists( 'wpdev_bk_biz_l' ) ){ // >= biz_l
751 $form_content .=' ' . esc_attr__( 'Availability', 'booking' ) . ': [capacity_hint] \n';
752 }
753 $form_content .=' </div></c> \n';
754 $form_content .=' </r><hr> \n';
755 }
756
757 $form_content .=' <r> \n';
758 $form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* name] </c> \n';
759 $form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* secondname] </c> \n';
760 $form_content .=' </r> \n';
761 $form_content .=' <r> \n';
762 $form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[email* email] </c> \n';
763 $form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n';
764 $form_content .=' </r> \n';
765 $form_content .=' <r> \n';
766 $form_content .=' <c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n';
767 $form_content .=' <c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n';
768 $form_content .=' </r> \n';
769 $form_content .=' <r> \n';
770 $form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n';
771 $form_content .=' [textarea details] </c> \n';
772 $form_content .=' </r> \n';
773 $form_content .=' <spacer>height:10px;</spacer> \n';
774 $form_content .=' <r> \n';
775 $form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n';
776 $form_content .=' </r> \n';
777 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
778 $form_content .=' <r> \n';
779 $form_content .=' <c><p> \n';
780 $form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ': <strong>[selected_short_timedates_hint]</strong> \n';
781 $form_content .=' ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br> \n';
782 $form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br> \n';
783 $form_content .=' </p></c> \n';
784 $form_content .=' </r> \n';
785 }
786 $form_content .=' <hr> \n';
787 $form_content .=' <r> \n';
788 $form_content .=' <c> <p>[submit "' . esc_attr__( 'Send', 'booking' ) . '"]</p> </c> \n';
789 $form_content .=' </r> \n';
790 $form_content .='</div> \n';
791 }
792
793 if ( ($form_type == 'payment') || ($form_type == 'paymentUS') ){
794 $form_content = '';
795 $form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n';
796 $form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n';
797 $form_content .='[calendar] \n';
798 $form_content .='<div class="payment-form"> \n';
799 $form_content .=' <p>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* name] </p> \n';
800 $form_content .=' <p>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* secondname] </p> \n';
801 $form_content .=' <p>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[email* email] </p> \n';
802 $form_content .=' <p>' . esc_attr__( 'Phone', 'booking' ) . ':<br />[text phone] </p> \n';
803 $form_content .=' <p>' . esc_attr__( 'Address', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br /> [text* address] </p> \n';
804 $form_content .=' <p>' . esc_attr__( 'City', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br /> [text* city] </p> \n';
805 $form_content .=' <p>' . esc_attr__( 'Post code', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br /> [text* postcode] </p> \n';
806 if ( $form_type == 'paymentUS' ){ // FixIn: 8.1.1.5.
807 $form_content .=' <p>' . esc_attr__( 'Country', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br /> [country "US"] </p> \n';
808 $form_content .=' <p>' . esc_attr__( 'State', 'booking' ) . ':<br /> [selectbox state "" "Alabama@@AL" "Alaska@@AK" "Arizona@@AZ" "Arkansas@@AR" "California@@CA" "Colorado@@CO" "Connecticut@@CT" "Delaware@@DE" "Florida@@FL" "Georgia@@GA" "Hawaii@@HI" "Idaho@@ID" "Illinois@@IL" "Indiana@@IN" "Iowa@@IA" "Kansas@@KS" "Kentucky@@KY" "Louisiana@@LA" "Maine@@ME" "Maryland@@MD" "Massachusetts@@MA" "Michigan@@MI" "Minnesota@@MN" "Mississippi@@MS" "Missouri@@MO" "Montana@@MT" "Nebraska@@NE" "Nevada@@NV" "New Hampshire@@NH" "New Jersey@@NJ" "New Mexico@@NM" "New York@@NY" "North Carolina@@NC" "North Dakota@@ND" "Ohio@@OH" "Oklahoma@@OK" "Oregon@@OR" "Pennsylvania@@PA" "Rhode Island@@RI" "South Carolina@@SC" "South Dakota@@SD" "Tennessee@@TN" "Texas@@TX" "Utah@@UT" "Vermont@@VT" "Virginia@@VA" "Washington@@WA" "West Virginia@@WV" "Wisconsin@@WI" "Wyoming@@WY"] </p> \n';
809 } else {
810 $form_content .=' <p>' . esc_attr__( 'Country', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br /> [country] </p> \n';
811 }
812 $form_content .=' <p>' . esc_attr__( 'Adults', 'booking' ) . ':<br />[selectbox visitors "1" "2" "3" "4"]</p> \n';
813 $form_content .=' <p>' . esc_attr__( 'Children', 'booking' ) . ':<br />[selectbox children "0" "1" "2" "3"]</p> \n';
814 $form_content .=' <p>' . esc_attr__( 'Details', 'booking' ) . ':<br /> [textarea details] </p> \n';
815 $form_content .=' <p>[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </p> \n';
816 $form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</p> \n';
817 $form_content .='</div>';
818 }
819
820 if (
821 ($form_type == 'wizard') ||
822 ( in_array( $form_type, array( 'wizard_times', 'wizard_times30', 'wizard_times15', 'wizard_times120', 'wizard_times60', 'wizard_times60_24h' ) ) )
823 ){
824 // FixIn: 8.6.1.15.
825 $form_content = '';
826 $form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n';
827 $form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n';
828 $form_content .='<div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step1"> \n';
829 $form_content .=' <r> \n';
830 $form_content .=' <c> [calendar] </c> \n';
831
832 if ( in_array( $form_type, array( 'wizard_times', 'wizard_times30', 'wizard_times15', 'wizard_times120', 'wizard_times60', 'wizard_times60_24h' ) ) ){
833 $form_content .=' <c> <l>' . esc_attr__( 'Select Times', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br /> \n';
834
835 if ( $form_type == 'wizard_times' ){
836 $form_content .=' [selectbox rangetime "10:00 AM - 12:00 PM@@10:00 - 12:00" "12:00 PM - 02:00 PM@@12:00 - 14:00" "02:00 PM - 04:00 PM@@14:00 - 16:00" "04:00 PM - 06:00 PM@@16:00 - 18:00" "06:00 PM - 08:00 PM@@18:00 - 20:00"] \n';
837 }
838 if ( $form_type == 'wizard_times120' ){
839 $form_content .=' [selectbox* rangetime "6:00 AM - 8:00 AM@@06:00 - 08:00" "8:00 AM - 10:00 AM@@08:00 - 10:00" "10:00 AM - 12:00 PM@@10:00 - 12:00" "12:00 PM - 2:00 PM@@12:00 - 14:00" "2:00 PM - 4:00 PM@@14:00 - 16:00" "4:00 PM - 6:00 PM@@16:00 - 18:00" "6:00 PM - 8:00 PM@@18:00 - 20:00"] \n';
840 }
841 if ( $form_type == 'wizard_times60' ){
842 $form_content .=' [selectbox* rangetime "6:00 AM - 7:00 AM@@06:00 - 07:00" "7:00 AM - 8:00 AM@@07:00 - 08:00" "8:00 AM - 9:00 AM@@08:00 - 09:00" "9:00 AM - 10:00 AM@@09:00 - 10:00" "10:00 AM - 11:00 AM@@10:00 - 11:00" "11:00 AM - 12:00 PM@@11:00 - 12:00" "12:00 PM - 1:00 PM@@12:00 - 13:00" "1:00 PM - 2:00 PM@@13:00 - 14:00" "2:00 PM - 3:00 PM@@14:00 - 15:00" "3:00 PM - 4:00 PM@@15:00 - 16:00" "4:00 PM - 5:00 PM@@16:00 - 17:00" "5:00 PM - 6:00 PM@@17:00 - 18:00" "6:00 PM - 7:00 PM@@18:00 - 19:00" "7:00 PM - 8:00 PM@@19:00 - 20:00" "8:00 PM - 9:00 PM@@20:00 - 21:00"] \n';
843 }
844 if ( $form_type == 'wizard_times60_24h' ){
845 $form_content .=' [selectbox* rangetime "07:00 - 08:00" "08:00 - 09:00" "09:00 - 10:00" "10:00 - 11:00" "11:00 - 12:00" "12:00 - 13:00" "13:00 - 14:00" "14:00 - 15:00" "15:00 - 16:00" "16:00 - 17:00" "17:00 - 18:00" "18:00 - 19:00" "19:00 - 20:00" "20:00 - 21:00"] \n';
846 }
847 if ( $form_type == 'wizard_times30' ){
848 $form_content .=' [selectbox rangetime "09:00 - 09:30" "09:30 - 10:00" "10:00 - 10:30" "10:30 - 11:00" "11:00 - 11:30" "11:30 - 12:00" "12:00 - 12:30" "12:30 - 13:00" "13:00 - 13:30" "13:30 - 14:00" "14:00 - 14:30" "14:30 - 15:00" "15:00 - 15:30" "15:30 - 16:00" "16:00 - 16:30" "16:30 - 17:00" "17:00 - 17:30" "17:30 - 18:00" "18:00 - 18:30" "18:30 - 19:00"] \n';
849 }
850 if ( $form_type == 'wizard_times15' ){
851 $form_content .=' [selectbox rangetime "8:00 AM - 8:15 AM@@08:00 - 08:15" "8:15 AM - 8:30 AM@@08:15 - 08:30" "8:30 AM - 8:45 AM@@08:30 - 08:45" "8:45 AM - 9:00 AM@@08:45 - 09:00" "9:00 AM - 9:15 AM@@09:00 - 09:15" "9:15 AM - 9:30 AM@@09:15 - 09:30" "9:30 AM - 9:45 AM@@09:30 - 09:45" "9:45 AM - 10:00 AM@@09:45 - 10:00" "10:00 AM - 10:15 AM@@10:00 - 10:15" "10:15 AM - 10:30 AM@@10:15 - 10:30" "10:30 AM - 10:45 AM@@10:30 - 10:45" "10:45 AM - 11:00 AM@@10:45 - 11:00" "11:00 AM - 11:15 AM@@11:00 - 11:15" "11:15 AM - 11:30 AM@@11:15 - 11:30" "11:30 AM - 11:45 AM@@11:30 - 11:45" "11:45 AM - 12:00 AM@@11:45 - 12:00" "12:00 AM - 12:15 AM@@12:00 - 12:15" "12:15 AM - 12:30 AM@@12:15 - 12:30" "12:30 AM - 12:45 AM@@12:30 - 12:45" "12:45 AM - 1:00 PM@@12:45 - 13:00" "1:00 PM - 1:15 PM@@13:00 - 13:15" "1:15 PM - 1:30 PM@@13:15 - 13:30" "1:30 PM - 1:45 PM@@13:30 - 13:45" "1:45 PM - 2:00 PM@@13:45 - 14:00" "2:00 PM - 2:15 PM@@14:00 - 14:15" "2:15 PM - 2:30 PM@@14:15 - 14:30" "2:30 PM - 2:45 PM@@14:30 - 14:45" "2:45 PM - 3:00 PM@@14:45 - 15:00" "3:00 PM - 3:15 PM@@15:00 - 15:15" "3:15 PM - 3:30 PM@@15:15 - 15:30" "3:30 PM - 3:45 PM@@15:30 - 15:45" "3:45 PM - 4:00 PM@@15:45 - 16:00" "4:00 PM - 4:15 PM@@16:00 - 16:15" "4:15 PM - 4:30 PM@@16:15 - 16:30" "4:30 PM - 4:45 PM@@16:30 - 16:45" "4:45 PM - 5:00 PM@@16:45 - 17:00" "5:00 PM - 5:15 PM@@17:00 - 17:15" "5:15 PM - 5:30 PM@@17:15 - 17:30" "5:30 PM - 5:45 PM@@17:30 - 17:45" "5:45 PM - 6:00 PM@@17:45 - 18:00" "6:00 PM - 6:15 PM@@18:00 - 18:15" "6:15 PM - 6:30 PM@@18:15 - 18:30" "6:30 PM - 6:45 PM@@18:30 - 18:45" "6:45 PM - 7:00 PM@@18:45 - 19:00" "7:00 PM - 7:15 PM@@19:00 - 19:15" "7:15 PM - 7:30 PM@@19:15 - 19:30" "7:30 PM - 7:45 PM@@19:30 - 19:45" "7:45 PM - 8:00 PM@@19:45 - 20:00" "8:00 PM - 8:15 PM@@20:00 - 20:15" "8:15 PM - 8:30 PM@@20:15 - 20:30" "8:30 PM - 8:45 PM@@20:30 - 20:45" "8:45 PM - 9:00 PM@@20:45 - 21:00" "9:00 PM - 9:15 PM@@21:00 - 21:15" "9:15 PM - 9:30 PM@@21:15 - 21:30" "9:30 PM - 9:45 PM@@21:30 - 21:45"] \n';
852 }
853 $form_content .=' </c> \n';
854 } else if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
855 $form_content .=' <c><p> \n';
856 $form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ': <strong>[selected_short_timedates_hint]</strong> \n';
857 $form_content .=' ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br> \n';
858 $form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br> \n';
859 $form_content .=' </p></c> \n';
860 }
861 $form_content .=' </r> <hr> \n';
862 $form_content .=' <r> \n';
863 $form_content .=' <div class="wpbc__field" style="justify-content: flex-end;"> \n';
864 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2" > \n';
865 $form_content .=' ' . esc_attr__( 'Next', 'booking' ) . ' \n';
866 $form_content .=' </a> \n';
867 $form_content .=' </div> \n';
868 $form_content .=' </r> \n';
869 $form_content .='</div> \n';
870 $form_content .='<div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step2 wpbc_wizard_step_hidden" style="display:none;clear:both;"> \n';
871 $form_content .=' <r> \n';
872 $form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* name] </c> \n';
873 $form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* secondname] </c> \n';
874 $form_content .=' </r> \n';
875 $form_content .=' <r> \n';
876 $form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[email* email] </c> \n';
877 $form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n';
878 $form_content .=' </r> \n';
879 $form_content .=' <r> \n';
880 $form_content .=' <c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n';
881 $form_content .=' <c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n';
882 $form_content .=' </r> \n';
883 $form_content .=' <r> \n';
884 $form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n';
885 $form_content .=' [textarea details] </c> \n';
886 $form_content .=' </r> \n';
887 $form_content .=' <spacer>height:10px;</spacer> \n';
888 $form_content .=' <r> \n';
889 $form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n';
890 $form_content .=' </r> \n';
891 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
892 $form_content .=' <r> \n';
893 $form_content .=' <c><div class="form-hints"> \n';
894 $form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ': <strong>[selected_short_timedates_hint]</strong> \n';
895 $form_content .=' ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br> \n';
896 $form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br> \n';
897 $form_content .=' </div></c> \n';
898 $form_content .=' </r> \n';
899 }
900 $form_content .=' <hr> \n';
901 $form_content .=' <r> \n';
902 $form_content .=' <div class="wpbc__field" style="justify-content: flex-end;"> \n';
903 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_1">' . esc_attr__( 'Back', 'booking' ) . '</a>&nbsp;&nbsp;&nbsp; \n';
904 $form_content .=' [submit "' . esc_attr__( 'Send', 'booking' ) . '"] \n';
905 $form_content .=' </div> \n';
906 $form_content .=' </r> \n';
907 $form_content .='</div> \n';
908
909 }
910
911 if ($form_type == '2collumns') { // calendar next to form
912 $form_content = '';
913
914 $form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n';
915 $form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n';
916 $form_content .='<r> \n';
917 $form_content .=' <c>[calendar]</c> \n';
918 $form_content .=' <spacer>width:40px;</spacer> \n';
919 $form_content .=' <c> \n';
920 $form_content .=' <r><c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l> <br>[text* name]</c></r> \n';
921 $form_content .=' <r><c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l> <br>[text* secondname] </c></r> \n';
922 $form_content .=' <r><c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l> <br>[email* email] </c></r> \n';
923 $form_content .=' <r><c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l> <br>[text phone] </c></r> \n';
924 $form_content .=' <r><c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l> <br>[selectbox visitors "1" "2" "3" "4"] </c></r> \n';
925 $form_content .=' <r><c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l> <br>[selectbox children "0" "1" "2" "3"] </c></r> \n';
926 $form_content .=' <r><c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><br> [textarea details]</c></r> \n';
927 $form_content .=' <r> \n';
928 $form_content .=' <c>[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"]</c> \n';
929 $form_content .=' </r> \n';
930 $form_content .=' <hr/> \n';
931 $form_content .=' <r><c>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</c></r> \n';
932 $form_content .=' </c> \n';
933 $form_content .='</r> \n';
934
935
936 // $form_content .='<r> \n';
937 // $form_content .=' <c>[calendar]</c> \n';
938 // $form_content .=' <c> \n';
939 // $form_content .=' <r><c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* name]</c></r> \n';
940 // $form_content .=' <r><c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* secondname]</c></r> \n';
941 // $form_content .=' <r><c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[email* email]</c></r> \n';
942 // $form_content .=' <r><c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br>[text phone]</c></r> \n';
943 // $form_content .=' <r><c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br>[selectbox visitors "1" "2" "3" "4"]</c></r> \n';
944 // $form_content .=' <r><c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br>[selectbox children "0" "1" "2" "3"]</c></r> \n';
945 // $form_content .=' <r><c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><br> [textarea details]</c></r> \n';
946 // $form_content .=' <r> \n';
947 // $form_content .=' <c>[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"]</c> \n';
948 // $form_content .=' </r> \n';
949 // $form_content .=' <hr/> \n';
950 // $form_content .=' <r><c>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</c></r> \n';
951 // $form_content .=' </c> \n';
952 // $form_content .='</r> \n';
953
954 // $form_content .='<div class="wpbc_sections"> \n';
955 // $form_content .=' <div class="wpbc_section_50"> \n';
956 // $form_content .=' [calendar] \n';
957 // $form_content .=' </div> \n';
958 // $form_content .=' <div class="wpbc_section_spacer"></div> \n';
959 // $form_content .=' <div class="wpbc_section_50"> \n';
960 // $form_content .=' <p>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* name] </p> \n';
961 // $form_content .=' <p>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* secondname] </p> \n';
962 // $form_content .=' <p>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[email* email] </p> \n';
963 // $form_content .=' <p>' . esc_attr__( 'Phone', 'booking' ) . ':<br />[text phone] </p> \n';
964 // $form_content .=' <p>' . esc_attr__( 'Adults', 'booking' ) . ':<br />[selectbox visitors "1" "2" "3" "4"]</p> \n';
965 // $form_content .=' <p>' . esc_attr__( 'Children', 'booking' ) . ':<br />[selectbox children "0" "1" "2" "3"]</p> \n';
966 // $form_content .=' </div> \n';
967 // $form_content .=' <div class="wpbc_section_100"> \n';
968 // $form_content .=' <p>' . esc_attr__( 'Details', 'booking' ) . ':<br /> [textarea details]</p> \n';
969 // $form_content .=' <p>[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"]</p> \n';
970 // $form_content .=' <hr/> \n';
971 // $form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"] </p> \n';
972 // $form_content .=' </div> \n';
973 // $form_content .='</div> \n';
974 }
975
976 // FixIn: 8.7.7.15.
977 if ($form_type == 'fields2columns') { // 2 columns form
978 $form_content = '';
979 $form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n';
980 $form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n';
981 $form_content .='[calendar]\n';
982 $form_content .='<div class="wpbc__form__div">\n';
983 $form_content .=' <r>\n';
984 $form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* name] </c>\n';
985 $form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* secondname] </c>\n';
986 $form_content .=' </r>\n';
987 $form_content .=' <r>\n';
988 $form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[email* email] </c>\n';
989 $form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br>[text phone] </c>\n';
990 $form_content .=' </r>\n';
991 $form_content .=' <r>\n';
992 $form_content .=' <c> <l>' . esc_attr__( 'Address', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* address] </c>\n';
993 $form_content .=' <c> <l>' . esc_attr__( 'City', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* city] </c>\n';
994 $form_content .=' </r>\n';
995 $form_content .=' <r>\n';
996 $form_content .=' <c> <l>' . esc_attr__( 'Post code', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* postcode] </c>\n';
997 $form_content .=' <c> <l>' . esc_attr__( 'Country', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[country] </c>\n';
998 $form_content .=' </r>\n';
999 $form_content .=' <r>\n';
1000 $form_content .=' <c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br>[selectbox visitors "1" "2" "3" "4" "5"] </c>\n';
1001 $form_content .=' <c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br>[selectbox children "0" "1" "2" "3"] </c>\n';
1002 $form_content .=' </r>\n';
1003 $form_content .=' <r>\n';
1004 $form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n';
1005 $form_content .=' [textarea details] </c>\n';
1006 $form_content .=' </r><br>\n';
1007 $form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</p>\n';
1008 $form_content .='</div>';
1009 }
1010
1011 // FixIn: 8.8.2.6.
1012 if ($form_type == 'fields3columns') { // 3 columns form
1013 $form_content = '';
1014 $form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n';
1015 $form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n';
1016 $form_content .='<r>\n';
1017 $form_content .=' <c> [calendar] </c>\n';
1018 $form_content .=' <c>\n';
1019 $form_content .=' <div class="wpbc__form__div">\n';
1020 $form_content .=' <r>\n';
1021 $form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* name] </c>\n';
1022 $form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* secondname] </c>\n';
1023 $form_content .=' </r>\n';
1024 $form_content .=' <r>\n';
1025 $form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[email* email] </c>\n';
1026 $form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br>[text phone] </c>\n';
1027 $form_content .=' </r>\n';
1028 $form_content .=' <r>\n';
1029 $form_content .=' <c> <l>' . esc_attr__( 'Address', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* address] </c>\n';
1030 $form_content .=' <c> <l>' . esc_attr__( 'City', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* city] </c>\n';
1031 $form_content .=' </r>\n';
1032 $form_content .=' <r>\n';
1033 $form_content .=' <c> <l>' . esc_attr__( 'Post code', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* postcode] </c>\n';
1034 $form_content .=' <c> <l>' . esc_attr__( 'Country', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[country] </c>\n';
1035 $form_content .=' </r>\n';
1036 $form_content .=' <r>\n';
1037 $form_content .=' <c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br>[selectbox visitors "1" "2" "3" "4" "5"] </c>\n';
1038 $form_content .=' <c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br>[selectbox children "0" "1" "2" "3"] </c>\n';
1039 $form_content .=' </r>\n';
1040 $form_content .=' <r>\n';
1041 $form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n';
1042 $form_content .=' [textarea details] </c>\n';
1043 $form_content .=' </r>\n';
1044 $form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</p>\n';
1045 $form_content .=' </div>\n';
1046 $form_content .=' </c>\n';
1047 $form_content .='</r>\n';
1048 }
1049
1050
1051 // FixIn: 8.7.11.14.
1052 if ($form_type == 'fields2columnstimes') { // 2 columns form
1053 $form_content = '';
1054 $form_content .='<div class="wpbc__form__div"> \n';
1055 $form_content .=' <r> \n';
1056 $form_content .=' <c> <l>Select Date:</l><br />[calendar] </c> \n';
1057 $form_content .=' <c> <l>' . esc_attr__( 'Select Times', 'booking' ) . '*:</l><br /> \n';
1058 $form_content .=' [select* rangetime "10:00 AM - 12:00 PM@@10:00 - 12:00" "12:00 PM - 02:00 PM@@12:00 - 14:00" "02:00 PM - 04:00 PM@@14:00 - 16:00" "04:00 PM - 06:00 PM@@16:00 - 18:00" "06:00 PM - 08:00 PM@@18:00 - 20:00"] </c> \n';
1059 $form_content .=' </r> \n';
1060 $form_content .=' <r> \n';
1061 $form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* name] </c> \n';
1062 $form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* secondname] </c> \n';
1063 $form_content .=' </r> \n';
1064 $form_content .=' <r> \n';
1065 $form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[email* email] </c> \n';
1066 $form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n';
1067 $form_content .=' </r> \n';
1068 $form_content .=' <r> \n';
1069 $form_content .=' <c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n';
1070 $form_content .=' <c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n';
1071 $form_content .=' </r> \n';
1072 $form_content .=' <r> \n';
1073 $form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n';
1074 $form_content .=' [textarea details] </c> \n';
1075 $form_content .=' </r><br /> \n';
1076 $form_content .=' <p>[submit "' . esc_attr__( 'Send', 'booking' ) . '"]</p>\n';
1077 $form_content .='</div>\n';
1078 }
1079
1080 if ($form_content == '') { // Default Form.
1081 $form_content = '';
1082 $form_content .='[calendar] \n';
1083 $form_content .='<div class="standard-form"> \n';
1084 $form_content .=' <p>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* name] </p> \n';
1085 $form_content .=' <p>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* secondname] </p> \n';
1086 $form_content .=' <p>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[email* email] </p> \n';
1087 $form_content .=' <p>' . esc_attr__( 'Phone', 'booking' ) . ':<br />[text phone] </p> \n';
1088 $form_content .=' <p>' . esc_attr__( 'Adults', 'booking' ) . ':<br />[selectbox visitors "1" "2" "3" "4"]</p> \n';
1089 $form_content .=' <p>' . esc_attr__( 'Children', 'booking' ) . ':<br />[selectbox children "0" "1" "2" "3"]</p> \n';
1090 $form_content .=' <p>' . esc_attr__( 'Details', 'booking' ) . ':<br /> [textarea details] </p> \n';
1091 $form_content .=' <p>[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </p>\n';
1092 $form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</p> \n';
1093 $form_content .='</div>';
1094 }
1095
1096
1097 if ( in_array( $form_type, array( 'appointments_service_a' ) ) ) {
1098 // FixIn: 10.9.6.5.
1099 $form_content = '';
1100 $form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n';
1101 $form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n';
1102 $form_content .='<div class="wpbc_wizard__border_container"> \n';
1103 $form_content .=' <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step1"> \n';
1104 $form_content .=' [steps_timeline steps_count="3" active_step="1"] \n';
1105 $form_content .=' <r> \n';
1106 $form_content .=' <c class="wpbc_aling_center"> \n';
1107 $form_content .=' <l>' . esc_attr__( 'Select Service', 'booking' ) . ' *</l><br /><spacer>height:20px;</spacer> \n';
1108 $form_content .=' [selectbox durationtime "Service A (20 min)@@00:20" "Service B (30 min)@@00:30" "Service C (45 min)@@00:45" "Service D (1 hour)@@01:00"]<spacer>height:15px;</spacer> \n';
1109 $form_content .=' </c> \n';
1110 $form_content .=' </r> \n';
1111 $form_content .=' <hr><r> \n';
1112 $form_content .=' <c class="wpbc_aling_right" > \n';
1113 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2"> \n';
1114 $form_content .=' ' . esc_attr__( 'Next', 'booking' ) . ' \n';
1115 $form_content .=' </a> \n';
1116 $form_content .=' </c> \n';
1117 $form_content .=' </r> \n';
1118 $form_content .=' </div> \n';
1119 $form_content .=' <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step2 wpbc_wizard_step_hidden" style="display:none;clear:both;"> \n';
1120 $form_content .=' [steps_timeline steps_count="3" active_step="2"]<hr> \n';
1121 $form_content .=' <r> \n';
1122 $form_content .=' <c> <l>' . esc_attr__( 'Select Date', 'booking' ) . ' *</l><br /> [calendar] </c> \n';
1123 $form_content .=' <c> <l>' . esc_attr__( 'Select Times', 'booking' ) . ' *</l><br /> \n';
1124 $form_content .=' [selectbox starttime "09:00" "09:30" "10:00" "10:30" "11:00" "11:30" "12:00" "12:30" "13:00" "13:30" "14:00" "14:30" "15:00" "15:30" "16:00" "16:30" "17:00" "17:30" "18:00"] \n';
1125 $form_content .=' </c> \n';
1126 $form_content .=' </r> \n';
1127 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
1128 $form_content .= ' <r> <c> \n';
1129 $form_content .= ' <div class="form-hints"> \n';
1130 $form_content .= ' ' . esc_attr__( 'Date', 'booking' ) . ': &nbsp;<strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n';
1131 $form_content .= ' ' . esc_attr__( 'Time', 'booking' ) . ': &nbsp;<strong>[start_time_hint] - [end_time_hint]</strong> \n';
1132 $form_content .= ' </div> \n';
1133 $form_content .= ' </c> \n';
1134 $form_content .= ' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': &nbsp;<strong>[cost_hint]</strong></c> \n';
1135 $form_content .= ' </r> \n';
1136 }
1137 $form_content .=' <hr> \n';
1138 $form_content .=' <r> \n';
1139 $form_content .=' <c class="wpbc_aling_right" > \n';
1140 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_1"> \n';
1141 $form_content .=' ' . esc_attr__( 'Back', 'booking' ) . '</a><spacer>width:20px;</spacer> \n';
1142 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_3" > \n';
1143 $form_content .=' ' . esc_attr__( 'Next', 'booking' ) . '</a> \n';
1144 $form_content .=' </c> \n';
1145 $form_content .=' </r> \n';
1146 $form_content .=' </div> \n';
1147 $form_content .=' <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step3 wpbc_wizard_step_hidden" style="display:none;clear:both;"> \n';
1148 $form_content .=' [steps_timeline steps_count="3" active_step="3"]<hr> \n';
1149 $form_content .=' <r> \n';
1150 $form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' *</l><br />[text* name] </c> \n';
1151 $form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' *</l><br />[text* secondname] </c> \n';
1152 $form_content .=' </r> \n';
1153 $form_content .=' <r> \n';
1154 $form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' *</l><br />[email* email] </c> \n';
1155 $form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . '</l><br />[text phone] </c> \n';
1156 $form_content .=' </r> \n';
1157 $form_content .=' <r> \n';
1158 $form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . '</l><spacer></spacer> \n';
1159 $form_content .=' [textarea details] </c> \n';
1160 $form_content .=' </r> \n';
1161 $form_content .=' <spacer>height:10px;</spacer> \n';
1162 $form_content .=' <r> \n';
1163 $form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n';
1164 $form_content .=' </r> \n';
1165 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
1166 $form_content .=' <r> <c> \n';
1167 $form_content .=' <div class="form-hints"> \n';
1168 $form_content .=' ' . esc_attr__( 'Date', 'booking' ) . ': &nbsp;<strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n';
1169 $form_content .=' ' . esc_attr__( 'Time', 'booking' ) . ': &nbsp;<strong>[start_time_hint] - [end_time_hint]</strong> \n';
1170 $form_content .=' </div> \n';
1171 $form_content .=' </c> \n';
1172 $form_content .=' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': &nbsp;<strong>[cost_hint]</strong></c> \n';
1173 $form_content .=' </r> \n';
1174 }
1175 $form_content .=' <hr> \n';
1176 $form_content .=' <r> \n';
1177 $form_content .=' <c class="wpbc_aling_right" > \n';
1178 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2"> \n';
1179 $form_content .=' ' . esc_attr__( 'Back', 'booking' ) . '</a><spacer>width:20px;</spacer> \n';
1180 $form_content .=' [submit "' . esc_attr__( 'Send', 'booking' ) . '"] \n';
1181 $form_content .=' </c> \n';
1182 $form_content .=' </r> \n';
1183 $form_content .=' </div> \n';
1184 $form_content .='</div>';
1185 }
1186
1187 if ( in_array( $form_type, array( 'appointments_service_b' ) ) ) {
1188 // FixIn: 10.9.6.5.
1189 $form_content = '';
1190 $form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n';
1191 $form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n';
1192 $form_content .='<div class="wpbc_wizard__border_container"> \n';
1193 $form_content .=' <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step1"> \n';
1194 $form_content .=' [steps_timeline steps_count="3" active_step="1"] \n';
1195 $form_content .=' <r> \n';
1196 $form_content .=' <c class="wpbc_aling_center"> \n';
1197 $form_content .=' <l>' . esc_attr__( 'Select Service', 'booking' ) . ' *</l><br /><spacer>height:20px;</spacer> \n';
1198 $form_content .=' [selectbox durationtime "Service A (20 min)@@00:20" "Service B (30 min)@@00:30" "Service C (45 min)@@00:45" "Service D (1 hour)@@01:00"]<spacer>height:15px;</spacer> \n';
1199 $form_content .=' </c> \n';
1200 $form_content .=' </r> \n';
1201 $form_content .=' <hr> \n';
1202 $form_content .=' <r> \n';
1203 $form_content .=' <c> <l>' . esc_attr__( 'Select Date', 'booking' ) . ' *</l><br /> [calendar] </c> \n';
1204 $form_content .=' <c> <l>' . esc_attr__( 'Select Times', 'booking' ) . ' *</l><br /> \n';
1205 $form_content .=' [selectbox starttime "09:00" "09:30" "10:00" "10:30" "11:00" "11:30" "12:00" "12:30" "13:00" "13:30" "14:00" "14:30" "15:00" "15:30" "16:00" "16:30" "17:00" "17:30" "18:00"] \n';
1206 $form_content .=' </c> \n';
1207 $form_content .=' </r> \n';
1208 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
1209 $form_content .= ' <r> <c> \n';
1210 $form_content .= ' <div class="form-hints"> \n';
1211 $form_content .= ' ' . esc_attr__( 'Date', 'booking' ) . ': &nbsp;<strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n';
1212 $form_content .= ' ' . esc_attr__( 'Time', 'booking' ) . ': &nbsp;<strong>[start_time_hint] - [end_time_hint]</strong> \n';
1213 $form_content .= ' </div> \n';
1214 $form_content .= ' </c> \n';
1215 $form_content .= ' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': &nbsp;<strong>[cost_hint]</strong></c> \n';
1216 $form_content .= ' </r> \n';
1217 }
1218 $form_content .=' <hr> \n';
1219 $form_content .=' <r> \n';
1220 $form_content .=' <c class="wpbc_aling_right" > \n';
1221 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2" > \n';
1222 $form_content .=' ' . esc_attr__( 'Next', 'booking' ) . '</a> \n';
1223 $form_content .=' </c> \n';
1224 $form_content .=' </r> \n';
1225 $form_content .=' </div> \n';
1226 $form_content .=' <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step2 wpbc_wizard_step_hidden" style="display:none;clear:both;"> \n';
1227 $form_content .=' [steps_timeline steps_count="3" active_step="2"] \n';
1228 $form_content .=' <r> \n';
1229 $form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' *</l><br />[text* name] </c> \n';
1230 $form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' *</l><br />[text* secondname] </c> \n';
1231 $form_content .=' </r> \n';
1232 $form_content .=' <r> \n';
1233 $form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' *</l><br />[email* email] </c> \n';
1234 $form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . '</l><br />[text phone] </c> \n';
1235 $form_content .=' </r> \n';
1236 $form_content .=' <r> \n';
1237 $form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . '</l><spacer></spacer> \n';
1238 $form_content .=' [textarea details] </c> \n';
1239 $form_content .=' </r> \n';
1240 $form_content .=' <spacer>height:10px;</spacer> \n';
1241 $form_content .=' <r> \n';
1242 $form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n';
1243 $form_content .=' </r> \n';
1244 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
1245 $form_content .=' <r> <c> \n';
1246 $form_content .=' <div class="form-hints"> \n';
1247 $form_content .=' ' . esc_attr__( 'Date', 'booking' ) . ': &nbsp;<strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n';
1248 $form_content .=' ' . esc_attr__( 'Time', 'booking' ) . ': &nbsp;<strong>[start_time_hint] - [end_time_hint]</strong> \n';
1249 $form_content .=' </div> \n';
1250 $form_content .=' </c> \n';
1251 $form_content .=' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': &nbsp;<strong>[cost_hint]</strong></c> \n';
1252 $form_content .=' </r> \n';
1253 }
1254 $form_content .=' <hr> \n';
1255 $form_content .=' <r> \n';
1256 $form_content .=' <c class="wpbc_aling_right" > \n';
1257 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_1"> \n';
1258 $form_content .=' ' . esc_attr__( 'Back', 'booking' ) . '</a><spacer>width:20px;</spacer> \n';
1259 $form_content .=' [submit "' . esc_attr__( 'Send', 'booking' ) . '"] \n';
1260 $form_content .=' </c> \n';
1261 $form_content .=' </r> \n';
1262 $form_content .=' </div> \n';
1263 $form_content .='</div>';
1264 }
1265
1266 // FixIn: 10.12.4.8.
1267 if ( in_array( $form_type, array( 'appointments_service_c' ) ) ) {
1268 $form_content = '';
1269 $form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n';
1270 $form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n';
1271 $form_content .='<div class="wpbc_wizard__border_container"> \n';
1272 $form_content .=' <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step1"> \n';
1273 $form_content .=' <r> \n';
1274 $form_content .=' <c style="flex: 1 1 160px;padding-right: 20px;margin: 12px 0;border-right: 1px solid #ccc;align-self: stretch;"> \n';
1275 $form_content .=' <r> \n';
1276 $form_content .=' <c> \n';
1277 $form_content .=' <l>' . esc_attr__( 'Select Service', 'booking' ) . ' *</l><br /><spacer>height:20px;</spacer> \n';
1278 $form_content .=' [selectbox durationtime "Service A (20 min)@@00:20" "Service B (30 min)@@00:30" "Service C (45 min)@@00:45" "Service D (1 hour)@@01:00"]<spacer>height:15px;</spacer> \n';
1279 $form_content .=' </c> \n';
1280 $form_content .=' </r> \n';
1281 $form_content .=' </c> \n';
1282 $form_content .=' <c style="flex: 1 1 70%;"> \n';
1283 $form_content .=' <r style="gap: 30px;"> \n';
1284 $form_content .=' <c style="flex: 1 1 220px;"> <l>' . esc_attr__( 'Select Date', 'booking' ) . ' *</l><br /><spacer>height:18px;</spacer> [calendar] </c> \n';
1285 $form_content .=' <c style="flex: 1 1 190px;"> <l>' . esc_attr__( 'Select Times', 'booking' ) . ' *</l><br /><spacer>height:20px;</spacer> \n';
1286 $form_content .=' [selectbox starttime "09:00" "09:30" "10:00" "10:30" "11:00" "11:30" "12:00" "12:30" "13:00" "13:30" "14:00" "14:30" "15:00" "15:30" "16:00" "16:30" "17:00" "17:30" "18:00"] \n';
1287 $form_content .=' </c> \n';
1288 $form_content .=' </r> \n';
1289 $form_content .=' </c> \n';
1290 $form_content .=' </r> \n';
1291 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
1292 $form_content .= ' <r> <c> \n';
1293 $form_content .= ' <div class="form-hints"> \n';
1294 $form_content .= ' ' . esc_attr__( 'Date', 'booking' ) . ': &nbsp;<strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n';
1295 $form_content .= ' ' . esc_attr__( 'Time', 'booking' ) . ': &nbsp;<strong>[start_time_hint] - [end_time_hint]</strong> \n';
1296 $form_content .= ' </div> \n';
1297 $form_content .= ' </c> \n';
1298 $form_content .= ' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': &nbsp;<strong>[cost_hint]</strong></c> \n';
1299 $form_content .= ' </r> \n';
1300 }
1301 $form_content .=' <hr> \n';
1302 $form_content .=' <r> \n';
1303 $form_content .=' <c class="wpbc_aling_right" > \n';
1304 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2" > \n';
1305 $form_content .=' ' . esc_attr__( 'Next', 'booking' ) . '</a> \n';
1306 $form_content .=' </c> \n';
1307 $form_content .=' </r> \n';
1308 $form_content .=' </div> \n';
1309 $form_content .=' <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step2 wpbc_wizard_step_hidden" style="display:none;clear:both;"> \n';
1310 $form_content .=' <r> \n';
1311 $form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' *</l><br />[text* name] </c> \n';
1312 $form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' *</l><br />[text* secondname] </c> \n';
1313 $form_content .=' </r> \n';
1314 $form_content .=' <r> \n';
1315 $form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' *</l><br />[email* email] </c> \n';
1316 $form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . '</l><br />[text phone] </c> \n';
1317 $form_content .=' </r> \n';
1318 $form_content .=' <r> \n';
1319 $form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . '</l><spacer></spacer> \n';
1320 $form_content .=' [textarea details] </c> \n';
1321 $form_content .=' </r> \n';
1322 $form_content .=' <spacer>height:10px;</spacer> \n';
1323 $form_content .=' <r> \n';
1324 $form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n';
1325 $form_content .=' </r> \n';
1326 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
1327 $form_content .=' <r> <c> \n';
1328 $form_content .=' <div class="form-hints"> \n';
1329 $form_content .=' ' . esc_attr__( 'Date', 'booking' ) . ': &nbsp;<strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n';
1330 $form_content .=' ' . esc_attr__( 'Time', 'booking' ) . ': &nbsp;<strong>[start_time_hint] - [end_time_hint]</strong> \n';
1331 $form_content .=' </div> \n';
1332 $form_content .=' </c> \n';
1333 $form_content .=' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': &nbsp;<strong>[cost_hint]</strong></c> \n';
1334 $form_content .=' </r> \n';
1335 }
1336 $form_content .=' <hr> \n';
1337 $form_content .=' <r> \n';
1338 $form_content .=' <c class="wpbc_aling_right" > \n';
1339 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_1"> \n';
1340 $form_content .=' ' . esc_attr__( 'Back', 'booking' ) . '</a><spacer>width:20px;</spacer> \n';
1341 $form_content .=' [submit "' . esc_attr__( 'Send', 'booking' ) . '"] \n';
1342 $form_content .=' </c> \n';
1343 $form_content .=' </r> \n';
1344 $form_content .=' </div> \n';
1345 $form_content .='</div> \n';
1346 }
1347
1348 // FixIn: 10.12.4.9.
1349 if ( in_array( $form_type, array( 'wizard_no_times_a' ) ) ) {
1350 $form_content = '';
1351 if ( ! wpbc_is_this_demo() ) {
1352 $form_content .= '<style type="text/css">.wpbc_container_booking_form .wpbc__field .wpbc_calendar_wraper:has(.cal_month_num_1){width:auto;} .wpbc_hints{float: right;margin: 10px;}</style>';
1353 }
1354 $form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n';
1355 $form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n';
1356 $form_content .='<div class="wpbc_wizard__border_container"> \n';
1357 $form_content .='<div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step1"> \n';
1358 $form_content .=' <r> \n';
1359 $form_content .=' <c> [calendar] \n';
1360 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
1361 $form_content .=' <div class="wpbc_hints"> \n';
1362 $form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ': <strong>[selected_short_timedates_hint]</strong> \n';
1363 $form_content .=' ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br> \n';
1364 $form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br> \n';
1365 $form_content .=' </div> \n';
1366 }
1367 $form_content .=' </c> \n';
1368 $form_content .=' </r> <hr> \n';
1369 $form_content .=' <r> \n';
1370 $form_content .=' <div class="wpbc__field" style="justify-content: flex-end;"> \n';
1371 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2" > \n';
1372 $form_content .=' ' . esc_attr__( 'Next', 'booking' ) . ' \n';
1373 $form_content .=' </a> \n';
1374 $form_content .=' </div> \n';
1375 $form_content .=' </r> \n';
1376 $form_content .='</div> \n';
1377 $form_content .='<div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step2 wpbc_wizard_step_hidden" style="display:none;clear:both;"> \n';
1378 $form_content .=' <r> \n';
1379 $form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* name] </c> \n';
1380 $form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* secondname] </c> \n';
1381 $form_content .=' </r> \n';
1382 $form_content .=' <r> \n';
1383 $form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[email* email] </c> \n';
1384 $form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n';
1385 $form_content .=' </r> \n';
1386 $form_content .=' <r> \n';
1387 $form_content .=' <c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n';
1388 $form_content .=' <c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n';
1389 $form_content .=' </r> \n';
1390 $form_content .=' <r> \n';
1391 $form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n';
1392 $form_content .=' [textarea details] </c> \n';
1393 $form_content .=' </r> \n';
1394 $form_content .=' <spacer>height:10px;</spacer> \n';
1395 $form_content .=' <r> \n';
1396 $form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n';
1397 $form_content .=' </r> \n';
1398 if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
1399 $form_content .=' <r> \n';
1400 $form_content .=' <c><div class="form-hints"> \n';
1401 $form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ': <strong>[selected_short_timedates_hint]</strong> \n';
1402 $form_content .=' ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br> \n';
1403 $form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br> \n';
1404 $form_content .=' </div></c> \n';
1405 $form_content .=' </r> \n';
1406 }
1407 $form_content .=' <hr> \n';
1408 $form_content .=' <r> \n';
1409 $form_content .=' <div class="wpbc__field" style="justify-content: flex-end;"> \n';
1410 $form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_1">' . esc_attr__( 'Back', 'booking' ) . '</a>&nbsp;&nbsp;&nbsp; \n';
1411 $form_content .=' [submit "' . esc_attr__( 'Send', 'booking' ) . '"] \n';
1412 $form_content .=' </div> \n';
1413 $form_content .=' </r> \n';
1414 $form_content .='</div> \n';
1415 $form_content .='</div> \n';
1416 }
1417
1418 return $form_content;
1419 }
1420
1421
1422 function wpbc_get__predefined_booking_data__template( $form_type ){
1423
1424 $form_content = '';
1425 // FixIn: 10.7.1.4.
1426 if (
1427 ( in_array( $form_type, array( 'appointments30' ) ) )
1428 ){
1429 $form_content = '';
1430 $form_content .='<div class="standard-content-form"> \n';
1431 $form_content .=' <b>' . esc_attr__( 'Times', 'booking' ) . '</b>: <f>[rangetime]</f><br>\n';
1432 $form_content .=' <b>' . esc_attr__( 'First Name', 'booking' ) . '</b>: <f>[name]</f><br>\n';
1433 $form_content .=' <b>' . esc_attr__( 'Last Name', 'booking' ) . '</b>: <f>[secondname]</f><br>\n';
1434 $form_content .=' <b>' . esc_attr__( 'Email', 'booking' ) . '</b>: <f>[email]</f><br>\n';
1435 $form_content .=' <b>' . esc_attr__( 'Phone', 'booking' ) . '</b>: <f>[phone]</f><br>\n';
1436 $form_content .=' <b>' . esc_attr__( 'Details', 'booking' ) . '</b>: <f>[details]</f>\n';
1437 $form_content .='</div>';
1438 }
1439 if ( ($form_type == 'payment') || ($form_type == 'paymentUS') || ( 'fields2columns' == $form_type ) || ( 'fields3columns' == $form_type ) ) { //FixIn: 8.7.7.15 // FixIn: 8.8.2.6.
1440 $form_content = '';
1441 $form_content .='<div class="standard-content-form"> \n';
1442 $form_content .=' <b>' . esc_attr__( 'First Name', 'booking' ) . '</b>: <f>[name]</f><br>\n';
1443 $form_content .=' <b>' . esc_attr__( 'Last Name', 'booking' ) . '</b>: <f>[secondname]</f><br>\n';
1444 $form_content .=' <b>' . esc_attr__( 'Email', 'booking' ) . '</b>: <f>[email]</f><br>\n';
1445 $form_content .=' <b>' . esc_attr__( 'Phone', 'booking' ) . '</b>: <f>[phone]</f><br>\n';
1446 $form_content .=' <b>' . esc_attr__( 'Address', 'booking' ) . '</b>: <f>[address]</f><br>\n';
1447 $form_content .=' <b>' . esc_attr__( 'City', 'booking' ) . '</b>: <f>[city]</f><br>\n';
1448 $form_content .=' <b>' . esc_attr__( 'Post code', 'booking' ) . '</b>: <f>[postcode]</f><br>\n';
1449 $form_content .=' <b>' . esc_attr__( 'Country', 'booking' ) . '</b>: <f>[country]</f><br>\n';
1450 if ( $form_type == 'paymentUS' ) {
1451 $form_content .=' <b>' . esc_attr__( 'State', 'booking' ) . '</b>: <f>[state]</f><br>\n';
1452 }
1453 $form_content .=' <b>' . esc_attr__( 'Adults', 'booking' ) . '</b>: <f>[visitors]</f><br>\n';
1454 $form_content .=' <b>' . esc_attr__( 'Children', 'booking' ) . '</b>: <f>[children]</f><br>\n';
1455 $form_content .=' <b>' . esc_attr__( 'Details', 'booking' ) . '</b>: <f>[details]</f>\n';
1456 $form_content .='</div>';
1457 }
1458
1459 if (
1460 ( in_array( $form_type, array( 'timesweek', 'fields2columnstimes' ) ) )
1461 || ( in_array( $form_type, array( 'times', 'times30', 'times15', 'times120', 'times60', 'times60_24h', 'endtime', 'durationtime' ) ) )
1462 || ( in_array( $form_type, array( 'wizard_times', 'wizard_times30', 'wizard_times15', 'wizard_times120', 'wizard_times60', 'wizard_times60_24h' ) ) )
1463 ){
1464 $form_content = '';
1465 $form_content .='<div class="standard-content-form"> \n';
1466 $form_content .=' <b>' . esc_attr__( 'Times', 'booking' ) . '</b>: <f>[rangetime]</f><br>\n';
1467 $form_content .=' <b>' . esc_attr__( 'First Name', 'booking' ) . '</b>: <f>[name]</f><br>\n';
1468 $form_content .=' <b>' . esc_attr__( 'Last Name', 'booking' ) . '</b>: <f>[secondname]</f><br>\n';
1469 $form_content .=' <b>' . esc_attr__( 'Email', 'booking' ) . '</b>: <f>[email]</f><br>\n';
1470 $form_content .=' <b>' . esc_attr__( 'Phone', 'booking' ) . '</b>: <f>[phone]</f><br>\n';
1471 $form_content .=' <b>' . esc_attr__( 'Adults', 'booking' ) . '</b>: <f>[visitors]</f><br>\n';
1472 $form_content .=' <b>' . esc_attr__( 'Children', 'booking' ) . '</b>: <f>[children]</f><br>\n';
1473 $form_content .=' <b>' . esc_attr__( 'Details', 'booking' ) . '</b>: <f>[details]</f>\n';
1474 $form_content .='</div>';
1475 }
1476
1477 if ( 'hints-dev' == $form_type ){
1478 $form_content = '';
1479 $form_content .='<div class="standard-content-form"> \n';
1480 $form_content .=' <b>' . esc_attr__( 'First Name', 'booking' ) . '</b>: <f>[name]</f><br>\n';
1481 $form_content .=' <b>' . esc_attr__( 'Last Name', 'booking' ) . '</b>: <f>[secondname]</f><br>\n';
1482 $form_content .=' <b>' . esc_attr__( 'Email', 'booking' ) . '</b>: <f>[email]</f><br>\n';
1483 $form_content .=' <b>' . esc_attr__( 'Adults', 'booking' ) . '</b>: <f>[visitors]</f><br>\n';
1484 $form_content .=' <b>' . esc_attr__( 'Children', 'booking' ) . '</b>: <f>[children]</f><br>\n';
1485 $form_content .=' <b>' . esc_attr__( 'Details', 'booking' ) . '</b>: <f>[details]</f>\n';
1486 $form_content .='</div>';
1487 }
1488
1489 if ( ($form_type == 'wizard') || ($form_type == '2collumns') || ($form_content == 'hints') || ($form_content == '') ){
1490 $form_content = '';
1491 $form_content .='<div class="standard-content-form"> \n';
1492 $form_content .=' <b>' . esc_attr__( 'First Name', 'booking' ) . '</b>: <f>[name]</f><br>\n';
1493 $form_content .=' <b>' . esc_attr__( 'Last Name', 'booking' ) . '</b>: <f>[secondname]</f><br>\n';
1494 $form_content .=' <b>' . esc_attr__( 'Email', 'booking' ) . '</b>: <f>[email]</f><br>\n';
1495 $form_content .=' <b>' . esc_attr__( 'Phone', 'booking' ) . '</b>: <f>[phone]</f><br>\n';
1496 $form_content .=' <b>' . esc_attr__( 'Adults', 'booking' ) . '</b>: <f>[visitors]</f><br>\n';
1497 $form_content .=' <b>' . esc_attr__( 'Children', 'booking' ) . '</b>: <f>[children]</f><br>\n';
1498 $form_content .=' <b>' . esc_attr__( 'Details', 'booking' ) . '</b>: <f>[details]</f>\n';
1499 $form_content .='</div>';
1500 }
1501 // FixIn: 10.12.4.8.
1502 if ( in_array( $form_type, array( 'appointments_service_a', 'appointments_service_b', 'appointments_service_c' ) ) ) {
1503 $form_content = '';
1504 $form_content .= '<div class="standard-content-form"> \n';
1505 $form_content .= ' <b>' . esc_attr__( 'Service', 'booking' ) . '</b>: <f>[durationtime_val]</f><br>\n';
1506 $form_content .= ' <b>' . esc_attr__( 'Start Times', 'booking' ) . '</b>:<f>[starttime]</f><br>\n';
1507 $form_content .= ' <b>' . esc_attr__( 'First Name', 'booking' ) . '</b>: <f>[name]</f><br>\n';
1508 $form_content .= ' <b>' . esc_attr__( 'Last Name', 'booking' ) . '</b>: <f>[secondname]</f><br>\n';
1509 $form_content .= ' <b>' . esc_attr__( 'Email', 'booking' ) . '</b>: <f>[email]</f><br>\n';
1510 $form_content .= ' <b>' . esc_attr__( 'Phone', 'booking' ) . '</b>: <f>[phone]</f><br>\n';
1511 $form_content .= ' <b>' . esc_attr__( 'Details', 'booking' ) . '</b>: <f>[details]</f>\n';
1512 $form_content .= '</div>';
1513 }
1514
1515 // FixIn: 10.12.4.9.
1516 if ( in_array( $form_type, array( 'wizard_no_times_a' ) ) ) {
1517 $form_content = '';
1518 $form_content .= '<div class="standard-content-form"> \n';
1519 $form_content .=' <b>' . esc_attr__( 'First Name', 'booking' ) . '</b>: <f>[name]</f><br>\n';
1520 $form_content .=' <b>' . esc_attr__( 'Last Name', 'booking' ) . '</b>: <f>[secondname]</f><br>\n';
1521 $form_content .=' <b>' . esc_attr__( 'Email', 'booking' ) . '</b>: <f>[email]</f><br>\n';
1522 $form_content .=' <b>' . esc_attr__( 'Phone', 'booking' ) . '</b>: <f>[phone]</f><br>\n';
1523 $form_content .=' <b>' . esc_attr__( 'Adults', 'booking' ) . '</b>: <f>[visitors]</f><br>\n';
1524 $form_content .=' <b>' . esc_attr__( 'Children', 'booking' ) . '</b>: <f>[children]</f><br>\n';
1525 $form_content .=' <b>' . esc_attr__( 'Details', 'booking' ) . '</b>: <f>[details]</f>\n';
1526 $form_content .= '</div>';
1527 }
1528
1529 return $form_content;
1530 }
1531