An error occurred while processing the template.
Error on line 17, column 25 in 10154#10192#11688 journalArticleLocalService.getArticle(134886,.vars['reserved-article-id'].data) is undefined. It cannot be assigned to article_db
1<#if request['theme-display']?? >
2
3 <#if request['attributes']['RENDER_PORTLET_COLUMN_ID']?? >
4 <#assign blok = request['attributes']['RENDER_PORTLET_COLUMN_ID']?split('-')>
5
6 <#if (blok?size > 2) >
7 <#assign wh = blok[2]?split('x')>
8 <#assign w = wh[0]>
9 <#assign h = wh[1]>
10
11 <#assign url_portal = request['theme-display']['portal-url']>
12 <#assign url_public = request['theme-display']['path-friendly-url-public']>
13 <#assign pathImages = request['theme-display']['path-theme-images']>
14 <#assign url_test = request['attributes']['CURRENT_URL']>
15
16 <#assign journalArticleLocalService = serviceLocator.findService('com.liferay.portlet.journal.service.JournalArticleLocalService')>
17 <#assign article_db = journalArticleLocalService.getArticle(11234,.vars['reserved-article-id'].data)>
18 <#assign link_page = "http://${url_portal}${url_public}/general/detalle?group_id=${article_db.getResourcePrimKey()}">
19 <#assign link_sec_page = '#'>
20
21 <#if blok[2] == "1008x000">
22 <div class="row collapse content-blocks white-section block-style">
23 <div class="large-12 columns white black-text">
24 <div class="block-content title-border" >
25 <h4 style="text-shadow: none;">${titulo.data}</h4>
26 <p><span style="font-size: 15px;"><#if abstract?? && abstract.data != "">${abstract.data}</#if></span></p>
27 <p style="font-size: 15px;">${detalle.data}</p>
28 </div>
29 </div>
30 </div>
31 <#elseif blok[2] == "1008x100">
32 <a href="https://www.linkedin.com/company/iteso" class="linkedin-block">Sigue las últimas noticias laborales en Linkedin ITESO</a>
33 <#elseif blok[2] == "168x170">
34 <style>
35 @media only screen and (max-width: 768px){
36 .blue-4{
37 width: auto;
38 }
39 }
40 </style>
41 <a href="${link_page}" class="wimg168170"><span style="text-shadow: 0 0 6px black,0 0 6px black;" >${titulo.data}</span></a>
42 <#else>
43 <style>
44
45 @media only screen and (min-width: 769px){
46 .bgz-${.vars['reserved-article-id'].data}{
47 width: ${w}px;
48 }
49 .imagen-${.vars['reserved-article-id'].data}.top-right.wimg18250{
50 width: 504px;
51 }
52 .wimg3500-${.vars['reserved-article-id'].data}{
53 width: 336px;
54 height: 500px;
55 }
56 .mobile383{
57 height: 500px;
58 }
59 }
60 @media only screen and (max-width: 1100px) and (min-width: 769px) {
61 .row.block-style .block-content.right-cont{
62 padding-right: 50px;
63 }
64 }
65
66 @media only screen and (min-width: 1008px){
67 .block-style.cw-80 .block-content.bcw25250{
68 width: 100%;
69 }
70 }
71
72 @media only screen and (max-width: 769px){
73 .wimg3500-${.vars['reserved-article-id'].data}{
74 width: 769px;
75 height: 383px;
76 }
77 .mobile383{
78 height: 383px;
79 }
80 .block-style.cw-80 .block-content.bcw25250{
81 width: 90%;
82 }
83 .blue-4 .wimg168170{
84 width: auto;
85 }
86 }
87
88
89 @media only screen and (max-width: 769px) and (min-width: 641px){
90 .bgz-${.vars['reserved-article-id'].data}{
91 width: 769px;
92 }
93 .imagen-${.vars['reserved-article-id'].data}.top-right.wimg18250{
94 width: 360px;
95 background-position: 50% top;
96 }
97 .blue-4{
98 width: 768px;
99 }
100 .w25250{
101 width: 384px;
102 height: 250px;
103 }
104 .imagen-${.vars['reserved-article-id'].data}{
105 width: 768px;
106 height: <#if h == "500" || h == "400" > 383px; <#else> 250px; </#if>
107 background-position: 50% center;
108 }
109 }
110
111
112 @media only screen and (max-width: 640px) and (min-width: 481px){
113 bgz-${.vars['reserved-article-id'].data}{
114 width: 640px;
115 }
116 .imagen-${.vars['reserved-article-id'].data}.top-right.wimg18250{
117 width: 360px;
118 background-position: 50% top;
119 }
120 .blue-4{
121 width: 640px;
122 }
123 .imagen-${.vars['reserved-article-id'].data}{
124 width: 640px;
125 height: <#if h == "500" || h == "400" > 383px; <#else> 250px; </#if>
126 background-position: 50% top;
127 }
128 .w25250{
129 width: 320px;
130 height: 250px;
131 }
132 }
133
134
135 @media only screen and (max-width: 480px) and (min-width: 381px){
136 bgz-${.vars['reserved-article-id'].data}{
137 width: 480px;
138 }
139 .imagen-${.vars['reserved-article-id'].data}.top-right.wimg18250{
140 display: none;
141 }
142 .blue-4{
143 width: 480px;
144 }
145 .imagen-${.vars['reserved-article-id'].data}{
146 width: 480px;
147 height: <#if h == "500" || h == "400" > 383px; <#else> 250px; </#if>
148 background-position: 50% top;
149 }
150 .w25250{
151 width: 240px;
152 height: 250px;
153 }
154 }
155 @media only screen and (max-width: 380px){
156 bgz-${.vars['reserved-article-id'].data}{
157 width: 380px;
158 }
159 .imagen-${.vars['reserved-article-id'].data}.top-right.wimg18250{
160 display: none;
161 }
162 .blue-4{
163 width: 380px;
164 }
165 .imagen-${.vars['reserved-article-id'].data}{
166 width: 380px;
167 height: <#if h == "500" || h == "400" > 383px; <#else> 250px; </#if>
168 background-position: 50% top;
169 }
170 .w25250{
171 width: 190px;
172 height: 250px;
173 }
174 }
175 </style>
176
177 <#if blok[2] == "1008x500" || blok[2] == "1008x400" >
178 <div class="row collapse content-blocks2 full-block block-style main-stage">
179 <#elseif blok[2] == "1008x250" || blok[2] == "252x500" || blok[2] == "336x500" >
180 <#if w == "1008">
181 <div class="blue-4 bgz-${.vars['reserved-article-id'].data}" style="height: ${h}px;">
182 <div class="imagen-${.vars['reserved-article-id'].data} top-right wimg18250" style="height: 250px; "></div>
183 <div class="row collapse content-blocks block-style cw-60">
184 <#else>
185 <style>
186 .imagen-${.vars['reserved-article-id'].data}{
187 background-position: 50% top;
188 }
189 </style>
190 <div class="blue-7 wimg3500-${.vars['reserved-article-id'].data}" >
191 <div class="imagen-${.vars['reserved-article-id'].data} bottom-right" ></div>
192 <div class="row collapse content-blocks block-style cw-80">
193 </#if>
194 <#else>
195 <div class="row collapse content-blocks block-style cw-80">
196 </#if>
197
198 <style>
199 @media only screen and (max-width: 768px){
200 .content-blocks.h500 .columns {
201 height: 383px;
202 }
203 }
204 </style>
205 <div class="large-12 columns">
206 <#if img.data != "" >
207 <#if blok[2] == "1008x250" >
208 <div class="blue17-shadow" style="height: 250px; ">
209 <#elseif blok[2] == "252x500" || blok[2] == "336x500">
210 <div class="mobile383" >
211 </#if>
212 </#if>
213
214 <#if blok[2] != "252x500" && blok[2] != "336x500" && blok[2] != "504x500">
215 <style>
216 @media only screen and (min-width: 769px){
217 .imagen-${.vars['reserved-article-id'].data}{
218 width: ${w}px;
219 height:${h}px;
220 background-position: 50% top;
221 }
222 }
223 </style>
224 <#else>
225 <style>
226 @media only screen and (min-width: 769px){
227 .imagen-${.vars['reserved-article-id'].data}{
228 width: ${w}px;
229 height:${h}px;
230 background-position: 50% top;
231 }
232 }
233 </style>
234 </#if>
235
236 <#if blok[2] != "1008x250" && blok[2] != "252x500" && blok[2] != "336x500">
237 <#if blok[2] == "252x250">
238 <div class="imagen-${.vars['reserved-article-id'].data} w25250">
239 <#else>
240 <div class="imagen-${.vars['reserved-article-id'].data}">
241 </#if>
242 </#if>
243
244 <#if blok[2] == "1008x500" || blok[2] == "1008x000">
245 <div class="block-content right-cont" style="z-index: 0;">
246 <#elseif blok[2] == "252x250">
247 <div class="block-content bcw25250">
248 <#else>
249 <div class="block-content ">
250 </#if>
251
252 <#if tag?? && tag.data != "">
253 <#assign tagref = tag.data?split(' ')>
254 <#assign tfhash = "">
255 <#list tagref as tr>
256 <#if tr != ' ' || tr != '' >
257 <#assign trtag = tr?substring(1)>
258 <#assign tfhash = "${tfhash}https://twitter.com/hashtag/${trtag}?src=hash">
259 <#if tr_has_next>
260 <#assign tfhash = "${tfhash},">
261 </#if>
262 </#if>
263 </#list>
264 </#if>
265
266 <#if blok[2] == "504x250">
267 <#if compartir?? && compartir.data?string != "true">
268 <#if tag?? && tag.data != "">
269 <#assign tfpublic = tfhash?split(',')>
270 <#assign blank = " ">
271 <#list tfpublic as tfp>
272 <a class="hash-tag" href="${tfp}" style="float: left; padding-right: 5px;">${tagref[tfp_index]}</a>
273 </#list>
274 <br><br>
275 <#if (tag.data?length > 50) >
276 <br><br>
277 </#if>
278 </#if>
279 </#if>
280 <#elseif blok[2] != "252x250">
281 <#if tag?? && tag.data != "">
282 <#assign tfpublic = tfhash?split(',')>
283 <#assign blank = " ">
284 <#list tfpublic as tfp>
285 <a class="hash-tag" href="${tfp}" style="float: left; padding-right: 5px;">${tagref[tfp_index]}</a>
286 </#list>
287 <br><br>
288 <#if (w == "336" && tag.data?length > 40) >
289 <br><br>
290 </#if>
291 </#if>
292 </#if>
293
294
295 <#if blok[2] != "252x250">
296 <#if seccion?? && seccion.data != ""> <span><div class="section-title">${seccion.data}</div></span></#if>
297 </#if>
298
299 <#if blok[2] == "1008x500" || blok[2] == "1008x400">
300 <h3 style="text-shadow: 0 0 6px black,0 0 6px black;" ><a href="${link_page}" >${titulo.data}</a></h3>
301 <#else>
302 <h5 style="text-shadow: 0 0 6px black,0 0 6px black;" ><a href="${link_page}" >${titulo.data}</a></h5>
303 </#if>
304
305 <#if blok[2] != "336x250" && blok[2] != "252x250">
306 <#if abstract?? && abstract.data != "">
307 <div class="hide-for-small">
308 <#if blok[2] != "1008x250">
309 <p style="text-shadow: 0 0 6px black,0 0 6px black;" >${abstract.data}</p>
310 <#else>
311 <p style="text-shadow: 0 0 6px black,0 0 6px black;" >${abstract.data}</p>
312 </#if>
313 </div>
314 </#if>
315 </#if>
316 <#if blok[2] != "336x250" && blok[2] != "252x250">
317 <#if compartir?? && compartir.data?string == "true">
318 <div class="share-btn clearfix"><#if blok[2] != "252x500"><span><div class="hide-for-small">Compartir</div></span></#if>
319 <ul class="sn-list">
320
321 <#assign tit_fb = titulo.data>
322 <#if tit_fb?contains("#")>
323 <#assign tit_fb = tit_fb?replace("#","%23")>
324 </#if>
325 <#if tit_fb?contains('"')>
326 <#assign tit_fb = tit_fb?replace('"',"%22")>
327 </#if>
328 <#assign abs_fb = abstract.data>
329 <#if abs_fb?contains("#")>
330 <#assign abs_fb = abs_fb?replace("#","%23")>
331 </#if>
332 <#if abs_fb?contains('"')>
333 <#assign abs_fb = abs_fb?replace('"',"%22")>
334 </#if>
335
336 <#assign share = "https://www.facebook.com/v3.2/dialog/feed?app_id=316450088523062&link=${link_page}&display=popup&name=${tit_fb}&caption=&description=${abs_fb}&ref=share">
337 <#assign share_tw = "https://twitter.com/share?hashtags=">
338 <#if img?? && img.data != "">
339 <#assign share = "${share}&picture=http://${url_portal}${img.data}">
340 </#if>
341 <#if tag?? && tag.data != "">
342 <#assign tagslist = tag.data?split(' ')>
343 <#assign hashtag = tagslist[0]?substring(1)>
344 <#assign share = "${share}&actions={%22name%22:%22%23${hashtag}%22,%20%22link%22:%22https://www.facebook.com/hashtag/${hashtag}%22}">
345
346 <#assign htconcat = "">
347 <#list tagslist as ht>
348 <#assign ht_hash = ht?substring(1)>
349 <#assign htconcat = "${htconcat}${ht_hash}">
350 <#if ht_has_next>
351 <#assign htconcat = "${htconcat},">
352 </#if>
353 </#list>
354 <#assign share_tw = "${share_tw}${htconcat}">
355 </#if>
356 <#assign redirect_uri = "http://${url_portal}${url_public}/general/popupclose">
357 <#assign counturl = "https://twitter.com/ITESO">
358 <#assign share = "${share}&redirect_uri=${redirect_uri}">
359 <#assign share_tw = "${share_tw}&url=${link_page}&text=${tit_fb}&counturl=${counturl}&related=ITESO">
360
361 <li><a title="Twitter" onClick='window.open("${share_tw}", "_blank", "resizable=yes, width=550, height=420");'><img alt="Twitter" src="${pathImages}/img/icons/twitter-share-icon.png"></a></li>
362 <li><a title="Facebook" onClick='window.open("${share}", "_blank", "resizable=yes, width=650, height=320");'><img alt="Facebook" src="${pathImages}/img/icons/fb-share-icon.png"></a></li>
363 </ul>
364 </div>
365 </#if>
366 </#if>
367 </div>
368 </div>
369 <#if img.data != "" >
370 <#if blok[2] == "1008x250" || blok[2] == "252x500" || blok[2] == "336x500">
371 </div>
372 </#if>
373 </#if>
374 </div>
375 </div>
376
377 </#if>
378
379 </#if>
380
381 </#if>
382
383<#else>
384</#if>