block_groupactivitynew.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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_groupactivitynew.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_groupactivity', 'class/block/group');
  12. class block_groupactivitynew extends block_groupactivity {
  13. function block_groupactivitynew() {
  14. $this->setting = array(
  15. 'gtids' => array(
  16. 'title' => 'groupactivity_gtids',
  17. 'type' => 'mselect',
  18. 'value' => array(
  19. ),
  20. ),
  21. 'class' => array(
  22. 'title' => 'groupactivity_class',
  23. 'type' => 'select',
  24. 'value' => array()
  25. ),
  26. 'gviewperm' => array(
  27. 'title' => 'groupactivity_gviewperm',
  28. 'type' => 'mradio',
  29. 'value' => array(
  30. array('0', 'groupactivity_gviewperm_only_member'),
  31. array('1', 'groupactivity_gviewperm_all_member')
  32. ),
  33. 'default' => '1'
  34. ),
  35. 'titlelength' => array(
  36. 'title' => 'groupactivity_titlelength',
  37. 'type' => 'text',
  38. 'default' => 40
  39. ),
  40. 'summarylength' => array(
  41. 'title' => 'groupactivity_summarylength',
  42. 'type' => 'text',
  43. 'default' => 80
  44. ),
  45. 'startrow' => array(
  46. 'title' => 'groupactivity_startrow',
  47. 'type' => 'text',
  48. 'default' => 0
  49. ),
  50. );
  51. }
  52. function name() {
  53. return lang('blockclass', 'blockclass_groupactivity_script_groupactivitynew');
  54. }
  55. function cookparameter($parameter) {
  56. $parameter['orderby'] = 'dateline';
  57. return parent::cookparameter($parameter);
  58. }
  59. }
  60. ?>