SproutCMS

This is the code documentation for the SproutCMS project

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

  1. <?php
  2. use Sprout\Helpers\Enc;
  3. use Sprout\Helpers\Text;
  4. ?>
  5.  
  6. <style>
  7. .dbtools-box { color: #333; text-decoration: none; min-height: 150px; }
  8. .dbtools-box:hover { color: #333; text-decoration: none; box-shadow: 0 0 2px 2px #c3c7d4; }
  9. .dbtools-box h4 { margin: 0 0 0.5em 0; font-size: 20px; }
  10. .dbtools-box span { font-size: small; color: #666; }
  11. </style>
  12.  
  13. <div class="info">These tools allow you to manage various aspects of this SproutCMS install.</div>
  14.  
  15. <?php foreach ($sections as $section => $tools): ?>
  16. <h3><?= Enc::html($section); ?></h3>
  17. <div class="dbtools-wrap columns">
  18. <?php $index = 0; ?>
  19.  
  20. <?php foreach ($tools as $tool): ?>
  21. <a href="<?= Enc::html($tool['url']); ?>" class="<?= Enc::html($base_class . (++$index % 4 === 0 ? ' column-last' : '')); ?>">
  22. <h4><?= Enc::html($tool['name']); ?></h4>
  23. <p><?= Text::limitedSubsetHtml($tool['desc']); ?></p>
  24. </a>
  25. <?php endforeach; ?>
  26. </div>
  27. <?php endforeach; ?>
  28.