PluginProbe
Tableberg – Simple Gutenberg Table Block / 1.2.0
Tableberg – Simple Gutenberg Table Block v1.2.0
1.2.0 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 All 43 releases
← All changes | renderer/Text/TextRenderer.php +8 -1 1.1.2 → 1.2.0 View file →
@@ -38,10 +38,17 @@
38 38 }
39 39
40 40 $styleAttr = implode(';', $styleValues);
41 41
42 + // Only paint the links when a colour was picked; otherwise the
43 + // theme's own link colour applies.
44 + $className = 'tableberg-text-element';
45 + if ($attrs->styles->linkColor->isNotEmpty()) {
46 + $className .= ' tableberg-has-link-color';
47 + }
48 +
42 49 return
43 - "<p class='tableberg-text-element' style='{$styleAttr}'>
50 + "<p class='{$className}' style='{$styleAttr}'>
44 51 {$attrs->content->asHtml()}
45 52 </p>";
46 53 }
47 54