mardi 16 août 2016 à 16:43
Nouveau plugin et BB code pour les vidéos Youtube.
{youtube link}
[youtube width=x height=y]{youtube link}[/youtube]
[yt]{youtube ID}[/yt]
[yt {parameters}]{youtube ID}[/yt]
[yt_user]{username}[/yt_user]
[yt_user {parameters}]{username}[/yt_user]
[yt_search]{search query}[/yt_search]
[yt_search {parameters}]{search query}[/yt_search]
where width and height is specified by x and y. If width and height aren't specified, width is 100% of the post display area and height in a 16:9 ratio to the width.
The yt_user bbcode will show videos by the specified YouTube username.
The yt_search bbcode will show videos matching the provided search phrase.
Optional parameters and values for all YouTube bbcodes are:
o width = Specifies the width of the iframe area.
o height = Specifies the height of the iframe area.
o start = Specifies how far into the video to start at. Valid formats: "Seconds" or "Minutes:Seconds"
o end = Specifies how far into the video to stop at. Valid formats: "Seconds" or "Minutes:Seconds"
o autoplay = 1, yes, on or true
o color = red or white
o theme = dark or light
o loop = 1, yes, on or true
o controls = 0, no, off, hide or false
o showinfo = 0, no, off, hide or false
o privacy = 1, yes, on or true