Skip to content

Commit f616a52

Browse files
author
Hwashiang Yu
committed
MC-17400: Calendar template update
- Updated calendar template
1 parent b5f44f2 commit f616a52

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

app/code/Magento/Theme/view/frontend/templates/js/calendar.phtml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ require([
2424
dayNamesMin: <?= /* @noEscape */ $days['abbreviated'] ?>,
2525
monthNames: <?= /* @noEscape */ $months['wide'] ?>,
2626
monthNamesShort: <?= /* @noEscape */ $months['abbreviated'] ?>,
27-
infoTitle: "<?= /* @noEscape */ __('About the calendar') ?>",
28-
firstDay: <?= /* @noEscape */ $firstDay ?>,
29-
closeText: "<?= /* @noEscape */ __('Close') ?>",
30-
currentText: "<?= /* @noEscape */ __('Go Today') ?>",
31-
prevText: "<?= /* @noEscape */ __('Previous') ?>",
32-
nextText: "<?= /* @noEscape */ __('Next') ?>",
33-
weekHeader: "<?= /* @noEscape */ __('WK') ?>",
34-
timeText: "<?= /* @noEscape */ __('Time') ?>",
35-
hourText: "<?= /* @noEscape */ __('Hour') ?>",
36-
minuteText: "<?= /* @noEscape */ __('Minute') ?>",
27+
infoTitle: "<?= $block->escapeJs(__('About the calendar')) ?>",
28+
firstDay: <?= (int)$firstDay ?>,
29+
closeText: "<?= $block->escapeJs(__('Close')) ?>",
30+
currentText: "<?= $block->escapeJs(__('Go Today')) ?>",
31+
prevText: "<?= $block->escapeJs(__('Previous')) ?>",
32+
nextText: "<?= $block->escapeJs(__('Next')) ?>",
33+
weekHeader: "<?= $block->escapeJs(__('WK')) ?>",
34+
timeText: "<?= $block->escapeJs(__('Time')) ?>",
35+
hourText: "<?= $block->escapeJs(__('Hour')) ?>",
36+
minuteText: "<?= $block->escapeJs(__('Minute')) ?>",
3737
dateFormat: $.datepicker.RFC_2822,
3838
showOn: "button",
3939
showAnim: "",

0 commit comments

Comments
 (0)