aboutsummaryrefslogtreecommitdiff
path: root/templates/shortcodes/vm.html
diff options
context:
space:
mode:
authorJieiku2022-05-31 01:50:30 -0700
committerJieiku2022-05-31 01:50:30 -0700
commitec161233068f6f634d81e07de94f64d7fcedc951 (patch)
tree19be6ebb6c6d360ca05472829f33e92cf0bc9833 /templates/shortcodes/vm.html
parentd4a052e86f33ced79b9f4d09aeee0b1c43ef1f23 (diff)
downloadabridge-ec161233068f6f634d81e07de94f64d7fcedc951.tar.gz
abridge-ec161233068f6f634d81e07de94f64d7fcedc951.tar.bz2
abridge-ec161233068f6f634d81e07de94f64d7fcedc951.zip
Custom yt and vm shortcodes for youtube and vimeo
Diffstat (limited to 'templates/shortcodes/vm.html')
-rw-r--r--templates/shortcodes/vm.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/shortcodes/vm.html b/templates/shortcodes/vm.html
index 70230fe..9b593e8 100644
--- a/templates/shortcodes/vm.html
+++ b/templates/shortcodes/vm.html
@@ -1,3 +1,3 @@
-<div style="position:relative;padding-bottom:56.25%;height:0;overflow:hidden;">
- <iframe src="https://player.vimeo.com/video/{{id}}" title="{{title | default(value="Vimeo") }}" style="position:absolute;top:0;left:0;"></iframe>
+<div {% if class %}class="{{class}}" {% endif %}style="position:relative;padding-bottom:56.25%;height:0;overflow:hidden;">
+ <iframe src="https://player.vimeo.com/video/{{id}}?embedded=true{% if autoplay %}&autoplay=1{% endif %}{% if loop %}&loop=1{% endif %}{% if noautopause %}&autopause=0{% endif %}{% if not cookie %}&dnt=1{% endif %}" title="{{title | default(value="Vimeo") }}" style="position:absolute;top:0;left:0;" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>