Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Commit 6b993a8

Browse files
author
Matthias Leutenegger
committed
change: use default content block
1 parent 530fc7b commit 6b993a8

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dnadesign/silverstripe-elemental": "^4",
1515
"gorriecoe/silverstripe-link": "^1",
1616
"gorriecoe/silverstripe-linkfield": "^1",
17-
"syntro/silverstripe-elemental-bootstrap-baseitems": ">=0.3",
17+
"syntro/silverstripe-elemental-bootstrap-baseitems": ">=0.4",
1818
"syntro/silverstripe-elemental-icons": "^1"
1919
},
2020
"require-dev": {

templates/Syntro/SilverStripeElementalBootstrapAccordionSection/Elements/AccordionSection.ss

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1-
<div class="row justify-content-center text-center">
2-
<% if ShowTitle || Content %>
3-
<div class="{$ElementName}__contentholder col-12 col-md-10 col-lg-8 mb-4">
4-
<% if ShowTitle %>
5-
<h2 class="mb-4 {$ElementName}__title">$Title</h2>
6-
<% end_if %>
7-
<% if $Content %>
8-
<p class="{$ElementName}__content">$Content</p>
9-
<% end_if %>
10-
</div>
11-
<% end_if %>
12-
<div class="w-100"></div>
1+
<% include Syntro\SilverStripeElementalBaseitems\ContentBlock %>
132

3+
<div class="row justify-content-center text-center">
144
<div class="col-12 {$ElementName}__accordionholder">
155
<div class="{$ElementName}__accordion accordion shadow" id="accordion-$ID">
166
<% loop AccordionPanels %>

0 commit comments

Comments
 (0)