diff --git a/templates/djangocms_video/default/.aldryn-folder b/templates/djangocms_video/default/.aldryn-folder new file mode 100644 index 0000000..e69de29 diff --git a/templates/djangocms_video/default/source.html b/templates/djangocms_video/default/source.html new file mode 100644 index 0000000..6034c00 --- /dev/null +++ b/templates/djangocms_video/default/source.html @@ -0,0 +1,17 @@ +{% load i18n cms_tags %} + +{% if not disabled %} + {% with instance.source_file.extension as ext %} + + {% 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 %} diff --git a/templates/djangocms_video/default/track.html b/templates/djangocms_video/default/track.html new file mode 100644 index 0000000..239a799 --- /dev/null +++ b/templates/djangocms_video/default/track.html @@ -0,0 +1,18 @@ +{% if not disabled %} + +{% 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 %} diff --git a/templates/djangocms_video/default/video_player.html b/templates/djangocms_video/default/video_player.html new file mode 100644 index 0000000..1eb8277 --- /dev/null +++ b/templates/djangocms_video/default/video_player.html @@ -0,0 +1,29 @@ +{% load i18n cms_tags %} + +{% if instance.embed_link %} + {# show iframe if embed_link is provided #} + + {% with disabled=instance.embed_link %} + {% for plugin in instance.child_plugin_instances %} + {% render_plugin plugin %} + {% endfor %} + {% endwith %} +{% else %} + {# render or plugins #} + +{% endif %} + +{% comment %} + # Available variables: + {{ instance.template }} + {{ instance.label }} + {{ instance.embed_link }} + {{ instance.poster }} + {{ instance.attributes_str }} +{% endcomment %}