| @@ -1,18 +1,20 @@ | ||
| 1 | 1 | <?php |
| 2 | - /** | |
| 3 | - * @var $theme | |
| 4 | - * @var $calenderEvent | |
| 5 | - */ | |
| 6 | - | |
| 7 | - defined( 'ABSPATH' ) || exit; | |
| 2 | +defined( 'ABSPATH' ) || exit; | |
| 8 | 3 | |
| 9 | - $mode = ''; | |
| 10 | - if ($theme == 'dark') { | |
| 11 | - $mode = 'fcal-dark-mode'; | |
| 12 | - } else if ($theme == 'light') { | |
| 13 | - $mode = 'fcal-light-mode'; | |
| 14 | - } | |
| 4 | +use FluentBooking\App\Models\CalendarSlot; | |
| 5 | + | |
| 6 | +/** | |
| 7 | + * @var string $theme | |
| 8 | + * @var CalendarSlot $calenderEvent | |
| 9 | + */ | |
| 10 | + | |
| 11 | +$mode = ''; | |
| 12 | +if ($theme == 'dark') { | |
| 13 | + $mode = 'fcal-dark-mode'; | |
| 14 | +} else if ($theme == 'light') { | |
| 15 | + $mode = 'fcal-light-mode'; | |
| 16 | +} | |
| 15 | 17 | ?> |
| 16 | 18 | <div class="fcal_cal_wrap <?php echo esc_attr($mode); ?>"> |
| 17 | 19 | <div class="fluent_booking_app" data-calendar_id="<?php echo (int)$calenderEvent->calendar_id; ?>" |
| 18 | 20 | data-event_id="<?php echo (int)$calenderEvent->id; ?>"></div> |
| @@ -17,4 +19,11 @@ | ||
| 17 | 19 | <div class="fluent_booking_app" data-calendar_id="<?php echo (int)$calenderEvent->calendar_id; ?>" |
| 18 | 20 | data-event_id="<?php echo (int)$calenderEvent->id; ?>"></div> |
| 19 | 21 | <?php do_action('fluent_booking/short_code_render', $calenderEvent); ?> |
| 20 | 22 | </div> |
| 23 | + | |
| 24 | +<style> | |
| 25 | + .fcal_phone_wrapper .flag { | |
| 26 | + background: url(<?php echo esc_url(\FluentBooking\App\App::getInstance()['url.assets'].'images/flags_responsive.png'); ?>) no-repeat; | |
| 27 | + background-size: 100%; | |
| 28 | + } | |
| 29 | +</style> | |