Skip to content
Snippets Groups Projects
Commit 18e2633a authored by Yassine Doghri's avatar Yassine Doghri
Browse files

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

parent 61cf8fa3
No related branches found
No related tags found
No related merge requests found
Pipeline #14983 passed
Pipeline: Castopod

#14984

    ......@@ -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',
    ......
    ......@@ -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>
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment