Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
stores.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11 <?php if (count($block->getGroups())>1): ?>
12 <div class="switcher store switcher-store" id="switcher-store">
13  <strong class="label switcher-label"><span><?= $block->escapeHtml(__('Select Store')) ?></span></strong>
14  <div class="actions dropdown options switcher-options">
15  <?php foreach ($block->getGroups() as $_group): ?>
16  <?php if ($_group->getId() == $block->getCurrentGroupId()): ?>
17  <div class="action toggle switcher-trigger"
18  role="button"
19  tabindex="0"
20  data-mage-init='{"dropdown":{}}'
21  data-toggle="dropdown"
22  data-trigger-keypress-button="true"
23  id="switcher-store-trigger">
24  <strong>
25  <span><?= $block->escapeHtml($_group->getName()) ?></span>
26  </strong>
27  </div>
28  <?php endif; ?>
29  <?php endforeach; ?>
30  <ul class="dropdown switcher-dropdown" data-target="dropdown">
31  <?php foreach ($block->getGroups() as $_group): ?>
32  <?php if (!($_group->getId() == $block->getCurrentGroupId())): ?>
33  <li class="switcher-option">
34  <a href="#" data-post='<?= /* @noEscape */ $block->getTargetStorePostData($_group->getDefaultStore()) ?>'>
35  <?= $block->escapeHtml($_group->getName()) ?>
36  </a>
37  </li>
38  <?php endif; ?>
39  <?php endforeach; ?>
40  </ul>
41  </div>
42 </div>
43 <?php endif; ?>
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
__()
Definition: __.php:13
$block
Definition: block.php:8
endif
Definition: stores.phtml:43
endforeach
Definition: stores.phtml:29