block_articlenew.php 999 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_articlenew.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_articlenew extends block_article {
  13. function block_articlenew() {
  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. 'titlelength' => array(
  27. 'title' => 'articlelist_titlelength',
  28. 'type' => 'text',
  29. 'default' => 40
  30. ),
  31. 'summarylength' => array(
  32. 'title' => 'articlelist_summarylength',
  33. 'type' => 'text',
  34. 'default' => 80
  35. )
  36. );
  37. }
  38. function name() {
  39. return lang('blockclass', 'blockclass_article_script_articlenew');
  40. }
  41. }
  42. ?>