HummingBirdAnimeClient/app/views/manga/details.php

59 lines
1.4 KiB
PHP
Raw Normal View History

2017-03-31 13:37:53 -04:00
<main class="details fixed">
2016-04-14 17:51:00 -04:00
<section class="flex flex-no-wrap">
<div>
2017-01-04 13:16:58 -05:00
<img class="cover" src="<?= $data['cover_image'] ?>" alt="<?= $data['title'] ?> cover image" />
2016-04-14 17:51:00 -04:00
<br />
<br />
<table>
<tr>
<td>Manga Type</td>
<td><?= $data['manga_type'] ?></td>
</tr>
<tr>
<td>Volume Count</td>
<td><?= $data['volume_count'] ?></td>
</tr>
<tr>
<td>Chapter Count</td>
<td><?= $data['chapter_count'] ?></td>
</tr>
<tr>
<td>Genres</td>
<td>
<?= implode(', ', $data['genres']); ?>
</td>
</tr>
</table>
</div>
<div>
2017-01-04 13:16:58 -05:00
<h2><a rel="external" href="<?= $data['url'] ?>"><?= $data['title'] ?></a></h2>
<?php if( ! empty($data['en_title'])): ?>
<h3><?= $data['en_title'] ?></h3>
2016-04-14 17:51:00 -04:00
<?php endif ?>
<br />
<p><?= nl2br($data['synopsis']) ?></p>
</div>
</section>
2017-03-24 10:59:07 -04:00
<?php if (count($characters) > 0): ?>
<h2>Characters</h2>
<section class="media-wrap">
2017-03-24 10:59:07 -04:00
<?php foreach($characters as $char): ?>
<?php if ( ! empty($char['image']['original'])): ?>
<article class="character">
2017-03-24 10:59:07 -04:00
<?php $link = $url->generate('character', ['slug' => $char['slug']]) ?>
<div class="name">
<?= $helper->a($link, $char['name']); ?>
</div>
2017-03-24 10:59:07 -04:00
<a href="<?= $link ?>">
<?= $helper->img($char['image']['original'], [
'width' => '225'
]) ?>
</a>
</article>
2017-03-24 10:59:07 -04:00
<?php endif ?>
<?php endforeach ?>
</section>
<?php endif ?>
2016-04-14 17:51:00 -04:00
</main>