From 161a9f87dff6d838a835f7b00a745f0f49941513 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 23 Nov 2022 18:16:22 +0530 Subject: [PATCH] Remove full=0 for applicable dateFormat calls and unused variable declarations --- .../template/controllers/dashboard/helpers/view/view.tpl | 4 ++-- .../controllers/orders/_current_cart_details_data.tpl | 2 +- .../default/template/controllers/orders/_product_line.tpl | 2 +- .../template/controllers/orders/helpers/view/view.tpl | 8 ++++---- modules/dashactivity/views/js/dashactivity.js | 8 -------- modules/dashoccupancy/dashoccupancy.php | 2 -- modules/dashoccupancy/views/js/dashoccupancy.js | 7 ------- .../views/templates/hook/dashboard_zone_one.tpl | 5 ----- .../admin/hotel_rooms_booking/helpers/view/view.tpl | 8 ++++---- 9 files changed, 12 insertions(+), 34 deletions(-) diff --git a/admin/themes/default/template/controllers/dashboard/helpers/view/view.tpl b/admin/themes/default/template/controllers/dashboard/helpers/view/view.tpl index 10d7c920a..38579001e 100644 --- a/admin/themes/default/template/controllers/dashboard/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/dashboard/helpers/view/view.tpl @@ -72,9 +72,9 @@ diff --git a/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl b/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl index 9fc61dc2a..c26576861 100644 --- a/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl +++ b/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl @@ -57,7 +57,7 @@ {/if} - {dateFormat date=$data.date_from full=0} - {dateFormat date=$data.date_to full=0} + {dateFormat date=$data.date_from} - {dateFormat date=$data.date_to} {if $data.feature_price_diff != 0} {assign var=shown_room_type_price value=$data.feature_price_tax_excl} diff --git a/admin/themes/default/template/controllers/orders/_product_line.tpl b/admin/themes/default/template/controllers/orders/_product_line.tpl index 4a81d43a5..db83f5167 100644 --- a/admin/themes/default/template/controllers/orders/_product_line.tpl +++ b/admin/themes/default/template/controllers/orders/_product_line.tpl @@ -54,7 +54,7 @@ - {dateFormat date=$data.date_from full=0} - {dateFormat date=$data.date_to full=0} + {dateFormat date=$data.date_from} - {dateFormat date=$data.date_to} {if $can_edit} - - diff --git a/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/view.tpl b/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/view.tpl index b2cee036b..745368c1b 100644 --- a/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/view.tpl +++ b/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/view.tpl @@ -215,7 +215,7 @@ {foreach from=$book_v['data']['available'] key=avai_k item=avai_v} {$avai_v['room_num']|escape:'htmlall':'UTF-8'} - {dateFormat date=date('Y-m-d', strtotime($date_from)) full=0} - {dateFormat date=date('Y-m-d', strtotime($date_to)) full=0} + {dateFormat date=date('Y-m-d', strtotime($date_from))} - {dateFormat date=date('Y-m-d', strtotime($date_to))} {$avai_v['room_comment']|escape:'htmlall':'UTF-8'} {foreach $allotment_types as $allotment_type} @@ -255,7 +255,7 @@ {foreach from=$part_v['avai_dates'] key=sub_part_k item=sub_part_v} -

{dateFormat date=date('Y-m-d', strtotime($sub_part_v['date_from'])) full=0} - {dateFormat date=date('Y-m-d', strtotime($sub_part_v['date_to'])) full=0}

+

{dateFormat date=date('Y-m-d', strtotime($sub_part_v['date_from']))} - {dateFormat date=date('Y-m-d', strtotime($sub_part_v['date_to']))}

{foreach $allotment_types as $allotment_type} @@ -299,7 +299,7 @@ {foreach from=$booked_v['detail'] key=rm_dtl_k item=rm_dtl_v} - + - +
{dateFormat date=date('Y-m-d', strtotime($rm_dtl_v['date_from'])) full=0} - {dateFormat date=date('Y-m-d', strtotime($rm_dtl_v['date_to'])) full=0}{dateFormat date=date('Y-m-d', strtotime($rm_dtl_v['date_from']))} - {dateFormat date=date('Y-m-d', strtotime($rm_dtl_v['date_to']))} {$rm_dtl_v['comment']|escape:'htmlall':'UTF-8'} {if $rm_dtl_v['booking_type'] == HotelBookingDetail::ALLOTMENT_AUTO}{l s='Auto Allotment' mod='hotelreservationsystem'}{elseif $rm_dtl_v['booking_type'] == HotelBookingDetail::ALLOTMENT_MANUAL}{l s='Manual Allotment' mod='hotelreservationsystem'}{/if} @@ -381,7 +381,7 @@
{$cart_data['room_num']|escape:'htmlall':'UTF-8'} {$cart_data['room_type']|escape:'htmlall':'UTF-8'}{dateFormat date=$cart_data['date_from'] full=0} - {dateFormat date=$cart_data['date_to'] full=0}{dateFormat date=$cart_data['date_from']} - {dateFormat date=$cart_data['date_to']} {convertPrice price=$cart_data['amt_with_qty']}