| 1 | <?php |
||
| 7 | class Oembed |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Sets an oembed source as data attribute. |
||
| 11 | * Possibility to append query variables to the URL by using additional get parameters. |
||
| 12 | * |
||
| 13 | * @since 0.2.0 |
||
| 14 | * |
||
| 15 | * @param $iframeTagHtml string The oembed iframe HTML tag. |
||
| 16 | * @param $additionalGetParams array Associative array of key/values of additional query variables to append to the url. |
||
| 17 | * |
||
| 18 | * @return string The modified oembed iframe HTML tag. |
||
| 19 | */ |
||
| 20 | public static function setSrcAsDataAttribute($iframeTagHtml, $additionalGetParams) |
||
| 36 | } |
||
| 37 |