You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
1.5 KiB

[(#REM)
Bulletproof button code for email html
from https://buttons.cm/
Arguments :
url
label
color (#ffffff par defaut)
bgcolor (#556270 par defaut)
bordercolor (#1e3650 par defaut)
borderradius (4px par defaut)
width (200px par defaut)
height (40px par defaut)
bgurl (rien par defaut)
fontsize (13px par défaut)
]
<span style="display: inline-block;"><!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="#ENV*{url}" style="height:#ENV{height,40px};v-text-anchor:middle;width:#ENV{width,200px};"[(#ENV{borderradius,4px}|intval|oui)arcsize="[(#ENV{borderradius,4px}|intval|mult{100}|div{#ENV{height,40px}|intval}|intval)%]"] strokecolor="#ENV{bordercolor,#1e3650}" [(#ENV{bgurl,''}|?{'fill="t"',[fillcolor="(#ENV{bgcolor,#556270})"]})]>
[<v:fill type="tile" src="(#ENV{bgurl,''})" color="#ENV{bgcolor,#556270}" />
]<w:anchorlock/>
<center style="color:#ENV{color,#ffffff};font-family:sans-serif;[font-size:(#ENV{fontsize,13px});]font-weight:bold;">#ENV*{label}</center>
</v:roundrect>
<![endif]--><a href="#ENV*{url}"
style="background-color:#ENV{bgcolor,#556270};[background-image:url\((#ENV{bgurl,''})\);]border:1px solid #ENV{bordercolor,#1e3650};[border-radius:(#ENV{borderradius,4px});]color:#ENV{color,#ffffff};display:inline-block;font-family:sans-serif;[font-size:(#ENV{fontsize,13px});]font-weight:bold;line-height:#ENV{height,40px};text-align:center;text-decoration:none;width:#ENV{width,200px};-webkit-text-size-adjust:none;mso-hide:all;">#ENV*{label}</a></span>