forked from TagesschuleElementa/www.tagesschule-elementa.ch
install app files for djangocms-video==2.0.4
This commit is contained in:
0
templates/djangocms_video/default/.aldryn-folder
Normal file
0
templates/djangocms_video/default/.aldryn-folder
Normal file
17
templates/djangocms_video/default/source.html
Normal file
17
templates/djangocms_video/default/source.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% load i18n cms_tags %}
|
||||
|
||||
{% if not disabled %}
|
||||
{% with instance.source_file.extension as ext %}
|
||||
<source src="{{ instance.source_file.url }}" type="video/{{ ext }}" {{ instance.attributes_str }}>
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
|
||||
{% comment %}
|
||||
# https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
|
||||
# https://github.com/divio/django-filer/blob/master/filer/models/filemodels.py
|
||||
{{ instance.source_file }}
|
||||
# Available variables:
|
||||
{{ instance.text_title }}
|
||||
{{ instance.text_description }}
|
||||
{{ instance.attributes_str }}
|
||||
{% endcomment %}
|
||||
18
templates/djangocms_video/default/track.html
Normal file
18
templates/djangocms_video/default/track.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{% if not disabled %}
|
||||
<track kind="{{ instance.kind }}" src="{{ instance.src.url }}"
|
||||
{% if instance.srclang %} srclang="{{ instance.srclang }}"{% endif %}
|
||||
{% if instance.label %} label="{{ instance.label }}"{% endif %}
|
||||
{% if instance.attributes %} {{ instance.attributes_str }}{% endif %}
|
||||
>
|
||||
{% endif %}
|
||||
|
||||
{% comment %}
|
||||
# https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track
|
||||
# https://github.com/divio/django-filer/blob/master/filer/models/foldermodels.py
|
||||
{{ instance.src }}
|
||||
# Available variables:
|
||||
{{ instance.kind }}
|
||||
{{ instance.srclang }}
|
||||
{{ instance.label }}
|
||||
{{ instance.attributes_str }}
|
||||
{% endcomment %}
|
||||
29
templates/djangocms_video/default/video_player.html
Normal file
29
templates/djangocms_video/default/video_player.html
Normal file
@@ -0,0 +1,29 @@
|
||||
{% load i18n cms_tags %}
|
||||
|
||||
{% if instance.embed_link %}
|
||||
{# show iframe if embed_link is provided #}
|
||||
<iframe src="{{ instance.embed_link }}" {{ instance.attributes_str }} frameborder="0" allowfullscreen="true"></iframe>
|
||||
{% with disabled=instance.embed_link %}
|
||||
{% for plugin in instance.child_plugin_instances %}
|
||||
{% render_plugin plugin %}
|
||||
{% endfor %}
|
||||
{% endwith %}
|
||||
{% else %}
|
||||
{# render <source> or <track> plugins #}
|
||||
<video controls {{ instance.attributes_str }}
|
||||
{% if instance.poster %} poster="{{ instance.poster.url }}"{% endif %}>
|
||||
{% for plugin in instance.child_plugin_instances %}
|
||||
{% render_plugin plugin %}
|
||||
{% endfor %}
|
||||
{% trans "Your browser doesn't support this video format." %}
|
||||
</video>
|
||||
{% endif %}
|
||||
|
||||
{% comment %}
|
||||
# Available variables:
|
||||
{{ instance.template }}
|
||||
{{ instance.label }}
|
||||
{{ instance.embed_link }}
|
||||
{{ instance.poster }}
|
||||
{{ instance.attributes_str }}
|
||||
{% endcomment %}
|
||||
Reference in New Issue
Block a user