view.html.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php
  2. $this->styles($this->html->style('view'));
  3. ?>
  4. <h2 class="ribbon full"><?= $anime->title ?></h2>
  5. <div class="triangle-ribbon"></div>
  6. <br class="cl">
  7. <aside id="img">
  8. <img src="<?=$anime->image ?>" alt="<?= $anime->title ?>">
  9. </aside>
  10. <section><p>
  11. <?php if(isset($anime->foreign_titles)):
  12. $str = 'Foreign titles:';
  13. for ($i = 0; $i < count($anime->foreign_titles); $i++) {
  14. if ($i > 0) $str .= '<b>,</b>';
  15. $str .= ' ' . $anime->foreign_titles[$i];
  16. }
  17. $str .= '<br>';
  18. ?>
  19. <?= $str ?>
  20. <?php endif; ?>
  21. <?php if(isset($anime->alternative_titles)):
  22. $str = 'Alternative titles:';
  23. for ($i = 0; $i < count($anime->alternative_titles); $i++) {
  24. if ($i > 0) $str .= '<b>,</b>';
  25. $str .= ' ' . $anime->alternative_titles[$i];
  26. }
  27. $str .= '<br>';
  28. ?>
  29. <?= $str ?>
  30. <?php endif; ?>
  31. Type: <?= $anime->view_type ?><br>
  32. Episodes: <?= $anime->episode_count ?><br>
  33. Aired: <?= $anime->aired ?><br>
  34. Producers: <?php
  35. $str = '';
  36. for ($i = 0; $i < count($anime->producers); $i++) {
  37. if ($i > 0) $str .= ',';
  38. $str .= ' <a href="/producer/view/' . $anime->producers[$i] . '">' . $anime->producers[$i] . '</a>';
  39. } ?><?= $str ?><br>
  40. Genres: <?php
  41. $str = '';
  42. for ($i = 0; $i < count($anime->genres); $i++) {
  43. if ($i > 0) $str .= ',';
  44. $str .= ' <a href="/producer/view/' . $anime->genres[$i] . '">' . $anime->genres[$i] . '</a>';
  45. } ?><?= $str ?><br>
  46. Duration: <?= $anime->episode_duration ?><br>
  47. Rating: <?= $anime->rated ?><br>
  48. Related: <?= $related ?>
  49. </p></section>
  50. <aside id="malstats">
  51. <h2>MAL Stats</h2>
  52. <p>
  53. Score: <?= $anime->mal_score ?><br>
  54. Votes: <?= $anime->mal_score_voted ?><br>
  55. Ranked: <?= $anime->mal_rank ?><br>
  56. Popularity: <?= $anime->mal_popularity ?><br>
  57. Members: <?= $anime->mal_score ?>
  58. </p>
  59. </aside>
  60. <br class="cl">
  61. <h2 class="ribbon">Synopsis</h2>
  62. <div class="triangle-ribbon"></div>
  63. <br class="cl">
  64. <p><?= $anime->synopsis ?></p>
  65. <h2 class="ribbon">Characters and VA's</h2>
  66. <div class="triangle-ribbon"></div>
  67. <br class="cl">
  68. <?php foreach($anime->cast as $char): ?>
  69. <?= $char->character ?>
  70. <?= $char->role ?>
  71. Played by:
  72. <?php if (isset($char->people)): ?>
  73. <?php foreach($char->people as $actor): ?>
  74. <?= $actor->name ?>
  75. <?= $actor->language ?>
  76. <?php endforeach; ?>
  77. <?php endif; ?>
  78. <?php endforeach; ?>
  79. </div>
  80. <br class="cl"/>
  81. </div>