From 79a54aff704497c96703ffd2d5adc9fe1a2f215d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Wed, 21 Aug 2019 16:59:32 -0400 Subject: [PATCH] Delete all that custom theme code we aren't using --- web/themes/custom/geofresco/geofresco.theme | 32 --------------------- 1 file changed, 32 deletions(-) diff --git a/web/themes/custom/geofresco/geofresco.theme b/web/themes/custom/geofresco/geofresco.theme index 003202d..a4abe2d 100644 --- a/web/themes/custom/geofresco/geofresco.theme +++ b/web/themes/custom/geofresco/geofresco.theme @@ -1,34 +1,2 @@ createInstance('system_branding_block', [])->build(); - $variables['site_logo'] = $branding['site_logo']['#uri']; - $variables['site_slogan'] = $branding['site_slogan']; - $variables['site_name'] = $branding['site_name']; -} - - -// Below workaround to prevent upscaling of responsive images taken from -// https://drupal.stackexchange.com/questions/254109/how-to-add-a-width-attribute-to-a-responsive-image-with-srcset -// see https://www.drupal.org/project/drupal/issues/2999960 - -/** - * Implements hook_preprocess_responsive_image_formatter(). - * - * 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) { - return; - } - $variables['responsive_image']['#attributes']['style'] = 'width: ' . $width . 'px'; -} - */