-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
259 additions
and
338 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/** | ||
* Rendering of the outer (channel) feed XML for the podcast | ||
*/ | ||
prototype(DasPerfekteTeam.Podcaster:Feed) < prototype(Neos.Fusion:Template) { | ||
@context.podcast = ${q(node).closest('[instanceof DasPerfekteTeam.Podcaster:Podcast]').get(0)} | ||
templatePath = 'resource://DasPerfekteTeam.Podcaster/Private/Templates/Feed/Channel.xml' | ||
|
||
podcast = ${podcast} | ||
title = ${q(podcast).property('title')} | ||
url = Neos.Neos:NodeUri { | ||
node = ${podcast} | ||
format = 'html' | ||
absolute = true | ||
} | ||
|
||
selfLink = ${request.httpRequest.uri} | ||
|
||
description = ${q(podcast).property('metaDescription')} | ||
date = ${Date.format('now', 'D, d M Y H:i:s O')} | ||
image = Neos.Neos:ImageUri { | ||
asset = ${q(podcast).property('image')} | ||
absolute = true | ||
} | ||
author = ${q(podcast).property('author')} | ||
explicit = ${q(podcast).property('explicit') ? 'yes' : 'no'} | ||
category = '' | ||
email = '' | ||
|
||
keywords = ${q(podcast).property('metaKeywords')} | ||
summary = ${q(podcast).property('summary') ? q(podcast).property('summary') : q(podcast).property('metaDescription')} | ||
locale = 'de-DE' | ||
|
||
episodes = ${q(podcast).children('[instanceof DasPerfekteTeam.Podcaster:Episode]')} | ||
episodeRenderer = DasPerfekteTeam.Podcaster:Feed.Episode | ||
|
||
|
||
@cache { | ||
mode = 'cached' | ||
|
||
entryIdentifier { | ||
node = ${node} | ||
audiotype = ${request.arguments.audiotype} | ||
} | ||
|
||
entryTags { | ||
# Whenever the node changes the matched condition could change | ||
1 = ${'Node_' + documentNode.identifier} | ||
# Whenever an episode changes | ||
3 = 'NodeType_DasPerfekteTeam.Podcaster:Episode' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* Rendering definition for the XML snippet of a single episode in the Podcast feed | ||
*/ | ||
prototype(DasPerfekteTeam.Podcaster:Feed.Episode) < prototype(Neos.Fusion:Template) { | ||
templatePath = 'resource://DasPerfekteTeam.Podcaster/Private/Templates/Feed/Episode.xml' | ||
|
||
episode = ${episode} | ||
title = ${q(episode).property('title')} | ||
subtitle = ${q(episode).property('titleOverride')} | ||
url = Neos.Neos:NodeUri { | ||
node = ${episode} | ||
format = 'html' | ||
absolute = true | ||
} | ||
description = ${q(episode).property('metaDescription')} | ||
date = ${Date.format(q(episode).property('publicationDate'), 'D, d M Y H:i:s O')} | ||
image = Neos.Neos:ImageUri { | ||
asset = ${q(episode).property('poster')} | ||
absolute = true | ||
@if.hasImage = ${q(documentNode).property('poster') != null} | ||
} | ||
|
||
audio = ${Array.first(Podcaster.filterByProperty(q(episode).property('audio'), 'resource.fileExtension', request.arguments.audiotype))} | ||
audioLength = ${q(episode).property('audioLength')} | ||
|
||
@if.hasAudio = ${this.audio ? true : false} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* The HTTP message for the podcast XML feed | ||
*/ | ||
prototype(DasPerfekteTeam.Podcaster:Feed.Http) < prototype(Neos.Fusion:Http.Message) { | ||
httpResponseHead.headers.Content-Type = 'application/xml' | ||
content = DasPerfekteTeam.Podcaster:Feed | ||
} | ||
|
||
root { | ||
podcastFeed { | ||
condition = ${request.format == 'podcast.xml'} | ||
renderer = DasPerfekteTeam.Podcaster:Feed.Http | ||
} | ||
|
||
@cache.entryIdentifier { | ||
audiotype = ${request.arguments.audiotype} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
prototype(DasPerfekteTeam.Podcaster:EpisodeCard) < prototype(Neos.Fusion:Template) { | ||
templatePath = 'resource://DasPerfekteTeam.Podcaster/Private/Templates/FusionObjects/EpisodeCard.html' | ||
node = ${item} | ||
title = ${item.label} | ||
player = DasPerfekteTeam.Podcaster:PlayerEmbed { | ||
@context.episodeNode = ${item} | ||
|
||
metadata { | ||
summaryVisible = false | ||
timecontrolsVisible = false | ||
sharebuttonsVisible = false | ||
chaptersVisible = false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
prototype(DasPerfekteTeam.Podcaster:EpisodeList) > | ||
prototype(DasPerfekteTeam.Podcaster:EpisodeList) < prototype(Neos.Fusion:Tag) { | ||
tagName = 'div' | ||
attributes.class = 'row' | ||
content = Neos.Fusion:Collection { | ||
collection = ${q(site).find('[instanceof DasPerfekteTeam.Podcaster:Episode]')} | ||
itemRenderer = DasPerfekteTeam.Podcaster:EpisodeCard | ||
} | ||
|
||
# The following line must not be removed as it adds required meta data to all content elements in backend | ||
@process.contentElementWrapping { | ||
expression = Neos.Neos:ContentElementWrapping | ||
@position = 'end 999999999' | ||
} | ||
} |
Oops, something went wrong.