SproutCMS

This is the code documentation for the SproutCMS project

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

  1. <?php
  2. /*
  3.  * Copyright (C) 2017 Karmabunny Pty Ltd.
  4.  *
  5.  * This file is a part of SproutCMS.
  6.  *
  7.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  8.  * of the GNU General Public License as published by the Free Software Foundation, either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * For more information, visit <http://getsproutcms.com>.
  12.  */
  13.  
  14. use Sprout\Helpers\Enc;
  15. ?>
  16.  
  17. <form action="SITE/admin/contents/<?php echo Enc::html(strtolower($controller_name)); ?>" method="get" class="-clearfix">
  18.  
  19. <div class="mainbar-with-right-sidebar">
  20. <?php foreach ($refine->getGroups() as $group => $widgets): ?>
  21. <h3><?php echo Enc::html($group); ?></h3>
  22.  
  23. <?php
  24. foreach ($widgets as $widget):
  25. echo $widget->render();
  26. endforeach;
  27. ?>
  28.  
  29. <?php endforeach; ?>
  30. </div>
  31.  
  32. <div class="right-sidebar">
  33. <div class="right-sidebar-anchor"></div>
  34. <div class="right-sidebar-inner">
  35. <div class="save-changes-box">
  36. <h2 class="icon-before icon-search">Search</h2>
  37. <div class="save-changes-box-bottom -clearfix">
  38. <button type="submit" class="save-changes-save-button button button-regular button-green icon-after icon-search">Search <?php echo Enc::html($friendly_name); ?></button>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43.  
  44. </form>
  45.