Skip to content

Commit

Permalink
Merge pull request #115 from wikitongues/staging
Browse files Browse the repository at this point in the history
Prod Deploy
  • Loading branch information
FredericoAndrade authored Aug 22, 2024
2 parents fba40c7 + 1ce1411 commit a0c9290
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions modules/carousel--thumbnail.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,21 @@
<ul class="wt_carousel--thumbnails">
<?php foreach ( $post_type as $post ): setup_postdata( $post ); ?>
<?php
$thumbnail_title = get_field('thumbnail_title');
$custom_title = get_field('thumbnail_title');
$video_title = get_field('video_title');
$thumbnail_cta_text = get_field('thumbnail_cta_text');
$thumbnail_image = get_field('thumbnail_image');
$custom_thumbnail = get_field('thumbnail_image')['url'];
$video_thumbnail = wp_get_attachment_url(get_field('video_thumbnail_v2'));
$thumbnail_title = is_null($custom_title) ? $video_title : $custom_title;
$thumbnail_image = is_null($custom_thumbnail) ? $video_thumbnail : $custom_thumbnail;
?>
<li class="wt_thumbnail">
<?php
if ( $thumbnail_image ) {

echo '<div class="wt_thumbnail__image" role="img"'.
'style="background-image:url(' .
$thumbnail_image['url'] .
$thumbnail_image .
');" alt="' .
$thumbnail_image['alt'] .
'"></div>';
Expand Down
2 changes: 1 addition & 1 deletion stylus/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ body.search-results .wt_banner--searchbar {
font-size: 6.08rem;
color: #101010;
font-size: 4.8rem;
margin-bottom: 2rem;
margin-bottom: 4rem;
text-align: center;
}
.wt_carousel__left-scroll {
Expand Down
2 changes: 1 addition & 1 deletion stylus/require/carousel--thumbnail.styl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
h1
text--header($black)
font-size 4.8rem
margin-bottom 2rem
margin-bottom 4rem
text-align center

&__left-scroll
Expand Down

0 comments on commit a0c9290

Please sign in to comment.