block_groupthreadhot.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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_groupthreadhot.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_groupthread', 'class/block/group');
  12. class block_groupthreadhot extends block_groupthread {
  13. function block_groupthreadhot() {
  14. $this->setting = array(
  15. 'gtids' => array(
  16. 'title' => 'groupthread_gtids',
  17. 'type' => 'mselect',
  18. 'value' => array(
  19. ),
  20. ),
  21. 'special' => array(
  22. 'title' => 'groupthread_special',
  23. 'type' => 'mcheckbox',
  24. 'value' => array(
  25. array(1, 'groupthread_special_1'),
  26. array(2, 'groupthread_special_2'),
  27. array(3, 'groupthread_special_3'),
  28. array(4, 'groupthread_special_4'),
  29. array(5, 'groupthread_special_5'),
  30. array(0, 'groupthread_special_0'),
  31. )
  32. ),
  33. 'rewardstatus' => array(
  34. 'title' => 'groupthread_special_reward',
  35. 'type' => 'mradio',
  36. 'value' => array(
  37. array(0, 'groupthread_special_reward_0'),
  38. array(1, 'groupthread_special_reward_1'),
  39. array(2, 'groupthread_special_reward_2')
  40. ),
  41. 'default' => 0,
  42. ),
  43. 'picrequired' => array(
  44. 'title' => 'groupthread_picrequired',
  45. 'type' => 'radio',
  46. 'value' => '0'
  47. ),
  48. 'orderby' => array(
  49. 'title' => 'groupthread_orderby',
  50. 'type'=> 'mradio',
  51. 'value' => array(
  52. array('replies', 'groupthread_orderby_replies'),
  53. array('views', 'groupthread_orderby_views'),
  54. array('heats', 'groupthread_orderby_heats'),
  55. array('recommends', 'groupthread_orderby_recommends'),
  56. ),
  57. 'default' => 'replies'
  58. ),
  59. 'lastpost' => array(
  60. 'title' => 'groupthread_lastpost',
  61. 'type'=> 'mradio',
  62. 'value' => array(
  63. array('0', 'groupthread_lastpost_nolimit'),
  64. array('3600', 'groupthread_lastpost_hour'),
  65. array('86400', 'groupthread_lastpost_day'),
  66. array('604800', 'groupthread_lastpost_week'),
  67. array('2592000', 'groupthread_lastpost_month'),
  68. ),
  69. 'default' => '0'
  70. ),
  71. 'gviewperm' => array(
  72. 'title' => 'groupthread_gviewperm',
  73. 'type' => 'mradio',
  74. 'value' => array(
  75. array('0', 'groupthread_gviewperm_only_member'),
  76. array('1', 'groupthread_gviewperm_all_member')
  77. ),
  78. 'default' => '1'
  79. ),
  80. 'titlelength' => array(
  81. 'title' => 'groupthread_titlelength',
  82. 'type' => 'text',
  83. 'default' => 40
  84. ),
  85. 'summarylength' => array(
  86. 'title' => 'groupthread_summarylength',
  87. 'type' => 'text',
  88. 'default' => 80
  89. ),
  90. );
  91. }
  92. function name() {
  93. return lang('blockclass', 'blockclass_groupthread_script_groupthreadhot');
  94. }
  95. }
  96. ?>