Skip to content
Snippets Groups Projects
Commit badca5e8 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[TASK] Open youtube videos in a new window

parent 93b5003d
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<ul class="sg-youtube"> <ul class="sg-youtube">
<f:for each="{feed}" as="feedItem" iteration="feedIterator"> <f:for each="{feed}" as="feedItem" iteration="feedIterator">
<li class="sg-youtube-item-container{f:if(condition: '{feedIterator.total} < 2', then: ' sg-youtube-item-single')}"> <li class="sg-youtube-item-container{f:if(condition: '{feedIterator.total} < 2', then: ' sg-youtube-item-single')}">
<a class="sg-youtube-item sg-card-shadow" href="{feedItem.url}"> <a class="sg-youtube-item sg-card-shadow" href="{feedItem.url}" target="_blank">
<f:if condition="{feedItem.thumbnail}"> <f:if condition="{feedItem.thumbnail}">
<div class="sg-youtube-image" style="background-image: url('{feedItem.thumbnail}');"></div> <div class="sg-youtube-image" style="background-image: url('{feedItem.thumbnail}');"></div>
</f:if> </f:if>
...@@ -17,11 +17,7 @@ ...@@ -17,11 +17,7 @@
</f:if> </f:if>
<f:if condition="{feedItem.description}"> <f:if condition="{feedItem.description}">
<div class="sg-youtube-text"> <div class="sg-youtube-text">
<f:format.htmlentitiesDecode> <f:format.htmlentitiesDecode><f:format.crop maxCharacters="200">{feedItem.description}</f:format.crop></f:format.htmlentitiesDecode>
<f:format.crop maxCharacters="200">
{feedItem.description}
</f:format.crop>
</f:format.htmlentitiesDecode>
</div> </div>
</f:if> </f:if>
</a> </a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment