block_groupnew.php 989 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_groupnew.php 25525 2011-11-14 04:39:11Z zhangguosheng $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. require_once libfile('block_group', 'class/block/group');
  12. class block_groupnew extends block_group {
  13. function block_groupnew() {
  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. );
  32. }
  33. function name() {
  34. return lang('blockclass', 'blockclass_group_script_groupnew');
  35. }
  36. function cookparameter($parameter) {
  37. $parameter['orderby'] = 'dateline';
  38. return parent::cookparameter($parameter);
  39. }
  40. }
  41. ?>