mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-18 14:14:01 +09:00
Add route block
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
/* global wp, wpStrava */
|
||||
import { registerBlockType } from '@wordpress/blocks';
|
||||
import edit from './edit';
|
||||
|
||||
registerBlockType( 'wp-strava/route', {
|
||||
title: 'Strava Route',
|
||||
icon: 'chart-line',
|
||||
category: 'embed',
|
||||
attributes: {
|
||||
url: {
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
imageOnly: {
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
},
|
||||
displayMarkers: {
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
},
|
||||
som: {
|
||||
type: 'string',
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
edit,
|
||||
save: () => null,
|
||||
} );
|
||||
Reference in New Issue
Block a user