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-appointment-services / templates / catalog / cards-header-wptpl.php

cards-header-wptpl.php in Booking Calendar 11.9, at includes/page-appointment-services/templates/catalog/cards-header-wptpl.php

34 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Appointment Services cards sorting header WP template.
4 *
5 * Cards do not have table column headings, so this presentation-only header
6 * keeps select-all-visible and the same allow-listed sorting choices available
7 * in every layout.
8 *
9 * @package Booking Calendar
10 * @since 11.6.0
11 */
12
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16 ?>
17 <script type="text/html" id="tmpl-wpbc-appointment-services-cards-header">
18 <div class="wpbc_appointment_services__cards_header_controls">
19 <label class="wpbc_appointment_services__cards_select_all">
20 <input type="checkbox" data-wpbc-ui-catalog-select-all>
21 <span>{{ data.select_all_label }}</span>
22 </label>
23 <nav class="wpbc_appointment_services__cards_sort" aria-label="{{ data.i18n.sort_services }}">
24 <span>{{ data.i18n.sort_by }}</span>
25 <# _.each( data.columns, function ( column ) { if ( ! column.sort_key ) { return; } #>
26 <a href="#" class="wpbc_ui_listing__sort_link<# if ( column.is_sorted ) { #> is-active<# } #>" data-wpbc-ui-catalog-sort="{{ column.sort_key }}"<# if ( column.is_sorted ) { #> aria-current="true"<# } #>>
27 <span>{{ column.label }}</span>
28 <i class="wpbc_ui_listing__sort_icon {{ column.sort_icon }}" aria-hidden="true"></i>
29 </a>
30 <# } ); #>
31 </nav>
32 </div>
33 </script>
34