PageRenderTime 49ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://github.com/blacktooth/Elgg
PHP | 24 lines | 14 code | 3 blank | 7 comment | 0 complexity | f31c65db3a59fdc478b445d0e4b56246 MD5 | raw file
Possible License(s): GPL-2.0, MIT, LGPL-2.1, BSD-3-Clause
  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 elgg_view('input/dropdown', array(
  10. 'name' => 'sort',
  11. 'options_values' => $vars['sort_options'],
  12. 'value' => $vars['sort'],
  13. ));
  14. echo elgg_view('input/hidden', array(
  15. 'name' => 'category',
  16. 'value' => $vars['category'],
  17. ));
  18. echo elgg_view('input/submit', array(
  19. 'value' => elgg_echo('sort'),
  20. 'class' => 'elgg-button elgg-button-action'
  21. ));