Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[ADD] Backen label for image and videojs

  • Loading branch information...
commit 541258cc5bbdb27f4cebed832fa665aec84110f4 1 parent 1e47bdf
Noël Bossart authored
View
12 Configuration/TypoScript/setup.txt
@@ -22,11 +22,11 @@ plugin.tx_podcast {
page {
- #includeJSlibs {
- # videosj.external = 1
- # videosj = http://vjs.zencdn.net/c/video.js
- # audiojs = EXT:podcast/Resources/Public/js/audio.min.js
- #}
+ includeJSlibs {
+ videosj.external = 1
+ videosj = http://vjs.zencdn.net/c/video.js
+ #audiojs = EXT:podcast/Resources/Public/js/audio.min.js
+ }
#jsFooterInline{
# 153245874680 = TEXT
# 153245874680.value (
@@ -36,7 +36,7 @@ page {
# )
#}
includeCSS {
- #videojs = EXT:podcast/Resources/Public/css/video-js.min.css
+ videojs = EXT:podcast/Resources/Public/css/video-js.min.css
tx_podcast_file_1 = EXT:podcast/Resources/Public/css/default.css
}
}
View
4 Resources/Private/Language/locallang_db.xml
@@ -43,8 +43,9 @@
<label index="tx_podcast_domain_model_episode.website">Website</label>
<label index="tx_podcast_domain_model_episode.author">Author</label>
<label index="tx_podcast_domain_model_episode.keywords">Keywords</label>
+ <label index="tx_podcast_domain_model_episode.image">Image</label>
- <label index="tx_podcast_domain_model_category">Category</label>
+ <label index="tx_podcast_domain_model_category">Category</label>
<label index="tx_podcast_domain_model_category.title">Title</label>
<label index="tx_podcast_domain_model_category.subcategory">Subcategory</label>
<label index="tx_podcast_domain_model_category.parentcategory">Parentcategory</label>
@@ -98,6 +99,7 @@
<label index="tx_podcast_domain_model_episode.duration">Dauer</label>
<label index="tx_podcast_domain_model_episode.website">Webseite</label>
<label index="tx_podcast_domain_model_episode.author">Author</label>
+ <label index="tx_podcast_domain_model_episode.image">Bild</label>
<label index="tx_podcast_domain_model_category">Kategorie</label>
<label index="tx_podcast_domain_model_category.title">Titel</label>
View
9 Resources/Private/Partials/episode.html
@@ -10,10 +10,7 @@
</div>
<div class="video">
<video data-setup="{}" width="800" height="330" id="podcastvideo_{episode.uid}" class="video-js vjs-default-skin"
- preload="auto" controls="controls"
- <f:if condition="{episode.image}">
- poster="{f:uri.image(src:'uploads/tx_podcast/{episode.image}', width:'800' height:'330')}"</f:if>
- >
+ preload="auto" controls="controls" <f:if condition="{episode.image}">poster="{f:uri.image(src:'uploads/tx_podcast/{episode.image}', width:'800' height:'330')}"</f:if>>
<f:for each="{episode.altfiles}" as="altfile">
<source src="{altfile.name}" type='{altfile.mime}' />
</f:for>
@@ -22,6 +19,8 @@
<p>
<strong>Duration:</strong>
<pc:duration timestamp="{episode.duration}" />
+ {episode.duration}
+
</p>
</div>
</f:then>
@@ -29,7 +28,7 @@
<div class="audio">
<audio controls="controls" autobuffer="controls">
<f:for each="{episode.altfiles}" as="altfile">
- <source src="{altfile.name}" />
+ <source src="{altfile.name}" type='{altfile.mime}'/>
</f:for>
Your browser does not support the audio element.
</audio>
View
17 Resources/Private/Templates/Podcast/show.xml
@@ -24,22 +24,7 @@
<f:then><itunes:image href="<f:uri.resource path="{f:uri.image(src:'uploads/tx_podcast/{podcast.image}', width:'600' height:'600')}" absolute="true" />" /></f:then>
<f:else><itunes:image href="<f:uri.resource path="{f:uri.image(src:'typo3conf/ext/podcast/Resources/Public/Icons/podcast.jpg', width:'600' height:'600')}" absolute="true" />" /></f:else>
</f:if>
- <f:if condition="{podcast.categories}">
- <f:for each="{podcast.categories}" as="category" reverse="false">
- <f:if condition="{category.subcategory}">
- <f:then>
- <itunes:category text="{category.title}">
- <f:for each="{category.subcategory}" as="subcategory" reverse="false">
- <itunes:category text="{subcategory.title}"/>
- </f:for>
- </itunes:category>
- </f:then>
- <f:else>
- <itunes:category text="{category.title}"/>
- </f:else>
- </f:if>
- </f:for>
- </f:if>
+
</f:then>
<f:else>
<subtitle>{podcast.subtitle}</subtitle>
Please sign in to comment.
Something went wrong with that request. Please try again.