You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.4 KiB

5 years ago
5 years ago
  1. <?php
  2. $context = BackendMenu::getContext();
  3. if (strpos($context->sideMenuCode, '|') !== false) {
  4. $menu = explode('|', $context->sideMenuCode);
  5. $context->mainMenuCode = $menu[0];
  6. $context->sideMenuCode = $menu[1];
  7. }
  8. if (isset($menu)):
  9. ?>
  10. <?= $this->makePartial(__DIR__ . '/../secondary/_sidenav.phtml', [
  11. 'context' => $context,
  12. ]) ?>
  13. <?php else: ?>
  14. <div class="layout-cell sidenav-tree bg-p <?=\Wms\Menu\Helpers\Menu::$minimizedCurrentMainMenu?:'';?>" data-control="sidenav-tree" data-search-input="#settings-search-input">
  15. <a class="back-link" href="<?= Backend::url('wms/menu') ?>"><i class="icon-angle-left"></i><?= e(trans('wms.menu::plugin.name')) ?></a>
  16. <div class="layout">
  17. <div class="layout-row min-size">
  18. <?= $this->makePartial(__DIR__ . '/_system_sidebar_menu_toolbar.phtml') ?>
  19. </div>
  20. <div class="layout-row">
  21. <div class="layout-cell">
  22. <div class="layout-relative">
  23. <div class="layout-absolute">
  24. <div class="control-scrollbar" data-control="scrollbar">
  25. <?= $this->makePartial(__DIR__ . '/_system_sidebar_menu.phtml') ?>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <?php endif; ?>