diff --git a/CHANGELOG.md b/CHANGELOG.md index af4baf4..56a5f50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.4] - 22.09.2023 + +### Changes +* Extension of overwriting properties: Pre-Header text and colored footer width +* Dependency updates + +[1.1.4]: https://github.com/bsi-software/bsi-cx-design-standard-library-email/releases/tag/1.1.4 + + ## [1.1.3] - 05.06.2023 ### Changes diff --git a/content-elements/base/header-preheader/prototype/template.twig b/content-elements/base/header-preheader/prototype/template.twig index 2671cdd..980ef3c 100644 --- a/content-elements/base/header-preheader/prototype/template.twig +++ b/content-elements/base/header-preheader/prototype/template.twig @@ -7,20 +7,22 @@ {% set preHeaderElementId = elementId ?: 'header-preheader-cVwk8f' %} {% set preHeaderPreviewPartId = previewPartId ?: 'header-preheader-part-preview-rWi96c' %} {% set preHeaderTextPartId = textPartId ?: 'header-preheader-part-text-dpjafj' %} + {% set preHeaderInfoText = (infoText ?: properties.preHeaderInfoText) ?: 'Pre-header text here. | ' %} + {% set preHeaderLinkText = (linkText ?: properties.preHeaderLinkText) ?: 'View in Browser' %} {% set preHeaderTextColor = (textColor ?: properties.baseTextColor) ?: '#000000' %} {% set preHeaderLinkColor = (linkColor ?: properties.linkColor) ?: '#93C120' %} {% set preHeaderFontFamily = (fontFamily ?: properties.baseFontFamily) ?: 'Open Sans, Segoe UI, Apple SD Gothic Neo, Lucida Grande, Lucida Sans Unicode, sans‑serif' %} - {% set preHeaderFontSize = (fontSize ?: properties.fontSizePreheader) ?: 14 %} + {% set preHeaderFontSize = (fontSize ?: properties.fontSizePreHeader) ?: 14 %} {% set preHeaderLineHeight = preHeaderFontSize + 4 %} {% set preHeaderMarginBottom = (marginBottom ?: properties.baseMarginBottom) ?: 12 %}
{# insert white space after preview text to ensure that no other text is pulled in #} -
͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ 
-
Pre-header text here. |  +
͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ ͏‌ 
+
{{ preHeaderInfoText }} - View in Browser + {{ preHeaderLinkText }}
{% block layout_base_dropzone %} diff --git a/content-elements/layout/layout-dark-footer/prototype/template.twig b/content-elements/layout/layout-dark-footer/prototype/template.twig index c444ad0..680cb78 100644 --- a/content-elements/layout/layout-dark-footer/prototype/template.twig +++ b/content-elements/layout/layout-dark-footer/prototype/template.twig @@ -1,4 +1,4 @@ -{% macro render(elementId = null, dropzoneId = null, backgroundColor = null, textColor = null, padding = null, width = null) %}{% apply spaceless %} +{% macro render(elementId = null, dropzoneId = null, backgroundColor = null, textColor = null, padding = null, width = null, fillsFullScreen = null, widthBackgroundColor = null) %}{% apply spaceless %} {% deprecated 'The usage of "element.render(...)" is deprecated, use "include ... with {...}" instead. For detailed information, visit: https://github.com/bsi-software/bsi-cx-design-master-template-email/blob/main/MIGRATION_GUIDE.md"' %} {% include './template.twig' %} {% endapply %}{% endmacro %} @@ -9,12 +9,18 @@ {% set layoutDarkFooterBackgroundColor = (backgroundColor ?: properties.footerDarkBackgroundColor) ?: '#383e42' %} {% set layoutDarkFooterTextColor = (textColor ?: properties.footerDarkTextColor) ?: '#ffffff' %} {% set layoutDarkFooterPadding = (padding ?: properties.footerDarkPadding) ?: 30 %} - {% set layoutDarkFooterWidth = ((width ?: properties.layoutWidth) ?: 660) + 8 %} + {% set layoutDarkFooterWidthContent = ((width ?: properties.layoutWidth) ?: 660) + 8 %} + {% set layoutDarkFooterFillsFullScreen = fillsFullScreen ?: properties.footerBackgroundColorFillsFullScreen %} + {% set layoutDarkFooterWidthBackgroundColor = ((widthBackgroundColor ?: properties.footerBackgroundColorWidth) ?: 660) + 8 %} {% set layoutDarkFooterDarkModeClass = darkModeClass ?: 'bsi-dm-bg-color-footer' %} {# keep layout structure implementation in sync with 'layout-base' #}
- + {% if layoutDarkFooterFillsFullScreen %} + + {% else %} + + {% endif %}