Browse Source

nouvel argument fontsize pour le texte du bouton (faudrait il d'ailleurs pas une valeur par défaut en % plutôt ?)

v3
jluc@no-log.org 5 years ago
parent
commit
9fbf598c47
  1. 5
      emails/inc-button.html

5
emails/inc-button.html

@ -12,12 +12,13 @@
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:13px;font-weight:bold;">#ENV*{label}</center>
<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: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>
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>

Loading…
Cancel
Save