report_runecraft.php 4.4 KB

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