SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/admin/extra_page_sidebar.php

  1. <?php
  2. use Sprout\Helpers\Enc;
  3.  
  4.  
  5. ?>
  6.  
  7.  
  8. <div class="inline-buttons sidebar-action-buttons -clearfix">
  9. <a class="icon-after icon-add button button-small" href="SITE/admin/add/extra_page">Add snippet page</a>
  10. </div>
  11.  
  12. <?php if (count($snippets)): ?>
  13. <div class="sidebar-box">
  14. <ul class="list-style-1">
  15. <?php foreach($snippets as $id => $label): ?>
  16. <li class="ext_txt"><a href="SITE/admin/edit/extra_page/<?php echo Enc::html($id); ?>">Edit <?php echo Enc::html($label); ?></a></li>
  17. <?php endforeach; ?>
  18. </ul>
  19. </div>
  20. <?php endif; ?>
  21.