| 1 |
<?php |
| 2 |
|
| 3 |
use ABlocks\Controls\Typography; |
| 4 |
use ABlocks\Controls\Range; |
| 5 |
use ABlocks\Controls\Dimensions; |
| 6 |
use ABlocks\Controls\Border; |
| 7 |
use ABlocks\Controls\BoxShadow; |
| 8 |
use ABlocks\Controls\Alignment; |
| 9 |
|
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; |
| 13 |
} |
| 14 |
|
| 15 |
$attributes = [ |
| 16 |
'block_id' => [ |
| 17 |
'type' => 'string', |
| 18 |
'default' => '', |
| 19 |
], |
| 20 |
'blockVersion' => [ |
| 21 |
'type' => 'number', |
| 22 |
'default' => 2, |
| 23 |
], |
| 24 |
'user_id' => [ |
| 25 |
'type' => 'number', |
| 26 |
], |
| 27 |
'status' => [ |
| 28 |
'type' => 'string', |
| 29 |
'default' => '', |
| 30 |
], |
| 31 |
'show_label' => [ |
| 32 |
'type' => 'boolean', |
| 33 |
'default' => true, |
| 34 |
], |
| 35 |
'show_icon' => [ |
| 36 |
'type' => 'boolean', |
| 37 |
'default' => true, |
| 38 |
], |
| 39 |
'label_single' => [ |
| 40 |
'type' => 'string', |
| 41 |
'default' => 'upvote', |
| 42 |
], |
| 43 |
'label_plural' => [ |
| 44 |
'type' => 'string', |
| 45 |
'default' => 'upvotes', |
| 46 |
], |
| 47 |
'wrapper_class' => [ |
| 48 |
'type' => 'string', |
| 49 |
'default' => 'claim-count-wrapper', |
| 50 |
], |
| 51 |
'upvoteNumberColor' => [ |
| 52 |
'type' => 'string', |
| 53 |
'default' => '', |
| 54 |
], |
| 55 |
]; |
| 56 |
|
| 57 |
$attributes = array_merge( |
| 58 |
$attributes, |
| 59 |
Alignment::get_attribute( 'countAlignment', true, [ 'value' => 'left' ] ), |
| 60 |
); |
| 61 |
|
| 62 |
return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() ); |
| 63 |
|
| 64 |
|