From 8989394383b1dd05192b07d4b835cc559a07e375 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 17 Sep 2024 12:01:19 +0530 Subject: [PATCH] Updated the block structure for the included files and the files including them --- .../templates/hook/_partials/review-list.tpl | 4 +- .../templates/hook/product-tab-content.tpl | 16 +- .../templates/hook/categoryPageSearch.tpl | 4 +- .../templates/hook/landingPageSearch.tpl | 2 + .../templates/hook/roomTypePageSearch.tpl | 4 +- .../views/templates/hook/searchForm.tpl | 344 ++++--- .../_partials/booking-form.tpl | 416 +++++---- .../_partials/occupancy_field.tpl | 262 +++--- .../_partials/order-message.tpl | 38 +- .../_partials/order-room-detail.tpl | 262 +++--- .../_partials/quantity_field.tpl | 30 +- .../_partials/room_type_list.tpl | 222 ++--- .../_partials/service-products-list-row.tpl | 128 ++- .../_partials/service-products-list.tpl | 14 +- .../_partials/service-products.tpl | 84 +- themes/hotel-reservation-theme/address.tpl | 4 +- .../authentication.tpl | 6 +- themes/hotel-reservation-theme/category.tpl | 4 +- .../hotel-reservation-theme/contact-form.tpl | 4 +- themes/hotel-reservation-theme/errors.tpl | 28 +- themes/hotel-reservation-theme/footer.tpl | 4 +- themes/hotel-reservation-theme/global.tpl | 118 ++- .../guest-tracking.tpl | 13 +- themes/hotel-reservation-theme/header.tpl | 4 +- themes/hotel-reservation-theme/history.tpl | 234 ++--- themes/hotel-reservation-theme/identity.tpl | 4 +- .../order-confirmation.tpl | 9 +- .../hotel-reservation-theme/order-detail.tpl | 13 +- .../order-opc-advanced-payment-option.tpl | 84 +- .../order-opc-advanced.tpl | 8 +- .../order-opc-edit-guest-info.tpl | 587 ++++++------ .../order-opc-new-account-advanced.tpl | 770 ++++++++-------- .../order-opc-new-account.tpl | 764 ++++++++------- themes/hotel-reservation-theme/order-opc.tpl | 32 +- .../order-payment-advanced.tpl | 236 ++--- .../order-payment-classic.tpl | 584 ++++++------ .../hotel-reservation-theme/order-payment.tpl | 52 +- .../hotel-reservation-theme/order-return.tpl | 4 +- themes/hotel-reservation-theme/order-slip.tpl | 4 +- .../hotel-reservation-theme/order-steps.tpl | 106 ++- themes/hotel-reservation-theme/password.tpl | 4 +- themes/hotel-reservation-theme/product.tpl | 24 +- .../shopping-cart-advanced.tpl | 637 +++++++------ .../hotel-reservation-theme/shopping-cart.tpl | 866 +++++++++--------- 44 files changed, 3552 insertions(+), 3485 deletions(-) diff --git a/modules/qlohotelreview/views/templates/hook/_partials/review-list.tpl b/modules/qlohotelreview/views/templates/hook/_partials/review-list.tpl index 62452447d..4e2b42c2c 100644 --- a/modules/qlohotelreview/views/templates/hook/_partials/review-list.tpl +++ b/modules/qlohotelreview/views/templates/hook/_partials/review-list.tpl @@ -19,7 +19,9 @@
{foreach $reviews as $review} - {include file='./review.tpl' review=$review} + {block name='review'} + {include file='./review.tpl' review=$review} + {/block} {/foreach}
diff --git a/modules/qlohotelreview/views/templates/hook/product-tab-content.tpl b/modules/qlohotelreview/views/templates/hook/product-tab-content.tpl index 2c764c291..c6ca39de5 100644 --- a/modules/qlohotelreview/views/templates/hook/product-tab-content.tpl +++ b/modules/qlohotelreview/views/templates/hook/product-tab-content.tpl @@ -20,10 +20,18 @@ {block name='hotel_reviews'}
{if is_array($reviews) && count($reviews)} - {include file='./_partials/review-summary.tpl'} - {include file='./_partials/media-list.tpl'} - {include file='./_partials/list-actions.tpl'} - {include file='./_partials/review-list.tpl'} + {block name='review_summary'} + {include file='./_partials/review-summary.tpl'} + {/block} + {block name='media_list'} + {include file='./_partials/media-list.tpl'} + {/block} + {block name='list_actions'} + {include file='./_partials/list-actions.tpl'} + {/block} + {block name='review_list'} + {include file='./_partials/review-list.tpl'} + {/block} {else} {l s='No reviews.' mod='qlohotelreview'} {/if} diff --git a/modules/wkroomsearchblock/views/templates/hook/categoryPageSearch.tpl b/modules/wkroomsearchblock/views/templates/hook/categoryPageSearch.tpl index a46f54eb5..dca7a8082 100644 --- a/modules/wkroomsearchblock/views/templates/hook/categoryPageSearch.tpl +++ b/modules/wkroomsearchblock/views/templates/hook/categoryPageSearch.tpl @@ -24,7 +24,9 @@

