diff --git a/build/wp-attached-gpx/render.php b/build/wp-attached-gpx/render.php index c82368a..ec2d2de 100644 --- a/build/wp-attached-gpx/render.php +++ b/build/wp-attached-gpx/render.php @@ -3,6 +3,14 @@ * @see https://github.com/WordPress/gutenberg/blob/trunk/docs/reference-guides/block-api/block-metadata.md#render */ ?> -

> - -

+
> + $gpx) { + $url = wp_get_attachment_url($id); + echo '
'.wpgpxmaps_handle_shortcodes(['gpx'=>$url, 'attachments'=>true]).'
'; + } + + +?> +
diff --git a/src/wp-attached-gpx/render.php b/src/wp-attached-gpx/render.php index c82368a..ec2d2de 100644 --- a/src/wp-attached-gpx/render.php +++ b/src/wp-attached-gpx/render.php @@ -3,6 +3,14 @@ * @see https://github.com/WordPress/gutenberg/blob/trunk/docs/reference-guides/block-api/block-metadata.md#render */ ?> -

> - -

+
> + $gpx) { + $url = wp_get_attachment_url($id); + echo '
'.wpgpxmaps_handle_shortcodes(['gpx'=>$url, 'attachments'=>true]).'
'; + } + + +?> +