specialized_elements.anubis
1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Created by PyramIDE.
* User: フランスのトトロ aka (David RENÉ)
* Date: 01/06/2017
* Time: 12:03
* © Calexium
*/
read calexium_lib/web/CXM_making_a_web_site.anubis
public define HTML_Off_Form
phone
(
List(CoreAttrs) attrs,
String phone_number
)=
if phone_number = "" then empty
else
with _attrs = [data("phone-number", phone_number), event(onclick, "hk_phone_call(this)"), class("phone_click") . attrs],
div([
image(_attrs, "/icons/16x16/phone.png"),
text(_attrs, phone_number)
])
.
public define HTML_Off_Form
phone
(
String phone_number
)=
phone([], phone_number)
.
public define HTML_Off_Form
email
(
List(CoreAttrs) attrs,
String email_str
)=
if email_str = "" then empty
else
with _attrs = [data("email", email_str), event(onclick, "hk_send_email(this)"), class("email_click") . attrs],
div([
image(_attrs, "/icons/16x16/email.png"),
text(_attrs, email_str)
])
.
public define HTML_Off_Form
email
(
String phone_number
)=
email([], phone_number)
.