Commit 0d019b4c authored by Tim Wagner's avatar Tim Wagner
Browse files

[BUGFIX] Wrong showDescription variable used in FE template

parent 8493fc44
......@@ -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),
]
);
......
......@@ -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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment