2021-11-12 16:31:35 +00:00
|
|
|
<?= $this->extend('pages/_layout') ?>
|
2021-02-10 16:20:01 +00:00
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('Person.credits') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
|
|
|
<div class="grid w-full grid-cols-1 gap-4 md:grid-cols-2">
|
2021-05-06 14:00:48 +00:00
|
|
|
<?php foreach ($credits as $groupSlug => $groups): ?>
|
|
|
|
<?php if ($groupSlug): ?>
|
2021-11-05 14:36:34 +00:00
|
|
|
<h2 class="col-span-1 mt-12 mb-2 text-xl font-semibold text-skin-muted md:text-2xl md:col-span-2 "><?= $groups[
|
2021-05-06 14:00:48 +00:00
|
|
|
'group_label'
|
2021-11-05 14:36:34 +00:00
|
|
|
] ?></h2>
|
2021-05-06 14:00:48 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php foreach ($groups['persons'] as $persons): ?>
|
|
|
|
<div class="flex mt-2 mb-2">
|
2022-03-04 14:33:48 +00:00
|
|
|
<img src="<?= $persons['thumbnail_url'] ?>" alt="<?= esc($persons[
|
2021-05-06 14:00:48 +00:00
|
|
|
'full_name'
|
2022-03-04 14:33:48 +00:00
|
|
|
]) ?>" class="object-cover w-16 rounded-full aspect-square md:h-24 md:w-24 border-gray" loading="lazy" />
|
2021-05-06 14:00:48 +00:00
|
|
|
<div class="flex flex-col ml-3 mr-4">
|
2021-11-05 14:36:34 +00:00
|
|
|
<span class="text-lg font-semibold text-skin-muted md:text-xl">
|
2022-03-04 14:33:48 +00:00
|
|
|
<?= esc($persons['full_name']) ?>
|
2021-05-06 14:00:48 +00:00
|
|
|
</span>
|
2021-05-18 17:16:36 +00:00
|
|
|
<?php if ($persons['information_url'] !== null): ?>
|
2022-03-04 14:33:48 +00:00
|
|
|
<a href="<?= esc($persons[
|
2021-05-06 14:00:48 +00:00
|
|
|
'information_url'
|
2022-03-04 14:33:48 +00:00
|
|
|
]) ?>" class="text-sm font-semibold text-accent-base hover:underline" target="_blank" rel="noreferrer noopener"><?= $persons[
|
2021-05-06 14:00:48 +00:00
|
|
|
'information_url'
|
|
|
|
] ?></a>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex flex-col">
|
|
|
|
<?php foreach ($persons['roles'] as $role): ?>
|
|
|
|
<?= $role['role_label'] ?>
|
|
|
|
|
|
|
|
<?php foreach ($role['is_in'] as $in): ?>
|
2022-03-04 14:33:48 +00:00
|
|
|
<a href="<?= esc($in[
|
2021-05-06 14:00:48 +00:00
|
|
|
'link'
|
2022-03-15 15:23:13 +00:00
|
|
|
]) ?>" class="text-sm text-skin-muted hover:underline"><?= $in['title'] ?></a>
|
2021-05-06 14:00:48 +00:00
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php endforeach; ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
</div>
|
2021-02-10 16:20:01 +00:00
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
2021-04-02 17:20:02 +00:00
|
|
|
|
2021-02-10 16:20:01 +00:00
|
|
|
<?php $this->endSection(); ?>
|