source: spip-zone/_plugins_/oembed/modeles/oembed_video.html @ 104855

Last change on this file since 104855 was 104855, checked in by cedric@…, 3 years ago

Securisation de la vignette utilisee sur les oembed rich/video async si on utilise acces restreint et/ou des urls arbos

File size: 1.5 KB
Line 
1#SET{thumbnail,#ENV{data/thumbnail_url}|sinon{#ENV{data/image}}}
2#SET{async,#ENV{async}|=={non}|non|et{#GET{thumbnail}|et{#ENV*{data/html}|match{'<iframe'}}|oui}}
3<div class="oembed oe-video[(#GET{async}|oui)async] clearfix[ (#ENV{align})]" style="max-width:#ENV{data/width}px;">
4        <div class="rwd-video-container[(#GET{async}|oui)oe-play-button]"
5                style="width:100%;height:0;padding-bottom:[(#ENV{data/height}|div{#ENV{data/width}}|mult{100}|round{2})]%;[background-image:url('(#GET{thumbnail}|oembed_safe_thumbnail)');background-repeat:no-repeat;background-position:center;background-size:cover;]"
6                         [(#GET{async}|oui)
7                        onclick="if (jQuery(this).is('.oe-play-button')){jQuery(this).removeClass('oe-play-button').addClass('loading').html(decodeURIComponent('[(#ENV*{data/html}|oembed_force_video_autoplay|rawurlencode|texte_script)]'));}"
8                ]>
9                        [(#GET{async}|oui) <button onclick="jQuery(this).parent().trigger('click');">Play</button>]
10                        [(#GET{async}|non) [(#ENV*{data/html}|et{#ENV{autoplay}}|?{[(#ENV*{data/html}|oembed_force_video_autoplay)],#ENV*{data/html}|sinon{#ENV{url}}})] ]
11        </div>
12        <style><!--/**/.oe-video .loading {background-image:url("#CHEMIN_IMAGE{searching.gif}")!important;background-size:auto !important;}/**/--></style>
13</div>
14[<div class="spip_doc_titre" style="max-width:#ENV{data/width}px;"><a href="#ENV*{url}" class="oe-title">(#ENV*{data/title})</a>[
15<span class="oe-author_name"><br /><i>par <a href="#ENV*{data/author_url}">(#ENV*{data/author_name})</a></i></span>]</div>]
Note: See TracBrowser for help on using the repository browser.