chg: [helper:boostrap] Support of list of string for class in card

pull/93/head
Sami Mokaddem 2021-11-15 11:47:17 +01:00
parent c6925c2d98
commit 560832654e
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -1252,7 +1252,7 @@ class BoostrapCard extends BootstrapGeneric
'card',
!empty($this->options['variant']) ? "bg-{$this->options['variant']}" : '',
!empty($this->options['variant']) ? $this->getTextClassForVariant($this->options['variant']) : '',
h($this->options['class']),
h(is_array($this->options['class']) ? implode(' ', $this->options['class']) : $this->options['class']),
],
], implode('', [$this->genHeader(), $this->genBody(), $this->genFooter()]));
return $card;