مستند درختکاری کارکنان مدیریت بحران استان یزد - مدیریت بحران
An error occurred while processing the template.
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 </#if>
84 </#list>
85</#if>
86
87
88</#if>
89<#if simple_images?? && simple_images.getSiblings()?has_content>
90 <#list simple_images.getSiblings() as cur_simple_images>
91 <#if (cur_simple_images.getData())?? && cur_simple_images.getData() != "">
92 <img alt="${cur_simple_images.getAttribute("alt")}" data-fileentryid="${cur_simple_images.getAttribute("fileEntryId")}" src="${cur_simple_images.getData()}" />
93 </#if>
94 </#list>
95</#if>
96
97<#if images?? && images.getSiblings()?has_content>
98 <style>
99 .slide-show {
100 max-width:800px;
101 margin: 1em auto;
102 }
103 .slide-show .secondary-slider {
104 margin-top: 0.7em;
105 }
106 .slide-show .secondary-slider .splide__slide {
107 border-radius: 0.5em;
108 border: 2px solid #FFF;
109 }
110 .slide-show .secondary-slider .splide__slide.is-active {
111 border-color: #b18f14 !important;
112 }
113 .slide-show .secondary-slider .splide__slide img {
114 width:100%;
115 height:3.75em;
116 object-fit: cover;
117 }
118 .slide-show .primary-slider .splide__track {
119 padding: 2px 0;
120 }
121 .slide-show .primary-slider .splide__track .splide__slide {
122 border-radius: 0.5em;
123 border: 2px solid #1b51b0;
124 }
125 .slide-show .secondary-slider .splide__arrow {
126 background: #b3931d;
127 opacity: 1;
128 box-shadow: 0 0 5px;
129 }
130 .slide-show .secondary-slider .splide__arrow > span {
131 font-family: "ostandari-yazd-icoon" !important;
132 }
133 .slide-show .secondary-slider .splide__arrow > span * {
134 font-family: "ostandari-yazd-icoon" !important;
135 }
136 .slide-show .secondary-slider .splide__arrow > span:before {
137 color:#ffffff;
138 }
139 </style>
140
141 <#if images?? >
142 <#if images.getSiblings()?has_content>
143 <#if images.getSiblings()[0].getData() != "" >
144
145 <div class="slide-show">
146 <div class="container">
147
148 <div class="splide primary-slider">
149 <div class="splide__track">
150 <ul class="splide__list">
151 <#list images.getSiblings() as cur_other_images>
152 <li class="splide__slide">
153 <img src="${cur_other_images.getData()}">
154 </li>
155 </#list>
156 </ul>
157 </div>
158 </div>
159
160 <div class="splide secondary-slider">
161 <div class="splide__arrows">
162 <button class="splide__arrow splide__arrow--next">
163 <span class="oy-icon-next"></span>
164 </button>
165 <button class="splide__arrow splide__arrow--prev">
166 <span class="oy-icon-prev"></span>
167 </button>
168 </div>
169 <div class="splide__track">
170 <ul class="splide__list">
171
172 <#list images.getSiblings() as cur_other_images>
173 <li class="splide__slide">
174 <img src="${cur_other_images.getData()}">
175 </li>
176 </#list>
177
178 </ul>
179 </div>
180 </div>
181 </div>
182 </div>
183 <script>
184 var secondarySlider = new Splide( '.secondary-slider', {
185 direction: document.getElementsByTagName("html")[0].getAttribute("dir"),
186 fixedWidth : 100,
187 pagination : false,
188 height : 60,
189 gap : 10,
190 cover : true,
191 isNavigation: true,
192 focus : 'center',
193 breakpoints : {
194 '600': {
195 fixedWidth: 66,
196 height : 40,
197 }
198 },
199 } ).mount();
200 var primarySlider = new Splide( '.primary-slider', {
201 direction: document.getElementsByTagName("html")[0].getAttribute("dir"),
202 type : 'fade',
203 heightRatio: 0.5,
204 pagination : false,
205 arrows : false,
206 cover : true,
207 } );
208 primarySlider.sync( secondarySlider ).mount();
209 </script>
210
211 </#if>
212 </#if>
213 </#if>
214</#if>