An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy1030.getEntry(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy1030 object "com.liferay.mentions.internal.service.MentionsBlogsEntryServiceWrapper@6ea1bc25"; 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] ----
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.getCategories("com.liferay.blogs.model.BlogsEntry",assetEntry.getClassPK()) />
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
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
210</#if>
211
212
213
214
215<script type="text/javascript">
216var userName='${themeDisplay.getUser().getFullName()}';
217$( ".sticker-primary" ).after( "<p class='font_18 ml-3 semi-bold mb-0'>"+userName+"</p>" );
218$('.lfr-btn-label').html('POST <i class="fa fa-angle-right"></i>');
219
220
221$(document).ready(function(){
222 $(document).on("click", ".copy-btn", function(){
223 value = $(this).data('clipboard-text'); //Upto this I am getting value
224
225 var $temp = $("<input>");
226 $("body").append($temp);
227 $temp.val(value).select();
228 document.execCommand("copy");
229 $temp.remove();
230 });
231});
232</script>