SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/dbtools/navigation.php

  1. <?php
  2. use Sprout\Controllers\DbToolsController;
  3. use Sprout\Helpers\Enc;
  4. ?>
  5.  
  6.  
  7. <p>
  8. <a href="dbtools" class="button button-small">Overview</a>
  9. </p>
  10.  
  11. <?php foreach (DbToolsController::$tools as $section => $subtools): ?>
  12. <div class="sidebar-box">
  13. <h2 class="icon-before icon-settings"><?php echo Enc::html($section); ?></h2>
  14. <div class="sidebar-box-content">
  15. <?php
  16. echo '<ul class="list-style-1">';
  17. foreach ($subtools as $item) {
  18. echo '<li class="database-tool"><a href="', $item['url'], '">';
  19. echo '<span>', Enc::html($item['name']), '</span>';
  20. echo '</a></li>';
  21. }
  22. echo '</ul>';
  23. ?>
  24. </div>
  25. </div>
  26. <?php endforeach; ?>