Updates gallery list thumbnail.

This commit is contained in:
mateuswetah 2020-04-07 15:10:14 -03:00
parent c2594590cc
commit 6dabfa0156
3 changed files with 28 additions and 25 deletions

View File

@ -471,7 +471,6 @@
} }
.tainacan-content { .tainacan-content {
margin: 0; margin: 0;
max-height: 75vh;
img { img {
max-height: 60vh; max-height: 60vh;
} }
@ -480,6 +479,16 @@
max-height: 60vh; max-height: 60vh;
} }
} }
.single-item-collection--gallery-items {
img {
border-bottom: 4px solid transparent;
margin-bottom: 4px;
transition: border 0.3s ease;
}
.slick-current img {
border-bottom: 4px solid #298596;
}
}
.single-item-collection--gallery-items, .single-item-collection--gallery-items,
.single-item-collection--attachments { .single-item-collection--attachments {
.single-item-collection--attachments-file { .single-item-collection--attachments-file {

File diff suppressed because one or more lines are too long

View File

@ -115,20 +115,15 @@
<?php } ?> <?php } ?>
</div> </div>
<div class="single-item-collection--gallery-items"> <div class="single-item-collection--gallery-items">
<?php if ( tainacan_has_document() ) : ?>
<div class="single-item-collection--attachments-file"> <div class="single-item-collection--attachments-file">
<?php <?php
tainacan_the_document(); tainacan_the_document();
echo get_the_title( $attachment->ID ); echo __( 'Document', 'tainacan-interface' );
?> ?>
</div> </div>
<?php endif; ?>
<?php foreach ( $attachments as $attachment ) { ?> <?php foreach ( $attachments as $attachment ) { ?>
<?php
if ( function_exists('tainacan_get_attachment_html_url') ) {
$href = tainacan_get_attachment_html_url($attachment->ID);
} else {
$href = wp_get_attachment_url($attachment->ID, 'large');
}
?>
<div class="single-item-collection--attachments-file"> <div class="single-item-collection--attachments-file">
<a class="<?php if (!wp_get_attachment_image( $attachment->ID, 'tainacan-interface-item-attachments')) echo'attachment-without-image'; ?>"> <a class="<?php if (!wp_get_attachment_image( $attachment->ID, 'tainacan-interface-item-attachments')) echo'attachment-without-image'; ?>">
<?php <?php
@ -137,8 +132,7 @@
?> ?>
</a> </a>
</div> </div>
<?php } <?php } ?>
?>
</div> </div>
<?php else : ?> <?php else : ?>
<div class="single-item-collection--attachments"> <div class="single-item-collection--attachments">