Commit 1b7b4d76 authored by Jakob Moser's avatar Jakob Moser
Browse files

Allow fullscreen capabilities of iframe

parent 3da06993
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ function fscoli_embed_umap($regex_matches, $embed_attrs, $url, $raw_embed_attrs)
    $height = esc_attr($embed_attrs['height'].'px');
    $url = esc_url($url);
    return <<<HTML
        <iframe src="$url" style="width: $width; height: $height"></iframe>
        <iframe src="$url" style="width: $width; height: $height" allow="fullscreen"></iframe>
    HTML;
}
wp_embed_register_handler('umap', '#^https://umap.openstreetmap.de/[a-z]{2}/map/.*#', 'fscoli_embed_umap');