Dateien nach "templates" hochladen
This commit is contained in:
18
templates/card-compact.php
Normal file
18
templates/card-compact.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* @var array $meta Enthält alle Metadaten des Teammitglieds
|
||||
* @var string $column_style Der Inline-Style für die Spaltenbreite
|
||||
*/
|
||||
?>
|
||||
<div class="teamcard teamcard-compact" <?php echo $column_style; ?>>
|
||||
<?php if ($meta['bild_url']): ?>
|
||||
<div class="teamcard-image">
|
||||
<img src="<?php echo esc_url($meta['bild_url']); ?>" alt="<?php echo esc_attr(get_the_title()); ?>">
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="teamcard-content">
|
||||
<h3 class="teamcard-name"><?php the_title(); ?></h3>
|
||||
<p class="teamcard-function"><?php echo esc_html($meta['funktion']); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user