Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
calendar.phtml
Go to the documentation of this file.
1 <?php
6 // no notice of license for now
7 ?>
8 
9 <?php
15 ?>
16 
17 <script>
18 require([
19  "jquery",
20  "jquery/ui"
21 ], function($){
22 
23  $.extend(true, $, {
24  calendarConfig: {
25  dayNames: <?= /* @escapeNotVerified */ $days['wide'] ?>,
26  dayNamesMin: <?= /* @escapeNotVerified */ $days['abbreviated'] ?>,
27  monthNames: <?= /* @escapeNotVerified */ $months['wide'] ?>,
28  monthNamesShort: <?= /* @escapeNotVerified */ $months['abbreviated'] ?>,
29  infoTitle: "<?= /* @escapeNotVerified */ __('About the calendar') ?>",
30  firstDay: <?= /* @escapeNotVerified */ $firstDay ?>,
31  closeText: "<?= /* @escapeNotVerified */ __('Close') ?>",
32  currentText: "<?= /* @escapeNotVerified */ __('Go Today') ?>",
33  prevText: "<?= /* @escapeNotVerified */ __('Previous') ?>",
34  nextText: "<?= /* @escapeNotVerified */ __('Next') ?>",
35  weekHeader: "<?= /* @escapeNotVerified */ __('WK') ?>",
36  timeText: "<?= /* @escapeNotVerified */ __('Time') ?>",
37  hourText: "<?= /* @escapeNotVerified */ __('Hour') ?>",
38  minuteText: "<?= /* @escapeNotVerified */ __('Minute') ?>",
39  dateFormat: $.datepicker.RFC_2822,
40  showOn: "button",
41  showAnim: "",
42  changeMonth: true,
43  changeYear: true,
44  buttonImageOnly: null,
45  buttonImage: null,
46  showButtonPanel: true,
47  showOtherMonths: true,
48  showWeek: false,
49  timeFormat: '',
50  showTime: false,
51  showHour: false,
52  showMinute: false,
53  serverTimezoneSeconds: <?= (int) $block->getStoreTimestamp() ?>,
54  serverTimezoneOffset: <?= (int) $block->getTimezoneOffsetSeconds() ?>,
55  yearRange: '<?= /* @escapeNotVerified */ $block->getYearRange() ?>'
56  }
57  });
58 
59 enUS = <?= /* @escapeNotVerified */ $enUS ?>; // en_US locale reference
60 
61 });
62 </script>
$block
Definition: block.php:8