Modify theme functions for GEO
This commit is contained in:
parent
a17440a2d9
commit
c612c8ae7d
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
*
|
*
|
||||||
* Provide the elements of the branding block in the page.
|
* 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');
|
$block_manager = \Drupal::service('plugin.manager.block');
|
||||||
$branding = $block_manager->createInstance('system_branding_block', [])->build();
|
$branding = $block_manager->createInstance('system_branding_block', [])->build();
|
||||||
$variables['site_logo'] = $branding['site_logo']['#uri'];
|
$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
|
* In order to do an incredibly ugly hack to prevent responsive images from
|
||||||
* upscaling themselves.
|
* upscaling themselves.
|
||||||
*/
|
*/
|
||||||
function family_home_preprocess_responsive_image_formatter(array &$variables) {
|
function geofresco_preprocess_responsive_image_formatter(array &$variables) {
|
||||||
$width = $variables['item']->width;
|
$width = $variables['item']->width;
|
||||||
if ($width > 1199) {
|
if ($width > 1199) {
|
||||||
return;
|
return;
|
Loading…
Add table
Add a link
Reference in a new issue