| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <!DOCTYPE html>
- <html lang='en'>
- <head>
- <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
- <meta charset='utf-8'/>
- <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
- <title><?=$page->title?></title>
- <link rel='shortcut icon' href='<?=$page->favicon?>'/>
- <!-- CSS files -->
- <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
- <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>fusion.css'/>
- <!-- Script files -->
- <script type="text/javascript" src="<?=$path["js"]?>ui.js"></script>
- <!-- Meta tags -->
- <link rel='canonical' href='<?=$page->canonical?>'/>
- <link rel='author' href='<?=$page->author?>'/>
- <link rel='publisher' href='<?=$page->author?>'/>
- <meta name='description' content='<?=$page->description?>'/>
- <meta property='og:title' content='<?=$page->title?>'/>
- <meta property='og:url' content='<?=$page->canonical?>'/>
- <meta property='og:description' content='<?=$page->description?>'/>
- <meta property='og:image' content='<?=$page->icon?>'/>
- <meta property='og:site_name' content='<?=$page->name?>'/>
- <meta property='og:type' content='website'/>
- <meta property='og:locale' content='en'/>
- <meta name='twitter:card' content='summary'/>
- <meta name='twitter:title' content='<?=$page->title?>'/>
- <meta name='twitter:description' content='<?=$page->description?>'/>
- <meta name='twitter:image' content='<?=$page->icon?>'/>
- <meta name='twitter:url' content='<?=$page->canonical?>'/>
- <meta name='robots' content='index follow'/>
- </head>
- <body>
- <?php
- include __DIR__ . "/inc/header.php";
- ?>
- <div id='content'>
- <div class='section'>
- <h3 class='section_title'>
- Fusion
- </h3>
- <?php
- foreach ($page->fusion as $fusion){
- ?>
- <table class='fusion level_1'>
- <tr>
- <td class='level_1'>
- <h4 class='name_aw color_<?=$fusion->target->element?>'><?=$fusion->target->name_aw?></h4>
- <h5 class='name italic'><?=$fusion->target->element?> <?=$fusion->target->name?></h5>
- <img class='monster border_<?=$fusion->target->element?> desktop' src='<?=$fusion->target->image?>'/>
- <img class='monster border_<?=$fusion->target->element?>' src='<?=$fusion->target->image_aw?>'/>
- <br/>
- <?php
- for ($i = 0; $i < $fusion->target_stars; $i ++){
- ?>
- <img class='monster_star' src='<?=$path["img"]["layout"] . "icon/star.png";?>'/>
- <?php
- }
- ?>
- </td>
- <td>
- <?php
- foreach ($fusion->source as $source){
- ?>
- <table class='fusion level_2'>
- <tr>
- <td>
- <h4 class='name_aw color_<?=$source->element?>'><?=$source->name_aw?></h4>
- <h5 class='name italic'><?=$source->element?> <?=$source->name?></h5>
- <img class='monster border_<?=$source->element?> desktop' src='<?=$source->image?>'/>
- <img class='monster border_<?=$source->element?>' src='<?=$source->image_aw?>'/>
- <br/>
- <?php
- for ($i = 0; $i < $fusion->source_stars; $i ++){
- ?>
- <img class='monster_star' src='<?=$path["img"]["layout"] . "icon/star_aw.png";?>'/>
- <?php
- }
- ?>
- <span class='monster_level'>Lv. <?=$fusion->source_level?></span>
- <?php
- $owned = null;
- foreach ($page->collection as $col){
- if ($col->monster->id == $source->id){
- $owned = $col;
- }
- }
- if (isset($owned)){
- $owned_src = $owned->monster->image;
- $star_src = $path["img"]["layout"] . "icon/star.png";
- if ($owned->awake == 1){
- $owned_src = $owned->monster->image_aw;
- $star_src = $path["img"]["layout"] . "icon/star_aw.png";
- }
- ?>
- <hr class='owned_separator'/>
- <table class='owned'>
- <tr>
- <td>
- <img class='owned_monster border_<?=$owned->monster->element?>' src='<?=$owned_src?>'/>
- </td>
- <td>
- <?php
- for ($i = 0; $i < $owned->stars; $i ++){
- ?>
- <img class='owned_star' src='<?=$star_src?>'/>
- <?php
- }
- ?>
- <span class='owned_level'>Lv. <?=$owned->level?></span>
- </td>
- <?php
- if ($owned->level == $fusion->source_level && $owned->stars == $fusion->source_stars && $owned->awaken){
- ?>
- <td>
- <img class='owned_check' src='<?=$path["img"]["layout"]?>icon/check.png'/>
- </td>
- <?php
- }
- ?>
- </tr>
- </table>
- <?php
- }
- ?>
- </td>
- <td>
- <?php
- foreach ($page->fusion as $f){
- if ($f->target->id == $source->id){
- foreach($f->source as $s){
- ?>
- <table class='fusion level_3'>
- <tr>
- <td class='left'>
- <h4 class='name_aw color_<?=$s->element?>'><?=$s->name_aw?></h4>
- <h5 class='name italic'><?=$s->element?> <?=$s->name?></h5>
- <br/>
- <?php
- for ($i = 0; $i < $f->source_stars; $i ++){
- ?>
- <img class='monster_star' src='<?=$path["img"]["layout"] . "icon/star_aw.png";?>'/>
- <?php
- }
- ?>
- <span class='monster_level'>Lv. <?=$f->source_level?></span>
- </td>
- <td class='right'>
- <img class='monster border_<?=$s->element?> desktop' src='<?=$s->image?>'/>
- <img class='monster border_<?=$s->element?>' src='<?=$s->image_aw?>'/>
- </td>
- </tr>
- <tr>
- <td colspan='2'>
- <?php
- $owned = null;
- foreach ($page->collection as $col){
- if ($col->monster->id == $s->id){
- $owned = $col;
- }
- }
- if (isset($owned)){
- $owned_src = $owned->monster->image;
- $star_src = $path["img"]["layout"] . "icon/star.png";
- if ($owned->awaken == 1){
- $owned_src = $owned->monster->image_aw;
- $star_src = $path["img"]["layout"] . "icon/star_aw.png";
- }
- ?>
- <hr class='owned_separator'/>
- <table class='owned'>
- <tr>
- <td>
- <img class='owned_monster border_<?=$owned->monster->element?>' src='<?=$owned_src?>'/>
- </td>
- <td>
- <?php
- for ($i = 0; $i < $owned->stars; $i ++){
- ?>
- <img class='owned_star' src='<?=$star_src?>'/>
- <?php
- }
- ?>
- <span class='owned_level'>Lv. <?=$owned->level?></span>
- </td>
- <?php
- if ($owned->level == $f->source_level && $owned->stars == $f->source_stars && $owned->awaken){
- ?>
- <td>
- <img class='owned_check' src='<?=$path["img"]["layout"]?>icon/check.png'/>
- </td>
- <?php
- }
- ?>
- </tr>
- </table>
- <?php
- }
- ?>
- </td>
- </tr>
- </table>
- <?php
- }
- }
- }
- ?>
- </td>
- </tr>
- </table>
- <?php
- }
- ?>
- </td>
- </tr>
- </table>
- <?php
- } // foreach ($page->fusion as $fusion)
- ?>
- </div> <!-- .section -->
- </div> <!-- .content -->
- <?php
- include __DIR__ . "/inc/footer.php";
- ?>
- </body>
- </html>
|