Updates gallery list thumbnail.
This commit is contained in:
parent
c2594590cc
commit
6dabfa0156
|
@ -471,7 +471,6 @@
|
|||
}
|
||||
.tainacan-content {
|
||||
margin: 0;
|
||||
max-height: 75vh;
|
||||
img {
|
||||
max-height: 60vh;
|
||||
}
|
||||
|
@ -480,6 +479,16 @@
|
|||
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--attachments {
|
||||
.single-item-collection--attachments-file {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -115,20 +115,15 @@
|
|||
<?php } ?>
|
||||
</div>
|
||||
<div class="single-item-collection--gallery-items">
|
||||
<?php if ( tainacan_has_document() ) : ?>
|
||||
<div class="single-item-collection--attachments-file">
|
||||
<?php
|
||||
tainacan_the_document();
|
||||
echo get_the_title( $attachment->ID );
|
||||
echo __( 'Document', 'tainacan-interface' );
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?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">
|
||||
<a class="<?php if (!wp_get_attachment_image( $attachment->ID, 'tainacan-interface-item-attachments')) echo'attachment-without-image'; ?>">
|
||||
<?php
|
||||
|
@ -137,8 +132,7 @@
|
|||
?>
|
||||
</a>
|
||||
</div>
|
||||
<?php }
|
||||
?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="single-item-collection--attachments">
|
||||
|
|
Loading…
Reference in New Issue