Fixed responsive design issues for proprties list, renamed properties controller to our properties controller
This commit is contained in:
@@ -1192,7 +1192,7 @@ class FrontControllerCore extends Controller
|
||||
'token' => Tools::getToken(),
|
||||
'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,
|
||||
'content_only' => (int)Tools::getValue('content_only'),
|
||||
'WK_DISPLAY_OUR_HOTEL_TAB_IN_HEADER' => Configuration::get('WK_DISPLAY_OUR_HOTEL_TAB_IN_HEADER'),
|
||||
'WK_DISPLAY_PROPERTIES_LINK_IN_HEADER' => Configuration::get('WK_DISPLAY_PROPERTIES_LINK_IN_HEADER'),
|
||||
));
|
||||
|
||||
$this->context->smarty->assign($this->initLogoAndFavicon());
|
||||
|
||||
@@ -286,7 +286,7 @@ class ContactControllerCore extends FrontController
|
||||
$shopAddress = '';
|
||||
$shopAddress_obj = $objShop->getAddress();
|
||||
if (isset($shopAddress_obj) && $shopAddress_obj instanceof Address) {
|
||||
$shopAddress = AddressFormat::generateAddress($shopAddress_obj, array(), ' - ', ' ');
|
||||
$shopAddress = AddressFormat::generateAddress($shopAddress_obj, array(), ', ', ' ');
|
||||
}
|
||||
|
||||
$gblHtlAddress = $shopAddress;
|
||||
@@ -317,12 +317,12 @@ class ContactControllerCore extends FrontController
|
||||
|
||||
$contactKey = md5(uniqid(microtime(), true));
|
||||
$this->context->cookie->__set('contactFormKey', $contactKey);
|
||||
$displayHotelMap = Configuration::get('WK_CONTACT_DISPLAY_HOTEL_MAP');
|
||||
$displayHotelMap = Configuration::get('WK_DISPLAY_CONTACT_PAGE_GOOLGE_MAP');
|
||||
$this->context->smarty->assign(
|
||||
array(
|
||||
'hotelsInfo' => $hotelsInfo,
|
||||
'viewOnMap' => Configuration::get('WK_GOOGLE_ACTIVE_MAP'),
|
||||
'displayHotels' => Configuration::get('WK_CONTACT_DISPLAY_HOTEL_LIST'),
|
||||
'displayHotels' => Configuration::get('WK_DISPLAY_CONTACT_PAGE_HOTEL_LIST'),
|
||||
'gblHtlPhone' => $gblHtlPhone,
|
||||
'gblHtlEmail' => $gblHtlEmail,
|
||||
'displayHotelMap' => $displayHotelMap,
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
|
||||
*/
|
||||
|
||||
class PropertiesControllerCore extends FrontController
|
||||
class OurPropertiesControllerCore extends FrontController
|
||||
{
|
||||
public $php_self = 'properties';
|
||||
public $php_self = 'our-properties';
|
||||
|
||||
/**
|
||||
* Assign template vars related to page content
|
||||
@@ -38,29 +38,28 @@ class PropertiesControllerCore extends FrontController
|
||||
$hotelsInfo = array();
|
||||
$hotelLocationArray = 0;
|
||||
$pageLimit = 0;
|
||||
$displayHotelMap = Configuration::get('WK_PROPERTIES_DISPLAY_HOTEL_MAP');
|
||||
$displayHotelMap = Configuration::get('WK_DISPLAY_PROPERTIES_PAGE_GOOGLE_MAP');
|
||||
if (Module::isInstalled('hotelreservationsystem') && Module::isEnabled('hotelreservationsystem')) {
|
||||
$objModule = Module::getInstanceByName('hotelreservationsystem');
|
||||
$objHotelInfo = new HotelBranchInformation();
|
||||
if ($hotelsInfo = $objHotelInfo->hotelBranchesInfo(false, 1, 1)) {
|
||||
foreach ($hotelsInfo as &$hotel) {
|
||||
$hotelIconDefault = $this->context->link->getMediaLink($objModule->getPathUri().'views/img/Slices/hotel-default-icon.png');
|
||||
foreach ($hotelsInfo as $hotelKey => $hotel) {
|
||||
if (isset($hotel['id_cover_img'])
|
||||
&& $hotel['id_cover_img']
|
||||
&& Validate::isLoadedObject(
|
||||
$objHotelImage = new HotelImage($hotel['id_cover_img'])
|
||||
)
|
||||
&& Validate::isLoadedObject($objHotelImage = new HotelImage($hotel['id_cover_img']))
|
||||
) {
|
||||
$htlImgLink = $this->context->link->getMediaLink($objHotelImage->getImageLink($hotel['id_cover_img'], ImageType::getFormatedName('medium')));
|
||||
if ((bool)Tools::file_get_contents($htlImgLink)) {
|
||||
$hotel['image_url'] = $htlImgLink;
|
||||
$hotelsInfo[$hotelKey]['image_url'] = $htlImgLink;
|
||||
} else {
|
||||
$hotel['image_url'] = $this->context->link->getMediaLink($objModule->getPathUri().'views/img/Slices/hotel-default-icon.png');
|
||||
$hotelsInfo[$hotelKey]['image_url'] = $hotelIconDefault;
|
||||
}
|
||||
} else {
|
||||
$hotel['image_url'] = $this->context->link->getMediaLink($objModule->getPathUri().'views/img/Slices/hotel-default-icon.png');
|
||||
$hotelsInfo[$hotelKey]['image_url'] = $hotelIconDefault;
|
||||
}
|
||||
|
||||
$hotel['view_rooms_link'] = $this->context->link->getCategoryLink(
|
||||
$hotelsInfo[$hotelKey]['view_rooms_link'] = $this->context->link->getCategoryLink(
|
||||
new Category($hotel['id_category'], $this->context->language->id),
|
||||
null,
|
||||
$this->context->language->id
|
||||
@@ -69,10 +68,9 @@ class PropertiesControllerCore extends FrontController
|
||||
|
||||
// To store max number pages.
|
||||
$pageLimit = ceil(count($hotelsInfo)/10);
|
||||
|
||||
if (!($page = Tools::getValue('pagination'))) {
|
||||
$page = 1;
|
||||
} else if (!$pageLimit || ($page > $pageLimit)) {
|
||||
if (!($page = Tools::getValue('pagination'))
|
||||
|| (!$pageLimit || ($page > $pageLimit))
|
||||
) {
|
||||
$page = 1;
|
||||
}
|
||||
|
||||
@@ -133,18 +131,18 @@ class PropertiesControllerCore extends FrontController
|
||||
'viewOnMap' => Configuration::get('WK_GOOGLE_ACTIVE_MAP'),
|
||||
'displayHotelMap' => $displayHotelMap,
|
||||
'WK_HTL_SHORT_DESC' => Configuration::get('WK_HTL_SHORT_DESC', $this->context->language->id),
|
||||
'currentIndex' => $this->context->link->getPageLink('properties')
|
||||
'currentIndex' => $this->context->link->getPageLink('our-properties')
|
||||
)
|
||||
);
|
||||
|
||||
$this->setTemplate(_PS_THEME_DIR_.'properties.tpl');
|
||||
$this->setTemplate(_PS_THEME_DIR_.'our-properties.tpl');
|
||||
}
|
||||
|
||||
public function setMedia()
|
||||
{
|
||||
parent::setMedia();
|
||||
$this->addJS(_THEME_JS_DIR_.'properties.js');
|
||||
$this->addCSS(_THEME_CSS_DIR_.'properties.css');
|
||||
$this->addJS(_THEME_JS_DIR_.'our-properties.js');
|
||||
$this->addCSS(_THEME_CSS_DIR_.'our-properties.css');
|
||||
// GOOGLE MAP
|
||||
if (($PS_API_KEY = Configuration::get('PS_API_KEY')) && Configuration::get('WK_GOOGLE_ACTIVE_MAP')) {
|
||||
Media::addJsDef(
|
||||
@@ -152,6 +150,7 @@ class PropertiesControllerCore extends FrontController
|
||||
'PS_STORES_ICON' => $this->context->link->getMediaLink(_PS_IMG_.Configuration::get('PS_STORES_ICON')),
|
||||
)
|
||||
);
|
||||
|
||||
$this->addJS(
|
||||
'https://maps.googleapis.com/maps/api/js?key='.$PS_API_KEY.
|
||||
'&libraries=places&language='.$this->context->language->iso_code.'®ion='.$this->context->country->iso_code
|
||||
@@ -148,8 +148,8 @@
|
||||
<page>products-comparison</page>
|
||||
<configurable>1</configurable>
|
||||
</meta>
|
||||
<meta id="properties">
|
||||
<page>properties</page>
|
||||
<meta id="our-properties">
|
||||
<page>our-properties</page>
|
||||
<configurable>1</configurable>
|
||||
</meta>
|
||||
</entities>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Our Properties</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Credit slip</title>
|
||||
|
||||
@@ -126,11 +126,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-slip</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<title>আমাদের সম্পত্তি</title>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>আমাদের সম্পত্তিসমূহ</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id='order' id_shop='1'>
|
||||
<title>অর্ডার </title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>acompanhar-meu-pedido</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<title>Hon tiez</title>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Nossas propriedades</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id='order-slip' id_shop='1'>
|
||||
<title>Nota do pedido</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Naše nemovitosti</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Dobropis</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>bestellungsverfolgung</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Unsere Immobilien</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Bestellschein</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Our Properties</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Credit slip</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>seguimiento-pedido</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Nuestras propiedades</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id='order-slip' id_shop='1'>
|
||||
<title>Albarán</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>املاک ما</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>رسید سفارش</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>suivi-commande</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Nos propriétés</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id='order-slip' id_shop='1'>
|
||||
<title>Avoirs</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>מעקב-הזמנות</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>הנכסים שלנו</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>שוברי הזמנה</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<title>Our hotels</title>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Our Properties</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Credit slip</title>
|
||||
|
||||
@@ -126,11 +126,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-slip</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<title>Our hotels</title>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Our Properties</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order" id_shop="1">
|
||||
<title>Order</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>pantau-order</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Properti kami</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id='order-slip' id_shop='1'>
|
||||
<title>Slip order</title>
|
||||
|
||||
@@ -126,11 +126,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>buono-ordine</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Le nostre proprietà</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id='order' id_shop='1'>
|
||||
<title>Ordine</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<title>Our hotels</title>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Our Properties</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Credit slip</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<title>Our hotels</title>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Our Properties</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Order slip</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<title>Our hotels</title>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Our Properties</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Order slip</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>sledzenie-zamowienia</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Nasze nieruchomości</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Pokwitowania</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>acompanhar-encomenda</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Nossas propriedades</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Nota de Encomenda</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>returnari</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Proprietățile noastre</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Bon de comandă</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Наши объекты</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Бланк заказа</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<title>Our hotels</title>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Our Properties</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Credit slip</title>
|
||||
|
||||
@@ -114,11 +114,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>my-account</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<title>Our hotels</title>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Our Properties</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-follow" id_shop="1">
|
||||
<title>Order follow</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<title>Our hotels</title>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Our Properties</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Credit slip</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>我們的物業</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>訂購單</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<title>Tài sản của chúng tôi</title>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Các bất động sản của chúng tôi</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Phiếu tín dụng</title>
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
<keywords/>
|
||||
<url_rewrite>order-follow</url_rewrite>
|
||||
</meta>
|
||||
<meta id='properties' id_shop='1'>
|
||||
<title>Our hotels</title>
|
||||
<meta id='our-properties' id_shop='1'>
|
||||
<title>Our Properties</title>
|
||||
<description/>
|
||||
<keywords/>
|
||||
<url_rewrite>properties</url_rewrite>
|
||||
<url_rewrite>our-properties</url_rewrite>
|
||||
</meta>
|
||||
<meta id="order-slip" id_shop="1">
|
||||
<title>Order slip</title>
|
||||
|
||||
@@ -149,37 +149,6 @@ class WkCustomNavigationLink extends ObjectModel
|
||||
|
||||
public function insertDemoData($populateData = null)
|
||||
{
|
||||
//insert home link to the list
|
||||
$languages = Language::getLanguages(false);
|
||||
$objCustomNavigationLink = new WkCustomNavigationLink();
|
||||
foreach ($languages as $language) {
|
||||
$objCustomNavigationLink->name[$language['id_lang']] = 'Home';
|
||||
}
|
||||
$objCustomNavigationLink->position = $this->getHigherPosition();
|
||||
$objCustomNavigationLink->id_cms = 0;
|
||||
$objCustomNavigationLink->show_at_navigation = 1;
|
||||
$objCustomNavigationLink->show_at_footer = 0;
|
||||
$objCustomNavigationLink->active = 1;
|
||||
$objCustomNavigationLink->is_custom_link = 0;
|
||||
$objCustomNavigationLink->link = 'index';
|
||||
$objCustomNavigationLink->save();
|
||||
|
||||
$objCustomNavigationLink = new WkCustomNavigationLink();
|
||||
foreach ($languages as $language) {
|
||||
$objCustomNavigationLink->name[$language['id_lang']] = 'Our hotels';
|
||||
}
|
||||
|
||||
$https_link = (Tools::usingSecureMode() && Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://';
|
||||
$objLink = new Link($https_link, $https_link);
|
||||
$objCustomNavigationLink->position = $this->getHigherPosition();
|
||||
$objCustomNavigationLink->id_cms = 0;
|
||||
$objCustomNavigationLink->show_at_navigation = 1;
|
||||
$objCustomNavigationLink->show_at_footer = 0;
|
||||
$objCustomNavigationLink->active = 1;
|
||||
$objCustomNavigationLink->link = $objLink->getPageLink('properties');
|
||||
$objCustomNavigationLink->is_custom_link = 1;
|
||||
$objCustomNavigationLink->save();
|
||||
|
||||
// enter modules links
|
||||
$modsElems = array();
|
||||
// if module is installing or resetting
|
||||
@@ -206,51 +175,86 @@ class WkCustomNavigationLink extends ObjectModel
|
||||
}
|
||||
}
|
||||
|
||||
//insert home link to the list
|
||||
$languages = Language::getLanguages(false);
|
||||
$https_link = (Tools::usingSecureMode() && Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://';
|
||||
$objLink = new Link($https_link, $https_link);
|
||||
|
||||
$navigationLinks = array(
|
||||
array(
|
||||
'name' => 'Home',
|
||||
'id_cms' => 0,
|
||||
'show_at_navigation' => 1,
|
||||
'show_at_footer' => 0,
|
||||
'is_custom_link' => 0,
|
||||
'link' => 'index',
|
||||
),
|
||||
array(
|
||||
'name' => 'Our Properties',
|
||||
'id_cms' => 0,
|
||||
'show_at_navigation' => 1,
|
||||
'show_at_footer' => 0,
|
||||
'is_custom_link' => 1,
|
||||
'link' => $objLink->getPageLink('our-properties'),
|
||||
),
|
||||
);
|
||||
|
||||
if ($modsElems) {
|
||||
$indexLink = Context::getContext()->shop->getBaseURI();
|
||||
foreach ($modsElems as $name => $modElm) {
|
||||
$objCustomNavigationLink = new WkCustomNavigationLink();
|
||||
foreach ($languages as $language) {
|
||||
$objCustomNavigationLink->name[$language['id_lang']] = $name;
|
||||
}
|
||||
$objCustomNavigationLink->position = $this->getHigherPosition();
|
||||
$objCustomNavigationLink->id_cms = 0;
|
||||
$objCustomNavigationLink->show_at_navigation = 1;
|
||||
$objCustomNavigationLink->show_at_footer = 0;
|
||||
$objCustomNavigationLink->active = 1;
|
||||
$objCustomNavigationLink->link = $indexLink.'#'.$modElm;
|
||||
$objCustomNavigationLink->is_custom_link = 1;
|
||||
$objCustomNavigationLink->save();
|
||||
$navigationLinks[] = array(
|
||||
'name' => $name,
|
||||
'id_cms' => 0,
|
||||
'show_at_navigation' => 1,
|
||||
'show_at_footer' => 0,
|
||||
'is_custom_link' => 1,
|
||||
'link' => $indexLink.'#'.$modElm
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// enter CMS pages data
|
||||
if ($cmsPagesCMS = CMS::getCMSPages(Configuration::get('PS_LANG_DEFAULT'), 1)) {
|
||||
$showAtNavigation = 0;
|
||||
foreach ($cmsPagesCMS as $cmsPage) {
|
||||
$objCustomNavigationLink = new WkCustomNavigationLink();
|
||||
$objCustomNavigationLink->position = $this->getHigherPosition();
|
||||
$objCustomNavigationLink->id_cms = $cmsPage['id_cms'];
|
||||
$objCustomNavigationLink->show_at_navigation = $showAtNavigation;
|
||||
$objCustomNavigationLink->show_at_footer = 1;
|
||||
$objCustomNavigationLink->active = 1;
|
||||
$objCustomNavigationLink->is_custom_link = 0;
|
||||
$objCustomNavigationLink->save();
|
||||
$navigationLinks[] = array(
|
||||
'id_cms' => $cmsPage['id_cms'],
|
||||
'show_at_navigation' => $showAtNavigation,
|
||||
'show_at_footer' => 1,
|
||||
'is_custom_link' => 0,
|
||||
);
|
||||
$showAtNavigation = !$showAtNavigation;
|
||||
}
|
||||
}
|
||||
//insert contact link to the list
|
||||
$objCustomNavigationLink = new WkCustomNavigationLink();
|
||||
foreach ($languages as $language) {
|
||||
$objCustomNavigationLink->name[$language['id_lang']] = 'Contact Us';
|
||||
|
||||
$navigationLinks[] = array(
|
||||
'name' => 'Contact Us',
|
||||
'id_cms' => 0,
|
||||
'show_at_navigation' => 1,
|
||||
'show_at_footer' => 0,
|
||||
'is_custom_link' => 0,
|
||||
'link' => 'contact',
|
||||
);
|
||||
foreach ($navigationLinks as $navigationLink) {
|
||||
$objCustomNavigationLink = new WkCustomNavigationLink();
|
||||
if (isset($navigationLink['name'])) {
|
||||
foreach ($languages as $language) {
|
||||
$objCustomNavigationLink->name[$language['id_lang']] = $navigationLink['name'];
|
||||
}
|
||||
}
|
||||
|
||||
$objCustomNavigationLink->position = $this->getHigherPosition();
|
||||
$objCustomNavigationLink->id_cms = $navigationLink['id_cms'];
|
||||
$objCustomNavigationLink->show_at_navigation = $navigationLink['show_at_navigation'];
|
||||
$objCustomNavigationLink->show_at_footer = $navigationLink['show_at_footer'];
|
||||
$objCustomNavigationLink->active = 1;
|
||||
if (isset($navigationLink['link'])) {
|
||||
$objCustomNavigationLink->link = $navigationLink['link'];
|
||||
}
|
||||
|
||||
$objCustomNavigationLink->is_custom_link = $navigationLink['is_custom_link'];
|
||||
$objCustomNavigationLink->save();
|
||||
}
|
||||
$objCustomNavigationLink->position = $this->getHigherPosition();
|
||||
$objCustomNavigationLink->id_cms = 0;
|
||||
$objCustomNavigationLink->show_at_navigation = 1;
|
||||
$objCustomNavigationLink->show_at_footer = 0;
|
||||
$objCustomNavigationLink->active = 1;
|
||||
$objCustomNavigationLink->is_custom_link = 0;
|
||||
$objCustomNavigationLink->link = 'contact';
|
||||
$objCustomNavigationLink->save();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -48,11 +48,6 @@
|
||||
{/if}
|
||||
{if !isset($ajaxCustomerLogin)}
|
||||
</div>
|
||||
{if isset($WK_DISPLAY_OUR_HOTEL_TAB_IN_HEADER) && $WK_DISPLAY_OUR_HOTEL_TAB_IN_HEADER}
|
||||
<div class="header-top-link our_hotel_tab hidden-xs">
|
||||
<a href="{$link->getPageLink('properties')}">{l s='Our Hotels'}</a>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
<!-- /Block user information module NAV -->
|
||||
|
||||
@@ -1050,7 +1050,7 @@ class HotelHelper
|
||||
|
||||
Configuration::updateValue('WK_CUSTOMER_SUPPORT_PHONE_NUMBER', '0987654321');
|
||||
Configuration::updateValue('WK_CUSTOMER_SUPPORT_EMAIL', 'hotelprime@htl.com');
|
||||
Configuration::updateValue('WK_CONTACT_DISPLAY_HOTEL_LIST', 0);
|
||||
Configuration::updateValue('WK_DISPLAY_CONTACT_PAGE_HOTEL_LIST', 0);
|
||||
|
||||
Configuration::updateValue('WK_TITLE_HEADER_BLOCK', $home_banner_default_title);
|
||||
Configuration::updateValue('WK_CONTENT_HEADER_BLOCK', $home_banner_default_content);
|
||||
|
||||
@@ -40,6 +40,17 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController
|
||||
}
|
||||
$hotelNameDisable = (count($hotelsInfo) > 1 ? true : false);
|
||||
$locationDisable = ((count($hotelsInfo) < 2) && !Configuration::get('WK_HOTEL_NAME_ENABLE')) ? true : false;
|
||||
|
||||
$countryList = array();
|
||||
$countryList[] = array('id' => '0', 'name' => $this->l('Choose your country'));
|
||||
foreach (Country::getCountries($this->context->language->id) as $country) {
|
||||
$countryList[] = array('id' => $country['id_country'], 'name' => $country['name']);
|
||||
}
|
||||
$stateList = array();
|
||||
$stateList[] = array('id' => '0', 'name' => $this->l('Choose your state (if applicable)'));
|
||||
foreach (State::getStates($this->context->language->id) as $state) {
|
||||
$stateList[] = array('id' => $state['id_state'], 'name' => $state['name']);
|
||||
}
|
||||
$this->fields_options = array(
|
||||
'hotelsearchpanel' => array(
|
||||
'icon' => 'icon-search',
|
||||
@@ -147,23 +158,6 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController
|
||||
'identifier' => 'id',
|
||||
'list' => $hotelsInfo,
|
||||
),
|
||||
'WK_DISPLAY_OUR_HOTEL_TAB_IN_HEADER' => array(
|
||||
'title' => $this->l('Display "Our Hotels" tab in menu'),
|
||||
'cast' => 'intval',
|
||||
'type' => 'bool',
|
||||
'default' => '0',
|
||||
'values' => array(
|
||||
array(
|
||||
'id' => 'active_on',
|
||||
'value' => 1,
|
||||
),
|
||||
array(
|
||||
'id' => 'active_off',
|
||||
'value' => 0,
|
||||
),
|
||||
),
|
||||
'hint' => $this->l('Display "Our Hotels" tab in menu in top in the front office'),
|
||||
),
|
||||
'WK_HTL_ESTABLISHMENT_YEAR' => array(
|
||||
'title' => $this->l('Website Launch Year'),
|
||||
'hint' => $this->l('The year when your hotel site was launched.'),
|
||||
@@ -178,6 +172,40 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController
|
||||
'name' => 'WK_HOTEL_HEADER_IMAGE',
|
||||
'url' => _PS_IMG_,
|
||||
),
|
||||
'WK_DISPLAY_PROPERTIES_LINK_IN_HEADER' => array(
|
||||
'title' => $this->l('Display Our Properties link in Header'),
|
||||
'cast' => 'intval',
|
||||
'type' => 'bool',
|
||||
'default' => '0',
|
||||
'values' => array(
|
||||
array(
|
||||
'id' => 'active_on',
|
||||
'value' => 1,
|
||||
),
|
||||
array(
|
||||
'id' => 'active_off',
|
||||
'value' => 0,
|
||||
),
|
||||
),
|
||||
'hint' => $this->l('Display Our Properties link in header in the front office'),
|
||||
),
|
||||
'WK_DISPLAY_CONTACT_PAGE_HOTEL_LIST' => array(
|
||||
'title' => $this->l('Display Contact Page Hotel List'),
|
||||
'cast' => 'intval',
|
||||
'type' => 'bool',
|
||||
'default' => '0',
|
||||
'values' => array(
|
||||
array(
|
||||
'id' => 'active_on',
|
||||
'value' => 1,
|
||||
),
|
||||
array(
|
||||
'id' => 'active_off',
|
||||
'value' => 0,
|
||||
),
|
||||
),
|
||||
'hint' => $this->l('Enable to display hotels list on the contact us page.'),
|
||||
),
|
||||
),
|
||||
'submit' => array('title' => $this->l('Save')),
|
||||
),
|
||||
@@ -197,23 +225,6 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController
|
||||
'hint' => $this->l('The email used for customer service. It will be shown on navigation bar.'),
|
||||
'class' => 'fixed-width-xxl',
|
||||
),
|
||||
'WK_CONTACT_DISPLAY_HOTEL_LIST' => array(
|
||||
'title' => $this->l('Display Hotels On Contact Page'),
|
||||
'cast' => 'intval',
|
||||
'type' => 'bool',
|
||||
'default' => '0',
|
||||
'values' => array(
|
||||
array(
|
||||
'id' => 'active_on',
|
||||
'value' => 1,
|
||||
),
|
||||
array(
|
||||
'id' => 'active_off',
|
||||
'value' => 0,
|
||||
),
|
||||
),
|
||||
'hint' => $this->l('Enable to display hotels list on the contact us page.'),
|
||||
),
|
||||
),
|
||||
'submit' => array(
|
||||
'title' => $this->l('Save'),
|
||||
@@ -222,7 +233,83 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController
|
||||
'websitedetail' => array(
|
||||
'title' => $this->l('Website Contact Details'),
|
||||
'icon' => 'icon-user',
|
||||
'fields' => $this->_getDefaultFieldsContent(),
|
||||
'fields' => array(
|
||||
'PS_SHOP_NAME' => array(
|
||||
'title' => $this->l('Website name'),
|
||||
'hint' => $this->l('Displayed in emails and page titles.'),
|
||||
'validation' => 'isGenericName',
|
||||
'required' => true,
|
||||
'type' => 'text',
|
||||
'no_escape' => true,
|
||||
),
|
||||
'PS_SHOP_EMAIL' => array(
|
||||
'title' => $this->l('Website email'),
|
||||
'hint' => $this->l('Displayed in emails sent to customers and on Contact Us page.'),
|
||||
'validation' => 'isEmail',
|
||||
'required' => true,
|
||||
'type' => 'text'
|
||||
),
|
||||
'PS_SHOP_PHONE' => array(
|
||||
'title' => $this->l('Phone'),
|
||||
'validation' => 'isGenericName',
|
||||
'required' => true,
|
||||
'type' => 'text',
|
||||
'hint' => $this->l('The phone number of the main branch.'),
|
||||
),
|
||||
'PS_SHOP_ADDR1' => array(
|
||||
'title' => $this->l('Address line 1'),
|
||||
'validation' => 'isAddress',
|
||||
'type' => 'text',
|
||||
'hint' => $this->l('The address of the main branch.'),
|
||||
'isCleanHtml' => true,
|
||||
'required' => true,
|
||||
),
|
||||
'PS_SHOP_ADDR2' => array(
|
||||
'title' => $this->l('Address line 2'),
|
||||
'validation' => 'isAddress',
|
||||
'type' => 'text'
|
||||
),
|
||||
'PS_SHOP_CODE' => array(
|
||||
'title' => $this->l('Zip/postal code'),
|
||||
'validation' => 'isGenericName',
|
||||
'type' => 'text'
|
||||
),
|
||||
'PS_SHOP_CITY' => array(
|
||||
'title' => $this->l('City'),
|
||||
'validation' => 'isGenericName',
|
||||
'type' => 'text'
|
||||
),
|
||||
'PS_SHOP_COUNTRY_ID' => array(
|
||||
'title' => $this->l('Country'),
|
||||
'validation' => 'isInt',
|
||||
'type' => 'select',
|
||||
'list' => $countryList,
|
||||
'identifier' => 'id',
|
||||
'cast' => 'intval',
|
||||
'defaultValue' => (int)$this->context->country->id
|
||||
),
|
||||
'PS_SHOP_STATE_ID' => array(
|
||||
'title' => $this->l('State'),
|
||||
'validation' => 'isInt',
|
||||
'type' => 'select',
|
||||
'list' => $stateList,
|
||||
'identifier' => 'id',
|
||||
'cast' => 'intval'
|
||||
),
|
||||
'PS_SHOP_DETAILS' => array(
|
||||
'title' => $this->l('Registration number'),
|
||||
'hint' => $this->l('Website registration information (e.g. SIRET or RCS).'),
|
||||
'validation' => 'isGenericName',
|
||||
'type' => 'textarea',
|
||||
'cols' => 30,
|
||||
'rows' => 5
|
||||
),
|
||||
'PS_SHOP_FAX' => array(
|
||||
'title' => $this->l('Fax'),
|
||||
'validation' => 'isGenericName',
|
||||
'type' => 'text'
|
||||
),
|
||||
),
|
||||
'submit' => array(
|
||||
'title' => $this->l('Save'),
|
||||
),
|
||||
@@ -344,8 +431,8 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController
|
||||
),
|
||||
'hint' => $this->l('If yes, only active hotels will be displayed on map.'),
|
||||
),
|
||||
'WK_PROPERTIES_DISPLAY_HOTEL_MAP' => array(
|
||||
'title' => $this->l('Display Hotels Map On Properties Page'),
|
||||
'WK_DISPLAY_PROPERTIES_PAGE_GOOGLE_MAP' => array(
|
||||
'title' => $this->l('Display Our Properties page Google map'),
|
||||
'cast' => 'intval',
|
||||
'type' => 'bool',
|
||||
'default' => '0',
|
||||
@@ -359,10 +446,10 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController
|
||||
'value' => 0,
|
||||
),
|
||||
),
|
||||
'hint' => $this->l('Enable to display map with hotels locations on the properties page.'),
|
||||
'hint' => $this->l('Enable to display map with hotels locations on the our properties page.'),
|
||||
),
|
||||
'WK_CONTACT_DISPLAY_HOTEL_MAP' => array(
|
||||
'title' => $this->l('Display Hotels Map On Contact Page'),
|
||||
'WK_DISPLAY_CONTACT_PAGE_GOOLGE_MAP' => array(
|
||||
'title' => $this->l('Display Contact Us page Google map'),
|
||||
'cast' => 'intval',
|
||||
'type' => 'bool',
|
||||
'default' => '0',
|
||||
@@ -387,101 +474,6 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController
|
||||
|
||||
}
|
||||
|
||||
protected function _getDefaultFieldsContent()
|
||||
{
|
||||
$this->context = Context::getContext();
|
||||
$countryList = array();
|
||||
$countryList[] = array('id' => '0', 'name' => $this->l('Choose your country'));
|
||||
foreach (Country::getCountries($this->context->language->id) as $country) {
|
||||
$countryList[] = array('id' => $country['id_country'], 'name' => $country['name']);
|
||||
}
|
||||
$stateList = array();
|
||||
$stateList[] = array('id' => '0', 'name' => $this->l('Choose your state (if applicable)'));
|
||||
foreach (State::getStates($this->context->language->id) as $state) {
|
||||
$stateList[] = array('id' => $state['id_state'], 'name' => $state['name']);
|
||||
}
|
||||
|
||||
$formFields = array(
|
||||
'PS_SHOP_NAME' => array(
|
||||
'title' => $this->l('Website name'),
|
||||
'hint' => $this->l('Displayed in emails and page titles.'),
|
||||
'validation' => 'isGenericName',
|
||||
'required' => true,
|
||||
'type' => 'text',
|
||||
'no_escape' => true,
|
||||
),
|
||||
'PS_SHOP_EMAIL' => array(
|
||||
'title' => $this->l('Website email'),
|
||||
'hint' => $this->l('Displayed in emails sent to customers and on Contact Us page.'),
|
||||
'validation' => 'isEmail',
|
||||
'required' => true,
|
||||
'type' => 'text'
|
||||
),
|
||||
'PS_SHOP_PHONE' => array(
|
||||
'title' => $this->l('Phone'),
|
||||
'validation' => 'isGenericName',
|
||||
'required' => true,
|
||||
'type' => 'text',
|
||||
'hint' => $this->l('The phone number of the main branch.'),
|
||||
),
|
||||
'PS_SHOP_ADDR1' => array(
|
||||
'title' => $this->l('Address line 1'),
|
||||
'validation' => 'isAddress',
|
||||
'type' => 'text',
|
||||
'hint' => $this->l('The address of the main branch.'),
|
||||
'isCleanHtml' => true,
|
||||
'required' => true,
|
||||
),
|
||||
'PS_SHOP_ADDR2' => array(
|
||||
'title' => $this->l('Address line 2'),
|
||||
'validation' => 'isAddress',
|
||||
'type' => 'text'
|
||||
),
|
||||
'PS_SHOP_CODE' => array(
|
||||
'title' => $this->l('Zip/postal code'),
|
||||
'validation' => 'isGenericName',
|
||||
'type' => 'text'
|
||||
),
|
||||
'PS_SHOP_CITY' => array(
|
||||
'title' => $this->l('City'),
|
||||
'validation' => 'isGenericName',
|
||||
'type' => 'text'
|
||||
),
|
||||
'PS_SHOP_COUNTRY_ID' => array(
|
||||
'title' => $this->l('Country'),
|
||||
'validation' => 'isInt',
|
||||
'type' => 'select',
|
||||
'list' => $countryList,
|
||||
'identifier' => 'id',
|
||||
'cast' => 'intval',
|
||||
'defaultValue' => (int)$this->context->country->id
|
||||
),
|
||||
'PS_SHOP_STATE_ID' => array(
|
||||
'title' => $this->l('State'),
|
||||
'validation' => 'isInt',
|
||||
'type' => 'select',
|
||||
'list' => $stateList,
|
||||
'identifier' => 'id',
|
||||
'cast' => 'intval'
|
||||
),
|
||||
'PS_SHOP_DETAILS' => array(
|
||||
'title' => $this->l('Registration number'),
|
||||
'hint' => $this->l('Website registration information (e.g. SIRET or RCS).'),
|
||||
'validation' => 'isGenericName',
|
||||
'type' => 'textarea',
|
||||
'cols' => 30,
|
||||
'rows' => 5
|
||||
),
|
||||
'PS_SHOP_FAX' => array(
|
||||
'title' => $this->l('Fax'),
|
||||
'validation' => 'isGenericName',
|
||||
'type' => 'text'
|
||||
),
|
||||
);
|
||||
|
||||
return $formFields;
|
||||
}
|
||||
|
||||
public function beforeUpdateOptions()
|
||||
{
|
||||
if (isset($_POST['PS_SHOP_STATE_ID']) && $_POST['PS_SHOP_STATE_ID'] != '0') {
|
||||
|
||||
@@ -695,7 +695,7 @@ class HotelReservationSystem extends Module
|
||||
'WK_HOTEL_NAME_ENABLE',
|
||||
'WK_CUSTOMER_SUPPORT_PHONE_NUMBER',
|
||||
'WK_CUSTOMER_SUPPORT_EMAIL',
|
||||
'WK_CONTACT_DISPLAY_HOTEL_LIST'
|
||||
'WK_DISPLAY_CONTACT_PAGE_HOTEL_LIST'
|
||||
);
|
||||
foreach ($configKeys as $key) {
|
||||
if (!Configuration::deleteByName($key)) {
|
||||
|
||||
@@ -835,12 +835,12 @@ function toggleGoogleMapsFields()
|
||||
{
|
||||
if ($('#WK_GOOGLE_ACTIVE_MAP_on').attr('checked') == 'checked') {
|
||||
$('#conf_id_WK_MAP_HOTEL_ACTIVE_ONLY').parent().show();
|
||||
$('#conf_id_WK_CONTACT_DISPLAY_HOTEL_MAP').parent().show();
|
||||
$('#conf_id_WK_PROPERTIES_DISPLAY_HOTEL_MAP').parent().show();
|
||||
$('#conf_id_WK_DISPLAY_CONTACT_PAGE_GOOLGE_MAP').parent().show();
|
||||
$('#conf_id_WK_DISPLAY_PROPERTIES_PAGE_GOOGLE_MAP').parent().show();
|
||||
} else {
|
||||
$('#conf_id_WK_MAP_HOTEL_ACTIVE_ONLY').parent().hide();
|
||||
$('#conf_id_WK_CONTACT_DISPLAY_HOTEL_MAP').parent().hide();
|
||||
$('#conf_id_WK_PROPERTIES_DISPLAY_HOTEL_MAP').parent().hide();
|
||||
$('#conf_id_WK_DISPLAY_CONTACT_PAGE_GOOLGE_MAP').parent().hide();
|
||||
$('#conf_id_WK_DISPLAY_PROPERTIES_PAGE_GOOGLE_MAP').parent().hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/license/osl-3-0-php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to support@qloapps.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to a newer
|
||||
* versions in the future. If you wish to customize this module for your needs
|
||||
* please refer to https://store.webkul.com/customisation-guidelines for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright Since 2010 Webkul
|
||||
* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
|
||||
*/
|
||||
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/license/osl-3-0-php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to support@qloapps.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to a newer
|
||||
* versions in the future. If you wish to customize this module for your needs
|
||||
* please refer to https://store.webkul.com/customisation-guidelines for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright Since 2010 Webkul
|
||||
* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../../../../../../');
|
||||
exit;
|
||||
@@ -0,0 +1,60 @@
|
||||
{**
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/license/osl-3-0-php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to support@qloapps.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to a newer
|
||||
* versions in the future. If you wish to customize this module for your needs
|
||||
* please refer to https://store.webkul.com/customisation-guidelines for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright Since 2010 Webkul
|
||||
* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
|
||||
*}
|
||||
|
||||
{extends file="helpers/options/options.tpl"}
|
||||
|
||||
{block name="footer"}
|
||||
{$smarty.block.parent}
|
||||
{if $category == 'websitedetail'}
|
||||
<script type="text/javascript">
|
||||
function ajaxStoreStates(id_state_selected) {
|
||||
$.ajax({
|
||||
url: "index.php",
|
||||
cache: false,
|
||||
data: "ajax=1&tab=AdminStates&token={getAdminToken tab='AdminStates'}&action=states&id_country="+$('#PS_SHOP_COUNTRY_ID').val() + "&id_state=" + $('#PS_SHOP_STATE_ID').val(),
|
||||
success: function(html)
|
||||
{
|
||||
if (html == 'false') {
|
||||
$("#conf_id_PS_SHOP_STATE_ID").parent().fadeOut();
|
||||
$('#PS_SHOP_STATE_ID option[value=0]').attr("selected", "selected");
|
||||
} else {
|
||||
$("#PS_SHOP_STATE_ID").html(html);
|
||||
$("#conf_id_PS_SHOP_STATE_ID").parent().fadeIn();
|
||||
$('#PS_SHOP_STATE_ID option[value=' + id_state_selected + ']').attr("selected", "selected");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
{if isset($categoryData.fields.PS_SHOP_STATE_ID.value)}
|
||||
if ($('#PS_SHOP_COUNTRY_ID') && $('#PS_SHOP_STATE_ID')) {
|
||||
ajaxStoreStates({$categoryData.fields.PS_SHOP_STATE_ID.value});
|
||||
$('#PS_SHOP_COUNTRY_ID').change(function() {
|
||||
ajaxStoreStates();
|
||||
});
|
||||
}
|
||||
{/if}
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/license/osl-3-0-php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to support@qloapps.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to a newer
|
||||
* versions in the future. If you wish to customize this module for your needs
|
||||
* please refer to https://store.webkul.com/customisation-guidelines for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright Since 2010 Webkul
|
||||
* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
|
||||
*/
|
||||
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
@@ -201,7 +201,7 @@
|
||||
{/block}
|
||||
{block name='contact_form_hotel_locations'}
|
||||
{if isset($displayHotelMap) && $displayHotelMap && isset($hotelLocationArray)}
|
||||
<div class="row {if !(isset($displayHotels) && $displayHotels && isset($hotelsInfo) && $hotelsInfo)} margin-top-30{/if}">
|
||||
<div class="row {if !(isset($displayHotels) && $displayHotels && isset($hotelsInfo) && $hotelsInfo)} margin-top-20{/if}">
|
||||
<div class="col-xs-12 col-sm-12" id="googleMapWrapper">
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
|
||||
@@ -274,9 +274,3 @@
|
||||
outline: none;
|
||||
color: #427fed;
|
||||
}
|
||||
.margin-bottom-30 {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.margin-top-30 {
|
||||
margin-top: 30px;
|
||||
}
|
||||
@@ -9144,4 +9144,9 @@ a.link {
|
||||
font-weight: 700;
|
||||
color: #0000ff;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
div a.our_properties_link{
|
||||
color: #fff;
|
||||
font-size: 17px;
|
||||
font-weight: 400;}
|
||||
|
||||
@@ -37,11 +37,6 @@
|
||||
#user_info_acc span.caret {
|
||||
border-top-color: #fff; }
|
||||
|
||||
div.our_hotel_tab a{
|
||||
color: #fff;
|
||||
font-size: 17px;
|
||||
font-weight: 400;}
|
||||
|
||||
@media (max-width: 450px) {
|
||||
.hide_xs {
|
||||
display: none; }
|
||||
|
||||
149
themes/hotel-reservation-theme/css/our-properties.css
Normal file
149
themes/hotel-reservation-theme/css/our-properties.css
Normal file
@@ -0,0 +1,149 @@
|
||||
/**
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/license/osl-3-0-php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to support@qloapps.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to a newer
|
||||
* versions in the future. If you wish to customize this module for your needs
|
||||
* please refer to https://store.webkul.com/customisation-guidelines for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright Since 2010 Webkul
|
||||
* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
|
||||
*/
|
||||
|
||||
.htl-img {
|
||||
max-width: 200px;}
|
||||
.properties-page {
|
||||
padding: 10px;}
|
||||
.page-heading {
|
||||
font-size: 32px;}
|
||||
.empty-properties-container{
|
||||
margin: 30px;}
|
||||
.our-properties-header {
|
||||
font-size: 42px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
text-align: center;
|
||||
font-weight: 300;}
|
||||
.our-properties-desc {
|
||||
font-size: 16px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
text-align: center;
|
||||
font-weight: 300;
|
||||
line-height: 30px;}
|
||||
.properties-page .hotels-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;}
|
||||
.hotels-container .hotel-header {
|
||||
margin-bottom: 40px;
|
||||
text-align: center;}
|
||||
.hotels-container .hotel-header>span {
|
||||
font-size: 30px;
|
||||
font-weight: 400;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 1);}
|
||||
.properties-page .hotel-address-container {
|
||||
border-radius: 4px;
|
||||
box-shadow: 2px 2px 15px 3px rgba(0,0,0,.1);
|
||||
float: left;
|
||||
padding: 15px 0px;
|
||||
width: 100%;}
|
||||
.hotel-address-container .hotel-name {
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
margin-bottom: 15px;}
|
||||
.hotel-address-container span.htl-address-icon {
|
||||
background-image: url(../../../modules/hotelreservationsystem/views/img/Slices/icon-contact.png);}
|
||||
.hotel-address-container img.htl-img {
|
||||
border-radius: 6px;}
|
||||
.empty-properties-image-container {
|
||||
background-image: url(../../../modules/hotelreservationsystem/views/img/Slices/no-hotel.png) ;
|
||||
background-repeat:no-repeat;
|
||||
background-position: center center;
|
||||
padding: 200px 0px 10px 0px;
|
||||
display: block;}
|
||||
.hotel-address-container span.htl-phone-icon {
|
||||
background-image: url(../../../modules/hotelreservationsystem/views/img/Slices/icon-contact.png);
|
||||
padding: 1px 15px 0px 2px;
|
||||
background-position: 37px;
|
||||
margin-right: 5px;
|
||||
font-size: 14px;}
|
||||
.hotel-address-container span.htl-email-icon {
|
||||
padding: 1px 10px 1px;
|
||||
background-position: 19px;
|
||||
margin-right: 5px;}
|
||||
span.htl-map-icon {
|
||||
background-image: url(../../../modules/hotelreservationsystem/views/img/Slices/icon-contact.png);
|
||||
padding: 1px 20px 0px 0px;
|
||||
background-position: 0px 0px;
|
||||
margin-right: 5px;
|
||||
font-size: 14px;}
|
||||
.view_rooms_btn, .htl-map-direction-btn {
|
||||
border-radius: 4px;
|
||||
padding: 10px 12px;
|
||||
text-transform: uppercase;}
|
||||
.htl-map-direction-btn{
|
||||
background-color: #DEDEDE;
|
||||
color: #333333; }
|
||||
.view_rooms_btn {
|
||||
background-color: #1292FF;
|
||||
border-color: #1292FF;
|
||||
font-weight: 600;}
|
||||
.view_rooms_btn:hover {
|
||||
background-color: #3c89cb;
|
||||
border-color: #3a75a7;}
|
||||
.pagination-container {
|
||||
text-align: center;}
|
||||
.hotel-branch-info-actions{
|
||||
display: flex;
|
||||
gap: 10px;}
|
||||
.pagination-container .pagination > li > a, .pagination-container .pagination > li > span {
|
||||
border: unset;}
|
||||
.pagination-container .pagination > li .active {
|
||||
border: 1px solid #333333;
|
||||
border-radius: 12px;
|
||||
z-index: 10;}
|
||||
.hotel-address-container p.hotel-branch-info-value {
|
||||
font-size: 14px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
font-weight: 400;
|
||||
line-height: 25px;}
|
||||
.hotel-address-container .htl-map-direction-btn span {
|
||||
font-size: 12px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
font-weight: 400;}
|
||||
|
||||
@media screen and (max-width: 726px) {
|
||||
.hotel-branch-info-actions{
|
||||
flex-direction: column;}
|
||||
}
|
||||
|
||||
/* ==== google map ==== */
|
||||
#googleMapWrapper {
|
||||
clear: both;
|
||||
height: 500px;}
|
||||
#map {
|
||||
width: 100%;
|
||||
height: 100%;}
|
||||
#map .view-link {
|
||||
padding-top: 4px;}
|
||||
.gm-btn-get-directions {
|
||||
text-decoration: none;
|
||||
color: #427fed;
|
||||
font-weight: bold;}
|
||||
.gm-btn-get-directions:hover {
|
||||
text-decoration: underline;
|
||||
color: #427fed;}
|
||||
.gm-btn-get-directions:focus {
|
||||
outline: none;
|
||||
color: #427fed;}
|
||||
@@ -1,286 +0,0 @@
|
||||
/**
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/license/osl-3-0-php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to support@qloapps.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to a newer
|
||||
* versions in the future. If you wish to customize this module for your needs
|
||||
* please refer to https://store.webkul.com/customisation-guidelines for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright Since 2010 Webkul
|
||||
* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
|
||||
*/
|
||||
|
||||
.margin-top-50 {
|
||||
margin-top: 50px;
|
||||
}
|
||||
.margin-bottom-30 {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.margin-bottom-20 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.margin-top-20 {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.htl-contact-page {
|
||||
padding: 10px;
|
||||
}
|
||||
.page-heading {
|
||||
font-size: 32px;
|
||||
}
|
||||
.empty-properties-container{
|
||||
margin: 30px;
|
||||
}
|
||||
.htl-contact-page .contact-header {
|
||||
font-size: 42px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
text-align: center;
|
||||
font-weight: 300;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.htl-contact-page .contact-desc {
|
||||
font-size: 16px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
text-align: center;
|
||||
font-weight: 300;
|
||||
margin-bottom: 20px;
|
||||
line-height: 30px;
|
||||
}
|
||||
.htl-contact-page .contact-form-box {
|
||||
padding: 30px;
|
||||
border-radius: 4px;
|
||||
box-shadow: 2px 2px 15px 3px rgba(0,0,0,.1);
|
||||
}
|
||||
.htl-contact-page .contact-form-box .control-label {
|
||||
font-size: 14px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
font-weight: 400;
|
||||
}
|
||||
.htl-contact-page .contact-form-box .form-control, .htl-contact-page .uploader span.filename {
|
||||
border: 1px solid rgba(0, 0, 0, 1);
|
||||
font-size: 14px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
font-weight: 400;
|
||||
}
|
||||
.htl-contact-page .uploader span.filename {
|
||||
font-size: 12px;
|
||||
}
|
||||
.htl-contact-page .contact-form-box #contact_type {
|
||||
width: 90%;
|
||||
text-align: left;
|
||||
}
|
||||
.title-container {
|
||||
margin-left: 150px;
|
||||
margin-right: 150px;
|
||||
color: #333333;}
|
||||
.htl-contact-page .contact_type_ul {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
top: 45px;
|
||||
padding: 0px;
|
||||
width: 100%;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 1);
|
||||
border-left: 1px solid rgba(0, 0, 0, 1);
|
||||
border-right: 1px solid rgba(0, 0, 0, 1);
|
||||
max-height: 145px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.htl-contact-page .contact_type_ul li {
|
||||
cursor: default;
|
||||
font-size: 14px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
font-weight: 400;
|
||||
padding: 11px;
|
||||
}
|
||||
.htl-contact-page .contact_type_ul li:hover, .htl-contact-page .contact_type_ul li:focus, .htl-contact-page .contact_type_ul li:active {
|
||||
background-color: #379bf0;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.htl-contact-page .contact_btn {
|
||||
font-size: 14px;
|
||||
color: rgba(255, 255, 255, 1);
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
border-radius: 4px;
|
||||
padding: 0 20px;
|
||||
}
|
||||
.htl-contact-page .global-address-header {
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
color: rgba(0, 0, 0, .6);
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.htl-contact-page .global-address-value {
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
margin-bottom: 10px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
line-height: 22px;
|
||||
}
|
||||
.htl-contact-page .htl-global-address-div {
|
||||
padding: 20px;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 10px;
|
||||
box-shadow: 2px 2px 15px 3px rgba(0,0,0,.1);
|
||||
}
|
||||
@media screen and (min-width: 767px) {
|
||||
.htl-contact-page .htl-global-address-div {
|
||||
margin-top: 60px;
|
||||
}
|
||||
}
|
||||
.htl-contact-page .hotels-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.hotels-container .hotel-header {
|
||||
margin-bottom: 40px;
|
||||
text-align: center;
|
||||
}
|
||||
.hotels-container .hotel-header>span {
|
||||
font-size: 30px;
|
||||
font-weight: 400;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 1);
|
||||
}
|
||||
.htl-contact-page span.action {
|
||||
background:#379bf0!important;
|
||||
}
|
||||
.htl-contact-page .hotel-address-container {
|
||||
border-radius: 4px;
|
||||
box-shadow: 2px 2px 15px 3px rgba(0,0,0,.1);
|
||||
float: left;
|
||||
padding: 15px 0px;
|
||||
width: 100%;
|
||||
}
|
||||
.htl-contact-page .hotel-city-container>span {
|
||||
font-size: 20px;
|
||||
font-weight: 400;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
}
|
||||
.hotel-address-container .hotel-name {
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.hotel-address-container span.htl-address-icon {
|
||||
background-image: url(../../../modules/hotelreservationsystem/views/img/Slices/icon-contact.png);
|
||||
}
|
||||
.hotel-address-container img.htl-img {
|
||||
border-radius: 6px;
|
||||
}
|
||||
.empty-properties-image-container {
|
||||
background-image: url(../../../modules/hotelreservationsystem/views/img/Slices/no-hotel.png) ;
|
||||
background-repeat:no-repeat;
|
||||
background-position: center center;
|
||||
padding: 200px 0px 10px 0px;
|
||||
display: block;
|
||||
}
|
||||
.hotel-address-container span.htl-phone-icon {
|
||||
background-image: url(../../../modules/hotelreservationsystem/views/img/Slices/icon-contact.png);
|
||||
padding: 1px 15px 0px 2px;
|
||||
background-position: 37px;
|
||||
margin-right: 5px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.hotel-address-container span.htl-email-icon {
|
||||
padding: 1px 10px 1px;
|
||||
background-position: 19px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.htl-contact-page .hotel-city-container {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
span.htl-map-icon {
|
||||
background-image: url(../../../modules/hotelreservationsystem/views/img/Slices/icon-contact.png);
|
||||
padding: 1px 20px 0px 0px;
|
||||
background-position: 0px 0px;
|
||||
margin-right: 5px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.view_rooms_btn, .htl-map-direction-btn {
|
||||
border-radius: 4px;
|
||||
padding: 10px 12px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.htl-map-direction-btn{
|
||||
background-color: #DEDEDE;
|
||||
color: #333333;
|
||||
}
|
||||
.view_rooms_btn {
|
||||
background-color: #1292FF;
|
||||
border-color: #1292FF;
|
||||
font-weight: 600;
|
||||
}
|
||||
.view_rooms_btn:hover {
|
||||
background-color: #3c89cb;
|
||||
border-color: #3a75a7;
|
||||
}
|
||||
.pagination-container {
|
||||
text-align: center;
|
||||
}
|
||||
.hotel-branch-info-actions{
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
.pagination-container .pagination > li > a, .pagination-container .pagination > li > span {
|
||||
border: unset;
|
||||
}
|
||||
.pagination-container .pagination > li .active {
|
||||
border: 1px solid #333333;
|
||||
border-radius: 12px;
|
||||
z-index: 10;
|
||||
}
|
||||
.hotel-address-container p.hotel-branch-info-value {
|
||||
font-size: 14px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
font-weight: 400;
|
||||
line-height: 25px;
|
||||
}
|
||||
.hotel-address-container .htl-map-direction-btn span {
|
||||
font-size: 12px;
|
||||
color: rgba(0, 0, 0, 1);
|
||||
font-weight: 400;
|
||||
}
|
||||
/* ==== google map ==== */
|
||||
#googleMapWrapper {
|
||||
clear: both;
|
||||
height: 500px;
|
||||
}
|
||||
#map {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#map .view-link {
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
.gm-btn-get-directions {
|
||||
text-decoration: none;
|
||||
color: #427fed;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.gm-btn-get-directions:hover {
|
||||
text-decoration: underline;
|
||||
color: #427fed;
|
||||
}
|
||||
|
||||
.gm-btn-get-directions:focus {
|
||||
outline: none;
|
||||
color: #427fed;
|
||||
}
|
||||
@@ -1,154 +1,4 @@
|
||||
{*
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<!DOCTYPE HTML>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if}><![endif]-->
|
||||
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7"{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if}><![endif]-->
|
||||
<!--[if IE 8]><html class="no-js lt-ie9 ie8"{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if}><![endif]-->
|
||||
<!--[if gt IE 8]> <html class="no-js ie9"{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if}><![endif]-->
|
||||
<html{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if} {if isset($language_is_rtl) && $language_is_rtl}dir="rtl"{/if} style="{if $page_name == 'index'}height: 100%;{/if}">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{$meta_title|escape:'html':'UTF-8'}</title>
|
||||
{if isset($meta_description) AND $meta_description}
|
||||
<meta name="description" content="{$meta_description|escape:'html':'UTF-8'}" />
|
||||
{/if}
|
||||
{if isset($meta_keywords) AND $meta_keywords}
|
||||
<meta name="keywords" content="{$meta_keywords|escape:'html':'UTF-8'}" />
|
||||
{/if}
|
||||
<meta name="generator" content="QloApps" />
|
||||
<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />
|
||||
{if isset($css_files)}
|
||||
{foreach from=$css_files key=css_uri item=media}
|
||||
{if $css_uri == 'lteIE9'}
|
||||
<!--[if lte IE 9]>
|
||||
{foreach from=$css_files[$css_uri] key=css_uriie9 item=mediaie9}
|
||||
<link rel="stylesheet" href="{$css_uriie9|escape:'html':'UTF-8'}" type="text/css" media="{$mediaie9|escape:'html':'UTF-8'}" />
|
||||
{/foreach}
|
||||
<![endif]-->
|
||||
{else}
|
||||
<link rel="stylesheet" href="{$css_uri|escape:'html':'UTF-8'}" type="text/css" media="{$media|escape:'html':'UTF-8'}" />
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{if isset($js_defer) && !$js_defer && isset($js_files) && isset($js_def)}
|
||||
{$js_def}
|
||||
{foreach from=$js_files item=js_uri}
|
||||
<script type="text/javascript" src="{$js_uri|escape:'html':'UTF-8'}"></script>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{block name='displayHeader'}
|
||||
{$HOOK_HEADER}
|
||||
{/block}
|
||||
<!-- <link rel="stylesheet" href="http{if Tools::usingSecureMode()}s{/if}://fonts.googleapis.com/css?family=Open+Sans:300,600&subset=latin,latin-ext" type="text/css" media="all" /> -->
|
||||
|
||||
<!--[if IE 8]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- by webkul -->
|
||||
<!-- <link href='https://fonts.googleapis.com/css?family=Parisienne' rel='stylesheet' type='text/css'> -->
|
||||
<!-- <link href='https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700,700italic' rel='stylesheet' type='text/css'> -->
|
||||
<link href='//fonts.googleapis.com/css?family=Oxygen:400,300,700' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
<body{if isset($page_name)} id="{$page_name|escape:'html':'UTF-8'}"{/if} class="{if isset($page_name)}{$page_name|escape:'html':'UTF-8'}{/if}{if isset($body_classes) && $body_classes|@count} {' '|implode:$body_classes}{/if}{if $hide_left_column} hide-left-column{else} show-left-column{/if}{if $hide_right_column} hide-right-column{else} hide-right-column{/if}{if isset($content_only) && $content_only} content_only{/if} lang_{$lang_iso}" style="{if $page_name == 'index'}height: 100%;{/if}">
|
||||
{if !isset($content_only) || !$content_only}
|
||||
{if isset($restricted_country_mode) && $restricted_country_mode}
|
||||
<div id="restricted-country">
|
||||
<p>{l s='You cannot place a new order from your country.'}{if isset($geolocation_country) && $geolocation_country} <span class="bold">{$geolocation_country|escape:'html':'UTF-8'}</span>{/if}</p>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="page" style="{if $page_name == 'index'}height: 100%;{/if}">
|
||||
<div class="header-container" style="{if $page_name == 'index'}height: 100%;{/if}">
|
||||
<header id="header" style='{if $page_name == "index"}background-image:url("{$link->getMediaLink("`$smarty.const._PS_IMG_`{Configuration::get('WK_HOTEL_HEADER_IMAGE')}")}"); height: 100%;{else}background-color:#252525;{/if}' >
|
||||
<div class="banner">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{block name='displayBanner'}
|
||||
{hook h="displayBanner"}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{block name='header_nav'}
|
||||
<div id="nav-main">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{block name='displayNav'}
|
||||
<nav>{hook h="displayNav"}</nav>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='header_top'}
|
||||
<div class="header-top">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div id="header_logo">
|
||||
<a href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{$shop_name|escape:'html':'UTF-8'}">
|
||||
<img class="logo img-responsive" src="{$logo_url}" alt="{$shop_name|escape:'html':'UTF-8'}"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="header-top-menu">
|
||||
{block name='displayTop'}
|
||||
{if isset($HOOK_TOP)}{$HOOK_TOP}{/if}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{block name='displaySearchHotelPanel'}
|
||||
{hook h='displaySearchHotelPanel'}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='displayAfterHookTop'}
|
||||
{hook h='displayAfterHookTop'}
|
||||
{/block}
|
||||
</header>
|
||||
</div>
|
||||
<div class="columns-container">
|
||||
<div id="columns" class="container">
|
||||
{if $show_breadcrump}
|
||||
{block name='breadcrumb'}
|
||||
{include file="$tpl_dir./breadcrumb.tpl"}
|
||||
{/block}
|
||||
{/if}
|
||||
<div id="slider_row" class="row">
|
||||
<div id="top_column" class="center_column col-xs-12 col-sm-12">{hook h="displayTopColumn"}</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
{if isset($left_column_size) && !empty($left_column_size)}
|
||||
<div id="left_column" class="column col-xs-12 col-sm-{$left_column_size|intval}">{$HOOK_LEFT_COLUMN}</div>
|
||||
{/if}
|
||||
{if isset($left_column_size) && isset($right_column_size)}{assign var='cols' value=(12 - $left_column_size - $right_column_size)}{else}{assign var='cols' value=12}{/if}
|
||||
<div id="center_column" class="center_column col-xs-12 col-sm-{$cols|intval}">
|
||||
{/if}
|
||||
/home/users/vishal.singh/www/html/Review/QloApps-gli-2489/tools/smarty/sysplugins/smarty_internal_compile_foreach.php
|
||||
33,56: public $optional_attributes = array('name', 'key', 'properties');
|
||||
142,27: if (isset($_attr[ 'properties' ]) && preg_match_all('/[\'](.*?)[\']/', $_attr[ 'properties' ], $match)) {
|
||||
142,88: if (isset($_attr[ 'properties' ]) && preg_match_all('/[\'](.*?)[\']/', $_attr[ 'properties' ], $match)) {
|
||||
@@ -21,7 +21,6 @@
|
||||
*/
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
//By Webkul JS for Map locations of the hotels on google Map
|
||||
if (typeof hotelLocationArray != 'undefined'
|
||||
&& $('#map').length
|
||||
@@ -30,6 +29,12 @@ $(document).ready(function() {
|
||||
) {
|
||||
initMap();
|
||||
}
|
||||
|
||||
$(document).on('click', 'ul.pagination li a', function(e){
|
||||
e.preventDefault();
|
||||
$('#pagination').val($(this).data('pagination'));
|
||||
$('form#our-properties-list').submit();
|
||||
});
|
||||
});
|
||||
|
||||
function initMap() {
|
||||
@@ -47,10 +47,5 @@
|
||||
{/if}
|
||||
{if !isset($ajaxCustomerLogin)}
|
||||
</div>
|
||||
{if isset($WK_DISPLAY_OUR_HOTEL_TAB_IN_HEADER) && $WK_DISPLAY_OUR_HOTEL_TAB_IN_HEADER}
|
||||
<div class="our_hotel_tab hidden-xs">
|
||||
<a href="{$link->getPageLink('properties')}" >{l s='Our Hotels'}</a>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
{if isset($hotelsInfo) && $hotelsInfo}
|
||||
{block name='our_properties_list_title'}
|
||||
<div class="title-container">
|
||||
<h1 class="text-center">{l s='Our Hotels'}</h1>
|
||||
<div class="text-center">
|
||||
<h1 class="text-center our-properties-header">{l s='Our Properties'}</h1>
|
||||
<div class="text-center our-properties-desc">
|
||||
<p>{$WK_HTL_SHORT_DESC|escape:'html':'UTF-8'}</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
{block name='our_properties_location'}
|
||||
{if isset($hotelLocationArray) && $hotelLocationArray && isset($displayHotelMap) && $displayHotelMap}
|
||||
<div class="margin-top-20 margin-bottom-20">
|
||||
<div class="margin-top-20 margin-btm-20">
|
||||
<div class="col-xs-12 col-sm-12" id="googleMapWrapper">
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
@@ -55,11 +55,11 @@
|
||||
{hook h='displayPropertiesListBefore'}
|
||||
{/block}
|
||||
|
||||
<div class="htl-contact-page">
|
||||
<div class="properties-page">
|
||||
{block name='our_properties_list'}
|
||||
<div class="row hotels-container">
|
||||
{foreach $hotelsInfo as $hotel}
|
||||
<div class="{if $hotelsInfo|count != 1}col-md-6{else}col-md-6 col-md-offset-3{/if} margin-bottom-30">
|
||||
<div class="{if $hotelsInfo|count != 1}col-md-6 col-xs-12{else}col-md-6 col-md-offset-3{/if} margin-btm-30">
|
||||
<div class="hotel-address-container">
|
||||
<div class="col-xs-5">
|
||||
<img class="htl-img" style="width:100%" src="{$hotel['image_url']}">
|
||||
@@ -74,9 +74,9 @@
|
||||
<span class="htl-address-icon htl-email-icon"></span>{$hotel['email']}
|
||||
</p>
|
||||
<div class="hotel-branch-info-actions">
|
||||
<a href="{$hotel['view_rooms_link']}" target="_blank" class="btn btn-primary view_rooms_btn col-xs-6">{l s='View Rooms'}</a>
|
||||
<a href="{$hotel['view_rooms_link']}" target="_blank" class="btn btn-primary view_rooms_btn col-sm-6 col-xs-12">{l s='View Rooms'}</a>
|
||||
{if ($hotel['latitude'] != 0 || $hotel['longitude'] != 0) && $viewOnMap}
|
||||
<a class="btn htl-map-direction-btn col-xs-6" href="http://maps.google.com/maps?daddr=({$hotel['latitude']},{$hotel['longitude']})" target="_blank">{l s='View on map'}</a>
|
||||
<a class="btn htl-map-direction-btn col-sm-6 col-xs-12" href="http://maps.google.com/maps?daddr=({$hotel['latitude']},{$hotel['longitude']})" target="_blank">{l s='View on map'}</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
@@ -91,7 +91,7 @@
|
||||
{/block}
|
||||
|
||||
{if (isset($pageLimit)) && $pageLimit > 1}
|
||||
<form id="our-hotel-list" method="post" action="{$currentPageUrl}">
|
||||
<form id="our-properties-list" method="post" action="{$currentPageUrl}">
|
||||
<input type="hidden" value="" name="pagination" id="pagination"/>
|
||||
</form>
|
||||
<div class="row pagination-container">
|
||||
Reference in New Issue
Block a user