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-catalog-booking-resources / templates / resource-actions-wptpl.php

resource-actions-wptpl.php in Booking Calendar 11.9, at includes/page-catalog-booking-resources/templates/resource-actions-wptpl.php

35 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 * Booking Resource action-menu template.
4 *
5 * @package Booking Calendar
6 * @since 11.6.0
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12 ?>
13 <script type="text/html" id="tmpl-wpbc-booking-resource-actions">
14 <# if ( data.actions.length ) { #>
15 <div class="wpbc_ui_listing__actions wpbc_catalog_booking_resources__action_menu" data-wpbc-ui-catalog-action-menu data-wpbc-ui-catalog-action-item="{{ data.resource_id }}">
16 <button type="button" class="wpbc_ui_listing__actions_toggle" aria-haspopup="menu" aria-expanded="false" aria-controls="{{ data.menu_id }}" aria-label="{{ data.aria_label }}" data-wpbc-ui-catalog-action-toggle>
17 <span class="wpbc-bi-three-dots-vertical" aria-hidden="true"></span>
18 <span class="screen-reader-text">{{ data.aria_label }}</span>
19 </button>
20 <ul id="{{ data.menu_id }}" class="wpbc_ui_listing__actions_menu" role="menu" aria-label="{{ data.aria_label }}" data-wpbc-ui-catalog-action-menu-list hidden>
21 <# _.each( data.actions, function ( action ) { #>
22 <li role="none">
23 <button type="button" role="menuitem" tabindex="-1" class="wpbc_catalog_booking_resources__action {{ action.class_name }}" data-wpbc-ui-catalog-action-id="{{ action.id }}" data-wpbc-booking-resource-action="{{ action.id }}" data-wpbc-booking-resource-id="{{ data.resource_id }}"<# if ( action.keep_sidebar_open ) { #> data-wpbc-right-sidebar-keep-open="1"<# } #>>
24 <span>{{ action.label }}</span>
25 <span class="{{ action.icon }}" aria-hidden="true"></span>
26 </button>
27 </li>
28 <# } ); #>
29 </ul>
30 </div>
31 <# } else { #>
32 <span class="screen-reader-text">{{ data.empty_label }}</span><span aria-hidden="true">&mdash;</span>
33 <# } #>
34 </script>
35