56 lines
1.2 KiB
PHP
56 lines
1.2 KiB
PHP
<?php
|
|
// This file is generated. Do not modify it manually.
|
|
return array(
|
|
'audio-player' => array(
|
|
'$schema' => 'https://schemas.wp.org/trunk/block.json',
|
|
'apiVersion' => 3,
|
|
'name' => 'carhop-blocks/audio-player',
|
|
'version' => '0.1.0',
|
|
'title' => 'Lecteur audio',
|
|
'category' => 'carhop-blocks',
|
|
'icon' => array(
|
|
'src' => 'format-audio',
|
|
'foreground' => '#136f63'
|
|
),
|
|
'description' => 'Lecteur audio pour intégrer un fichier audio dans votre contenu',
|
|
'example' => array(
|
|
|
|
),
|
|
'attributes' => array(
|
|
'audioUrl' => array(
|
|
'type' => 'string',
|
|
'default' => ''
|
|
),
|
|
'audioId' => array(
|
|
'type' => 'number',
|
|
'default' => 0
|
|
),
|
|
'title' => array(
|
|
'type' => 'string',
|
|
'default' => 'Titre du bloc audio'
|
|
),
|
|
'description' => array(
|
|
'type' => 'string',
|
|
'default' => ''
|
|
),
|
|
'caption' => array(
|
|
'type' => 'string',
|
|
'default' => ''
|
|
)
|
|
),
|
|
'supports' => array(
|
|
'html' => false
|
|
),
|
|
'keywords' => array(
|
|
'audio',
|
|
'player',
|
|
'lecteur audio'
|
|
),
|
|
'textdomain' => 'carhop-blocks',
|
|
'editorScript' => 'file:./index.js',
|
|
'editorStyle' => 'file:./index.css',
|
|
'style' => 'file:./style-index.css',
|
|
'viewScript' => 'file:./view.js'
|
|
)
|
|
);
|