Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Castopod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ad Aures
Castopod
Commits
18e2633a
Commit
18e2633a
authored
1 year ago
by
Yassine Doghri
Browse files
Options
Downloads
Patches
Plain Diff
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
1 year ago
Stage: prepare
Stage: quality
Stage: bundle
Stage: build
Pipeline: Castopod
#14984
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Admin/Language/en/PodcastNavigation.php
+1
-0
1 addition, 0 deletions
modules/Admin/Language/en/PodcastNavigation.php
themes/cp_admin/podcast/_sidebar.php
+7
-5
7 additions, 5 deletions
themes/cp_admin/podcast/_sidebar.php
with
8 additions
and
5 deletions
modules/Admin/Language/en/PodcastNavigation.php
+
1
−
0
View file @
18e2633a
...
...
@@ -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'
,
...
...
This diff is collapsed.
Click to expand it.
themes/cp_admin/podcast/_sidebar.php
+
7
−
5
View file @
18e2633a
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Yassine Doghri
@yassinedoghri
mentioned in commit
de8b84c8
·
1 year ago
mentioned in commit
de8b84c8
mentioned in commit de8b84c8741f0f4e48a84e518c521b2a340f3f14
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment