block_articlehot.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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_articlehot.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_article', 'class/block/portal');
  12. class block_articlehot extends block_article {
  13. function block_articlehot() {
  14. $this->setting = array(
  15. 'catid' => array(
  16. 'title' => 'articlelist_catid',
  17. 'type' => 'mselect',
  18. 'value' => array(
  19. ),
  20. ),
  21. 'picrequired' => array(
  22. 'title' => 'articlelist_picrequired',
  23. 'type' => 'radio',
  24. 'default' => '0'
  25. ),
  26. 'orderby' => array(
  27. 'title' => 'articlelist_orderby',
  28. 'type' => 'mradio',
  29. 'value' => array(
  30. array('viewnum', 'articlelist_orderby_viewnum'),
  31. array('commentnum', 'articlelist_orderby_commentnum'),
  32. ),
  33. 'default' => 'viewnum'
  34. ),
  35. 'titlelength' => array(
  36. 'title' => 'articlelist_titlelength',
  37. 'type' => 'text',
  38. 'default' => 40
  39. ),
  40. 'summarylength' => array(
  41. 'title' => 'articlelist_summarylength',
  42. 'type' => 'text',
  43. 'default' => 80
  44. )
  45. );
  46. }
  47. function name() {
  48. return lang('blockclass', 'blockclass_article_script_articlehot');
  49. }
  50. }
  51. ?>