Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
access_denied.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
14 ?>
15 <hr class="access-denied-hr"/>
16 <div class="access-denied-page">
17  <h2 class="page-heading"><?= $block->escapeHtml(__('Sorry, you need permissions to view this content.')) ?></h2>
18  <strong><?= $block->escapeHtml(__('Next steps')) ?></strong>
19  <ul>
20  <li><span><?= $block->escapeHtml(__('If you think this is an error, try signing out and signing in again.')) ?></span></li>
21  <li><span><?= $block->escapeHtml(__('Contact a system administrator or store owner to gain permissions.')) ?></span></li>
22  <li>
23  <span><?= $block->escapeHtml(__('Return to ')) ?>
24  <?php if(isset($_SERVER['HTTP_REFERER'])): ?>
25  <a href="<?= $block->escapeUrl(__($_SERVER['HTTP_REFERER'])) ?>">
26  <?= $block->escapeHtml(__('previous page')) ?></a><?= $block->escapeHtml(__('.')) ?>
27  <?php else: ?>
28  <a href="<?= $block->escapeHtmlAttr(__('javascript:history.back()')) ?>">
29  <?= $block->escapeHtml(__('previous page')) ?></a><?= $block->escapeHtml(__('.')) ?>
30  <?php endif ?>
31  </span>
32  </li>
33  </ul>
34 </div>
__()
Definition: __.php:13
$block
Definition: block.php:8
endif
Definition: 404.phtml:116