
Zitat von
Spooky
Beschreibe die Anforderung genauer.
Wenn count==gerade, dann stelle den Beitrag einer Liste wie folgt dar.
PHP-Code:
<div class="sliderheader row">
<div class="ce_image col-md-9 offset-md-3 startbox_mobil nopadding" style="background-image: url('<?php echo $this->src; ?>'); background-size: cover; background-position: center; z-index:2;"></div>
<div class="col-12 white mobile" style="height: 100px; top: 180px; position: absolute;"></div>
<div class="slidertextbox col-md-5 nopadding">
<span class="box_kategorie_date"><?php echo $this->archive->title; ?></span>
<?php if ($this->newsHeadline): ?>
<h2 class="blue"><?php echo $this->newsHeadline; ?></h2>
<?php endif; ?>
<button class="leftfix">Mehr erfahren</button>
</div>
</div>
Wenn der Count == ungerade dann stelle den Beitrag so dar
PHP-Code:
<div class="sliderheader row">
<div class="ce_image col-md-5 nopadding startbox" style="background-image: url('<?php echo $this->src; ?>'); background-size: cover; background-position: center; z-index:2;"></div>
<div class="col-12 white mobile" style="height: 100px; top: 180px; position: absolute;"></div>
<div class="sliderdialogbox col-md-9 offset-md-3 block">
<div class="offset-md-3 col-md-9 dialogtext">
<span class="box_kategorie_date"><?php echo $this->archive->title; ?></span>
<h2 class="blue news_box_headline"><?php echo $this->newsHeadline; ?></h2>
<?php if ($this->hasSubHeadline): ?>
<p class="news_box_text"><?php echo $this->subHeadline; ?></p>
<?php endif; ?>
<button class="fix">Mehr erfahren</button>
</div>
</div>
</div>
</div>