fluent-booking
/
app
/
Services
/
Integrations
/
Elementor
/
Controls
/
FluentBookingCustomGroupSelect.php
FluentBookingCustomGroupSelect.php in Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution 1.7.0, at app/Services/Integrations/Elementor/Controls/FluentBookingCustomGroupSelect.php
| 1 | <?php |
| 2 | |
| 3 | class FluentBookingCustomGroupSelect extends \Elementor\Base_Control { |
| 4 | |
| 5 | public function get_type() { |
| 6 | return 'fcal_group_select'; |
| 7 | } |
| 8 | |
| 9 | protected function get_default_settings() { |
| 10 | return [ |
| 11 | 'label_block' => true, |
| 12 | 'options' => [], |
| 13 | ]; |
| 14 | } |
| 15 | |
| 16 | public function content_template() { |
| 17 | ?> |
| 18 | <div class="elementor-control-field"> |
| 19 | <label for="{{ data.controlUid }}" class="elementor-control-title">{{{ data.label }}}</label> |
| 20 | <# var options = data.options; #> |
| 21 | <div class="elementor-control-input-wrapper"> |
| 22 | <select class="fcal-group-select" id="{{ data.controlUid }}" data-setting="{{ data.name }}" name="{{ data.name }}"> |
| 23 | <# _.each( data.options, function( group_options, group_label ) { #> |
| 24 | <optgroup label="{{{ group_label }}}"> |
| 25 | <# _.each( group_options, function( label, value ) { #> |
| 26 | <option value="{{ value }}">{{{ label }}}</option> |
| 27 | <# }); #> |
| 28 | </optgroup> |
| 29 | <# }); #> |
| 30 | </select> |
| 31 | </div> |
| 32 | </div> |
| 33 | <?php |
| 34 | } |
| 35 | |
| 36 | } |
| 37 |