Hallo,
ich habe dieses template:
PHP-Code:
<div class="card-content">
<div class="content">
<h4><?php echo $this->headline ?></h4>
<p><?php echo $this->text ?></p>
<?php if (($this->linkButtonStyle == 'link') && ($this->textLinkUrl)): ?>
<p class="<?php echo implode($bulmaCSSInfoboxButton) ?>"><a href="<?php echo $this->textLinkUrl ?>" title=""><?php echo $this->linkButtonText ?></a></p>
<?php elseif ($this->textLinkUrl): ?>
<button class="<?php echo implode($bulmaCSSInfoboxButton) ?>"><a href="<?php echo $this->textLinkUrl ?>" title=""><?php echo $this->linkButtonText ?></a></button>
<?php else: ?>
<p class="<?php echo implode($bulmaCSSInfoboxButton) ?>"><?php echo $this->linkButtonText ?></p>
<?php endif ?>
</div>
</div>
Hier wird abgefragt, ob ein Text 'Weiterlesen' verlinkt ist bzw. wie dieser dann dargestellt wird. Das Ergebnis klappt soweit, aber ...
Im Frontend werden leere <p></p> dargestellt und ich tippe drauf, dass diese dann dargestellt werden, wenn die Abfrage nicht zutrifft.
Nur verstehe ich nicht warum diese <p></p> dargestellt werden, bzw. wie ich unterbinden kann, dass diese <p></p> eben nicht dargestellt werden.
Auch werden die leeren <p></p> in einer anderen Reihenfolge dargestellt (??).
Frontend:
PHP-Code:
<div class="card-content">
<div class="content">
<h4>Tristique senectus et netus et.</h4>
<p></p>
<p>Purus semper eget duis at tellus at urna condimentum mattis. Non blandit massa enim nec. Integer enim neque volutpat ac tincidunt vitae semper quis. Accumsan tortor posuere ac ut consequat semper viverra nam.</p>
<p></p>
<button class="button is-fullwidth "><a href="preview.php/teamseite.html" title="">Weiterlesen...</a></button>
</div>
</div>
2020-03-27 07_32_26-Contentbox - Bulma.png
Ich bitte um Hilfestellung - vielen Dank
Lesezeichen