گزارش تصویری مانور ارتقاء آمادگی کارکنان مدیریت بحران استان یزد / بیاد شهید آخوندزاده - مدیریت بحران
حصل خطأ عند معالجة القالب.
The following has evaluated to null or missing: ==> cur_inner_video.inner_content [in template "20097#20123#38557" at line 82, column 19] ---- Tip: It's the step after the last dot 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: ${cur_inner_video.inner_content.getDa... [in template "20097#20123#38557" at line 82, column 17] ----
1<#-- Retrieve the published date meta data field of the web content -->
2<#assign displaydate = .vars['reserved-article-display-date'].data>
3<#-- Save the original page locale for later -->
4<#assign originalLocale = .locale>
5
6<#-- Set the page locale to the portals default locale -->
7<#setting locale = localeUtil.getDefault()>
8
9<#-- Parse the date to a date object -->
10<#assign displaydate = displaydate?datetime("EEE, d MMM yyyy HH:mm:ss Z")>
11
12<#-- Set the page locale back to the original page locale -->
13<#--#assign locale = ''-->
14<#assign dateFormat = "dd MM yyyy" />
15<#assign publishDate=dateUtil.getDate(displaydate,dateFormat,locale)/>
16
17<div class="sub-title">
18 <#if lead??>
19 ${lead.getData()}
20 </#if>
21</div>
22<h2 class="mb-1 mt-2 title">
23 ${.vars['reserved-article-title'].data}
24</h2>
25<div class="mt-3">
26${.vars['reserved-article-description'].data}
27</div>
28
29<div class="date">
30 <span class="oy-icon-date"><span class="path1"></span><span class="path2"></span></span>
31 <span class="main-c" id="ddd123"></span>
32</div>
33
34<style>
35.date {
36 font-size: 0.75em;
37 color: #7c7c7c;
38 margin: 1.2em 0;
39}
40.date .oy-icon-date .path2:before {
41 color: #7c7c7c;
42}
43</style>
44
45<script>
46 var lang = "${themeDisplay.getLocale()}";
47 var date_element = document.getElementById("ddd123");
48 date_element.innerHTML =
49 moment(`${publishDate}`,'DD MM YYYY')
50 .locale(lang == "fa_IR" ? "fa" : "en")
51 .format('dddd DD MMMM YYYY');
52 date_element.setAttribute("id", "");
53</script>
54
55
56<#if author??>
57${author.getData()}
58</#if>
59<img src="${.vars['reserved-article-small-image-url'].getData()}" class="rounded ml-4 mb-5 img-main float-right img-responsive" style="max-width:500px;"/>
60<#if content??>
61<div class="p-2">
62${content.getData()}
63<style>
64.sub-title {
65 text-align:center;
66 font-size:1em;
67}
68.title {
69 text-align:center;
70}
71</style>
72</div>
73</#if>
74<#if inner_video?? >
75<#if inner_video.getSiblings()?has_content>
76 <#list inner_video.getSiblings() as cur_inner_video>
77 <#if cur_inner_video.getData() != "" >
78 <a href="${cur_inner_video.getData()}">
79 ${languageUtil.format(locale, "download-x", "فیلم", false)}
80 </a>
81 <br/>
82 ${cur_inner_video.inner_content.getData()}
83 <video controls>
84 <source src="${cur_inner_video.getData()}" type="video/mp4">
85 <source src="${cur_inner_video.getData()}" type="video/ogg">
86 Your browser does not support the video tag.
87 </video>
88 </#if>
89 </#list>
90</#if>
91
92
93</#if>
94<#if simple_images?? && simple_images.getSiblings()?has_content>
95 <#list simple_images.getSiblings() as cur_simple_images>
96 <#if (cur_simple_images.getData())?? && cur_simple_images.getData() != "">
97 <img alt="${cur_simple_images.getAttribute("alt")}" data-fileentryid="${cur_simple_images.getAttribute("fileEntryId")}" src="${cur_simple_images.getData()}" />
98 </#if>
99 </#list>
100</#if>
101
102<#if images?? && images.getSiblings()?has_content>
103 <style>
104 .slide-show {
105 max-width:800px;
106 margin: 1em auto;
107 clear: both;
108 }
109 .slide-show .secondary-slider {
110 margin-top: 0.7em;
111 }
112 .slide-show .secondary-slider .splide__slide {
113 border-radius: 0.5em;
114 border: 2px solid #FFF;
115 }
116 .slide-show .secondary-slider .splide__slide.is-active {
117 border-color: #b18f14 !important;
118 }
119 .slide-show .secondary-slider .splide__slide img {
120 width:100%;
121 height:3.75em;
122 object-fit: cover;
123 }
124 .slide-show .primary-slider .splide__track {
125 padding: 2px 0;
126 }
127 .slide-show .primary-slider .splide__track .splide__slide {
128 border-radius: 0.5em;
129 border: 2px solid #1b51b0;
130 }
131 .slide-show .secondary-slider .splide__arrow {
132 background: #b3931d;
133 opacity: 1;
134 box-shadow: 0 0 5px;
135 }
136 .slide-show .secondary-slider .splide__arrow > span {
137 font-family: "ostandari-yazd-icoon" !important;
138 }
139 .slide-show .secondary-slider .splide__arrow > span * {
140 font-family: "ostandari-yazd-icoon" !important;
141 }
142 .slide-show .secondary-slider .splide__arrow > span:before {
143 color:#ffffff;
144 }
145 </style>
146
147 <#if images?? >
148 <#if images.getSiblings()?has_content>
149 <#if images.getSiblings()[0].getData() != "" >
150
151 <div class="slide-show">
152 <div class="container">
153
154 <div class="splide primary-slider">
155 <div class="splide__track">
156 <ul class="splide__list">
157 <#list images.getSiblings() as cur_other_images>
158 <li class="splide__slide">
159 <img src="${cur_other_images.getData()}">
160 </li>
161 </#list>
162 </ul>
163 </div>
164 </div>
165
166 <div class="splide secondary-slider">
167 <div class="splide__arrows">
168 <button class="splide__arrow splide__arrow--next">
169 <span class="oy-icon-next"></span>
170 </button>
171 <button class="splide__arrow splide__arrow--prev">
172 <span class="oy-icon-prev"></span>
173 </button>
174 </div>
175 <div class="splide__track">
176 <ul class="splide__list">
177
178 <#list images.getSiblings() as cur_other_images>
179 <li class="splide__slide">
180 <img src="${cur_other_images.getData()}">
181 </li>
182 </#list>
183
184 </ul>
185 </div>
186 </div>
187 </div>
188 </div>
189 <script>
190 var secondarySlider = new Splide( '.secondary-slider', {
191 direction: document.getElementsByTagName("html")[0].getAttribute("dir"),
192 fixedWidth : 100,
193 pagination : false,
194 height : 60,
195 gap : 10,
196 cover : true,
197 isNavigation: true,
198 focus : 'center',
199 breakpoints : {
200 '600': {
201 fixedWidth: 66,
202 height : 40,
203 }
204 },
205 } ).mount();
206 var primarySlider = new Splide( '.primary-slider', {
207 direction: document.getElementsByTagName("html")[0].getAttribute("dir"),
208 type : 'fade',
209 heightRatio: 0.5,
210 pagination : false,
211 arrows : false,
212 cover : true,
213 } );
214 primarySlider.sync( secondarySlider ).mount();
215 </script>
216
217 </#if>
218 </#if>
219 </#if>
220</#if>