home.php 9.0 KB

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