Widget:YouTube: Difference between revisions

Want an adless experience? Log in or Create an account.
Added playlist support
(will revert if this doesn't work.)
(Added playlist support)
Line 1: Line 1:
<includeonly><iframe width="<!--{$width|escape:'html'|default:'425'}-->" height="<!--{$height|escape:'html'|default:355}-->" src="http://www.youtube.com/embed/<!--{$id|escape:'urlpathinfo'}-->#at=<!--{$at|escape:'urlpathinfo'}-->" frameborder="0" allowfullscreen></iframe></embed></object></includeonly>
<includeonly><iframe width="<!--{$width|escape:'html'|default:'425'}-->" height="<!--{$height|escape:'html'|default:355}-->" src="http://www.youtube.com/embed/<!--{if isset($playlist)}-->?listType=playlist&list=<!--{$playlist|escape:'urlpathinfo'}--><!--{else}--><!--{$id|escape:'urlpathinfo'}--><!--{/if}-->" frameborder="0" allowfullscreen></iframe></embed></object></includeonly>