| @@ -1,0 +1,78 @@ | ||
| 1 | +<?php | |
| 2 | + | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit; | |
| 5 | +} | |
| 6 | +use ABlocks\Controls\Border; | |
| 7 | +$attributes = [ | |
| 8 | + 'block_id' => [ | |
| 9 | + 'type' => 'string', | |
| 10 | + ], | |
| 11 | + 'blockVersion' => array( | |
| 12 | + 'type' => 'number', | |
| 13 | + 'default' => '', | |
| 14 | + ), | |
| 15 | + 'tableCreated' => [ | |
| 16 | + 'type' => 'boolean', | |
| 17 | + 'default' => false, | |
| 18 | + ], | |
| 19 | + 'isHeader' => [ | |
| 20 | + 'type' => 'boolean', | |
| 21 | + 'default' => '', | |
| 22 | + ], | |
| 23 | + 'isFooter' => [ | |
| 24 | + 'type' => 'boolean', | |
| 25 | + 'default' => '', | |
| 26 | + ], | |
| 27 | + 'rowOddColor' => [ | |
| 28 | + 'type' => 'string', | |
| 29 | + 'default' => '' | |
| 30 | + ], | |
| 31 | + 'rowOddColorH' => [ | |
| 32 | + 'type' => 'string', | |
| 33 | + 'default' => '' | |
| 34 | + ], | |
| 35 | + 'rowEvenColor' => [ | |
| 36 | + 'type' => 'string', | |
| 37 | + 'default' => '' | |
| 38 | + ], | |
| 39 | + 'rowEvenColorH' => [ | |
| 40 | + 'type' => 'string', | |
| 41 | + 'default' => '' | |
| 42 | + ], | |
| 43 | + 'bodyBg' => [ | |
| 44 | + 'type' => 'string', | |
| 45 | + ], | |
| 46 | + 'bodyBgH' => [ | |
| 47 | + 'type' => 'string', | |
| 48 | + ], | |
| 49 | + 'headerColor' => [ | |
| 50 | + 'type' => 'string', | |
| 51 | + | |
| 52 | + 'default' => '', | |
| 53 | + ], | |
| 54 | + 'headerColorH' => [ | |
| 55 | + 'type' => 'string', | |
| 56 | + 'default' => '' | |
| 57 | + ], | |
| 58 | + 'footerColor' => [ | |
| 59 | + 'type' => 'string', | |
| 60 | + | |
| 61 | + 'default' => '', | |
| 62 | + ], | |
| 63 | + 'footerColorH' => [ | |
| 64 | + 'type' => 'string', | |
| 65 | + 'default' => '' | |
| 66 | + ], | |
| 67 | + 'borderCollapse' => [ | |
| 68 | + 'type' => 'string', | |
| 69 | + 'default' => 'collapse' | |
| 70 | + ] | |
| 71 | +]; | |
| 72 | +$attributes = array_merge( | |
| 73 | + $attributes, | |
| 74 | + Border::get_attribute( 'border', true ), | |
| 75 | +); | |
| 76 | + | |
| 77 | +return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() ); | |
| 78 | + | |