block_pichot.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_pichot.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_pichot extends block_pic {
  13. function block_pichot() {
  14. $this->setting = array(
  15. 'hours' => array(
  16. 'title' => 'piclist_hours',
  17. 'type' => 'mradio',
  18. 'value' => array(
  19. array('', 'piclist_hours_nolimit'),
  20. array('1', 'piclist_hours_hour'),
  21. array('24', 'piclist_hours_day'),
  22. array('168', 'piclist_hours_week'),
  23. array('720', 'piclist_hours_month'),
  24. array('8760', 'piclist_hours_year'),
  25. ),
  26. 'default' => '720'
  27. ),
  28. 'titlelength' => array(
  29. 'title' => 'piclist_titlelength',
  30. 'type' => 'text',
  31. 'default' => 40
  32. ),
  33. 'startrow' => array(
  34. 'title' => 'piclist_startrow',
  35. 'type' => 'text',
  36. 'default' => 0
  37. ),
  38. );
  39. }
  40. function name() {
  41. return lang('blockclass', 'blockclass_pic_script_pichot');
  42. }
  43. function cookparameter($parameter) {
  44. $parameter['orderby'] = 'hot';
  45. return parent::cookparameter($parameter);
  46. }
  47. }
  48. ?>