Kontakt Kontakt

Wystąpił błąd podczas przetwarzania szablonu.
Error on line 2, column 1 in 10097#20183917#KONTAKT
serviceContext.getThemeDisplay() is undefined.
It cannot be assigned to themeDisplay
1<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext() /> 
2<#assign themeDisplay = serviceContext.getThemeDisplay() /> 
3<#assign portletId = themeDisplay.getPortletDisplay().getId() /> 
4 
5<div class="nfh-cp-base-contact"> 
6    <#assign organizationalUnitName = .vars["nazwa-jednostki"] /> 
7    <#if organizationalUnitName?? && organizationalUnitName.data?has_content> 
8        <#assign organizationalUnitPhoneNumber = ""/> 
9        <#if organizationalUnitName.telefon??> 
10            <#assign organizationalUnitPhoneNumber = organizationalUnitName.telefon /> 
11        </#if> 
12        <#assign organizationalUnitFaxNumber = ""/> 
13        <#if organizationalUnitName.fax??> 
14            <#assign organizationalUnitFaxNumber = organizationalUnitName.fax /> 
15        </#if> 
16        <#assign organizationalUnitEmail = ""/> 
17        <#if organizationalUnitName.email??> 
18            <#assign organizationalUnitEmail = organizationalUnitName.email /> 
19        </#if> 
20        <#assign organizationalUnitAddress = organizationalUnitName.adres /> 
21        <#assign organizationalUnitGoogleMap = organizationalUnitName["google-map"] /> 
22 
23        <#assign organizationalUnitPhoto = "" /> 
24        <#if organizationalUnitName.zdjecie??> 
25            <#assign organizationalUnitPhoto = organizationalUnitName.zdjecie /> 
26        </#if> 
27        <#if stanowisko??> 
28            <#assign positions = stanowisko/> 
29        </#if> 
30        <#assign departments = ""/> 
31        <#if pion??> 
32            <#assign departments = pion/> 
33        </#if> 
34 
35 
36        <div class="organizational-unit"> 
37            <#if organizationalUnitPhoto?? && organizationalUnitPhoto.data?? && organizationalUnitPhoto.data?has_content> 
38                <div class="box"> 
39                    <img alt="${languageUtil.get(locale, "headquarters")} ${organizationalUnitName.data}" src="${organizationalUnitPhoto.data}" 
40                        title="${languageUtil.get(locale, "headquarters")} ${organizationalUnitName.data}" /> 
41                </div> 
42            </#if> 
43            <div class="box"> 
44                <div class="name"><span>${organizationalUnitName.data}</span></div> 
45                <#if organizationalUnitPhoneNumber?? && organizationalUnitPhoneNumber.data?has_content> 
46                    <div class="phone-number"> 
47                        <img src="${themeDisplay.pathThemeImages}/nfh-cp/icon-phone-14x14.png" class="icon"> 
48                        <span>${organizationalUnitPhoneNumber.data}</span> 
49                    </div> 
50                </#if> 
51                <#if organizationalUnitFaxNumber?? && organizationalUnitFaxNumber.data?has_content> 
52                    <div class="fax-number"> 
53                        <img src="${themeDisplay.pathThemeImages}/nfh-cp/icon-fax-14x14.png" class="icon"> 
54                        <span>${organizationalUnitFaxNumber.data}</span> 
55                    </div> 
56                </#if> 
57                <#if organizationalUnitEmail?? && organizationalUnitEmail.data?has_content> 
58                    <div class="email"> 
59                        <img src="${themeDisplay.pathThemeImages}/nfh-cp/icon-email-14x14.png" class="icon"> 
60                        <a href="mailto:${organizationalUnitEmail.data}">${organizationalUnitEmail.data}</a> 
61                    </div> 
62                </#if> 
63                <#if organizationalUnitAddress?? && organizationalUnitAddress.data?has_content> 
64                    <div class="address"> 
65                        <img src="${themeDisplay.pathThemeImages}/nfh-cp/icon-home-14x14.png" class="icon"> 
66                        <span>${organizationalUnitAddress.data}</span> 
67                        <#if organizationalUnitGoogleMap?? && organizationalUnitGoogleMap.data?has_content> 
68                            <div class="google-map"> 
69                                ${organizationalUnitGoogleMap.data} 
70                            </div> 
71                        </#if> 
72                    </div> 
73                </#if> 
74            </div> 
75        </div> 
76 
77        <#if positions?? && positions.getSiblings()?size gt 0> 
78            <div class="positions"> 
79                <#list positions.getSiblings() as position> 
80                    <#assign fullName = position["imie-i-nazwisko"] /> 
81                    <#assign phoneNumber = position["stanowisko-telefon"] /> 
82                    <#assign email = position["stanowisko-email"] /> 
83                    <#assign photo = position["stanowisko-zdjecie"] /> 
84 
85                    <#if (position.data??) || (fullName?? && fullName.data?has_content) || (phoneNumber?? && phoneNumber.data?has_content) || (email?? && email.data?has_content) || (photo?? && photo.data?has_content)> 
86                        <div class="position"> 
87                            <#if position.data??> 
88                                <div class="name"><span>${position.data}</span></div> 
89                            </#if> 
90                            <#if fullName?? && fullName.data?has_content> 
91                                <div class="full-name"><span>${fullName.data}</span></div> 
92                            </#if> 
93                            <#if photo?? && photo.data?has_content> 
94                                <div class="photo"><img src="${photo.data}&height=180"></div> 
95                            </#if> 
96                            <#if phoneNumber?? && phoneNumber.data?has_content> 
97                                <div class="phone-number"> 
98                                    <img src="${themeDisplay.pathThemeImages}/nfh-cp/icon-phone-14x14.png" class="icon"> 
99                                    <span>${phoneNumber.data}</span> 
100                                </div> 
101                            </#if> 
102                            <#if email?? && email.data?has_content> 
103                                <div class="email"> 
104                                    <img src="${themeDisplay.pathThemeImages}/nfh-cp/icon-email-14x14.png" class="icon"> 
105                                    <a href="mailto:${email.data}">${languageUtil.get(locale, "email")}</a> 
106                                </div> 
107                            </#if> 
108                        </div> 
109                    </#if> 
110                </#list> 
111            </div> 
112        </#if> 
113 
114        <#if departments?? && departments.getSiblings()?size gt 0> 
115            <div class="departments"> 
116                <#list departments.getSiblings() as department> 
117                    <#assign positions = department["pion-stanowisko"] /> 
118                    <#if (department.data??)> 
119                        <#assign departmentClass = "even" /> 
120                        <#if department_index % 2 == 1> 
121                            <#assign departmentClass = "odd" /> 
122                        </#if > 
123                        <div class="department ${departmentClass}"> 
124                            <h2 class="department-name"><a href="#">${department.data}</a></h2> 
125                            <div class="department-data"> 
126                                <#if positions?? && positions.getSiblings()?size gt 0> 
127                                    <div class="department-positions"> 
128                                        <#list positions.getSiblings() as position> 
129                                            <#assign fullName = position["pion-stanowisko-imie-i-nazwisko"] /> 
130                                            <#assign phoneNumber = position["pion-stanowisko-telefon"] /> 
131                                            <#assign email = position["pion-stanowisko-email"] /> 
132 
133                                            <div class="department-position-wrapper"> 
134                                                <#if fullName?? && fullName.data?has_content> 
135                                                    <img src="${themeDisplay.pathThemeImages}/nfh-cp/icon-user-14x14.png" class="icon"> 
136                                                </#if> 
137                                                <div class="department-position"> 
138                                                    <#if fullName?? && fullName.data?has_content> 
139                                                        <div class="full-name"> 
140                                                            <span>${fullName.data}</span> 
141                                                        </div> 
142                                                    </#if> 
143                                                    <#if position.data??> 
144                                                        <div class="name"> 
145                                                            <span>${position.data}</span> 
146                                                        </div> 
147                                                    </#if> 
148                                                    <#if phoneNumber?? && phoneNumber.data?has_content> 
149                                                        <div class="phone-number"> 
150                                                            <span>${languageUtil.get(locale, "phone-abbreviation")}: ${phoneNumber.data}</span> 
151                                                        </div> 
152                                                    </#if> 
153                                                    <#if email?? && email.data?has_content> 
154                                                        <div class="email"> 
155                                                            <a href="mailto:${email.data}">${email.data}</a> 
156                                                        </div> 
157                                                    </#if> 
158                                                </div> 
159                                            </div> 
160                                        </#list> 
161                                    </div> 
162                                </#if> 
163                            </div> 
164                        </div> 
165                    </#if> 
166                </#list> 
167            </div> 
168        </#if> 
169 
170    </#if> 
171</div>