PluginProbe
Tableberg – Simple Gutenberg Table Block / 1.1.5
Tableberg – Simple Gutenberg Table Block v1.1.5
1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 trunk 0.0.2 0.2.1 0.3.2 0.3.3 0.4.1 0.5.0 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 All 42 releases
← All changes | renderer/Table/TableAttrs.php +16 -0 1.1.21.1.5 View file →
@@ -561,8 +561,20 @@
561 561
562 562 /** @var StringAttr */
563 563 public $backgroundColor;
564 564
565 + /** @var StringAttr */
566 + public $headerBackgroundColor;
567 +
568 + /** @var StringAttr */
569 + public $footerBackgroundColor;
570 +
571 + /** @var StringAttr */
572 + public $evenRowBackgroundColor;
573 +
574 + /** @var StringAttr */
575 + public $oddRowBackgroundColor;
576 +
565 577 /** @var Sides */
566 578 public $border;
567 579
568 580 /** @var Corners */
@@ -587,8 +599,12 @@
587 599 $d['verticalAlign'],
588 600 ['top', 'middle', 'bottom']
589 601 );
590 602 $instance->backgroundColor = new StringAttr(getOrNull($data['backgroundColor']), $d['backgroundColor']);
603 + $instance->headerBackgroundColor = new StringAttr(getOrNull($data['headerBackgroundColor']), $d['headerBackgroundColor']);
604 + $instance->footerBackgroundColor = new StringAttr(getOrNull($data['footerBackgroundColor']), $d['footerBackgroundColor']);
605 + $instance->evenRowBackgroundColor = new StringAttr(getOrNull($data['evenRowBackgroundColor']), $d['evenRowBackgroundColor']);
606 + $instance->oddRowBackgroundColor = new StringAttr(getOrNull($data['oddRowBackgroundColor']), $d['oddRowBackgroundColor']);
591 607 $instance->border = Sides::from_array(getOrNull($data['border']), $d['border']);
592 608 $instance->borderRadius = Corners::from_array(getOrNull($data['borderRadius']), $d['borderRadius']);
593 609 $instance->cells = is_array(getOrNull($data['cells'])) ? $data['cells'] : $d['cells'];
594 610