catalog.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. <!-- Meta tags -->
  13. <link rel='canonical' href='<?=$page->canonical?>'/>
  14. <link rel='author' href='<?=$page->author?>'/>
  15. <link rel='publisher' href='<?=$page->author?>'/>
  16. <meta name='description' content='<?=$page->description?>'/>
  17. <meta property='og:title' content='<?=$page->title?>'/>
  18. <meta property='og:url' content='<?=$page->canonical?>'/>
  19. <meta property='og:description' content='<?=$page->description?>'/>
  20. <meta property='og:image' content='<?=$page->icon?>'/>
  21. <meta property='og:site_name' content='<?=$page->name?>'/>
  22. <meta property='og:type' content='website'/>
  23. <meta property='og:locale' content='en'/>
  24. <meta name='twitter:card' content='summary'/>
  25. <meta name='twitter:title' content='<?=$page->title?>'/>
  26. <meta name='twitter:description' content='<?=$page->description?>'/>
  27. <meta name='twitter:image' content='<?=$page->icon?>'/>
  28. <meta name='twitter:url' content='<?=$page->canonical?>'/>
  29. <meta name='robots' content='index follow'/>
  30. </head>
  31. <body>
  32. <?php
  33. include __DIR__ . "/inc/header.php";
  34. ?>
  35. <section class='filters'>
  36. <h2>
  37. Catalog filters
  38. </h2>
  39. <?php
  40. $filters = $page->filters;
  41. include __DIR__ . "/inc/filter_catalog.php";
  42. ?>
  43. </section> <!-- #filters -->
  44. <section class='list'>
  45. <h2>
  46. Catalog
  47. </h2>
  48. <article>
  49. <?php
  50. $element = "";
  51. foreach ($page->monsters as $mon){
  52. if ($mon->element != $element){
  53. if ($element != ""){
  54. ?>
  55. </article>
  56. <article>
  57. <?php
  58. }
  59. $element = $mon->element;
  60. }
  61. ?>
  62. <div class='monster'>
  63. <a href='/<?=$UID?>/catalog/<?=$mon->id?>'>
  64. <div class='monster_panel'>
  65. <?=html_unit_panel($mon)?>
  66. </div>
  67. </a>
  68. </div>
  69. <?php
  70. }
  71. ?>
  72. </article>
  73. </section> <!-- #catalog -->
  74. <?php
  75. include __DIR__ . "/inc/footer.php";
  76. ?>
  77. </body>
  78. </html>