Dont display Thumbnail title if item does not have one
This commit is contained in:
parent
aa3dad96a9
commit
aa6970d7c1
|
@ -105,13 +105,15 @@
|
|||
<div class="single-item-collection--information justify-content-center">
|
||||
<div class="row">
|
||||
<div class="col s-item-collection--metadata">
|
||||
<div class="card border-0">
|
||||
<div class="card-body bg-white border-0 pl-0 pt-0 pb-1">
|
||||
<h3><?php _e( 'Thumbnail', 'tainacan-interface' ); ?></h3>
|
||||
<?php the_post_thumbnail('tainacan-medium-full', array('class' => 'item-card--thumbnail mt-2')); ?>
|
||||
<?php if (has_post_thumbnail()): ?>
|
||||
<div class="card border-0 mb-3">
|
||||
<div class="card-body bg-white border-0 pl-0 pt-0 pb-1">
|
||||
<h3><?php _e( 'Thumbnail', 'tainacan-interface' ); ?></h3>
|
||||
<?php the_post_thumbnail('tainacan-medium-full', array('class' => 'item-card--thumbnail mt-2')); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card border-0 my-3">
|
||||
<?php endif; ?>
|
||||
<div class="card border-0 mb-3">
|
||||
<div class="card-body bg-white border-0 pl-0 pt-0 pb-1">
|
||||
<h3><?php _e( 'Share', 'tainacan-interface' ); ?></h3>
|
||||
<div class="btn-group" role="group">
|
||||
|
|
Loading…
Reference in New Issue