Commit 18e2633a authored by Yassine Doghri's avatar Yassine Doghri
Browse files

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

parent 61cf8fa3
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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',
+7 −5
Original line number Diff line number Diff line
@@ -33,7 +33,6 @@ $podcastNavigation = [
    ],
    'monetization' => [
        'icon'  => 'money-dollar-circle',
        'add-cta' => 'subscription-create',
        'items' => [
            'subscription-list',
            '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): ?>
        <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>