Se ha producido un error al procesar la plantilla.
Expression main_image_doc is undefined on line 25, column 18 in 10154#10192#5155686.
1<#-- Usabi.es 2016 --> 
2<#assign displaydate = .vars['reserved-article-display-date'].data > 
3<#assign displaydate = displaydate?string> 
4<#attempt> 
5    <#assign displaydate = displaydate?datetime("EEE, d MMM yyyy HH:mm:ss Z")> 
6<#recover> 
7    <#assign originalLocale = locale> 
8    <#setting locale = 'en_US'> 
9    <#assign displaydate = displaydate?datetime("EEE, d MMM yyyy HH:mm:ss Z")> 
10    <#setting locale = originalLocale>     
11</#attempt> 
12<div class="ig-view-post"> 
13    <h4 class="ig-view-post-category">${text_category.getData()}</h4> 
14    <h1>${.vars['reserved-article-title'].data}</h1> 
15    <h3 class="ig-view-post-subtitulo">${Subtítulo.getData()}</h3> 
16    <span class="ig-view-post-date">${displaydate}</span> 
17     
18 
19    <span class="ig-view-post-short">${intro_text.getData()}</span> 
20 
21    <div> 
22        <#if video.getData() != ''> 
23            <div class="ig-video">${video.getData()}</div> 
24        <#else> 
25            <#if main_image_doc.getData() !=''> 
26              <img class="main-image"alt="Imagen principal" src="${main_image_doc.getData()}"/> 
27            </#if> 
28        </#if> 
29        <br> 
30        <#assign JournalArticleService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleService")> 
31        ${full_content.getData()} 
32 
33        <#if flickr.getData() != ''> 
34            <div class="ig-gallery">${flickr.getData()}</div> 
35        </#if> 
36 
37        <#if slides.getSiblings()?size gt 1> 
38	        <@slider2 /> 
39	    </#if> 
40	     
41	     
42    </div> 
43    <#assign documents = false> 
44    <#list Documentos_y_multimedia5979.getSiblings() as cur_Documentos_y_multimedia5979> 
45        <#if cur_Documentos_y_multimedia5979.getData() != ""> 
46            <#assign documents = true> 
47    	</#if> 
48    </#list> 
49    <#if documents> 
50        <div class="ig-pdf"> 
51        	<#list Documentos_y_multimedia5979.getSiblings() as cur_Documentos_y_multimedia5979> 
52        		<a href="${cur_Documentos_y_multimedia5979.getData()}"> 
53        			${languageUtil.format(locale, "download-x", "PDF")} 
54        		</a> 
55        	</#list> 
56        </div> 
57    </#if> 
58     
59    <div class="ig-tags"> 
60            <#assign journalArticleId = .vars['reserved-article-id'].data> 
61        <#assign journalArticleResourceLocalServiceUtil = staticUtil["com.liferay.portlet.journal.service.JournalArticleResourceLocalServiceUtil"]> 
62        <#assign assetTagLocalServiceUtil = staticUtil["com.liferay.portlet.asset.service.AssetTagLocalServiceUtil"]> 
63 
64        <#assign articleResourcePK = journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(groupId, journalArticleId)/> 
65        <#assign categoryList=assetTagLocalServiceUtil.getTags("com.liferay.portlet.journal.model.JournalArticle",articleResourcePK) > 
66        <#if categoryList?size gt 0> 
67            <div class="ig-view-post-tag tag">Etiquetado en: 
68            <#list categoryList as categoryList>     
69                <a href="#">${categoryList.getName()}</a> 
70            </#list> 
71            </div> 
72        </#if> 
73    </div> 
74</div> 
75 
76<#macro slider2> 
77	<#assign heightParam = 400/> 
78	<#assign minHeightParam = 150/> 
79	<#assign contentId = "slider-view-post-id" /> 
80 
81<div class="camera_wrap" id="${contentId}"> 
82	<#list slides.getSiblings() as slide> 
83	    <#if slide.image_doc.data !=""> 
84	        <#assign slide_image = slide.image_doc /> 
85	    </#if> 
86		<div data-thumb="${slide_image.data}" data-src="${slide_image.data}"> 
87			<div class="fadeIn camera_effected camera_content"> 
88	            <h2>${slide.data}</h2> 
89	            <#if slide.link.data!=""> 
90		            <a href="${slide.link.data}" class="slider-link"> 
91		            	<span>${slide.content.data}</span> 
92		            </a> 
93	            </#if> 
94	        </div> 
95	    </div> 
96	</#list> 
97</div> 
98<script> 
99		jQuery(function(){ 
100			jQuery('#${contentId}').camera({ 
101				height: '${heightParam}', 
102                minHeight: '${minHeightParam}', 
103                pauseOnClick: true, 
104                hover: true, 
105                fx: 'random', 
106                loader: 'pie', 
107                pagination: true, 
108                thumbnails: false, 
109                time: 3000, 
110                transPeriod: 600, 
111                alignment: 'center', 
112                autoAdvance: true, 
113                mobileAutoAdvance: true, 
114                portrait: true, 
115                barDirection: 'leftToRight', 
116                imagePath: '', 
117                navigationHover: true, 
118                navigation: true, 
119                playPause: true, 
120                barPosition: 'bottom', 
121                easing: 'easeInOutExpo', 
122                mobileFx: '', 
123                loaderColor: '#eeeeee', 
124                loaderPadding: 2, 
125                loaderStroke: 7, 
126                loaderOpacity: .8, 
127                gridDifference: 250, 
128                pieDiameter: 38, 
129                rows: 4, 
130                slicedCols: 12, 
131                slicedRows: 8, 
132                loaderBgColor: '#222222', 
133                piePosition: 'rightTop', 
134                slideOn: 'random', 
135                mobileNavHover: true, 
136                opacityOnGrid: true, 
137                overlayer: true, 
138                onEndTransition: function(){ 
139  					var ind = $('#slider-HOME-SLIDER-id.camera_wrap').find('.camera_target_content .cameraContent.cameracurrent .imgFake').index(); 
140  					if(ind != -1){ 
141  						$('.camera_wrap .camera_target_content').css('z-index' , '2'); 
142  					}else{ 
143  						$('.camera_wrap .camera_target_content').css('z-index' , '-1'); 
144
145				}        
146			}); 
147			 
148		}); 
149	</script> 
150</#macro> 

Banners Banners

Eventos Eventos

Atrás Agenda del 17 de diciembre de 2017 Adelante

Redes Sociales Redes Sociales