| 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>[captcha]</p> \n\ |
| 46 |
<p>[submit class:btn "'.__('Send' ,'booking').'"]</p> \n\ |
| 47 |
</div>'; |
| 48 |
break; |
| 49 |
|
| 50 |
|
| 51 |
case 'calendar_next_to_form': |
| 52 |
$booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\ |
| 53 |
Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\ |
| 54 |
<r> \n\ |
| 55 |
<c>[calendar]</c> \n\ |
| 56 |
<spacer>width:40px;</spacer> \n\ |
| 57 |
<c> \n\ |
| 58 |
<r><c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l> <br>[text* name]</c></r> \n\ |
| 59 |
<r><c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . '):</l> <br>[text* secondname] </c></r> \n\ |
| 60 |
<r><c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l> <br>[email* email] </c></r> \n\ |
| 61 |
<r><c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l> <br>[text phone] </c></r> \n\ |
| 62 |
<r><c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l> <br>[selectbox visitors "1" "2" "3" "4"] </c></r> \n\ |
| 63 |
<r><c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l> <br>[selectbox children "0" "1" "2" "3"] </c></r> \n\ |
| 64 |
<r><c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l><br> [textarea details]</c></r> \n\ |
| 65 |
<r> \n\ |
| 66 |
<c>[checkbox* term_and_condition use_label_element "' . __( 'I Accept term and conditions', 'booking' ) . '"]</c> \n\ |
| 67 |
<c>[captcha]</c> \n\ |
| 68 |
</r> \n\ |
| 69 |
<hr/> \n\ |
| 70 |
<r><c>[submit class:btn "' . __( 'Send', 'booking' ) . '"]</c></r> \n\ |
| 71 |
</c> \n\ |
| 72 |
</r>'; |
| 73 |
|
| 74 |
break; |
| 75 |
|
| 76 |
|
| 77 |
case '2_columns': |
| 78 |
|
| 79 |
$booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\ |
| 80 |
Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\ |
| 81 |
[calendar]\n\ |
| 82 |
<div class="wpbc__form__div" style="padding: 1em 0;"> \n\ |
| 83 |
<r> \n\ |
| 84 |
<c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c> \n\ |
| 85 |
<c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c> \n\ |
| 86 |
</r> \n\ |
| 87 |
<r> \n\ |
| 88 |
<c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c> \n\ |
| 89 |
<c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n\ |
| 90 |
</r> \n\ |
| 91 |
<r> \n\ |
| 92 |
<c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n\ |
| 93 |
<c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n\ |
| 94 |
</r> \n\ |
| 95 |
<r> \n\ |
| 96 |
<c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l> <div style="clear:both;width:100%"></div> \n\ |
| 97 |
[textarea details] </c> \n\ |
| 98 |
</r> \n\ |
| 99 |
<r>\n\ |
| 100 |
<c> [checkbox* term_and_condition use_label_element "' . __( 'I Accept term and conditions', 'booking' ) . '"] </c>\n\ |
| 101 |
<c> [captcha] </c>\n\ |
| 102 |
</r>\n\ |
| 103 |
<p>[submit "' . __( 'Send', 'booking' ) . '"]</p> \n\ |
| 104 |
</div>'; |
| 105 |
break; |
| 106 |
|
| 107 |
|
| 108 |
case '2_columns_times_2_hours': |
| 109 |
|
| 110 |
$booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\ |
| 111 |
Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\ |
| 112 |
<div class="wpbc__form__div" style="padding: 1em 0;"> \n\ |
| 113 |
<r> \n\ |
| 114 |
<c> <l>' . esc_html__( 'Select Date', 'booking' ) . ':</l><br />[calendar] </c> \n\ |
| 115 |
<c> <l>' . esc_html__( 'Select Times', 'booking' ) . '*:</l><br /> \n\ |
| 116 |
[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\ |
| 117 |
</r> \n\ |
| 118 |
<r> \n\ |
| 119 |
<c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c> \n\ |
| 120 |
<c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c> \n\ |
| 121 |
</r> \n\ |
| 122 |
<r> \n\ |
| 123 |
<c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c> \n\ |
| 124 |
<c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n\ |
| 125 |
</r> \n\ |
| 126 |
<r> \n\ |
| 127 |
<c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n\ |
| 128 |
<c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n\ |
| 129 |
</r> \n\ |
| 130 |
<r> \n\ |
| 131 |
<c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l> <div style="clear:both;width:100%"></div> \n\ |
| 132 |
[textarea details] </c> \n\ |
| 133 |
</r> \n\ |
| 134 |
<p>[submit "' . __( 'Send', 'booking' ) . '"]</p> \n\ |
| 135 |
</div>'; |
| 136 |
break; |
| 137 |
|
| 138 |
|
| 139 |
case '2_columns_times_30_minutes_wizard': |
| 140 |
|
| 141 |
$booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\ |
| 142 |
Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\ |
| 143 |
<div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step1"> \n\ |
| 144 |
<r> \n\ |
| 145 |
<c> <l>' . esc_html__( 'Select Date', 'booking' ) . ':</l><br />[calendar] </c> \n\ |
| 146 |
<c> <l>' . esc_html__( 'Select Times', 'booking' ) . '*:</l><br /> \n\ |
| 147 |
[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\ |
| 148 |
</r><hr> \n\ |
| 149 |
<r> \n\ |
| 150 |
<div class="wpbc__field" style="justify-content: flex-end"> \n\ |
| 151 |
<a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2"> \n\ |
| 152 |
' . esc_attr__( 'Next', 'booking' ) . ' \n\ |
| 153 |
</a> \n\ |
| 154 |
</div> \n\ |
| 155 |
</r> \n\ |
| 156 |
</div> \n\ |
| 157 |
<div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step2 wpbc_wizard_step_hidden" style="clear:both"> \n\ |
| 158 |
<r> \n\ |
| 159 |
<c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c> \n\ |
| 160 |
<c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c> \n\ |
| 161 |
</r> \n\ |
| 162 |
<r> \n\ |
| 163 |
<c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c> \n\ |
| 164 |
<c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n\ |
| 165 |
</r> \n\ |
| 166 |
<r> \n\ |
| 167 |
<c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n\ |
| 168 |
<c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n\ |
| 169 |
</r> \n\ |
| 170 |
<r> \n\ |
| 171 |
<c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n\ |
| 172 |
[textarea details] </c> \n\ |
| 173 |
</r> \n\ |
| 174 |
<spacer>height:10px;</spacer> \n\ |
| 175 |
<hr> \n\ |
| 176 |
<r> \n\ |
| 177 |
<div class="wpbc__field" style="justify-content: flex-end"> \n\ |
| 178 |
<a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_1">' . esc_attr__( 'Back', 'booking' ) . '</a> \n\ |
| 179 |
[submit "' . __( 'Send', 'booking' ) . '"] \n\ |
| 180 |
</div> \n\ |
| 181 |
</r> \n\ |
| 182 |
</div>'; |
| 183 |
break; |
| 184 |
|
| 185 |
|
| 186 |
case '2_columns_hint_cost_nights': |
| 187 |
|
| 188 |
$booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\ |
| 189 |
Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\ |
| 190 |
[calendar]\n\ |
| 191 |
<div class="wpbc__form__div">\n\ |
| 192 |
<r>\n\ |
| 193 |
<c><div class="form-hints">\n\ |
| 194 |
' . __( 'Dates', 'booking' ) . ': [selected_short_timedates_hint] ([nights_number_hint] - ' . __( 'night(s)', 'booking' ) . ')<br> \n\ |
| 195 |
' . __( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br>\n\ |
| 196 |
</div></c>\n\ |
| 197 |
</r>\n\ |
| 198 |
<hr> \n\ |
| 199 |
<r>\n\ |
| 200 |
<c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c>\n\ |
| 201 |
<c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c>\n\ |
| 202 |
</r>\n\ |
| 203 |
<r>\n\ |
| 204 |
<c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c>\n\ |
| 205 |
<c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c>\n\ |
| 206 |
</r>\n\ |
| 207 |
<r>\n\ |
| 208 |
<c> <l>' . esc_html__( 'Address (required)', 'booking' ) . ':</l><br />[text* address] </c>\n\ |
| 209 |
<c> <l>' . esc_html__( 'City (required)', 'booking' ) . ':</l><br />[text* city] </c>\n\ |
| 210 |
</r>\n\ |
| 211 |
<r>\n\ |
| 212 |
<c> <l>' . esc_html__( 'Post code (required)', 'booking' ) . ':</l><br />[text* postcode] </c>\n\ |
| 213 |
<c> <l>' . esc_html__( 'Country (required)', 'booking' ) . ':</l><br />[country] </c>\n\ |
| 214 |
</r>\n\ |
| 215 |
<r>\n\ |
| 216 |
<c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c>\n\ |
| 217 |
<c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c>\n\ |
| 218 |
</r>\n\ |
| 219 |
<r>\n\ |
| 220 |
<c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l><div style="clear:both;width:100%"></div>\n\ |
| 221 |
[textarea details] </c>\n\ |
| 222 |
</r>\n\ |
| 223 |
<div style="margin-top:10px;clear:both;"></div>\n\ |
| 224 |
<r>\n\ |
| 225 |
<c> [checkbox* term_and_condition use_label_element "' . __( 'I Accept term and conditions', 'booking' ) . '"] </c>\n\ |
| 226 |
<c> [captcha] </c>\n\ |
| 227 |
</r>\n\ |
| 228 |
<r>\n\ |
| 229 |
<c><p>\n\ |
| 230 |
' . __( 'Dates', 'booking' ) . ': [selected_short_timedates_hint] ([nights_number_hint] - ' . __( 'night(s)', 'booking' ) . ')<br>\n\ |
| 231 |
' . __( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br>\n\ |
| 232 |
</p></c>\n\ |
| 233 |
</r> <hr> \n\ |
| 234 |
<r>\n\ |
| 235 |
<c> <p>[submit "Send"]</p> </c> \n\ |
| 236 |
</r> \n\ |
| 237 |
</div>'; |
| 238 |
break; |
| 239 |
|
| 240 |
|
| 241 |
case '2_columns_hint_availability': |
| 242 |
|
| 243 |
$booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\ |
| 244 |
Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\ |
| 245 |
[calendar]\n\ |
| 246 |
<div class="wpbc__form__div">\n\ |
| 247 |
<r>\n\ |
| 248 |
<c><p>\n\ |
| 249 |
' . __( 'Dates', 'booking' ) . ': [selected_short_timedates_hint] ([nights_number_hint] - ' . __( 'night(s)', 'booking' ) . ')<br> \n\ |
| 250 |
' . __( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> \n\ |
| 251 |
</p></c>\n\ |
| 252 |
<c><l>' . esc_html__( 'Availability', 'booking' ) . ':</l><spacer></spacer>[capacity_hint]</c> \n\ |
| 253 |
</r>\n\ |
| 254 |
<hr> \n\ |
| 255 |
<r>\n\ |
| 256 |
<c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c>\n\ |
| 257 |
<c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c>\n\ |
| 258 |
</r>\n\ |
| 259 |
<r>\n\ |
| 260 |
<c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c>\n\ |
| 261 |
<c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c>\n\ |
| 262 |
</r>\n\ |
| 263 |
<r>\n\ |
| 264 |
<c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c>\n\ |
| 265 |
<c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c>\n\ |
| 266 |
</r>\n\ |
| 267 |
<r>\n\ |
| 268 |
<c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l><div style="clear:both;width:100%"></div>\n\ |
| 269 |
[textarea details] </c>\n\ |
| 270 |
</r>\n\ |
| 271 |
<r>\n\ |
| 272 |
<c> <l>' . esc_html__( 'Coupon (required)', 'booking' ) . ':</l><br />[coupon coupon] </c>\n\ |
| 273 |
</r>\n\ |
| 274 |
<div style="margin-top:10px;clear:both;"></div>\n\ |
| 275 |
<r>\n\ |
| 276 |
<c> [checkbox* term_and_condition use_label_element "' . __( 'I Accept term and conditions', 'booking' ) . '"] </c>\n\ |
| 277 |
<c> [captcha] </c>\n\ |
| 278 |
</r>\n\ |
| 279 |
<r>\n\ |
| 280 |
<c><p>\n\ |
| 281 |
' . __( 'Dates', 'booking' ) . ': [selected_short_timedates_hint] ([nights_number_hint] - ' . __( 'night(s)', 'booking' ) . ')<br>\n\ |
| 282 |
' . __( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br>\n\ |
| 283 |
</p></c>\n\ |
| 284 |
</r> <hr> \n\ |
| 285 |
<r>\n\ |
| 286 |
<c> <p>[submit "Send"]</p> </c> \n\ |
| 287 |
</r> \n\ |
| 288 |
</div>'; |
| 289 |
break; |
| 290 |
|
| 291 |
|
| 292 |
case '2_columns_times_30_minutes_hints_coupon': |
| 293 |
|
| 294 |
$booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\ |
| 295 |
Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\ |
| 296 |
[calendar] \n\ |
| 297 |
<r>\n\ |
| 298 |
<c> <l>' . esc_html__( 'Select Times', 'booking' ) . '*:</l><br />\n\ |
| 299 |
[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\ |
| 300 |
</c>\n\ |
| 301 |
</r>\n\ |
| 302 |
<div class="wpbc__form__div">\n\ |
| 303 |
<r>\n\ |
| 304 |
<c> |
| 305 |
<div>\n\ |
| 306 |
' . __( 'Date', 'booking' ) . ': <strong>[selected_dates_hint]</strong><br> \n\ |
| 307 |
' . __( 'Times', 'booking' ) . ': <strong>[start_time_hint] - [end_time_hint]</strong><br> \n\ |
| 308 |
' . __( 'Total cost', 'booking' ) . ': <strong>[cost_hint]</strong> \n\ |
| 309 |
</div>\n\ |
| 310 |
</c>\n\ |
| 311 |
</r>\n\ |
| 312 |
<hr> \n\ |
| 313 |
<r>\n\ |
| 314 |
<c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c>\n\ |
| 315 |
<c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c>\n\ |
| 316 |
</r>\n\ |
| 317 |
<r>\n\ |
| 318 |
<c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c>\n\ |
| 319 |
<c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c>\n\ |
| 320 |
</r>\n\ |
| 321 |
<r>\n\ |
| 322 |
<c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c>\n\ |
| 323 |
<c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c>\n\ |
| 324 |
</r>\n\ |
| 325 |
<r>\n\ |
| 326 |
<c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l><div style="clear:both;width:100%"></div>\n\ |
| 327 |
[textarea details] </c>\n\ |
| 328 |
</r>\n\ |
| 329 |
<r>\n\ |
| 330 |
<c> <l>' . esc_html__( 'Coupon (required)', 'booking' ) . ':</l><br />[coupon coupon] </c>\n\ |
| 331 |
</r>\n\ |
| 332 |
<div style="margin-top:10px;clear:both;"></div>\n\ |
| 333 |
<r>\n\ |
| 334 |
<c> [checkbox* term_and_condition use_label_element "' . __( 'I Accept term and conditions', 'booking' ) . '"] </c>\n\ |
| 335 |
<c> [captcha] </c>\n\ |
| 336 |
</r>\n\ |
| 337 |
<r>\n\ |
| 338 |
<c><p>\n\ |
| 339 |
' . __( 'Dates', 'booking' ) . ': [selected_short_timedates_hint] ([nights_number_hint] - ' . __( 'night(s)', 'booking' ) . ')<br>\n\ |
| 340 |
' . __( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br>\n\ |
| 341 |
</p></c>\n\ |
| 342 |
</r> <hr> \n\ |
| 343 |
<r>\n\ |
| 344 |
<c> <p>[submit "Send"]</p> </c> \n\ |
| 345 |
</r> \n\ |
| 346 |
</div>'; |
| 347 |
break; |
| 348 |
|
| 349 |
|
| 350 |
case '2_columns_hints_coupon': |
| 351 |
|
| 352 |
$booking_form ='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n\ |
| 353 |
Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n\ |
| 354 |
[calendar]\n\ |
| 355 |
<div class="wpbc__form__div">\n\ |
| 356 |
<r>\n\ |
| 357 |
<c> |
| 358 |
<div>\n\ |
| 359 |
' . __( 'Date', 'booking' ) . ': <strong>[selected_dates_hint]</strong><br> \n\ |
| 360 |
' . __( 'Times', 'booking' ) . ': <strong>[start_time_hint] - [end_time_hint]</strong><br> \n\ |
| 361 |
' . __( 'Total cost', 'booking' ) . ': <strong>[cost_hint]</strong> \n\ |
| 362 |
</div>\n\ |
| 363 |
</c>\n\ |
| 364 |
</r>\n\ |
| 365 |
<hr> \n\ |
| 366 |
<r>\n\ |
| 367 |
<c> <l>' . esc_html__( 'First Name (required)', 'booking' ) . ':</l><br />[text* name] </c>\n\ |
| 368 |
<c> <l>' . esc_html__( 'Last Name (required)', 'booking' ) . ':</l><br />[text* secondname] </c>\n\ |
| 369 |
</r>\n\ |
| 370 |
<r>\n\ |
| 371 |
<c> <l>' . esc_html__( 'Email (required)', 'booking' ) . ':</l><br />[email* email] </c>\n\ |
| 372 |
<c> <l>' . esc_html__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c>\n\ |
| 373 |
</r>\n\ |
| 374 |
<r>\n\ |
| 375 |
<c> <l>' . esc_html__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c>\n\ |
| 376 |
<c> <l>' . esc_html__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c>\n\ |
| 377 |
</r>\n\ |
| 378 |
<r>\n\ |
| 379 |
<c> <l>' . esc_html__( 'Details', 'booking' ) . ':</l><div style="clear:both;width:100%"></div>\n\ |
| 380 |
[textarea details] </c>\n\ |
| 381 |
</r>\n\ |
| 382 |
<r>\n\ |
| 383 |
<c> <l>' . esc_html__( 'Coupon (required)', 'booking' ) . ':</l><br />[coupon coupon] </c>\n\ |
| 384 |
</r>\n\ |
| 385 |
<div style="margin-top:10px;clear:both;"></div>\n\ |
| 386 |
<r>\n\ |
| 387 |
<c> [checkbox* term_and_condition use_label_element "' . __( 'I Accept term and conditions', 'booking' ) . '"] </c>\n\ |
| 388 |
<c> [captcha] </c>\n\ |
| 389 |
</r>\n\ |
| 390 |
<r>\n\ |
| 391 |
<c><p>\n\ |
| 392 |
' . __( 'Dates', 'booking' ) . ': [selected_short_timedates_hint] ([nights_number_hint] - ' . __( 'night(s)', 'booking' ) . ')<br>\n\ |
| 393 |
' . __( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br>\n\ |
| 394 |
</p></c>\n\ |
| 395 |
</r> <hr> \n\ |
| 396 |
<r>\n\ |
| 397 |
<c> <p>[submit "Send"]</p> </c> \n\ |
| 398 |
</r> \n\ |
| 399 |
</div>'; |
| 400 |
break; |
| 401 |
} |
| 402 |
|
| 403 |
if (empty($booking_form)){ |
| 404 |
$booking_form = wpbc_get__predefined_booking_form__template( $template_name ); |
| 405 |
} |
| 406 |
|
| 407 |
return $booking_form; |
| 408 |
} |
| 409 |
|
| 410 |
|
| 411 |
/** |
| 412 |
* Get "Content of booking fields data" - HTML content with Shortcodes |
| 413 |
* |
| 414 |
* @param string $template_name |
| 415 |
* |
| 416 |
* @return string |
| 417 |
*/ |
| 418 |
function wpbc_get__booking_data__template( $template_name ) { |
| 419 |
|
| 420 |
$booking_form = ''; |
| 421 |
|
| 422 |
switch ( $template_name ) { |
| 423 |
|
| 424 |
case 'standard': |
| 425 |
case '2_columns': |
| 426 |
case 'calendar_next_to_form': |
| 427 |
|
| 428 |
$booking_form = '<div class="standard-content-form"> \n\ |
| 429 |
<b>' . esc_html__('First Name' ,'booking').'</b>: <f>[name]</f><br/> \n\ |
| 430 |
<b>' . esc_html__('Last Name' ,'booking').'</b>: <f>[secondname]</f><br/> \n\ |
| 431 |
<b>' . esc_html__('Email' ,'booking').'</b>: <f>[email]</f><br/> \n\ |
| 432 |
<b>' . esc_html__('Phone' ,'booking').'</b>: <f>[phone]</f><br/> \n\ |
| 433 |
<b>' . esc_html__('Adults' ,'booking').'</b>: <f>[visitors]</f><br/> \n\ |
| 434 |
<b>' . esc_html__('Children' ,'booking').'</b>: <f>[children]</f><br/> \n\ |
| 435 |
<b>' . esc_html__('Details' ,'booking').'</b>: <f>[details]</f> \n\ |
| 436 |
</div>'; |
| 437 |
break; |
| 438 |
|
| 439 |
case '2_columns_times_2_hours': |
| 440 |
case '2_columns_times_30_minutes_wizard': |
| 441 |
|
| 442 |
$booking_form = '<div class="standard-content-form"> \n\ |
| 443 |
<b>' . esc_html__('Times' ,'booking').'</b>: <f>[rangetime]</f><br/> \n\ |
| 444 |
<b>' . esc_html__('First Name' ,'booking').'</b>: <f>[name]</f><br/> \n\ |
| 445 |
<b>' . esc_html__('Last Name' ,'booking').'</b>: <f>[secondname]</f><br/> \n\ |
| 446 |
<b>' . esc_html__('Email' ,'booking').'</b>: <f>[email]</f><br/> \n\ |
| 447 |
<b>' . esc_html__('Phone' ,'booking').'</b>: <f>[phone]</f><br/> \n\ |
| 448 |
<b>' . esc_html__('Adults' ,'booking').'</b>: <f>[visitors]</f><br/> \n\ |
| 449 |
<b>' . esc_html__('Children' ,'booking').'</b>: <f>[children]</f><br/> \n\ |
| 450 |
<b>' . esc_html__('Details' ,'booking').'</b>: <f>[details]</f> \n\ |
| 451 |
</div>'; |
| 452 |
break; |
| 453 |
|
| 454 |
case '2_columns_hint_cost_nights': |
| 455 |
|
| 456 |
$booking_form = '<div class="standard-content-form"> \n\ |
| 457 |
<b>' . esc_html__('First Name' ,'booking').'</b>: <f>[name]</f><br/> \n\ |
| 458 |
<b>' . esc_html__('Last Name' ,'booking').'</b>: <f>[secondname]</f><br/> \n\ |
| 459 |
<b>' . esc_html__('Email' ,'booking').'</b>: <f>[email]</f><br/> \n\ |
| 460 |
<b>' . esc_html__('Phone' ,'booking').'</b>: <f>[phone]</f><br/> \n\ |
| 461 |
<b>' . esc_html__('Adults' ,'booking').'</b>: <f>[visitors]</f><br/> \n\ |
| 462 |
<b>' . esc_html__('Children' ,'booking').'</b>: <f>[children]</f><br/> \n\ |
| 463 |
<b>' . esc_html__('Address' ,'booking').'</b>: <f>[address]</f><br/> \n\ |
| 464 |
<b>' . esc_html__('City' ,'booking').'</b>: <f>[city]</f><br/> \n\ |
| 465 |
<b>' . esc_html__('Post code' ,'booking').'</b>: <f>[postcode]</f><br/> \n\ |
| 466 |
<b>' . esc_html__('Country' ,'booking').'</b>: <f>[country]</f><br/> \n\ |
| 467 |
<b>' . esc_html__('Details' ,'booking').'</b>: <f>[details]</f> \n\ |
| 468 |
</div>'; |
| 469 |
break; |
| 470 |
|
| 471 |
case '2_columns_hint_availability': |
| 472 |
case '2_columns_hints_coupon': |
| 473 |
$booking_form = '<div class="standard-content-form"> \n\ |
| 474 |
<b>' . esc_html__('First Name' ,'booking').'</b>: <f>[name]</f><br/> \n\ |
| 475 |
<b>' . esc_html__('Last Name' ,'booking').'</b>: <f>[secondname]</f><br/> \n\ |
| 476 |
<b>' . esc_html__('Email' ,'booking').'</b>: <f>[email]</f><br/> \n\ |
| 477 |
<b>' . esc_html__('Phone' ,'booking').'</b>: <f>[phone]</f><br/> \n\ |
| 478 |
<b>' . esc_html__('Adults' ,'booking').'</b>: <f>[visitors]</f><br/> \n\ |
| 479 |
<b>' . esc_html__('Children' ,'booking').'</b>: <f>[children]</f><br/> \n\ |
| 480 |
<b>' . esc_html__('Coupon' ,'booking').'</b>: <f>[coupon]</f><br/> \n\ |
| 481 |
<b>' . esc_html__('Details' ,'booking').'</b>: <f>[details]</f> \n\ |
| 482 |
</div>'; |
| 483 |
break; |
| 484 |
|
| 485 |
case '2_columns_times_30_minutes_hints_coupon': |
| 486 |
$booking_form = '<div class="standard-content-form"> \n\ |
| 487 |
<b>' . esc_html__('Times' ,'booking').'</b>: <f>[rangetime]</f><br/> \n\ |
| 488 |
<b>' . esc_html__('First Name' ,'booking').'</b>: <f>[name]</f><br/> \n\ |
| 489 |
<b>' . esc_html__('Last Name' ,'booking').'</b>: <f>[secondname]</f><br/> \n\ |
| 490 |
<b>' . esc_html__('Email' ,'booking').'</b>: <f>[email]</f><br/> \n\ |
| 491 |
<b>' . esc_html__('Phone' ,'booking').'</b>: <f>[phone]</f><br/> \n\ |
| 492 |
<b>' . esc_html__('Adults' ,'booking').'</b>: <f>[visitors]</f><br/> \n\ |
| 493 |
<b>' . esc_html__('Children' ,'booking').'</b>: <f>[children]</f><br/> \n\ |
| 494 |
<b>' . esc_html__('Coupon' ,'booking').'</b>: <f>[coupon]</f><br/> \n\ |
| 495 |
<b>' . esc_html__('Details' ,'booking').'</b>: <f>[details]</f> \n\ |
| 496 |
</div>'; |
| 497 |
break; |
| 498 |
} |
| 499 |
|
| 500 |
return $booking_form; |
| 501 |
} |
| 502 |
|
| 503 |
|
| 504 |
|
| 505 |
|
| 506 |
function wpbc_get__predefined_booking_form__template( $form_type ){ |
| 507 |
|
| 508 |
$form_content = ''; |
| 509 |
// FixIn: 10.7.1.4. |
| 510 |
if ( in_array( $form_type, array( 'appointments30' ) ) ) { |
| 511 |
$form_content = ''; |
| 512 |
$form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n'; |
| 513 |
$form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n'; |
| 514 |
$form_content .='<div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step1"> \n'; |
| 515 |
$form_content .=' <r> \n'; |
| 516 |
$form_content .=' <c> <l>' . esc_attr__( 'Select Date', 'booking' ) . ':</l><br /> [calendar] </c> \n'; |
| 517 |
$form_content .=' <c> <l>' . esc_attr__( 'Select Times', 'booking' ) . ':</l><br /> \n'; |
| 518 |
$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'; |
| 519 |
$form_content .=' </c> \n'; |
| 520 |
$form_content .=' </r> \n'; |
| 521 |
if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m |
| 522 |
$form_content .= ' <r> <c> \n'; |
| 523 |
$form_content .= ' <div class="form-hints"> \n'; |
| 524 |
$form_content .= ' ' . esc_attr__( 'Date', 'booking' ) . ': <strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n'; |
| 525 |
$form_content .= ' ' . esc_attr__( 'Time', 'booking' ) . ': <strong>[start_time_hint] - [end_time_hint]</strong> \n'; |
| 526 |
$form_content .= ' </div> \n'; |
| 527 |
$form_content .= ' </c> \n'; |
| 528 |
$form_content .= ' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': <strong>[cost_hint]</strong></c> \n'; |
| 529 |
$form_content .= ' </r> \n'; |
| 530 |
} |
| 531 |
$form_content .=' <hr><r> \n'; |
| 532 |
$form_content .=' <div class="wpbc__field" style="justify-content: flex-end;"> \n'; |
| 533 |
$form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2" > \n'; |
| 534 |
$form_content .=' ' . esc_attr__( 'Next', 'booking' ) . ' \n'; |
| 535 |
$form_content .=' </a> \n'; |
| 536 |
$form_content .=' </div> \n'; |
| 537 |
$form_content .=' </r> \n'; |
| 538 |
$form_content .='</div> \n'; |
| 539 |
$form_content .='<div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step2 wpbc_wizard_step_hidden" style="display:none;clear:both;"> \n'; |
| 540 |
$form_content .=' <r> \n'; |
| 541 |
$form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* name] </c> \n'; |
| 542 |
$form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* secondname] </c> \n'; |
| 543 |
$form_content .=' </r> \n'; |
| 544 |
$form_content .=' <r> \n'; |
| 545 |
$form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[email* email] </c> \n'; |
| 546 |
$form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n'; |
| 547 |
$form_content .=' </r> \n'; |
| 548 |
$form_content .=' <r> \n'; |
| 549 |
$form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n'; |
| 550 |
$form_content .=' [textarea details] </c> \n'; |
| 551 |
$form_content .=' </r> \n'; |
| 552 |
$form_content .=' <spacer>height:10px;</spacer> \n'; |
| 553 |
$form_content .=' <r> \n'; |
| 554 |
$form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n'; |
| 555 |
$form_content .=' <c> [captcha] </c> \n'; |
| 556 |
$form_content .=' </r> \n'; |
| 557 |
if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m |
| 558 |
$form_content .= ' <r> <c> \n'; |
| 559 |
$form_content .= ' <div class="form-hints"> \n'; |
| 560 |
$form_content .= ' ' . esc_attr__( 'Date', 'booking' ) . ': <strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n'; |
| 561 |
$form_content .= ' ' . esc_attr__( 'Time', 'booking' ) . ': <strong>[start_time_hint] - [end_time_hint]</strong> \n'; |
| 562 |
$form_content .= ' </div> \n'; |
| 563 |
$form_content .= ' </c> \n'; |
| 564 |
$form_content .= ' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': <strong>[cost_hint]</strong></c> \n'; |
| 565 |
$form_content .= ' </r> \n'; |
| 566 |
} |
| 567 |
$form_content .=' <hr><r> \n'; |
| 568 |
$form_content .=' <div class="wpbc__field" style="justify-content: flex-end;"> \n'; |
| 569 |
$form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_1">' . esc_attr__( 'Back', 'booking' ) . '</a> \n'; |
| 570 |
$form_content .=' [submit "' . esc_attr__( 'Send', 'booking' ) . '"] \n'; |
| 571 |
$form_content .=' </div> \n'; |
| 572 |
$form_content .=' </r> \n'; |
| 573 |
$form_content .='</div> \n'; |
| 574 |
|
| 575 |
} |
| 576 |
|
| 577 |
if ( in_array( $form_type, array( 'times', 'times30', 'times15', 'times120', 'times60', 'times60_24h', 'endtime', 'durationtime' ) ) ){ |
| 578 |
$form_content = ''; |
| 579 |
$form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n'; |
| 580 |
$form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n'; |
| 581 |
$form_content .='<div class="wpbc__form__div"> \n'; |
| 582 |
$form_content .=' <r> \n'; |
| 583 |
$form_content .=' <c> [calendar] </c> \n'; |
| 584 |
|
| 585 |
if ( in_array( $form_type, array( 'times', 'times30', 'times15', 'times120', 'times60', 'times60_24h' ) ) ){ |
| 586 |
$form_content .=' <c> <l>' . esc_attr__( 'Select Times', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br /> \n'; |
| 587 |
|
| 588 |
if ( $form_type == 'times' ){ |
| 589 |
$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'; |
| 590 |
} |
| 591 |
if ( $form_type == 'times120' ){ |
| 592 |
$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'; |
| 593 |
} |
| 594 |
if ( $form_type == 'times60' ){ |
| 595 |
$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'; |
| 596 |
} |
| 597 |
if ( $form_type == 'times60_24h' ){ |
| 598 |
$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'; |
| 599 |
} |
| 600 |
if ( $form_type == 'times30' ){ |
| 601 |
$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'; |
| 602 |
} |
| 603 |
if ( $form_type == 'times15' ){ |
| 604 |
$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'; |
| 605 |
} |
| 606 |
$form_content .=' </c> \n'; |
| 607 |
} |
| 608 |
if ( in_array( $form_type, array( 'endtime', 'durationtime' ) ) ){ |
| 609 |
$form_content .=' </r> \n'; |
| 610 |
$form_content .=' <r> \n'; |
| 611 |
$form_content .=' <c> <l>' . esc_attr__( 'Start Time', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br /> \n'; |
| 612 |
$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'; |
| 613 |
$form_content .=' </c> \n'; |
| 614 |
$form_content .=' <c> \n'; |
| 615 |
if ( $form_type == 'endtime' ){ |
| 616 |
$form_content .=' <l>' . esc_attr__( 'End Time', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br /> \n'; |
| 617 |
$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'; |
| 618 |
} |
| 619 |
if ( $form_type == 'durationtime' ){ |
| 620 |
$form_content .=' <l>' . esc_attr__( 'Duration Time', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br /> \n'; |
| 621 |
$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'; |
| 622 |
} |
| 623 |
$form_content .=' </c> \n'; |
| 624 |
} |
| 625 |
$form_content .=' </r> \n'; |
| 626 |
if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m |
| 627 |
$form_content .=' <r> \n'; |
| 628 |
$form_content .=' <c> \n'; |
| 629 |
if ( class_exists( 'wpdev_bk_biz_l' ) ){ // >= biz_l |
| 630 |
$form_content .=' <l>' . esc_attr__( 'Availability', 'booking' ) . ':</l><spacer></spacer> \n'; |
| 631 |
$form_content .=' [capacity_hint] \n'; |
| 632 |
$form_content .=' <spacer>height:1em;</spacer> \n'; |
| 633 |
} |
| 634 |
$form_content .=' <p> \n'; |
| 635 |
$form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ': <strong>[selected_short_timedates_hint]</strong> \n'; |
| 636 |
$form_content .=' ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br> \n'; |
| 637 |
$form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br> \n'; |
| 638 |
$form_content .=' </p> \n'; |
| 639 |
$form_content .=' </c> \n'; |
| 640 |
$form_content .=' </r><hr> \n'; |
| 641 |
} |
| 642 |
$form_content .=' <r> \n'; |
| 643 |
$form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* name] </c> \n'; |
| 644 |
$form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* secondname] </c> \n'; |
| 645 |
$form_content .=' </r> \n'; |
| 646 |
$form_content .=' <r> \n'; |
| 647 |
$form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[email* email] </c> \n'; |
| 648 |
$form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n'; |
| 649 |
$form_content .=' </r> \n'; |
| 650 |
$form_content .=' <r> \n'; |
| 651 |
$form_content .=' <c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n'; |
| 652 |
$form_content .=' <c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n'; |
| 653 |
$form_content .=' </r> \n'; |
| 654 |
$form_content .=' <r> \n'; |
| 655 |
$form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n'; |
| 656 |
$form_content .=' [textarea details] </c> \n'; |
| 657 |
$form_content .=' </r> \n'; |
| 658 |
$form_content .=' <spacer>height:10px;</spacer> \n'; |
| 659 |
$form_content .=' <r> \n'; |
| 660 |
$form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n'; |
| 661 |
$form_content .=' <c> [captcha] </c> \n'; |
| 662 |
$form_content .=' </r> \n'; |
| 663 |
if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m |
| 664 |
$form_content .=' <r> \n'; |
| 665 |
$form_content .=' <c><p> \n'; |
| 666 |
$form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ': <strong>[selected_short_timedates_hint]</strong> \n'; |
| 667 |
$form_content .=' ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br> \n'; |
| 668 |
$form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br> \n'; |
| 669 |
$form_content .=' </p></c> \n'; |
| 670 |
$form_content .=' </r> \n'; |
| 671 |
} |
| 672 |
$form_content .=' <hr> \n'; |
| 673 |
$form_content .=' <r> \n'; |
| 674 |
$form_content .=' <c> <p>[submit "' . esc_attr__( 'Send', 'booking' ) . '"]</p> </c> \n'; |
| 675 |
$form_content .=' </r> \n'; |
| 676 |
$form_content .='</div> \n'; |
| 677 |
} |
| 678 |
|
| 679 |
if ($form_type == 'timesweek'){ |
| 680 |
$form_content = ''; |
| 681 |
$form_content .='[calendar] \n'; |
| 682 |
$form_content .='<div class="times-form"> \n'; |
| 683 |
$form_content .='<p> \n'; |
| 684 |
$form_content .=' [condition name="weekday-condition" type="weekday" value="*"] \n'; |
| 685 |
$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'; |
| 686 |
$form_content .=' [/condition] \n'; |
| 687 |
$form_content .=' [condition name="weekday-condition" type="weekday" value="1,2"] \n'; |
| 688 |
$form_content .=' Select Time Slot available on Monday, Tuesday:<br> [selectbox rangetime multiple "10:00 - 12:00" "12:00 - 14:00"] \n'; |
| 689 |
$form_content .=' [/condition] \n'; |
| 690 |
$form_content .=' [condition name="weekday-condition" type="weekday" value="3,4"] \n'; |
| 691 |
$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'; |
| 692 |
$form_content .=' [/condition] \n'; |
| 693 |
$form_content .=' [condition name="weekday-condition" type="weekday" value="5,6,0"] \n'; |
| 694 |
$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'; |
| 695 |
$form_content .=' [/condition] \n'; |
| 696 |
$form_content .='</p> \n'; |
| 697 |
$form_content .=' <p>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* name] </p> \n'; |
| 698 |
$form_content .=' <p>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* secondname] </p> \n'; |
| 699 |
$form_content .=' <p>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[email* email] </p> \n'; |
| 700 |
$form_content .=' <p>' . esc_attr__( 'Phone', 'booking' ) . ':<br />[text phone] </p> \n'; |
| 701 |
$form_content .=' <p>' . esc_attr__( 'Adults', 'booking' ) . ':<br />[selectbox visitors "1" "2" "3" "4"]</p> \n'; |
| 702 |
$form_content .=' <p>' . esc_attr__( 'Children', 'booking' ) . ':<br />[selectbox children "0" "1" "2" "3"]</p> \n'; |
| 703 |
$form_content .=' <p>' . esc_attr__( 'Details', 'booking' ) . ':<br /> [textarea details] </p> \n'; |
| 704 |
$form_content .=' <p>[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </p>\n'; |
| 705 |
$form_content .=' <p>[captcha]</p> \n'; |
| 706 |
$form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</p> \n'; |
| 707 |
$form_content .='</div>'; |
| 708 |
} |
| 709 |
|
| 710 |
if ($form_type == 'hints'){ |
| 711 |
$form_content = ''; |
| 712 |
$form_content .='[calendar] \n'; |
| 713 |
$form_content .='<div class="standard-form"> \n'; |
| 714 |
if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m |
| 715 |
$form_content .=' <div class="form-hints"> \n'; |
| 716 |
$form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ':[selected_short_timedates_hint] ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br><br> \n'; |
| 717 |
$form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': [cost_hint] <br> \n'; |
| 718 |
$form_content .=' </div><hr/> \n'; |
| 719 |
} |
| 720 |
$form_content .=' <p>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* name] </p> \n'; |
| 721 |
$form_content .=' <p>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* secondname] </p> \n'; |
| 722 |
$form_content .=' <p>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[email* email] </p> \n'; |
| 723 |
$form_content .=' <p>' . esc_attr__( 'Phone', 'booking' ) . ':<br />[text phone] </p> \n'; |
| 724 |
$form_content .=' <p>' . esc_attr__( 'Adults', 'booking' ) . ':<br />[selectbox visitors "1" "2" "3" "4"]</p> \n'; |
| 725 |
$form_content .=' <p>' . esc_attr__( 'Children', 'booking' ) . ':<br />[selectbox children "0" "1" "2" "3"]</p> \n'; |
| 726 |
$form_content .=' <p>' . esc_attr__( 'Details', 'booking' ) . ':<br /> [textarea details] </p> \n'; |
| 727 |
$form_content .=' <p>[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </p>\n'; |
| 728 |
$form_content .=' <p>[captcha]</p> \n'; |
| 729 |
$form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</p> \n'; |
| 730 |
$form_content .='</div>'; |
| 731 |
} |
| 732 |
|
| 733 |
// FixIn: 8.7.3.5. |
| 734 |
if ( 'hints-dev' == $form_type ){ |
| 735 |
$form_content = ''; |
| 736 |
$form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n'; |
| 737 |
$form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n'; |
| 738 |
$form_content .='[calendar] \n'; |
| 739 |
$form_content .='<div class="wpbc__form__div"> \n'; |
| 740 |
|
| 741 |
if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m |
| 742 |
$form_content .=' <r> \n'; |
| 743 |
$form_content .=' <c><div> \n'; |
| 744 |
$form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ': <strong>[selected_short_timedates_hint]</strong> \n'; |
| 745 |
$form_content .=' ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br> \n'; |
| 746 |
$form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br> \n'; |
| 747 |
if ( class_exists( 'wpdev_bk_biz_l' ) ){ // >= biz_l |
| 748 |
$form_content .=' ' . esc_attr__( 'Availability', 'booking' ) . ': [capacity_hint] \n'; |
| 749 |
} |
| 750 |
$form_content .=' </div></c> \n'; |
| 751 |
$form_content .=' </r><hr> \n'; |
| 752 |
} |
| 753 |
|
| 754 |
$form_content .=' <r> \n'; |
| 755 |
$form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* name] </c> \n'; |
| 756 |
$form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* secondname] </c> \n'; |
| 757 |
$form_content .=' </r> \n'; |
| 758 |
$form_content .=' <r> \n'; |
| 759 |
$form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[email* email] </c> \n'; |
| 760 |
$form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n'; |
| 761 |
$form_content .=' </r> \n'; |
| 762 |
$form_content .=' <r> \n'; |
| 763 |
$form_content .=' <c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n'; |
| 764 |
$form_content .=' <c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n'; |
| 765 |
$form_content .=' </r> \n'; |
| 766 |
$form_content .=' <r> \n'; |
| 767 |
$form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n'; |
| 768 |
$form_content .=' [textarea details] </c> \n'; |
| 769 |
$form_content .=' </r> \n'; |
| 770 |
$form_content .=' <spacer>height:10px;</spacer> \n'; |
| 771 |
$form_content .=' <r> \n'; |
| 772 |
$form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n'; |
| 773 |
$form_content .=' <c> [captcha] </c> \n'; |
| 774 |
$form_content .=' </r> \n'; |
| 775 |
if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m |
| 776 |
$form_content .=' <r> \n'; |
| 777 |
$form_content .=' <c><p> \n'; |
| 778 |
$form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ': <strong>[selected_short_timedates_hint]</strong> \n'; |
| 779 |
$form_content .=' ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br> \n'; |
| 780 |
$form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br> \n'; |
| 781 |
$form_content .=' </p></c> \n'; |
| 782 |
$form_content .=' </r> \n'; |
| 783 |
} |
| 784 |
$form_content .=' <hr> \n'; |
| 785 |
$form_content .=' <r> \n'; |
| 786 |
$form_content .=' <c> <p>[submit "' . esc_attr__( 'Send', 'booking' ) . '"]</p> </c> \n'; |
| 787 |
$form_content .=' </r> \n'; |
| 788 |
$form_content .='</div> \n'; |
| 789 |
} |
| 790 |
|
| 791 |
if ( ($form_type == 'payment') || ($form_type == 'paymentUS') ){ |
| 792 |
$form_content = ''; |
| 793 |
$form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n'; |
| 794 |
$form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n'; |
| 795 |
$form_content .='[calendar] \n'; |
| 796 |
$form_content .='<div class="payment-form"> \n'; |
| 797 |
$form_content .=' <p>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* name] </p> \n'; |
| 798 |
$form_content .=' <p>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* secondname] </p> \n'; |
| 799 |
$form_content .=' <p>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[email* email] </p> \n'; |
| 800 |
$form_content .=' <p>' . esc_attr__( 'Phone', 'booking' ) . ':<br />[text phone] </p> \n'; |
| 801 |
$form_content .=' <p>' . esc_attr__( 'Address', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br /> [text* address] </p> \n'; |
| 802 |
$form_content .=' <p>' . esc_attr__( 'City', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br /> [text* city] </p> \n'; |
| 803 |
$form_content .=' <p>' . esc_attr__( 'Post code', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br /> [text* postcode] </p> \n'; |
| 804 |
if ( $form_type == 'paymentUS' ){ // FixIn: 8.1.1.5. |
| 805 |
$form_content .=' <p>' . esc_attr__( 'Country', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br /> [country "US"] </p> \n'; |
| 806 |
$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'; |
| 807 |
} else { |
| 808 |
$form_content .=' <p>' . esc_attr__( 'Country', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br /> [country] </p> \n'; |
| 809 |
} |
| 810 |
$form_content .=' <p>' . esc_attr__( 'Adults', 'booking' ) . ':<br />[selectbox visitors "1" "2" "3" "4"]</p> \n'; |
| 811 |
$form_content .=' <p>' . esc_attr__( 'Children', 'booking' ) . ':<br />[selectbox children "0" "1" "2" "3"]</p> \n'; |
| 812 |
$form_content .=' <p>' . esc_attr__( 'Details', 'booking' ) . ':<br /> [textarea details] </p> \n'; |
| 813 |
$form_content .=' <p>[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </p> \n'; |
| 814 |
$form_content .=' <p>[captcha]</p> \n'; |
| 815 |
$form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</p> \n'; |
| 816 |
$form_content .='</div>'; |
| 817 |
} |
| 818 |
|
| 819 |
if ( |
| 820 |
($form_type == 'wizard') || |
| 821 |
( in_array( $form_type, array( 'wizard_times', 'wizard_times30', 'wizard_times15', 'wizard_times120', 'wizard_times60', 'wizard_times60_24h' ) ) ) |
| 822 |
){ |
| 823 |
// FixIn: 8.6.1.15. |
| 824 |
$form_content = ''; |
| 825 |
$form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n'; |
| 826 |
$form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n'; |
| 827 |
$form_content .='<div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step1"> \n'; |
| 828 |
$form_content .=' <r> \n'; |
| 829 |
$form_content .=' <c> [calendar] </c> \n'; |
| 830 |
|
| 831 |
if ( in_array( $form_type, array( 'wizard_times', 'wizard_times30', 'wizard_times15', 'wizard_times120', 'wizard_times60', 'wizard_times60_24h' ) ) ){ |
| 832 |
$form_content .=' <c> <l>' . esc_attr__( 'Select Times', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br /> \n'; |
| 833 |
|
| 834 |
if ( $form_type == 'wizard_times' ){ |
| 835 |
$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'; |
| 836 |
} |
| 837 |
if ( $form_type == 'wizard_times120' ){ |
| 838 |
$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'; |
| 839 |
} |
| 840 |
if ( $form_type == 'wizard_times60' ){ |
| 841 |
$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'; |
| 842 |
} |
| 843 |
if ( $form_type == 'wizard_times60_24h' ){ |
| 844 |
$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'; |
| 845 |
} |
| 846 |
if ( $form_type == 'wizard_times30' ){ |
| 847 |
$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'; |
| 848 |
} |
| 849 |
if ( $form_type == 'wizard_times15' ){ |
| 850 |
$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'; |
| 851 |
} |
| 852 |
$form_content .=' </c> \n'; |
| 853 |
} else if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m |
| 854 |
$form_content .=' <c><p> \n'; |
| 855 |
$form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ': <strong>[selected_short_timedates_hint]</strong> \n'; |
| 856 |
$form_content .=' ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')<br> \n'; |
| 857 |
$form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': <strong>[cost_hint]</strong> <br> \n'; |
| 858 |
$form_content .=' </p></c> \n'; |
| 859 |
} |
| 860 |
$form_content .=' </r> <hr> \n'; |
| 861 |
$form_content .=' <r> \n'; |
| 862 |
$form_content .=' <div class="wpbc__field" style="justify-content: flex-end;"> \n'; |
| 863 |
$form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2" > \n'; |
| 864 |
$form_content .=' ' . esc_attr__( 'Next', 'booking' ) . ' \n'; |
| 865 |
$form_content .=' </a> \n'; |
| 866 |
$form_content .=' </div> \n'; |
| 867 |
$form_content .=' </r> \n'; |
| 868 |
$form_content .='</div> \n'; |
| 869 |
$form_content .='<div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step2 wpbc_wizard_step_hidden" style="display:none;clear:both;"> \n'; |
| 870 |
$form_content .=' <r> \n'; |
| 871 |
$form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* name] </c> \n'; |
| 872 |
$form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* secondname] </c> \n'; |
| 873 |
$form_content .=' </r> \n'; |
| 874 |
$form_content .=' <r> \n'; |
| 875 |
$form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[email* email] </c> \n'; |
| 876 |
$form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n'; |
| 877 |
$form_content .=' </r> \n'; |
| 878 |
$form_content .=' <r> \n'; |
| 879 |
$form_content .=' <c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n'; |
| 880 |
$form_content .=' <c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n'; |
| 881 |
$form_content .=' </r> \n'; |
| 882 |
$form_content .=' <r> \n'; |
| 883 |
$form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n'; |
| 884 |
$form_content .=' [textarea details] </c> \n'; |
| 885 |
$form_content .=' </r> \n'; |
| 886 |
$form_content .=' <spacer>height:10px;</spacer> \n'; |
| 887 |
$form_content .=' <r> \n'; |
| 888 |
$form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n'; |
| 889 |
$form_content .=' <c> [captcha] </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> \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 .=' <c>[captcha]</c> \n'; |
| 930 |
$form_content .=' </r> \n'; |
| 931 |
$form_content .=' <hr/> \n'; |
| 932 |
$form_content .=' <r><c>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</c></r> \n'; |
| 933 |
$form_content .=' </c> \n'; |
| 934 |
$form_content .='</r> \n'; |
| 935 |
|
| 936 |
|
| 937 |
// $form_content .='<r> \n'; |
| 938 |
// $form_content .=' <c>[calendar]</c> \n'; |
| 939 |
// $form_content .=' <c> \n'; |
| 940 |
// $form_content .=' <r><c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* name]</c></r> \n'; |
| 941 |
// $form_content .=' <r><c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* secondname]</c></r> \n'; |
| 942 |
// $form_content .=' <r><c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[email* email]</c></r> \n'; |
| 943 |
// $form_content .=' <r><c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br>[text phone]</c></r> \n'; |
| 944 |
// $form_content .=' <r><c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br>[selectbox visitors "1" "2" "3" "4"]</c></r> \n'; |
| 945 |
// $form_content .=' <r><c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br>[selectbox children "0" "1" "2" "3"]</c></r> \n'; |
| 946 |
// $form_content .=' <r><c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><br> [textarea details]</c></r> \n'; |
| 947 |
// $form_content .=' <r> \n'; |
| 948 |
// $form_content .=' <c>[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"]</c> \n'; |
| 949 |
// $form_content .=' <c>[captcha]</c> \n'; |
| 950 |
// $form_content .=' </r> \n'; |
| 951 |
// $form_content .=' <hr/> \n'; |
| 952 |
// $form_content .=' <r><c>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</c></r> \n'; |
| 953 |
// $form_content .=' </c> \n'; |
| 954 |
// $form_content .='</r> \n'; |
| 955 |
|
| 956 |
// $form_content .='<div class="wpbc_sections"> \n'; |
| 957 |
// $form_content .=' <div class="wpbc_section_50"> \n'; |
| 958 |
// $form_content .=' [calendar] \n'; |
| 959 |
// $form_content .=' </div> \n'; |
| 960 |
// $form_content .=' <div class="wpbc_section_spacer"></div> \n'; |
| 961 |
// $form_content .=' <div class="wpbc_section_50"> \n'; |
| 962 |
// $form_content .=' <p>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* name] </p> \n'; |
| 963 |
// $form_content .=' <p>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* secondname] </p> \n'; |
| 964 |
// $form_content .=' <p>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[email* email] </p> \n'; |
| 965 |
// $form_content .=' <p>' . esc_attr__( 'Phone', 'booking' ) . ':<br />[text phone] </p> \n'; |
| 966 |
// $form_content .=' <p>' . esc_attr__( 'Adults', 'booking' ) . ':<br />[selectbox visitors "1" "2" "3" "4"]</p> \n'; |
| 967 |
// $form_content .=' <p>' . esc_attr__( 'Children', 'booking' ) . ':<br />[selectbox children "0" "1" "2" "3"]</p> \n'; |
| 968 |
// $form_content .=' </div> \n'; |
| 969 |
// $form_content .=' <div class="wpbc_section_100"> \n'; |
| 970 |
// $form_content .=' <p>' . esc_attr__( 'Details', 'booking' ) . ':<br /> [textarea details]</p> \n'; |
| 971 |
// $form_content .=' [captcha] \n'; |
| 972 |
// $form_content .=' <p>[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"]</p> \n'; |
| 973 |
// $form_content .=' <hr/> \n'; |
| 974 |
// $form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"] </p> \n'; |
| 975 |
// $form_content .=' </div> \n'; |
| 976 |
// $form_content .='</div> \n'; |
| 977 |
} |
| 978 |
|
| 979 |
// FixIn: 8.7.7.15. |
| 980 |
if ($form_type == 'fields2columns') { // 2 columns form |
| 981 |
$form_content = ''; |
| 982 |
$form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n'; |
| 983 |
$form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n'; |
| 984 |
$form_content .='[calendar]\n'; |
| 985 |
$form_content .='<div class="wpbc__form__div">\n'; |
| 986 |
$form_content .=' <r>\n'; |
| 987 |
$form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* name] </c>\n'; |
| 988 |
$form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* secondname] </c>\n'; |
| 989 |
$form_content .=' </r>\n'; |
| 990 |
$form_content .=' <r>\n'; |
| 991 |
$form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[email* email] </c>\n'; |
| 992 |
$form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br>[text phone] </c>\n'; |
| 993 |
$form_content .=' </r>\n'; |
| 994 |
$form_content .=' <r>\n'; |
| 995 |
$form_content .=' <c> <l>' . esc_attr__( 'Address', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* address] </c>\n'; |
| 996 |
$form_content .=' <c> <l>' . esc_attr__( 'City', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* city] </c>\n'; |
| 997 |
$form_content .=' </r>\n'; |
| 998 |
$form_content .=' <r>\n'; |
| 999 |
$form_content .=' <c> <l>' . esc_attr__( 'Post code', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* postcode] </c>\n'; |
| 1000 |
$form_content .=' <c> <l>' . esc_attr__( 'Country', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[country] </c>\n'; |
| 1001 |
$form_content .=' </r>\n'; |
| 1002 |
$form_content .=' <r>\n'; |
| 1003 |
$form_content .=' <c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br>[selectbox visitors "1" "2" "3" "4" "5"] </c>\n'; |
| 1004 |
$form_content .=' <c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br>[selectbox children "0" "1" "2" "3"] </c>\n'; |
| 1005 |
$form_content .=' </r>\n'; |
| 1006 |
$form_content .=' <r>\n'; |
| 1007 |
$form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n'; |
| 1008 |
$form_content .=' [textarea details] </c>\n'; |
| 1009 |
$form_content .=' </r><br>\n'; |
| 1010 |
$form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</p>\n'; |
| 1011 |
$form_content .='</div>'; |
| 1012 |
} |
| 1013 |
|
| 1014 |
// FixIn: 8.8.2.6. |
| 1015 |
if ($form_type == 'fields3columns') { // 3 columns form |
| 1016 |
$form_content = ''; |
| 1017 |
$form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n'; |
| 1018 |
$form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n'; |
| 1019 |
$form_content .='<r>\n'; |
| 1020 |
$form_content .=' <c> [calendar] </c>\n'; |
| 1021 |
$form_content .=' <c>\n'; |
| 1022 |
$form_content .=' <div class="wpbc__form__div">\n'; |
| 1023 |
$form_content .=' <r>\n'; |
| 1024 |
$form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* name] </c>\n'; |
| 1025 |
$form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* secondname] </c>\n'; |
| 1026 |
$form_content .=' </r>\n'; |
| 1027 |
$form_content .=' <r>\n'; |
| 1028 |
$form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[email* email] </c>\n'; |
| 1029 |
$form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br>[text phone] </c>\n'; |
| 1030 |
$form_content .=' </r>\n'; |
| 1031 |
$form_content .=' <r>\n'; |
| 1032 |
$form_content .=' <c> <l>' . esc_attr__( 'Address', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* address] </c>\n'; |
| 1033 |
$form_content .=' <c> <l>' . esc_attr__( 'City', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* city] </c>\n'; |
| 1034 |
$form_content .=' </r>\n'; |
| 1035 |
$form_content .=' <r>\n'; |
| 1036 |
$form_content .=' <c> <l>' . esc_attr__( 'Post code', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[text* postcode] </c>\n'; |
| 1037 |
$form_content .=' <c> <l>' . esc_attr__( 'Country', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br>[country] </c>\n'; |
| 1038 |
$form_content .=' </r>\n'; |
| 1039 |
$form_content .=' <r>\n'; |
| 1040 |
$form_content .=' <c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br>[selectbox visitors "1" "2" "3" "4" "5"] </c>\n'; |
| 1041 |
$form_content .=' <c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br>[selectbox children "0" "1" "2" "3"] </c>\n'; |
| 1042 |
$form_content .=' </r>\n'; |
| 1043 |
$form_content .=' <r>\n'; |
| 1044 |
$form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n'; |
| 1045 |
$form_content .=' [textarea details] </c>\n'; |
| 1046 |
$form_content .=' </r>\n'; |
| 1047 |
$form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</p>\n'; |
| 1048 |
$form_content .=' </div>\n'; |
| 1049 |
$form_content .=' </c>\n'; |
| 1050 |
$form_content .='</r>\n'; |
| 1051 |
} |
| 1052 |
|
| 1053 |
|
| 1054 |
// FixIn: 8.7.11.14. |
| 1055 |
if ($form_type == 'fields2columnstimes') { // 2 columns form |
| 1056 |
$form_content = ''; |
| 1057 |
$form_content .='<div class="wpbc__form__div"> \n'; |
| 1058 |
$form_content .=' <r> \n'; |
| 1059 |
$form_content .=' <c> <l>Select Date:</l><br />[calendar] </c> \n'; |
| 1060 |
$form_content .=' <c> <l>' . esc_attr__( 'Select Times', 'booking' ) . '*:</l><br /> \n'; |
| 1061 |
$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'; |
| 1062 |
$form_content .=' </r> \n'; |
| 1063 |
$form_content .=' <r> \n'; |
| 1064 |
$form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* name] </c> \n'; |
| 1065 |
$form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[text* secondname] </c> \n'; |
| 1066 |
$form_content .=' </r> \n'; |
| 1067 |
$form_content .=' <r> \n'; |
| 1068 |
$form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):</l><br />[email* email] </c> \n'; |
| 1069 |
$form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . ':</l><br />[text phone] </c> \n'; |
| 1070 |
$form_content .=' </r> \n'; |
| 1071 |
$form_content .=' <r> \n'; |
| 1072 |
$form_content .=' <c> <l>' . esc_attr__( 'Adults', 'booking' ) . ':</l><br />[selectbox visitors "1" "2" "3" "4" "5"] </c> \n'; |
| 1073 |
$form_content .=' <c> <l>' . esc_attr__( 'Children', 'booking' ) . ':</l><br />[selectbox children "0" "1" "2" "3"] </c> \n'; |
| 1074 |
$form_content .=' </r> \n'; |
| 1075 |
$form_content .=' <r> \n'; |
| 1076 |
$form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . ':</l><spacer></spacer> \n'; |
| 1077 |
$form_content .=' [textarea details] </c> \n'; |
| 1078 |
$form_content .=' </r><br /> \n'; |
| 1079 |
$form_content .=' <p>[submit "' . esc_attr__( 'Send', 'booking' ) . '"]</p>\n'; |
| 1080 |
$form_content .='</div>\n'; |
| 1081 |
} |
| 1082 |
|
| 1083 |
if ($form_content == '') { // Default Form. |
| 1084 |
$form_content = ''; |
| 1085 |
$form_content .='[calendar] \n'; |
| 1086 |
$form_content .='<div class="standard-form"> \n'; |
| 1087 |
$form_content .=' <p>' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* name] </p> \n'; |
| 1088 |
$form_content .=' <p>' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[text* secondname] </p> \n'; |
| 1089 |
$form_content .=' <p>' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):<br />[email* email] </p> \n'; |
| 1090 |
$form_content .=' <p>' . esc_attr__( 'Phone', 'booking' ) . ':<br />[text phone] </p> \n'; |
| 1091 |
$form_content .=' <p>' . esc_attr__( 'Adults', 'booking' ) . ':<br />[selectbox visitors "1" "2" "3" "4"]</p> \n'; |
| 1092 |
$form_content .=' <p>' . esc_attr__( 'Children', 'booking' ) . ':<br />[selectbox children "0" "1" "2" "3"]</p> \n'; |
| 1093 |
$form_content .=' <p>' . esc_attr__( 'Details', 'booking' ) . ':<br /> [textarea details] </p> \n'; |
| 1094 |
$form_content .=' <p>[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </p>\n'; |
| 1095 |
$form_content .=' <p>[captcha]</p> \n'; |
| 1096 |
$form_content .=' <p>[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]</p> \n'; |
| 1097 |
$form_content .='</div>'; |
| 1098 |
} |
| 1099 |
|
| 1100 |
|
| 1101 |
if ( in_array( $form_type, array( 'appointments_service_a' ) ) ) { |
| 1102 |
// FixIn: 10.9.6.5. |
| 1103 |
$form_content = ''; |
| 1104 |
$form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n'; |
| 1105 |
$form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n'; |
| 1106 |
$form_content .='<div class="wpbc_wizard__border_container"> \n'; |
| 1107 |
$form_content .=' <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step1"> \n'; |
| 1108 |
$form_content .=' [steps_timline steps_count="3" active_step="1"] \n'; |
| 1109 |
$form_content .=' <r> \n'; |
| 1110 |
$form_content .=' <c class="wpbc_aling_center"> \n'; |
| 1111 |
$form_content .=' <l>' . esc_attr__( 'Select Service', 'booking' ) . ' *</l><br /><spacer>height:20px;</spacer> \n'; |
| 1112 |
$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'; |
| 1113 |
$form_content .=' </c> \n'; |
| 1114 |
$form_content .=' </r> \n'; |
| 1115 |
$form_content .=' <hr><r> \n'; |
| 1116 |
$form_content .=' <c class="wpbc_aling_right" > \n'; |
| 1117 |
$form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2"> \n'; |
| 1118 |
$form_content .=' ' . esc_attr__( 'Next', 'booking' ) . ' \n'; |
| 1119 |
$form_content .=' </a> \n'; |
| 1120 |
$form_content .=' </c> \n'; |
| 1121 |
$form_content .=' </r> \n'; |
| 1122 |
$form_content .=' </div> \n'; |
| 1123 |
$form_content .=' <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step2 wpbc_wizard_step_hidden" style="display:none;clear:both;"> \n'; |
| 1124 |
$form_content .=' [steps_timline steps_count="3" active_step="2"]<hr> \n'; |
| 1125 |
$form_content .=' <r> \n'; |
| 1126 |
$form_content .=' <c> <l>' . esc_attr__( 'Select Date', 'booking' ) . ' *</l><br /> [calendar] </c> \n'; |
| 1127 |
$form_content .=' <c> <l>' . esc_attr__( 'Select Times', 'booking' ) . ' *</l><br /> \n'; |
| 1128 |
$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'; |
| 1129 |
$form_content .=' </c> \n'; |
| 1130 |
$form_content .=' </r> \n'; |
| 1131 |
if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m |
| 1132 |
$form_content .= ' <r> <c> \n'; |
| 1133 |
$form_content .= ' <div class="form-hints"> \n'; |
| 1134 |
$form_content .= ' ' . esc_attr__( 'Date', 'booking' ) . ': <strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n'; |
| 1135 |
$form_content .= ' ' . esc_attr__( 'Time', 'booking' ) . ': <strong>[start_time_hint] - [end_time_hint]</strong> \n'; |
| 1136 |
$form_content .= ' </div> \n'; |
| 1137 |
$form_content .= ' </c> \n'; |
| 1138 |
$form_content .= ' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': <strong>[cost_hint]</strong></c> \n'; |
| 1139 |
$form_content .= ' </r> \n'; |
| 1140 |
} |
| 1141 |
$form_content .=' <hr> \n'; |
| 1142 |
$form_content .=' <r> \n'; |
| 1143 |
$form_content .=' <c class="wpbc_aling_right" > \n'; |
| 1144 |
$form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_1"> \n'; |
| 1145 |
$form_content .=' ' . esc_attr__( 'Back', 'booking' ) . '</a><spacer>width:20px;</spacer> \n'; |
| 1146 |
$form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_3" > \n'; |
| 1147 |
$form_content .=' ' . esc_attr__( 'Next', 'booking' ) . '</a> \n'; |
| 1148 |
$form_content .=' </c> \n'; |
| 1149 |
$form_content .=' </r> \n'; |
| 1150 |
$form_content .=' </div> \n'; |
| 1151 |
$form_content .=' <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step3 wpbc_wizard_step_hidden" style="display:none;clear:both;"> \n'; |
| 1152 |
$form_content .=' [steps_timline steps_count="3" active_step="3"]<hr> \n'; |
| 1153 |
$form_content .=' <r> \n'; |
| 1154 |
$form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' *</l><br />[text* name] </c> \n'; |
| 1155 |
$form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' *</l><br />[text* secondname] </c> \n'; |
| 1156 |
$form_content .=' </r> \n'; |
| 1157 |
$form_content .=' <r> \n'; |
| 1158 |
$form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' *</l><br />[email* email] </c> \n'; |
| 1159 |
$form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . '</l><br />[text phone] </c> \n'; |
| 1160 |
$form_content .=' </r> \n'; |
| 1161 |
$form_content .=' <r> \n'; |
| 1162 |
$form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . '</l><spacer></spacer> \n'; |
| 1163 |
$form_content .=' [textarea details] </c> \n'; |
| 1164 |
$form_content .=' </r> \n'; |
| 1165 |
$form_content .=' <spacer>height:10px;</spacer> \n'; |
| 1166 |
$form_content .=' <r> \n'; |
| 1167 |
$form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n'; |
| 1168 |
$form_content .=' <c> [captcha] </c> \n'; |
| 1169 |
$form_content .=' </r> \n'; |
| 1170 |
if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m |
| 1171 |
$form_content .=' <r> <c> \n'; |
| 1172 |
$form_content .=' <div class="form-hints"> \n'; |
| 1173 |
$form_content .=' ' . esc_attr__( 'Date', 'booking' ) . ': <strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n'; |
| 1174 |
$form_content .=' ' . esc_attr__( 'Time', 'booking' ) . ': <strong>[start_time_hint] - [end_time_hint]</strong> \n'; |
| 1175 |
$form_content .=' </div> \n'; |
| 1176 |
$form_content .=' </c> \n'; |
| 1177 |
$form_content .=' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': <strong>[cost_hint]</strong></c> \n'; |
| 1178 |
$form_content .=' </r> \n'; |
| 1179 |
} |
| 1180 |
$form_content .=' <hr> \n'; |
| 1181 |
$form_content .=' <r> \n'; |
| 1182 |
$form_content .=' <c class="wpbc_aling_right" > \n'; |
| 1183 |
$form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2"> \n'; |
| 1184 |
$form_content .=' ' . esc_attr__( 'Back', 'booking' ) . '</a><spacer>width:20px;</spacer> \n'; |
| 1185 |
$form_content .=' [submit "' . esc_attr__( 'Send', 'booking' ) . '"] \n'; |
| 1186 |
$form_content .=' </c> \n'; |
| 1187 |
$form_content .=' </r> \n'; |
| 1188 |
$form_content .=' </div> \n'; |
| 1189 |
$form_content .='</div>'; |
| 1190 |
} |
| 1191 |
|
| 1192 |
if ( in_array( $form_type, array( 'appointments_service_b' ) ) ) { |
| 1193 |
// FixIn: 10.9.6.5. |
| 1194 |
$form_content = ''; |
| 1195 |
$form_content .='<!-- Simple HTML shortcodes in the form (check more at "Generate Tag" section): \n'; |
| 1196 |
$form_content .=' Row: <r>...</r> | Columns: <c>...</c> | Labels: <l>...</l> | Spacer: <spacer></spacer> --> \n'; |
| 1197 |
$form_content .='<div class="wpbc_wizard__border_container"> \n'; |
| 1198 |
$form_content .=' <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step1"> \n'; |
| 1199 |
$form_content .=' [steps_timline steps_count="3" active_step="1"] \n'; |
| 1200 |
$form_content .=' <r> \n'; |
| 1201 |
$form_content .=' <c class="wpbc_aling_center"> \n'; |
| 1202 |
$form_content .=' <l>' . esc_attr__( 'Select Service', 'booking' ) . ' *</l><br /><spacer>height:20px;</spacer> \n'; |
| 1203 |
$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'; |
| 1204 |
$form_content .=' </c> \n'; |
| 1205 |
$form_content .=' </r> \n'; |
| 1206 |
$form_content .=' <hr> \n'; |
| 1207 |
$form_content .=' <r> \n'; |
| 1208 |
$form_content .=' <c> <l>' . esc_attr__( 'Select Date', 'booking' ) . ' *</l><br /> [calendar] </c> \n'; |
| 1209 |
$form_content .=' <c> <l>' . esc_attr__( 'Select Times', 'booking' ) . ' *</l><br /> \n'; |
| 1210 |
$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'; |
| 1211 |
$form_content .=' </c> \n'; |
| 1212 |
$form_content .=' </r> \n'; |
| 1213 |
if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m |
| 1214 |
$form_content .= ' <r> <c> \n'; |
| 1215 |
$form_content .= ' <div class="form-hints"> \n'; |
| 1216 |
$form_content .= ' ' . esc_attr__( 'Date', 'booking' ) . ': <strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n'; |
| 1217 |
$form_content .= ' ' . esc_attr__( 'Time', 'booking' ) . ': <strong>[start_time_hint] - [end_time_hint]</strong> \n'; |
| 1218 |
$form_content .= ' </div> \n'; |
| 1219 |
$form_content .= ' </c> \n'; |
| 1220 |
$form_content .= ' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': <strong>[cost_hint]</strong></c> \n'; |
| 1221 |
$form_content .= ' </r> \n'; |
| 1222 |
} |
| 1223 |
$form_content .=' <hr> \n'; |
| 1224 |
$form_content .=' <r> \n'; |
| 1225 |
$form_content .=' <c class="wpbc_aling_right" > \n'; |
| 1226 |
$form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_2" > \n'; |
| 1227 |
$form_content .=' ' . esc_attr__( 'Next', 'booking' ) . '</a> \n'; |
| 1228 |
$form_content .=' </c> \n'; |
| 1229 |
$form_content .=' </r> \n'; |
| 1230 |
$form_content .=' </div> \n'; |
| 1231 |
$form_content .=' <div class="wpbc_wizard_step wpbc__form__div wpbc_wizard_step2 wpbc_wizard_step_hidden" style="display:none;clear:both;"> \n'; |
| 1232 |
$form_content .=' [steps_timline steps_count="3" active_step="2"] \n'; |
| 1233 |
$form_content .=' <r> \n'; |
| 1234 |
$form_content .=' <c> <l>' . esc_attr__( 'First Name', 'booking' ) . ' *</l><br />[text* name] </c> \n'; |
| 1235 |
$form_content .=' <c> <l>' . esc_attr__( 'Last Name', 'booking' ) . ' *</l><br />[text* secondname] </c> \n'; |
| 1236 |
$form_content .=' </r> \n'; |
| 1237 |
$form_content .=' <r> \n'; |
| 1238 |
$form_content .=' <c> <l>' . esc_attr__( 'Email', 'booking' ) . ' *</l><br />[email* email] </c> \n'; |
| 1239 |
$form_content .=' <c> <l>' . esc_attr__( 'Phone', 'booking' ) . '</l><br />[text phone] </c> \n'; |
| 1240 |
$form_content .=' </r> \n'; |
| 1241 |
$form_content .=' <r> \n'; |
| 1242 |
$form_content .=' <c> <l>' . esc_attr__( 'Details', 'booking' ) . '</l><spacer></spacer> \n'; |
| 1243 |
$form_content .=' [textarea details] </c> \n'; |
| 1244 |
$form_content .=' </r> \n'; |
| 1245 |
$form_content .=' <spacer>height:10px;</spacer> \n'; |
| 1246 |
$form_content .=' <r> \n'; |
| 1247 |
$form_content .=' <c> [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] </c> \n'; |
| 1248 |
$form_content .=' <c> [captcha] </c> \n'; |
| 1249 |
$form_content .=' </r> \n'; |
| 1250 |
if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m |
| 1251 |
$form_content .=' <r> <c> \n'; |
| 1252 |
$form_content .=' <div class="form-hints"> \n'; |
| 1253 |
$form_content .=' ' . esc_attr__( 'Date', 'booking' ) . ': <strong>[selected_dates_hint]</strong><spacer>width:2em;</spacer> \n'; |
| 1254 |
$form_content .=' ' . esc_attr__( 'Time', 'booking' ) . ': <strong>[start_time_hint] - [end_time_hint]</strong> \n'; |
| 1255 |
$form_content .=' </div> \n'; |
| 1256 |
$form_content .=' </c> \n'; |
| 1257 |
$form_content .=' <c>' . esc_attr__( 'Total Cost', 'booking' ) . ': <strong>[cost_hint]</strong></c> \n'; |
| 1258 |
$form_content .=' </r> \n'; |
| 1259 |
} |
| 1260 |
$form_content .=' <hr> \n'; |
| 1261 |
$form_content .=' <r> \n'; |
| 1262 |
$form_content .=' <c class="wpbc_aling_right" > \n'; |
| 1263 |
$form_content .=' <a class="wpbc_button_light wpbc_wizard_step_button wpbc_wizard_step_1"> \n'; |
| 1264 |
$form_content .=' ' . esc_attr__( 'Back', 'booking' ) . '</a><spacer>width:20px;</spacer> \n'; |
| 1265 |
$form_content .=' [submit "' . esc_attr__( 'Send', 'booking' ) . '"] \n'; |
| 1266 |
$form_content .=' </c> \n'; |
| 1267 |
$form_content .=' </r> \n'; |
| 1268 |
$form_content .=' </div> \n'; |
| 1269 |
$form_content .='</div>'; |
| 1270 |
} |
| 1271 |
|
| 1272 |
return $form_content; |
| 1273 |
} |
| 1274 |
|
| 1275 |
|
| 1276 |
function wpbc_get__predefined_booking_data__template( $form_type ){ |
| 1277 |
|
| 1278 |
$form_content = ''; |
| 1279 |
// FixIn: 10.7.1.4. |
| 1280 |
if ( |
| 1281 |
( in_array( $form_type, array( 'appointments30' ) ) ) |
| 1282 |
){ |
| 1283 |
$form_content = ''; |
| 1284 |
$form_content .='<div class="standard-content-form"> \n'; |
| 1285 |
$form_content .=' <b>' . esc_attr__( 'Times', 'booking' ) . '</b>: <f>[rangetime]</f><br>\n'; |
| 1286 |
$form_content .=' <b>' . esc_attr__( 'First Name', 'booking' ) . '</b>: <f>[name]</f><br>\n'; |
| 1287 |
$form_content .=' <b>' . esc_attr__( 'Last Name', 'booking' ) . '</b>: <f>[secondname]</f><br>\n'; |
| 1288 |
$form_content .=' <b>' . esc_attr__( 'Email', 'booking' ) . '</b>: <f>[email]</f><br>\n'; |
| 1289 |
$form_content .=' <b>' . esc_attr__( 'Phone', 'booking' ) . '</b>: <f>[phone]</f><br>\n'; |
| 1290 |
$form_content .=' <b>' . esc_attr__( 'Details', 'booking' ) . '</b>: <f>[details]</f>\n'; |
| 1291 |
$form_content .='</div>'; |
| 1292 |
} |
| 1293 |
if ( ($form_type == 'payment') || ($form_type == 'paymentUS') || ( 'fields2columns' == $form_type ) || ( 'fields3columns' == $form_type ) ) { //FixIn: 8.7.7.15 // FixIn: 8.8.2.6. |
| 1294 |
$form_content = ''; |
| 1295 |
$form_content .='<div class="standard-content-form"> \n'; |
| 1296 |
$form_content .=' <b>' . esc_attr__( 'First Name', 'booking' ) . '</b>: <f>[name]</f><br>\n'; |
| 1297 |
$form_content .=' <b>' . esc_attr__( 'Last Name', 'booking' ) . '</b>: <f>[secondname]</f><br>\n'; |
| 1298 |
$form_content .=' <b>' . esc_attr__( 'Email', 'booking' ) . '</b>: <f>[email]</f><br>\n'; |
| 1299 |
$form_content .=' <b>' . esc_attr__( 'Phone', 'booking' ) . '</b>: <f>[phone]</f><br>\n'; |
| 1300 |
$form_content .=' <b>' . esc_attr__( 'Address', 'booking' ) . '</b>: <f>[address]</f><br>\n'; |
| 1301 |
$form_content .=' <b>' . esc_attr__( 'City', 'booking' ) . '</b>: <f>[city]</f><br>\n'; |
| 1302 |
$form_content .=' <b>' . esc_attr__( 'Post code', 'booking' ) . '</b>: <f>[postcode]</f><br>\n'; |
| 1303 |
$form_content .=' <b>' . esc_attr__( 'Country', 'booking' ) . '</b>: <f>[country]</f><br>\n'; |
| 1304 |
if ( $form_type == 'paymentUS' ) { |
| 1305 |
$form_content .=' <b>' . esc_attr__( 'State', 'booking' ) . '</b>: <f>[state]</f><br>\n'; |
| 1306 |
} |
| 1307 |
$form_content .=' <b>' . esc_attr__( 'Adults', 'booking' ) . '</b>: <f>[visitors]</f><br>\n'; |
| 1308 |
$form_content .=' <b>' . esc_attr__( 'Children', 'booking' ) . '</b>: <f>[children]</f><br>\n'; |
| 1309 |
$form_content .=' <b>' . esc_attr__( 'Details', 'booking' ) . '</b>: <f>[details]</f>\n'; |
| 1310 |
$form_content .='</div>'; |
| 1311 |
} |
| 1312 |
|
| 1313 |
if ( |
| 1314 |
( in_array( $form_type, array( 'timesweek', 'fields2columnstimes' ) ) ) |
| 1315 |
|| ( in_array( $form_type, array( 'times', 'times30', 'times15', 'times120', 'times60', 'times60_24h', 'endtime', 'durationtime' ) ) ) |
| 1316 |
|| ( in_array( $form_type, array( 'wizard_times', 'wizard_times30', 'wizard_times15', 'wizard_times120', 'wizard_times60', 'wizard_times60_24h' ) ) ) |
| 1317 |
){ |
| 1318 |
$form_content = ''; |
| 1319 |
$form_content .='<div class="standard-content-form"> \n'; |
| 1320 |
$form_content .=' <b>' . esc_attr__( 'Times', 'booking' ) . '</b>: <f>[rangetime]</f><br>\n'; |
| 1321 |
$form_content .=' <b>' . esc_attr__( 'First Name', 'booking' ) . '</b>: <f>[name]</f><br>\n'; |
| 1322 |
$form_content .=' <b>' . esc_attr__( 'Last Name', 'booking' ) . '</b>: <f>[secondname]</f><br>\n'; |
| 1323 |
$form_content .=' <b>' . esc_attr__( 'Email', 'booking' ) . '</b>: <f>[email]</f><br>\n'; |
| 1324 |
$form_content .=' <b>' . esc_attr__( 'Phone', 'booking' ) . '</b>: <f>[phone]</f><br>\n'; |
| 1325 |
$form_content .=' <b>' . esc_attr__( 'Adults', 'booking' ) . '</b>: <f>[visitors]</f><br>\n'; |
| 1326 |
$form_content .=' <b>' . esc_attr__( 'Children', 'booking' ) . '</b>: <f>[children]</f><br>\n'; |
| 1327 |
$form_content .=' <b>' . esc_attr__( 'Details', 'booking' ) . '</b>: <f>[details]</f>\n'; |
| 1328 |
$form_content .='</div>'; |
| 1329 |
} |
| 1330 |
|
| 1331 |
if ( 'hints-dev' == $form_type ){ |
| 1332 |
$form_content = ''; |
| 1333 |
$form_content .='<div class="standard-content-form"> \n'; |
| 1334 |
$form_content .=' <b>' . esc_attr__( 'First Name', 'booking' ) . '</b>: <f>[name]</f><br>\n'; |
| 1335 |
$form_content .=' <b>' . esc_attr__( 'Last Name', 'booking' ) . '</b>: <f>[secondname]</f><br>\n'; |
| 1336 |
$form_content .=' <b>' . esc_attr__( 'Email', 'booking' ) . '</b>: <f>[email]</f><br>\n'; |
| 1337 |
$form_content .=' <b>' . esc_attr__( 'Adults', 'booking' ) . '</b>: <f>[visitors]</f><br>\n'; |
| 1338 |
$form_content .=' <b>' . esc_attr__( 'Children', 'booking' ) . '</b>: <f>[children]</f><br>\n'; |
| 1339 |
$form_content .=' <b>' . esc_attr__( 'Details', 'booking' ) . '</b>: <f>[details]</f>\n'; |
| 1340 |
$form_content .='</div>'; |
| 1341 |
} |
| 1342 |
|
| 1343 |
if ( ($form_type == 'wizard') || ($form_type == '2collumns') || ($form_content == 'hints') || ($form_content == '') ){ |
| 1344 |
$form_content = ''; |
| 1345 |
$form_content .='<div class="standard-content-form"> \n'; |
| 1346 |
$form_content .=' <b>' . esc_attr__( 'First Name', 'booking' ) . '</b>: <f>[name]</f><br>\n'; |
| 1347 |
$form_content .=' <b>' . esc_attr__( 'Last Name', 'booking' ) . '</b>: <f>[secondname]</f><br>\n'; |
| 1348 |
$form_content .=' <b>' . esc_attr__( 'Email', 'booking' ) . '</b>: <f>[email]</f><br>\n'; |
| 1349 |
$form_content .=' <b>' . esc_attr__( 'Phone', 'booking' ) . '</b>: <f>[phone]</f><br>\n'; |
| 1350 |
$form_content .=' <b>' . esc_attr__( 'Adults', 'booking' ) . '</b>: <f>[visitors]</f><br>\n'; |
| 1351 |
$form_content .=' <b>' . esc_attr__( 'Children', 'booking' ) . '</b>: <f>[children]</f><br>\n'; |
| 1352 |
$form_content .=' <b>' . esc_attr__( 'Details', 'booking' ) . '</b>: <f>[details]</f>\n'; |
| 1353 |
$form_content .='</div>'; |
| 1354 |
} |
| 1355 |
|
| 1356 |
if ( in_array( $form_type, array( 'appointments_service_a', 'appointments_service_b' ) ) ) { |
| 1357 |
$form_content = ''; |
| 1358 |
$form_content .= '<div class="standard-content-form"> \n'; |
| 1359 |
$form_content .= ' <b>' . esc_attr__( 'Service', 'booking' ) . '</b>: <f>[durationtime_val]</f><br>\n'; |
| 1360 |
$form_content .= ' <b>' . esc_attr__( 'Start Times', 'booking' ) . '</b>:<f>[starttime]</f><br>\n'; |
| 1361 |
$form_content .= ' <b>' . esc_attr__( 'First Name', 'booking' ) . '</b>: <f>[name]</f><br>\n'; |
| 1362 |
$form_content .= ' <b>' . esc_attr__( 'Last Name', 'booking' ) . '</b>: <f>[secondname]</f><br>\n'; |
| 1363 |
$form_content .= ' <b>' . esc_attr__( 'Email', 'booking' ) . '</b>: <f>[email]</f><br>\n'; |
| 1364 |
$form_content .= ' <b>' . esc_attr__( 'Phone', 'booking' ) . '</b>: <f>[phone]</f><br>\n'; |
| 1365 |
$form_content .= ' <b>' . esc_attr__( 'Details', 'booking' ) . '</b>: <f>[details]</f>\n'; |
| 1366 |
$form_content .= '</div>'; |
| 1367 |
} |
| 1368 |
|
| 1369 |
return $form_content; |
| 1370 |
} |
| 1371 |
|