summaryrefslogtreecommitdiff
path: root/addons/website_slides/static/src/xml/website_slides_fullscreen.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/website_slides/static/src/xml/website_slides_fullscreen.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/website_slides/static/src/xml/website_slides_fullscreen.xml')
-rw-r--r--addons/website_slides/static/src/xml/website_slides_fullscreen.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/addons/website_slides/static/src/xml/website_slides_fullscreen.xml b/addons/website_slides/static/src/xml/website_slides_fullscreen.xml
new file mode 100644
index 00000000..ceebb9d2
--- /dev/null
+++ b/addons/website_slides/static/src/xml/website_slides_fullscreen.xml
@@ -0,0 +1,22 @@
+<templates id="template" xml:space="preserve">
+
+ <t t-name="website.slides.fullscreen.content">
+ <t t-if="_.contains(['document', 'presentation'], widget.get('slide').type)">
+ <div class="embed-responsive h-100">
+ <iframe t-att-src="widget.get('slide').embedUrl" class="o_wslides_iframe_viewer" allowFullScreen="true" frameborder="0"/>
+ </div>
+ </t>
+ <t t-if="widget.get('slide').type === 'infographic'">
+ <div class="o_wslides_fs_player w-100 h-100 overflow-auto d-flex align-items-start justify-content-center">
+ <img t-att-src="'/web/image/slide.slide/'+ widget.get('slide').id +'/image_1024'" class="img-fluid position-relative m-auto" alt="Slide image"/>
+ </div>
+ </t>
+ </t>
+
+ <t t-name="website.slides.fullscreen.video">
+ <div class="player embed-responsive embed-responsive-16by9 embed-responsive-item h-100">
+ <iframe t-att-id="'youtube-player' + widget.slide.id" t-att-src="widget.slide.embedUrl" allowFullScreen="true" frameborder="0" enablejsapi="1" autoplay="1" allow="autoplay"></iframe>
+ </div>
+ </t>
+
+</templates>