Eigene Templates für die Buttons im FE sind ab 2.6.0 möglich - ein Beispiel zum Anpassen für BS4 inkl. Icons
PHP-Code:
<?php
$icon = '';
$iconTemplate = '<span class="oi oi-%s" aria-hidden="true" role="button"></span> ';
switch ($this->name) {
case 'update':
$icon = sprintf($iconTemplate, 'loop-circular');
break;
case 'add_to_cart':
$icon = sprintf($iconTemplate, 'cart');
break;
}
?>
<button type="submit" name="<?= $this->name ?>" class="submit <?= $this->name ?>
<?= $this->classes ?> btn btn-primary btn-sm" value="<?= $this->label ?>"><?= $icon ?><?= $this->label ?>
</button>
siehe https://github.com/isotope/core/pull/1949
Lesezeichen