An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy629.getEntry(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy629 object "com.liferay.blogs.reading.time.internal.service.BlogsReadingTimeEntryLocalServiceWrapper@115a4a"; 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 110, column 14] - Reached through: #assign-container [in template "20101#20128#38046" at line 110, column 5] ----
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 <#assign blog=BlogsEntryLocalService.getEntry(themeDisplay.getScopeGroupId(),url)
111 assetEntry = assetEntryLocalService.getEntry("com.liferay.blogs.model.BlogsEntry", blog.getEntryId()) />
112 <#assign categories=assetCategoryLocalService.getAssetEntryAssetCategories(assetEntry.getEntryId()) />
113 <#if categories?has_content>
114 <#list categories as category>
115 <#if category.getName()!="ALL">
116 <#assign categoryName=category.getName()>
117 </#if>
118 </#list>
119 </#if>
120
121
122<#if blog!="">
123<div class="bg_blue_gradient pt-5 pb_150">
124 <div class="fixed">
125 <div class="py-2">
126 <span class="font_10 bg_orange white p-2 rounded">${categoryName}</span>
127 <h1 class="semi-bold white mt-3">${blog.getTitle() } <small class="font_16 fn_sm"><@liferay_reading_time["reading-time"] displayStyle="simple" model=blog /> read</small></h1>
128 <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>
129 <!-- <span class="mr-5 d-flex white pull-left"><@liferay_ui["ratings"] className="com.liferay.blogs.model.BlogsEntry" classPK=blog.getEntryId() type="like"/> <p class="textStatus hide">Like</p> </span> -->
130 <span class="white"><img src="/o/manipal-cigna-theme/images/icons/eye-white.png" class="mr-2">
131 <@liferay_ui["message"] arguments=assetEntry.getViewCount() key=(assetEntry.getViewCount()==1)?then("x-view", "x-views") /></span>
132 </div>
133 </div>
134 </div>
135 <div class="py-5">
136 <div class="fixed">
137 <div class="card p-5 round mt_-150 wellnes_card">
138
139 <p class="font_16">${blog.getContent()}</p>
140 </div>
141 </div>
142 </div>
143 <!-- <div class="pb-5">
144 <div class="fixed">
145 <h2 class="semi-bold mb-4">Comments</h2>
146 <@liferay_comment["discussion"]
147 className="com.liferay.blogs.model.BlogsEntry"
148 classPK=blog.getEntryId()
149 formName=""
150 ratingsEnabled=false
151 redirect=themeDisplay.getURLCurrent()
152 userId=themeDisplay.getUserId()
153 />
154 </div>
155 </div> -->
156</#if>
157
158<script type="text/javascript">
159$('.lfr-btn-label').html('POST <i class="fa fa-angle-right"></i>');
160
161$('.rating-element').click(function(){
162 $('.textStatus').removeClass('hide');
163});
164</script>