Skip to content
Snippets Groups Projects
Commit 71dad44a authored by Oleksandr Yermolenko's avatar Oleksandr Yermolenko Committed by Taras Kruts
Browse files

Issue #3342642: update variables for email tempalte to pass border-radius configs

parent e26020f3
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,8 @@ function social_swiftmail_preprocess_swiftmailer(array &$variables) {
$secondary = $colors['brand-secondary'];
$accent = $colors['brand-accent'];
$link = $colors['brand-link'];
$border_radius = Xss::filter(theme_get_setting('border_radius', $theme_id) ?? "");
$card_radius = Xss::filter(theme_get_setting('card_radius', $theme_id) ?? '');
$button_radius = Xss::filter(theme_get_setting('button_radius', $theme_id) ?? '');
// Add variables to send to the html template.
$variables['logo'] = $logo;
......@@ -38,7 +39,8 @@ function social_swiftmail_preprocess_swiftmailer(array &$variables) {
$variables['secondary'] = $secondary;
$variables['accent'] = $accent;
$variables['link'] = $link;
$variables['border_radius'] = $border_radius;
$variables['border_radius'] = $card_radius;
$variables['button_border_radius'] = $button_radius;
// Check if custom e-mail setting for branding removal is enabled.
$social_swiftmail_config = \Drupal::config('social_swiftmail.settings');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment