Hi,
wo willst Du die Cards denn einsetzen? Unter Umständen benötigt man das Bundle gar nicht, sondern es reicht, sich ein entsprechendes Template anzulegen, was man dann als Template für das Inhaltselment wählt.
Das hier ist zum Beispiel das eine Template aus dem Bundle. Das kannst Du einfach in Deinem Templateordner als ce_text_card.html5 abspeichern. Das Deinem Inhaltselement Text als Template zuweisen, und das Inhaltselement hat das entsprechende Bootstrap-Markup. Ensprechend lassen sich auch andere Card-Templates erstellen.
PHP-Code:
<div class="card <?= $this->class ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<?php $this->block('before') ?>
<?php if ($this->addImage && $this->addBefore): ?>
<div class="card-img-top">
<?php $this->insert('image', $this->arrData); ?>
</div>
<?php endif; ?>
<?php $this->endblock() ?>
<div class="card-body">
<?php $this->block('title') ?>
<?php if ($this->headline): ?>
<<?= $this->hl ?> class="card-title"><?= $this->headline ?></<?= $this->hl ?>>
<?php endif; ?>
<?php $this->endblock() ?>
<?php $this->block('content') ?>
<?= str_replace('<p>', '<p class="card-text">', $this->text) ?>
<?php $this->endblock() ?>
</div>
<?php $this->block('before') ?>
<?php if ($this->addImage && !$this->addBefore): ?>
<div class="card-img-bottom">
<?php $this->insert('image', $this->arrData); ?>
</div>
<?php endif; ?>
<?php $this->endblock() ?>
</div>
Gruß
Mathias
Lesezeichen