An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy1333.getEntry(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy1333 object "com.liferay.mentions.internal.service.MentionsBlogsEntryServiceWrapper@543ee5af"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: blog = BlogsEntryLocalService.getEntr... [in template "20101#20128#38046" at line 113, column 14] ----
1<style>
2 .my_breadcrumb {
3 background: #0083c8;
4 }
5 .my_breadcrumb .my_br a {
6 color: #e6e6e6;
7 }
8 .my_breadcrumb .my_br a:last-child {
9 color: #fff;
10 }
11 .btn-sm.rating-element {
12 padding-left: 0;
13 }
14 .fn_sm {
15 font-family: "Arial MT Std Light",sans-serif;
16 text-transform: lowercase;
17 }
18 .btn-sm.rating-off {
19 opacity: 1;
20 }
21 .bg_blue_gradient{
22 margin-top: -25px;
23 }
24.wellnes_card ul li:before {
25 content: "";
26 position: absolute;
27 left: 0;
28 top: 6px;
29 width: 6px;
30 height: 6px;
31 background: #000;
32 border-radius: 10px;
33}
34.wellnes_card ul li {
35 position: relative;
36 padding-left: 30px;
37 margin-bottom: 15px;
38 text-shadow: 0 0 0 #000;
39}
40.wellnes_card ol li:before {
41 content: "";
42 position: absolute;
43 left: 0;
44 border-radius: 10px;
45 list-style-type: decimal;
46 content: counter(li);
47 display: inline-block;
48 width: 1em;
49}
50.wellnes_card ol li {
51 position: relative;
52 padding-left: 30px;
53 font-size: 14px;
54 margin-bottom: 15px;
55 text-shadow: 0 0 0 #000;
56 counter-increment: li;
57}
58@media screen and (max-width: 991px){
59#wrapper #content {
60 margin-top: 88px;
61}
62}
63@media screen and (max-width: 767px){
64.wellnes_card {
65 padding: 30px 20px !important;
66}
67.card p{
68 font-size:12px;
69}
70.card ul{
71 font-size:12px;
72}
73#wrapper #content {
74 margin-top: 88px;
75}
76}
77</style>
78<script>
79$(document).ready(function(){
80$('span.inline-item').html('<img src="/o/manipal-cigna-theme/images/icons/heart-white.png" class="mr-2">');
81$('span.votes').addClass('white');
82var likenum = $('span.votes').html();
83if(likenum == '1') {
84 likenum += " Like";
85} else {
86 likenum += " Likes";
87}
88$('span.votes').html(likenum);
89});
90
91</script>
92<style>
93a.rating-element,a.rating-element:hover {
94 opacity: 1;
95 background: transparent;
96}
97</style>
98
99<#assign BlogsEntryLocalService = serviceLocator.findService("com.liferay.blogs.service.BlogsEntryLocalService")>
100<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
101<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")>
102
103<#assign blog=""
104entryId=0
105categoryName=""
106assetEntry="">
107
108
109 <#assign url=themeDisplay.getURLCurrent()?split("/")[2]>
110 <#if "${url}"?contains("?")>
111 <#assign url = "${url}"?split("?")[0]>
112 </#if>
113 <#assign blog=BlogsEntryLocalService.getEntry(themeDisplay.getScopeGroupId(),url)
114 assetEntry = assetEntryLocalService.getEntry("com.liferay.blogs.model.BlogsEntry", blog.getEntryId())
115 entryId =blog.getEntryId()
116 classPk = assetEntry.getClassPK() />
117 <#assign categories=assetCategoryLocalService.getCategories("com.liferay.blogs.model.BlogsEntry",assetEntry.getClassPK()) />
118 <#if categories?has_content>
119 <#list categories as category>
120 <#if category.getName()!="ALL">
121 <#assign categoryName=category.getName()>
122 </#if>
123 </#list>
124 </#if>
125
126
127<#if blog!="">
128<div class="bg_blue_gradient pt-5 pb_150">
129 <div class="fixed">
130 <div class="py-2">
131 <span class="font_10 bg_orange white p-2 rounded">${categoryName}</span>
132 <h1 class="semi-bold white mt-3">${blog.getTitle() }</h1> <small class="font_16 fn_sm"><@liferay_reading_time["reading-time"] displayStyle="simple" model=blog /> read</small>
133 <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>
134
135 <span class="white"><img src="/o/manipal-cigna-theme/images/icons/eye-white.png" class="mr-2">
136 <@liferay_ui["message"] arguments=assetEntry.getViewCount() key=(assetEntry.getViewCount()==1)?then("x-view", "x-views") /></span>
137 </div>
138 </div>
139 </div>
140 <div class="py-5">
141 <div class="fixed">
142 <div class="card p-5 round mt_-150 wellnes_card">
143
144 <p class="font_16">${blog.getContent()}</p>
145 </div>
146 </div>
147 </div>
148
149</#if>
150
151<script type="text/javascript">
152$('.lfr-btn-label').html('POST <i class="fa fa-angle-right"></i>');
153
154$('.rating-element').click(function(){
155 $('.textStatus').removeClass('hide');
156});
157</script>