Widget:Vimeo: Difference between revisions
From Halopedia, the Halo wiki
(Created page with "<noinclude>This widget allows you to embed Vimeo videos. Accepted parameters: '''id''' (required), '''time''', '''width''', '''height''', '''thumb''', '''left''', '''right''',...") |
mNo edit summary |
||
Line 4: | Line 4: | ||
<iframe class="<!--{if isset($thumb)}-->thumbimage<!--{/if}-->" style="<!--{if isset($thumb)}-->display:block;<!--{/if}-->" width="<!--{if isset($width)}--><!--{($width|escape:'html')|string_format:"%d"}--><!--{else if isset($height)}--><!--{($height*(16/9)+0.5)|string_format:"%d"}--><!--{else if isset($thumb)}-->250<!--{else}-->560<!--{/if}-->" height="<!--{if isset($height)}--><!--{($height|escape:'html')|string_format:"%d"}--><!--{else if isset($width)}--><!--{($width*(9/16)+0.5)|string_format:"%d"}--><!--{else if isset($thumb)}-->141<!--{else}-->315<!--{/if}-->" src="https://player.vimeo.com/video/<!--{$id|escape:'url'}--><!--{if isset($time)}-->#t=<!--{$time|escape:'url'}--><!--{/if}-->" frameborder="0" allowfullscreen></iframe> | <iframe class="<!--{if isset($thumb)}-->thumbimage<!--{/if}-->" style="<!--{if isset($thumb)}-->display:block;<!--{/if}-->" width="<!--{if isset($width)}--><!--{($width|escape:'html')|string_format:"%d"}--><!--{else if isset($height)}--><!--{($height*(16/9)+0.5)|string_format:"%d"}--><!--{else if isset($thumb)}-->250<!--{else}-->560<!--{/if}-->" height="<!--{if isset($height)}--><!--{($height|escape:'html')|string_format:"%d"}--><!--{else if isset($width)}--><!--{($width*(9/16)+0.5)|string_format:"%d"}--><!--{else if isset($thumb)}-->141<!--{else}-->315<!--{/if}-->" src="https://player.vimeo.com/video/<!--{$id|escape:'url'}--><!--{if isset($time)}-->#t=<!--{$time|escape:'url'}--><!--{/if}-->" frameborder="0" allowfullscreen></iframe> | ||
<!--{if isset($thumb) || isset($caption)}--><div class="thumbcaption"><!--{if isset($thumb)}--><div class="magnify"><a href="https://vimeo.com/<!--{$id|escape:'url'}-->" class="internal" title="Enlarge" target="_blank"></a></div><!--{/if}--><!--{if isset($caption)}--><!--{$caption|escape:'html'}--><!--{/if}--></div><!--{/if}--> | <!--{if isset($thumb) || isset($caption)}--><div class="thumbcaption"><!--{if isset($thumb)}--><div class="magnify"><a href="https://vimeo.com/<!--{$id|escape:'url'}-->" class="internal" title="Enlarge" target="_blank"></a></div><!--{/if}--><!--{if isset($caption)}--><!--{$caption|escape:'html'}--><!--{/if}--></div><!--{/if}--> | ||
</div></div><!--{else}--><p style="color:red | </div></div><!--{else}--><p style="color:red">No <b>id</b> provided for the Vimeo widget!</p><!--{/if}--> | ||
</includeonly> | </includeonly> |
Revision as of 13:27, October 15, 2019
This widget allows you to embed Vimeo videos. Accepted parameters: id (required), time, width, height, thumb, left, right, center, caption.