Skip to content

No options when using youtube() #2118

@dorb4n

Description

@dorb4n

Describe the bug
I don't get the parameters in the youtube url (iframe) when setting the $options in the youtube() function.

https://getkirby.com/docs/reference/templates/helpers/youtube

To Reproduce
In my Template i use the youtube() function with the $options to hide the controlls:

youtube($myVideoUrl, array("controlls" => 0))

Expected behavior
I want to get an iframe with the parameter controlls, like:

<iframe allowfullscreen src="https://www.youtube.com/embed/123456789?controlls=0"></iframe>

But the ?controlls=0 is missing.

Kirby Version
3.2.4

Console output
No Output

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Firefox
  • Version: 69

Additional context
https://github.com/getkirby/kirby/blob/3.2.4/src/Toolkit/Html.php#L439
Is $options['youtube'] right? With $options it works.

html::youtube() works perfectly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions