From c612c8ae7ddbf3df1cc494201e4eabf392f12016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Sun, 28 Jul 2019 12:33:02 -0400 Subject: [PATCH] Modify theme functions for GEO --- .../custom/geofresco/{family_home.theme => geofresco.theme} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename web/themes/custom/geofresco/{family_home.theme => geofresco.theme} (88%) diff --git a/web/themes/custom/geofresco/family_home.theme b/web/themes/custom/geofresco/geofresco.theme similarity index 88% rename from web/themes/custom/geofresco/family_home.theme rename to web/themes/custom/geofresco/geofresco.theme index 2ad5354..8bd3624 100644 --- a/web/themes/custom/geofresco/family_home.theme +++ b/web/themes/custom/geofresco/geofresco.theme @@ -5,7 +5,7 @@ * * Provide the elements of the branding block in the page. */ -function family_home_preprocess_page(&$variables) { +function geofresco_preprocess_page(&$variables) { $block_manager = \Drupal::service('plugin.manager.block'); $branding = $block_manager->createInstance('system_branding_block', [])->build(); $variables['site_logo'] = $branding['site_logo']['#uri']; @@ -24,7 +24,7 @@ function family_home_preprocess_page(&$variables) { * In order to do an incredibly ugly hack to prevent responsive images from * upscaling themselves. */ -function family_home_preprocess_responsive_image_formatter(array &$variables) { +function geofresco_preprocess_responsive_image_formatter(array &$variables) { $width = $variables['item']->width; if ($width > 1199) { return;