Ich bin gerade dabei das Template für pa2_album nach meinen Vorstellungen zu bearbeiten.
Code:
<?php if ($this->rowStart): ?><div class="albumswrap_SBS <?php echo $this->rowClass; ?>"><?php endif; ?>
<section class="album block<?php if ($this->class): ?> <?php echo $this->class; ?><?php endif; ?>"<?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<div class="albumInside">
<?php if ($this->showTitle && $this->title): ?>
<?php endif; ?>
<?php if ($this->addImage): ?>
<figure class="image_container_SBS-Foto"<?php if ($this->margin): ?> style="<?php echo $this->margin; ?>"<?php endif; ?>>
<a href="<?php echo $this->href; ?>" title="<?php echo $this->title; ?>"<?php if ($this->albumLightbox): ?> data-lightbox="pa2_<?php echo $this->albumID; ?>"<?php endif; ?>>
<img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>">
</a>
</figure>
<?php endif; ?>
<?php if ($this->metaFields): ?>
<div class="infoAlbumSBS">
<h2><a href="<?php echo $this->href; ?>" title="<?php echo $this->title; ?>"<?php if ($this->albumLightbox): ?> data-lightbox="pa2_<?php echo $this->albumID; ?>"<?php endif; ?>><?php echo $this->title; ?></a></h2>
<?php foreach ($this->metaFields as $metaField): ?>
<div class="<?php echo $metaField['key']; ?>" ><?php echo $metaField['value']; ?></div>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<?php if ($this->albumLightbox): ?>
<div class="hide albumLightboxImages">
<?php foreach ($this->albumLightboxImages as $lightboxImage): ?>
<?php echo $lightboxImage; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
</section>
<?php if ($this->rowEnd): ?></div><?php endif; ?>
Per css lasse ich das Vorschauild linksbündig ausgeben und die Metadaten des Albums stehen rechts daneben. Wie kann ich die Bezeichner in fett schreiben lassen und den Inhalt normal?
Das müsste doch über diese Zeile erfolgen:
Code:
<div class="<?php echo $metaField['key']; ?>" ><?php echo $metaField['value']; ?></div>
Bisher schaffe ich es nur die komplette Zeile fett anzeigen zu lassen. Welche Änderung muss ich im template noch einstellen, dass nur der Titel des Metafeldes fett wird.
Viele Grüße
00-schneider
Lesezeichen