Skip to content

Instantly share code, notes, and snippets.

@magevision
Last active March 7, 2023 08:33
Show Gist options
  • Save magevision/b017a2cec44691ed4d744f92986e8818 to your computer and use it in GitHub Desktop.
Save magevision/b017a2cec44691ed4d744f92986e8818 to your computer and use it in GitHub Desktop.
AddCustomAdminNotice
<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>
<?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