| 1 |
/** |
| 2 |
* Register block single course property. |
| 3 |
*/ |
| 4 |
import edit from './edit'; |
| 5 |
import save from './save'; |
| 6 |
import metadata from './block.json'; |
| 7 |
import { registerBlockType } from '@wordpress/blocks'; |
| 8 |
|
| 9 |
registerBlockType( 'learnpress/course-item-template', { |
| 10 |
...metadata, |
| 11 |
icon: { |
| 12 |
src: ( |
| 13 |
<svg |
| 14 |
xmlns="http://www.w3.org/2000/svg" |
| 15 |
viewBox="0 0 24 24" |
| 16 |
width="24" |
| 17 |
height="24" |
| 18 |
aria-hidden="true" |
| 19 |
focusable="false" |
| 20 |
> |
| 21 |
<path |
| 22 |
fillRule="evenodd" |
| 23 |
d="M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z" |
| 24 |
clipRule="evenodd" |
| 25 |
></path> |
| 26 |
</svg> |
| 27 |
), |
| 28 |
}, |
| 29 |
edit, |
| 30 |
save, |
| 31 |
} ); |
| 32 |
|