mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-03 16:02:02 +00:00
feat(admin): add rss feed link to podcast side navigation
This commit is contained in:
parent
61cf8fa3e2
commit
18e2633a49
@ -10,6 +10,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'go_to_page' => 'Go to podcast page',
|
'go_to_page' => 'Go to podcast page',
|
||||||
|
'rss_feed' => 'RSS feed',
|
||||||
'dashboard' => 'Podcast dashboard',
|
'dashboard' => 'Podcast dashboard',
|
||||||
'podcast-view' => 'Home',
|
'podcast-view' => 'Home',
|
||||||
'podcast-edit' => 'Edit podcast',
|
'podcast-edit' => 'Edit podcast',
|
||||||
|
@ -33,7 +33,6 @@ $podcastNavigation = [
|
|||||||
],
|
],
|
||||||
'monetization' => [
|
'monetization' => [
|
||||||
'icon' => 'money-dollar-circle',
|
'icon' => 'money-dollar-circle',
|
||||||
'add-cta' => 'subscription-create',
|
|
||||||
'items' => [
|
'items' => [
|
||||||
'subscription-list',
|
'subscription-list',
|
||||||
'subscription-create',
|
'subscription-create',
|
||||||
@ -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): ?>
|
<?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" />
|
<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; ?>
|
<?php endif; ?>
|
||||||
<img
|
<img
|
||||||
src="<?= $podcast->cover->thumbnail_url ?>"
|
src="<?= $podcast->cover->thumbnail_url ?>"
|
||||||
alt="<?= esc($podcast->title) ?>"
|
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"
|
loading="lazy"
|
||||||
/>
|
/>
|
||||||
<div class="flex flex-col items-start flex-1 w-48 px-2">
|
<div class="flex flex-col items-start flex-1 w-48 px-2">
|
||||||
@ -73,6 +72,9 @@ $podcastNavigation = [
|
|||||||
) ?>">@<?= esc($podcast->handle) ?>
|
) ?>">@<?= esc($podcast->handle) ?>
|
||||||
<?= icon('external-link', 'ml-1 opacity-60') ?>
|
<?= icon('external-link', 'ml-1 opacity-60') ?>
|
||||||
</a>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user