Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_youtube
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_youtube
Commits
2ca492a3
Commit
2ca492a3
authored
4 months ago
by
Georgi
Browse files
Options
Downloads
Patches
Plain Diff
[BUGFIX] Pass the shorts variable
parent
fe90abcd
No related branches found
Branches containing commit
Tags
8.1.1
Tags containing commit
1 merge request
!15
[TASK] move flexform field down, add max-height for shorts videos, add backend...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Resources/Private/Templates/Bootstrap5/Youtube/Index.html
+3
-3
3 additions, 3 deletions
Resources/Private/Templates/Bootstrap5/Youtube/Index.html
Resources/Private/Templates/Youtube/Index.html
+4
-2
4 additions, 2 deletions
Resources/Private/Templates/Youtube/Index.html
with
7 additions
and
5 deletions
Resources/Private/Templates/Bootstrap5/Youtube/Index.html
+
3
−
3
View file @
2ca492a3
...
...
@@ -174,7 +174,7 @@
<div
class=
"sg-video__item {itemClasses}"
>
<f:if
condition=
"{feedItem.thumbnail}"
>
<a
class=
"sg-video-item overflow-hidden text-light sg-video__link position-relative {f:if(condition: '!{hasText} || {isRowsLayout}', then: 'rounded')} {f:if(condition: '{isRowsLayout}', then: 'col-12 col-sm-3 shadow', else: 'card-img-top')}"
href=
"{feedItemUrl}"
data-disable-lightbox=
"{settings.disableLightbox}"
target=
"_blank"
data-disable-lightbox-mobile=
"{settings.disableLightboxMobile}"
data-additional-url-parameters=
"{urlParameters}"
data-video-type=
"youtube"
>
<a
class=
"sg-video-item overflow-hidden text-light sg-video__link position-relative {f:if(condition: '!{hasText} || {isRowsLayout}', then: 'rounded')} {f:if(condition: '{isRowsLayout}', then: 'col-12 col-sm-3 shadow', else: 'card-img-top')}"
href=
"{feedItemUrl}"
data-disable-lightbox=
"{settings.disableLightbox}"
target=
"_blank"
data-disable-lightbox-mobile=
"{settings.disableLightboxMobile}"
data-additional-url-parameters=
"{urlParameters}"
data-video-type=
"youtube"
data-is-shorts=
"{settings.isShorts}"
>
<div
class=
"sg-video__svg position-absolute top-50p start-50p translate-middle z-1"
>
<span
class=
"sg-video__svg-inner d-flex shadow text-bg-black bg-opacity-50 rounded-circle justify-content-center p-2"
>
<vi:renderSvg
color=
"currentColor"
name=
"solid-play"
width=
"24"
height=
"24"
></vi:renderSvg>
...
...
@@ -184,10 +184,10 @@
<div
class=
"overflow-hidden"
>
<f:if
condition=
"{feedItem.thumbnailImageObject}"
>
<f:then>
<vi:picture
class=
"sg-video__image object-fit-cover h-100 w-100"
width=
"{thumbnailWidth}"
height=
"{thumbnailHeight}"
image=
"{feedItem.thumbnailImageObject}"
alt=
"{feedItem.title}"
/>
<vi:picture
class=
"sg-video__image object-fit-cover h-100 w-100
{f:if(condition: '{settings.isShorts}', then: ' sg-video__image--shorts')}
"
width=
"{thumbnailWidth}"
height=
"{thumbnailHeight}"
image=
"{feedItem.thumbnailImageObject}"
alt=
"{feedItem.title}"
/>
</f:then>
<f:else>
<vi:picture
class=
"sg-video__image object-fit-cover h-100 w-100"
width=
"{thumbnailWidth}"
height=
"{thumbnailHeight}"
image=
"{feedItem.thumbnail}"
alt=
"{feedItem.title}"
treatIdAsReference=
"TRUE"
/>
<vi:picture
class=
"sg-video__image object-fit-cover h-100 w-100
{f:if(condition: '{settings.isShorts}', then: ' sg-video__image--shorts')}
"
width=
"{thumbnailWidth}"
height=
"{thumbnailHeight}"
image=
"{feedItem.thumbnail}"
alt=
"{feedItem.title}"
treatIdAsReference=
"TRUE"
/>
</f:else>
</f:if>
</div>
...
...
This diff is collapsed.
Click to expand it.
Resources/Private/Templates/Youtube/Index.html
+
4
−
2
View file @
2ca492a3
...
...
@@ -148,15 +148,17 @@
<f:variable
name=
"urlParameters"
>
{f:if(condition: '{settings.urlParameters}', then: '{settings.urlParameters}', else: '{settings.globalUrlParameters}')}
</f:variable>
<f:variable
name=
"feedItemUrl"
><yt:urlWithQueryParameters
url=
"{feedItem.url}"
parameters=
"{urlParameters}"
/></f:variable>
<div
class=
"sg-video__item"
>
<f:debug>
{settings}
</f:debug>
<f:if
condition=
"{feedItem.thumbnail}"
>
<a
class=
"sg-video__image-container sg-video-item"
href=
"{feedItemUrl}"
data-disable-lightbox=
"{settings.disableLightbox}"
target=
"_blank"
data-disable-lightbox-mobile=
"{settings.disableLightboxMobile}"
data-additional-url-parameters=
"{urlParameters}"
data-video-type=
"youtube"
>
data-video-type=
"youtube"
data-is-shorts=
"{settings.isShorts}"
>
<span>
<yt:renderSvg
color=
"currentColor"
name=
"solid-play"
></yt:renderSvg>
<img
class=
"sg-video__image"
src=
"{feedItem.thumbnail}"
alt=
"{feedItem.title}"
/>
<img
class=
"sg-video__image
{f:if(condition: '{settings.isShorts}', then: ' sg-video__image--shorts')}
"
src=
"{feedItem.thumbnail}"
alt=
"{feedItem.title}"
/>
</span>
</a>
...
...
This diff is collapsed.
Click to expand it.
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