catalog.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html lang='en'>
  3. <head>
  4. <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
  5. <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
  6. <title><?=$page->title?></title>
  7. <link rel='shortcut icon' href='<?=$page->favicon?>'/>
  8. <!-- CSS files -->
  9. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
  10. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>catalog.css'/>
  11. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
  12. <!-- Script files -->
  13. <script src="<?=$path["js"]?>ui.js"></script>
  14. <!-- Meta tags -->
  15. <link rel='canonical' href='<?=$page->canonical?>'/>
  16. <link rel='author' href='<?=$page->author?>'/>
  17. <link rel='publisher' href='<?=$page->author?>'/>
  18. <meta name='description' content='<?=$page->description?>'/>
  19. <meta property='og:title' content='<?=$page->title?>'/>
  20. <meta property='og:url' content='<?=$page->canonical?>'/>
  21. <meta property='og:description' content='<?=$page->description?>'/>
  22. <meta property='og:image' content='<?=$page->icon?>'/>
  23. <meta property='og:site_name' content='<?=$page->name?>'/>
  24. <meta property='og:type' content='website'/>
  25. <meta property='og:locale' content='en'/>
  26. <meta name='twitter:card' content='summary'/>
  27. <meta name='twitter:title' content='<?=$page->title?>'/>
  28. <meta name='twitter:description' content='<?=$page->description?>'/>
  29. <meta name='twitter:image' content='<?=$page->icon?>'/>
  30. <meta name='twitter:url' content='<?=$page->canonical?>'/>
  31. <meta name='robots' content='index follow'/>
  32. </head>
  33. <body>
  34. <?php
  35. include __DIR__ . "/inc/header.php";
  36. ?>
  37. <section class='filters'>
  38. <h2>
  39. Catalog filters
  40. </h2>
  41. <?php
  42. $filters = $page->filters;
  43. include __DIR__ . "/inc/filter_catalog.php";
  44. ?>
  45. </section> <!-- #filters -->
  46. <section class='list'>
  47. <h2>
  48. Catalog
  49. </h2>
  50. <article>
  51. <?php
  52. $element = "";
  53. foreach ($page->monsters as $mon){
  54. if ($mon->element != $element){
  55. if ($element != ""){
  56. ?>
  57. </article>
  58. <article>
  59. <?php
  60. }
  61. $element = $mon->element;
  62. }
  63. ?>
  64. <div class='monster'>
  65. <a href='/catalog/<?=$mon->id?>'>
  66. <div class='monster_panel'>
  67. <?=html_unit_panel($mon)?>
  68. </div>
  69. </a>
  70. </div>
  71. <?php
  72. }
  73. ?>
  74. </article>
  75. </section> <!-- #catalog -->
  76. <?php
  77. include __DIR__ . "/inc/footer.php";
  78. ?>
  79. </body>
  80. </html>