Initial commit - Typo3 11.5.41
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# cat=Youtubevideo/1; type=int+; label= Max width of the cover image in px
|
||||
youtubevideo.coverimagewidth = 1280
|
||||
# cat=Youtubevideo/1; type=boolean[1]; label= Disable Youtube logo in video
|
||||
youtubevideo.modestbranding = 0
|
||||
# cat=Youtubevideo/1; type=boolean[1]; label= Disable 'share' and 'watch later' links by using youtube-nocookie.com
|
||||
youtubevideo.nocookiehost = 0
|
||||
# cat=Youtubevideo/1; type=int+; label= Add class 'small' to the video container if outer container is narrower than this
|
||||
youtubevideo.breakpointSmall = 500
|
||||
# cat=Youtubevideo/1; type=int+; label= Add class 'tiny' to the video container if outer container is narrower than this
|
||||
youtubevideo.breakpointTiny = 300
|
||||
# cat=Youtubevideo/1; type=boolean[1]; label= Enable GDPR notification overlay after clicking 'play'
|
||||
youtubevideo.gdprnote = 1
|
||||
# cat=Youtubevideo/1; type=string; label= Override GDPR notification text
|
||||
youtubevideo.gdprtextoverride =
|
||||
# cat=Youtubevideo/youtubevideo; type=int+; label= Padding between images in % of outside container
|
||||
youtubevideo.colspacewidth = 1.5
|
||||
# cat=Youtubevideo/youtubevideo; type=boolean[1]; label= Iframe instead of API on demand, not GDPR friendly
|
||||
youtubevideo.iframe = 0
|
||||
# cat=Youtubevideo/1; type=string; label= Template root paths
|
||||
youtubevideo.templateRootPaths = EXT:youtubevideo/Resources/Private/Templates/
|
||||
# cat=Youtubevideo/1; type=string; label= Template root paths
|
||||
youtubevideo.partialRootPaths = EXT:youtubevideo/Resources/Private/Partials/
|
||||
# cat=Youtubevideo/1; type=string; label= CSS file path
|
||||
youtubevideo.cssPath = EXT:youtubevideo/Resources/Public/Styles/youtubevideo.css
|
||||
@@ -0,0 +1,92 @@
|
||||
page.includeCSS.youtubevideo = {$youtubevideo.cssPath}
|
||||
|
||||
# set JS constants for video container breakpoint classes
|
||||
page.jsFooterInline {
|
||||
10982311 = TEXT
|
||||
10982311.value (
|
||||
containerBreakpointSmall = {$youtubevideo.breakpointSmall};
|
||||
containerBreakpointTiny = {$youtubevideo.breakpointTiny};
|
||||
)
|
||||
}
|
||||
|
||||
tt_content {
|
||||
youtubevideo_pi1 =< lib.contentElement
|
||||
youtubevideo_pi1 {
|
||||
templateName = Youtubevideo
|
||||
templateName = TEXT
|
||||
# load iframe template if constant has been set
|
||||
templateName.stdWrap {
|
||||
cObject = TEXT
|
||||
cObject {
|
||||
value = YoutubevideoIframe
|
||||
if.isTrue = {$youtubevideo.iframe}
|
||||
}
|
||||
ifEmpty = Youtubevideo
|
||||
}
|
||||
|
||||
templateRootPaths.20909 = {$youtubevideo.templateRootPaths}
|
||||
partialRootPaths.20909 = {$youtubevideo.partialRootPaths}
|
||||
dataProcessing {
|
||||
10 = Brightside\Youtubevideo\DataProcessing\YoutubevideoFilesProcessor
|
||||
10 {
|
||||
pagination {
|
||||
isActive.field = tx_paginatedprocessors_paginationenabled
|
||||
uniqueId.field = uid
|
||||
uniqueId.override.field = tx_paginatedprocessors_urlsegment
|
||||
itemsPerPage = tx_paginatedprocessors_itemsperpage
|
||||
itemsPerPage.field = tx_paginatedprocessors_itemsperpage
|
||||
pageLinksShown = 5
|
||||
pageLinksShown.override.field = tx_paginatedprocessors_pagelinksshown
|
||||
anchorActive.field = tx_paginatedprocessors_anchor
|
||||
anchorId.field = uid
|
||||
anchorId.override.field = tx_paginatedprocessors_anchorid
|
||||
}
|
||||
}
|
||||
}
|
||||
# dataProcessing.10 = Brightside\Youtubevideo\DataProcessing\DatabaseCustomQueryProcessor
|
||||
settings {
|
||||
coverimagewidth = {$youtubevideo.coverimagewidth}
|
||||
colspacewidth = {$youtubevideo.colspacewidth}
|
||||
}
|
||||
variables {
|
||||
# language code use de, fr, et etc.
|
||||
hl = TEXT
|
||||
hl.data = siteLanguage:iso-639-1
|
||||
|
||||
# wide screen 16:9 value (math behind: 9 * 100 / 16 = 56.25)
|
||||
ratioDefault = TEXT
|
||||
ratioDefault.value = 56.25
|
||||
|
||||
# old screens 4:3 value (math behind: 3 * 100 / 4 = 75)
|
||||
ratio1 = TEXT
|
||||
ratio1.value = 75
|
||||
|
||||
modestbranding = TEXT
|
||||
modestbranding.value = {$youtubevideo.modestbranding}
|
||||
|
||||
nocookiehost = TEXT
|
||||
nocookiehost.value = {$youtubevideo.nocookiehost}
|
||||
|
||||
coverimagewidth = TEXT
|
||||
coverimagewidth.value = {$youtubevideo.coverimagewidth}
|
||||
|
||||
containerBreakpointSmall = TEXT
|
||||
containerBreakpointSmall.value = {$youtubevideo.breakpointSmall}
|
||||
|
||||
containerBreakpointTiny = TEXT
|
||||
containerBreakpointTiny.value = {$youtubevideo.breakpointTiny}
|
||||
|
||||
gdprnote = TEXT
|
||||
gdprnote.value = {$youtubevideo.gdprnote}
|
||||
|
||||
gdprtextoverride = TEXT
|
||||
gdprtextoverride.value = {$youtubevideo.gdprtextoverride}
|
||||
|
||||
colspacewidth = TEXT
|
||||
colspacewidth.value = {$youtubevideo.colspacewidth}
|
||||
|
||||
iframe = TEXT
|
||||
iframe.value = {$youtubevideo.iframe}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user