Skip to content

Commit

Permalink
#48 encode email address with native smarty plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Jun 17, 2020
1 parent 1b0fb95 commit 9a3123c
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions templates/frontend/pages/contact.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,18 @@

{if $contactPhone}
<div class="phone">
<span class="label">
{translate key="about.contact.phone"}
</span>
<span class="label">
{translate key="about.contact.phone"}
</span>
<span class="value">
{$contactPhone|escape}
</span>
{$contactPhone|escape}
</span>
</div>
{/if}

{if $contactEmail}
<div class="email">
<a href="mailto:{$contactEmail|escape}">
{$contactEmail|escape}
</a>
{mailto address=$contactEmail encode='javascript'}
</div>
{/if}
</div>
Expand All @@ -100,20 +98,18 @@

{if $supportPhone}
<div class="phone">
<span class="label">
{translate key="about.contact.phone"}
</span>
<span class="label">
{translate key="about.contact.phone"}
</span>
<span class="value">
{$supportPhone|escape}
</span>
{$supportPhone|escape}
</span>
</div>
{/if}

{if $supportEmail}
<div class="email">
<a href="mailto:{$supportEmail|escape}">
{$supportEmail|escape}
</a>
{mailto address=$supportEmail encode='javascript'}
</div>
{/if}
</div>
Expand Down

0 comments on commit 9a3123c

Please sign in to comment.