PluginProbe
Booking Calendar / 11.7
Booking Calendar v11.7
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-appointment-services / templates / catalog / provider-labels-wptpl.php

provider-labels-wptpl.php in Booking Calendar 11.7, at includes/page-appointment-services/templates/catalog/provider-labels-wptpl.php

31 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Appointment Service Provider-labels WP template.
4 *
5 * Presents only Provider identity and availability links already authorized
6 * and sanitized by the Service DTO.
7 *
8 * @package Booking Calendar
9 * @since 11.6.0
10 */
11 if ( ! defined( 'ABSPATH' ) ) { exit; }
12 ?>
13 <script type="text/html" id="tmpl-wpbc-appointment-service-provider-labels">
14 <# if ( data.providers.length ) { var visible_providers = data.providers.slice( 0, data.max_visible || 3 ); #>
15 <div class="wpbc_appointment_services__provider_stack">
16 <# _.each( visible_providers, function ( provider ) { #>
17 <# if ( provider.availability_url ) { #>
18 <a class="wpbc_appointment_services__provider_avatar<# if ( ! provider.has_weekly_availability ) { #> has-no-availability<# } #>" href="{{ provider.availability_url }}" title="{{ provider.title }}" aria-label="{{ provider.title }}">
19 <# if ( provider.avatar_url ) { #><img src="{{ provider.avatar_url }}" alt="" loading="lazy"><# } else { #>{{ provider.initials }}<# } #>
20 </a>
21 <# } else { #>
22 <span class="wpbc_appointment_services__provider_avatar<# if ( ! provider.has_weekly_availability ) { #> has-no-availability<# } #>" title="{{ provider.title }}" aria-label="{{ provider.title }}">
23 <# if ( provider.avatar_url ) { #><img src="{{ provider.avatar_url }}" alt="" loading="lazy"><# } else { #>{{ provider.initials }}<# } #>
24 </span>
25 <# } #>
26 <# } ); #>
27 <# if ( data.providers.length > visible_providers.length ) { #><span class="wpbc_appointment_services__provider_more" title="{{ data.more_label }}">+{{ data.providers.length - visible_providers.length }}</span><# } #>
28 </div>
29 <# } else { #><span class="wpbc_appointment_services__no_provider">{{ data.empty_label }}</span><# } #>
30 </script>
31