PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.14.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.14.0
2.14.0 2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 81 releases
← All changes | includes/blocks/table-cell/attributes.php +36 -0 2.7.6 → 2.14.0 View file →
@@ -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' ] ) );