Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
notices.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
14 ?>
15 <?php if ($block->displayNoscriptNotice()): ?>
16  <noscript>
17  <div class="message global noscript">
18  <div class="content">
19  <p>
20  <strong><?= /* @escapeNotVerified */ __('JavaScript seems to be disabled in your browser.') ?></strong>
21  <span><?= /* @escapeNotVerified */ __('For the best experience on our site, be sure to turn on Javascript in your browser.') ?></span>
22  </p>
23  </div>
24  </div>
25  </noscript>
26 <?php endif; ?>
27 <?php if ($block->displayNoLocalStorageNotice()): ?>
28  <div class="notice global site local_storage" style="display: none;">
29  <div class="content">
30  <p>
31  <strong><?= /* @escapeNotVerified */ __('Local Storage seems to be disabled in your browser.') ?></strong><br />
32  <?= /* @escapeNotVerified */ __('For the best experience on our site, be sure to turn on Local Storage in your browser.') ?>
33  </p>
34  </div>
35  </div>
36  <script>
37 require(['jquery'], function(jQuery){
38 
39  // <![CDATA[
40  (function($) {
41  var test = 'test';
42  try {
43  localStorage.setItem(test, test);
44  localStorage.removeItem(test);
45  } catch(e) {
46  $(".notice.global.site.local_storage").show();
47  }
48  })(jQuery);
49  // ]]>
50 
51 });
52 </script>
53 <?php endif; ?>
54 <?php if ($block->displayDemoNotice()): ?>
55  <div class="message global demo">
56  <div class="content">
57  <p><?= /* @escapeNotVerified */ __('This is a demo store. No orders will be fulfilled.') ?></p>
58  </div>
59  </div>
60 <?php endif; ?>
__()
Definition: __.php:13
$block
Definition: block.php:8
if( $block->displayNoscriptNotice())( 'JavaScript may be disabled in your browser.') ?></strong ><? endif
Definition: notices.phtml:15
jQuery('.store-switcher .dropdown-menu li a').each(function()
Definition: switcher.phtml:203