feat(admin): add rss feed link to podcast side navigation

This commit is contained in:
Yassine Doghri 2023-11-21 17:15:04 +00:00
parent 61cf8fa3e2
commit 18e2633a49
2 changed files with 8 additions and 5 deletions

View File

@ -10,6 +10,7 @@ declare(strict_types=1);
return [
'go_to_page' => 'Go to podcast page',
'rss_feed' => 'RSS feed',
'dashboard' => 'Podcast dashboard',
'podcast-view' => 'Home',
'podcast-edit' => 'Edit podcast',

View File

@ -32,9 +32,8 @@ $podcastNavigation = [
],
],
'monetization' => [
'icon' => 'money-dollar-circle',
'add-cta' => 'subscription-create',
'items' => [
'icon' => 'money-dollar-circle',
'items' => [
'subscription-list',
'subscription-create',
'platforms-funding',
@ -52,14 +51,14 @@ $podcastNavigation = [
?>
<div class="relative flex items-center px-4 py-2 border-b border-navigation">
<div class="relative flex items-stretch px-2 py-2 border-b border-navigation">
<?php if ($podcast->is_premium): ?>
<Icon glyph="exchange-dollar" class="absolute pl-1 text-xl rounded-r-full rounded-tl-lg left-4 top-4 text-accent-contrast bg-accent-base" />
<?php endif; ?>
<img
src="<?= $podcast->cover->thumbnail_url ?>"
alt="<?= esc($podcast->title) ?>"
class="object-cover w-16 h-16 rounded aspect-square"
class="object-cover w-20 h-20 rounded aspect-square"
loading="lazy"
/>
<div class="flex flex-col items-start flex-1 w-48 px-2">
@ -73,6 +72,9 @@ $podcastNavigation = [
) ?>">@<?= esc($podcast->handle) ?>
<?= icon('external-link', 'ml-1 opacity-60') ?>
</a>
<a href="<?= $podcast->feed_url ?>" class="inline-flex items-center mt-auto text-xs gap-x-1 focus:ring-accent group hover:underline" target="_blank" rel="noopener noreferrer">
<?= icon('rss', 'text-xl text-orange-400 inline-flex items-center justify-center rounded') . lang('PodcastNavigation.rss_feed') . icon('external-link', 'text-sm opacity-60') ?>
</a>
</div>
</div>