Kolkata Museum Photo Gallery - ಆರ್ಬಿಐ - Reserve Bank of India
an-error-occurred-while-processing-the-template
The following has evaluated to null or missing: ==> images [in template "20099#20125#108613263" at line 126, column 66] ---- 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: ${images} [in template "20099#20125#108613263" at line 126, column 64] ----
1<#assign lang=themeDisplay.getLanguageId() />
2<#assign
3 AssetEntryLocalServiceUtil=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")
4 DLFileEntryLocalService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")
5 assetVocabularyLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")
6 assetCategoryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
7 assetTagLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService")/>
8
9
10
11
12<#assign JSONFactoryUtil = staticUtil["com.liferay.portal.kernel.json.JSONFactoryUtil"] />
13<#assign DLAppLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLAppLocalServiceUtil"]/>
14<#assign lang=themeDisplay.getLanguageId() />
15
16<#assign lang=themeDisplay.getLanguageId() />
17<#if lang=="en_US">
18 <#assign facebookLang="Facebook" />
19 <#assign linkedInLang="LinkedIn" />
20 <#assign twitterLang="X (formerly known as Twitter)" />
21 <#assign whatsAppLang="WhatsApp" />
22 <#assign share="Share" />
23 <#elseif lang=="hi_IN">
24 <#assign facebookLang="फेसबुक" />
25 <#assign linkedInLang="लिंक्डइन" />
26 <#assign twitterLang="X (पहले ट्विटर के नाम से जाना जाता था)" />
27 <#assign whatsAppLang="व्हॉट्सऐप" />
28 <#assign share="साझा करें" />
29
30</#if>
31<#assign Place="" />
32<#assign pGBlocks="" />
33<#assign Id="" />
34<#assign portalURL=themeDisplay.getPortalURL() />
35<#assign contentTitle="Musm_Photo_Gallery_New_POC" />
36<#assign index=0 />
37
38
39<#if entries?has_content>
40
41 <#assign imgitem = entries[0]>
42 <#assign assetEntry=AssetEntryLocalServiceUtil.fetchEntry(imgitem.getClassName(),imgitem.getClassPK()) />
43
44 <#assign assetRenderer=assetEntry.getAssetRenderer() />
45
46 <#assign tags = assetTagLocalService.getTagNames(imgitem.getClassName(),imgitem.getClassPK())/>
47
48 <#if lang=="en_US">
49 <#assign images="images" />
50 <#if tags[0]=="kolkata">
51 <#assign Place="Kolkata Museum" />
52 <#assign Id="Kolkata" />
53 <#assign pGBlocks="photoGallery-blocks-1" />
54 </#if>
55 <#if tags[0]=="mumbai">
56 <#assign Place="Mumbai Museum" />
57 <#assign Id="Mumbai" />
58 <#assign pGBlocks="photoGallery-blocks-1" />
59 </#if>
60 <#if tags[0]=="pune">
61 <#assign Place="Pune Museum" />
62 <#assign Id="Pune" />
63 <#assign pGBlocks="photoGallery-blocks-1" />
64 </#if>
65 </#if>
66 <#if lang=="hi_IN">
67 <#assign images="तस्वीरें" />
68 <#if tags[0]=="kolkata">
69 <#assign Place="कोलकाता संग्रहालय" />
70 <#assign Id="Kolkata" />
71 <#assign pGBlocks="photoGallery-blocks-1" />
72 </#if>
73 <#if tags[0]=="mumbai">
74 <#assign Place="मुंबई संग्रहालय" />
75 <#assign Id="Mumbai" />
76 <#assign pGBlocks="photoGallery-blocks-1" />
77 </#if>
78 <#if tags[0]=="pune">
79 <#assign Place="पुणे संग्रहालय" />
80 <#assign Id="Pune" />
81 <#assign pGBlocks="photoGallery-blocks-1" />
82 </#if>
83 </#if>
84
85 </#if>
86
87
88<!-- photo gallery image row -->
89<div class="image_box_photoGallery sec_nav" id="${Id}">
90<div class="photoGallery full-width mum_pg_view_more_page ${pGBlocks} dynamic-resize" tabindex="0" id="photo-gallery">
91 <div class="container">
92 <!-- <#if (SectionHeading.getData())?? && SectionHeading.getData()!=""> -->
93 <div class="row">
94 <div class="col-12">
95 <h2 class="section-heading font-resized">
96 Museum Photo Gallery
97 </h2>
98 </div><!--col -12-->
99 </div> <!--row end-->
100 <!-- </#if> -->
101
102 <!--start of outer row .musm_photo_gallery_img_row-->
103
104 <div class="musm_photo_gallery_img_row">
105 <!--Location Heading row-->
106 <#if Place?has_content>
107 <div class="row pg-location-heading_row">
108 <div class="col-12 pg-location-heading">
109
110 <h2 class="section-heading">
111 ${Place}
112
113 </h2>
114 </div>
115 </div>
116 </#if>
117 <!--Location Heading END-->
118
119 <!--total no of image-->
120 <div class="row pg_total_numerofImage">
121 <div class="col-12">
122 <#if entries?has_content>
123 <#list entries as total_photogalleryImage>
124 <#assign total_image = total_photogalleryImage?counter />
125 </#list>
126 <p class="total_no_image"> ${total_image} ${images}</p>
127 </#if>
128
129 </div>
130 </div>
131 <!--end total no of image-->
132
133 <!--loop of each location image-->
134
135 <div class="row each_location_image_row">
136
137 <#list entries as cur_photoGalleryImg>
138 <#assign assetEntry=AssetEntryLocalServiceUtil.fetchEntry(cur_photoGalleryImg.getClassName(),cur_photoGalleryImg.getClassPK()) />
139
140
141
142 <#assign assetRenderer=assetEntry.getAssetRenderer() />
143
144
145
146 <#assign article=assetEntry.getAssetRenderer().getArticle() id=article.getId()
147 groupId=article.getGroupId()
148 />
149 <#assign content=saxReaderUtil.read(article.getContentByLocale(locale))
150 title=content.valueOf("//dynamic-element[@name='Text10489560']/dynamic-content")
151 description=content.valueOf("//dynamic-element[@name='RichText21646948'
152 ]/dynamic-content") publishDate=article.displayDate
153 curImg = content.valueOf("//dynamic-element[@name='Image51944667']/dynamic-content")/>
154 <#assign jsonDlFileEntry = JSONFactoryUtil.createJSONObject(curImg) />
155 <#assign jsonDlFileEntryGroupId = jsonDlFileEntry.getString("groupId") />
156 <#assign jsonDlFileEntryUuId = jsonDlFileEntry.getString("uuid") />
157
158 <#if curImg?has_content && jsonDlFileEntryGroupId?has_content>
159
160
161
162 <div class="col-6 col-xs-6 col-sm-6 col-lg-3 col-xl-3 img-col">
163
164 <div class="three-box-each photo-gallery-box-top">
165 <div class="content-box-top">
166
167 <img alt="${jsonDlFileEntry.getString("alt")}" tabindex="0"
168 data-fileentryid="${jsonDlFileEntry.getString("fileEntryId")}"
169 src="${jsonDlFileEntry.getString("url")}" data-imagebox="gallery"
170 data-imagebox-src="${jsonDlFileEntry.getString("url")}"
171 data-imagebox-caption="<div class='photo-gallery-img-caption'>
172 </div><div class='share-page-link'><span class='clipboard'>${share}</span>
173 <a target='_blank' data-toggle='rbi-tooltip' data-placement='bottom' data-original-title='${whatsAppLang}' href='https://api.whatsapp.com/send?text=${portalURL}${jsonDlFileEntry.getString("url")}' class='whatsapp'><img src='${themeDisplay.getPathThemeRoot()}/images/rbi-main/share-whatsApp.svg' /></a>
174 <a target='_blank' data-toggle='rbi-tooltip' data-placement='bottom' data-original-title='${twitterLang}' href='https://twitter.com/intent/tweet?text=${portalURL}${contentTitle}&tw_p=tweetbutton&url=$${jsonDlFileEntry.getString("url")}' class='twitter'><img src='${themeDisplay.getPathThemeRoot()}/images/rbi-main/share-twitter.svg' /></a>
175 <a target='_blank' data-toggle='rbi-tooltip' data-placement='bottom' data-original-title='${linkedInLang}' href='https://www.linkedin.com/shareArticle?mini=true&url=${portalURL}${jsonDlFileEntry.getString("url")}&title=${contentTitle}' class='linkedin'><img src='${themeDisplay.getPathThemeRoot()}/images/rbi-main/share-linkedIn.svg' /></a>
176 <a target='_blank' data-toggle='rbi-tooltip' data-placement='bottom' data-original-title='${facebookLang}' href='http://www.facebook.com/sharer.php?u=${portalURL}${jsonDlFileEntry.getString("url")}' class='facebook'><img src='${themeDisplay.getPathThemeRoot()}/images/rbi-main/share-facebook.svg' /></a>" />
177
178
179 </div>
180 <div class="content-box-bottom d-none"></div>
181 </div>
182 </div>
183 <#assign index= index+1 />
184 <!-- ${index} -->
185
186 </#if>
187
188 </#list>
189 </div>
190
191
192
193 <!--end of loop of each location image .each_location_image_row-->
194
195
196 </div>
197 <!--end of outer row .musm_photo_gallery_img_row-->
198
199
200
201 </div>
202 </div>
203 <!-- photo gallery image row-->
204
205</div>
206</div>
207 </div>
208
209</div>
210<style>
211 .ib-button:focus{border:solid 2px #fff;)
212</style>
213<script>
214$(document).ready(function () {
215 $('#imagebox').attr('role','alertdialog');
216})
217
218var clickedImageBox
219$(document).on('keydown', '.content-box-top img', function (e) {
220 if(e.which===13) {
221
222 clickedImageBox = $(this);
223 $('#imagebox').attr('role','alertdialog');
224 $(this).trigger('click').blur();
225 $('#imagebox .ib-button').attr('tabindex',0);
226 $('#imagebox .ib-control-left').attr('tabindex',0);
227 $('#imagebox .ib-control-right').attr('tabindex',0);
228
229 setTimeout(function () {
230 $(this).blur();
231 $('#imagebox .ib-button').focus();
232 }, 300);
233 }
234});
235
236
237
238$(document).on('keydown', '#imagebox .ib-button', function (e) {
239 if(e.which===13) {
240 $(this).trigger('click').blur();
241 $(clickedImageBox).focus();
242 }
243});
244
245
246$(document).on('keydown', '.ib-control > div', function (e) {
247 if(e.which===13) {
248 $(this).trigger('click');
249 }
250});
251</script>