aboutsummaryrefslogtreecommitdiff
path: root/templates/components/youtube.html
blob: 7b09b39af4f0802f9cce91dcbb784eca434574f1 (plain)
1
2
3
4
5
{% component youtube(id, class="", title="", playlist="", autoplay=false, cookie=false) %}
<div class="yv{% if class %} {{class}}{% endif %}">
    <iframe src="https://www.youtube{% if not cookie %}-nocookie{% endif %}.com/embed/{{id}}{% if playlist %}?list={{playlist}}{% endif %}{% if autoplay %}?autoplay=1{% endif %}" title="{{ title if title else 'Youtube' }}" class="yvi" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
{% endcomponent youtube %}