123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- // @codingStandardsIgnoreFile
- ?>
- <?php
- /**
- * @var $block \Magento\Theme\Block\Html\Notices
- */
- ?>
- <?php if ($block->displayNoscriptNotice()): ?>
- <noscript>
- <div class="message global noscript">
- <div class="content">
- <p>
- <strong><?= /* @escapeNotVerified */ __('JavaScript seems to be disabled in your browser.') ?></strong>
- <span><?= /* @escapeNotVerified */ __('For the best experience on our site, be sure to turn on Javascript in your browser.') ?></span>
- </p>
- </div>
- </div>
- </noscript>
- <?php endif; ?>
- <?php if ($block->displayNoLocalStorageNotice()): ?>
- <div class="notice global site local_storage" style="display: none;">
- <div class="content">
- <p>
- <strong><?= /* @escapeNotVerified */ __('Local Storage seems to be disabled in your browser.') ?></strong><br />
- <?= /* @escapeNotVerified */ __('For the best experience on our site, be sure to turn on Local Storage in your browser.') ?>
- </p>
- </div>
- </div>
- <script>
- require(['jquery'], function(jQuery){
- // <![CDATA[
- (function($) {
- var test = 'test';
- try {
- localStorage.setItem(test, test);
- localStorage.removeItem(test);
- } catch(e) {
- $(".notice.global.site.local_storage").show();
- }
- })(jQuery);
- // ]]>
- });
- </script>
- <?php endif; ?>
- <?php if ($block->displayDemoNotice()): ?>
- <div class="message global demo">
- <div class="content">
- <p><?= /* @escapeNotVerified */ __('This is a demo store. No orders will be fulfilled.') ?></p>
- </div>
- </div>
- <?php endif; ?>
|