Adjusts empty links for download document.

This commit is contained in:
mateuswetah 2020-04-06 17:15:29 -03:00
parent 6ba21d2085
commit 7cadf68ea3
2 changed files with 4 additions and 4 deletions

View File

@ -374,7 +374,7 @@
content: "";
}
&.single-item-collection{
min-height: 23.5vh;
min-height: 10vh;
position: relative;
.single-item-collection--document {
&:hover {

View File

@ -38,9 +38,9 @@
<section class="tainacan-content single-item-collection margin-two-column">
<div class="single-item-collection--document">
<?php tainacan_the_document(); ?>
<?php if(function_exists('tainacan_the_item_document_download_link')) {
<?php if( function_exists('tainacan_the_item_document_download_link') && tainacan_the_item_document_download_link() != '' ) {
echo '<span class="tainacan-item-document-download">';
tainacan_the_item_document_download_link();
echo tainacan_the_item_document_download_link();
echo '</span>';
} ?>
</div>