block_topicnew.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_topicnew.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_topic', 'class/block/portal');
  12. class block_topicnew extends block_topic {
  13. function block_topicnew() {
  14. $this->setting = array(
  15. 'picrequired' => array(
  16. 'title' => 'topiclist_picrequired',
  17. 'type' => 'radio',
  18. 'default' => '0'
  19. ),
  20. 'titlelength' => array(
  21. 'title' => 'topiclist_titlelength',
  22. 'type' => 'text',
  23. 'default' => 40
  24. ),
  25. 'summarylength' => array(
  26. 'summary' => 'topiclist_summarylength',
  27. 'type' => 'text',
  28. 'default' => 80
  29. ),
  30. 'startrow' => array(
  31. 'title' => 'topiclist_startrow',
  32. 'type' => 'text',
  33. 'default' => 0
  34. ),
  35. );
  36. }
  37. function name() {
  38. return lang('blockclass', 'blockclass_topic_script_topicnew');
  39. }
  40. function cookeparameter($parameter) {
  41. $parameter['orderby'] = 'dateline';
  42. return $parameter;
  43. }
  44. }
  45. ?>