PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/views/default/forms/admin/plugins/sort.php

http://github.com/Elgg/Elgg
PHP | 26 lines | 16 code | 3 blank | 7 comment | 0 complexity | 6451289aa83413e1bfda5ba090b04494 MD5 | raw file
Possible License(s): LGPL-3.0, MIT, GPL-2.0, BSD-3-Clause, LGPL-2.1, MPL-2.0-no-copyleft-exception
  1. <?php
  2. /**
  3. * Sort plugins form body
  4. *
  5. * @uses $vars['sort']
  6. * @uses $vars['sort_options']
  7. * @uses $vars['category']
  8. */
  9. echo '<div class="mtm">';
  10. echo elgg_view('input/dropdown', array(
  11. 'name' => 'sort',
  12. 'options_values' => $vars['sort_options'],
  13. 'value' => $vars['sort'],
  14. ));
  15. echo elgg_view('input/hidden', array(
  16. 'name' => 'category',
  17. 'value' => $vars['category'],
  18. ));
  19. echo elgg_view('input/submit', array(
  20. 'value' => elgg_echo('sort'),
  21. 'class' => 'elgg-button elgg-button-action'
  22. ));
  23. echo '</div>';