scopes
9 months ago
load_monthly_calendar_days_only.php
1 year ago
missing_resources.php
1 year ago
quick_actions.php
1 year ago
view.php
9 months ago
quick_actions.php
36 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var $agents_list array |
| 4 | * @var $services_list array |
| 5 | * @var $locations_list array |
| 6 | * @var $blocked_period OsOffPeriodModel |
| 7 | * @var $readable_start_date string |
| 8 | * @var $start_date OsWpDateTime |
| 9 | * |
| 10 | */ |
| 11 | ?> |
| 12 | <div class="latepoint-lightbox-heading"> |
| 13 | <h2><?php echo $readable_start_date; ?></h2> |
| 14 | </div> |
| 15 | <div class="latepoint-lightbox-content"> |
| 16 | <div class="quick-calendar-actions-wrapper <?php echo $blocked_period->is_new_record() ? '' : 'showing-settings'; ?>"> |
| 17 | <div class="quick-calendar-actions"> |
| 18 | <div class="quick-calendar-action-new-booking quick-calendar-action" <?php echo OsOrdersHelper::quick_order_btn_html( false, [ 'start_time' => $blocked_period->start_time, |
| 19 | 'agent_id' => $blocked_period->agent_id, |
| 20 | 'start_date' => $blocked_period->start_date, |
| 21 | 'location_id' => $blocked_period->location_id, |
| 22 | 'service_id' => $blocked_period->service_id |
| 23 | ] ); ?>><i class="latepoint-icon latepoint-icon-plus1"></i><span><?php esc_html_e( 'Create a Booking', 'latepoint' ); ?></span></div> |
| 24 | <div class="quick-calendar-action-slot-off quick-calendar-action"><i class="latepoint-icon latepoint-icon-clock"></i><span><?php esc_html_e( 'Block a Time Slot', 'latepoint' ); ?></span></div> |
| 25 | <div class="quick-calendar-action-day-off quick-calendar-action"><i class="latepoint-icon latepoint-icon-cancel"></i><span><?php esc_html_e( 'Set as Day Off', 'latepoint' ); ?></span></div> |
| 26 | </div> |
| 27 | <div class="quick-calendar-action-settings <?php echo $blocked_period->is_new_record() ? 'setting-day-off' : 'setting-slot-off'; ?>"> |
| 28 | <div class="quick-calendar-locked-feature"> |
| 29 | <h3><?php esc_html_e('Premium Feature', 'latepoint'); ?></h3> |
| 30 | <div><?php esc_html_e('This feature is only available in a Premium version.', 'latepoint'); ?></div> |
| 31 | <a href="#" class="latepoint-btn latepoint-btn-primary" <?php echo OsSettingsHelper::get_link_attributes_for_premium_features(); ?> target="blank"><span><?php esc_html_e('Unlock All Features', 'latepoint'); ?></span><i class="latepoint-icon latepoint-icon-arrow-right"></i></a> |
| 32 | </div> |
| 33 | <?php do_action( 'latepoint_quick_calendar_actions_settings', $blocked_period, $start_date, $readable_start_date, $agents_list, $services_list, $locations_list ); ?> |
| 34 | </div> |
| 35 | </div> |
| 36 | </div> |