2020-10-02 17:38:16 +02:00
|
|
|
<?php
|
|
|
|
$podcastNavigation = [
|
|
|
|
'dashboard' => [
|
|
|
|
'icon' => 'dashboard',
|
2021-09-07 17:43:09 +02:00
|
|
|
'items' => ['podcast-view', 'podcast-edit', 'podcast-persons-manage'],
|
2020-10-02 17:38:16 +02:00
|
|
|
],
|
|
|
|
'episodes' => [
|
|
|
|
'icon' => 'mic',
|
|
|
|
'items' => ['episode-list', 'episode-create'],
|
|
|
|
],
|
|
|
|
'analytics' => [
|
|
|
|
'icon' => 'line-chart',
|
2020-10-14 12:38:48 +02:00
|
|
|
'items' => [
|
|
|
|
'podcast-analytics',
|
|
|
|
'podcast-analytics-unique-listeners',
|
2020-10-19 12:33:23 +02:00
|
|
|
'podcast-analytics-listening-time',
|
2020-10-14 12:38:48 +02:00
|
|
|
'podcast-analytics-players',
|
|
|
|
'podcast-analytics-locations',
|
2020-11-02 19:15:19 +01:00
|
|
|
'podcast-analytics-time-periods',
|
2020-10-14 12:38:48 +02:00
|
|
|
'podcast-analytics-webpages',
|
|
|
|
],
|
2020-10-02 17:38:16 +02:00
|
|
|
],
|
|
|
|
'contributors' => [
|
|
|
|
'icon' => 'group',
|
|
|
|
'items' => ['contributor-list', 'contributor-add'],
|
|
|
|
],
|
2020-11-18 18:17:56 +01:00
|
|
|
'platforms' => [
|
2021-04-02 19:20:02 +02:00
|
|
|
'icon' => 'link',
|
2020-11-18 18:17:56 +01:00
|
|
|
'items' => [
|
|
|
|
'platforms-podcasting',
|
|
|
|
'platforms-social',
|
|
|
|
'platforms-funding',
|
|
|
|
],
|
2020-10-02 17:38:16 +02:00
|
|
|
],
|
|
|
|
]; ?>
|
|
|
|
|
2021-09-03 18:34:06 +02:00
|
|
|
<div class="flex items-center px-4 py-2 border-b border-pine-900">
|
2020-10-02 17:38:16 +02:00
|
|
|
<img
|
|
|
|
src="<?= $podcast->image->thumbnail_url ?>"
|
|
|
|
alt="<?= $podcast->title ?>"
|
2021-09-03 18:34:06 +02:00
|
|
|
class="object-cover w-16 h-16 rounded"
|
2020-10-02 17:38:16 +02:00
|
|
|
/>
|
2020-10-14 18:03:42 +02:00
|
|
|
<div class="flex flex-col items-start flex-1 w-48 px-2">
|
2021-09-03 18:34:06 +02:00
|
|
|
<span class="w-full font-semibold truncate" title="<?= $podcast->title ?>"><?= $podcast->title ?></span>
|
2020-10-02 17:38:16 +02:00
|
|
|
<a href="<?= route_to(
|
2021-04-02 19:20:02 +02:00
|
|
|
'podcast-activity',
|
2021-07-26 15:10:46 +02:00
|
|
|
$podcast->handle,
|
2021-09-03 18:34:06 +02:00
|
|
|
) ?>" class="inline-flex items-center text-sm outline-none hover:underline focus:ring"
|
2020-10-02 17:38:16 +02:00
|
|
|
data-toggle="tooltip" data-placement="bottom" title="<?= lang(
|
2021-04-02 19:20:02 +02:00
|
|
|
'PodcastNavigation.go_to_page',
|
2021-07-26 15:10:46 +02:00
|
|
|
) ?>">@<?= $podcast->handle ?>
|
2021-09-03 18:34:06 +02:00
|
|
|
<?= icon('external-link', 'ml-1 opacity-60') ?>
|
2020-10-02 17:38:16 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-09-03 18:34:06 +02:00
|
|
|
<nav class="flex flex-col flex-1 py-4 overflow-y-auto gap-y-4">
|
2020-10-02 17:38:16 +02:00
|
|
|
<?php foreach ($podcastNavigation as $section => $data): ?>
|
2021-09-03 18:34:06 +02:00
|
|
|
<div>
|
|
|
|
<button class="inline-flex items-center w-full px-4 py-1 font-semibold outline-none focus:ring" type="button">
|
|
|
|
<?= icon($data['icon'], 'opacity-60 text-2xl mr-4') .
|
2021-04-02 19:20:02 +02:00
|
|
|
lang('PodcastNavigation.' . $section) ?>
|
2020-10-02 17:38:16 +02:00
|
|
|
</button>
|
2021-04-02 19:20:02 +02:00
|
|
|
<ul class="flex flex-col">
|
2020-10-02 17:38:16 +02:00
|
|
|
<?php foreach ($data['items'] as $item): ?>
|
2021-04-02 19:20:02 +02:00
|
|
|
<?php $isActive = url_is(route_to($item, $podcast->id)); ?>
|
|
|
|
<li class="inline-flex">
|
2021-09-03 18:34:06 +02:00
|
|
|
<a class="w-full py-1 pl-14 pr-2 text-sm outline-none hover:opacity-100 focus:ring <?= $isActive
|
|
|
|
? 'font-semibold opacity-100 inline-flex items-center'
|
|
|
|
: 'opacity-75' ?>" href="<?= route_to(
|
|
|
|
$item,
|
|
|
|
$podcast->id,
|
|
|
|
) ?>"><?= ($isActive ? icon('chevron-right', 'mr-2') : '') .lang('PodcastNavigation.' . $item) ?></a>
|
2020-10-02 17:38:16 +02:00
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</nav>
|