block_picnew.php 844 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_picnew.php 25525 2011-11-14 04:39:11Z zhangguosheng $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. require_once libfile('block_pic', 'class/block/space');
  12. class block_picnew extends block_pic {
  13. function block_picnew() {
  14. $this->setting = array(
  15. 'titlelength' => array(
  16. 'title' => 'piclist_titlelength',
  17. 'type' => 'text',
  18. 'default' => 40
  19. ),
  20. 'startrow' => array(
  21. 'title' => 'piclist_startrow',
  22. 'type' => 'text',
  23. 'default' => 0
  24. ),
  25. );
  26. }
  27. function name() {
  28. return lang('blockclass', 'blockclass_pic_script_picnew');
  29. }
  30. function cookparameter($parameter) {
  31. $parameter['orderby'] = 'dateline';
  32. return parent::cookparameter($parameter);
  33. }
  34. }
  35. ?>