first commit

This commit is contained in:
2024-07-15 12:33:27 +02:00
commit ce50ae282b
22084 changed files with 2623791 additions and 0 deletions

22
themes/honey/honey.theme Normal file
View File

@@ -0,0 +1,22 @@
<?php
/**
* @file
* Functions to support theming in the Honey theme.
*/
/**
* Implements hook_preprocess_HOOK() for block.html.twig.
*/
function honey_preprocess_block(&$variables) {
// Add a clearfix class to system branding blocks.
if ($variables['plugin_id'] == 'system_branding_block') {
if (isset($variables['site_logo'])) {
$logo_path = DRUPAL_ROOT . $variables['site_logo'];
// If logo is a SVG lets load it content so we can inline it.
if (strlen($logo_path) - strpos($logo_path, '.svg') === 4) {
$variables['site_logo_svg'] = file_get_contents($logo_path);
}
}
}
}