An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy805.getEntry(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy805 object "com.liferay.mentions.internal.service.MentionsBlogsEntryServiceWrapper@712cc9b7"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: blog = BlogsEntryLocalService.getEntr... [in template "20101#20128#38025" at line 171, column 15] - Reached through: #assign-container [in template "20101#20128#38025" at line 171, column 6] ----
1<style>
2.breadcrumb.my_br a {
3 color: #e6e6e6;
4}
5.breadcrumb.my_br a:last-child {
6 color: #fff;
7}
8.reads_more {
9 position: absolute;
10 bottom: 25px;
11}
12.trending a:hover {
13 color: #f47c20;
14}
15.owl-carousel .owl-stage {
16 height: calc(100% + 20px);
17}
18.owl-carousel.trending {
19 width: calc(100% + 30px);
20 max-width: 100%;
21}
22.owl-carousel.owl-drag .owl-item {
23 height: 100%;
24}
25.card.card_blos {
26 height: calc(100% - 46px);
27}
28
29.taglib-ratings.like, .taglib-ratings.like div{
30 display:inline-block;
31}
32.taglib-ratings.like .rating-element{
33 color:#fff;
34 padding:4px;
35}
36.taglib-ratings.like .inline-item{
37 display:none;
38}
39.lfr-discussion-reply-container .autofit-row:first-child{
40 flex-direction: column;
41}
42.lfr-discussion-reply-container .lfr-discussion-editor{
43 flex-direction: row;
44}
45.lfr-discussion-reply-container .alloy-editor-container{
46 width: 65%;
47 margin-right: 15px;
48}
49.lfr-discussion-reply-container .alloy-editor{
50 border-radius: 10px;
51 border: solid 1px #57585a!important;
52 height: 80px;
53 padding: 10px;
54}
55.lfr-discussion-reply-container .btn-cancel{
56 height: 50px;
57 border-radius: 100px!important;
58 padding: 0 25px;
59}
60.my_breadcrumb {
61 background: #0184c8 !important;
62}
63.wellnes_card ul li:before {
64 content: "";
65 position: absolute;
66 left: 0;
67 top: 6px;
68 width: 6px;
69 height: 6px;
70 background: #000;
71 border-radius: 10px;
72}
73.wellnes_card ul li {
74 position: relative;
75 padding-left: 30px;
76 margin-bottom: 15px;
77 text-shadow: 0 0 0 #000;
78}
79.wellnes_card ol li:before {
80 content: "";
81 position: absolute;
82 left: 0;
83 border-radius: 10px;
84 list-style-type: decimal;
85 content: counter(li);
86 display: inline-block;
87 width: 1em;
88}
89.wellnes_card ol li {
90 position: relative;
91 padding-left: 30px;
92 font-size: 14px;
93 margin-bottom: 15px;
94 text-shadow: 0 0 0 #000;
95 counter-increment: li;
96}
97@media screen and (max-width: 767px) {
98 .lfr-discussion-reply-container .lfr-discussion-editor{
99 flex-direction: column;
100 }
101 .lfr-discussion-reply-container .alloy-editor-container{
102 width: 100%;
103 margin-right: 0;
104 }
105 .lfr-discussion-reply-container .button-holder {
106 text-align: right;
107 }
108 .lfr-discussion-reply-container .alloy-editor{
109 height: 40px;
110 }
111 .lfr-discussion-reply-container .btn-cancel{
112 height: 35px;
113 padding: 0 15px;
114 }
115 .my_breadcrumb {
116 display:none;
117 }
118 .m_top{
119 margin-top: -5px;
120 }
121 .wellnes_card {
122 padding: 30px 20px !important;
123 }
124 .wellnes_card p{
125 font-size:12px;
126 }
127 .wellnes_card li {
128 font-size: 12px;
129 text-shadow: 0 0 0 #000;
130 }
131
132}
133
134.autofit-row.mb-4 {
135 display: none;
136}
137
138.navigation-bar.navigation-bar-light, h2.entry-title, .autofit-float.portlet-header {
139 display: none!important;
140}
141.blogImage{
142 width:376px!important;;
143 height:225px;
144}
145.owl-carousel .owl-item img.trendingDate{
146 display: inline-block;
147 width: 100%;
148}
149.taglib-ratings.like .rating-element {
150 position: absolute;
151 margin: -20px;
152 padding-left: 15px;
153 margin-left: -25px;
154 background: transparent!important;
155}
156</style>
157<#assign BlogsEntryLocalService = serviceLocator.findService("com.liferay.blogs.service.BlogsEntryLocalService")>
158<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
159<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")>
160
161<#assign blog=""
162entryId=0
163categoryName=""
164categoryId=0
165assetEntry="">
166
167 <#assign url=themeDisplay.getURLCurrent()?split("/")[4]>
168 <#if "${url}"?contains("?")>
169 <#assign url="${url}"?split("?")[0]>
170 </#if>
171 <#assign blog=BlogsEntryLocalService.getEntry(themeDisplay.getScopeGroupId(),url)
172 assetEntry = assetEntryLocalService.getEntry("com.liferay.blogs.model.BlogsEntry", blog.getEntryId())
173 entryId =blog.getEntryId()
174 classPk = assetEntry.getClassPK()/>
175
176 <#assign categories=assetCategoryLocalService.getAssetEntryAssetCategories(assetEntry.getEntryId()) />
177
178 <#if categories?has_content>
179 <#list categories as category>
180 <#if category.getName()!="ALL">
181 <#assign categoryName=category.getName()
182 categoryId=category.getCategoryId()/>
183 </#if>
184 </#list>
185 </#if>
186
187<#if blog!="">
188<#assign blogTitle=blog.getTitle()/>
189<div class="bg_blue_gradient py-4 m_top pb_150">
190 <div class="fixed">
191 <div class="py-4">
192 <span class="font_10 bg_orange white p-2 rounded">${categoryName}</span>
193 <h1 class="bold white mt-3"> ${blogTitle }</h1>
194 <small class="font_16 white"><@liferay_reading_time["reading-time"] displayStyle="simple" model=blog /> read</small>
195 <p class="font_16 my-4 white"><img src="/o/manipal-cigna-theme/images/icons/calendar-white.png" class="mr-2"> <span>${dateUtil.getDate(blog.getDisplayDate(), "MMM dd yyyy", locale)}</span></p>
196 <!-- <span class="mr-5 white"><img src="/o/manipal-cigna-theme/images/icons/heart-white.png" class="mr-2"> <@liferay_ui["ratings"] className="com.liferay.blogs.model.BlogsEntry" classPK=blog.getEntryId() type="like"/> Likes</span> -->
197 <span class="white"><img src="/o/manipal-cigna-theme/images/icons/eye-white.png" class="mr-2">
198 <@liferay_ui["message"] arguments=assetEntry.getViewCount() key=(assetEntry.getViewCount()==1)?then("x-view", "x-views") /></span>
199 </div>
200 </div>
201 </div>
202 <div class="py-5">
203 <div class="fixed">
204 <div class="card p-5 round mt_-150 wellnes_card">
205 <p class="font_16">${blog.getContent() }</p>
206 </div>
207 </div>
208 </div>
209 <!-- <div class="pb-5">
210 <div class="fixed">
211 <h2 class="semi-bold mb-4">Comments</h2>
212 <@liferay_comment["discussion"]
213 className="com.liferay.blogs.model.BlogsEntry"
214 classPK=entryId
215 formName=""
216 ratingsEnabled=false
217 redirect=themeDisplay.getURLCurrent()
218 userId=themeDisplay.getUserId()
219 />
220 </div>
221 </div> -->
222</#if>
223
224 <span class="row hide">
225 ${assetEntryLocalService.incrementViewCounter(themeDisplay.getUserId(),"com.liferay.blogs.model.BlogsEntry", classPk)}
226 </span>
227
228<!--
229<#if entries?has_content>
230<#assign ArticleList=[]>
231<!-- Trending -->
232<!-- <div class="py-5 bg_light_gray">
233 <div class="most_veiw m-0">
234 <div class="fixed">
235 <div class="d-inline-block w-100">
236 <h2 class="bold pull-left mt-4 mb-3">Trending</h2>
237 </div>
238 <div class="owl-carousel trending owl_nav owl_dot2">
239
240
241 <#list entries as curBlogEntry>
242 <#assign catIds=[]>
243 <#assign asset = assetEntryLocalService.getEntry("com.liferay.blogs.model.BlogsEntry", curBlogEntry.getEntryId()) />
244 <#assign categories=assetCategoryLocalService.getAssetEntryAssetCategories(asset.getEntryId()) />
245 <#if categories?has_content>
246 <#list categories as category>
247 <#if category.getName()!="ALL">
248 <#assign categoryName=category.getName()>
249 <#assign catIds =catIds+[category.getCategoryId()]>
250 </#if>
251
252 </#list>
253 </#if>
254 <#if catIds?seq_contains(categoryId)>
255 <#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.blogs.model.BlogsEntry", curBlogEntry.getEntryId()) />
256 <#assign ArticleList=ArticleList+[assetEntry]>
257 </#if>
258 </#list>
259 <#if ArticleList?has_content>
260 <#list ArticleList?sort_by("viewCount")?reverse as article>
261 <#assign blog=BlogsEntryLocalService.getEntry(article.getClassPK())>
262 <#assign categories=assetCategoryLocalService.getAssetEntryAssetCategories(article.getEntryId()) />
263 <#if categories?has_content>
264 <#list categories as category>
265 <#if category.getName()!="ALL">
266 <#assign categoryName=category.getName()>
267 </#if>
268 </#list>
269 </#if>
270 <div class="col-12 h-100 item">
271 <div class="card card_blos round mb-4">
272 <#if blog.getSmallImageURL(themeDisplay)??>
273 <img src="${blog.getSmallImageURL(themeDisplay)}" class="blogImage">
274 </#if>
275 <div class="p-4">
276 <div class="text-right">
277 <span class="share_icon">
278 <img src="/o/manipal-cigna-theme/images/icons/share.png">
279 <div class="share_div">
280 <p class="bold text_14 m-4 pl-3 text-left">Share via:</p>
281 <div class="share_list">
282 <div><a target="popup"
283 onclick="window.open('https://www.facebook.com/sharer.php?t=${blog.getTitle()}&u=${themeDisplay.getPortalURL()}/wellness/wellness-bites/${blog.getUrlTitle()}','popup','width=600,height=400'); return false;"><img style="width: 26px!important;" src="/o/manipal-cigna-theme/images/icons/facebook_i.png">FACEBOOK</a></div>
284
285 <div><a target="popup"
286 onclick="window.open('https://twitter.com/intent/tweet?text=${blog.getTitle()}&url=${themeDisplay.getPortalURL()}/wellness/wellness-bites/${blog.getUrlTitle()}','popup','width=600,height=400'); return false;"><img style="width: 26px!important;" src="/o/manipal-cigna-theme/images/icons/twitter_i.png">TWITTER</a></div>
287
288 <div><a target="popup"
289 onclick="window.open('https://www.linkedin.com/shareArticle/?title=${blog.getTitle()}&url=${themeDisplay.getPortalURL()}/wellness/wellness-bites/${blog.getUrlTitle()}','popup','width=600,height=400'); return false;"><img style="width: 26px!important;" src="/o/manipal-cigna-theme/images/icons/linkedin_i.png">LINKEDIN</a></div>
290
291 <div><a href="javascript:void(0)"><span class="copy-btn" data-type="attribute" data-attr-name="data-clipboard-text" data-model="couponCode" data-clipboard-text="${themeDisplay.getPortalURL()}/wellness/wellness-bites/${blog.getUrlTitle()}"><img style="width: 26px!important;" src="/o/manipal-cigna-theme/images/icons/link_i.png">COPY CODE</span></a></div>
292
293 <div><a target="popup"
294 onclick="window.open('https://web.whatsapp.com/send?text=${themeDisplay.getPortalURL()}/wellness/wellness-bites/${blog.getUrlTitle()}','popup','width=600,height=400'); return false;"><img style="width: 26px!important;" src="/o/manipal-cigna-theme/images/icons/whatsapp_i.png">WHATSAPP</a></div>
295
296 <div><a target="popup" href="mailto:?subject=${blog.getTitle()}&body=${themeDisplay.getPortalURL()}/wellness/wellness-bites/${blog.getUrlTitle()}"><img style="width: 26px!important;" src="/o/manipal-cigna-theme/images/icons/gmail_i.png">EMAIL</a></div>
297 </div>
298 </div>
299 </span>
300
301 </div>
302 <div class="px-2 mt-4">
303 <span class="font_10 bg_orange white p-2 rounded">${categoryName}</span>
304 <p class="font_18 semi-bold mt-4">${blog.getTitle() }</p>
305 <p class="font_16 lh-16">${stringUtil.shorten(htmlUtil.stripHtml(blog.getContent()), 70)}</p>
306 <p class="font_16"><img src="/o/manipal-cigna-theme/images/icons/calendar.png" class="mr-2 trendingDate"> <span>${dateUtil.getDate(blog.getDisplayDate(), "MMM dd yyyy", locale)}</span></p>
307 <a href="/wellness/wellness-bites/${categoryName?lower_case?replace(" ","-")}/${blog.getUrlTitle()}" class="font_14 reads_more semi-bold">READ MORE <i class="fa fa-angle-right"></i></a>
308 </div>
309 </div>
310 </div>
311 </div>
312 </#list>
313 </#if>
314 </div>
315 </div>
316 </div>
317 </div>
318</#if>
319
320-->
321<script type="text/javascript">
322var userName='${themeDisplay.getUser().getFullName()}';
323$( ".sticker-primary" ).after( "<p class='font_18 ml-3 semi-bold mb-0'>"+userName+"</p>" );
324$('.lfr-btn-label').html('POST <i class="fa fa-angle-right"></i>');
325
326
327$(document).ready(function(){
328 $(document).on("click", ".copy-btn", function(){
329 value = $(this).data('clipboard-text'); //Upto this I am getting value
330
331 var $temp = $("<input>");
332 $("body").append($temp);
333 $temp.val(value).select();
334 document.execCommand("copy");
335 $temp.remove();
336 });
337});
338</script>