home.php 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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"]?>home.css'/>
  11. <!-- Script files -->
  12. <script src="<?=$path["js"]?>ui.js"></script>
  13. <!-- Meta tags -->
  14. <link rel='canonical' href='<?=$page->canonical?>'/>
  15. <link rel='author' href='<?=$page->author?>'/>
  16. <link rel='publisher' href='<?=$page->author?>'/>
  17. <meta name='description' content='<?=$page->description?>'/>
  18. <meta property='og:title' content='<?=$page->title?>'/>
  19. <meta property='og:url' content='<?=$page->canonical?>'/>
  20. <meta property='og:description' content='<?=$page->description?>'/>
  21. <meta property='og:image' content='<?=$page->icon?>'/>
  22. <meta property='og:site_name' content='<?=$page->name?>'/>
  23. <meta property='og:type' content='website'/>
  24. <meta property='og:locale' content='en'/>
  25. <meta name='twitter:card' content='summary'/>
  26. <meta name='twitter:title' content='<?=$page->title?>'/>
  27. <meta name='twitter:description' content='<?=$page->description?>'/>
  28. <meta name='twitter:image' content='<?=$page->icon?>'/>
  29. <meta name='twitter:url' content='<?=$page->canonical?>'/>
  30. <meta name='robots' content='index follow'/>
  31. </head>
  32. <body>
  33. <?php
  34. include __DIR__ . "/inc/header.php";
  35. ?>
  36. <section class='content'>
  37. <h2>
  38. <span>
  39. Summoners War DataBase
  40. </span>
  41. </h2>
  42. <article id='profile'>
  43. <h3>
  44. <?=$page->name?>
  45. </h3>
  46. <div id='info'>
  47. <?php
  48. //if (isset($page->rep)){
  49. if ($page->rep->unit->awakens_from == "" && $page->rep->unit->awakens_to == ""){
  50. // No to, no from, silver monster.
  51. $star_class ="star_silver";
  52. $mon_title = $page->rep->unit->element . " " . $page->rep->unit->name;
  53. }
  54. elseif ($page->rep->unit->awakens_from =! "" && $page->rep->unit->awakens_to == ""){
  55. // Already awakened
  56. if ($page->rep->unit->base_stars - $page->rep->unit->natural_stars == 1){
  57. // Normal awaken.
  58. $star_class ="star_purple";
  59. }
  60. else{
  61. // Second awaken.
  62. $star_class ="star_red";
  63. }
  64. $mon_title = $page->rep->unit->name;
  65. }
  66. elseif ($page->rep->unit->awakens_to =! ""){
  67. // Awakeable.
  68. $star_class ="star_gold";
  69. $mon_title = $page->rep->unit->element . " " . $page->rep->unit->name;
  70. }
  71. ?>
  72. <div class='monster_panel'>
  73. <span class='stars'>
  74. <?php
  75. for ($i = 0; $i < $page->rep->stars; $i ++){
  76. ?>
  77. <img class='star <?=$star_class?>' src='<?=$path["img"]["layout"] . "icon/star.png"?>'/>
  78. <?php
  79. }
  80. ?>
  81. </span>
  82. <img title='<?=$mon_title?>' class='monster border_<?=$page->rep->unit->element_name?>' src='<?=$page->rep->unit->get_image()?>'/>
  83. <span class='level'>
  84. <?=$page->rep->level?>
  85. </span>
  86. </div> <!-- .monster_panel -->
  87. <?php
  88. // } // if (isset($page->rep))
  89. ?>
  90. </div>
  91. <div id='currency'>
  92. <ul>
  93. <li>
  94. <img src='<?=$path["img"]["layout"]?>currency/energy.png'/>
  95. <?=$page->currency["energy"]?> / <?=$page->currency["energy_max"]?>
  96. </li>
  97. <li>
  98. <img src='<?=$path["img"]["layout"]?>currency/arenaenergy.png'/>
  99. <?=$page->currency["arena_energy"]?> / <?=$page->currency["arena_energy_max"]?>
  100. </li>
  101. <li>
  102. <img src='<?=$path["img"]["layout"]?>currency/dimensionenergy.png'/>
  103. <?=$page->currency["dimension_energy"]?> / <?=$page->currency["dimension_energy_max"]?>
  104. </li>
  105. <li>
  106. <img src='<?=$path["img"]["layout"]?>currency/darkportalenergy.png'/>
  107. <?=$page->currency["darkportal_energy"]?> / <?=$page->currency["darkportal_energy_max"]?>
  108. </li>
  109. <li>
  110. <img src='<?=$path["img"]["layout"]?>currency/mana.png'/>
  111. <?=$page->currency["mana"]?>
  112. </li>
  113. <li>
  114. <img src='<?=$path["img"]["layout"]?>currency/crystal.png'/>
  115. <?=$page->currency["crystal"]?>
  116. </li>
  117. <li>
  118. <img src='<?=$path["img"]["layout"]?>currency/socialpoint.png'/>
  119. <?=$page->currency["social_point"]?>
  120. </li>
  121. <li>
  122. <img src='<?=$path["img"]["layout"]?>currency/honor.png'/>
  123. <?=$page->currency["honor_point"]?>
  124. </li>
  125. <li>
  126. <img src='<?=$path["img"]["layout"]?>currency/guildpoint.png'/>
  127. <?=$page->currency["guild_point"]?>
  128. </li>
  129. <li>
  130. <img src='<?=$path["img"]["layout"]?>currency/badge.png'/>
  131. <?=$page->currency["honor_medal"]?>
  132. </li>
  133. <li>
  134. <img src='<?=$path["img"]["layout"]?>currency/mark.png'/>
  135. <?=$page->currency["honor_mark"]?>
  136. </li>
  137. <li>
  138. <img src='<?=$path["img"]["layout"]?>currency/ancientcoin.png'/>
  139. <?=$page->currency["event_coin"]?>
  140. </li>
  141. <li>
  142. <img src='<?=$path["img"]["layout"]?>currency/ancientstone.png'/>
  143. <?=$page->currency["ancient_stone"]?>
  144. </li>
  145. <li>
  146. <img src='<?=$path["img"]["layout"]?>currency/costumestone.png'/>
  147. <?=$page->currency["costume_point"]?>
  148. </li>
  149. </ul>
  150. </div>
  151. </article>
  152. <article>
  153. <h3>
  154. <a href='/catalog'>
  155. Catalog
  156. </a>
  157. </h3>
  158. <p>
  159. Check out the catalog of every monster in the game.
  160. <br/>
  161. Plan on which monster to look forward or which one is worth building.
  162. </p>
  163. </article>
  164. <article>
  165. <h3>
  166. <a href='/monsters'>
  167. Monsters
  168. </a>
  169. </h3>
  170. <p>
  171. Review your monster collection.
  172. <br/>
  173. Get detailed info about their stats, skills-ups, equiped runes...
  174. </p>
  175. </article>
  176. <article>
  177. <h3>
  178. <a href='/runes'>
  179. Runes
  180. </a>
  181. </h3>
  182. <p>
  183. Review your rune collection.
  184. <br/>
  185. Use a variety of filters to navigate your rune inventory, getting every piece if info about them at first glance.
  186. </p>
  187. </article>
  188. <article>
  189. <h3>
  190. <a href='/fusion'>
  191. Fusion
  192. </a>
  193. </h3>
  194. <p>
  195. Check out fhe fusion diagrams
  196. <br/>
  197. Get a glance at the ingredients and resources you need for yoour next fusion.
  198. </p>
  199. </article>
  200. <article>
  201. <h3>
  202. <a href='/report'>
  203. Reports
  204. </a>
  205. </h3>
  206. <p>
  207. Get useful info to improve your gameplay.
  208. <ul>
  209. <li>
  210. Learn which of your monsters are in greater need of Devilmons.
  211. </li>
  212. <li>
  213. See the equiped runes that can be replaced with better ones from your inventory.
  214. </li>
  215. </ul>
  216. </p>
  217. </article>
  218. </section>
  219. <?php
  220. include __DIR__ . "/inc/footer.php";
  221. ?>
  222. </body>
  223. </html>