Change to use the tainacan truncate
This commit is contained in:
parent
bbc65f23c4
commit
9c04d64899
|
@ -97,10 +97,10 @@
|
|||
// }
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
&.dotmore {
|
||||
&.tainacan-interface-truncate {
|
||||
height: 65px;
|
||||
margin-bottom: 2rem;
|
||||
.toggle {
|
||||
.tainacan-interface-more, .tainacan-interface-less {
|
||||
color: rgba(255, 255, 255, 0.60);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
@ -108,11 +108,6 @@
|
|||
height: auto;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
&:not(.ddd-truncated):not(.full-story) {
|
||||
.toggle {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,14 +42,10 @@ if ( ! function_exists( 'tainacan_enqueues' ) ) {
|
|||
wp_register_style( 'MaterialIconsFonts', get_template_directory_uri() . '/assets/fonts/material-design-icons/css/materialdesignicons.min.css', '', '2.4.85', '' );
|
||||
wp_enqueue_style( 'MaterialIconsFonts' );
|
||||
|
||||
/**
|
||||
* DotJS
|
||||
*/
|
||||
wp_register_script( 'DotJS', get_template_directory_uri() . '/assets/js/dotdotdot.js', array( 'jquery' ), '', true );
|
||||
wp_enqueue_script( 'DotJS' );
|
||||
/**
|
||||
* Tainacan Theme
|
||||
*/
|
||||
wp_enqueue_script( 'tainacanTruncate', get_template_directory_uri() . '/assets/js/tainacan-interface-truncate.js', array( 'jquery' ), '1.0', false );
|
||||
wp_register_style( 'tainacanStyle', get_stylesheet_uri(), array( 'bootstrap4CSS' ) );
|
||||
wp_enqueue_style( 'tainacanStyle' );
|
||||
wp_register_script( 'tainacanJS', get_template_directory_uri() . '/assets/js/js.js', '', '1.0', true );
|
||||
|
|
|
@ -90,7 +90,7 @@ echo '</style>';
|
|||
</h2>
|
||||
<?php $tainacan_collection_description = tainacan_get_the_collection_description(); ?>
|
||||
<?php if ( ! empty( $tainacan_collection_description ) || has_action( 'tainacan-interface-collection-description' ) ) : ?>
|
||||
<div class="text-white t-collection--info-description-text dotmore">
|
||||
<div class="text-white t-collection--info-description-text tainacan-interface-truncate">
|
||||
<?php
|
||||
tainacan_the_collection_description();
|
||||
?>
|
||||
|
@ -103,3 +103,9 @@ echo '</style>';
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
jQuery('.tainacan-interface-truncate').tainacan_interface_truncate({
|
||||
"moreText": "<?php _e('More', 'tainacan-interface'); ?>",
|
||||
"lessText": "<?php _e('Less', 'tainacan-interface'); ?>"
|
||||
});
|
||||
</script>
|
Loading…
Reference in New Issue