[PLUGINS] +abomailman
[ptitvelo/web/www.git] / www / plugins / facteur / emails / inc-button.html
diff --git a/www/plugins/facteur/emails/inc-button.html b/www/plugins/facteur/emails/inc-button.html
new file mode 100644 (file)
index 0000000..08fc0d3
--- /dev/null
@@ -0,0 +1,23 @@
+[(#REM)
+       Bulletproof button code for email html
+       from http://emailbtn.net/
+
+       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)
+]
+<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>
+  </v:roundrect>
+<![endif]--><![if !mso]><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;">#ENV*{label}</a><![endif]></span>
\ No newline at end of file