block_grouphot.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: block_grouphot.php 23608 2011-07-27 08:10:07Z cnteacher $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. require_once libfile('block_group', 'class/block/group');
  12. class block_grouphot extends block_group {
  13. function block_grouphot() {
  14. $this->setting = array(
  15. 'gtids' => array(
  16. 'title' => 'grouplist_gtids',
  17. 'type' => 'mselect',
  18. 'value' => array(
  19. ),
  20. ),
  21. 'titlelength' => array(
  22. 'title' => 'grouplist_titlelength',
  23. 'type' => 'text',
  24. 'default' => 40
  25. ),
  26. 'summarylength' => array(
  27. 'title' => 'grouplist_summarylength',
  28. 'type' => 'text',
  29. 'default' => 80
  30. ),
  31. 'orderby' => array(
  32. 'title' => 'grouplist_orderby',
  33. 'type' => 'mradio',
  34. 'value' => array(
  35. array('threads', 'grouplist_orderby_threads'),
  36. array('posts', 'grouplist_orderby_posts'),
  37. array('todayposts', 'grouplist_orderby_todayposts'),
  38. array('membernum', 'grouplist_orderby_membernum'),
  39. ),
  40. 'default' => 'posts'
  41. )
  42. );
  43. }
  44. function name() {
  45. return lang('blockclass', 'blockclass_group_script_grouphot');
  46. }
  47. }
  48. ?>