Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Následující verze | Předchozí verze | ||
skoda-ep:modules:shortcodes:embed-share [31.01.2018 05:33] Lukáš Čech vytvořeno |
skoda-ep:modules:shortcodes:embed-share [01.08.2018 07:50] (aktuální) Lukáš Čech [Hiding iframe for unsupported resolutions] |
||
---|---|---|---|
Řádek 31: | Řádek 31: | ||
URL attribute is required and should be a valid URL or a relative URL on the current domain, e.g. https://google.com or /en/interesting-page/ | URL attribute is required and should be a valid URL or a relative URL on the current domain, e.g. https://google.com or /en/interesting-page/ | ||
+ | ===== Hiding iframe for unsupported resolutions ===== | ||
+ | |||
+ | As of August 2018 it is possible to hide the embed when it becomes smaller than the resolution it can support. Instead a message will be shown to the user: | ||
+ | |||
+ | |||
+ | {{ :skoda-ep:modules:shortcodes:embed-share:hiding-threshold.png | }} | ||
+ | |||
+ | |||
+ | You can use this option by specifying a shortcode attribute or using the widget Embed Share and putting the number in the following field: | ||
+ | |||
+ | {{ :skoda-ep:modules:shortcodes:embed-share:hide-below.png | }} | ||
==== Optional attributes ==== | ==== Optional attributes ==== | ||
Řádek 37: | Řádek 48: | ||
* **button**: [ true | __false__ ] Whether or not to print the embed button | * **button**: [ true | __false__ ] Whether or not to print the embed button | ||
* **new-window** [ true | __false__ | Some text ] Whether or not to print the link which opens the iframe in a new window. If you supply a custom text, it will be used instead of the default "Open in a new window" text | * **new-window** [ true | __false__ | Some text ] Whether or not to print the link which opens the iframe in a new window. If you supply a custom text, it will be used instead of the default "Open in a new window" text | ||
+ | * **hide-below** [ number ] When this attribute is used, the iframe will be hidden when it becomes smaller than the specified number (size is in pixels) | ||