access_denied.phtml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. ?>
  8. <?php
  9. /**
  10. * @see \Magento\Backend\Block\Denied
  11. */
  12. ?>
  13. <hr class="access-denied-hr"/>
  14. <div class="access-denied-page">
  15. <h2 class="page-heading"><?= $block->escapeHtml(__('Sorry, you need permissions to view this content.')) ?></h2>
  16. <strong><?= $block->escapeHtml(__('Next steps')) ?></strong>
  17. <ul>
  18. <li><span><?= $block->escapeHtml(__('If you think this is an error, try signing out and signing in again.')) ?></span></li>
  19. <li><span><?= $block->escapeHtml(__('Contact a system administrator or store owner to gain permissions.')) ?></span></li>
  20. <li>
  21. <span><?= $block->escapeHtml(__('Return to ')) ?>
  22. <?php if(isset($_SERVER['HTTP_REFERER'])): ?>
  23. <a href="<?= $block->escapeUrl(__($_SERVER['HTTP_REFERER'])) ?>">
  24. <?= $block->escapeHtml(__('previous page')) ?></a><?= $block->escapeHtml(__('.')) ?>
  25. <?php else: ?>
  26. <a href="<?= $block->escapeHtmlAttr(__('javascript:history.back()')) ?>">
  27. <?= $block->escapeHtml(__('previous page')) ?></a><?= $block->escapeHtml(__('.')) ?>
  28. <?php endif ?>
  29. </span>
  30. </li>
  31. </ul>
  32. </div>