The version of vichan running on lainchan.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.5KB

  1. <?php
  2. $theme = array();
  3. // Theme name
  4. $theme['name'] = 'Catalog';
  5. // Description (you can use Tinyboard markup here)
  6. $theme['description'] = 'Show a post catalog.';
  7. $theme['version'] = 'v0.2.1';
  8. // Theme configuration
  9. $theme['config'] = Array();
  10. $theme['config'][] = Array(
  11. 'title' => 'Title',
  12. 'name' => 'title',
  13. 'type' => 'text',
  14. 'default' => 'Catalog'
  15. );
  16. $__boards = listBoards();
  17. $__default_boards = Array();
  18. foreach ($__boards as $__board)
  19. $__default_boards[] = $__board['uri'];
  20. $theme['config'][] = Array(
  21. 'title' => 'Included boards',
  22. 'name' => 'boards',
  23. 'type' => 'text',
  24. 'comment' => '(space seperated)',
  25. 'default' => implode(' ', $__default_boards)
  26. );
  27. $theme['config'][] = Array(
  28. 'title' => 'Update on new posts',
  29. 'name' => 'update_on_posts',
  30. 'type' => 'checkbox',
  31. 'default' => false,
  32. 'comment' => 'Without this checked, the catalog only updates on new threads.'
  33. );
  34. $theme['config'][] = Array(
  35. 'title' => 'Enable Ukko catalog',
  36. 'name' => 'enable_ukko',
  37. 'type' => 'checkbox',
  38. 'default' => false,
  39. 'comment' => 'Enable catalog for the Ukko theme. This requires the Ukko theme to be enabled.'
  40. );
  41. $theme['config'][] = Array(
  42. 'title' => 'Use tooltipster',
  43. 'name' => 'use_tooltipster',
  44. 'type' => 'checkbox',
  45. 'default' => true,
  46. 'comment' => 'Check this if you wish to show a nice tooltip with info about the thread on mouse over.'
  47. );
  48. // Unique function name for building everything
  49. $theme['build_function'] = 'catalog_build';