First pass at server-side render (working)

This commit is contained in:
Justin Foell
2020-11-27 12:57:33 -06:00
parent 5f3572cd71
commit 2c8c70123c
2 changed files with 23 additions and 1 deletions
+14
View File
@@ -28,6 +28,20 @@ class WPStrava_Blocks_Activity implements WPStrava_Blocks_Interface {
'editor_style' => 'wp-strava-block-editor',
'editor_script' => 'wp-strava-block',
'render_callback' => array( $this, 'render_block' ),
'attributes' => array(
'url' => array(
'type' => 'string',
'default' => '',
),
'imageOnly' => array(
'type' => 'boolean',
'default' => false,
),
'displayMarkers' => array(
'type' => 'boolean',
'default' => false,
),
),
)
);
add_action( 'wp_footer', array( $this, 'print_scripts' ) );