Skip to content

Commit 67410ec

Browse files
authored
FEATURE add $Content field (#14)
to be more consistent with other blocks
1 parent ac47b8f commit 67410ec

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/Elements/ElementEmbeddedCode.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class ElementEmbeddedCode extends BaseElement
3333
* @var array
3434
*/
3535
private static $db = [
36+
'Content' => 'HTMLText',
3637
'Code' => 'HTMLText',
3738
];
3839

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
<% if $Title && $ShowTitle %><h2 class="element__title">$Title</h2><% end_if %>
2+
<% if $Content %><div class="element__content">$Content</div><% end_if %>
23

3-
<% if $Code %>$Code<% end_if %>
4+
<% if $Code %>
5+
<div class="row element__embedded__code">
6+
<div class="col-md-12 element__embedded__code__code">
7+
$Code
8+
</div>
9+
</div>
10+
<% end_if %>

0 commit comments

Comments
 (0)