Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
sg_youtube
Commits
0d019b4c
Commit
0d019b4c
authored
Feb 24, 2021
by
Tim Wagner
Browse files
[BUGFIX] Wrong showDescription variable used in FE template
parent
8493fc44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Classes/Controller/YoutubeController.php
View file @
0d019b4c
...
...
@@ -83,7 +83,7 @@ class YoutubeController extends ActionController {
'feed'
=>
$jsonArray
[
'items'
],
'response'
=>
$jsonArray
,
'debugOutput'
=>
$debugOutput
,
'showDescription'
=>
$this
->
settings
[
'showDescription'
]
??
1
,
'showDescription'
=>
(
int
)
(
$this
->
settings
[
'showDescription'
]
??
1
)
,
]
);
...
...
Resources/Private/Templates/Youtube/Index.html
View file @
0d019b4c
...
...
@@ -8,7 +8,7 @@
<f:if
condition=
"{response.kind} == 'youtube#playlistItemListResponse' && {feed -> f:count() > 0}"
>
<f:then>
<div
class=
"sg-youtube-playlist"
>
<f:if
condition=
"{feed -> f:count()} == 1"
>
<f:if
condition=
"{feed -> f:count()} ==
=
1"
>
<f:then>
<ul
class=
"sg-youtube"
>
<li
class=
"sg-youtube-item-container sg-youtube-item-single"
>
...
...
@@ -25,7 +25,7 @@
</h3>
</div>
</f:if>
<f:if
condition=
"{
settings.
showDescription} && {feed.0.description}"
>
<f:if
condition=
"{showDescription} && {feed.0.description}"
>
<div
class=
"sg-youtube-text"
>
<f:format.htmlentitiesDecode><f:format.crop
maxCharacters=
"200"
>
{feed.0.description}
</f:format.crop></f:format.htmlentitiesDecode>
</div>
...
...
@@ -50,7 +50,7 @@
</h3>
</div>
</f:if>
<f:if
condition=
"{
settings.
showDescription} && {feed.0.description}"
>
<f:if
condition=
"{showDescription} && {feed.0.description}"
>
<div
class=
"sg-youtube-text"
>
<f:format.htmlentitiesDecode><f:format.crop
maxCharacters=
"200"
>
{feed.0.description}
</f:format.crop></f:format.htmlentitiesDecode>
</div>
...
...
@@ -106,7 +106,7 @@
</h3>
</div>
</f:if>
<f:if
condition=
"{
settings.
showDescription} && {feedItem.description}"
>
<f:if
condition=
"{showDescription} && {feedItem.description}"
>
<div
class=
"sg-youtube-text"
>
<f:format.htmlentitiesDecode><f:format.crop
maxCharacters=
"200"
>
{feedItem.description}
</f:format.crop></f:format.htmlentitiesDecode>
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment