Uses get_the_title instead of get_title #20. Prepares for terms carousel block.

This commit is contained in:
mateuswetah 2019-10-15 15:35:10 -03:00
parent cd9d388334
commit 7493c54cb3
4 changed files with 9 additions and 5 deletions

View File

@ -101,12 +101,14 @@
/* Carousel */
.wp-block-tainacan-carousel-items-list.alignwide .tainacan-carousel,
.wp-block-tainacan-carousel-collections-list.alignwide .tainacan-carousel {
.wp-block-tainacan-carousel-collections-list.alignwide .tainacan-carousel,
.wp-block-tainacan-carousel-terms-list.alignwide .tainacan-carousel {
width: 100%;
left: 0;
}
.wp-block-tainacan-carousel-items-list.alignfull .tainacan-carousel,
.wp-block-tainacan-carousel-collections-list.alignfull .tainacan-carousel {
.wp-block-tainacan-carousel-collections-list.alignfull .tainacan-carousel
.wp-block-tainacan-carousel-terms-list.alignfull .tainacan-carousel {
width: 100%;
width: 100vw;
left: 0;

View File

@ -582,7 +582,9 @@ function tainacan_get_color_scheme_css( $colors ) {
.tainacan-content .wp-block-tainacan-carousel-items-list .swiper-button-prev svg,
.tainacan-content .wp-block-tainacan-carousel-items-list .swiper-button-next svg,
.tainacan-content .wp-block-tainacan-carousel-collections-list .swiper-button-prev svg,
.tainacan-content .wp-block-tainacan-carousel-collections-list .swiper-button-next svg {
.tainacan-content .wp-block-tainacan-carousel-collections-list .swiper-button-next svg,
.tainacan-content .wp-block-tainacan-carousel-terms-list .swiper-button-prev svg,
.tainacan-content .wp-block-tainacan-carousel-terms-list .swiper-button-next svg {
fill: {$colors['tainacan_link_color']} !important;
}

View File

@ -1,6 +1,6 @@
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php if ( the_title() != '') : ?>
<?php if ( get_the_title() != '') : ?>
<div class="tainacan-title">
<div class="border-bottom border-jelly-bean tainacan-title-page" style="border-width: 2px !important;">
<ul class="list-inline mb-1">

View File

@ -1,5 +1,5 @@
<article role="article" id="post_<?php the_ID()?>" <?php post_class()?>>
<?php if ( the_title() != '') : ?>
<?php if ( get_the_title() != '') : ?>
<header class="mb-4">
<div class="header-meta text-muted mb-5 d-flex">
<?php if ( ! is_singular( 'page' ) ) { ?>