-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathContactWidget.html
More file actions
65 lines (61 loc) · 2.37 KB
/
ContactWidget.html
File metadata and controls
65 lines (61 loc) · 2.37 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
56
57
58
59
60
61
62
63
64
65
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Widget/Widget"/>
<f:section name="main">
<f:if condition="{options.company}">
<f:then>
<f:variable name="logoName">{f:translate(key: options.company, default: options.company)}</f:variable>
</f:then>
<f:else>
<f:variable name="logoName">{f:translate(key: 'widgets.dashboard.widget.contact.defaultCompany')}</f:variable>
</f:else>
</f:if>
<f:if condition="{options.logoPath}">
<img src="{f:uri.image(src: options.logoPath, maxWidth: '290')}"
class="widget-contact-logo"
alt="{logoName}"/>
</f:if>
<f:if condition="{options.introText}">
<p>
{f:translate(key: options.introText, default: options.introText) -> f:format.raw()}
</p>
</f:if>
<p>
<f:if condition="{options.company}">
<strong>{options.company}</strong> <br/>
</f:if>
<f:if condition="{options.address}">
{options.address} <br/>
</f:if>
<f:if condition="{options.postalCode} || {options.place}">
{options.postalCode} {options.place} <br/>
</f:if>
<f:if condition="{options.country}">
{options.country} <br/>
</f:if>
</p>
<f:if condition="{options.tel} || {options.mail}">
<p>
<f:if condition="{options.tel}">
<f:translate key="telephone" extensionName="widgets"/>
{options.tel} <br/>
</f:if>
<f:if condition="{options.mail}">
<f:translate key="mail" extensionName="widgets"/>
<f:link.email email="{options.mail}" class="contact-widget-link">
<strong>{options.mail}</strong></f:link.email>
<br/>
</f:if>
</p>
</f:if>
<f:if condition="{options.website}">
<p>
<a href="{options.website}" target="_blank" class="contact-widget-link"><strong>{options.website}</strong></a>
</p>
</f:if>
</f:section>
<f:section name="footer">
<f:if condition="{button.title}">
<a href="{button.link}" target="{button.target}" class="widget-cta">{f:translate(id: button.title, default: button.title)}</a>
</f:if>
</f:section>
</html>