Accessibilità - #Accoglienza Toscana
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing: ==> cur_Photogallery [in template "10155#10195#163559" at line 174, column 68] ---- 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_Photogallery.getData().replace(... [in template "10155#10195#163559" at line 174, column 66] ----
1<div id="pagina-argomento" class="assets-news-container container-fluid">
2
3 #set ($plid = $request.theme-display.get("plid"))
4 #set ($layoutLocalService = $serviceLocator.findService("com.liferay.portal.service.LayoutLocalService"))
5
6 #set ($listAncestors = $layoutLocalService.getLayout($mathTool.toNumber($plid)).getAncestors())
7 #set ($currLayout = $layoutLocalService.getLayout($mathTool.toNumber($plid)) )
8 #set ($currLayoutParent = $layoutLocalService.getLayout($mathTool.toNumber( $currLayout.getParentPlid() )) )
9
10 #if ( $currLayoutParent.isRootLayout() == true )
11 #set ( $iconArgoment = $currLayout.getExpandoBridge().getAttribute("icona") )
12 #set ( $colorArgoment = $currLayout.getExpandoBridge().getAttribute("colore-icona") )
13 #else
14 #set ( $num = $listAncestors.size() - 2 )
15 #set ( $iconArgoment = $listAncestors.get($num).getExpandoBridge().getAttribute("icona") )
16 #set ( $colorArgoment = $listAncestors.get($num).getExpandoBridge().getAttribute("colore-icona") )
17 #end
18
19 <script type="text/javascript">
20 $(document).ready(function() {
21 $( '<style type="text/css">.aui .portlet-navigation .nav-menu li a.selected{border-left: 5px solid $colorArgoment;background-color: white}</style>' ).appendTo( "head" );
22
23 var size = $(".titolo-argomento").height();
24 if (size > 100){
25 $(".titolo-argomento").css('line-height','1');
26 }
27
28 });
29 </script>
30
31
32 <div class="table">
33 <div class="row-table">
34 #if ( $iconArgoment )
35 <div class="cell-table min-width-table"><span class="icona-argomento circle-block rt-icon-$iconArgoment"></span></div>
36 #end
37 <div class="cell-table"><h1 class="title titolo-argomento">$reserved-article-title.data</h1> </div>
38 </div>
39 </div>
40
41 #if (! $Immagine.getData().isEmpty() )
42 #if ( $Immagine.getChild("MostraSoloElenco").getData() != "true")
43 <img class="img-top img-responsive" alt="$Immagine.getChild('TestoAlternativoImmagine').getData()" src="$Immagine.getData().replace("&","&")" />
44 #end
45 #end
46
47 #if (! $IdVideoYoutube.getData().isEmpty() )
48 <div class="video">
49 <iframe width="460" height="315" src="https://www.youtube-nocookie.com/embed/$IdVideoYoutube.getData()" allowfullscreen style="width: 100%; border:0">
50 $IdVideoYoutube.getChild("TestoAlternativoVideo").getData()
51 </iframe>
52 </div>
53 #end
54 #if (! $Sottotitolo.getData().isEmpty() )
55 <h4 style="padding: 15px 0 10px 0;font-weight: normal;font-style: italic;text-align: justify;">$Sottotitolo.getData()</h4>
56 #end
57
58 <div class="contenuto">$Contenuto.getData()</div>
59
60
61 <div class="pull-right" style="margin: 15px 0;">
62 <i>Ultimo aggiornamento: #set ($portalBeanLocator = $portal.getClass().forName('com.liferay.portal.kernel.bean.PortalBeanLocatorUtil'))
63#set ($dateFormatFactory = $portalBeanLocator.locate('com.liferay.portal.kernel.util.DateFormatFactoryUtil'))
64#set ($indexFormat = $dateFormatFactory.getSimpleDateFormat('EEE, dd MMM yyyy hh:mm:ss Z'))
65#set ($modified_date = $indexFormat.parse($reserved-article-modified-date.getData()))
66$dateTool.format("dd.MM.yyyy",$modified_date) </i>
67 </div>
68
69 <div class="clearfix"></div>
70
71 <div class="post-social pull-right">
72 <div class="condividi text-uppercase">Condividi</div>
73 <ul class="inline">
74 <li>
75 <a class="fb_share" href="" title="Condividi su Facebook">
76 <span class="hide">Condividi su Facebook</span>
77 <span class="icon-stack" >
78 <i class="icon-circle icon-stack-base"></i>
79 <i class="icon-facebook icon-light"></i>
80 </span>
81 </a>
82 </li>
83 <li>
84 <a class="gplus" href="" title="Condividi su google plus">
85 <span class="hide">Condividi su google plus</span>
86 <span class="icon-stack" >
87 <i class="icon-circle icon-stack-base"></i>
88 <i class="icon-google-plus icon-light"></i>
89 </span>
90 </a>
91 </li>
92 <li>
93 <a class="tweet" href="" title="Condividi su twitter">
94 <span class="hide">Condividi su twitter</span>
95 <span class="icon-stack" >
96 <i class="icon-circle icon-stack-base"></i>
97 <i class="icon-twitter icon-light"></i>
98 </span>
99 </a>
100 </li>
101 </ul>
102 </div>
103 <div class="clearfix"></div>
104
105 #if( $MostraPagineAllegate )
106 #if ($getterUtil.getBoolean($MostraPagineAllegate.getData()))
107 #set($layoutLocalService = $serviceLocator.findService("com.liferay.portal.service.LayoutLocalService"))
108
109 #if (!$PagineAllegate.getSiblings().get(0).data.isEmpty())
110 <h3 class="subtitle text-uppercase">Approfondimenti</h3>
111 <div class="table tabella-allegati">
112 #foreach ($cur_Pagina in $PagineAllegate.getSiblings())
113 #if($validator.isNotNull($cur_Pagina.getData()))
114 #set($currentLayout = $layoutLocalService.getLayout($getterUtil.getLong($groupId),false,$getterUtil.getLong($cur_Pagina.getData())))
115 <a href="$Enlace.getUrl()"></a>
116 <div class="row-table attachments">
117 <div class="cell-table min-width-table"><i class="icon-circle-arrow-right icon-2x"></i></div>
118 <div class="cell-table"><a href="$cur_Pagina.getFriendlyUrl()">$currentLayout.getName()</a></div>
119 </div>
120 #end
121 #end
122 </div>
123 #end
124 #end
125 #end
126
127 #if (!$Documenti.getSiblings().get(0).data.isEmpty() || $Documenti.getSiblings().size() > 1 )
128
129 <h3 class="subtitle text-uppercase">Documenti Allegati</h3>
130
131 #set ($fileEntryLocalService = $serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService"))
132 #set ($scopeGroupId = $getterUtil.getLong($request.theme-display.scope-group-id))
133 #set ($textFormatter = $portal.getClass().forName('com.liferay.portal.kernel.util.TextFormatter').newInstance())
134
135 <div class="table tabella-allegati">
136 #foreach ($cur_Documenti in $Documenti.getSiblings())
137
138 #if(!$cur_Documenti.data.isEmpty())
139
140 ## Get the group ID of the document library you are referring to
141 #set ($gid = $getterUtil.getLong($cur_Documenti.getData().split("/").get(2)))
142
143 ## Get the folder ID of the DL
144 #set ($fid = $getterUtil.getLong($cur_Documenti.getData().split("/").get(3)))
145
146 ## Get the file title
147 #set ($fileTitle = $cur_Documenti.getData().split("/").get(4))
148
149 ## (I assume you are using UTF-8 as charset)
150 #set ($tmp = {})
151 #set ($decoder = $tmp.class.forName("java.net.URLDecoder").newInstance())
152 #set ($fileTitle = $decoder.decode($fileTitle, "UTF-8"))
153 #set ($uuid = $cur_Documenti.getData().split("/").get(5))
154
155 #set ($fileEntry = $fileEntryLocalService.getDLFileEntryByUuidAndGroupId($uuid, $gid))
156
157 <div class="row-table attachments">
158 <div class="cell-table min-width-table"><i class="icon-file icon-2x"></i></div>
159 <div class="cell-table"><a href="$cur_Documenti.getData()" target="_blank">$fileTitle</a></div>
160 <span class="cell-table">[ $textFormatter.formatStorageSize($fileEntry.getSize(), $locale) - $fileEntry.getExtension() ]</span>
161 </div>
162 #end
163 #end
164 </div>
165
166 #end
167
168
169 #if (! $Photogallery.getData().isEmpty())
170 <div class="foto-gallery">
171 <h3 class="subtitle text-uppercase">Galleria Fotografica</h3>
172 <div id="makeMeScrollable">
173 #foreach ($cur_Photogallery in $Photogallery.getSiblings())
174 <a href="${cur_Photogallery.getData().replace("&","&")}.jpg" style="float: left;">
175 <img alt="$cur_Photogallery.getChild('TestoAlternativoPhotogallery').getData()" src="$cur_Photogallery.getData().replace("&","&")" style="width:300px; height: 200px;"/>
176 </a>
177 #end
178
179 </div>
180 </div>
181 #end
182
183
184
185</div>