Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Fixed error when the logo type is not defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk authored and salsadeploy committed Oct 30, 2023
1 parent c56bb65 commit 1158103
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/system_branding.inc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function civictheme_preprocess_block__system_branding_block(&$variables) {
$variables['title'] = Xss::filterAdmin($variables['elements']['content']['site_slogan']['#markup'] ?? '');

$logo_type = $is_footer_region ? civictheme_get_theme_config_manager()->load('components.footer.logo_type') : civictheme_get_theme_config_manager()->load('components.header.logo_type');
$variables['type'] = str_replace('_', '-', $logo_type) ?? CivicthemeConstants::LOGO_TYPE_DEFAULT;
$variables['type'] = str_replace('_', '-', $logo_type ?? CivicthemeConstants::LOGO_TYPE_DEFAULT);
$variables['modifier_class'] = $is_footer_region ? 'ct-footer__logo' : 'ct-header__logo';
$logo_alt = civictheme_get_theme_config_manager()->load('components.logo.image_alt') ?? '';

Expand Down
2 changes: 1 addition & 1 deletion storybook-static/project.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"generatedAt":1698632568989,"builder":{"name":"webpack4"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"npm","version":"8.19.4"},"storybookVersion":"6.5.16","language":"javascript","storybookPackages":{"@storybook/addons":{"version":"6.5.16"},"@storybook/html":{"version":"6.5.16"},"@storybook/preset-scss":{"version":"1.0.3"}},"framework":{"name":"html"},"addons":{"@storybook/addon-knobs":{"version":"6.4.0"},"@storybook/addon-essentials":{"options":{"controls":false,"docs":false,"actions":false},"version":"6.5.16"},"@storybook/addon-links":{"version":"6.5.16"},"@storybook/addon-a11y":{"version":"6.5.16"}}}
{"generatedAt":1698635798040,"builder":{"name":"webpack4"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"npm","version":"8.19.4"},"storybookVersion":"6.5.16","language":"javascript","storybookPackages":{"@storybook/addons":{"version":"6.5.16"},"@storybook/html":{"version":"6.5.16"},"@storybook/preset-scss":{"version":"1.0.3"}},"framework":{"name":"html"},"addons":{"@storybook/addon-knobs":{"version":"6.4.0"},"@storybook/addon-essentials":{"options":{"controls":false,"docs":false,"actions":false},"version":"6.5.16"},"@storybook/addon-links":{"version":"6.5.16"},"@storybook/addon-a11y":{"version":"6.5.16"}}}

0 comments on commit 1158103

Please sign in to comment.