diff --git a/modules/wkabouthotelblock/views/js/WkAboutHotelBlockFront.js b/modules/wkabouthotelblock/views/js/WkAboutHotelBlockFront.js index d934449b0..b9c657ac6 100644 --- a/modules/wkabouthotelblock/views/js/WkAboutHotelBlockFront.js +++ b/modules/wkabouthotelblock/views/js/WkAboutHotelBlockFront.js @@ -34,13 +34,21 @@ $(document).ready(function(){ responsive: {576: {items: 2}}, autoHeight:true, autoplay: htlInteriorSliderAutoplay, - autoplaySpeed:1000, + autoplaySpeed: 500, + smartSpeed: 500, autoplayTimeout: htlInteriorSliderInterval, autoplayHoverPause:true, responsiveClass:true, rtl: language_is_rtl }); + $('.htlInterior-owlCarousel .owl-carousel').on('translated.owl.carousel mouseleave', function() { + var owl = $(this).data('owl.carousel'); + if (owl && owl.settings.autoplay && owl._plugins.autoplay && !owl._plugins.autoplay._paused) { + owl._plugins.autoplay._setAutoPlayInterval(); + } + }); + $('.interiorbox').on('mouseenter', function(){ $(this).find('div.interiorHoverBlockWrapper').show(); }); diff --git a/modules/wkhotelroom/controllers/admin/AdminHotelRoomModuleSettingController.php b/modules/wkhotelroom/controllers/admin/AdminHotelRoomModuleSettingController.php index 689d4d4aa..24dc1d1dd 100644 --- a/modules/wkhotelroom/controllers/admin/AdminHotelRoomModuleSettingController.php +++ b/modules/wkhotelroom/controllers/admin/AdminHotelRoomModuleSettingController.php @@ -66,7 +66,7 @@ class AdminHotelRoomModuleSettingController extends ModuleAdminController 'hint' => $this->l('Enter a description for the property rooms block.'), ), 'HOTEL_ROOM_DISPLAY_PROPERTY' => array( - 'title' => $this->l('Display property name and city'), + 'title' => $this->l('Property location'), 'cast' => 'intval', 'type' => 'bool', 'default' => '0', diff --git a/modules/wkhotelroom/views/css/WkHotelRoomBlockFront.css b/modules/wkhotelroom/views/css/WkHotelRoomBlockFront.css index 7942dea92..8ffc0d805 100644 --- a/modules/wkhotelroom/views/css/WkHotelRoomBlockFront.css +++ b/modules/wkhotelroom/views/css/WkHotelRoomBlockFront.css @@ -134,6 +134,13 @@ a.htlRoomTypeBookNow { margin: 0 0 12px; font-size: 22px; } +.htlRoomTypeNameText a:focus, +.htlRoomTypeNameText a:active, +.htlRoomCardImg:focus, +.htlRoomTypeBookNow:focus { + outline: none; + text-decoration: none; +} .htlRoomCardFeatured { padding: 12px 0; overflow: hidden; diff --git a/modules/wkhotelroom/views/js/WkHotelRoomBlockFront.js b/modules/wkhotelroom/views/js/WkHotelRoomBlockFront.js index 91fca4bdb..6de1d6476 100644 --- a/modules/wkhotelroom/views/js/WkHotelRoomBlockFront.js +++ b/modules/wkhotelroom/views/js/WkHotelRoomBlockFront.js @@ -91,7 +91,8 @@ $(document).ready(function() { dots: htlRoomSliderDots, autoplay: htlRoomSliderAutoplay, autoplayTimeout: htlRoomSliderInterval, - autoplaySpeed: 1000, + autoplaySpeed: 500, + smartSpeed: 500, autoplayHoverPause: true, margin: 24, items: 1, @@ -101,6 +102,13 @@ $(document).ready(function() { 992: { items: 3 } } }); + + $('.htlRoom-owlCarousel .owl-carousel').on('translated.owl.carousel mouseleave', function() { + var owl = $(this).data('owl.carousel'); + if (owl && owl.settings.autoplay && owl._plugins.autoplay && !owl._plugins.autoplay._paused) { + owl._plugins.autoplay._setAutoPlayInterval(); + } + }); // fonts and icons can change the widths after the page is shown $(window).on('load', function() { fitRoomCards($('.htlRoom-owlCarousel .owl-carousel')); diff --git a/modules/wkhotelroom/views/templates/hook/hotelRoomDisplayBlock.tpl b/modules/wkhotelroom/views/templates/hook/hotelRoomDisplayBlock.tpl index 4871fc517..3e2989d8d 100644 --- a/modules/wkhotelroom/views/templates/hook/hotelRoomDisplayBlock.tpl +++ b/modules/wkhotelroom/views/templates/hook/hotelRoomDisplayBlock.tpl @@ -53,7 +53,7 @@ {/block}
{$roomDisplay.name|escape:'htmlall':'UTF-8'}
+{$roomDisplay.name|escape:'htmlall':'UTF-8'}
{if isset($roomDisplay.property_name) && $roomDisplay.property_name}{$roomDisplay.property_name|escape:'htmlall':'UTF-8'}{if isset($roomDisplay.property_location) && $roomDisplay.property_location}, {$roomDisplay.property_location|escape:'htmlall':'UTF-8'}{/if}