summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/anime/index.html.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/views/anime/index.html.php b/views/anime/index.html.php
new file mode 100644
index 0000000..a67fd5e
--- /dev/null
+++ b/views/anime/index.html.php
@@ -0,0 +1,40 @@
+<?php
+$this->styles($this->html->style('anime'));
+?>
+
+<h2 class="ribbon full">Anime</h2>
+<div class="triangle-ribbon"></div>
+
+<?= $this->Paginator->paginate(array('separator' => '')) ?>
+
+<table>
+<th>Title</th>
+<th>Date</th>
+<th>Type</th>
+<?php foreach ($content as $anime): ?>
+ <tr>
+ <td>
+ <a href="/anime/view/<?= $anime->special_id ?>"><?= $anime->title ?></a>
+ <?php if ($anime->foreign_titles || $anime->alternative_titles): ?>
+ <span class="alt_titles">
+ <?php if ($anime->foreign_titles): ?>
+ <?= $anime->foreign_titles[0] ?>
+ <?php endif ?>
+ <?php if ($anime->alternative_titles): ?>
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ <?= $anime->alternative_titles[0] ?>
+ <?php endif ?>
+ </span>
+ <?php endif ?>
+ </td>
+ <td>
+ <?= $anime->aired ?>
+ </td>
+ <td>
+ <?= $anime->view_type ?>
+ </td>
+ </tr>
+<?php endforeach ?>
+</table>
+
+<?= $this->Paginator->paginate(array('separator' => '')) ?>