Nemzetiségi rajzverseny 2018 - NJBH
null Nemzetiségi rajzverseny 2018
Benedek György
módosítva ennyi ideje: 6 év
Hiba jelentkezett a sablon feldolgozása során.
The following has evaluated to null or missing: ==> title [in template "10154#10192#2657665" at line 1, column 18] ---- 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: #assign count = title.getSiblings()?size [in template "10154#10192#2657665" at line 1, column 1] ----
1<#assign count = title.getSiblings()?size />
2<div id="${randomNamespace}ajbh-slider" class="ajbh-slider rounded-top-0 rounded">
3 <#if (count > 1)>
4 <button type="button" aria-pressed="true" tabindex="0" class="prev ${randomNamespace}prev-icon"><i aria-hidden="true" class="icon-chevron-left"></i><span class="sr-only">${prev.getData()}</span></button>
5 <button type="button" aria-pressed="true" tabindex="0" class="next ${randomNamespace}next-icon"><i aria-hidden="true" class="icon-chevron-right"></i><span class="sr-only">${next.getData()}</span></button>
6 </#if>
7 <ul class="ajbh-slider-items list-unstyled">
8
9
10 <#if title.getSiblings()?has_content>
11 <#assign length = title.getSiblings()?size>
12
13 <#list length-1 .. 0 as i>
14
15 <#assign element = title.getSiblings()[i]>
16
17
18 <li aria-hidden="${(i?index = 0)?then('false', 'true')}" class="ajbh-slider-item ${(i?index = 0)?then('current', '')}" data-id="${i?index}">
19 <div class="ajbh-slider-container">
20 <a href="${element.linkToPage.getData()}" tabindex="${(i?index = 0)?then('0', '-1')}">
21 <div class="ajbh-slider-image">
22 <img src="${element.image.getData()}" alt="${element.image.alt.getData()}">
23 </div>
24 <div class="ajbh-slider-details">
25 <#if (count > 1)>
26 <div class="ajbh-slider-controller-media d-flex align-items-center px-1">
27 <button type="button" data-pause="${pause.getData()}" data-play="${play.getData()}" class="f-white ${randomNamespace}media play-or-pause" tabindex="${(i?index = 0)?then('0', '-1')}">
28 ${getterUtil.getBoolean(autoplay.getData())?then('<i aria-hidden="true" class="px-2 py-1 icon-pause"></i>', '<i aria-hidden="true" class="px-2 py-1 icon-play"></i>')}
29 <span class="sr-only">${getterUtil.getBoolean(autoplay.getData())?then(play.getData(), pause.getData())}</span>
30 </button>
31 <div class="ajbh-slider-controller-count pr-2 py-1 f-white">
32 <span>1</span>/${count}
33 </div>
34 </div>
35 </#if>
36
37 <div class="position-relative overflow-hidden">
38 <#if validator.isNotNull(element.getData())>
39 <h2 class="f-size-24 f-white">${element.getData()}</h2>
40 </#if>
41 </div>
42 </div>
43 </a>
44 </div>
45 </li>
46 </#list>
47 </#if>
48 </ul>
49</div>
50
51<script>
52 ajbhSlider.app(
53 (config = {
54 namespace: "${randomNamespace}",
55 interval: ${interval.getData()},
56 duration: ${duration.getData()},
57 autoplay: ${getterUtil.getBoolean(autoplay.getData())?c}
58 })
59 );
60</script>