1#set ($tagsService = $portal.getClass().forName("com.liferay.portlet.asset.service.AssetTagServiceUtil").getMethod("getService", null).invoke(null, null))
2#set ($journalArticleResourceService = $portal.getClass().forName("com.liferay.portlet.journal.service.JournalArticleResourceLocalServiceUtil").getMethod("getService", null).invoke(null, null))
3#set ($catLocalService = $portal.getClass().forName("com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil").getMethod("getService", null).invoke(null, null))
4
5#set ($longGroupId = $getterUtil.getLong($groupId))
6
7#set ($articleResourcePK = $journalArticleResourceService.getArticleResourcePrimKey($longGroupId, $reserved-article-id.data))
8
9## get article's category names by primaryKey
10#set($articleCatNames = $catLocalService.getCategoryNames("com.liferay.portlet.journal.model.JournalArticle", $articleResourcePK))
11
12
13<div class="story">
14 #if($isCampaignPage && $isCampaignPage.data == true)
15 <!-- <div class="campaign_cont">
16 <div class='c_banner'>
17 <img src="http://i.imgur.com/pqYAxPm.png" /></div>
18 <div>
19 </div>
20</div>
21-->
22
23 #end
24 <div class="col_two_thirds">
25
26 #if($Fixed-Body-Video && $Fixed-Body-Video.data != "")
27 <div class="video-container">$Fixed-Body-Video.data</div>
28 #elseif($Large-Teaser-Image && $Large-Teaser-Image.data != "")
29 <meta property="og:image" content="$Large-Teaser-Image.data"/>
30 <img class="main" src="$Large-Teaser-Image.data" alt="$Full-Title.data"/>
31 #elseif($Fixed-Body-Photo && $Fixed-Body-Photo.data != "")
32 <meta property="og:image" content="$Fixed-Body-Photo.data"/>
33 <img src="$Fixed-Body-Photo.data" alt="$Full-Title.data"/>
34 #end
35
36 #if($Teaser_Caption && $Teaser_Caption.data != "")
37 <div class="caption font_copy_caption">
38 $Teaser_Caption.data
39 </div>
40 #end
41 <h1 class="font_story_header">$Full-Title.data</h1>
42 #if($Sub-Heading && $Sub-Heading.data != "")
43 <h2 class="subhead font_section_header_735E5E_16pt">$Sub-Heading.data</h2>
44 #end
45 <p>
46 <span class="attribution font_copy_attribution">
47 Posted:
48 $dateTool.format("EEE, MMM d, yyyy",
49 $dateTool.toDate("EEE, dd MMM yyyy hh:mm:ss Z",
50 $reserved-article-display-date.getData()), $locale)
51 </span>
52 </p>
53
54 $Content.data
55
56 </div>
57
58 #foreach($item in $quote.getSiblings())
59 #if($item && $item.data != "")
60 <div class="col" style="margin-top:25%;">
61 <!-- Partial: _quote.haml -->
62 <!-- Start of .quotation container -->
63 <div class="quotation">
64 <span class="quote font_section_header_58595B_14pt">
65 $item.data”
66 </span>
67 <span class="person font_copy_3F2323_10pt_400">
68 $item.quote_author.data
69 </span>
70 <span class="title font_copy_735E5E_9pt">
71 $item.quote_author_title.data
72 </span>
73 </div>
74 <!-- End of .quotation container -->
75 </div>
76 #end
77 #end
78
79 <div class="col_full">
80 <div class="social_icons">
81 <!-- AddThis Button BEGIN -->
82 <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
83 <a class="addthis_button_facebook"></a>
84 <a class="addthis_button_twitter"></a>
85 <a class="addthis_button_google_plusone_share"></a>
86 <a class="addthis_button_email"></a>
87 <a class="addthis_button_compact"></a><a class="addthis_counter addthis_bubble_style"></a>
88 </div>
89 <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ccooper155"></script>
90 <!-- AddThis Button END -->
91 <div class="clear"></div>
92 </div>
93 <div class="tags">
94
95Tags:
96 ## here are example link URLS. We need to convert the categories above into links
97 #foreach ($catName in $articleCatNames)
98 #if($catName != "Story")
99 <a href="/stories/$catName.replace(' ','-').toLowerCase()">$catName</a>
100 #end
101 #end
102
103 </div>
104 </div>
105 <div class="col_two_thirds">
106 <hr>
107 <!-- Partial: _story_comment_section.haml -->
108<!-- Start of .story_comment_section#comments container -->
109<div class="story_comment_section" id="comments">
110 <!-- Partial: _story_new_comment.haml -->
111<!-- Start of .story_new_comment container -->
112<div class="story_new_comment">
113 <div id="disqus_thread"></div>
114 <script type="text/javascript">
115 /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
116 var disqus_shortname = 'nufoundation'; // required: replace example with your forum shortname
117
118 /* * * DON'T EDIT BELOW THIS LINE * * */
119 (function() {
120 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
121 dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
122 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
123 })();
124 </script>
125 <noscript>Please enable JavaScript to view the comments</noscript>
126</div>
127
128</div>
129<!-- End of .story_comment_section#comments container -->
130 </div>
131</div>
132<!--FOUNDATIONARTICLE
133<div class="col announcement">
134 <a href="/-/$reserved-article-title.data.replace(" - "," ").replace(" ", "-").replace("'", "-").replace("$","").replace(",","").toLowerCase()">
135 <h3>$Full-Title.data</h3>
136 </a>
137 <p>$reserved-article-description.data</p>
138</div>
139ENDFOUNDATION-->
140
141<!--MAINARTICLEBREAK
142<div class="story_preview">
143 <h3 class="font_copy_category_label category">
144 #if($Display-Category && $Display-Category.data != "")
145 $Display-Category.data
146 #else
147 News
148 #end
149 </h3>
150 <a href="/-/$reserved-article-title.data.replace(" - "," ").replace(" ", "-").replace("'", "-").replace("$","").replace(",","").toLowerCase()">
151 #if($Large-Teaser-Image && $Large-Teaser-Image.data != "")
152 <img src="$Large-Teaser-Image.data" alt="$Full-Title.data" />
153 #end
154 </a>
155 <div class="story_graph">
156 <a href="/-/$reserved-article-title.data.replace(" - "," ").replace(" ", "-").replace("'", "-").replace("$","").replace(",","").toLowerCase()">
157 <h2>$Full-Title.data</h2>
158 </a>
159 <p>$reserved-article-description.data</p>
160 </div>
161 <span class="attribution font_copy_attribution">
162 Posted:
163 $dateTool.format("EEE, MMM d, yyyy",
164 $dateTool.toDate("EEE, dd MMM yyyy hh:mm:ss Z",
165 $reserved-article-display-date.getData()), $locale)
166
167 <a class="num_comments" href="/-/$reserved-article-title.data.replace(" - "," ").replace(" ", "-").replace("'", "-").replace("$","").replace(",","").toLowerCase()#disqus_thread">
168 <div class="colored_image_story_num_comments_hang"></div>
169 </a>
170 </span>
171</div>
172ENDMAINARTICLEBREAK-->
173
174<!--ARTICLEBREAK
175<div class="story_preview">
176 <h3 class="font_copy_category_label category">
177 #if($Display-Category && $Display-Category.data != "")
178 $Display-Category.data
179 #else
180 News
181 #end
182 </h3>
183 <a href="/-/$reserved-article-title.data.replace(" - "," ").replace(" ", "-").replace("'", "-").replace("$","").replace(",","").toLowerCase()">
184 #if($Small-Teaser-Image && $Small-Teaser-Image.data != "")
185 <img src="$Small-Teaser-Image.data" alt="$Full-Title.data" />
186 #end
187 </a>
188 <div class="story_graph">
189 <a href="/-/$reserved-article-title.data.replace(" - "," ").replace(" ", "-").replace("'", "-").replace("$","").replace(",","").toLowerCase()">
190 <h2>$Full-Title.data</h2>
191 </a>
192 <p>$reserved-article-description.data</p>
193 </div>
194 <span class="attribution font_copy_attribution">
195 Posted:
196 $dateTool.format("EEE, MMM d, yyyy",
197 $dateTool.toDate("EEE, dd MMM yyyy hh:mm:ss Z",
198 $reserved-article-display-date.getData()), $locale)
199 <a class="num_comments" href="/-/$reserved-article-title.data.replace(" - "," ").replace(" ", "-").replace("'", "-").replace("$","").replace(",","").toLowerCase()#disqus_thread">
200 <div class="colored_image_story_num_comments_hang"></div>
201 </a>
202 </span>
203</div>
204END-->