Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use placeholder for unsubscribe link and place it near the normal ema…
…il footer content. (#13421) * Use placeholder for unsubscribe link and place it near the normal email footer content. * padding tweak for whitelabel * fix unsubscribe link escaping replace issue * Move _htmlReportFooter contents to _htmlEmailFooter.twig. * Remove stray 'c'
- Loading branch information
Showing
4 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
{% set fontStyle %}color:{{ themeStyles.colorText|e('html_attr') }};font-family:{{ themeStyles.fontFamilyBase|e('html_attr') }};{% endset %} | ||
{% set styleParagraph = 'font-size:15px;line-height:24px;margin:0 0 16px;' %} | ||
{% set footerParagraphStyle %}{{styleParagraph}}{{fontStyle}}text-align:center;font-size:13px; color:#666;{% endset %} | ||
{% set hasHorizontalRule = not hasWhiteLabel or unsubscribeLink|default is not empty %} | ||
|
||
{% if not hasWhiteLabel %} | ||
{% if hasHorizontalRule %} | ||
<hr style=" border: 0; margin-top: 50px; height: 1px; background-image: linear-gradient(to right, rgba(231, 231, 231, 0), rgba(231, 231, 231, 1), rgba(2311, 2311, 231, 0));"> | ||
{% endif %} | ||
|
||
<p style='{{styleParagraph|raw}}{{fontStyle|raw}}text-align:center;font-size:13px; color:#666; padding:30px'> | ||
{% if not hasWhiteLabel %} | ||
<p style='{{ footerParagraphStyle }}padding-top:30px;margin-bottom:0;'> | ||
{{'General_PoweredBy'|translate}} | ||
<a style="color:#439fe0; " href="https://matomo.org/" title="Matomo Analytics">Matomo Analytics</a> | ||
<a style="color:#439fe0;" href="https://matomo.org/" title="Matomo Analytics">Matomo Analytics</a> | ||
<br /> | ||
{{ 'CoreHome_LeadingAnalyticsPlatformRespectsYourPrivacy'|translate }} | ||
</p> | ||
{% endif %} | ||
|
||
{% if unsubscribeLink|default is not empty %} | ||
{% set unsubLink %}<a style="color:#439fe0;" href="{{ unsubscribeLink|e('html_attr') }}">{{ 'ScheduledReports_Unsubscribe'|translate }}</a>{% endset %} | ||
<p style='{{ footerParagraphStyle }}{% if hasWhiteLabel %}padding-top:30px;{% endif %}'>{{ 'ScheduledReports_UnsubscribeFooter'|translate(unsubLink)|raw }}.</p> | ||
{% endif %} | ||
|
||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters