Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. <div class="sidebar col-side">
  2. <div class="sidebartop">
  3. <p><span class="hideonmobile sidetop">DeinMusikBot</span></a></p>
  4. </div>
  5. <ul class="navbar">
  6. <li><a href="{ :app_url }dashboard"><img alt="Dashboard" class="svg"
  7. src="{ :app_url }_views/boxed/imgs/dashboard.svg"><span
  8. class="hideonmobile effect-underline">Dashboard</span></a></li>
  9. <li><a href="{ :app_url }bot/new"><img alt="MusikBot" class="svg"
  10. src="{ :app_url }_views/boxed/imgs/musicbot.svg"><span
  11. class="hideonmobile"><?= \Controllers\Panel::getLanguage()->get("misc", "m_sidebar_create_new"); ?></span></a></li>
  12.  
  13. <!-- Module Loading -->
  14. <?php
  15. $user = unserialize(USER);
  16. if (count(\Controllers\Panel::getModules()) > 0):
  17. foreach (\Controllers\Panel::getModules() as $module):
  18. if (count($module->getSidebar()) > 0):
  19. ?>
  20. <li class="heading"><?= $module->getSidebarTitle(); ?> </li>
  21. <?php foreach ($module->getSidebar() as $link): ?>
  22. <?php if (\Controllers\Panel::getPermissionManager()->hasPermission($user->getPermission(),
  23. $link[2])): ?>
  24. <li>
  25. <a href="{ :app_url }<?= $link[1]; ?>">
  26. <img alt="MusikBots" class="svg"
  27. src="{ :app_url }_views/boxed/imgs/createticket.svg"><span class="hidemobile"><?= $link[0]; ?></span>
  28. </a>
  29. </li>
  30. <?php endif; ?>
  31. <?php endforeach ?>
  32. <?php endif; endforeach; endif ?>
  33. <!-- End Module Loading -->
  34.  
  35. <?php if (\Controllers\Panel::getPermissionManager()->hasPermission($user->getPermission(), "admin.users") ||
  36. \Controllers\Panel::getPermissionManager()->hasPermission($user->getPermission(), "admin.bots")): ?>
  37.  
  38. <li class="heading">Admin</li>
  39. <li><a href="{ :app_url }admin/users"><img alt="Benutzerübersicht" class="svg"
  40. src="{ :app_url }_views/boxed/imgs/useroverview.svg"><span
  41. class="hideonmobile"><?= \Controllers\Panel::getLanguage()->get("misc", "m_sidebar_admin_users"); ?></span></a></li>
  42. <li><a href="{ :app_url }admin/bots"><img alt="MusikBots" class="svg"
  43. src="{ :app_url }_views/boxed/imgs/musicbot.svg"><span
  44. class="hideonmobile"><?= \Controllers\Panel::getLanguage()->get("misc", "m_sidebar_admin_bots"); ?></span></a></li>
  45.  
  46. { endif }
  47. </ul>
  48. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement