Allow images to upscale so we can do fancy cover article images

This commit is contained in:
Benjamin Melançon 2019-08-08 22:19:21 -04:00
parent f1f66a8e58
commit 51a594f88c

View file

@ -23,7 +23,7 @@ function geofresco_preprocess_page(&$variables) {
*
* In order to do an incredibly ugly hack to prevent responsive images from
* upscaling themselves.
*/
WE DECIDED WE WANT TO ALLOW UPSCALING ON THIS SITE
function geofresco_preprocess_responsive_image_formatter(array &$variables) {
$width = $variables['item']->width;
if ($width > 1199) {
@ -31,3 +31,4 @@ function geofresco_preprocess_responsive_image_formatter(array &$variables) {
}
$variables['responsive_image']['#attributes']['style'] = 'width: ' . $width . 'px';
}
*/