| @@ -1,0 +1,36 @@ | ||
| 1 | +<?php | |
| 2 | + | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit; | |
| 5 | +} | |
| 6 | + | |
| 7 | +use ABlocks\Controls\Alignment; | |
| 8 | + | |
| 9 | +$attributes = [ | |
| 10 | + 'block_id' => [ | |
| 11 | + 'type' => 'string', | |
| 12 | + 'default' => '', | |
| 13 | + ], | |
| 14 | + 'tagName' => [ | |
| 15 | + 'type' => 'string', | |
| 16 | + 'default' => 'td' | |
| 17 | + ], | |
| 18 | + 'cellColor' => [ | |
| 19 | + 'type' => 'string', | |
| 20 | + 'default' => '' | |
| 21 | + ], | |
| 22 | + 'cellColorH' => [ | |
| 23 | + 'type' => 'string', | |
| 24 | + 'default' => '' | |
| 25 | + ], | |
| 26 | + 'rowSpan' => [ | |
| 27 | + 'type' => 'string', | |
| 28 | + 'default' => '1' | |
| 29 | + ], | |
| 30 | + 'colSpan' => [ | |
| 31 | + 'type' => 'string', | |
| 32 | + 'default' => '1' | |
| 33 | + ], | |
| 34 | +]; | |
| 35 | + | |
| 36 | +return array_merge( $attributes, Alignment::get_attribute( 'textAlignment', true, [ 'value' => 'left' ] ) ); | |