Shows thumnail label only if there is a post thumbnail.

This commit is contained in:
mateuswetah 2019-05-21 16:54:24 -03:00
parent 2fdddd44ea
commit 63832e82f0
1 changed files with 7 additions and 5 deletions

View File

@ -105,12 +105,14 @@
<div class="single-item-collection--information justify-content-center">
<div class="row">
<div class="col s-item-collection--metadata">
<?php if ( has_post_thumbnail() ) : ?>
<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')); ?>
</div>
</div>
<?php endif; ?>
<div class="card border-0 my-3">
<div class="card-body bg-white border-0 pl-0 pt-0 pb-1">
<h3><?php _e( 'Share', 'tainacan-interface' ); ?></h3>