| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
$attributes = include __DIR__ . '/../atomic-shared/attributes.php'; |
| 8 |
$attributes['svgCode'] = [ 'type' => 'string', 'default' => '' ]; |
| 9 |
// The media library file the markup came from, so the picker can show what is |
| 10 |
// selected and offer Replace. The markup itself still lives in svgCode — that |
| 11 |
// is what makes fill / stroke / currentColor styleable. |
| 12 |
$attributes['svgUrl'] = [ 'type' => 'string', 'default' => '' ]; |
| 13 |
$attributes['svgId'] = [ 'type' => 'number', 'default' => 0 ]; |
| 14 |
|
| 15 |
return $attributes; |
| 16 |
|