1<#-- <#setting time_zone="Australia/Melbourne">
2 <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
3
4 <#if scopeGroupId gt 0>
5
6 <#assign scopeGroupIdLong = getterUtil.getLong(scopeGroupId)?long>
7
8 <#assign reservedArticleId = .vars['reserved-article-id'].data>
9
10 <#if scopeGroupIdLong?has_content && reservedArticleId?has_content>
11
12 <#assign article = journalArticleLocalService.getArticle(scopeGroupIdLong, reservedArticleId)>
13 <#assign description = article.getDescription() />
14 <style>
15 .publish-date {
16 color: #5D5D5D;
17 padding-bottom: 10px;
18 font-size: 12px;
19 text-align: left;
20 }
21
22 .taglib-header {
23 display: none;
24 }
25
26 .portlet-boundary_pagelead_WAR_empointcontentviewerportlet_ {
27 display: none;
28 }
29 </style>
30 <article>
31 <h2>${.vars['reserved-article-title'].getData()}</h2>
32 <div class='publish-date'>Published ${article.getDisplayDate()?string["dd/MM/yyyy"]}</div>
33 <section class="lead-content">
34 ${description?replace('\n', '<br/>')}
35 </section>
36 <section>
37 ${body.getData()}
38 </section>
39 <article>
40
41 <#if request['attributes']?has_content && request['attributes'].LAYOUT?has_content && request['attributes'].LAYOUT?index_of("privateLayout=false") gt -1>
42 <nav style="float: right; margin-top: 10px; min-height: 32px;">
43 <div class="addthis_inline_share_toolbox"></div>
44 </nav>
45 <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5188996438bff092"></script>
46 </#if>
47 <#else>
48 <div>Please use this template to display Web Content</div>
49 </#if>
50 <#else>
51 <article>
52 <h2>${.vars['reserved-article-title'].getData()}</h2>
53 <section>
54 ${body.getData()}
55 </section>
56 <article>
57 </#if> -->
58
59
60
61
62<#-- updated one -->
63
64<#setting time_zone="Australia/Melbourne">
65
66 <#if scopeGroupId gt 0>
67
68 <#assign scopeGroupIdLong = getterUtil.getLong(scopeGroupId)?long>
69
70 <#assign reservedArticleId = .vars['reserved-article-id'].data>
71
72 <#if scopeGroupIdLong?has_content && reservedArticleId?has_content>
73
74 <#assign description = .vars["reserved-article-description"].data />
75
76 <#assign inputFormat = "EEE, dd MMM yyyy HH:mm:ss Z">
77 <#assign outputFormat = "dd/MM/yyyy">
78
79 <#assign inputDate = .vars["reserved-article-display-date"].data?datetime(inputFormat)>
80 <#assign outputDate = inputDate?string(outputFormat)>
81
82 <style>
83 .publish-date {
84 color: #5D5D5D;
85 padding-bottom: 10px;
86 font-size: 12px;
87 text-align: left;
88 }
89
90 .taglib-header {
91 display: none;
92 }
93
94 .portlet-boundary_pagelead_WAR_empointcontentviewerportlet_ {
95 display: none;
96 }
97 </style>
98 <article>
99 <h2>${.vars['reserved-article-title'].getData()}</h2>
100 <div class='publish-date'>Published ${outputDate}</div>
101 <section class="lead-content">
102 ${description?replace('\n', '<br/>')}
103 </section>
104 <section>
105 ${body.getData()}
106 </section>
107 <article>
108
109 <#if request['attributes']?has_content && request['attributes'].LAYOUT?has_content && request['attributes'].LAYOUT?index_of("privateLayout=false") gt -1>
110 <nav style="float: right; margin-top: 10px; min-height: 32px;">
111 <div class="addthis_inline_share_toolbox"></div>
112 </nav>
113 <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5188996438bff092"></script>
114 </#if>
115 <#else>
116 <div>Please use this template to display Web Content</div>
117 </#if>
118 <#else>
119 <article>
120 <h2>${.vars['reserved-article-title'].getData()}</h2>
121 <section>
122 ${body.getData()}
123 </section>
124 <article>
125 </#if>