Web Content Display Web Content Display

An error occurred while processing the template.
Expression cur_Attachment.Filename is undefined on line 81, column 70 in 20154#20194#CONTENUTO_GENERICO_FULL.
1<#if (Immagine.getData()?has_content)> 
2	<div class="breadcrump-overlay visible-lg" style="background-image:url('${Immagine.getData()}');"> 
3		 
4		<div class="title-box"> 
5			<h1 class="h1">${Titolo.getData()}</h1> 
6			<#if (Abstract?has_content)> 
7			<p>${Abstract.getData()}</p> 
8			</#if> 
9		</div> 
10	</div> 
11	<div class="breadcrump-breaker visible-lg"></div> 
12</#if> 
13 
14<div class="asset-full-content-80"> 
15 
16	<div class="container-fluid visible-sm visible-xs"> 
17		<#if (Abstract?has_content)> 
18			<p><strong>${Abstract.getData()}</strong></p> 
19		</#if> 
20	</div> 
21 
22   <div class="container-fluid"> 
23	 
24	<#if (Descrizione?has_content)> 
25      <p class="grey1">${Descrizione.getData()}</p> 
26     </#if> 
27       
28      <#if (Video.getData()?has_content)> 
29      <iframe width="100%" height="620" src="${Video.getData()}" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen style="margin:50px 0;"></iframe> 
30      </#if> 
31      <#if Image_gallery.getSiblings()?has_content> 
32	      <#if Image_gallery.getData()?has_content> 
33 
34			<!-- Root element of PhotoSwipe. --> 
35				<div class="my-gallery" itemscope itemtype="http://schema.org/ImageGallery"> 
36					<#list Image_gallery.getSiblings() as cur_Image_gallery> 
37					<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> 
38				        <a href="${cur_Image_gallery.getData()}" itemprop="contentUrl" data-size="1024x1024"> 
39				            <img src="${cur_Image_gallery.getData()}" itemprop="thumbnail" alt="Image description" /> 
40				        </a> 
41				        <!-- 
42				        <figcaption itemprop="caption description">Image caption 1</figcaption> 
43						--> 
44				    </figure> 
45					</#list> 
46				</div> 
47				<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true"><!-- Background of PhotoSwipe. It's a separate element, as animating opacity is faster than rgba(). --> <div class="pswp__bg"></div><div class="pswp__scroll-wrap"> <div class="pswp__container"> <div class="pswp__item"></div><div class="pswp__item"></div><div class="pswp__item"></div></div><div class="pswp__ui pswp__ui--hidden"> <div class="pswp__top-bar "> <div class="pswp__counter"></div><button class="pswp__button pswp__button--close" title="Close (Esc)"></button> <button class="pswp__button pswp__button--share" title="Share"></button> <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button> <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button> <div class="pswp__preloader"> <div class="pswp__preloader__icn"> <div class="pswp__preloader__cut"> <div class="pswp__preloader__donut"></div></div></div></div></div><div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap"> <div class="pswp__share-tooltip"></div></div><button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"> </button> <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"> </button> <div class="pswp__caption"> <div class="pswp__caption__center"></div></div></div></div> 
48			<!-- END Root element of PhotoSwipe. --> 
49	     	  
50		   </#if> 
51   		</#if> 
52    
53   <#if Titolo_Tab.getSiblings()?has_content> 
54   <#if Titolo_Tab.getData()?has_content> 
55   <div class="row-fluid"> 
56      <ul class="nav nav-tabs responsive"> 
57         <#assign actClass="active"> 
58         <#list Titolo_Tab.getSiblings() as cur_Titolo_Tab> 
59         <#assign tabTitle = cur_Titolo_Tab.getData()?replace(" ","_")?replace("#","")?replace("+","")> 
60         <li class="${actClass}"><a data-toggle="tab" href='#${tabTitle}'>${cur_Titolo_Tab.getData()}</a></li> 
61         <#assign actClass=""> 
62         </#list> 
63      </ul> 
64      <div class="tab-content responsive"> 
65         <#assign actClass="active"> 
66         <#list Titolo_Tab.getSiblings() as cur_Titolo_Tab> 
67         <#assign tabTitle = cur_Titolo_Tab.getData()?replace(" ","_")?replace("#","")?replace("+","")> 
68         <div id='${tabTitle}' class="tab-pane fade in ${actClass}"> 
69            ${cur_Titolo_Tab.Testo_Tab.getData()} 
70         </div> 
71         <#assign actClass=""> 
72         </#list> 
73      </div> 
74   </div> 
75   </#if> 
76   </#if> 
77 
78	 <#if Attachment.getSiblings()?has_content && Attachment.getData()?has_content > 
79	<div class="row-fluid"> 
80		<#list Attachment.getSiblings() as cur_Attachment> 
81			<#if cur_Attachment.getData()?has_content && cur_Attachment.Filename.getData()? has_content> 
82				<a href="${cur_Attachment.getData()}" download> 
83						${cur_Attachment.Filename.getData()} 
84				</a> 
85			</#if> 
86			<#if cur_Attachment.Filename.getData()?has_content && !cur_Attachment.getData()?has_content > 
87				<div>${cur_Attachment.Filename.getData()}</div> 
88			</#if> 
89		<br/> 
90		</#list> 
91	</div> 
92	</#if> 
93 
94 
95</div> 
96</div> 
97<script> 
98	<#if Image_gallery.getSiblings()?has_content> 
99      <#if Image_gallery.getData()?has_content> 
100    
101    
102 
103var initPhotoSwipeFromDOM = function(gallerySelector) { 
104 
105    // parse slide data (url, title, size ...) from DOM elements  
106    // (children of gallerySelector) 
107    var parseThumbnailElements = function(el) { 
108        var thumbElements = el.childNodes, 
109            numNodes = thumbElements.length, 
110            items = [], 
111            figureEl, 
112            linkEl, 
113            size, 
114            item; 
115 
116        for(var i = 0; i < numNodes; i++) { 
117 
118            figureEl = thumbElements[i]; // <figure> element 
119 
120            // include only element nodes  
121            if(figureEl.nodeType !== 1) { 
122                continue; 
123
124 
125            linkEl = figureEl.children[0]; // <a> element 
126 
127            size = linkEl.getAttribute('data-size').split('x'); 
128 
129            // create slide object 
130            item = { 
131                src: linkEl.getAttribute('href'), 
132                w: parseInt(size[0], 10), 
133                h: parseInt(size[1], 10) 
134            }; 
135 
136 
137 
138            if(figureEl.children.length > 1) { 
139                // <figcaption> content 
140                item.title = figureEl.children[1].innerHTML;  
141
142 
143            if(linkEl.children.length > 0) { 
144                // <img> thumbnail element, retrieving thumbnail url 
145                item.msrc = linkEl.children[0].getAttribute('src'); 
146            }  
147 
148            item.el = figureEl; // save link to element for getThumbBoundsFn 
149            items.push(item); 
150
151 
152        return items; 
153    }; 
154 
155    // find nearest parent element 
156    var closest = function closest(el, fn) { 
157        return el && ( fn(el) ? el : closest(el.parentNode, fn) ); 
158    }; 
159 
160    // triggers when user clicks on thumbnail 
161    var onThumbnailsClick = function(e) { 
162        e = e || window.event; 
163        e.preventDefault ? e.preventDefault() : e.returnValue = false; 
164 
165        var eTarget = e.target || e.srcElement; 
166 
167        // find root element of slide 
168        var clickedListItem = closest(eTarget, function(el) { 
169            return (el.tagName && el.tagName.toUpperCase() === 'FIGURE'); 
170        }); 
171 
172        if(!clickedListItem) { 
173            return; 
174
175 
176        // find index of clicked item by looping through all child nodes 
177        // alternatively, you may define index via data- attribute 
178        var clickedGallery = clickedListItem.parentNode, 
179            childNodes = clickedListItem.parentNode.childNodes, 
180            numChildNodes = childNodes.length, 
181            nodeIndex = 0, 
182            index; 
183 
184        for (var i = 0; i < numChildNodes; i++) { 
185            if(childNodes[i].nodeType !== 1) {  
186                continue;  
187
188 
189            if(childNodes[i] === clickedListItem) { 
190                index = nodeIndex; 
191                break; 
192
193            nodeIndex++; 
194
195 
196 
197 
198        if(index >= 0) { 
199            // open PhotoSwipe if valid index found 
200            openPhotoSwipe( index, clickedGallery ); 
201
202        return false; 
203    }; 
204 
205    // parse picture index and gallery index from URL (#&pid=1&gid=2) 
206    var photoswipeParseHash = function() { 
207        var hash = window.location.hash.substring(1), 
208        params = {}; 
209 
210        if(hash.length < 5) { 
211            return params; 
212
213 
214        var vars = hash.split('&'); 
215        for (var i = 0; i < vars.length; i++) { 
216            if(!vars[i]) { 
217                continue; 
218
219            var pair = vars[i].split('=');   
220            if(pair.length < 2) { 
221                continue; 
222            }            
223            params[pair[0]] = pair[1]; 
224
225 
226        if(params.gid) { 
227            params.gid = parseInt(params.gid, 10); 
228
229 
230        return params; 
231    }; 
232 
233    var openPhotoSwipe = function(index, galleryElement, disableAnimation, fromURL) { 
234        var pswpElement = document.querySelectorAll('.pswp')[0], 
235            gallery, 
236            options, 
237            items; 
238 
239        items = parseThumbnailElements(galleryElement); 
240 
241        // define options (if needed) 
242        options = { 
243 
244            // define gallery index (for URL) 
245            galleryUID: galleryElement.getAttribute('data-pswp-uid'), 
246 
247            getThumbBoundsFn: function(index) { 
248                // See Options -> getThumbBoundsFn section of documentation for more info 
249                var thumbnail = items[index].el.getElementsByTagName('img')[0], // find thumbnail 
250                    pageYScroll = window.pageYOffset || document.documentElement.scrollTop, 
251                    rect = thumbnail.getBoundingClientRect();  
252 
253                return {x:rect.left, y:rect.top + pageYScroll, w:rect.width}; 
254            }, 
255			fullscreenEl: false, 
256			zoomEl: false, 
257			shareEl: false, 
258			counterEl: true 
259        }; 
260 
261        // PhotoSwipe opened from URL 
262        if(fromURL) { 
263            if(options.galleryPIDs) { 
264                // parse real index when custom PIDs are used  
265                // http://photoswipe.com/documentation/faq.html#custom-pid-in-url 
266                for(var j = 0; j < items.length; j++) { 
267                    if(items[j].pid == index) { 
268                        options.index = j; 
269                        break; 
270
271
272            } else { 
273                // in URL indexes start from 1 
274                options.index = parseInt(index, 10) - 1; 
275
276        } else { 
277            options.index = parseInt(index, 10); 
278
279 
280        // exit if index not found 
281        if( isNaN(options.index) ) { 
282            return; 
283
284 
285        if(disableAnimation) { 
286            options.showAnimationDuration = 0; 
287
288 
289        // Pass data to PhotoSwipe and initialize it 
290        gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, items, options); 
291        gallery.init(); 
292    }; 
293 
294    // loop through all gallery elements and bind events 
295    var galleryElements = document.querySelectorAll( gallerySelector ); 
296 
297    for(var i = 0, l = galleryElements.length; i < l; i++) { 
298        galleryElements[i].setAttribute('data-pswp-uid', i+1); 
299        galleryElements[i].onclick = onThumbnailsClick; 
300
301 
302    // Parse URL and open gallery if it contains #&pid=3&gid=1 
303    var hashData = photoswipeParseHash(); 
304    if(hashData.pid && hashData.gid) { 
305        openPhotoSwipe( hashData.pid ,  galleryElements[ hashData.gid - 1 ], true, true ); 
306
307}; 
308 
309// execute above function 
310try{ 
311	initPhotoSwipeFromDOM('.my-gallery'); 
312}catch(erro){} 
313 
314   </#if> 
315   </#if> 
316 
317  (function($) { 
318      fakewaffle.responsiveTabs(['xs', 'sm']); 
319  })(jQuery); 
320   
321</script>