index.php 485 B

1234567891011121314151617181920
  1. <?php
  2. require_once __DIR__ . '/include/utils.php';
  3. require_once __DIR__ . '/include/artworks_grid.php';
  4. list($discovery, $error) = get_discovery();
  5. if ($error) {
  6. die_with_message(500, get_string($error));
  7. }
  8. $discovery = $discovery->body->thumbnails->illust;
  9. render_page_header(get_string('discovery.title'));
  10. ?>
  11. <div class="container">
  12. <h1><?= get_string('discovery.title') ?></h1>
  13. <?php render_artworks_grid($discovery, true, true, true); ?>
  14. </div>
  15. <?php
  16. render_page_footer();