block_threadspecial.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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_threadspecial.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_threadspecial extends block_thread {
  13. function block_threadspecial() {
  14. $this->setting = array(
  15. 'fids' => array(
  16. 'title' => 'threadlist_fids',
  17. 'type' => 'mselect',
  18. 'value' => array()
  19. ),
  20. 'special' => array(
  21. 'title' => 'threadlist_special',
  22. 'type' => 'mcheckbox',
  23. 'value' => array(
  24. array(1, 'threadlist_special_1'),
  25. array(2, 'threadlist_special_2'),
  26. array(3, 'threadlist_special_3'),
  27. array(4, 'threadlist_special_4'),
  28. array(5, 'threadlist_special_5'),
  29. ),
  30. 'default' => array('1')
  31. ),
  32. 'viewmod' => array(
  33. 'title' => 'threadlist_viewmod',
  34. 'type' => 'radio'
  35. ),
  36. 'rewardstatus' => array(
  37. 'title' => 'threadlist_special_reward',
  38. 'type' => 'mradio',
  39. 'value' => array(
  40. array(0, 'threadlist_special_reward_0'),
  41. array(1, 'threadlist_special_reward_1'),
  42. array(2, 'threadlist_special_reward_2')
  43. ),
  44. 'default' => 0,
  45. ),
  46. 'picrequired' => array(
  47. 'title' => 'threadlist_picrequired',
  48. 'type' => 'radio',
  49. 'value' => '0'
  50. ),
  51. 'titlelength' => array(
  52. 'title' => 'threadlist_titlelength',
  53. 'type' => 'text',
  54. 'default' => 40
  55. ),
  56. 'summarylength' => array(
  57. 'title' => 'threadlist_summarylength',
  58. 'type' => 'text',
  59. 'default' => 80
  60. ),
  61. );
  62. }
  63. function name() {
  64. return lang('blockclass', 'blockclass_thread_script_threadspecial');
  65. }
  66. }
  67. ?>