block_activitynew.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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_activitynew.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_activity', 'class/block/forum');
  12. class block_activitynew extends block_activity {
  13. function block_activitynew() {
  14. $this->setting = array(
  15. 'fids' => array(
  16. 'title' => 'activitylist_fids',
  17. 'type' => 'mselect',
  18. 'value' => array()
  19. ),
  20. 'viewmod' => array(
  21. 'title' => 'threadlist_viewmod',
  22. 'type' => 'radio'
  23. ),
  24. 'class' => array(
  25. 'title' => 'activitylist_class',
  26. 'type' => 'select',
  27. 'value' => array()
  28. ),
  29. 'titlelength' => array(
  30. 'title' => 'activitylist_titlelength',
  31. 'type' => 'text',
  32. 'default' => 40
  33. ),
  34. 'summarylength' => array(
  35. 'title' => 'activitylist_summarylength',
  36. 'type' => 'text',
  37. 'default' => 80
  38. ),
  39. 'startrow' => array(
  40. 'title' => 'activitylist_startrow',
  41. 'type' => 'text',
  42. 'default' => 0
  43. ),
  44. );
  45. }
  46. function name() {
  47. return lang('blockclass', 'blockclass_activity_script_activitynew');
  48. }
  49. function cookparameter($parameter) {
  50. $parameter['orderby'] = 'dateline';
  51. return parent::cookparameter($parameter);
  52. }
  53. }
  54. ?>