block_activitycity.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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_activitycity.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_activity', 'class/block/forum');
  12. class block_activitycity extends block_activity {
  13. function block_activitycity() {
  14. $this->setting = array(
  15. 'fids' => array(
  16. 'title' => 'activitylist_fids',
  17. 'type' => 'mselect',
  18. 'value' => array()
  19. ),
  20. 'viewmod' => array(
  21. 'title' => 'threadlist_viewmod',
  22. 'type' => 'radio'
  23. ),
  24. 'place' => array(
  25. 'title' => 'activitylist_place',
  26. 'type' => 'text'
  27. ),
  28. 'class' => array(
  29. 'title' => 'activitylist_class',
  30. 'type' => 'select',
  31. 'value' => array()
  32. ),
  33. 'orderby' => array(
  34. 'title' => 'activitylist_orderby',
  35. 'type'=> 'mradio',
  36. 'value' => array(
  37. array('dateline', 'activitylist_orderby_dateline'),
  38. array('weekstart', 'activitylist_orderby_weekstart'),
  39. array('monthstart', 'activitylist_orderby_monthstart'),
  40. array('weekexp', 'activitylist_orderby_weekexp'),
  41. array('monthexp', 'activitylist_orderby_monthexp'),
  42. ),
  43. 'default' => 'dateline'
  44. ),
  45. 'titlelength' => array(
  46. 'title' => 'activitylist_titlelength',
  47. 'type' => 'text',
  48. 'default' => 40
  49. ),
  50. 'summarylength' => array(
  51. 'title' => 'activitylist_summarylength',
  52. 'type' => 'text',
  53. 'default' => 80
  54. ),
  55. 'startrow' => array(
  56. 'title' => 'activitylist_startrow',
  57. 'type' => 'text',
  58. 'default' => 0
  59. ),
  60. );
  61. }
  62. function name() {
  63. return lang('blockclass', 'blockclass_activity_script_activitycity');
  64. }
  65. }
  66. ?>