block_articlespecified.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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_articlespecified.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_articlespecified extends block_article {
  13. function block_articlespecified() {
  14. $this->setting = array(
  15. 'aids' => array(
  16. 'title' => 'articlelist_aids',
  17. 'type' => 'text',
  18. 'value' => ''
  19. ),
  20. 'uids' => array(
  21. 'title' => 'articlelist_uids',
  22. 'type' => 'text',
  23. 'value' => ''
  24. ),
  25. 'tag' => array(
  26. 'title' => 'articlelist_tag',
  27. 'type' => 'mcheckbox',
  28. 'value' => array(
  29. ),
  30. ),
  31. 'starttime' => array(
  32. 'title' => 'articlelist_starttime',
  33. 'type' => 'calendar',
  34. 'default' => ''
  35. ),
  36. 'endtime' => array(
  37. 'title' => 'articlelist_endtime',
  38. 'type' => 'calendar',
  39. 'default' => ''
  40. ),
  41. 'titlelength' => array(
  42. 'title' => 'articlelist_titlelength',
  43. 'type' => 'text',
  44. 'default' => 40
  45. ),
  46. 'summarylength' => array(
  47. 'title' => 'articlelist_summarylength',
  48. 'type' => 'text',
  49. 'default' => 80
  50. )
  51. );
  52. }
  53. function name() {
  54. return lang('blockclass', 'blockclass_article_script_articlespecified');
  55. }
  56. }
  57. ?>