1<#assign portlet_display = portletDisplay>
2<#assign portlet_title = htmlUtil.escape(portlet_display.getTitle())>
3<#assign portlet_setup = portlet_display.getPortletSetup()>
4<#assign portlet_show_title = portlet_setup.getValue("portletSetupUseCustomTitle","Boolean")>
5
6<#assign groupId = themeDisplay.getLayout().getGroupId() />
7<#assign defaultAssetPublisherId = "" />
8<#assign targetPage = "" />
9<#assign targetLayout = umAssetPublisherHelperService.getTargetLayout(portlet_display) />
10
11<#if targetLayout?has_content>
12 <#assign targetPage = targetLayout.getFriendlyURL() />
13 <#attempt>
14 <#assign defaultAssetPublisherId = umAssetPublisherHelperService.getDefaultAssetPublisherId(targetLayout) />
15 <#recover>
16 <#assign defaultAssetPublisherId = "" />
17 </#attempt>
18</#if>
19
20<#-- TRANSLATIONS -->
21<#assign i18n = {
22 "fi": {
23 "full-contact-information": "Yhteystiedot"
24 },
25 "en": {
26 "full-contact-information": "Full contact information"
27 },
28 "sv": {
29 "full-contact-information": "All kontaktinformation"
30 },
31 "fr": {
32 "full-contact-information": "Coordonnées de contact"
33 },
34 "es": {
35 "full-contact-information": "Información de contacto"
36 },
37 "it": {
38 "full-contact-information": "Informazioni di contatto"
39 },
40 "de": {
41 "full-contact-information": "Alle Kontaktinformationen"
42 },
43 "pt": {
44 "full-contact-information": "Informações de contato"
45 },
46 "ko": {
47 "full-contact-information": "연락처"
48 },
49 "fa": {
50 "full-contact-information": "Full contact information"
51 },
52 "ja": {
53 "full-contact-information": "問い合わせ先"
54 },
55 "ru": {
56 "full-contact-information": "Контакты"
57 },
58 "zh": {
59 "full-contact-information": "所有联系方式"
60 },
61 "sr": {
62 "full-contact-information": "Sve kontakt informacije"
63 },
64 "sq": {
65 "full-contact-information": "Të gjitha informacionet e kontaktit"
66 },
67 "el": {
68 "full-contact-information": "Επικοινωνία"
69 },
70 "hr": {
71 "full-contact-information": "Sve kontakt informacije"
72 },
73 "lv": {
74 "full-contact-information": "Kontakti"
75 },
76 "lt": {
77 "full-contact-information": "Kontaktai"
78 },
79 "pl": {
80 "full-contact-information": "Wszystkie dane kontaktowe"
81 },
82 "ro": {
83 "full-contact-information": "informații de contact"
84 },
85 "th": {
86 "full-contact-information": "ข้อมูลติดต่อ"
87 },
88 "tr": {
89 "full-contact-information": "Tüm iletişim bilgileri"
90 },
91 "cs": {
92 "full-contact-information": "Všechny kontaktní informace"
93 },
94 "ua": {
95 "full-contact-information": "Контактна інформація"
96 },
97 "hu": {
98 "full-contact-information": "Kapcsolat"
99 },
100 "vi": {
101 "full-contact-information": "Thông tin liên hệ"
102 },
103 "et": {
104 "full-contact-information": "Kõik kontaktandmed"
105 },
106 "ar": {
107 "full-contact-information": "Full contact information"
108 }
109} />
110
111<#function Translate word>
112 <#if i18n[locale.language]?? >
113 <#return i18n[locale.language][word] />
114 <#else>
115 <#return i18n['en'][word] />
116 </#if>
117</#function>
118
119<div class="organization-information">
120 <#if portlet_show_title == 'true'>
121 <h5 class="portlet-title-text meta-title">${portlet_title}</h5>
122 </#if>
123
124 <#if entries?has_content && defaultAssetPublisherId?has_content && targetPage?has_content>
125 <#list entries as entry>
126 <#if entry.assetRenderer??>
127 <#assign assetRenderer = entry.getAssetRenderer() />
128 <#assign contactInfoOrganization = assetRenderer.getEntry() />
129
130 <#assign viewUrl = umAssetPublisherHelperService.getMissionURL(targetPage, defaultAssetPublisherId, entry) />
131
132 <div class="organization-wrapper">
133 <div class="organization-title section">
134 <div class="organization-name">
135 <#assign title = contactInfoOrganization.getName(locale)>
136
137 <#switch contactInfoOrganization.getType()>
138 <#case "UM">
139 <#if contactInfoOrganization.getReportName(locale, false)?has_content>
140 <#assign title = contactInfoOrganization.getReportName(locale, false)>
141 </#if>
142 <#break>
143 <#case "UE">
144 <#if contactInfoOrganization.getReportName(locale, false)?has_content>
145 <#assign title = contactInfoOrganization.getReportName(locale, false)>
146 </#if>
147 <#break>
148 <#case "ULKOMAINEN_DIPLOMAATTIKUNTA">
149 <#if contactInfoOrganization.getFullOfficialName(locale, false)?has_content>
150 <#assign title = contactInfoOrganization.getFullOfficialName(locale, false)>
151
152 <#elseif contactInfoOrganization.getReportName(locale, false)?has_content>
153 <#assign title = contactInfoOrganization.getReportName(locale, false)>
154
155 <#elseif contactInfoOrganization.getName(locale, false)?has_content>
156 <#assign title = contactInfoOrganization.getName(locale, false)>
157
158 <#elseif contactInfoOrganization.getName(contactInfoOrganization.getDefaultLanguage(), false)?has_content>
159 <#assign title = contactInfoOrganization.getName(contactInfoOrganization.getDefaultLanguage(), false)>
160 </#if>
161 <#break>
162 </#switch>
163
164 <h2 class="title">
165 <@liferay.language key="um-common.customer-service" />: ${title}
166 </h2>
167 </div>
168 </div>
169
170 <div class="organization-customer-service section">
171 <#if contactInfoOrganization.getCustomerServiceInfo(locale, false)?has_content>
172 ${ contactInfoOrganization.getCustomerServiceInfo(locale, false) }
173 </#if>
174
175 <a href="${viewUrl}" class="um-button--secondary">${Translate('full-contact-information')}</a>
176 </div>
177
178 </div>
179 </#if>
180 </#list>
181
182 <div class="clear"></div>
183 </#if>
184</div>