Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
tabs.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11 
12 <?php if ($block->getTabs()): ?>
13  <div id="<?= /* @escapeNotVerified */ $block->getId() ?>" class="config-nav">
14  <?php
16  foreach ($block->getTabs() as $_tab):
17  ?>
18 
19  <?php
21  foreach ($_tab->getChildren() as $_section) {
22  if ($block->isSectionActive($_section)) {
23  $activeCollapsible = true;
24  }
25  }
26  ?>
27 
28  <div class="config-nav-block admin__page-nav _collapsed
29  <?php if ($_tab->getClass()): ?>
30  <?= /* @escapeNotVerified */ $_tab->getClass() ?>
31  <?php endif ?>"
32  data-mage-init='{"collapsible":{"active": "<?= /* @escapeNotVerified */ $activeCollapsible ?>",
33  "openedState": "_show",
34  "closedState": "_hide",
35  "collapsible": true,
36  "animate": 200}}'>
37  <div class="admin__page-nav-title title _collapsible" data-role="title">
38  <strong><?= /* @escapeNotVerified */ $_tab->getLabel() ?></strong>
39  </div>
40 
41  <ul class="admin__page-nav-items items" data-role="content">
42  <?php $_iterator = 1; ?>
43  <?php
45  foreach ($_tab->getChildren() as $_section): ?>
46  <li class="admin__page-nav-item item
47  <?= /* @escapeNotVerified */ $_section->getClass() ?>
48  <?php if ($block->isSectionActive($_section)): ?> _active<?php endif ?>
49  <?= $_tab->getChildren()->isLast($_section) ? ' _last' : '' ?>">
50  <a href="<?= /* @escapeNotVerified */ $block->getSectionUrl($_section) ?>"
51  class="admin__page-nav-link item-nav">
52  <span><?= /* @escapeNotVerified */ $_section->getLabel() ?></span>
53  </a>
54  </li>
55  <?php $_iterator++; ?>
56  <?php endforeach; ?>
57  </ul>
58 
59  </div>
60  <?php
61  endforeach;
62  ?>
63  </div>
64 <?php endif; ?>
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
$block
Definition: block.php:8
foreach($_tab->getChildren() as $_section) if( $_tab->getClass())() ?><?php endif ?>" data-mage-init $_iterator
Definition: tabs.phtml:42
endif
Definition: tabs.phtml:23
$_tabClass $_tabType $_tabHref if($block->getTabIsHidden($_tab)) endforeach
Definition: tabs.phtml:57
$activeCollapsible
Definition: tabs.phtml:32