Last active
March 7, 2023 08:33
-
-
Save magevision/b017a2cec44691ed4d744f92986e8818 to your computer and use it in GitHub Desktop.
AddCustomAdminNotice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> | |
<body> | |
<referenceBlock name="global_notices"> | |
<action method="setTemplate"> | |
<argument name="template" xsi:type="string">MageVision_Blog83::page/notices.phtml</argument> | |
</action> | |
</referenceBlock> | |
</body> | |
</page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @see \Magento\Backend\Block\Page\Notices | |
*/ | |
?> | |
<?php if ($block->displayNoscriptNotice()) : ?> | |
<noscript> | |
<div class="messages"> | |
<div class="message message-warning message-noscript"> | |
<strong><?= $block->escapeHtml(__('JavaScript may be disabled in your browser.')) ?></strong> | |
<?= $block->escapeHtml(__('To use this website you must first enable JavaScript in your browser.')) ?> | |
</div> | |
</div> | |
</noscript> | |
<?php endif; ?> | |
<?php if ($block->displayDemoNotice()) : ?> | |
<div class="messages"> | |
<div class="message message-warning message-demo-mode"> | |
<?= $block->escapeHtml(__('This is only a demo store. You can browse and place orders, but nothing will be processed.')) ?> | |
</div> | |
</div> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment