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