block_albumnew.php 950 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_albumnew.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_album', 'class/block/space');
  12. class block_albumnew extends block_album {
  13. function block_albumnew() {
  14. $this->setting = array(
  15. 'catid' => array(
  16. 'title' => 'albumlist_catid',
  17. 'type' => 'mselect',
  18. ),
  19. 'titlelength' => array(
  20. 'title' => 'albumlist_titlelength',
  21. 'type' => 'text',
  22. 'default' => 40
  23. ),
  24. 'startrow' => array(
  25. 'title' => 'albumlist_startrow',
  26. 'type' => 'text',
  27. 'default' => 0
  28. ),
  29. );
  30. }
  31. function name() {
  32. return lang('blockclass', 'blockclass_album_script_albumnew');
  33. }
  34. function cookparameter($parameter) {
  35. $parameter['orderby'] = 'updatetime';
  36. return parent::cookparameter($parameter);
  37. }
  38. }
  39. ?>