We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac47b8f commit 67410ecCopy full SHA for 67410ec
src/Elements/ElementEmbeddedCode.php
@@ -33,6 +33,7 @@ class ElementEmbeddedCode extends BaseElement
33
* @var array
34
*/
35
private static $db = [
36
+ 'Content' => 'HTMLText',
37
'Code' => 'HTMLText',
38
];
39
templates/Dynamic/Elements/Embedded/Elements/ElementEmbeddedCode.ss
@@ -1,3 +1,10 @@
1
<% if $Title && $ShowTitle %><h2 class="element__title">$Title</h2><% end_if %>
2
+<% if $Content %><div class="element__content">$Content</div><% end_if %>
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
10
+<% end_if %>
0 commit comments