Danyi Dávid c4438f7e8c * image upload handling
* old static image migrator implementation as cli command
* auth id fix, renew works now
* templates refactored to work with uploaded images
2018-05-13 22:34:15 +02:00

13 lines
794 B
PHTML

<?php $this->layout('layout::default', ['title' => sprintf("%s's %s and judges", $year, count($awardees) > 1 ? 'awardees' : 'awardee')]) ?>
<section class="awardees">
<?php foreach ($awardees as $awardee): ?>
<a class="awardee" href="<?= $this->url('awardee', ['slug' => $awardee->getSlug()]) ?>">
<img class="profile" src="<?= $this->url('api.awardee-image', ['slug' => $awardee->getSlug(), 'type' => 'profile']) ?>">
<div class="year"><?= $year ?></div>
<div class="name"><?= $awardee->getName() ?></div>
<div class="description"><?= $this->batch($awardee->getText(), 'excerpt|mdtohtml') ?></div>
</a>
<?php endforeach; ?>
<?php $this->insert('app::judges.inc', ['judges' => $judges, 'year' => $year]) ?>
</section>