1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 17:23:55 +01:00

safeguard: make sure to always use thumbnail photo size

This commit is contained in:
Matthias Kretschmann 2016-03-08 10:37:37 +01:00
parent cfe50bfbc9
commit 2704ec576c

View File

@ -1194,13 +1194,15 @@ class Subtemplate {
$name = get_field('name', $id);
$company = get_field('company', $id);
$link = get_field('link', $id);
$photo = get_field('photo', $id);
$photo_object = get_field('photo', $id);
$photo_size = 'thumbnail';
$photo_url = $photo_object['sizes'][$photo_size];
$testimonialMarkup .= "<div class='grid__col'>
<figure class='testimonial'>
<blockquote class='testimonial__quote'>{$quote}</blockquote>
<figcaption class='testimonial__caption'>
<img class='testimonial__avatar' src='{$photo}'>
<img class='testimonial__avatar' src='{$photo_url}'>
<cite class='testimonial__cite'>
<span class='testimonial__name'>{$name}</span>
<span class='testimonial__org'><a href='{$link}'>{$company}</a></span>