block_threaddigest.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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_threaddigest.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_thread', 'class/block/forum');
  12. class block_threaddigest extends block_thread {
  13. function block_threaddigest() {
  14. $this->setting = array(
  15. 'fids' => array(
  16. 'title' => 'threadlist_fids',
  17. 'type' => 'mselect',
  18. 'value' => array()
  19. ),
  20. 'digest' => array(
  21. 'title' => 'threadlist_digest',
  22. 'type' => 'mcheckbox',
  23. 'value' => array(
  24. array(1, 'threadlist_digest_1'),
  25. array(2, 'threadlist_digest_2'),
  26. array(3, 'threadlist_digest_3'),
  27. array(0, 'threadlist_digest_0')
  28. ),
  29. ),
  30. 'special' => array(
  31. 'title' => 'threadlist_special',
  32. 'type' => 'mcheckbox',
  33. 'value' => array(
  34. array(1, 'threadlist_special_1'),
  35. array(2, 'threadlist_special_2'),
  36. array(3, 'threadlist_special_3'),
  37. array(4, 'threadlist_special_4'),
  38. array(5, 'threadlist_special_5'),
  39. array(0, 'threadlist_special_0'),
  40. ),
  41. 'default' => array('0')
  42. ),
  43. 'viewmod' => array(
  44. 'title' => 'threadlist_viewmod',
  45. 'type' => 'radio'
  46. ),
  47. 'rewardstatus' => array(
  48. 'title' => 'threadlist_special_reward',
  49. 'type' => 'mradio',
  50. 'value' => array(
  51. array(0, 'threadlist_special_reward_0'),
  52. array(1, 'threadlist_special_reward_1'),
  53. array(2, 'threadlist_special_reward_2')
  54. ),
  55. 'default' => 0,
  56. ),
  57. 'picrequired' => array(
  58. 'title' => 'threadlist_picrequired',
  59. 'type' => 'radio',
  60. 'value' => '0'
  61. ),
  62. 'titlelength' => array(
  63. 'title' => 'threadlist_titlelength',
  64. 'type' => 'text',
  65. 'default' => 40
  66. ),
  67. 'summarylength' => array(
  68. 'title' => 'threadlist_summarylength',
  69. 'type' => 'text',
  70. 'default' => 80
  71. ),
  72. );
  73. }
  74. function name() {
  75. return lang('blockclass', 'blockclass_thread_script_threaddigest');
  76. }
  77. }
  78. ?>