Skip to content
Code-Schnipsel Gruppen Projekte
Commit 945a1922 erstellt von Dominik Chrzanowski's avatar Dominik Chrzanowski
Dateien durchsuchen

feat: Added new setting [IconBox] #6

Übergeordneter f4dba334
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -408,6 +408,10 @@
<locale group="quiqqer/presentation-bricks"
var="control.IconBox.imgIconSize"/>
</setting>
<setting name="imgSquare" type="checkbox">
<locale group="quiqqer/presentation-bricks"
var="control.IconBox.imgSquare"/>
</setting>
<setting name="entries" type="hidden"
data-qui="package/quiqqer/presentation-bricks/bin/Controls/IconBoxSettings">
......
......@@ -333,6 +333,10 @@
<de><![CDATA[Inhalt zentrieren]]></de>
<en><![CDATA[Center content]]></en>
</locale>
<locale name="control.IconBox.imgSquare">
<de><![CDATA[Bild in ein Quadrat umwandeln]]></de>
<en><![CDATA[Transform image to square]]></en>
</locale>
<locale name="control.IconBox.template">
<de><![CDATA[Vorlage]]></de>
......
......@@ -28,7 +28,8 @@ public function __construct($attributes = [])
'centerContent' => false,
'entriesPerLine' => 2,
'iconSize' => 'small',
'imgIconSize' => '50px'
'imgIconSize' => '50px',
'imgSquare' => false
]);
parent::__construct($attributes);
......@@ -53,6 +54,7 @@ public function getBody()
$entriesPerLine = $this->getAttribute('entriesPerLine');
$iconSize = $this->getAttribute('iconSize');
$imgIconSize = $this->getAttribute('imgIconSize');
$imgSquare = $this->getAttribute('imgSquare');
$enabledEntries = [];
foreach ($entries as $entry) {
......@@ -69,6 +71,7 @@ public function getBody()
'entriesPerLine' => $entriesPerLine,
'iconSize' => $iconSize,
'imgIconSize' => $imgIconSize,
'imgSquare' => $imgSquare,
'entries' => $enabledEntries
]);
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren