mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 15:05:54 +00:00
UPD: Virtual Element template
This commit is contained in:
parent
fed464498d
commit
1e86e581fc
@ -59,3 +59,6 @@ Dynamic\Elements\Image\Elements\ElementImage:
|
|||||||
inline_editable: false
|
inline_editable: false
|
||||||
extensions:
|
extensions:
|
||||||
- A2nt\ElementalBasics\Extensions\ElementImageWidget
|
- A2nt\ElementalBasics\Extensions\ElementImageWidget
|
||||||
|
|
||||||
|
DNADesign\ElementalVirtual\Model\ElementVirtual:
|
||||||
|
controller_template: VirtualElementHolder
|
||||||
|
11
templates/DNADesign/Elemental/Layout/VirtualElementHolder.ss
Normal file
11
templates/DNADesign/Elemental/Layout/VirtualElementHolder.ss
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<div
|
||||||
|
id="$Anchor"
|
||||||
|
class="element $SimpleClassName.LowerCase
|
||||||
|
<% if $LinkedElement %>$LinkedElement.SimpleClassName.LowerCase<% end_if %>
|
||||||
|
<% if $StyleVariant %>$StyleVariant<% end_if %>
|
||||||
|
<% if $ExtraClass %>$ExtraClass<% end_if %>"
|
||||||
|
>
|
||||||
|
<div class="element__container<% if $ContainerClass %> $ContainerClass<% end_if %>">
|
||||||
|
$Element
|
||||||
|
</div>
|
||||||
|
</div>
|
Loading…
x
Reference in New Issue
Block a user