1 | #CACHE{#ENV{temps_cache,0}} |
---|
2 | [(#REM) |
---|
3 | Pour modifier l image utilisee, changez la valeur ci-dessous |
---|
4 | Plusieurs images sont proposees dans le repertoire 'img/' du plugin |
---|
5 | mais vous pouvez utiliser les votres ;-) |
---|
6 | ] |
---|
7 | #SET{tipafriend_img,#CHEMIN{img/mail_16.png}} |
---|
8 | <div class="spip_tipafriend"> |
---|
9 | <a href="[(#ENV{java,oui}|=={oui}|?{#ENV{lien_href_accessible,#ENV{lien_href}},#ENV{lien_href}})]" |
---|
10 | target="_blank"[ (#ENV{java,oui}|=={oui}|oui)onclick="taf_popup('#ENV{lien_href}', '<:tipafriend:tipafriend:>'); return false;" ] |
---|
11 | title="<:tipafriend:bouton_send_by_mail_ttl:>"[ (#ENV{options})]> |
---|
12 | <img src="#GET{tipafriend_img}" alt="<:tipafriend:tipafriend:>" title="<:tipafriend:bouton_send_by_mail_ttl:>" |
---|
13 | class="spip_tipafriend_image" border="0" /> |
---|
14 | [(#ENV{type,complet}|=={complet}|oui) <:tipafriend:bouton_send_by_mail:>] |
---|
15 | </a> |
---|
16 | </div> |
---|
17 | <script type='text/javascript'> |
---|
18 | <!-- |
---|
19 | function taf_get_url() { |
---|
20 | var url = document.URL, d_index = url.indexOf("#"), |
---|
21 | t_url = (d_index!==-1) ? url.substring(0, d_index) : url; |
---|
22 | return t_url; |
---|
23 | } |
---|
24 | function taf_popup(url, name) { |
---|
25 | if(!name) name='<:tipafriend:tipafriend:>'; |
---|
26 | var width = #EVAL{_TIPAFRIEND_POPUP_WIDTH}; |
---|
27 | var height = #EVAL{_TIPAFRIEND_POPUP_HEIGHT}; |
---|
28 | var left = (screen.width - width)/2; |
---|
29 | var top = (screen.height - height)/2; |
---|
30 | var here = taf_get_url(); |
---|
31 | var new_f = window.open( |
---|
32 | url+"&titre="+escape(document.title)+"&url="+escape(here), name, |
---|
33 | "menubar=0,directories=0,status=0,location=0,scrollbars=1,width="+width+",height="+height+",top="+top+",left="+left |
---|
34 | ); |
---|
35 | new_f.focus(); |
---|
36 | } |
---|
37 | //--> |
---|
38 | </script> |
---|