Links to collection on items single page collection banner. #16.
This commit is contained in:
parent
140cc349ef
commit
bf72df3d06
|
@ -44,6 +44,9 @@
|
||||||
color: white;
|
color: white;
|
||||||
margin-bottom: -2px;
|
margin-bottom: -2px;
|
||||||
margin-top: 38px;
|
margin-top: 38px;
|
||||||
|
a {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.item-title {
|
.item-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -42,24 +42,28 @@ if (get_theme_mod('tainacan_single_item_collection_header', false)) {
|
||||||
<div class="collection-name aside-thumbnail">
|
<div class="collection-name aside-thumbnail">
|
||||||
<div class="title-page">
|
<div class="title-page">
|
||||||
<p><?php echo __('Collection', 'tainacan-interface') ?></p>
|
<p><?php echo __('Collection', 'tainacan-interface') ?></p>
|
||||||
<h1><?php tainacan_the_collection_name(); ?></h1>
|
<h1><a href="<?php tainacan_the_collection_url(); ?>">
|
||||||
|
<?php tainacan_the_collection_name(); ?>
|
||||||
|
</a></h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="collection-thumbnail">
|
<div class="collection-thumbnail">
|
||||||
|
<a href="<?php tainacan_the_collection_url(); ?>">
|
||||||
<?php if ( has_post_thumbnail( tainacan_get_collection_id() ) ) :
|
<?php if ( has_post_thumbnail( tainacan_get_collection_id() ) ) :
|
||||||
$thumbnail_id = get_post_thumbnail_id( $post->ID );
|
$thumbnail_id = get_post_thumbnail_id( $post->ID );
|
||||||
$alt = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true); ?>
|
$alt = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true); ?>
|
||||||
<img src="<?php echo get_the_post_thumbnail_url( tainacan_get_collection_id() ); ?>" class="t-collection--info-img rounded-circle img-fluid border border-white position-absolute text-left" alt="<?php echo esc_attr($alt); ?>">
|
<img src="<?php echo get_the_post_thumbnail_url( tainacan_get_collection_id() ); ?>" class="t-collection--info-img rounded-circle img-fluid border border-white position-absolute text-left" alt="<?php echo esc_attr($alt); ?>">
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<div class="image-placeholder rounded-circle border border-white position-absolute">
|
<div class="image-placeholder rounded-circle border border-white position-absolute">
|
||||||
<h4 class="text-center">search=ful
|
<h4 class="text-center">
|
||||||
<?php
|
<?php
|
||||||
echo esc_html( tainacan_get_initials( tainacan_get_the_collection_name() ) );
|
echo esc_html( tainacan_get_initials( tainacan_get_the_collection_name() ) );
|
||||||
?>
|
?>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
global $wp;
|
global $wp;
|
||||||
|
|
Loading…
Reference in New Issue