An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy92.getCategory(long)" threw an exception when invoked on com.sun.proxy.$Proxy92 object "com.liferay.asset.categories.internal.service.AssetCategoryPropertyAssetCategoryLocalServiceWrapper@7b0fd411"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign aasetCategory = AssetCategory... [in template "20101#20128#38007" at line 117, column 1] ----
1<style>
2.container.newsroom-desc-container {
3 max-width: 966px;
4}
5
6.newsroom-desc-container h2 {
7 word-break: break-word;
8}
9
10
11.autofit-row.mb-4 {
12 display: none;
13}
14
15.navigation-bar.navigation-bar-light, h2.entry-title, .autofit-float.portlet-header {
16 display: none!important;
17}
18
19.new_share_div {
20 width: 253px!important;
21}
22
23.share_icon .share_div {
24 z-index: 10!important;
25 }
26
27 .share_icon .share_div .share_list div {
28 margin-bottom: 10px!important;
29 }
30 .share_icon .share_div .share_list div:hover {
31 font-family: "Arial MT Std Medium",sans-serif;
32 }
33 .share_icon .share_div .share_list div {
34 position: relative;
35 padding: 5px 0 5px 45px;
36 color: #000;
37 font-size: 14px;
38 display: flex;
39 align-items: center;
40 }
41 .share_icon .share_div .share_list div img {
42 filter: grayscale(1);
43 min-width: 26px;
44 width: 26px!important;
45 margin-right: 20px;
46}
47.share_icon .share_div .share_list div:hover img {
48 filter: grayscale(0);
49}
50.share_icon .share_div .share_list div:hover:before {
51 content: "";
52 position: absolute;
53 left: 0;
54 height: 100%;
55 width: 6px;
56 background-color: #f47c20;
57}
58.new_share_div {
59 width: 253px!important;
60}
61.new_share_div .share_list div {
62 margin-bottom: 10px!important;
63}
64</style>
65<!doctype html>
66<#assign AssetEntryQuery=objectUtil("com.liferay.asset.kernel.service.persistence.AssetEntryQuery")>
67<#assign AssetEntryServiceUtil=objectUtil("com.liferay.asset.kernel.service.AssetEntryServiceUtil")>
68<#assign ClassNameLocalServiceUtil=objectUtil("com.liferay.portal.kernel.service.ClassNameLocalServiceUtil")>
69<#assign AssetVocabularyService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyService")>
70<html lang="en">
71 <#assign BlogsEntryLocalService = serviceLocator.findService("com.liferay.blogs.service.BlogsEntryLocalService")>
72 <#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")>
73
74
75 <#assign url=themeDisplay.getURLCurrent()?split("/")>
76 <#assign furlTitle=url[(url?size)-1] />
77 <#assign categoryId=0>
78 <#assign vocabularyName="">
79 <#assign entryId=0>
80 <#assign blogEntry="current">
81 <#if request.getParameter("p_r_p_categoryId")?has_content>
82 <#assign categoryId=request.getParameter("p_r_p_categoryId")?number>
83 <#assign blogEntry=request.getParameter("blogEntry")>
84 <#assign entryId=request.getParameter("entryId")?number>
85 </#if>
86
87
88
89
90<#assign blog="">
91<#if entryId!=0>
92 <#assign blog=BlogsEntryLocalService.getBlogsEntry(entryId)>
93 <#assign vocabularyName=url[url?size-2] />
94<#else>
95<#assign blog=BlogsEntryLocalService.getEntry(themeDisplay.getScopeGroupId(),furlTitle)>
96<#assign assetEntry = AssetEntryServiceUtil.getEntry("com.liferay.blogs.model.BlogsEntry", blog.getEntryId())
97 entryId =blog.getEntryId() />
98 <#assign categories=AssetCategoryLocalService.getAssetEntryAssetCategories(assetEntry.getEntryId()) />
99 <#if categories?has_content>
100 <#list categories as category>
101 <#if category.getName()!="ALL">
102 <#assign categoryName=category.getName()
103 categoryId=category.getCategoryId()
104 vocabularyId=category.getVocabularyId()
105 vocabularyName=AssetVocabularyService.getVocabulary(vocabularyId).getName() />
106 </#if>
107 </#list>
108 </#if>
109</#if>
110<#assign prevCategoryId=categoryId>
111<#assign nextCategoryId=categoryId>
112<#assign prevEntryId=0>
113<#assign nextEntryId=0>
114<#assign nextBlogTitle="">
115<#assign prevBlogTitle="">
116<#assign catIndex=0>
117<#assign aasetCategory=AssetCategoryLocalService.getCategory(categoryId)>
118<#assign assetCategories=AssetCategoryLocalService.getVocabularyRootCategories(aasetCategory.getVocabularyId(), -1, -1,null )>
119 <#assign ascatIds=[]
120 resultBlogEntries=[]/>
121<#if assetCategories??>
122 <#list assetCategories as assetCat>
123 <#assign ascatIds = ascatIds+[assetCat.getCategoryId()]>
124 </#list>
125 <#assign classNameIds = [ClassNameLocalServiceUtil.getClassNameId("com.liferay.blogs.model.BlogsEntry")]>
126 ${AssetEntryQuery.setAnyCategoryIds(ascatIds)}
127 ${AssetEntryQuery.setClassNameIds(classNameIds)}
128 <#assign results=AssetEntryServiceUtil.getEntries(AssetEntryQuery)>
129 <#list results as res>
130 <#assign resultBlogEntries =resultBlogEntries+[BlogsEntryLocalService.getBlogsEntry(res.getClassPK())] />
131 </#list>
132</#if>
133
134 <#if resultBlogEntries?has_content>
135 <#list resultBlogEntries as curEntry>
136 <#if entryId==0>
137 <#if blogEntry=="previous">
138 <#if curEntry?is_last>
139 <#assign entryId=curEntry.entryId>
140 <#assign blog=BlogsEntryLocalService.getBlogsEntry(entryId)>
141 </#if>
142 <#else>
143 <#assign entryId=curEntry.entryId>
144 <#assign blog=BlogsEntryLocalService.getBlogsEntry(entryId)>
145 </#if>
146 </#if>
147 <#if curEntry.entryId==entryId>
148 <#assign index=curEntry?index>
149 <#if curEntry?has_next>
150 <#assign nextEntryId=resultBlogEntries[index+1].entryId>
151 <#assign nextBlogTitle=BlogsEntryLocalService.getBlogsEntry(nextEntryId).getUrlTitle()>
152 <#else>
153 <#assign aasetCategory=AssetCategoryLocalService.getCategory(categoryId)>
154 <#if aasetCategory??>
155 <#assign assetCategories=AssetCategoryLocalService.getVocabularyRootCategories(aasetCategory.getVocabularyId(), -1, -1,null )>
156 <#list assetCategories?sort_by("name") as category>
157 <#if category.getCategoryId()==categoryId>
158 <#assign catIndex=category?index>
159 <#if category?has_next>
160 <#assign catIds = [assetCategories?sort_by("name")[catIndex+1].getCategoryId()]>
161 <#assign classNameIds = [ClassNameLocalServiceUtil.getClassNameId("com.liferay.blogs.model.BlogsEntry")]>
162 ${AssetEntryQuery.setAnyCategoryIds(catIds)}
163 ${AssetEntryQuery.setClassNameIds(classNameIds)}
164 <#assign results=AssetEntryServiceUtil.getEntries(AssetEntryQuery)>
165 <#if results?has_content>
166 <#assign nextCategoryId=assetCategories?sort_by("name")[catIndex+1].getCategoryId()>
167 <#list results as result>
168 <#assign bEntry=BlogsEntryLocalService.getBlogsEntry(result.getClassPK())/>
169 <#assign nextBlogTitle=bEntry.getUrlTitle()>
170 </#list>
171 <#else>
172 <#assign categoryId=assetCategories?sort_by("name")[catIndex+1].getCategoryId()>
173 </#if>
174 <#else>
175 <#assign catIds = [assetCategories?sort_by("name")[catIndex].getCategoryId()]>
176 <#assign classNameIds = [ClassNameLocalServiceUtil.getClassNameId("com.liferay.blogs.model.BlogsEntry")]>
177 ${AssetEntryQuery.setAnyCategoryIds(catIds)}
178 ${AssetEntryQuery.setClassNameIds(classNameIds)}
179 <#assign results=AssetEntryServiceUtil.getEntries(AssetEntryQuery)>
180 <#if results?has_content>
181 <#assign nextCategoryId=assetCategories?sort_by("name")[catIndex].getCategoryId()>
182 <#list results as result>
183 <#assign bEntry=BlogsEntryLocalService.getBlogsEntry(result.getClassPK())/>
184 <#assign nextBlogTitle=bEntry.getUrlTitle()>
185 </#list>
186 </#if>
187 </#if>
188
189 </#if>
190 </#list>
191 </#if>
192 <#assign nextEntryId=0>
193 </#if>
194 <#if curEntry?is_first>
195 <#assign aasetCategory=AssetCategoryLocalService.getCategory(categoryId)>
196 <#if aasetCategory??>
197 <#assign assetCategories=AssetCategoryLocalService.getVocabularyRootCategories(aasetCategory.getVocabularyId(), -1, -1,null )>
198 <#list assetCategories?sort_by("name")?reverse as category>
199 <#if category.getCategoryId()==categoryId>
200 <#assign index=category?index>
201 <#if category?is_last>
202 <#assign catIds = [assetCategories?sort_by("name")?reverse[index].getCategoryId()]>
203 <#assign classNameIds = [ClassNameLocalServiceUtil.getClassNameId("com.liferay.blogs.model.BlogsEntry")]>
204 ${AssetEntryQuery.setAnyCategoryIds(catIds)}
205 ${AssetEntryQuery.setClassNameIds(classNameIds)}
206 <#assign results=AssetEntryServiceUtil.getEntries(AssetEntryQuery)>
207 <#if results?has_content>
208 <#assign prevCategoryId=assetCategories?sort_by("name")?reverse[index].getCategoryId()>
209 <#list results as result>
210 <#assign bEntry=BlogsEntryLocalService.getBlogsEntry(result.getClassPK())/>
211 <#assign prevBlogTitle=bEntry.getUrlTitle()>
212 </#list>
213 </#if>
214 <#else>
215 <#assign catIds = [ assetCategories?sort_by("name")?reverse[index+1].getCategoryId()]>
216 <#assign classNameIds = [ClassNameLocalServiceUtil.getClassNameId("com.liferay.blogs.model.BlogsEntry")]>
217 ${AssetEntryQuery.setAnyCategoryIds(catIds)}
218 ${AssetEntryQuery.setClassNameIds(classNameIds)}
219 <#assign results=AssetEntryServiceUtil.getEntries(AssetEntryQuery)>
220 <#if results?has_content>
221 <#list results as result>
222 <#assign bEntry=BlogsEntryLocalService.getBlogsEntry(result.getClassPK())/>
223 <#assign prevBlogTitle=bEntry.getUrlTitle()>
224 </#list>
225 <#assign prevCategoryId=assetCategories?sort_by("name")?reverse[index+1].getCategoryId()>
226 <#else>
227 <#assign categoryId=assetCategories[index-1].getCategoryId()>
228 </#if>
229 </#if>
230 </#if>
231 </#list>
232 </#if>
233 <#assign prevEntryId=0>
234
235 <#else>
236 <#assign prevEntryId=resultBlogEntries[index-1].entryId>
237 <#assign prevBlogTitle=BlogsEntryLocalService.getBlogsEntry(prevEntryId).getUrlTitle()>
238 </#if>
239 </#if>
240 </#list>
241 <#else>
242 <#assign aasetCategory=AssetCategoryLocalService.getCategory(categoryId)>
243 <#if aasetCategory??>
244 <#assign assetCategories=AssetCategoryLocalService.getVocabularyRootCategories(aasetCategory.getVocabularyId(), -1, -1,null )>
245 <#list assetCategories as category>
246 <#if category.getCategoryId()==categoryId>
247 <#assign catIndex=category?index>
248 <#if category?has_next>
249 <#assign nextCategoryId=assetCategories[catIndex+1].getCategoryId()>
250 <#else>
251 <#assign nextCategoryId=assetCategories[catIndex].getCategoryId()>
252 </#if>
253 <#if category?is_first>
254 <#assign prevCategoryId=assetCategories[catIndex].getCategoryId()>
255 <#else>
256 <#assign prevCategoryId=assetCategories[catIndex-1].getCategoryId()>
257 </#if>
258 </#if>
259 </#list>
260 </#if>
261
262 </#if>
263 <body>
264 <header>
265 </header>
266 <!-- Newsroom details-->
267 <div class="newsroom_details mt-5">
268 <div class="container newsroom-desc-container">
269 <#if blog!="">
270 <p class="font_16 semi-bold">
271 <img src="/o/manipal-cigna-theme/images/icons/calendar.png">
272 <span class="ml-2">${dateUtil.getDate(blog.getDisplayDate(), "MMM dd yyyy", locale)}</span>
273 </p>
274 <span class="pull-right share_icon"><img src="/o/manipal-cigna-theme/images/icons/share.png">
275
276 <div class="share_div removable_share_div">
277 <p class="bold text_14 m-4 pl-3 text-left">Share via:</p>
278 <div class="share_list">
279 <div data-network="facebook" class="st-custom-button" data-title="${blog.getTitle()}" data-image="" data-description="" data-url="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"><img src="/o/manipal-cigna-theme/images/icons/facebook_i.png">FACEBOOK</div>
280
281 <div data-network="twitter" class="st-custom-button" data-title="${blog.getTitle()}" data-image="" data-description="" data-url="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"><img src="/o/manipal-cigna-theme/images/icons/twitter_i.png">TWITTER</div>
282
283 <div data-network="linkedin" class="st-custom-button" data-title="${blog.getTitle()}" data-image="" data-description="" data-url="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"><img src="/o/manipal-cigna-theme/images/icons/linkedin_i.png">LINKEDIN</div>
284
285 <div><span class="copy-btn" data-type="attribute" data-attr-name="data-clipboard-text" data-model="couponCode" data-clipboard-text="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"><img src="/o/manipal-cigna-theme/images/icons/link_i.png"> COPY LINK</span></div>
286
287 <div data-network="whatsapp" class="st-custom-button" data-title="${blog.getTitle()}" data-image="" data-description="" data-url="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"><img src="/o/manipal-cigna-theme/images/icons/whatsapp_i.png">WHATSAPP</div>
288
289 <div data-network="email" class="st-custom-button" data-title="${blog.getTitle()}" data-image="" data-description="" data-url="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"><img src="/o/manipal-cigna-theme/images/icons/gmail_i.png">EMAIL</div>
290
291 </div>
292 </div>
293 </span>
294 <h1 class="bold h2 mb-4">${blog.getTitle() }</h1>
295 <!--<h2 class="bold mb-4">${blog.getTitle() }</h2>-->
296 <!--- ml-2 --->
297 <p class="font_14">${blog.getSubtitle()}</p>
298 <p class="font_14">${blog.getContent()}</p>
299 </#if>
300 </div>
301 <div class="container p-0 mt-5 mb-4">
302 <hr>
303 <div class="py-4 px-3">
304 <div class="d-inline-block w-100">
305 <form action="/${vocabularyName?lower_case?replace(' ','-')}/${prevBlogTitle}" method="post">
306 <#assign dis="disabled">
307
308 <input type="hidden" name="entryId" value="${prevEntryId}"/>
309 <input type="hidden" name="p_r_p_categoryId" value="${prevCategoryId}"/>
310 <input type="hidden" name="blogEntry" value="previous"/>
311 <button class="pull-left btn btn-secondary bold" ${(prevBlogTitle=="")?then(dis,'')}>
312 <i class="fa fa-angle-left"></i> PREVIOUS
313 </button>
314 </form>
315 <form action="/${vocabularyName?lower_case?replace(' ','-')}/${nextBlogTitle}" method="post">
316 <input type="hidden" name="entryId" value="${nextEntryId}"/>
317 <input type="hidden" name="p_r_p_categoryId" value="${nextCategoryId}"/>
318 <input type="hidden" name="blogEntry" value="next"/>
319 <button class="pull-right btn btn-secondary bold" ${(nextBlogTitle=="")?then(dis,'')}>
320 NEXT <i class="fa fa-angle-right"></i>
321 </button>
322 </form>
323 </div>
324 </div>
325 </div>
326 </div>
327
328
329
330
331 <!-- mid content -->
332
333 <!-- script -->
334 <script type="text/javascript"></script>
335<script>
336$(document).ready(function(){
337 $('.copy-btn').on("click", function(){
338 value = $(this).data('clipboard-text'); //Upto this I am getting value
339
340 var $temp = $("<input>");
341 $("body").append($temp);
342 $temp.val(value).select();
343 document.execCommand("copy");
344 $temp.remove();
345 });
346
347 $.getScript( "https://platform-api.sharethis.com/js/sharethis.js#property=5f072ec41fc3670013bd28d9&product=inline-share-buttons" ).done(function( script, textStatus ) {
348 console.log( textStatus );
349 });
350});
351
352$(document).on("click", ".st-custom-button", function(e) {
353 var elm = e.target;
354 var network = elm.dataset.network;
355 console.log("share click: " + network);
356});
357
358
359 </script>
360 </body>
361
362
363</html>