home.php 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <?php
  2. global $EFFECT_AREA;
  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"]?>home.css'/>
  14. <!-- Script files -->
  15. <script src="<?=$path["js"]?>ui.js"></script>
  16. <!-- Meta tags -->
  17. <link rel='canonical' href='<?=$page->canonical?>'/>
  18. <link rel='author' href='<?=$page->author?>'/>
  19. <link rel='publisher' href='<?=$page->author?>'/>
  20. <meta name='description' content='<?=$page->description?>'/>
  21. <meta property='og:title' content='<?=$page->title?>'/>
  22. <meta property='og:url' content='<?=$page->canonical?>'/>
  23. <meta property='og:description' content='<?=$page->description?>'/>
  24. <meta property='og:image' content='<?=$page->icon?>'/>
  25. <meta property='og:site_name' content='<?=$page->name?>'/>
  26. <meta property='og:type' content='website'/>
  27. <meta property='og:locale' content='en'/>
  28. <meta name='twitter:card' content='summary'/>
  29. <meta name='twitter:title' content='<?=$page->title?>'/>
  30. <meta name='twitter:description' content='<?=$page->description?>'/>
  31. <meta name='twitter:image' content='<?=$page->icon?>'/>
  32. <meta name='twitter:url' content='<?=$page->canonical?>'/>
  33. <meta name='robots' content='index follow'/>
  34. </head>
  35. <body>
  36. <?php
  37. include __DIR__ . "/inc/header.php";
  38. ?>
  39. <section class='content'>
  40. <h2>
  41. <span>
  42. Summoners War DataBase
  43. </span>
  44. </h2>
  45. <article id='profile'>
  46. <h3>
  47. <?=$page->name?>
  48. </h3>
  49. <?php
  50. if (isset($page->rep)){
  51. ?>
  52. <div id='rep' class='profile_section'>
  53. <h4>
  54. Rep. Monster
  55. </h4>
  56. <div class='monster_panel'>
  57. <?=html_unit_panel($page->rep)?>
  58. </div> <!-- .monster_panel -->
  59. </div>
  60. <?php
  61. } // if (isset($page->rep))
  62. ?>
  63. <div id='defense' class='profile_section'>
  64. <h4>
  65. Arena defense
  66. </h4>
  67. <?php
  68. $first = true;
  69. foreach ($page->defense as $defense){
  70. ?>
  71. <div class='monster_panel'>
  72. <?=html_unit_panel($defense)?>
  73. </div>
  74. <?php
  75. if ($first && isset($defense->unit->leader_skill) && ($defense->unit->leader_skill->area == $EFFECT_AREA["GENERAL"] || $defense->unit->leader_skill->area == $EFFECT_AREA["ARENA"])){
  76. ?>
  77. <div class='skill'>
  78. <img class='skill_img' title='<?=$defense->unit->leader_skill->create_description()?>' src='<?=$defense->unit->leader_skill->get_image()?>'/>
  79. </div>
  80. <?php
  81. }
  82. $first = false;
  83. }
  84. ?>
  85. </div>
  86. <div id='building' class='profile_section'>
  87. <h4>
  88. Buildings
  89. </h4>
  90. <?php
  91. foreach ($page->building as $building){
  92. ?>
  93. <?=html_building_panel($building)?>
  94. <?php
  95. }
  96. ?>
  97. </div>
  98. <div id='decoration' class='profile_section'>
  99. <h4>
  100. Decorations
  101. </h4>
  102. <?php
  103. foreach ($page->decoration as $decoration){
  104. ?>
  105. <?=html_building_panel($decoration)?>
  106. <?php
  107. }
  108. ?>
  109. </div>
  110. <div class='inventory profile_section' id='inventory_scroll'>
  111. <h4>
  112. Scrolls
  113. </h4>
  114. <?php
  115. foreach ($page->inventory_scroll as $item){
  116. ?>
  117. <?=html_item_panel($item)?>
  118. <?php
  119. }
  120. ?>
  121. </div>
  122. <div class='inventory profile_section' id='inventory_craft_rune'>
  123. <h4>
  124. Rune crafting items
  125. </h4>
  126. <?php
  127. foreach ($page->inventory_craft_rune as $item){
  128. ?>
  129. <?=html_item_panel($item)?>
  130. <?php
  131. }
  132. ?>
  133. </div>
  134. <div class='inventory profile_section' id='inventory_craft'>
  135. <h4>
  136. Other crafting items
  137. </h4>
  138. <?php
  139. foreach ($page->inventory_craft as $item){
  140. ?>
  141. <?=html_item_panel($item)?>
  142. <?php
  143. }
  144. ?>
  145. </div>
  146. <div class='inventory profile_section' id='inventory_essence'>
  147. <h4>
  148. Essences
  149. </h4>
  150. <?php
  151. foreach ($page->inventory_essence as $item){
  152. ?>
  153. <?=html_item_panel($item)?>
  154. <?php
  155. }
  156. ?>
  157. </div>
  158. <div id='currency' class='profile_section'>
  159. <h4>
  160. Currency
  161. </h4>
  162. <ul>
  163. <li>
  164. <img title='Energy' src='<?=$path["img"]["currency"]?>energy.png'/>
  165. <?=$page->currency["energy"]?> / <?=$page->currency["energy_max"]?>
  166. </li>
  167. <li>
  168. <img title='Arena Invitations' src='<?=$path["img"]["currency"]?>arenaenergy.png'/>
  169. <?=$page->currency["arena_energy"]?> / <?=$page->currency["arena_energy_max"]?>
  170. </li>
  171. <li>
  172. <img title='Dimensional Energy' src='<?=$path["img"]["currency"]?>dimensionenergy.png'/>
  173. <?=$page->currency["dimension_energy"]?> / <?=$page->currency["dimension_energy_max"]?>
  174. </li>
  175. <li>
  176. <img title='Dimensional Crystal' src='<?=$path["img"]["currency"]?>darkportalenergy.png'/>
  177. <?=$page->currency["darkportal_energy"]?> / <?=$page->currency["darkportal_energy_max"]?>
  178. </li>
  179. <li>
  180. <img title='Mana' src='<?=$path["img"]["currency"]?>mana.png'/>
  181. <?=$page->currency["mana"]?>
  182. </li>
  183. <li>
  184. <img title='Crystal' src='<?=$path["img"]["currency"]?>crystal.png'/>
  185. <?=$page->currency["crystal"]?>
  186. </li>
  187. <li>
  188. <img title='Social Points' src='<?=$path["img"]["currency"]?>socialpoint.png'/>
  189. <?=$page->currency["social_point"]?>
  190. </li>
  191. <li>
  192. <img title='Honor Points' src='<?=$path["img"]["currency"]?>honor.png'/>
  193. <?=$page->currency["honor_point"]?>
  194. </li>
  195. <li>
  196. <img title='Guild Points' src='<?=$path["img"]["currency"]?>guildpoint.png'/>
  197. <?=$page->currency["guild_point"]?>
  198. </li>
  199. <li>
  200. <img title='Honor Medals' src='<?=$path["img"]["currency"]?>badge.png'/>
  201. <?=$page->currency["honor_medal"]?>
  202. </li>
  203. <li>
  204. <img src='<?=$path["img"]["currency"]?>mark.png'/>
  205. <?=$page->currency["honor_mark"]?>
  206. </li>
  207. <li>
  208. <img title='Ancient Coins' src='<?=$path["img"]["currency"]?>ancientcoin.png'/>
  209. <?=$page->currency["event_coin"]?>
  210. </li>
  211. <li>
  212. <img title='Ancient Crystal' src='<?=$path["img"]["currency"]?>ancientstone.png'/>
  213. <?=$page->currency["ancient_stone"]?>
  214. </li>
  215. <li>
  216. <img title='Shapeshifting Stones' src='<?=$path["img"]["currency"]?>costumestone.png'/>
  217. <?=$page->currency["costume_point"]?>
  218. </li>
  219. </ul>
  220. </div>
  221. </article>
  222. </section>
  223. <?php
  224. include __DIR__ . "/inc/footer.php";
  225. ?>
  226. </body>
  227. </html>