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/TableRenderer.php +9 -2 1.1.41.1.5 View file →
@@ -647,8 +647,15 @@
647 647 $mobileMaxWidth = max(1, (int) $mobile->maxWidth->value());
648 648 $tabletStackCount = max(1, (int) $tablet->stackCount->value());
649 649 $mobileStackCount = max(1, (int) $mobile->stackCount->value());
650 650
651 + // Repeating the first column in every stack row is a pro option. Only
652 + // the licensed pro plugin turns this filter on, so the saved value is
653 + // ignored without a valid licence.
654 + $proActive = (bool) apply_filters('tableberg/is_pro_runtime_active', false);
655 + $tabletRepeatFirstCol = $proActive ? $tablet->repeatFirstCol->asAttr() : '';
656 + $mobileRepeatFirstCol = $proActive ? $mobile->repeatFirstCol->asAttr() : '';
657 +
651 658 return "
652 659 data-tableberg-responsive='true'
653 660 data-tableberg-rows='{$rows}'
654 661 data-tableberg-cols='{$cols}'
@@ -656,15 +663,15 @@
656 663 data-tableberg-tablet-width='{$tabletMaxWidth}'
657 664 data-tableberg-tablet-mode='{$tablet->mode->asAttr()}'
658 665 data-tableberg-tablet-transpose='{$tablet->transpose->asAttr()}'
659 666 data-tableberg-tablet-count='{$tabletStackCount}'
660 - data-tableberg-tablet-repeat-first-col='{$tablet->repeatFirstCol->asAttr()}'
667 + data-tableberg-tablet-repeat-first-col='{$tabletRepeatFirstCol}'
661 668 data-tableberg-mobile-enabled='{$mobile->enabled->asAttr()}'
662 669 data-tableberg-mobile-width='{$mobileMaxWidth}'
663 670 data-tableberg-mobile-mode='{$mobile->mode->asAttr()}'
664 671 data-tableberg-mobile-transpose='{$mobile->transpose->asAttr()}'
665 672 data-tableberg-mobile-count='{$mobileStackCount}'
666 - data-tableberg-mobile-repeat-first-col='{$mobile->repeatFirstCol->asAttr()}'
673 + data-tableberg-mobile-repeat-first-col='{$mobileRepeatFirstCol}'
667 674 ";
668 675 }
669 676
670 677 private function getCell($row, $col, $cells) {