Updated videos templates
authorThierry Florac <thierry.florac@onf.fr>
Mon, 20 May 2019 11:29:41 +0200
changeset 1311 d643d60aa096
parent 1310 2302a43f55b0
child 1312 7196e51819fe
Updated videos templates
src/pyams_content/component/video/provider/zmi/templates/dailymotion-render.pt
src/pyams_content/component/video/provider/zmi/templates/vimeo-render.pt
src/pyams_content/component/video/provider/zmi/templates/youtube-render.pt
--- a/src/pyams_content/component/video/provider/zmi/templates/dailymotion-render.pt	Mon May 13 17:37:49 2019 +0200
+++ b/src/pyams_content/component/video/provider/zmi/templates/dailymotion-render.pt	Mon May 20 11:29:41 2019 +0200
@@ -1,8 +1,8 @@
 <div class="embed-container video-wrapper">
 	<iframe type="text/html" class="video" frameborder="0"
-			tal:attributes="src string:https://www.dailymotion.com/embed/video/${context.video_id}?${view.get_url_params()};
-							width context.width;
-							height context.height;
-							allowfullscreen 'true' if context.allow_fullscreen else None;
-							allow 'autoplay' if context.autoplay else None;"></iframe>
+			src="https://www.dailymotion.com/embed/video/${context.video_id}?${structure:view.get_url_params()}"
+			width="${context.width}"
+			height="${context.height}"
+			allowfullscreen="${'true' if context.allow_fullscreen else None}"
+			allow="${'autoplay' if context.autoplay else None}"></iframe>
 </div>
--- a/src/pyams_content/component/video/provider/zmi/templates/vimeo-render.pt	Mon May 13 17:37:49 2019 +0200
+++ b/src/pyams_content/component/video/provider/zmi/templates/vimeo-render.pt	Mon May 20 11:29:41 2019 +0200
@@ -1,9 +1,9 @@
 <div class="embed-container video-wrapper">
 	<iframe type="text/html" class="video" frameborder="0"
-			tal:attributes="src string:https://player.vimeo.com/video/${context.video_id}?${view.get_url_params()};
-							width context.width;
-							height context.height;
-							allowfullscreen 'true' if context.allow_fullscreen else None;
-							webkitallowfullscreen 'true' if context.allow_fullscreen else None;
-							mozallowfullscreen 'true' if context.allow_fullscreen else None;"></iframe>
+			src="https://player.vimeo.com/video/${context.video_id}?${structure:view.get_url_params()}"
+			width="${context.width}"
+			height="${context.height}"
+			allowfullscreen="${'true' if context.allow_fullscreen else None}"
+			webkitallowfullscreen="${'true' if context.allow_fullscreen else None}"
+			mozallowfullscreen="${'true' if context.allow_fullscreen else None}"></iframe>
 </div>
--- a/src/pyams_content/component/video/provider/zmi/templates/youtube-render.pt	Mon May 13 17:37:49 2019 +0200
+++ b/src/pyams_content/component/video/provider/zmi/templates/youtube-render.pt	Mon May 20 11:29:41 2019 +0200
@@ -1,7 +1,7 @@
 <div class="embed-container video-wrapper">
 	<iframe type="text/html" class="video" frameborder="0"
-			tal:attributes="src string:https://www.youtube.com/embed/${context.video_id}?${view.get_url_params()};
-							width context.width;
-							height context.height;
-							allowfullscreen 'allowfullscreen' if context.allow_fullscreen else None;"></iframe>
+			src="https://www.youtube.com/embed/${context.video_id}?${structure:view.get_url_params()}"
+			width="${context.width}"
+			height="${context.height}"
+			allowfullscreen="${'allowfullscreen' if context.allow_fullscreen else None}"></iframe>
 </div>