Skip to content

Commit

Permalink
Merge pull request #118 from wikitongues/staging
Browse files Browse the repository at this point in the history
Production Deploy
  • Loading branch information
FredericoAndrade authored Aug 22, 2024
2 parents a0c9290 + ee5c43a commit 6d2f822
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 20 deletions.
3 changes: 1 addition & 2 deletions modules/carousel--testimonial.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
$testimonial_link_back = get_field('testimonial_link_back');
?>
<li class="wt_testimonial">
<img class="wt_testimonial__image" src="<?php echo $testimonial_image['url']; ?>" alt="<?php echo $testimonial_image['alt']; ?>">

<?php echo '<div class="wt_testimonial__image" role="img"' . 'style="background-image:url(' . wp_get_attachment_url($testimonial_image) . ');" alt="' . $testimonial_name . '" title="Wikitongues Fellow ' . $testimonial_name . '"></div>'?>
<div class="wt_testimonial__copy">
<p>
<span><?php echo $testimonial_copy; ?></span>
Expand Down
18 changes: 2 additions & 16 deletions modules/carousel--thumbnail.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,10 @@
<li class="wt_thumbnail">
<?php
if ( $thumbnail_image ) {

echo '<div class="wt_thumbnail__image" role="img"'.
'style="background-image:url(' .
$thumbnail_image .
');" alt="' .
$thumbnail_image['alt'] .
'"></div>';

echo '<div class="wt_thumbnail__image" role="img"' . 'style="background-image:url(' . $thumbnail_image . ');" alt="' . $thumbnail_image['alt'] . '"></div>';
} elseif ( has_post_thumbnail() ) {

// the_post_thumbnail( 'large', array('class'=>'wt_thumbnail__image') );
echo '<div class="wt_thumbnail__image" role="img"'.
'style="background-image:url(' .
get_the_post_thumbnail_url() .
');" alt="' .
$thumbnail_image['alt'] .
'"></div>';

echo '<div class="wt_thumbnail__image" role="img"' . 'style="background-image:url(' . get_the_post_thumbnail_url() . ');" alt="' . $thumbnail_image['alt'] . '"></div>';
} else {

echo '<div class="wt_thumbnail__image blank" role="img"></div>';
Expand Down
4 changes: 3 additions & 1 deletion stylus/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -909,9 +909,11 @@ body.search-results .wt_banner--searchbar {
align-items: center;
}
.wt_carousel--testimonials ul .wt_testimonial__image {
max-width: 200px;
width: 200px;
height: 200px;
border-radius: 100%;
margin-right: 3rem;
background-size: cover;
}
.wt_carousel--testimonials ul .wt_testimonial__copy p {
margin-bottom: 1.5rem;
Expand Down
4 changes: 3 additions & 1 deletion stylus/require/carousel--testimonial.styl
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
align-items center

&__image
max-width 200px
width 200px
height 200px
border-radius 100%
margin-right 3rem
background-size cover

&__copy
p
Expand Down

0 comments on commit 6d2f822

Please sign in to comment.