| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly |
| 4 |
if ( !defined( 'ABSPATH' ) ) exit; |
| 5 |
|
| 6 |
/** |
| 7 |
* What's New section for Booking Calendar 11.4 |
| 8 |
* |
| 9 |
* @param object $obj |
| 10 |
* |
| 11 |
* @return void |
| 12 |
*/ |
| 13 |
function wpbc_welcome_section_11_4( $obj ) { |
| 14 |
|
| 15 |
$section_param_arr = array( 'version_num' => '11.4', 'show_expand' => false ); |
| 16 |
|
| 17 |
$obj->expand_section_start( $section_param_arr ); |
| 18 |
// $obj->asset_path = 'http://beta/assets/'; // TODO: comment this in production. |
| 19 |
?> |
| 20 |
<div class="wpbc_wn_container"> |
| 21 |
|
| 22 |
<div class="wpbc_wn_section"> |
| 23 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'New Global Booking Form Styles' ) ); ?></h2> |
| 24 |
|
| 25 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 26 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 27 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.4/booking_calendar__booking_form_styles.gif' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 28 |
</div> |
| 29 |
|
| 30 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 31 |
<ul> |
| 32 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added global **Booking Form Styles** with Light and Dark bordered, borderless, and soft-background presets, plus a fully configurable Custom style.' ) ); ?></li> |
| 33 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Complete appearance controls**: Customize form backgrounds, borders, spacing, text, fields, focus states, checkbox and radio controls, and buttons.' ) ); ?></li> |
| 34 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Consistent live previews**: Select and preview the same global Form Style in **Settings > Appearance / Theme** and the **Booking Form Builder**.' ) ); ?></li> |
| 35 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Unified front-end design**: Form styles now apply consistently across booking forms and supported payment buttons while preserving PayPal branding.' ) ); ?></li> |
| 36 |
</ul> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
|
| 40 |
<div class="wpbc_wn_section"> |
| 41 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Two-Click Date Range Selection' ) ); ?></h2> |
| 42 |
|
| 43 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 44 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 45 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.4/booking_calendar__date_range_selection.gif' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 46 |
</div> |
| 47 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 48 |
<ul> |
| 49 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added two-click date-range selection in **Booking Calendar Free and higher editions**, allowing visitors to select the first and last booking dates.' ) ); ?></li> |
| 50 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Clear visual selection**: Available dates and the prospective date range are highlighted while visitors move through the calendar.' ) ); ?></li> |
| 51 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Better visitor guidance**: Added clearer instructions for completing a range and more useful feedback when it contains unavailable dates.' ) ); ?></li> |
| 52 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Faster full-day setup**: Two-click range selection is now the default when Full Day Booking mode is activated in the Setup Wizard.' ) ); ?></li> |
| 53 |
</ul> |
| 54 |
</div> |
| 55 |
</div> |
| 56 |
|
| 57 |
<div class="wpbc_wn_section" style="gap:1%"> |
| 58 |
|
| 59 |
<div class="wpbc_wn_col" style="flex: 1 1 48%;"> |
| 60 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Centralized Form Messages' ) ); ?></h2> |
| 61 |
|
| 62 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 63 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 64 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.4/booking_calendar__form_messages.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 65 |
</div> |
| 66 |
<ul> |
| 67 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added a dedicated **Form Messages** settings page for date selection notices, validation errors, submission messages, and other visitor-facing text.' ) ); ?></li> |
| 68 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Multilingual messages**: Customize messages with **[lang=LOCALE]** language shortcodes while keeping translated plugin defaults.' ) ); ?></li> |
| 69 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Simpler settings workflow**: Edit all message groups on one page, use quick section navigation, restore defaults, and save with AJAX notifications.' ) ); ?></li> |
| 70 |
</ul> |
| 71 |
</div> |
| 72 |
|
| 73 |
<div class="wpbc_wn_col" style="flex: 1 1 48%;"> |
| 74 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Streamlined Form Builder Workflow' ) ); ?></h2> |
| 75 |
|
| 76 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 77 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 78 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.4/booking_calendar__form_builder_workflow.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 79 |
</div> |
| 80 |
<ul> |
| 81 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Modernized form configuration**: Removed legacy Booking Form settings pages and routed form configuration to the **Booking Form Builder**.' ) ); ?></li> |
| 82 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Safe legacy migration**: Existing Simple and Advanced legacy forms are imported into the Booking Form Builder during updates.' ) ); ?></li> |
| 83 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Setup Wizard improvement**: Added **Save and Continue** and limited visual highlighting to the settings relevant to the current setup step.' ) ); ?></li> |
| 84 |
</ul> |
| 85 |
</div> |
| 86 |
</div> |
| 87 |
|
| 88 |
</div> |
| 89 |
<?php |
| 90 |
|
| 91 |
$obj->expand_section_end( $section_param_arr ); |
| 92 |
} |
| 93 |
|
| 94 |
/** |
| 95 |
* What's New section for Booking Calendar 11.3 |
| 96 |
* |
| 97 |
* @param object $obj |
| 98 |
* |
| 99 |
* @return void |
| 100 |
*/ |
| 101 |
function wpbc_welcome_section_11_3( $obj ) { |
| 102 |
|
| 103 |
?> |
| 104 |
<hr/> |
| 105 |
<?php |
| 106 |
|
| 107 |
$section_param_arr = array( 'version_num' => '11.3', 'show_expand' => false ); |
| 108 |
|
| 109 |
$obj->expand_section_start( $section_param_arr ); |
| 110 |
// $obj->asset_path = 'http://beta/assets/'; // TODO: comment this in production. |
| 111 |
?> |
| 112 |
<div class="wpbc_wn_container"> |
| 113 |
|
| 114 |
<div class="wpbc_wn_section"> |
| 115 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'New Calendar Settings Page' ) ); ?></h2> |
| 116 |
|
| 117 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 118 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 119 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.3/booking_calendar__settings_calendar_live_preview.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 120 |
</div> |
| 121 |
|
| 122 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 123 |
<ul> |
| 124 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added a dedicated **Settings > Calendar** page with a live calendar preview and right-side configuration panels.' ) ); ?></li> |
| 125 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Days selection preview**: Configure single day, multiple days, range selection, start weekdays, and related selection rules while immediately seeing how the calendar behaves.' ) ); ?></li> |
| 126 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Changeover settings**: Configure check-in/check-out changeover days, diagonal or vertical markings, recurrent times, and changeover exceptions from the same visual interface.' ) ); ?></li> |
| 127 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Calendar legend and tooltips**: Show or hide the legend, edit legend item titles, and configure date tooltip content with instant preview updates.' ) ); ?></li> |
| 128 |
</ul> |
| 129 |
</div> |
| 130 |
</div> |
| 131 |
|
| 132 |
<div class="wpbc_wn_section"> |
| 133 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'New Appearance / Theme Settings Page' ) ); ?></h2> |
| 134 |
|
| 135 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 136 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 137 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.3/booking_calendar__settings_theme_live_preview.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 138 |
</div> |
| 139 |
|
| 140 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 141 |
<ul> |
| 142 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added a dedicated **Settings > Appearance / Theme** page for configuring the calendar skin and booking form visual style.' ) ); ?></li> |
| 143 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Real booking form preview**: Preview the real calendar and booking form using selected resources, month count, custom forms, and preview modes.' ) ); ?></li> |
| 144 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Theme controls**: Switch between light and dark booking form themes, choose calendar skins, configure time picker appearance, and review the result before saving.' ) ); ?></li> |
| 145 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Cleaner settings experience**: Legacy Appearance / Color Theme settings were replaced with a clearer visual workflow.' ) ); ?></li> |
| 146 |
</ul> |
| 147 |
</div> |
| 148 |
</div> |
| 149 |
|
| 150 |
<div class="wpbc_wn_section" style="gap:1%"> |
| 151 |
|
| 152 |
<div class="wpbc_wn_col" style="flex: 1 1 48%;"> |
| 153 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Setup Wizard Improvements' ) ); ?></h2> |
| 154 |
|
| 155 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 156 |
<!-- <img src="--><?php //echo esc_attr( $obj->section_img_url( '11.3/booking_calendar__setup_wizard_calendar_flow.png' ) ); ?><!--" style="margin:10px 0;width:98%;" />--> |
| 157 |
|
| 158 |
<ul> |
| 159 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Improvement**: Setup Wizard steps now open the new Calendar and Appearance / Theme settings pages instead of older settings screens.' ) ); ?></li> |
| 160 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Smarter changeover setup**: Changeover workflows now include a dedicated Changeover Days step and continue through Date Availability, Color Theme, Publish, and Booking Listing.' ) ); ?></li> |
| 161 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Better Setup Bar positioning**: The floating Setup Bar moves to a better default top position on visual settings pages, while preserving any user-dragged position.' ) ); ?></li> |
| 162 |
</ul> |
| 163 |
</div> |
| 164 |
|
| 165 |
<div class="wpbc_wn_col" style="flex: 1 1 48%;"> |
| 166 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Resources and Admin Workflow' ) ); ?></h2> |
| 167 |
|
| 168 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 169 |
<!-- <img src="--><?php //echo esc_attr( $obj->section_img_url( '11.3/booking_calendar__resources_capacity_rules.png' ) ); ?><!--" style="margin:10px 0;width:98%;" />--> |
| 170 |
|
| 171 |
<ul> |
| 172 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Moved capacity-related settings to **Resources > Capacity Rules**, keeping booking quantity and pending-day rules closer to resource configuration.' ) ); ?></li> |
| 173 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Improvement**: Added a shared top path/status line across Booking Calendar admin pages for clearer navigation.' ) ); ?></li> |
| 174 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Improvement**: Admin left sidebar and full-screen mode preferences are now saved per user, while special setup and builder workflows can still enforce their required layout.' ) ); ?></li> |
| 175 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Fixes**: Improved Calendar preview saving, changeover rendering, legend refresh, tooltip settings, Setup Wizard routing, and Booking Listing email toggle persistence.' ) ); ?></li> |
| 176 |
</ul> |
| 177 |
</div> |
| 178 |
</div> |
| 179 |
|
| 180 |
</div> |
| 181 |
|
| 182 |
<?php |
| 183 |
|
| 184 |
$obj->expand_section_end( $section_param_arr ); |
| 185 |
} |
| 186 |
|
| 187 |
/** |
| 188 |
* What's New section for Booking Calendar 11.2 |
| 189 |
* |
| 190 |
* @param object $obj |
| 191 |
* |
| 192 |
* @return void |
| 193 |
*/ |
| 194 |
function wpbc_welcome_section_11_2( $obj ) { |
| 195 |
|
| 196 |
?> |
| 197 |
<hr/> |
| 198 |
<?php |
| 199 |
|
| 200 |
$section_param_arr = array( 'version_num' => '11.2', 'show_expand' => false ); |
| 201 |
|
| 202 |
$obj->expand_section_start( $section_param_arr ); |
| 203 |
// $obj->asset_path = 'http://beta/assets/'; // TODO: comment this in production. |
| 204 |
?> |
| 205 |
<div class="wpbc_wn_container"> |
| 206 |
|
| 207 |
<div class="wpbc_wn_section"> |
| 208 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Redesigned Setup Wizard' ) ); ?></h2> |
| 209 |
|
| 210 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 211 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 212 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.2/booking_calendar__setup_wizard__floating_setup_bar.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 213 |
</div> |
| 214 |
|
| 215 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 216 |
<ul> |
| 217 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Redesigned the initial **Setup Wizard** with a floating **Setup Bar** that guides users through configuration directly on the relevant Booking Calendar admin pages.' ) ); ?></li> |
| 218 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Step-by-step setup flow**: After choosing the booking type, the wizard opens the exact settings pages needed for form setup, date selection, availability, working time, color theme, and publishing.' ) ); ?></li> |
| 219 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Context-aware guidance**: The Setup Bar shows the current step, progress, Back / Continue / Finish controls, and clear instructions for what should be configured on each page.' ) ); ?></li> |
| 220 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Smarter page assistance**: Setup steps can automatically open, scroll to, and highlight the related settings section.' ) ); ?></li> |
| 221 |
</ul> |
| 222 |
</div> |
| 223 |
</div> |
| 224 |
|
| 225 |
|
| 226 |
<div class="wpbc_wn_section"> |
| 227 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Floating Setup Bar' ) ); ?></h2> |
| 228 |
|
| 229 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 230 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 231 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.2/booking_calendar__setup_wizard__move_setup_bar.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 232 |
</div> |
| 233 |
|
| 234 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 235 |
<ul> |
| 236 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added a floating **Setup Bar** available across Booking Calendar admin pages during setup.' ) ); ?></li> |
| 237 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Save-aware workflow**: Steps that require saving now keep the Continue button disabled until changes are saved.' ) ); ?></li> |
| 238 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Flexible positioning**: The bar can be collapsed, moved by drag and drop, reset to its default position, and automatically shifted away from right-side settings panels.' ) ); ?></li> |
| 239 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Reliable completion**: Finishing or skipping setup now correctly hides the Setup Bar across all Booking Calendar admin pages.' ) ); ?></li> |
| 240 |
</ul> |
| 241 |
</div> |
| 242 |
</div> |
| 243 |
|
| 244 |
|
| 245 |
<div class="wpbc_wn_section"> |
| 246 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Front-End Booking Form Popup' ) ); ?></h2> |
| 247 |
|
| 248 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 249 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 250 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.2/booking_calendar__open_popup.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 251 |
</div> |
| 252 |
|
| 253 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 254 |
<ul> |
| 255 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added front-end popup support for booking forms using shortcode parameters.' ) ); ?></li> |
| 256 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Popup booking form shortcode**: Use **[booking resource_id=1 popup=1]** to show a button that opens the booking form in a modal window.' ) ); ?></li> |
| 257 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Dedicated alias shortcode**: Added **[booking_popup]** as a shortcut for popup booking forms.' ) ); ?></li> |
| 258 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Customizable popup display**: Configure popup button text, popup title, custom CSS classes, modal class, and popup size.' ) ); ?></li> |
| 259 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Automatic assets loading**: Required popup JavaScript and CSS are loaded automatically on front-end pages.' ) ); ?></li> |
| 260 |
</ul> |
| 261 |
</div> |
| 262 |
</div> |
| 263 |
|
| 264 |
<div class="wpbc_wn_section" style="gap:1%"> |
| 265 |
|
| 266 |
<div class="wpbc_wn_col" style="flex: 1 1 48%;"> |
| 267 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Time Slots Availability Improvements' ) ); ?></h2> |
| 268 |
|
| 269 |
<ul> |
| 270 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Improvement**: Improved the **Create Booking for Selection** workflow in the Time Slots Availability popup.' ) ); ?></li> |
| 271 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **More reliable popup handoff**: The Add Booking popup is now validated before the Time Slots popup closes, preventing cases where no booking form appeared.' ) ); ?></li> |
| 272 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Better multi-date selections**: Dragged multi-date time intervals are now handled as explicit admin-selected time overrides during availability validation.' ) ); ?></li> |
| 273 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Cleaner JavaScript**: Fixed deprecated jQuery warnings in the Time Slots Availability popup.' ) ); ?></li> |
| 274 |
</ul> |
| 275 |
</div> |
| 276 |
|
| 277 |
<div class="wpbc_wn_col" style="flex: 1 1 48%;"> |
| 278 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Reliability and Sync Improvements' ) ); ?></h2> |
| 279 |
|
| 280 |
<ul> |
| 281 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Fix**: Fixed a PHP 8+ fatal error on the Form Builder page when malformed legacy custom form data was stored incorrectly.' ) ); ?></li> |
| 282 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Fix**: Improved Form Options Costs parsing for selectbox fields with quoted defaults. Available in Business Medium or higher.' ) ); ?></li> |
| 283 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Fix**: Add Booking now correctly loads the default custom booking form assigned to the selected booking resource. Available in Business Medium or higher.' ) ); ?></li> |
| 284 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Fix**: Fixed Early / Late Booking discount calculation so fixed form option costs are not incorrectly reduced to zero.' ) ); ?></li> |
| 285 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added the **Append extra day after imported checkout day** option for **.ics** import sync rules.' ) ); ?></li> |
| 286 |
</ul> |
| 287 |
</div> |
| 288 |
</div> |
| 289 |
|
| 290 |
</div> |
| 291 |
|
| 292 |
<?php |
| 293 |
|
| 294 |
$obj->expand_section_end( $section_param_arr ); |
| 295 |
} |
| 296 |
|
| 297 |
/** |
| 298 |
* What's New section for Booking Calendar 11.1 |
| 299 |
* |
| 300 |
* @param object $obj |
| 301 |
* |
| 302 |
* @return void |
| 303 |
*/ |
| 304 |
function wpbc_welcome_section_11_1( $obj ) { |
| 305 |
|
| 306 |
?> |
| 307 |
<hr/> |
| 308 |
<?php |
| 309 |
|
| 310 |
$section_param_arr = array( 'version_num' => '11.1', 'show_expand' => false ); |
| 311 |
|
| 312 |
$obj->expand_section_start( $section_param_arr ); |
| 313 |
// $obj->asset_path = 'http://beta/assets/'; // TODO: comment this in production. |
| 314 |
?> |
| 315 |
|
| 316 |
<div class="wpbc_wn_container"> |
| 317 |
|
| 318 |
<div class="wpbc_wn_section"> |
| 319 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Working Time' ) ); ?></h2> |
| 320 |
|
| 321 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 322 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 323 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.1/wp_booking_calendar_11_1_working_time_01.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 324 |
</div> |
| 325 |
|
| 326 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 327 |
<ul> |
| 328 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added **Working Time** settings to **Booking Calendar > Availability > General Availability**, allowing administrators to restrict time-based bookings to specific working hours.' ) ); ?></li> |
| 329 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Designed for time-based booking forms**: Working Time applies to booking forms that use **rangetime**, **start/end time**, or **start/duration time** fields.' ) ); ?></li> |
| 330 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Flexible schedule control**: Define default working hours for each weekday, then optionally set custom working time rules for specific booking resources.' ) ); ?></li> |
| 331 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Clear availability timeline**: Time outside working hours is shown in **Time Slots Availability** as read-only unavailable time, with links back to the related Working Time settings.' ) ); ?></li> |
| 332 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Cleaner front-end calendar display**: Dates limited only by Working Time keep their tooltip information, while the calendar avoids showing partial-booking dots when there are no real bookings or manually blocked time slots.' ) ); ?></li> |
| 333 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Better editing workflow**: When opening Working Time settings from the Time Slots Availability timeline, the General Availability page automatically expands and scrolls to the Working Time section.' ) ); ?></li> |
| 334 |
</ul> |
| 335 |
</div> |
| 336 |
</div> |
| 337 |
|
| 338 |
</div> |
| 339 |
<?php |
| 340 |
|
| 341 |
$obj->expand_section_end( $section_param_arr ); |
| 342 |
} |
| 343 |
|
| 344 |
/** |
| 345 |
* What's New section for Booking Calendar 11.0 |
| 346 |
* |
| 347 |
* @param object $obj |
| 348 |
* |
| 349 |
* @return void |
| 350 |
*/ |
| 351 |
function wpbc_welcome_section_11_0( $obj ) { |
| 352 |
|
| 353 |
?> |
| 354 |
<hr/> |
| 355 |
<?php |
| 356 |
|
| 357 |
$section_param_arr = array( 'version_num' => '11.0', 'show_expand' => false ); |
| 358 |
|
| 359 |
$obj->expand_section_start( $section_param_arr ); |
| 360 |
// $obj->asset_path = 'http://beta/assets/'; // TODO: comment this in production. |
| 361 |
?> |
| 362 |
<div class="wpbc_wn_container"> |
| 363 |
|
| 364 |
<div class="wpbc_wn_section"> |
| 365 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Time Slots Availability' ) ); ?></h2> |
| 366 |
|
| 367 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 368 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 369 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.0/wp_booking_calendar__availability__time_slots_01.gif' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 370 |
<!-- <img src="--><?php //echo esc_attr( $obj->section_img_url( '11.0/wp_booking_calendar__availability__time_slots_02.png' ) ); ?><!--" style="margin:10px 0;width:98%;" />--> |
| 371 |
</div> |
| 372 |
|
| 373 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 374 |
<ul> |
| 375 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added the **Time Slots Availability** page under **Booking Calendar > Availability**, allowing administrators to define unavailable time intervals for specific booking resources and date ranges.' ) ); ?></li> |
| 376 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Interactive timeline selection**: Select one or many days directly in the timeline, adjust start and end time, then block or unblock the selected interval.' ) ); ?></li> |
| 377 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Clear availability states**: The timeline now shows available, booked, unavailable, and full-day unavailable states in one place.' ) ); ?></li> |
| 378 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Finer control**: Work with visible time range controls, date range navigation arrows, and slot steps down to **5 minutes**.' ) ); ?></li> |
| 379 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Better long-range editing**: Sticky timeline headers and progress indicators make loading, blocking, unblocking, and saving easier to follow.' ) ); ?></li> |
| 380 |
</ul> |
| 381 |
</div> |
| 382 |
</div> |
| 383 |
|
| 384 |
|
| 385 |
<div class="wpbc_wn_section"> |
| 386 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Set Times Availability Popup' ) ); ?></h2> |
| 387 |
|
| 388 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 389 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 390 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.0/wp_booking_calendar_11_0_set_times_availability_popup.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 391 |
|
| 392 |
</div> |
| 393 |
|
| 394 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 395 |
<ul> |
| 396 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added a reusable **Set Times Availability** popup to the Booking Listing page, so unavailable time intervals can be managed without leaving the bookings workflow.' ) ); ?></li> |
| 397 |
<li><img src="<?php echo esc_attr( $obj->section_img_url( '11.0/wp_booking_calendar__add_booking _from__timeslots__availability_01.gif' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 398 |
<?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Create bookings from selected intervals**: Start a new booking directly from the selected time interval inside the Time Slots Availability popup.' ) ); ?></li> |
| 399 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Works across multiple days**: Select, block, unblock, and review unavailable intervals across a date range with booked and unavailable states visible.' ) ); ?></li> |
| 400 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Unavailable full-day reasons**: The popup can show days blocked by Days Availability, Season Availability, unavailable weekdays, unavailable time from current time, and limit available days from today settings.' ) ); ?></li> |
| 401 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Quick rule links**: Full-day unavailable timeline bars can link to the related availability settings page, helping administrators identify and adjust the rule that made a date unavailable.' ) ); ?></li> |
| 402 |
</ul> |
| 403 |
</div> |
| 404 |
</div> |
| 405 |
|
| 406 |
|
| 407 |
<div class="wpbc_wn_section"> |
| 408 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Faster Add Booking Popup' ) ); ?></h2> |
| 409 |
|
| 410 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 411 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 412 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.0/wp_booking_calendar_11_0_add_booking_popup.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 413 |
</div> |
| 414 |
|
| 415 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 416 |
<ul> |
| 417 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added a faster **Add Booking** popup to the Booking Listing and Timeline pages, so users can create bookings without leaving the current view.' ) ); ?></li> |
| 418 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Prefilled from the timeline**: Selected booking resource, date, start time, and end time are passed into the popup when creating a booking from a selected interval.' ) ); ?></li> |
| 419 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Choose the right form in place**: Select the booking resource and custom booking form directly inside the popup.' ) ); ?></li> |
| 420 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Edit in the same workflow**: Existing bookings can be opened in the popup, with a direct link to edit the selected booking form when needed.' ) ); ?></li> |
| 421 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Improved navigation**: The Add Booking page is now available under the Bookings section, and Booking Listing and Timeline include a clearer **New booking** quick-action button.' ) ); ?></li> |
| 422 |
</ul> |
| 423 |
</div> |
| 424 |
</div> |
| 425 |
|
| 426 |
|
| 427 |
<div class="wpbc_wn_section"> |
| 428 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'General Availability Settings' ) ); ?></h2> |
| 429 |
|
| 430 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 431 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 432 |
<img src="<?php echo esc_attr( $obj->section_img_url( '11.0/wp_booking_calendar_11_0_general_availability_settings_01.gif' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 433 |
</div> |
| 434 |
|
| 435 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 436 |
<ul> |
| 437 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added a **General Availability** settings page for defining global front-end availability rules across all calendars and booking resources.' ) ); ?></li> |
| 438 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Live calendar preview**: Review unavailable weekdays, availability limits from the current date, unavailable time from current time, and booking buffer effects before saving.' ) ); ?></li> |
| 439 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Fast settings workflow**: Save changes with AJAX, reset preview controls to defaults, and continue working in the same page layout.' ) ); ?></li> |
| 440 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Consistent admin design**: Uses the shared right-side palette layout from the Availability pages and setup wizard interfaces.' ) ); ?></li> |
| 441 |
</ul> |
| 442 |
</div> |
| 443 |
</div> |
| 444 |
|
| 445 |
|
| 446 |
<div class="wpbc_wn_section"> |
| 447 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Availability Accuracy and Reliability Fixes' ) ); ?></h2> |
| 448 |
|
| 449 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 450 |
<ul> |
| 451 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Fix**: Fixed calendar booking status detection, improving how the front-end calendar reads approved and pending booking statuses for capacity-based resources, including parent/child resources and change-over dates.' ) ); ?></li> |
| 452 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Fix**: Fixed availability calculation for Booking Form Builder forms with time-slot fields, so dates are marked as fully unavailable when all booking form time slots are already booked. (10.15.8.2)' ) ); ?></li> |
| 453 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Fix**: Fixed a fatal error on some hosts by reading the local PRO **meta.json** file directly instead of using WordPress FTP filesystem access.' ) ); ?></li> |
| 454 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Improvement**: Front-end booking form calendars should now reflect real availability more clearly across booked, pending, blocked, and change-over dates.' ) ); ?></li> |
| 455 |
</ul> |
| 456 |
</div> |
| 457 |
</div> |
| 458 |
|
| 459 |
</div> |
| 460 |
<?php |
| 461 |
|
| 462 |
$obj->expand_section_end( $section_param_arr ); |
| 463 |
} |
| 464 |
|
| 465 |
function wpbc_welcome_section_10_15( $obj ) { |
| 466 |
|
| 467 |
?> |
| 468 |
<hr/> |
| 469 |
<?php |
| 470 |
|
| 471 |
$section_param_arr = array( 'version_num' => '10.15', 'show_expand' => ! true ); |
| 472 |
|
| 473 |
$obj->expand_section_start( $section_param_arr ); |
| 474 |
|
| 475 |
// $obj->asset_path = 'http://beta/assets/'; // TODO: comment this in production. |
| 476 |
?> |
| 477 |
<div class="wpbc_wn_container"> |
| 478 |
|
| 479 |
<div class="wpbc_wn_section"> |
| 480 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'New Drag & Drop Booking Form Builder' ) ); ?></h2> |
| 481 |
|
| 482 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 483 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 484 |
<img src="<?php echo esc_attr( $obj->section_img_url( '10.15/wp_booking_calendar__form_builder_overview_02.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 485 |
</div> |
| 486 |
|
| 487 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 488 |
<ul> |
| 489 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Introduced the new **Drag & Drop Booking Form Builder** for visually creating booking forms without manually editing form code.' ) ); ?></li> |
| 490 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Build forms visually**: Drag fields into the canvas, arrange the layout, and see the result instantly in the live preview.' ) ); ?></li> |
| 491 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Faster and easier workflow**: Create modern booking forms without working with complex manual shortcodes.' ) ); ?></li> |
| 492 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Available in all versions**: Booking Calendar now supports **multiple custom booking form configurations** in all versions, including the Free version.' ) ); ?></li> |
| 493 |
</ul> |
| 494 |
</div> |
| 495 |
</div> |
| 496 |
|
| 497 |
|
| 498 |
<div class="wpbc_wn_section"> |
| 499 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Create Booking Forms, Contact Forms, and Inquiry Forms' ) ); ?></h2> |
| 500 |
|
| 501 |
<div class="wpbc_wn_col" style="flex: 1 1 48%;margin: 0 1% 0 0;"> |
| 502 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 503 |
<img src="<?php echo esc_attr( $obj->section_img_url( '10.15/wp_booking_calendar_10_15_contact_inquiry_forms_05.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 504 |
</div> |
| 505 |
|
| 506 |
<div class="wpbc_wn_col" style="flex: 1 1 48%;margin: 0 0 0 1%;"> |
| 507 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 508 |
<img src="<?php echo esc_attr( $obj->section_img_url( '10.15/wp_booking_calendar_10_15_contact_form_preview_01.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 509 |
</div> |
| 510 |
|
| 511 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 512 |
<ul> |
| 513 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **NEW**: Added support for **Contact Forms / Inquiry Forms / Request Forms** — the calendar is now optional.' ) ); ?></li> |
| 514 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Use Booking Calendar as a contact form alternative**: Create forms without booking dates and manage all submissions inside Booking Calendar.' ) ); ?></li> |
| 515 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Ready-to-use templates**: Start faster with predefined templates for booking, contact, and inquiry forms.' ) ); ?></li> |
| 516 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Flexible start**: Create a form from a template or begin with a blank canvas for full control.' ) ); ?></li> |
| 517 |
</ul> |
| 518 |
</div> |
| 519 |
</div> |
| 520 |
|
| 521 |
|
| 522 |
<div class="wpbc_wn_section"> |
| 523 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Powerful Visual Layout Builder' ) ); ?></h2> |
| 524 |
|
| 525 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 526 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 527 |
<img src="<?php echo esc_attr( $obj->section_img_url( '10.15/wp_booking_calendar__form_builder_02.gif' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 528 |
</div> |
| 529 |
|
| 530 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 531 |
<ul> |
| 532 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Drag & drop fields** from the Fields palette directly into the form canvas.' ) ); ?></li> |
| 533 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Live visual preview** while building and editing the form.' ) ); ?></li> |
| 534 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Rows and columns layout** for clean and structured form designs.' ) ); ?></li> |
| 535 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Nested sections** (up to 5 levels) for advanced multi-row and multi-column layouts.' ) ); ?></li> |
| 536 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Ready section layouts** with 1, 2, 3, or 4 columns.' ) ); ?></li> |
| 537 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Column resizing with visual resizers** for precise control of layout widths.' ) ); ?></li> |
| 538 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Multi-page forms** for creating step-by-step wizard-style booking forms.' ) ); ?></li> |
| 539 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Drag & drop sorting of sections** plus **Move Up / Move Down controls** for faster layout management.' ) ); ?></li> |
| 540 |
</ul> |
| 541 |
</div> |
| 542 |
</div> |
| 543 |
|
| 544 |
|
| 545 |
<div class="wpbc_wn_section"> |
| 546 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Smart Editing and Form Controls' ) ); ?></h2> |
| 547 |
|
| 548 |
<div class="wpbc_wn_col" style="flex: 1 1 48%;margin: 0 1% 0 0;"> |
| 549 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 550 |
<img src="<?php echo esc_attr( $obj->section_img_url( '10.15/wp_booking_calendar_10_15_sidebar_inspector_02.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 551 |
</div> |
| 552 |
|
| 553 |
<div class="wpbc_wn_col" style="flex: 1 1 48%;margin: 0 0 0 1%;"> |
| 554 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 555 |
<img src="<?php echo esc_attr( $obj->section_img_url( '10.15/wp_booking_calendar_10_15_field_limits_02.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 556 |
</div> |
| 557 |
|
| 558 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 559 |
<ul> |
| 560 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Right sidebar inspector**: Easily edit field and section settings in a clear visual interface.' ) ); ?></li> |
| 561 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Field usage limits**: The Builder automatically prevents adding one-time fields, such as the Calendar field, more than once.' ) ); ?></li> |
| 562 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Responsive-friendly column width control** with layout protection for more stable form structure.' ) ); ?></li> |
| 563 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Improved visual editing controls** for easier field, section, and layout management directly inside the canvas.' ) ); ?></li> |
| 564 |
</ul> |
| 565 |
</div> |
| 566 |
</div> |
| 567 |
|
| 568 |
|
| 569 |
<div class="wpbc_wn_section"> |
| 570 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Better Form Management and Reuse' ) ); ?></h2> |
| 571 |
|
| 572 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 573 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 574 |
<img src="<?php echo esc_attr( $obj->section_img_url( '10.15/wpbc_11_0_form_management_01.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 575 |
</div> |
| 576 |
|
| 577 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 578 |
<ul> |
| 579 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Predefined templates:** Start building your new booking form with ready-made templates.' ) ); ?></li> |
| 580 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Save and restore complete form layouts** including pages, sections, columns, and fields.' ) ); ?></li> |
| 581 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Duplicate existing form configurations** to create similar forms much faster.' ) ); ?></li> |
| 582 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Save As workflow**: Create a new form based on an existing layout and settings.' ) ); ?></li> |
| 583 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Flexible form configuration management** for creating, saving, loading, organizing, and previewing custom forms.' ) ); ?></li> |
| 584 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Form details management**: Set a custom form title, slug, description, and image.' ) ); ?></li> |
| 585 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Media library integration** for selecting a custom image for each form configuration.' ) ); ?></li> |
| 586 |
</ul> |
| 587 |
</div> |
| 588 |
</div> |
| 589 |
|
| 590 |
|
| 591 |
<div class="wpbc_wn_section"> |
| 592 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Preview, Import, and Flexible Workflow' ) ); ?></h2> |
| 593 |
|
| 594 |
<div class="wpbc_wn_col" style="flex: 1 1 48%;margin: 0 1% 0 0;"> |
| 595 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 596 |
<img src="<?php echo esc_attr( $obj->section_img_url( '10.15/wpbc_11_0_preview_page_01.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 597 |
</div> |
| 598 |
|
| 599 |
<div class="wpbc_wn_col" style="flex: 1 1 48%;margin: 0 0 0 1%;"> |
| 600 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 601 |
<img src="<?php echo esc_attr( $obj->section_img_url( '10.15/wp_booking_calendar_10_15_advanced_mode.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 602 |
</div> |
| 603 |
|
| 604 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 605 |
<ul> |
| 606 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Preview page / live front-end preview**: Test how the form looks and works before publishing it on your website.' ) ); ?></li> |
| 607 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Import existing legacy booking forms** into the new Builder for easier transition to the visual workflow.' ) ); ?></li> |
| 608 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Builder mode and Advanced Form mode**: Work visually or keep manual form configuration when needed.' ) ); ?></li> |
| 609 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Blank form creation in Builder mode** lets you start new forms immediately in the visual editor.' ) ); ?></li> |
| 610 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Section presets** help you insert commonly used layout structures faster.' ) ); ?></li> |
| 611 |
</ul> |
| 612 |
</div> |
| 613 |
</div> |
| 614 |
|
| 615 |
|
| 616 |
<div class="wpbc_wn_section"> |
| 617 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Important Note About the Beta Builder' ) ); ?></h2> |
| 618 |
|
| 619 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 620 |
<ul> |
| 621 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **This feature is currently in Beta** and can still be disabled at any time.' ) ); ?></li> |
| 622 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• To return to the previous legacy booking form configuration, go to **Form Builder > Settings** in the right sidebar and disable the **"Drag & Drop Form Builder"** option.' ) ); ?></li> |
| 623 |
</ul> |
| 624 |
</div> |
| 625 |
</div> |
| 626 |
|
| 627 |
</div> |
| 628 |
<?php |
| 629 |
|
| 630 |
$obj->expand_section_end( $section_param_arr ); |
| 631 |
} |
| 632 |
|
| 633 |
function wpbc_welcome_section_10_14( $obj ){ |
| 634 |
|
| 635 |
$section_param_arr = array( 'version_num' => '10.14', 'show_expand' => true ); |
| 636 |
|
| 637 |
$obj->expand_section_start( $section_param_arr ); |
| 638 |
|
| 639 |
|
| 640 |
// $obj->asset_path = 'http://beta/assets/'; // TODO: 2024-06-01 comment this |
| 641 |
|
| 642 |
|
| 643 |
// <editor-fold defaultstate="collapsed" desc=" = F R E E = " > |
| 644 |
// ----------------------------------------------------------------------------------------------------------------- |
| 645 |
// = F R E E = |
| 646 |
// ----------------------------------------------------------------------------------------------------------------- |
| 647 |
?> |
| 648 |
<div class="wpbc_wn_container"> |
| 649 |
<div class="wpbc_wn_section"> |
| 650 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Control start and end dates for booking and availability' ) ); ?></h2> |
| 651 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 652 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 653 |
<img src="<?php echo esc_attr( $obj->section_img_url( '10.14/wp_booking_calendar_elementor_advanced_01.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 654 |
<span><span style="font-size: 0.9em;font-style: italic;"><?php //echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Available in the Booking Calendar Business Small or higher versions' ) ); ?></span></span> |
| 655 |
</div> |
| 656 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 657 |
<ul> |
| 658 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Control which dates are shown!**: You can now control which dates are shown in the Booking Calendar by using two new shortcode parameters: **[booking resource_id=1 calendar_dates_start=\'2025-01-01\' calendar_dates_end=\'2025-12-31\']**' ) ); ?></li> |
| 659 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **New**: Ability to **set the start and end dates for the calendar** using shortcode parameters. Example: [booking resource_id=1 calendar_dates_start=\'2025-01-01\' calendar_dates_end=\'2025-12-31\' startmonth=\'2025-3\']' ) ); ?></li> |
| 660 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **New**: If startmonth is omitted, the calendar will now automatically use the month from calendar_dates_start as the initial display month. Example: [booking resource_id=1 calendar_dates_start=\'2025-01-01\' calendar_dates_end=\'2025-12-31\']' ) ); ?></li> |
| 661 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **New**: New: You can now **allow users to submit bookings for past dates**, as long as those dates are within the visible range set by calendar_dates_start and calendar_dates_end in the shortcode. Useful for administrative or backdated bookings. Shortcode Example: [booking resource_id=1 calendar_dates_start=\'2025-01-01\' calendar_dates_end=\'2025-12-31\']' ) ); ?></li> |
| 662 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **New**: Elementor native supports of these parameters calendar_dates_start=\'2025-01-01\' calendar_dates_end=\'2025-12-31\' in Advanced section.' ) ); ?></li> |
| 663 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Improvement**: When calendar_dates_start and calendar_dates_end are defined in the shortcode, the system skips checking availability from today, and instead starts from the defined calendar_dates_start.' ) ); ?></li> |
| 664 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Improvement**: To **enable the new Smart Phone Validation** feature introduced in the previous update, go to: WP Booking Calendar > Settings > Booking Form > Form Options and enable the "Smart Phone Validation" option. It is disabled by default.' ) ); ?></li> |
| 665 |
</ul> |
| 666 |
</div> |
| 667 |
</div> |
| 668 |
</div> |
| 669 |
<?php |
| 670 |
|
| 671 |
$obj->expand_section_end( $section_param_arr ); |
| 672 |
} |
| 673 |
|
| 674 |
function wpbc_welcome_section_10_13( $obj ){ |
| 675 |
|
| 676 |
$section_param_arr = array( 'version_num' => '10.13', 'show_expand' => true ); |
| 677 |
|
| 678 |
$obj->expand_section_start( $section_param_arr ); |
| 679 |
|
| 680 |
|
| 681 |
// $obj->asset_path = 'http://beta/assets/'; // TODO: 2024-06-01 comment this |
| 682 |
|
| 683 |
|
| 684 |
// <editor-fold defaultstate="collapsed" desc=" = F R E E = " > |
| 685 |
// ----------------------------------------------------------------------------------------------------------------- |
| 686 |
// = F R E E = |
| 687 |
// ----------------------------------------------------------------------------------------------------------------- |
| 688 |
?> |
| 689 |
<div class="wpbc_wn_container"> |
| 690 |
<div class="wpbc_wn_section"> |
| 691 |
<h2><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Smarter Bookings, Elementor Integration and Cleaner Interface' ) ); ?></h2> |
| 692 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 693 |
<h3><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '**Booking Calendar meets Elementor!**' ) ); ?></h3> |
| 694 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 695 |
<img src="<?php echo esc_attr( $obj->section_img_url( '10.13/wp_booking_calendar_elementor_01.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 696 |
<span><span style="font-size: 0.9em;font-style: italic;"><?php //echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Available in the Booking Calendar Business Small or higher versions' ) ); ?></span></span> |
| 697 |
</div> |
| 698 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 699 |
<ul> |
| 700 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Full Elementor Support!**: Design and customize your booking forms directly inside the Elementor editor—with real-time form previews and a built-in skin selector. No more shortcode guesswork—just drag, configure, and save!' ) ); ?></li> |
| 701 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Calendar Preloader:** We’ve added a smooth-loading preloader bar that prevents layout jumps on slower connections, ensuring a polished experience for your visitors.' ) ); ?></li> |
| 702 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **New Booking Form Template – Service Selection Wizard (Pro):** Perfect for appointment-based bookings: this template features a left-side service selector with a streamlined date/time step for faster, easier bookings.' ) ); ?></li> |
| 703 |
</ul> |
| 704 |
</div> |
| 705 |
</div> |
| 706 |
<hr class="wpbc_hr_dots"><?php // ---------------------------------------------------------------------- ?> |
| 707 |
<div class="wpbc_wn_section"> |
| 708 |
<div class="wpbc_wn_col" style="flex: 1 1 45%;margin: 10px 0;"> |
| 709 |
<h3><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '**Cleaner & More Intuitive Interface**' ) ); ?></h3> |
| 710 |
<ul> |
| 711 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Updated Sidebar Navigation:** All plugin menus now live in a single, collapsible sidebar—easier to navigate and quicker to access.' ) ); ?></li> |
| 712 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Visual Polish & UX Tweaks:** We’ve made subtle design upgrades across the board: improved calendar styling, better visual hierarchy, smarter warnings (e.g., duplicate calendar IDs), and more compact menu visuals in compact mode.' ) ); ?></li> |
| 713 |
</ul> |
| 714 |
</div> |
| 715 |
<div class="wpbc_wn_col" style="flex: 1 1 50%;margin: 0px 0;"> |
| 716 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 717 |
<img src="<?php echo esc_attr( $obj->section_img_url( '10.13/vertical_menu_01.png' ) ); ?>" style="margin:10px 0;width:98%;" /> |
| 718 |
<span><span style="font-size: 0.9em;font-style: italic;"><?php //echo wp_kses_post( wpbc_replace_to_strong_symbols( 'Available in the Booking Calendar Business Small or higher versions' ) ); ?></span></span> |
| 719 |
</div> |
| 720 |
</div> |
| 721 |
<hr class="wpbc_hr_dots"><?php // ---------------------------------------------------------------------- ?> |
| 722 |
<div class="wpbc_wn_section"> |
| 723 |
<div class="wpbc_wn_col" style="flex: 1 1 45%;margin: 10px 0;"> |
| 724 |
<h3><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '**Smart Phone Validation**' ) ); ?></h3> |
| 725 |
<ul> |
| 726 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Auto-Detect & Format Phone Fields:** Phone fields now automatically detect and format numbers based on the user’s input and locale. Start typing +1 and the field instantly formats to +1 000 000 0000 (USA); type +34 for Spain and get +34 000 000 0000.' ) ); ?></li> |
| 727 |
</ul> |
| 728 |
</div> |
| 729 |
<div class="wpbc_wn_col" style="flex: 1 1 50%;margin: 0px 0;"> |
| 730 |
<?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage ?> |
| 731 |
<img src="<?php echo esc_attr( $obj->section_img_url( '10.13/phone_validattion_01.png' ) ); ?>" style="margin:10px auto;max-width:600px;" /> |
| 732 |
</div> |
| 733 |
<div class="wpbc_wn_col" style="flex: 1 1 100%;margin: 0;"> |
| 734 |
<ul> |
| 735 |
<li><?php echo wp_kses_post( wpbc_replace_to_strong_symbols( '• **Built-In Intelligence – No Setup Required** We intelligently detect phone fields by name (e.g., “phone”, “fone”, “tel”, “mobile”, “telefono”, etc.) and apply the right mask and placeholder automatically—no third-party APIs needed. Only valid digits are allowed; unsupported characters are blocked instantly.' ) ); ?></li> |
| 736 |
</ul> |
| 737 |
</div> |
| 738 |
</div> |
| 739 |
|
| 740 |
</div> |
| 741 |
<?php |
| 742 |
|
| 743 |
$obj->expand_section_end( $section_param_arr ); |
| 744 |
} |
| 745 |
|