PluginProbe
Booking Calendar / 11.9
Booking Calendar v11.9
11.9 11.8.4 11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 All 205 releases
booking / includes / page-setup-wizard / templates / step-booking-experience.php

step-booking-experience.php in Booking Calendar 11.9, at includes/page-setup-wizard/templates/step-booking-experience.php

97 lines 4.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Page 4 Booking Mode terminology chooser.
4 *
5 * @package Booking Calendar
6 * @var array<string,mixed> $template_context Authorized step context.
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 $step_data = $template_context['step_data'];
14 $selected_experience = $step_data['values']['booking_experience'];
15 ?>
16 <section class="wpbc_setup_wizard__step-content" aria-labelledby="wpbc-setup-wizard-step-title">
17 <header class="wpbc_setup_wizard__step-heading">
18 <h1 id="wpbc-setup-wizard-step-title"><?php esc_html_e( 'Choose your admin terminology', 'booking' ); ?></h1>
19 <p class="wpbc_setup_wizard__lead">
20 <?php esc_html_e( 'This changes names and navigation in your admin area.', 'booking' ); ?>
21 <span><?php esc_html_e( 'You can change the Booking Mode at any time from the top toolbar in the admin panel.', 'booking' ); ?></span>
22 </p>
23 </header>
24
25 <form id="wpbc-setup-wizard-step-form" novalidate>
26 <fieldset class="wpbc_setup_wizard__experience-fieldset" data-wpbc-setup-wizard-fields>
27 <legend class="screen-reader-text"><?php esc_html_e( 'Choose the terminology used in your Booking Calendar administration area', 'booking' ); ?></legend>
28 <div class="wpbc_setup_wizard__experience-grid wpbc_setup_wizard__mode-grid">
29 <?php foreach ( $step_data['experiences'] as $experience ) : ?>
30 <?php
31 $is_selected = $selected_experience === $experience['id'];
32 ?>
33 <label class="wpbc_setup_wizard__experience-card wpbc_setup_wizard__mode-card<?php echo $is_selected ? ' is-selected' : ''; ?>">
34 <span class="wpbc_setup_wizard__card-topline">
35 <span class="wpbc_setup_wizard__experience-choice">
36 <input class="screen-reader-text" type="radio" name="booking_experience" value="<?php echo esc_attr( $experience['id'] ); ?>"<?php checked( $is_selected ); ?> required data-wpbc-setup-wizard-field aria-describedby="wpbc-setup-wizard-booking-experience-error">
37 <span class="wpbc_setup_wizard__radio-mark" aria-hidden="true"></span>
38 <strong class="wpbc_setup_wizard__experience-title"><?php echo esc_html( $experience['title'] ); ?></strong>
39 </span>
40 <span class="wpbc_setup_wizard__selected-badge"<?php echo $is_selected ? '' : ' hidden'; ?>>
41 <i class="menu_icon icon-1x wpbc_icn_check" aria-hidden="true"></i>
42 <?php esc_html_e( 'Selected', 'booking' ); ?>
43 </span>
44 </span>
45 <span class="wpbc_setup_wizard__mode-preview" aria-hidden="true">
46 <span class="wpbc_setup_wizard__mode-preview-sidebar">
47 <span class="wpbc_setup_wizard__mode-preview-brand">
48 <?php
49 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Trusted SVG helper escapes its generated attributes.
50 echo wpbc_get_svg_logo_for_html(
51 array(
52 'svg_color' => '#fff',
53 'svg_color_alt' => '#fff',
54 'opacity' => '0.45',
55 'style_default' => 'background-repeat: no-repeat; background-position: center; display: inline-block; vertical-align: middle;',
56 'style_adjust' => 'background-size: 22px auto; width: 22px; height: 22px; margin-top: 0;',
57 'css_class' => 'wpbc_setup_wizard__mode-preview-logo',
58 )
59 );
60 ?>
61 <strong><?php esc_html_e( 'Booking Calendar', 'booking' ); ?></strong>
62 </span>
63 <span class="wpbc_setup_wizard__mode-preview-menu">
64 <?php foreach ( $experience['admin_navigation'] as $navigation_index => $navigation_item ) : ?>
65 <span class="<?php echo 0 === $navigation_index ? 'is-active' : ''; ?>">
66 <i class="menu_icon icon-1x <?php echo esc_attr( $navigation_item['icon'] ); ?>" aria-hidden="true"></i>
67 <?php echo esc_html( $navigation_item['label'] ); ?>
68 </span>
69 <?php endforeach; ?>
70 </span>
71 </span>
72 <span class="wpbc_setup_wizard__mode-preview-canvas">
73 <span></span><span></span><span></span><span></span>
74 </span>
75 </span>
76 <span class="wpbc_setup_wizard__card-copy">
77 <i class="menu_icon icon-1x wpbc_icn_bar_chart" aria-hidden="true"></i>
78 <span class="wpbc_setup_wizard__card-copy-text">
79 <strong><?php esc_html_e( 'Your dashboard will use', 'booking' ); ?></strong>
80 <span><?php echo esc_html( $experience['dashboard_uses'] ); ?></span>
81 </span>
82 </span>
83 <span class="wpbc_setup_wizard__card-copy">
84 <i class="menu_icon icon-1x wpbc_icn_groups" aria-hidden="true"></i>
85 <span class="wpbc_setup_wizard__card-copy-text">
86 <strong><?php esc_html_e( 'Best for', 'booking' ); ?></strong>
87 <span><?php echo esc_html( $experience['best_for'] ); ?></span>
88 </span>
89 </span>
90 </label>
91 <?php endforeach; ?>
92 </div>
93 <span class="wpbc_setup_wizard__field-error wpbc_setup_wizard__field-error--group" id="wpbc-setup-wizard-booking-experience-error" data-wpbc-setup-wizard-error-for="booking_experience"></span>
94 </fieldset>
95 </form>
96 </section>
97