fix: amelioration du code pour l'affichage des couvertures
This commit is contained in:
parent
cfd932a943
commit
60d1b31910
1 changed files with 4 additions and 3 deletions
|
@ -30,11 +30,12 @@
|
|||
<article class="card card-preview card-primary">
|
||||
<a href="<?php echo esc_url( get_term_link( $term ) ) ?>" class="preview-link">
|
||||
<div class="preview-item">
|
||||
<div class="preview-content" style="background-image:url('<?php
|
||||
<?php
|
||||
$tag_id = $term->term_id;
|
||||
$term_meta = get_option( "taxonomy_term_$tag_id" );
|
||||
echo $term_meta['cover'];
|
||||
?> ');"></div>
|
||||
$coverimg = $term_meta['cover'];
|
||||
echo '<div class="preview-content" style="background-image:url(\'' . $coverimg . '\');"></div>';
|
||||
?>
|
||||
<div class="preview-overlay">
|
||||
<h1 class="card-header"><?php echo $term->name; ?></h1>
|
||||
<div class="preview-metadata">
|
||||
|
|
Reference in a new issue