{l s='Search Rooms' mod='wkroomsearchblock'}


- {include file="./searchForm.tpl"} + {block name='search_form'} + {include file="./searchForm.tpl"} + {/block} {/if} {/block} diff --git a/modules/wkroomsearchblock/views/templates/hook/landingPageSearch.tpl b/modules/wkroomsearchblock/views/templates/hook/landingPageSearch.tpl index 4b0570280..0849db558 100644 --- a/modules/wkroomsearchblock/views/templates/hook/landingPageSearch.tpl +++ b/modules/wkroomsearchblock/views/templates/hook/landingPageSearch.tpl @@ -29,7 +29,9 @@
+ {block name='search_form'} {include file="./searchForm.tpl"} + {/block}
diff --git a/modules/wkroomsearchblock/views/templates/hook/roomTypePageSearch.tpl b/modules/wkroomsearchblock/views/templates/hook/roomTypePageSearch.tpl index f03d500ed..993330afe 100644 --- a/modules/wkroomsearchblock/views/templates/hook/roomTypePageSearch.tpl +++ b/modules/wkroomsearchblock/views/templates/hook/roomTypePageSearch.tpl @@ -56,7 +56,9 @@

{l s='Searched results for' mod='wkroomsearchblock'}

{* search form *} - {include file="./searchForm.tpl"} + {block name='search_form'} + {include file="./searchForm.tpl"} + {/block} diff --git a/modules/wkroomsearchblock/views/templates/hook/searchForm.tpl b/modules/wkroomsearchblock/views/templates/hook/searchForm.tpl index 75edfaf85..5551ae430 100644 --- a/modules/wkroomsearchblock/views/templates/hook/searchForm.tpl +++ b/modules/wkroomsearchblock/views/templates/hook/searchForm.tpl @@ -17,168 +17,95 @@ * @license https://store.webkul.com/license.html *} -{block name='search_form'} -
- {block name='search_form_location'} - {if isset($location_enabled) && $location_enabled} -
- - - + + {block name='search_form_location'} + {if isset($location_enabled) && $location_enabled} +
+ + + - {/if} - {/block} - {block name='search_form_hotel'} - {if count($hotels_info) <= 1 && !$show_hotel_name} - - - - - - {else} -
- - - - +
+ {/if} + {/block} + {block name='search_form_hotel'} + {if count($hotels_info) <= 1 && !$show_hotel_name} + + + + + + {else} +
+ + + + -
- -
+
+
- {/if} - {/block} +
+ {/if} + {/block} - {block name='search_form_dates'} - {if isset($multiple_dates_input) && $multiple_dates_input} -
-
- -
{l s='Check-in' mod='wkroomsearchblock'}
-
-
- -
{l s='Check-out' mod='wkroomsearchblock'}
-
-
- {else} -
+ {block name='search_form_dates'} + {if isset($multiple_dates_input) && $multiple_dates_input} +
+
- -
{l s='Check-in' mod='wkroomsearchblock'}    {l s='Check-out' mod='wkroomsearchblock'}
+
{l s='Check-in' mod='wkroomsearchblock'}
- {/if} - {/block} +
+ +
{l s='Check-out' mod='wkroomsearchblock'}
+
+
+ {else} +
+ + +
{l s='Check-in' mod='wkroomsearchblock'}    {l s='Check-out' mod='wkroomsearchblock'}
+
+ {/if} + {/block} - {block name='search_form_occupancy'} - {if isset($is_occupancy_wise_search) && $is_occupancy_wise_search} -
-