Pomiń baner
Wystąpił błąd podczas przetwarzania szablonu.
The following has evaluated to null or missing:
==> artStructureValues["tytul"]  [in template "20096#20121#SKORKA2015-LISTA-ARTYKULOW" at line 339, column 44]

----
Tip: It's the final [] step that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: articleTitle = artStructureValues["ty...  [in template "20096#20121#SKORKA2015-LISTA-ARTYKULOW" at line 339, column 29]
----
1<#assign sciezkaObrazkow = ''/> 
2<#assign currentUrl = ''/> 
3<#if request?? && request?has_content> 
4    <#assign sciezkaObrazkow = themeDisplay.getPathThemeImages()/> 
5    <#assign currentUrl = themeDisplay.getURLCurrent()/> 
6    <#assign longGroupId = themeDisplay.getScopeGroupId()/> 
7    <#assign currentRenderUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()/> 
8</#if> 
9 
10<#if sciezkaObrazkow?has_content || sciezkaObrazkow?matches(".*/uj-lift-theme/images.*")> 
11 
12    <style> 
13        @media all and (min-width:480px){ 
14            .post-excerpt__image img.thumb, html.view-gt480 .post-excerpt__image img.thumb{width: 300px;} 
15
16    </style> 
17 
18    <#assign langReadMore = htmlUtil.escape(languageUtil.get(locale,"read-more"))/> 
19    <#assign langAll = htmlUtil.escape(languageUtil.get(locale,"all"))/> 
20    <#assign langFilter = htmlUtil.escape(languageUtil.get(locale,"filter"))/> 
21    <#assign langViewAll = htmlUtil.escape(languageUtil.get(locale,"view-all"))/> 
22 
23<#-----------MACRO-----------> 
24    <#macro imgAltDescription artImgUrl> 
25        <#assign artImgUrlArray = stringUtil.split(artImgUrl, "/")/> 
26        <#assign fileGroup = getterUtil.getLong(artImgUrlArray[2])/> 
27        <#assign fileFolder = getterUtil.getLong(artImgUrlArray[3])/> 
28        <#assign fileName = httpComponentsUtil.decodeURL(artImgUrlArray[4])/> 
29 
30        <#if fileEntryService.getFileEntryByFileName(fileGroup, fileFolder, fileName)??> 
31            <#assign file = fileEntryService.getFileEntryByFileName(fileGroup, fileFolder, fileName)/> 
32            <#assign fileTitle = file.getTitle()/> 
33            <#assign fileTitle = fileTitle?replace("\\\"", "&quot;")/> 
34            <#assign fileDescription = file.getDescription()> 
35            <#assign fileDescription = fileDescription?replace("\\\"", "&quot;")/> 
36            <#assign fileExtension = file.getExtension()/> 
37        </#if> 
38    </#macro> 
39 
40<#-----------Services-----------> 
41    <#assign journalArticleResourceService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")/> 
42    <#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/> 
43    <#assign assetTagService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService")/> 
44    <#assign groupService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")/> 
45    <#assign fileEntryService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")/> 
46 
47<#-----------Structure variables-----------> 
48    <#assign 
49    titleData = "" 
50    typeData = "" 
51    categoriesData = "" 
52    omitCategoriesData = "" 
53    tagsData = "" 
54    omitTagsData = "" 
55    groupIdsData = "" 
56    noResultData = "" 
57    sortByData = "" 
58    hideData = "" 
59    aggregatorSiteUrlData = "" 
60    aggregatorPortletIdData = "" 
61    hidePaginationData = "" 
62    omitArticleIdsData = "" 
63    iloscNaStronie = "" 
64    /> 
65 
66    <#if (title.getData())??> 
67        <#assign titleData = title.getData()/> 
68    </#if> 
69    <#if (type.getData())??> 
70        <#assign typeData = type.getData()?upper_case/> 
71    </#if> 
72    <#if (categories.getData())??> 
73        <#assign categoriesData = categories.getData()/> 
74    </#if> 
75    <#if (omitCategories.getData())??> 
76        <#assign omitCategoriesData = omitCategories.getData()/> 
77    </#if> 
78    <#if (tags.getData())??> 
79        <#assign tagsData = tags.getData()/> 
80    </#if> 
81    <#if (omitTags.getData())??> 
82        <#assign omitTagsData = omitTags.getData()/> 
83    </#if> 
84    <#if (groupIds.getData())??> 
85        <#assign groupIdsData = groupIds.getData()/> 
86    </#if> 
87    <#if (noResult.getData())??> 
88        <#assign noResultData = noResult.getData()/> 
89    </#if> 
90    <#if (sortBy.getData())??> 
91        <#assign sortByData = sortBy.getData()/> 
92    </#if> 
93    <#if (hide.getData())??> 
94        <#assign hideData = hide.getData()/> 
95    </#if> 
96    <#if (aggregatorSiteUrl.getData())??> 
97        <#assign aggregatorSiteUrlData = aggregatorSiteUrl.getData()/> 
98    </#if> 
99    <#if (aggregatorPortletId.getData())??> 
100        <#assign aggregatorPortletIdData = aggregatorPortletId.getData()/> 
101    </#if> 
102    <#if aggregatorSiteUrlData?has_content && aggregatorPortletIdData?has_content> 
103        <#assign adresStrony = aggregatorSiteUrlData/> 
104        <#assign portletId = aggregatorPortletIdData/> 
105    <#else> 
106        <#assign adresStrony = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()/> 
107 
108        <#if adresStrony?contains("?")> 
109            <#assign adresStrony = adresStrony?substring(0, adresStrony?index_of("?")) /> 
110        <#else> 
111            <#assign adresStrony = adresStrony/> 
112        </#if> 
113        <#if themeDisplay.getLayout().getName()?contains("#start") && !adresStrony?contains("/start")> 
114            <#assign adresStrony = adresStrony + themeDisplay.getLayout().getFriendlyURL()/> 
115        </#if> 
116 
117        <#assign portletId = themeDisplay.getPortletDisplay().getId()/> 
118    </#if> 
119 
120    <#if (hidePagination.getData())??> 
121        <#assign hidePaginationData = hidePagination.getData()/> 
122    </#if> 
123    <#if (omitArticleIds.getData())??> 
124        <#assign omitArticleIdsData = omitArticleIds.getData()/> 
125    </#if> 
126 
127    <#if (articlesCountOnPage.getData())??> 
128        <#assign iloscNaStronie = getterUtil.getInteger(articlesCountOnPage.getData())/> 
129    </#if> 
130 
131<#-----------Organizations & Groups-----------> 
132    <#assign groupsList = []/> 
133    <#assign groupIds = []/> 
134    <#assign groupIdsLong = getterUtil.getLongValues(stringUtil.split(groupIdsData, ","))/> 
135 
136    <#list groupIdsLong as g> 
137        <#if groupService.fetchGroup(g)??> 
138            <#assign groupIds = groupIds + [g] /> 
139        </#if> 
140    </#list> 
141 
142    <#if groupIds?size gt 0> 
143        <#list groupIds as groupId> 
144            <#assign groupsList = groupsList + [groupId] /> 
145        </#list> 
146 
147    <#else> 
148        <#assign groupsList = [longGroupId?string]/> 
149        <#assign groupIds = [longGroupId]/> 
150    </#if> 
151 
152    <#assign groupsListFilter = groupsList/> 
153 
154    <#assign groupFilter = ''/> 
155    <#if renderRequest.getOriginalHttpServletRequest().getParameter('groupFilter')??> 
156        <#assign groupFilter = renderRequest.getOriginalHttpServletRequest().getParameter('groupFilter')?html/> 
157    </#if> 
158 
159    <#if groupFilter?has_content> 
160        <#if groupsList?join(",")?contains(groupFilter)> 
161            <#assign groupsList = [groupFilter?string]/> 
162            <#assign groupIds = [getterUtil.getLong(groupFilter)]/> 
163        </#if> 
164    </#if> 
165 
166    <#assign emptyLongArray = getterUtil.getLongValues([])/> 
167<#-----------Categories-----------> 
168    <#assign categoryIds = emptyLongArray/> 
169    <#assign omitCategoryIds = emptyLongArray/> 
170 
171    <#list stringUtil.split(categoriesData, ",") as categorie> 
172        <#if categorie?length gt 0> 
173            <#assign categoryNameTmp = [categorie?trim]/> 
174            <#list groupIds as longGroupId> 
175                <#assign categoryIdTmp = ujCustomAssetHelper.getCategoryIds(longGroupId, categoryNameTmp)/> 
176                <#assign categoryIds = arrayUtil.append(categoryIds, categoryIdTmp)/> 
177            </#list> 
178        </#if> 
179    </#list> 
180 
181    <#list stringUtil.split(omitCategoriesData, ",") as categorie> 
182        <#if categorie?length gt 0> 
183            <#assign omitCategoryNameTmp = [categorie?trim]/> 
184            <#list groupIds as longGroupId> 
185                <#assign omitCategoryIdTmp = ujCustomAssetHelper.getCategoryIds(longGroupId, omitCategoryNameTmp)/> 
186                <#assign omitCategoryIds = arrayUtil.append(omitCategoryIds, omitCategoryIdTmp)/> 
187            </#list> 
188        </#if> 
189    </#list> 
190 
191<#-----------Tags-----------> 
192    <#assign tagIds = emptyLongArray/> 
193    <#assign omitTagIds = emptyLongArray/> 
194 
195    <#list stringUtil.split(tagsData) as tag> 
196        <#if tag?length gt 0> 
197            <#assign tagNameTmp = [tag?trim]/> 
198            <#list groupIds as longGroupId> 
199                <#assign tagIdTmp = ujCustomAssetHelper.getTagIds(longGroupId, tagNameTmp)/> 
200                <#assign tagIds = arrayUtil.append(tagIds, tagIdTmp)/> 
201            </#list> 
202        </#if> 
203    </#list> 
204 
205    <#assign addTagId = ''/> 
206    <#assign addLongTagId = 0/> 
207    <#if renderRequest.getOriginalHttpServletRequest().getParameter('tagId')??> 
208        <#assign addTagId = renderRequest.getOriginalHttpServletRequest().getParameter('tagId')?html/> 
209        <#assign addLongTagId = getterUtil.getLong(addTagId)/> 
210    </#if> 
211 
212    <#list stringUtil.split(omitTagsData, ",") as tag> 
213        <#if tag?length gt 0> 
214            <#assign omitTagNameTmp = [tag?trim]/> 
215            <#list groupIds as longGroupId> 
216                <#assign omitTagIdTmp = ujCustomAssetHelper.getTagIds(longGroupId, omitTagNameTmp)/> 
217                <#assign omitTagIds = arrayUtil.append(omitTagIds, omitTagIdTmp)/> 
218            </#list> 
219        </#if> 
220    </#list> 
221 
222<#-----------Pagination variables-----------> 
223    <#if iloscNaStronie == 0> 
224        <#assign iloscNaStronie = 5/> 
225    </#if> 
226    <#assign strona = 1/> 
227 
228    <#if renderRequest.getOriginalHttpServletRequest().getParameter('strona')??> 
229        <#assign strona = getterUtil.getInteger(renderRequest.getOriginalHttpServletRequest().getParameter('strona')?html)/> 
230    </#if> 
231 
232    <#assign iloscWszystkich = ujCustomAssetHelper.getAssetsFromGroupsCount(groupIds, typeData, categoryIds, omitCategoryIds, tagIds, omitTagIds, null, null, null, null, .now?date)/> 
233 
234    <#assign iloscStron = (iloscWszystkich/iloscNaStronie)?ceiling/> 
235 
236    <#if strona gt iloscStron> 
237        <#assign strona = iloscStron/> 
238    </#if> 
239    <#assign indeksPoczatkowy = iloscNaStronie*(strona - 1)/> 
240    <#assign indeksKoncowy = indeksPoczatkowy + iloscNaStronie/> 
241 
242    <#assign assets = ujCustomAssetHelper.getAssetsFromGroups(groupIds, typeData, categoryIds, omitCategoryIds, tagIds, omitTagIds, sortByData, 
243    "title","DESC","ASC", null, null, null, null, .now?date, indeksPoczatkowy, indeksKoncowy)/> 
244 
245    <#if addLongTagId gt 0> 
246        <p>Wyniki sortowane według etykiety: <strong>${assetTagService.getTag(addLongTagId).getName()}</strong> </p> 
247    </#if> 
248 
249    <section class="main-content" id="main-content" tabindex="-1"> 
250 
251        <#if titleData?has_content> 
252            <div class="page-sub-heading"> 
253                <h2 class="page-sub-heading__title">${titleData}</h2> 
254            </div> 
255        </#if> 
256        <#-----------Select articles by groupId-----------> 
257        <#if !hideData?contains('groupFilter')> 
258            <#if groupsListFilter?size gt 1> 
259                <form id="articlesFilter" name="formArticlesFilter"  class="jsForm" action="${currentUrl}" method="post" onsubmit=""> 
260 
261                    <select name="groupFilter" id="groupFilter" class="jsFormSelect " data-placeholder="${langFilter}"> 
262                        <option value=""></option> 
263                        <option value="all"  <#if groupFilter == 'all'> selected='selected' </#if>>${langAll}</option> 
264                        <#list groupsListFilter as g> 
265                            <#assign grupa = groupService.getGroup(getterUtil.getLong(g))/> 
266                            <option value="${g}" <#if g?string == groupFilter> selected='selected' </#if>> 
267                                <#--special case on english site--> 
268                                <#if longGroupId == 16167284> 
269                                    <#if g == 757404>Archive new 
270                                    <#elseif g == 16167284>Current news 
271                                    <#else>${grupa.getDescriptiveName()} 
272                                    </#if> 
273                                <#else> 
274                                    ${grupa.getDescriptiveName()} 
275                                </#if> 
276                            </option> 
277                        </#list> 
278                    </select> 
279                    <input type="hidden" name="tagId" value="${addTagId}"/> 
280                </form> 
281            </#if><#--end of form--> 
282        </#if><#--end of checking hiding--> 
283 
284        <script type="text/javascript"> 
285            jQuery('select').change(function() { 
286                jQuery(this).parent('form').submit(); 
287            }); 
288        </script> 
289 
290        <#-----------End of select articles by groupId-----------> 
291        <div class="_cf"> 
292            <#if assets?size == 0> 
293                ${noResultData} 
294            <#else> 
295            <#-- starts omit articles from configuration field--> 
296                <#assign omitArticleIds = getterUtil.getLongValues(omitArticleIdsData?split(","))/> 
297                <#assign omitArticleIdsList = []/> 
298                <#if omitArticleIds?size gt 0> 
299                    <#list omitArticleIds as oArticleId> 
300                        <#assign omitArticleIdsList = omitArticleIdsList + [oArticleId?string]/> 
301                    </#list> 
302                </#if> 
303 
304                <#list assets as asset> 
305                    <#assign 
306                    articleId = "" 
307                    articleTitle = "" 
308                    articleDescription = "" 
309                    artImgJson = "" 
310                    imgDescription = "" 
311                    articleGroupId = "" 
312 
313                    articleResource = journalArticleResourceService.getArticleResource(asset.getClassPK()) 
314                    article = journalArticleService.getArticle(articleResource.getGroupId(), articleResource.getArticleId()) 
315                    articleGroupId = article.getGroupId() 
316                    articleId = article.getArticleId() 
317                    /> 
318 
319                    <#assign artStructureValues = ujJournalArticleHelper.getFormValues(article, portletRequest)/> 
320 
321                    <#if !omitArticleIdsList?seq_contains(articleId)> 
322                    <#-- Artykul z rozwijana trescia --> 
323                        <#if article.getDDMTemplateKey() == 'SKORKA2015-ARTYKUL-Z-ROZWIJANA-TRESCIA'> 
324                            <#assign 
325                            articleTitle = artStructureValues["title"] 
326                            articleDescription = artStructureValues["streszczenie"] 
327                            artImgJson = artStructureValues["imgSrc"] 
328                            /> 
329                        <#-- Szablon WCAG - Deklaracja Zgodności (prod) || Szablon WCAG Global - Deklaracja Zgodności (prod)) --> 
330                        <#elseif article.getDDMTemplateKey() == 'WCAG-GLOBAL-DEKLARACJA-ZGODNOSCI' || article.getDDMTemplateKey() = 'SZABLON-WCAG-DEKLARACJA-ZGODNOSCI'> 
331                            <#assign 
332                            articleTitle = artStructureValues["title"] 
333                            articleDescription = artStructureValues["description"] 
334                            artImgJson = artStructureValues["imgSrc"] 
335                            /> 
336                        <#-- if tytul w strutkuturze (powinien być tylko szablon Artykułu uniwersalnego ddmTemplateKey== 'SKORKA2015-ARTYKUL' --> 
337                        <#else> 
338                            <#assign 
339                            articleTitle = artStructureValues["tytul"] 
340                            articleTitle = articleTitle?replace('\"', '&quot;', 'r') 
341                            /> 
342                            <#if artStructureValues["streszczenie"]??> 
343                                <#assign 
344                                    articleDescription = artStructureValues["streszczenie"] 
345                                    articleDescription = articleDescription?replace('\"', '&quot;', 'r') 
346                                /> 
347                            </#if> 
348 
349                            <#if artStructureValues["grafikaLista"]??> 
350                                <#assign artImgJson = artStructureValues["grafikaLista"]/> 
351                            </#if> 
352                        </#if> 
353 
354                        <#if !articleTitle?has_content> 
355                            <#assign articleTitle = article.getUrlTitle()/> 
356                        </#if> 
357                        <#if !articleDescription?has_content> 
358                            <#assign articleDescription = article.getDescription()/> 
359                        </#if> 
360                    <#-----------Tags from the current journalArticle-----------> 
361                        <#assign model = 'com.liferay.journal.model.JournalArticle'/> 
362                        <#assign tags = assetTagService.getTags(model, getterUtil.getLong(asset.getClassPK()))/> 
363 
364                        <#assign articleUrl = htmlUtil.escape("${adresStrony}/-/journal_content/${portletId}/${articleGroupId}/${articleId}")/> 
365 
366                        <div class="post-excerpt"> 
367                            <#if !hideData?contains('abstractImg')> 
368                                <#if artImgJson??> 
369                                    <#if artImgJson?has_content && artImgJson?length gt 2> 
370                                        <#assign artImgUrl = ujDocumentLibraryHelper.getFileEntryDownloadURL(artImgJson)/> 
371 
372                                        <#if ujDocumentLibraryHelper.getFileEntry(artImgJson)??> 
373                                            <#assign fileEntry = ujDocumentLibraryHelper.getFileEntry(artImgJson) /> 
374 
375                                            <#if fileEntry.getDescription()??> 
376                                                <#assign imgDescription = fileEntry.getDescription()/> 
377                                            <#else> 
378                                                <#assign imgDescription = articleTitle/> 
379                                            </#if> 
380                                        </#if> 
381                                    <#--                                        <#attempt>--> 
382                                    <#--                                            <#assign imgDescription = ujDocumentLibraryHelper.getFileEntry(artImgJson).getDescription()/>--> 
383                                    <#--                                            <#recover>--> 
384                                    <#--                                                <#assign imgDescription = articleTitle/>--> 
385                                    <#--                                        </#attempt>--> 
386                                        <div class="post-excerpt__image"> 
387                                            <a href="${articleUrl}" title="${articleTitle}"> 
388                                                <img src="${artImgUrl}" class="thumb" alt="${imgDescription}"> 
389                                            </a> 
390                                        </div> 
391                                    </#if> <#-- End of checking thumb --> 
392                                </#if> <#-- End of checking given structure contains 'grafikaList' --> 
393                            </#if> <#-- End of checking hiding --> 
394 
395                            <div <#if artImgJson?has_content && artImgJson != '{}' && !hideData?contains('abstractImg')> class="post-excerpt__text-container" <#else> class="post-excerpt post-excerpt--condensed" </#if>> 
396                                <#-----------Show organizational source of articles-----------> 
397                                <#if groupIds?size gt 0 && asset.getGroupId() != longGroupId> 
398                                    <div class="post-excerpt__category"> 
399                                        <#assign grupa = groupService.getGroup(asset.getGroupId())/> 
400                                        ${grupa.getDescriptiveName()} 
401                                    </div> 
402                                </#if> 
403 
404                                <#if !hideData?contains('abstractTag')> 
405                                    <#if tags?size gt 0> 
406                                        <div class="post-excerpt__category"> 
407                                            <#list tags as tag> 
408                                                <#if tag.getName() != 'polska' && tag.getName() != 'mobilna'>${tag.getName()}</#if> 
409                                            </#list> 
410                                        </div> 
411                                    </#if> 
412                                </#if> <#-- End of checking hiding --> 
413 
414                                <h3 class="post-excerpt__title"> 
415                                    <a href="${articleUrl}">${articleTitle}</a> 
416                                </h3> 
417 
418                                <#if !hideData?contains('abstractDate')> 
419                                    <div class="post-excerpt__sub-title"> 
420                                        <#if sortByData == 'createDate'>${dateUtil.getDate(article.getCreateDate(), "dd.MM.yyyy", locale, timeZoneUtil.getDefault())} 
421                                        <#elseif sortByData == 'publishDate'>${dateUtil.getDate(article.getDisplayDate(), "dd.MM.yyyy", locale, timeZoneUtil.getDefault())} 
422                                        <#elseif sortByData == 'modifiedDate'>${dateUtil.getDate(article.getModifiedDate(), "dd.MM.yyyy", locale, timeZoneUtil.getDefault())} 
423                                        </#if> 
424                                    </div> 
425                                </#if> <#-- End of checking hiding --> 
426 
427                                <#if !hideData?contains('abstractText')> 
428                                    <#if articleDescription?has_content> 
429                                        <div class="post-excerpt__text"> 
430                                            ${articleDescription} 
431                                        </div> 
432                                    </#if> 
433                                </#if><#-- End of checking hiding --> 
434 
435                                <#if !hideData?contains('abstractLinkMore')> 
436                                    <a href="${articleUrl}" class="post-excerpt__link"> 
437                                        ${langReadMore} <span class="invisible-element">o ${articleTitle}</span> 
438                                    </a> 
439                                </#if><#-- End of checking hiding --> 
440                            </div> 
441                        </div> 
442                    </#if><#-- End of omitting artiles Id  --> 
443                </#list><#-- End of list assets  --> 
444 
445            <#--------- PAGINATION ----------> 
446                <#if hidePaginationData == "true"> 
447                    <div class="post-excerpt__show_all_articles"> 
448                        <a href="${adresStrony}" class="post-excerpt__show_all"> 
449                            ${langViewAll} 
450                        </a> 
451                    </div> 
452                <#else> 
453                    <#if iloscStron gt 1> 
454                        <#assign url = ''/> 
455                        <#if request?? && request?has_content> 
456                            <#assign url = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()/> 
457                        </#if> 
458                        <#if addTagId?has_content && addTagId?length gt 0> 
459                            <#assign url = httpComponentsUtil.addParameter(url, "tagId", addTagId)/> 
460                        </#if> 
461                        <#if groupFilter?has_content && groupFilter?length gt 0> 
462                            <#assign url = httpComponentsUtil.addParameter(url, "groupFilter", groupFilter)/> 
463                        </#if> 
464 
465                        <#macro displayPage url s strona hide1 hide2> 
466                            <#if s == strona> 
467                                <li class="active"> 
468                                    <span class="invisible-element">Aktualna strona</span> ${s} 
469                                </li> 
470                            <#else> 
471                                <li <#if hide1?has_content && hide1 gt 0 && s == hide1 || hide2?has_content && hide2 gt 0 && s == hide2> class="hide-view-lt480"</#if>> 
472                                    <a href="${httpComponentsUtil.setParameter(url, "strona", s)}"> 
473                                        <span class="invisible-element">Strona</span> ${s} 
474                                    </a> 
475                                </li> 
476                            </#if> 
477                        </#macro> 
478 
479                        <#if iloscStron gt 1> 
480                            <nav role="navigation" class="pagination" aria-label="Paginacja"> 
481                                <ul class="pagination__list"> 
482                                    <#if iloscStron lt 8> 
483                                        <#list 1..iloscStron as s> 
484                                            <@displayPage url=currentRenderUrl s=s strona=strona hide1=-1 hide2=-1/> 
485                                        </#list> 
486                                    <#elseif strona lt 5> 
487                                        <#list 1..6 as s> 
488                                            <@displayPage url=currentRenderUrl s=s strona=strona hide1=6 hide2=-1/> 
489                                        </#list> 
490                                        <li> 
491                                            <span aria-hidden="true">...</span> 
492                                        </li> 
493 
494                                        <li> 
495                                            <a href="${httpComponentsUtil.setParameter(currentRenderUrl, 'strona', iloscStron)}"> 
496                                                <span class="invisible-element">Strona</span> 
497                                                ${iloscStron} 
498                                            </a> 
499                                        </li> 
500                                    <#elseif strona + 4 gt iloscStron> 
501                                        <li> 
502                                            <a href="${httpComponentsUtil.setParameter(currentRenderUrl, 'strona', 1)}"> 
503                                                <span class="invisible-element">Strona</span> 
504
505                                            </a> 
506                                        </li> 
507                                        <li> 
508                                            <span aria-hidden="true">...</span> 
509                                        </li> 
510                                        <#assign x = iloscStron - 5/> 
511                                        <#list x..iloscStron as s> 
512                                            <@displayPage url=currentRenderUrl s=s strona=strona hide1=x hide2=-1/> 
513                                        </#list> 
514                                    <#else> 
515                                        <li> 
516                                            <a href="${httpComponentsUtil.setParameter(currentRenderUrl, 'strona', 1)}"> 
517                                                <span class="invisible-element">Strona</span> 
518
519                                            </a> 
520                                        </li> 
521                                        <li> 
522                                            <span aria-hidden="true">...</span> 
523                                        </li> 
524                                        <#assign x = strona - 2/> 
525                                        <#assign y = strona + 2/> 
526                                        <#list x..y as s> 
527                                            <@displayPage url=url s=s strona=strona hide1=x hide2=y/> 
528                                        </#list> 
529                                        <li> 
530                                            <span aria-hidden="true">...</span> 
531                                        </li> 
532                                        <li><a href="${httpComponentsUtil.setParameter(currentRenderUrl,'strona',iloscStron)}">${iloscStron}</a> 
533                                        </li> 
534                                    </#if> 
535                                </ul> 
536                                <div class="pagination__arrows"> 
537                                    <#if strona gt 1> 
538                                        <#assign poprzednia = strona - 1/> 
539                                        <a class="pagination__prev" href="${httpComponentsUtil.setParameter(currentRenderUrl, 'strona', poprzednia)}"> 
540                                            <i aria-hidden="true" class="icon icon-angle-left"></i> 
541                                            <span class="invisible-element">${languageUtil.get(locale, "previous")}</span> 
542                                        </a> 
543                                    </#if> 
544                                    <#if strona lt iloscStron> 
545                                        <#assign nastepna = strona + 1/> 
546                                        <a class="pagination__next" href="${httpComponentsUtil.setParameter(currentRenderUrl, 'strona', nastepna)}"> 
547                                            <i aria-hidden="true" class="icon icon-angle-right"></i> 
548                                            <span class="invisible-element">${languageUtil.get(locale, "next")}</span> 
549                                        </a> 
550                                    </#if> 
551                                </div> 
552                            </nav> 
553                        </#if> <#-- End of pagination--> 
554                    </#if> <#-- End of checking if hidePagination is true  --> 
555                </#if> <#-- End of checking whether assets exists--> 
556            </#if> 
557        </div> <#-- End of _cf--> 
558    </section> <#-- End of main_content--> 
559<#else> 
560    <#if permissionChecker.getUserId() gt 100000> 
561        <p>Ten szablon przeznaczony jest tylko dla dedykowanej skórki UJ</p> 
562    </#if> 
563</#if>