fix tac yt
This commit is contained in:
@@ -4,4 +4,13 @@
|
||||
* Display an iframe with alterable components.
|
||||
*/
|
||||
#}
|
||||
<iframe{{ attributes }}{% if url is not empty %} title="le direct" src="{{ url }}{% if query is not empty %}?{{ query | url_encode }}{% endif %}{% if fragment is not empty %}#{{ fragment }}{% endif %}"{% endif %}></iframe>
|
||||
{# <iframe{{ attributes }}{% if url is not empty %} title="le direct" class="youtube_player" src="{{ url }}{% if query is not empty %}?{{ query | url_encode }}{% endif %}{% if fragment is not empty %}#{{ fragment }}{% endif %}"{% endif %}></iframe> #}
|
||||
|
||||
{% if url is not empty %}
|
||||
{% set id = url|split('v=')|last %}
|
||||
{% set id = id|split('&')|first %}
|
||||
{% set id = id|split('/')|last %}
|
||||
|
||||
<div class="youtube_player w-100" width="auto" height="auto" videoID="{{ id }}" theme="light" rel="1" controls="1" showinfo="1" autoplay="0" mute="0"></div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user