report_runecraft.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. global $RUNE_STAT;
  3. ?>
  4. <!DOCTYPE html>
  5. <html lang='en'>
  6. <head>
  7. <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
  8. <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
  9. <title><?=$page->title?></title>
  10. <link rel='shortcut icon' href='<?=$page->favicon?>'/>
  11. <!-- CSS files -->
  12. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
  13. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>report_runecraft.css'/>
  14. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
  15. <!-- Meta tags -->
  16. <link rel='canonical' href='<?=$page->canonical?>'/>
  17. <link rel='author' href='<?=$page->author?>'/>
  18. <link rel='publisher' href='<?=$page->author?>'/>
  19. <meta name='description' content='<?=$page->description?>'/>
  20. <meta property='og:title' content='<?=$page->title?>'/>
  21. <meta property='og:url' content='<?=$page->canonical?>'/>
  22. <meta property='og:description' content='<?=$page->description?>'/>
  23. <meta property='og:image' content='<?=$page->icon?>'/>
  24. <meta property='og:site_name' content='<?=$page->name?>'/>
  25. <meta property='og:type' content='website'/>
  26. <meta property='og:locale' content='en'/>
  27. <meta name='twitter:card' content='summary'/>
  28. <meta name='twitter:title' content='<?=$page->title?>'/>
  29. <meta name='twitter:description' content='<?=$page->description?>'/>
  30. <meta name='twitter:image' content='<?=$page->icon?>'/>
  31. <meta name='twitter:url' content='<?=$page->canonical?>'/>
  32. <meta name='robots' content='index follow'/>
  33. <script>
  34. /**
  35. * Shows or hiddes the filters panel.
  36. */
  37. function toggleFilters(){
  38. var content = document.getElementById('filters_content');
  39. var slid = document.getElementById('filters_slid');
  40. if (content.style.maxHeight != '30em'){
  41. content.style.maxHeight = '30em';
  42. slid.style.transform = 'rotate(90deg)';
  43. }
  44. else{
  45. content.style.maxHeight = '0px';
  46. slid.style.transform = 'rotate(0deg)';
  47. }
  48. };
  49. </script>
  50. </head>
  51. <body>
  52. <?php
  53. include __DIR__ . "/inc/header.php";
  54. ?>
  55. <section class='filters'>
  56. <h2 id='filters_title' onClick='toggleFilters();'>
  57. <img id='filters_slid' id='filters_slid' alt=' ' src='<?=$path["img"]["icon"]?>slid.png'/>
  58. Upgrade filters
  59. </h2>
  60. <article id='filters_content'>
  61. <?php
  62. $filters = $page->filters;
  63. $custom_filters = $page->custom_filters;
  64. include __DIR__ . "/inc/filter_report_runecraft.php";
  65. ?>
  66. </article>
  67. </section> <!-- #filters -->
  68. <?php
  69. foreach ($page->upgrades as $upgrade){
  70. ?>
  71. <section class='content'>
  72. <h2>
  73. <span>
  74. <?=$upgrade["unit"]->title?>
  75. </span>
  76. </h2>
  77. <article>
  78. <div class='monster'>
  79. <div class='profile'>
  80. <div class='monster_panel'>
  81. <?=html_unit_panel($upgrade["unit"])?>
  82. </div>
  83. </div> <!-- .profile -->
  84. </div>
  85. <div class='monster_runes'>
  86. <?php
  87. foreach ($upgrade["upgrade"] as $rupgrade){
  88. ?>
  89. <?=html_rune_table($rupgrade["rune"])?>
  90. <div class='craft'>
  91. <?php
  92. foreach ($rupgrade["craft"] as $craft){
  93. ?>
  94. <?=html_craft_panel($craft)?>
  95. <?php
  96. }
  97. ?>
  98. </div>
  99. <?php
  100. }
  101. ?>
  102. </div> <!-- .monster_runes -->
  103. </article>
  104. </section>
  105. <?php
  106. }
  107. include __DIR__ . "/inc/footer.php";
  108. ?>
  109. </body>
  110. </html>