block_threadstick.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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_threadstick.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_threadstick extends block_thread {
  13. function block_threadstick() {
  14. $this->setting = array(
  15. 'fids' => array(
  16. 'title' => 'threadlist_fids',
  17. 'type' => 'mselect',
  18. 'value' => array()
  19. ),
  20. 'stick' => array(
  21. 'title' => 'threadlist_stick',
  22. 'type' => 'mcheckbox',
  23. 'value' => array(
  24. array(1, 'threadlist_stick_1'),
  25. array(2, 'threadlist_stick_2'),
  26. array(3, 'threadlist_stick_3'),
  27. array(0, 'threadlist_stick_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_threadstick');
  76. }
  77. }
  78. ?>