@codigonuevo Propósito de 2025: ser unx tíx chill de cojones🫣 🎤 by @davidandu_ en laa alfombra roja de Spotify Equal #memes #2024 #alfombraroja #artistas ♬ sonido original - Código Nuevo
Se ha producido un error al procesar la plantilla.
Invocation of method 'addMetaTag' in  class com.liferay.portal.kernel.velocity.IterVelocityTools threw exception XYZ_E_INVALID_VELOCITY_META_TAGS_MAP_ZYX:Invalid parameters K: 'content' V: 'null'

[file IterVelocityTools.java, method addMetaTag, line 831] at 2293406/F/SCROLL_DETALLE[line 1387, column 28]
1<!-- SCROLL DETALLE -->
 
2#set($sort = "createdate")
 
3#set($criteria= "desc")
 
4#set($art_next = $articleToolbox.getSiblingArticle($sort, $criteria, "next"))
 
5#set($criteriab= "asc")
 
6#set($art_prev = $articleToolbox.getSiblingArticle($sort, $criteriab, "prev"))
 
7#set($sectionID = "#printAssignedSectionID_v1")
 
8#set($sectionName = "#printAssignedSection_v1")
 
9#set($templateId = $iterVelocityTools.getVelocityVariable("template_id")) 
 
10#set($varColorIter = $!iterVelocityTools.getVariable("0" , "color"))
 
11#set($canonicalUrl = $!articleToolbox.getArticleViewer("canonical"))
 
12#set ($date = $!iterVelocityTools.getVariable("0" , "date"))
 
13#set ($portalBeanLocator = $portal.getClass().forName('com.liferay.portal.kernel.bean.PortalBeanLocatorUtil'))
 
14#set ($dateFormatFactory = $portalBeanLocator.locate('com.liferay.portal.kernel.util.DateFormatFactoryUtil'))
 
15#set ($indexFormat = $dateFormatFactory.getSimpleDateFormat('EEE, dd MMM yyyy HH:mm:ss'))
 
16#set ($idCreateData = $indexFormat.parse($reserved-article-create-date.getData()))
 
17#set ($idModData = $indexFormat.parse($reserved-article-modified-date.getData()))
 
18#set ($xml =$articleContext.selectNodes('//section'))
 
19#set($nivel = 1)
 
20#set($pagname = "")
 
21#set($secc1 = "")
 
22#set($secc2 = "")
 
23#set($secc3 = "")
 
24#set($secc4 = "")
 
25#set($secc5 = "")
 
26
 
27#foreach ($nodexml in $xml ) 
 
28	#if($nivel < 4)
 
29		#set($secc = $htmlUtil.escape($!nodexml.attribute('name').getValue()))
 
30		#set($secc = $secc.replaceAll("\n", "") )
 
31		#set($secc = $secc.replaceAll(" ","-") )
 
32		#set($secc = $secc.toLowerCase() )
 
33		#set($secc_url = $htmlUtil.escape($!nodexml.attribute('url').getValue()))
 
34
 
35		#if($nivel == 1)
 
36			#set($secc1 = $secc)
 
37			#set($secc1_url = $secc_url)
 
38		#elseif($nivel == 2)
 
39			#set($secc2 = $secc)
 
40			#set($secc2_url = $secc_url)
 
41		#elseif($nivel == 3)
 
42			#set($secc3 = $secc)
 
43			#set($secc3_url = $secc_url)
 
44		#elseif($nivel == 2)
 
45			#set($secc4 = $secc)
 
46			#set($secc4_url = $secc_url)
 
47		#elseif($nivel == 5)
 
48			#set($secc5 = $secc)
 
49			#set($secc5_url = $secc_url)
 
50		#end
 
51		#set($nivel = $nivel + 1)
 
52		
 
53	#end
 
54#end
 
55## METADATOS ***********************************************
 
56#set($auxCatalagoTema = {})
 
57#getAcAssignedCatExtended_v1($auxCatalagoTema 'Topics')
 
58#set($auxCatalagoPersonajes = {})
 
59#getAcAssignedCatExtended_v1($auxCatalagoPersonajes 'personajes')
 
60## ***************AUTOR ********************
 
61#set($autorName = "")
 
62#set($autorfinal = "")
 
63#set($autorUrl = "")
 
64#set($hmAutores = {})
 
65#getAcAssignedCatExtended_v1($hmAutores "Author")
 
66#if($hmAutores.size() > 0)
 
67	#set($hmAutor = $hmAutores.get(0))
 
68	#set($autorName = $hmAutor.name)
 
69	#set($autorfinal = $hmAutor.friendlyname.replaceAll("-", " "))
 
70	#set($autorUrl = '/firma/-/meta/' + $hmAutor.friendlyname )
 
71#end
 
72#if($autorfinal == "")
 
73	#set($autorfinal = "redaccion_cn")
 
74#end
 
75#set($ac-url = $articleContext.selectNodes('articlectx/url'))
 
76#set($xml-url = $ac-url.get(0).text)
 
77#set($url_actual = $!xml-url )
 
78
 
79## +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
80#set($NoPublicidad = false)									
 
81#getAcAssignedCatExtended_v1($hmTipoArt "tipo_articulo")
 
82#if($hmTipoArt.size() > 0)
 
83	#foreach ($hmTipo in $hmTipoArt)
 
84		#if($hmTipo.name == "Quitar Publicidad Videos")
 
85			#set($NoPublicidad = true)
 
86		#end
 
87
 
88	#end
 
89#end
 
90#set($Adsschedule = $!iterVelocityTools.getVariable('0','adschedule_video').trim())
 
91#set($Adsschedule = $Adsschedule.replaceAll("\[adunit-video\]","$!iterVelocityTools.getVariable('0','Ad_Unit_Video')").trim())
 
92#set($Adsschedule = $Adsschedule.replaceAll("\[custom_params\]","").trim())
 
93#set($Adsschedule = $Adsschedule.replaceAll("\[url\]","#siteUrl()$url_actual").trim())
 
94#set($Adsschedule = $Adsschedule.replaceAll("\[url-video\]","#siteUrl()$url_actual").trim())
 
95<!-- environment:  $environment  -->
 
96<div class="template-infinity detail " id="$reserved-article-id.data" id-prev="$!art_prev.reserved-article-id.data" id-next="$!art_next.reserved-article-id.data" id-section="$sectionID" canonicalurl="$canonicalUrl">
 
97
 
98	<script>
 
99		var group_id = $request.theme-display.scope-group-id;
 
100		var id_art_infinity = $reserved-article-id.data;
 
101		#if($iterVelocityTools.getVelocityVariable("teaseritemposition") == 1)
 
102			var teaser_first = true;
 
103			var n_noticia = 1;
 
104		#else
 
105			var teaser_first = false;
 
106			var n_noticia = n_noticia + 1;
 
107		#end
 
108		console.log("+++ teaseritemposition:  $iterVelocityTools.getVelocityVariable("teaseritemposition")");
 
109		console.log("+++ n_noticia: " + n_noticia);
 
110	</script>
 
111	
 
112	<div class="metadatos">#*
 
113		*##set($hmAutor = {})#*
 
114		*##getAcAssignedCatExtended_v1($hmAutor "Author")#*
 
115		*##if($hmAutor && $hmAutor.size() > 0)#*	
 
116			*##foreach ($elem in $hmAutor)#*
 
117				*#<div class="keywords" value="$elem.name" id="$elem.id" data-voc-name="author" data-voc-id=""/>#*
 
118			*##end#*
 
119		*##end#*
 
120		*##set($hmPersonajes = {})#*
 
121		*##getAcAssignedCatExtended_v1($hmPersonajes "personajes")#*
 
122		*##if($hmPersonajes && $hmPersonajes.size() > 0)#*	
 
123			*##foreach ($elem in $hmPersonajes)#*
 
124				*#<div class="keywords" value="$elem.name" id="$elem.id" data-voc-name="people" data-voc-id=""/>#*
 
125			*##end#*
 
126		*##end#*
 
127		*##set($hmGeografico = {})#*
 
128		*##getAcAssignedCatExtended_v1($hmGeografico "Location")#*
 
129		*##if($hmGeografico && $hmGeografico.size() > 0)#*
 
130			*##foreach ($elem in $hmGeografico)#*
 
131				*#<div class="keywords" value="$elem.name" id="$elem.id" data-voc-name="location" data-voc-id=""/>#*
 
132			*##end#*
 
133		*##end#*
 
134		*##set($hmOrganizaciones = {})#*
 
135		*##getAcAssignedCatExtended_v1($hmOrganizaciones "Companies")#*
 
136		*##if($hmOrganizaciones && $hmOrganizaciones.size() > 0)#*
 
137			*##foreach ($elem in $hmOrganizaciones)#*
 
138				*#<div class="keywords" value="$elem.name" id="$elem.id" data-voc-name="companies" data-voc-id=""/>#*
 
139			*##end#*
 
140		*##end#*
 
141		*##set($hmTemas = {})#*
 
142		*##getAcAssignedCatExtended_v1($hmTemas "Topics")#*
 
143		*##if($hmTemas && $hmTemas.size() > 0)	#*
 
144			*##foreach ($elem in $hmTemas)#*
 
145				*#<div class="keywords" value="$elem.name" id="$elem.id" data-voc-name="topics" data-voc-id=""/>#*
 
146			*##end#*
 
147		*##end#*
 
148	*#</div>
 
149		
 
150	$!iterVelocityTools.getAdContainer("D01_cpm_m")
 
151
 
152	<div id="col-12-scroll" class="col-12 container">
 
153		<div class="row top">
 
154			<div class="layout col-xs-12 col-md-12 portlet-column nopadding e_004_006">
 
155				<div class="bloque1" style="background-color: $varColorIter;">
 
156					<div class="cintillo_detail" style="display:flex;">
 
157						<ol class="iter-theme-news-breadcrumb" itemscope="" itemtype="http://schema.org/BreadcrumbList"> 
 
158							<li class="first last" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
 
159								<meta itemprop="position" content="1"/>
 
160								<a itemprop="item" title="$secc1" href="$secc1_url">
 
161									<span itemprop="name">$secc1</span>
 
162								</a> 
 
163							</li>
 
164							#if($secc2 != "")
 
165							<li class="" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
 
166								<meta itemprop="position" content="2"/>
 
167								<a itemprop="item" title="$secc2" href="$secc2_url">
 
168									<span itemprop="name">$secc2</span>
 
169								</a> 
 
170							</li>
 
171							#end
 
172							#if($secc3 != "")
 
173							<li class="" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
 
174								<meta itemprop="position" content="3"/>
 
175								<a itemprop="item" title="$secc3" href="$secc3_url">
 
176									<span itemprop="name">$secc3</span>
 
177								</a> 
 
178							</li>
 
179							#end
 
180							#if($secc4 != "")
 
181							<li class="" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
 
182								<meta itemprop="position" content="4"/>
 
183								<a itemprop="item" title="$secc4" href="$secc4_url">
 
184									<span itemprop="name">$secc4</span>
 
185								</a> 
 
186							</li>
 
187							#end
 
188							#if($secc5 != "")
 
189							<li class="" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
 
190								<meta itemprop="position" content="5"/>
 
191								<a itemprop="item" title="$secc5" href="$secc5_url">
 
192									<span itemprop="name">$secc5</span>
 
193								</a> 
 
194							</li>
 
195							#end
 
196						</ol>
 
197					</div>
 
198					##HEADTITLE TIT
 
199					<div class="headline artit" canonicalurl="$canonicalUrl" idart="$reserved-article-id.data">
 
200						<h1>#getFullContentTitleGeneral_v1</h1>
 
201					</div>
 
202					##SUBHEADLINE SUB
 
203					<div class="subheadline">
 
204						<h2>#getTeaserSubheadline_v1(false)</h2>
 
205					</div>
 
206					##INF2 	
 
207					<div class="inf2 author" >
 
208						#if($hmAutor.size() > 0)
 
209							#set($Autor = $hmAutor.get(0))
 
210							By <a href="/firma/-/meta/${Autor.friendlyname}">$!Autor.name</a>
 
211						#end
 
212					</div>
 
213					<div class="date">
 
214					  <span ><time>#printDate_v1($date)</time></span>
 
215					</div>
 
216					
 
217				</div>
 
218				<div class="multimedia">
 
219					##getMultimediaMixed_v1("" "crop500x295" "" "" "100%")
 
220##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
221					#set($templateType = "")
 
222					#set($encuadre = "crop990x585")
 
223					#set($widthMultimedia= "")
 
224					#set($heightMultimedia = "")
 
225					#set($cropSizes = "100%")
 
226					#if ($environment == 'PREVIEW')
 
227						#set($tempIter = " iterhtmlid='$el.Milenium.data' ")
 
228					#else
 
229						#set($tempIter = "")		
 
230					#end
 
231					#set ($numImage = $articleToolbox.getNumImageTags("Image", "true"))
 
232					#set($tipoContenido = "Image")
 
233				
 
234					#if(!$numImage)
 
235						#set ($numImage = 0)
 
236					#end
 
237
 
238					#set ($numContents = $numImage)
 
239
 
240					<div class="multimediaMacroWrapper">
 
241						<ul id="bxMultimedia${reserved-article-id.data}" class="bxMultimedia${reserved-article-id.data} bxSlider_content" width="$widthMultimedia" height="$heightMultimedia">
 
242							#set ($Multimedia = "")
 
243							#getTagMacro_v1($Multimedia, '', 'Multimedia', -1, '', '')
 
244							#if($Multimedia && $Multimedia != '')
 
245								#set ($numContents = $numContents + $Multimedia.getSiblings().size())
 
246								#foreach ($el in $Multimedia.getSiblings())
 
247									<li class="contentMedia art-video interno" $!tempIter>
 
248										<div class="responsive-video">
 
249											
 
250											#if($el.Extension.data && $el.Extension.data == "mp3")
 
251												<audio controls width="$widthMultimedia" height="$heightMultimedia">
 
252													<source src="$el.Document.data" type="audio/mpeg">
 
253												</audio>
 
254											#elseif ($el.Extension.data && $el.Extension.data == "mp4")
 
255												<div id="multimediaPlayerPrincipal${reserved-article-id.data}${velocityCount}" class="jwplayer-content_v2" preview="$el.Preview.data" data_document="$el.Document.data" >Cargando reproductor ...</div>
 
256																		
 
257												<script nominify>
 
258												function initJwPlayer_multimediaPlayerPrincipal${reserved-article-id.data}${velocityCount}(){
 
259													#if($NoPublicidad)
 
260														jwplayer("multimediaPlayerPrincipal${reserved-article-id.data}${velocityCount}").setup({
 
261															"file": "$el.Document.data",
 
262															"image": "$el.Preview.data",
 
263															"primary":" html5",
 
264															"fallback": true,
 
265															"displaytitle": false,
 
266															"preload": "metadata",
 
267															"html5player": "jwplayer.html5.js",
 
268															"flashplayer": "jwplayer.flash.swf",
 
269															"autostart": false
 
270														});
 
271													#else
 
272														jwplayer("multimediaPlayerPrincipal${reserved-article-id.data}${velocityCount}").setup({
 
273															"file": "$el.Document.data",
 
274															"image": "$el.Preview.data",
 
275															"primary":" html5",
 
276															"fallback": true,
 
277															"displaytitle": false,
 
278															"preload": "metadata",
 
279															"html5player": "jwplayer.html5.js",
 
280															"flashplayer": "jwplayer.flash.swf",
 
281															"autostart": false,
 
282															"advertising": $!Adsschedule
 
283														});
 
284													#end
 
285												}
 
286												$(window).load(function() {
 
287													initJwPlayer_multimediaPlayerPrincipal${reserved-article-id.data}${velocityCount}();
 
288												});
 
289												</script>
 
290											#end
 
291									
 
292										</div>
 
293									</li> 
 
294								#end
 
295							#end
 
296							#set ($Jwplayer = "")
 
297							#getTagMacro_v1($Jwplayer, '', 'Jwplayer', -1, '', '')
 
298							#if($Jwplayer && $Jwplayer != '')
 
299								#set ($numContents = $numContents + $Jwplayer.getSiblings().size())
 
300								#foreach ($el in $Jwplayer.getSiblings())
 
301									<li class="contentMedia art-video externo" $!tempIter>
 
302										<div style="width:${widthMultimedia}px;height:${heightMultimedia}px;">
 
303											<div id='botr_${$el.data}_isitqcrW_div' style="width:100%;height:100%;" class="jwplayerMultimedia_content" data_document="${item.data}" widthMultimedia="${widthMultimedia}" heightMultimedia="${heightMultimedia}"></div>
 
304										</div>
 
305									</li>
 
306								#end
 
307							#end
 
308							#set ($Vimeo = "")
 
309							#getTagMacro_v1($Vimeo, '', 'Vimeo', -1, '', '')
 
310							#if($Vimeo && $Vimeo !='')
 
311								#set ($numContents = $numContents + $Vimeo.getSiblings().size())
 
312								#foreach ($el in $Vimeo.getSiblings())
 
313									<li class="contentMedia art-vimeo" $!tempIter>
 
314										<div class="responsive-video">
 
315											<iframe class="vimeo-plaayer" src="//player.vimeo.com/video/$el.data" width="$widthMultimedia" height="$heightMultimedia" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
 
316										</div>
 
317									</li>
 
318								#end
 
319							#end
 
320							#set ($Youtube = "")
 
321							#getTagMacro_v1($Youtube, '', 'Youtube', -1, '', '')
 
322							#if($Youtube && $Youtube.data)
 
323								#set ($numContents = $numContents + $Youtube.getSiblings().size())
 
324								#foreach ($el in $Youtube.getSiblings())
 
325									<li class="contentMedia art-youtube" $!tempIter>
 
326										<div class="responsive-video">
 
327											#set ($timeParameter ="")
 
328											#set ($index1 = $el.data.indexOf("?t="))
 
329											#set ($index2 = $el.data.indexOf("?start="))
 
330				
 
331											#if($index1 >= 0){
 
332												#set ($timeParameter = $el.data.substring($index1))
 
333												#set ($timeParameter = $timeParameter.replace("?t=",""))
 
334												#set ($el.data = $el.data.substring(0,$el.data.indexOf("?t=")))
 
335											#end
 
336											#if($index2 >= 0){
 
337												#set ($timeParameter = $el.data.substring($index2))
 
338												#set ($timeParameter = $timeParameter.replace("?start=",""))
 
339												#set ($el.data = $el.data.substring(0,$el.data.indexOf("?start=")))
 
340											#end
 
341											#if($timeParameter && $timeParameter != "")
 
342												#set ($timeParameter = "&start=" + $timeParameter)
 
343											#end
 
344										
 
345											<iframe allowfullscreen="" frameborder="0" height="$heightMultimedia"  width="$widthMultimedia" src="//www.youtube.com/embed/$el.data?wmode=transparent&showinfo=0&theme=light$timeParameter"></iframe>
 
346										</div>	
 
347									</li>
 
348								#end		
 
349							#end
 
350							
 
351							#if($numImage > 0)		
 
352								#set ($numImageFor = $numImage - 1)
 
353								#foreach($i in [0..$numImageFor])
 
354									<li class="contentMedia art-gallery">
 
355										#if($templateType == "teaser")
 
356											<a href="#printAcUrl_v1()" class="cutlineShow">
 
357										#end
 
358												<figure class="cutlineShow"><picture>
 
359													#set($tempImage = $articleToolbox.getImageNode($tipoContenido, $i, "true"))
 
360													#set($AltImage = "#getAltImage_v1($tempImage)")
 
361													#set($TitleImage = "#getTitleImage_v1($tempImage)")
 
362													#set($tempcutline = $articleToolbox.getImageNode("$tipoContenido", "$i"))
 
363													#set($elcutline = $tempcutline.Cutline.data)
 
364													#set($elcutlinemlnid = $tempcutline.Cutline.Milenium.data)
 
365													#set($tempbylineimage = $articleToolbox.getImageNode("$tipoContenido", "$i"))
 
366													#set($elbylineimage = $tempbylineimage.Byline.data)
 
367													#set($elbylineimagemlnid = $tempbylineimage.Byline.Milenium.data)
 
368													#if($enviromentVersion == "new")
 
369														#set($imgHtml = $!articleToolbox.getImageTag2("$tipoContenido","$i","$encuadre","","","","true","$!AltImage","$!TitleImage","$!cropSizes"))
 
370													#else
 
371														#set($imgHtml = $!articleToolbox.getImageTag("$tipoContenido","$i","$encuadre","","","","true","$!AltImage","$!TitleImage","$!cropSizes"))
 
372													#end
 
373													#if($imgHtml)
 
374														$imgHtml
 
375													#end
 
376													#if($elcutline)
 
377														#if ($environment == 'PREVIEW')
 
378															#set($tempIter = " mlnid='$!elcutlinemlnid' ")
 
379															#set($tempIter2 = " mlnid='$!elbylineimagemlnid' ")
 
380														#else
 
381															#set($tempIter = "")
 
382															#set($tempIter2 = "")		
 
383														#end
 
384														<span class="cutline-text" tempIter>$!elcutline</span>
 
385														#if($elbylineimage)
 
386															<span class="byline-image" tempIter2>($!elbylineimage)</span>
 
387														#end
 
388													#end
 
389												</picture></figure>
 
390										#if($templateType == "teaser")
 
391											</a>
 
392										#end
 
393									</li>				
 
394								#end		
 
395							#end
 
396						</ul>
 
397					</div>
 
398##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
399				</div>
 
400				$!iterVelocityTools.getAdContainer("M01_cpm_m")
 
401				<div class="detail_rrss">
 
402					<div class="icon_rsss icon_facebook" title="Facebook" onClick="window.open('//facebook.com/sharer.php?u=#siteUrl()$!articleToolbox.getArticleViewer("canonical")&text=$!escapeTool.html($!Headline.data)')"></div>				  				
 
403					<div class="icon_rsss icon_twitter" title="Twitter" onClick="window.open('//twitter.com/intent/tweet?url=#siteUrl()$!articleToolbox.getArticleViewer("canonical")&text=$!escapeTool.html($!Headline.data)')"></div>	
 
404					<div class="icon_rsss icon_whatsapp" title="Whatsapp" onClick="window.open('whatsapp://send?text=$!escapeTool.html($!Headline.data) - #siteUrl()$!articleToolbox.getArticleViewer("canonical")')"></div>
 
405					<div class="icon_rsss icon_link" title="Copia el enlace" onclick="copyToClipboard()"></div>	
 
406				</div>
 
407				
 
408				<div id="col-60-40" class="col-60-40 container">
 
409					<div class="row top">
 
410						<div class="layout col-60-40-top-one-col col-xs-12 col-md-8 portlet-column nopadding detalle_izq" id="col-60-40-top-one-col">	
 
411							<div class="text">
 
412								#set ($hashNames ={})
 
413								#set ($temp = $hashNames.put("Text","text"))
 
414								#set ($temp = $hashNames.put("HTML_Text","html"))
 
415								#set ($temp = $hashNames.put("Lead","lead"))
 
416								#set ($temp = $hashNames.put("Image_Text","Image_Text"))
 
417								#set ($temp = $hashNames.put("Image_Text_Vertical","Image_Text_Vertical"))
 
418								#set ($temp = $hashNames.put("Quote","quote"))
 
419								#set ($temp = $hashNames.put("Twitter_Text","Twitter_Text"))
 
420								#set ($temp = $hashNames.put("Youtube_Text","Youtube_Text"))
 
421								#set ($temp = $hashNames.put("Facebook_Text","Facebook_Text"))
 
422								#set ($temp = $hashNames.put("Multimedia_Text","Multimedia_Text"))
 
423								#set ($temp = $hashNames.put("Vimeo_Text","Vimeo_Text"))
 
424								#set ($temp = $hashNames.put("Intext","intext"))
 
425								#set ($temp = $hashNames.put("Link_Text","Link_Text"))
 
426								#set ($temp = $hashNames.put("afiliacion","afiliacion"))
 
427								#set ($temp = $hashNames.put("TikTok","TikTok"))
 
428								#set ($temp = $hashNames.put("lista","lista"))
 
429								#set ($temp = $hashNames.put("lista_numerica","lista_numerica"))
 
430								#set ($temp = $hashNames.put("Ladillo","Ladillo"))
 
431								#set($childrenTags = $articleToolbox.getChildrenTags(null))
 
432								#set($currentElement = 0)
 
433								#set($contadorParrafos = 0)
 
434								#set($cropName = "crop620xfree")
 
435								#set($widthMultimedia = "1000")
 
436								#set($heightMultimedia = "562")
 
437								#set($cropSizes = "75%")
 
438								#set($slide_imgTxt = false)
 
439								#***************************************************************************#
 
440				
 
441								#foreach($el in $childrenTags)
 
442									#set ($element = {})
 
443									#set ($cssclass=$hashNames.get($el.name))
 
444									#if($cssclass)
 
445										#set ($temp = $element.put("name",$el.name))
 
446										#set ($temp = $element.put("cssclass",$cssclass))
 
447										#if($element.name == "Image_Text")
 
448											#if($el && $el.trim() != "")
 
449												## +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
450												#set($ind = $currentElement+1)
 
451												<!-- $ind -->
 
452												#if($childrenTags.get($ind).name == "Image_Text" && $slide_imgTxt == false)
 
453													#set($name_s = "bx_slider_it_" + $currentElement)
 
454													<div class="$name_s">
 
455													#set($slide_imgTxt = true)
 
456												#end
 
457												## +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
458														<figure  class="contentMedia art-img ${element.cssclass}" >
 
459															#set($tempImage = $articleToolbox.getImageNode($el.name, $el.Milenium.data, "true"))
 
460															#set($AltImage = "#getAltImage_v1($tempImage)")
 
461															#set($TitleImage = "#getTitleImage_v1($tempImage)")
 
462															#if($enviromentVersion == "new")#*
 
463																*##set($imgHtml = $!articleToolbox.getImageTag2("$el.name","$el.Milenium.data","$cropName","","","","false","$!$AltImage","$!TitleImage","$!cropSizes"))#*
 
464															*##else#*
 
465																*##set($imgHtml = $!articleToolbox.getImageTag("$el.name","$el.Milenium.data","$cropName","","","","false","$!$AltImage","$!TitleImage","$!cropSizes"))#*
 
466															*##end
 
467															#if($imgHtml)
 
468																$imgHtml
 
469															#end                               
 
470															#if($el.Cutline && $el.Cutline.data != "")
 
471																#if ($environment == 'PREVIEW')
 
472																	#set($tempIter = "mlnid='$el.Cutline.Milenium.data' ")
 
473																	#set($tempIter2 = " mlnid='$el.Byline.Milenium.data' ")
 
474																#else
 
475																	#set($tempIter = "")
 
476																	#set($tempIter2 = "")		
 
477																#end
 
478																<div class="cutline-byline" tempIter>
 
479																<span class="cutline-text" tempIter>$!el.Cutline.data</span>
 
480																#if($elbylineimage)
 
481																<span class="byline-image" tempIter2> ($!elbylineimage) </span>
 
482																#end
 
483																</div>
 
484															#end
 
485														</figure>
 
486												## +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
487												#if($childrenTags.get($ind).name != "Image_Text" && $slide_imgTxt)
 
488													</div>
 
489													<script>
 
490														$(".$name_s").bxSlider({
 
491															auto: false,
 
492															pager: false,
 
493															controls: true,
 
494															infiniteLoop: false,
 
495															slideMargin: 20,
 
496															onSlideBefore: function ($slideElement, oldIndex, newIndex){
 
497																pushDatalayerGalery(newIndex + 1);
 
498															}
 
499														});
 
500													</script>
 
501													#set($slide_imgTxt = false)
 
502												#end
 
503												## +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
504												
 
505											#end
 
506										#end
 
507
 
508										#if($element.name == "Image_Text_Vertical")
 
509											#if($el && $el.trim() != "")
 
510												## vemos si hay mas image_text detras  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
511												#set($ind = $currentElement+1)
 
512
 
513												#if($childrenTags.get($ind).name == "Image_Text_Vertical" && $slide_imgTxt == false)
 
514													#set($name_s = "bx_slider_it_" + $currentElement)
 
515													<div class="$name_s">
 
516													#set($slide_imgTxt = true)
 
517												#end
 
518												## +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
519												<figure  class="contentMedia art-img ${element.cssclass}" >
 
520													#set($tempImage = $articleToolbox.getImageNode($el.name, $el.Milenium.data, "true"))
 
521													#set($AltImage = "#getAltImage_v1($tempImage)")
 
522													#set($TitleImage = "#getTitleImage_v1($tempImage)")
 
523													#if($enviromentVersion == "new")#*
 
524														*##set($imgHtml = $!articleToolbox.getImageTag2("$el.name","$el.Milenium.data","crop_vertical","","","","false","$!$AltImage","$!TitleImage","$!cropSizes"))#*
 
525													*##else#*
 
526														*##set($imgHtml = $!articleToolbox.getImageTag("$el.name","$el.Milenium.data","crop_vertical","","","","false","$!$AltImage","$!TitleImage","$!cropSizes"))#*
 
527													*##end
 
528													#if($imgHtml)
 
529														$imgHtml
 
530													#end                               
 
531													#if($el.Cutline && $el.Cutline.data != "")
 
532														#if ($environment == 'PREVIEW')
 
533															#set($tempIter = "mlnid='$el.Cutline.Milenium.data' ")
 
534															#set($tempIter2 = " mlnid='$el.Byline.Milenium.data' ")
 
535														#else
 
536															#set($tempIter = "")
 
537															#set($tempIter2 = "")		
 
538														#end
 
539														<div class="cutline-byline">
 
540														<span class="cutline-text" $tempIter>$!el.Cutline.data</span>
 
541														#if($el.Byline && $el.Byline.data != "")
 
542														<span class="byline-image" $tempIter2> | $el.Byline.data </span>
 
543														#end
 
544														</div>
 
545													#end
 
546												</figure>
 
547												## +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
548												#if($childrenTags.get($ind).name != "Image_Text_Vertical" && $slide_imgTxt)
 
549													</div>
 
550													<script>
 
551													$(".$name_s").bxSlider({
 
552														auto: false,
 
553														pager: false,
 
554														controls: true,
 
555														infiniteLoop: false,
 
556														minSlides: 1,
 
557														maxSlides: 1,
 
558														slideMargin: 20,
 
559														hideControlOnEnd: true
 
560													});
 
561													</script>
 
562													#set($slide_imgTxt = false)
 
563												#end
 
564												## +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
565												
 
566												
 
567												
 
568											#end
 
569										#end
 
570
 
571										#if($element.name == "Youtube_Text")
 
572											#if($el && $el.trim() != "")
 
573												<div class="multimediaMacroWrapper">
 
574													<div class="contentMedia art-youtube"  iterhtmlid="$el.Milenium.data">
 
575														<div class="responsive-video">
 
576															<iframe allowfullscreen="" frameborder="0" height="$heightMultimedia"  width="$widthMultimedia" src="//www.youtube.com/embed/$el.data?wmode=transparent&controls=2&showinfo=0&theme=light"></iframe>
 
577														</div>	
 
578													</div>
 
579												</div>
 
580											#end
 
581										#end
 
582										#if($element.name == "Facebook_Text")
 
583											#if($el && $el.trim() != "")
 
584													<div class="art-facebook"  iterhtmlid="$el.Milenium.data">
 
585															$!el.data
 
586													</div>
 
587											#end
 
588										#end
 
589										#if($element.name == "Vimeo_Text")
 
590											#if($el && $el.trim() != "")
 
591												<div class="multimediaMacroWrapper">
 
592													<div class="contentMedia art-vimeo"  iterhtmlid="$el.Milenium.data">
 
593														<div class="responsive-video">
 
594															<iframe class="vimeo-player" src="//player.vimeo.com/video/$el.data" width="$widthMultimedia" height="$heightMultimedia" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
 
595														</div>
 
596													</div>
 
597												</div>
 
598											#end
 
599										#end
 
600										#if($element.name == "Twitter_Text")
 
601											#if($el && $el.trim() != "")
 
602												<div class="art-twitter"  iterhtmlid="$el.Milenium.data">
 
603													<div class="twitter-content">
 
604														<blockquote class="twitter-tweet">
 
605														<a href='$!el.data'></a>
 
606														</blockquote> 
 
607														<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
 
608													</div>
 
609												</div>
 
610											#end
 
611										#end
 
612										#if($element.name == "Multimedia_Text")
 
613											#if($el && $el.trim() != "")
 
614												<div class="multimediaMacroWrapper">
 
615													<div class="contentMedia art-video interno"  iterhtmlid="$el.Milenium.data">
 
616														<div class="responsive-video">
 
617															#if($el.Extension.data && $el.Extension.data == "mp3")
 
618																<audio controls width="$widthMultimedia" height="$heightMultimedia">
 
619																	<source src="$el.Document.data" type="audio/mpeg">
 
620																</audio>
 
621															#elseif ($el.Extension.data && $el.Extension.data == "mp4")
 
622																<div id="multimediaPlayer${reserved-article-id.data}${velocityCount}" class="jwplayer-content_v2" preview="$el.Preview.data" data_document="$el.Document.data" >Cargando reproductor ...</div>
 
623																<script nominify>
 
624																	function initJwPlayer_multimediaPlayer${reserved-article-id.data}${velocityCount}(){
 
625																		#if($NoPublicidad)
 
626																			jwplayer("multimediaPlayer${reserved-article-id.data}${velocityCount}").setup({
 
627																				"file": "$el.Document.data",
 
628																				"image": "$el.Preview.data",
 
629																				"primary":" html5",
 
630																				"fallback": true,
 
631																				"displaytitle": false,
 
632																				"preload": "metadata",
 
633																				"html5player": "jwplayer.html5.js",
 
634																				"flashplayer": "jwplayer.flash.swf",
 
635																				"autostart": false
 
636																			});
 
637																		#else
 
638																			jwplayer("multimediaPlayer${reserved-article-id.data}${velocityCount}").setup({
 
639																				"file": "$el.Document.data",
 
640																				"image": "$el.Preview.data",
 
641																				"primary":" html5",
 
642																				"fallback": true,
 
643																				"displaytitle": false,
 
644																				"preload": "metadata",
 
645																				"html5player": "jwplayer.html5.js",
 
646																				"flashplayer": "jwplayer.flash.swf",
 
647																				"autostart": false,
 
648																				"advertising": $!Adsschedule
 
649																			});
 
650																		#end
 
651																	}
 
652																	$(window).load(function() {
 
653																		initJwPlayer_multimediaPlayer${reserved-article-id.data}${velocityCount}();
 
654																	});
 
655																</script>
 
656															#end
 
657														</div>
 
658													</div>
 
659												</div>
 
660											#end             
 
661										#end
 
662										#if($element.name == "HTML_Text")
 
663											#if($el.data && $el.data.trim() != "")
 
664												<div class='${element.cssclass}'>$!el.data.trim().replaceAll("&amp;","&")</div>
 
665											#end                                    
 
666										#end
 
667										#if($element.name == "Lead")
 
668											#if($el && $el.trim() != "")
 
669												<h3 class='${element.cssclass} entradilla' mlnid="$el.Milenium.data">$!el.data.trim().replaceAll("&amp;","&")</h3>
 
670											#end                                    
 
671										#end
 
672										#if($element.name == "Ladillo")
 
673											#if($el && $el.trim() != "")
 
674												<h2 class='${element.cssclass} ladillo' mlnid="$el.Milenium.data">$!el.data.trim().replaceAll("&amp;","&")</h2>
 
675											#end                                    
 
676										#end
 
677										#if($element.name == "Text")
 
678											#if($el && $el.trim() != "")
 
679												<div class='paragraph' mlnid="$el.Milenium.data">
 
680													#set($tempArrayText = $el.data.trim().replaceAll("&amp;","&").split("</p>"))
 
681													#foreach($parrafo in $tempArrayText)
 
682														#set($parrafo = $parrafo.replaceAll("<p>", "").replaceAll("</p>", "").trim()) 
 
683														#if($parrafo != "")
 
684															#set($contadorParrafos = $contadorParrafos + 1)
 
685														##	#if($contadorParrafos == 2)
 
686														##		$!iterVelocityTools.getAdContainer("M02_cpm_r_dcha")
 
687														##	#elseif($contadorParrafos == 5)
 
688														##		$!iterVelocityTools.getAdContainer("M04_cpm_r_dchab")
 
689														##	#elseif($contadorParrafos == 9)
 
690														##		$!iterVelocityTools.getAdContainer("M07_cpm_r_dchac")
 
691														##	#end
 
692
 
693															#if($environment == "LIVE" && $reserved-article-id.data.contains("CN") ==  false)
 
694																<p class="p_$contadorParrafos"><?php format_post_content('<?xml encoding="utf-8" ?>$parrafo')?></p>
 
695															#else
 
696																<p class="p_$contadorParrafos">$parrafo</p>
 
697															#end
 
698															
 
699														#end
 
700													#end
 
701												</div>
 
702											#end
 
703										#end
 
704										#if($element.name == "Intext")
 
705											#if($el && $el.trim() != "")
 
706												<div class='${element.cssclass}' mlnid="$el.Milenium.data">
 
707													$!el.data.trim().replaceAll("&amp;","&")	
 
708												</div>
 
709											#end
 
710										#end
 
711										#if($element.name == "Quote")
 
712											#if($el && $el.trim() != "")
 
713												<blockquote class='${element.cssclass} cita' mlnid="$el.Milenium.data">
 
714													<span>$!el.data.trim().replaceAll("&amp;","&")</span>
 
715												</blockquote>	
 
716											#end
 
717										#end
 
718										#if($element.name == "Link_Text")
 
719											#if($el && $el.trim() != "")
 
720												<div class='${element.cssclass}' mlnid="$el.Milenium.data">
 
721													<span>$!el.data.trim().replaceAll("&amp;","&")</span>
 
722												</div>	
 
723											#end
 
724										#end
 
725										#if($element.name == "afiliacion")
 
726											#if($el && $el.trim() != "")
 
727												<div class='${element.cssclass}' mlnid="$el.Milenium.data">
 
728													<span>$!el.data.trim().replaceAll("&amp;","&")</span>
 
729												</div>	
 
730											#end
 
731										#end
 
732										#if($element.name == "TikTok")
 
733											#if($el && $el.trim() != "")
 
734												<div class='${element.cssclass}' mlnid="$el.Milenium.data">
 
735													$!el.data.trim().replaceAll("&amp;","&")
 
736												</div>	
 
737											#end
 
738										#end
 
739										#if($element.name == "lista")
 
740											#if($el && $el.trim() != "")
 
741												<ul class='${element.cssclass}'>
 
742													#set($tempArrayText = $el.data.trim().replaceAll("&amp;","&").split("</p>"))
 
743													#foreach($parrafo in $tempArrayText)
 
744														#set($parrafo = $parrafo.replaceAll("<p>", "").replaceAll("</p>", "").trim()) 
 
745														#if($parrafo != "")
 
746														##	#set($contadorParrafos = $contadorParrafos + 1)
 
747														##	#if($contadorParrafos == 2)
 
748														##		$!iterVelocityTools.getAdContainer("M02_cpm_r_dcha")
 
749														##	#elseif($contadorParrafos == 5)
 
750														##		$!iterVelocityTools.getAdContainer("M04_cpm_r_dchab")
 
751														##	#elseif($contadorParrafos == 9)
 
752														##		$!iterVelocityTools.getAdContainer("M07_cpm_r_dchac")
 
753														##	#end
 
754															<li>$!parrafo</li>
 
755														#end
 
756													#end
 
757												</ul>
 
758											#end
 
759										#end
 
760										#if($element.name == "lista_numerica")
 
761											#if($el && $el.trim() != "")
 
762												<ol class='${element.cssclass}'>
 
763												#set($tempArrayText = $el.data.trim().replaceAll("&amp;","&").split("</p>"))
 
764												#foreach($parrafo in $tempArrayText)
 
765													#set($parrafo = $parrafo.replaceAll("<p>", "").replaceAll("</p>", "").trim()) 
 
766													#if($parrafo != "")
 
767													##	#set($contadorParrafos = $contadorParrafos + 1)
 
768													##	#if($contadorParrafos == 2)
 
769													##		$!iterVelocityTools.getAdContainer("M02_cpm_r_dcha")
 
770													##	#elseif($contadorParrafos == 5)
 
771													##		$!iterVelocityTools.getAdContainer("M04_cpm_r_dchab")
 
772													##	#elseif($contadorParrafos == 9)
 
773													##		$!iterVelocityTools.getAdContainer("M07_cpm_r_dchac")
 
774													##	#end
 
775														<li>$!parrafo</li>
 
776													#end
 
777												#end
 
778												</ol>
 
779											#end
 
780										#end
 
781
 
782									#end
 
783									#set($currentElement = $currentElement + 1)
 
784								#end
 
785
 
786							</div> <!-- Fin div text -->
 
787
 
788							#if($auxCatalagoTema.size() > 0 || $auxCatalagoPersonajes.size() > 0)
 
789								<div class="categoryList">
 
790									#foreach($keyword in $auxCatalagoTema)
 
791										<article class="categoryListItem categoryArticleItem" data-categoryid="$keyword.id" data-categoryname="$keyword.name"> 
 
792											<a href="/tag/-/meta/$keyword.friendlyname" title="$keyword.name"><span class="categoryListItemLink linkDisabled">$keyword.name</span></a>
 
793										</article>
 
794										#set($metaSiteName = {})
 
795										#set($temp = $metaSiteName.put("name","og:tag"))
 
796										#set($temp = $metaSiteName.put("content","$keyword.name"))
 
797										$iterVelocityTools.addMetaTag( $metaSiteName )
 
798									#end
 
799
 
800									#foreach($keyword in $auxCatalagoPersonajes)
 
801										<article class="categoryListItem categoryArticleItem" data-categoryid="$keyword.id" data-categoryname="$keyword.name"> 
 
802											<a href="/personaje/-/meta/$keyword.friendlyname" title="$keyword.name"><span class="categoryListItemLink linkDisabled">$keyword.name</span></a>
 
803										</article>
 
804										#set($metaSiteName = {})
 
805										#set($temp = $metaSiteName.put("name","og:tag"))
 
806										#set($temp = $metaSiteName.put("content","$keyword.name"))
 
807										$iterVelocityTools.addMetaTag( $metaSiteName )
 
808									#end
 
809								</div>
 
810							#end
 
811							
 
812							$!iterVelocityTools.getAdContainer("M08_Outbtrain")
 
813
 
814							#set ($articlesrelacionados = $articleToolbox.getRelatedArticles( "link", 3 ) )
 
815							#if($articlesrelacionados.size() > 0)
 
816								<div class="relacionadas_art">
 
817									<div class="head_relacionadas">RELACIONADAS:</div>
 
818									#foreach ($relacionada in $articlesrelacionados )
 
819										<div class="item_rel">
 
820											<div class="headline">
 
821												#set($ac-sectionDateFrom =  $articleContext.selectNodes('articlectx/sections//section[@from]'))
 
822												#if($ac-sectionDateFrom.size() > 0)
 
823													#foreach ($atrib in $ac-sectionDateFrom.get(0).attributes()  )         
 
824														#if($atrib.name == "name")
 
825															<span class="assigned-section" >$!atrib.data </span>	  
 
826														#end
 
827													#end
 
828												#end
 
829												<a href="$relacionada.reserved-article-url.data" title="$!relacionada.getTag(null,"Headline").data"><h2>$!relacionada.getTag(null,"Headline").data</h2></a>
 
830											</div>
 
831											#set($hasImages = $relacionada.getNumImageTags("Image", "true"))
 
832											#if($hasImages > 0)
 
833												<div class="top-section">
 
834													<div class="top-image"><a href="$relacionada.reserved-article-url.data" title="$!relacionada.getTag(null,"Headline").data">$relacionada.getImageTag("Image","0","crop200x210","","","", "true", "", "")</a></div>
 
835												</div>
 
836											#end
 
837										</div>
 
838									#end
 
839								</div>
 
840							#end	
 
841
 
842							##	#if($contadorParrafos <= 4)
 
843							##		<div class="lo_ultimo ranking_detalle e_004_002"></div>
 
844							##		$!iterVelocityTools.getAdContainer("M04_cpm_r_dchab")
 
845							##		<div class="te_interesa"></div>
 
846							##		$!iterVelocityTools.getAdContainer("M07_cpm_r_dchac")
 
847							##	#elseif($contadorParrafos <= 9)
 
848							##		<div class="lo_ultimo ranking_detalle e_004_002"></div>
 
849							##		$!iterVelocityTools.getAdContainer("M07_cpm_r_dchac")
 
850							##		<div class="te_interesa"></div>
 
851							##	#end		
 
852								<div class="lo_ultimo ranking_detalle e_004_002 mobile"></div>
 
853								<div class="te_interesa mobile"></div>
 
854								
 
855						</div>
 
856						<div class="layout col-60-40-top-two-col col-xs-12 col-md-4 portlet-column nopadding detalle_der" id="col-60-40-top-two-col">	
 
857							<div style="min-height: 700px"><div class="ad ad--sticky">$!iterVelocityTools.getAdContainer("D03_cpm_r_dcha")</div></div>
 
858							<div class="lo_ultimo ranking_detalle e_004_002"></div>
 
859							<div style="min-height: 700px"><div class="ad ad--sticky">$!iterVelocityTools.getAdContainer("D05_cpm_r_dchab")</div></div>
 
860							<div class="te_interesa">
 
861							<div id="cx_widget" style="min-height:560px;" class="_mo_recs_$reserved-article-id.data" data-recs="4"></div>
 
862							<script>
 
863								window._mo = window._mo || {};
 
864								window._mo.execQue = window._mo.execQue || [];
 
865								window._mo.execQue.push({
 
866									"function": function () {
 
867									    _mo.recommend([37], ['_mo_recs_$reserved-article-id.data'])
 
868									}
 
869								});
 
870							</script>
 
871
 
872							</div>
 
873							<div style="min-height: 700px"><div class="ad ad--sticky">$!iterVelocityTools.getAdContainer("D06_cpm_r_dchac")</div></div>
 
874						</div>
 
875					</div>
 
876				</div>
 
877			</div>
 
878		</div>	
 
879	</div>
 
880	<div class="content-infinity"></div>	
 
881</div>
 
882<script type="text/javascript" nominify>
 
883	## En mobile añadimos los espacios roba en  el texto */
 
884	if(isMobileEnvironment){
 
885		var n_parrafos = $(".text .paragraph p").length;
 
886		/* MAS DE 1 PARRAFOS DESPUES DEL 1*/
 
887		if(n_parrafos > 1){
 
888			$('.text .p_1').after("<div id='movil-div-gpt-ad_300dcha'></div>");
 
889		}
 
890		else{
 
891			$(".ad_mob_end").append("<div id='movil-div-gpt-ad_300dcha'></div>");
 
892		}
 
893		/* MAS DE 4 PARRAFOS DESPUES DEL 4*/
 
894		if(n_parrafos > 4){
 
895			$(".text .p_4").after("<div id='movil-div-gpt-ad_300dchab'></div>");
 
896		}
 
897		else{
 
898			$(".lo_ultimo.ranking_detalle.mobile").after("<div id='movil-div-gpt-ad_300dchab'></div>");
 
899			$(".te_interesa.mobile").after("<div id='movil-div-gpt-ad_300dchab'></div>");
 
900		}
 
901		/* MAS DE 8 PARRAFOS DESPUES DEL 8 */
 
902		if(n_parrafos > 8){
 
903			$(".text .p_8").after("<div id='movil-div-gpt-ad_300dchac'></div>");
 
904		}
 
905		else{
 
906			$(".lo_ultimo.ranking_detalle.mobile").after("<div id='movil-div-gpt-ad_300dchac'></div>");
 
907		}
 
908	}
 
909</script>
 
910#if($environment == "LIVE")
 
911	<?php
 
912		function format_post_content($content = '') {
 
913			$document = new DOMDocument();
 
914			$document->loadHTML($content);
 
915			$tags = $document->getElementsByTagName('a');
 
916			foreach ($tags as $tag) {
 
917				if( strpos($tag->getAttribute('href'),'codigonuevo.com') > 0 ){
 
918					$tag->removeAttribute('rel');    
 
919					$tag->removeAttribute('target');   
 
920					$tag->setAttribute('title', $tag->nodeValue);
 
921				}
 
922			}
 
923			$html_1  = $document->saveHTML($document->documentElement);
 
924			$html_1  = str_replace("<body>", "", $html_1);
 
925			$html_1  = str_replace("<html>", "", $html_1);
 
926			$html_1  = str_replace("<p>", "", $html_1);
 
927			$html_1  = str_replace("</p>", "", $html_1);
 
928			$html_1  = str_replace("</html>", "", $html_1);
 
929			$html_1  = str_replace("</body>", "", $html_1);
 
930			echo $html_1;
 
931		}
 
932	?>
 
933#end
 
934##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
935##++++++++++++++++++++++++++++++++++     DATALAYER   JSON  METAS    +++++++++++++++++++++++++++++++++++++++++
 
936
 
937
 
938##*************** TEMAS ***************************
 
939#set($keywordsfinal = '')
 
940#set($keywordsfinal_datalayer = '')
 
941#set($auxCatalagoTema = {})
 
942#getAcAssignedCatExtended_v1($auxCatalagoTema 'Topics')
 
943#if($auxCatalagoTema.size() > 0)
 
944	#foreach($keyword in $auxCatalagoTema)
 
945		#if($keywordsfinal == '')
 
946			#set($keywordsfinal = $keyword.friendlyname)
 
947		#else
 
948			#set($keywordsfinal = $keywordsfinal + ',' + $keyword.friendlyname)
 
949		#end
 
950		
 
951		#if($keywordsfinal_datalayer == '')
 
952			#set($keywordsfinal_datalayer = $keyword.friendlyname.replaceAll("-", " "))
 
953		#else
 
954			#set($keywordsfinal_datalayer = $keywordsfinal_datalayer + '|' + $keyword.friendlyname.replaceAll("-", " "))
 
955		#end
 
956	#end
 
957	#set($keywordsfinal = '"' + $keywordsfinal + '"')
 
958	#set($keywordsfinal_datalayer = '"' + $keywordsfinal_datalayer + '"')
 
959#else
 
960	#set($keywordsfinal = 'undefined')
 
961	#set($keywordsfinal_datalayer = '""')
 
962#end
 
963
 
964<script type="text/javascript" nominify>
 
965	#set ($xml =$articleContext.selectNodes('//section'))
 
966	#set($nivel = 1)
 
967	#set($pagname = "")
 
968
 
969
 
970	#set($secc2 = "undefined")
 
971	#set($secc3 = "undefined")	
 
972	#foreach ($nodexml in $xml ) 
 
973		#if($nivel < 4)
 
974			#set($secc = $htmlUtil.escape($!nodexml.attribute('name').getValue()))
 
975			#set($secc = $secc.replaceAll("\n", "") )
 
976			#set($seccID = $htmlUtil.escape($!nodexml.attribute('id').getValue()))
 
977			#if($nivel == 1)
 
978				#set($secc1 = $secc)
 
979			#elseif($nivel == 2)
 
980				#set($secc2 = $secc)
 
981			#elseif($nivel == 3)
 
982				#set($secc3 = $secc)
 
983			#end
 
984			#set($nivel = $nivel + 1)
 
985		#end
 
986	#end
 
987
 
988	#if($iterVelocityTools.getVelocityVariable("teaseritemposition") == 1)
 
989	var _even = "pageview";
 
990	var _cms = "noticia";
 
991	var _previous = undefined;
 
992	#else
 
993	var _even = "virtual-pageview";
 
994	var _cms = "noticia scroll";
 
995	var _previous = window.location.origin;
 
996	#end
 
997	#set($date_s = "#printDateFrom_v1('yyy-MM-dd')" )
 
998	#set($mask_d = "YYYY-MM-dd'T'HH:mm:ssZZ")
 
999	#set($date_m = "#printDateFrom_v1($mask_d)" )
 
1000	##PONEMOS LOS : EN EL DESPLAZAMIENTO UTC
 
1001	#set($date_m = $date_m.trim())
 
1002	#set($tam = $date_m.length() - 2)
 
1003	#set($val-1 = $date_m.substring(0, $tam))
 
1004	#set($val-2 = $date_m.substring($tam))
 
1005	#set($date_m = $val-1 + ":" + $val-2)
 
1006	if(isMobileEnvironment) {
 
1007		var m_ads = "cpm_m|cpm_r_dcha|cpm_r_dchab|cpm_r_dchac|Outbrain|cpm_mf"
 
1008	}
 
1009	else {
 
1010		var m_ads = "cpm_si|cpm_sd|cpm_m|cpm_r_dcha|cpm_r_dchab|cpm_r_dchac|Outbrain"
 
1011	}
 
1012	var secc1 = normalize_str_data("$secc1");
 
1013	var secc3 = normalize_str_data("$secc3");
 
1014
 
1015
 
1016	#if($secc2 != "undefined")
 
1017		    #set($secc2 = '"'+$secc2+'"') 
 
1018	#end
 
1019	#if($secc3 != "undefined")
 
1020		    #set($secc3 = '"'+$secc3+'"') 
 
1021	#end
 
1022
 
1023	## ************ CONTENT.MULTIMEDIA ************
 
1024	#set ($hasImages = $articleToolbox.getNumImageTags("Image", "true"))
 
1025	#set($multimedia = "")
 
1026	#if($hasImages == 1)
 
1027		#set($multimedia = "imagen")
 
1028	#elseif($hasImages > 1)
 
1029		#set($multimedia = "galeria")
 
1030	#end
 
1031	#getTagMacro_v1($Multimedia, '', 'Multimedia', -1, '', '')
 
1032	#if($Multimedia && $Multimedia.Document.data)
 
1033		#if($Multimedia.Extension.data && $Multimedia.Extension.data == "mp3")
 
1034			#if($multimedia == "")
 
1035				#set($multimedia = $multimedia + "audio")
 
1036			#else
 
1037				#set($multimedia = $multimedia + "|audio")
 
1038			#end
 
1039		#elseif ($Multimedia.Extension.data && $Multimedia.Extension.data == "mp4")
 
1040			#if($multimedia == "")
 
1041				#set($multimedia = $multimedia + "video")
 
1042			#else
 
1043				#set($multimedia = $multimedia + "|video")
 
1044			#end
 
1045		#end
 
1046	#end
 
1047	#getTagMacro_v1($Vimeo, '', 'Vimeo', -1, '', '')
 
1048	#if($Vimeo && $Vimeo.data)
 
1049		#if($multimedia == "")
 
1050			#set($multimedia = $multimedia + "video")
 
1051		#else
 
1052			#set($multimedia = $multimedia + "|video")
 
1053		#end
 
1054	#end
 
1055	#getTagMacro_v1($Youtube, '', 'Youtube', -1, '', '')
 
1056	#if($Youtube && $Youtube.data)
 
1057		#if($multimedia == "")
 
1058			#set($multimedia = $multimedia + "video")
 
1059		#else
 
1060			#set($multimedia = $multimedia + "|video")
 
1061		#end
 
1062	#end
 
1063
 
1064	window.dataLayer = window.dataLayer || [];
 
1065	window.dataLayer.push(
 
1066	{
 
1067	    "event": _even,
 
1068	    "ads": {
 
1069		"enabled": undefined,
 
1070		"positions": m_ads
 
1071	    },
 
1072	    "campaign": {
 
1073		"medium": undefined,
 
1074		"name": undefined,
 
1075		"source": undefined
 
1076	    },
 
1077	    "content": {
 
1078		"access": "abierto",
 
1079		"branded": undefined,
 
1080		"category": "vida y estilo",
 
1081		"date": {
 
1082		    "modification": "$date_m.trim()",
 
1083		    "publication": "$date_m.trim()",
 
1084		    "publication_short": "$date_s.trim()"
 
1085		},
 
1086		"front": "1",
 
1087		"id": "$reserved-article-id.data",
 
1088		"local": {
 
1089		    "city": undefined,
 
1090		    "province": undefined,
 
1091		    "region": undefined
 
1092		},
 
1093		"local_is": "0",
 
1094		"multimedia": "$multimedia",
 
1095		"origin": "gzp",
 
1096		"person": {
 
1097		    "author": "$autorfinal",
 
1098		    "editor": "$autorfinal",
 
1099		    "signin": "$autorfinal"
 
1100		},
 
1101		"place": undefined,
 
1102		"pretitle": undefined,
 
1103		"read": {
 
1104		    "time": Math.round(($(".text").text().split(' ').length * 60) / 250).toString()
 
1105		},
 
1106		"related": "0",
 
1107		"search": undefined,
 
1108		"section": {
 
1109			"level_1": "$secc1",
 
1110			"level_2": $secc2,
 
1111			"level_3": $secc3
 
1112		},
 
1113		"social": undefined,
 
1114		"tag": $keywordsfinal_datalayer,
 
1115		"type": {
 
1116		    "cms": _cms
 
1117		},
 
1118		"words": $(".text").text().split(' ').length
 
1119	    },
 
1120	    "page": {
 
1121		"h1": (!document.querySelector('h1')) ? 'null': document.querySelector('h1').textContent,
 
1122		"notifications": Notification.permission,
 
1123		"referrer": document.referrer,
 
1124		"response": "200",
 
1125		"view_id": Math.floor(Date.now() / 1000),
 
1126		"title": document.title,
 
1127		"url": {
 
1128		    "complete": window.location.href,
 
1129		    "domain": "codigonuevo.com",
 
1130		    "hostname": "www.codigonuevo.com",
 
1131		    "parameters": undefined,
 
1132		    "path": window.location.pathname
 
1133		}
 
1134	    },
 
1135	    "product": {
 
1136		"platform": "web"
 
1137	    },
 
1138	    "video": {
 
1139		"author": undefined,
 
1140		"origin": undefined,
 
1141		"title": undefined,
 
1142		"type": undefined
 
1143	    }
 
1144	}    );
 
1145</script>
 
1146
 
1147#if($iterVelocityTools.getVelocityVariable("teaseritemposition") == 1)
 
1148	#set ($Headline = "")
 
1149	#getTagMacro_v1($Headline, '', 'Headline', -1, '', '')
 
1150	#set($TituloEsc = $htmlUtil.escape($!Headline.data))
 
1151	#set($TituloEsc = $TituloEsc.replaceAll("\n", ""))
 
1152	#set ($tempSubheadline = "#getTeaserSubheadline_v1(false)")
 
1153	#if($tempSubheadline && $tempSubheadline != "")
 
1154		#set($Texto = $tempSubheadline )
 
1155	#end	
 
1156	#set($Texto = $!Texto.replaceAll("<.*?>","") )
 
1157	#set($Texto = $!Texto.trim() )
 
1158	#set($TextoEsc = $!htmlUtil.escape($Texto))
 
1159
 
1160	#set ($Text = "")
 
1161	#getTagMacro_v1($Text, '', 'Text', -1, '', '')
 
1162	#set ($TextArt = $!Text.data)
 
1163	#set($TextArt = $TextArt.replaceAll("<.*?>","") )
 
1164	#set($TextArt = $TextArt.trim() )
 
1165	#set($TextoFinal = $!htmlUtil.escape($TextArt))
 
1166
 
1167	#set($logo = "$!iterVelocityTools.getVariable('0','logo_datos')" )
 
1168	#set($logo = $logo.trim() )
 
1169	#set($logo = $htmlUtil.escape($logo))
 
1170	#set($logo = $logo.replaceAll("/","\/") )
 
1171	#set($section = "")
 
1172	#set($section_url = "")
 
1173	#set($ac-sectionDateFrom =  $articleContext.selectNodes('articlectx/sections//section[@from]'))
 
1174	#if($ac-sectionDateFrom && $ac-sectionDateFrom.size() > 0)
 
1175		#foreach ($atrib in $ac-sectionDateFrom.get(0).attributes()  )
 
1176			#if($atrib.name == "name")
 
1177				#set($section = $!atrib.data)
 
1178			#end
 
1179			#if($atrib.name == "url")
 
1180				#set($section_url = $!atrib.data)
 
1181			#end
 
1182			
 
1183		#end
 
1184	#end
 
1185
 
1186	##++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
1187	## VIDEOS EN JSON ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
1188	##++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 
1189	#set($cont_video = '')
 
1190	#set ($Youtube_Text = "")
 
1191	#getTagMacro_v1($Youtube_Text, '', 'Youtube_Text', -1, '', '')
 
1192	#if(($Multimedia && $Multimedia.Document.data) || ($Youtube_Text && $Youtube_Text.data) || ($Vimeo && $Vimeo.data ) || ($Youtube && $Youtube.data))
 
1193			#if($Multimedia && $Multimedia.Document.data != '')
 
1194				#foreach ($el in $Multimedia.getSiblings())
 
1195					#if ($el.Extension.data && $el.Extension.data == "mp4")
 
1196						#if($cont_video != "")
 
1197							#set($cont_video = $cont_video + ',')
 
1198						#end
 
1199						#set($cont_video = $cont_video +'{"@type": "VideoObject","name": "Interno","description": "","thumbnailUrl": "'+$!el.Preview.data+'","uploadDate": "'+$reserved-article-display-date.data+'","url": "'+$!el.Document.data+'"}')
 
1200					#end
 
1201				#end
 
1202			#end
 
1203			#if($Youtube && $Youtube.data)
 
1204				#foreach ($el in $Youtube.getSiblings())
 
1205					#if($cont_video != "")
 
1206						#set($cont_video = $cont_video + ',')
 
1207					#end
 
1208					#set($cont_video = $cont_video + '{"@type": "VideoObject","name": "Youtube","description": "","thumbnailUrl": "https://img.youtube.com/vi/'+$el.data+'/maxresdefault.jpg","uploadDate": "'+$reserved-article-display-date.data+'","url": "https://www.youtube.com/embed/'+$el.data+'"}')
 
1209				#end
 
1210			#end
 
1211			#if($Youtube_Text && $Youtube_Text.data)
 
1212				#foreach ($el in $Youtube_Text.getSiblings())
 
1213					#if($cont_video != "")
 
1214						#set($cont_video = $cont_video + ',')
 
1215					#end
 
1216					#set($cont_video = $cont_video + '{"@type": "VideoObject","name": "Youtube","description": "", "thumbnailUrl": "https://img.youtube.com/vi/'+$el.data+'/maxresdefault.jpg","uploadDate": "'+$reserved-article-display-date.data+'","url": "www.youtube.com/embed/'+$el.data+'"}')
 
1217				#end
 
1218			#end
 
1219	#end
 
1220	##++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
1221	## IMAGES EN JSON ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
1222	##++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
1223	#set($cont_image = '')
 
1224	#if(!$numImage)
 
1225		#set ($numImage = 0)
 
1226	#end
 
1227	#if($numImage > 0)
 
1228		#set ($numImageFor = $numImage - 1)
 
1229		#foreach($i in [0..$numImageFor])
 
1230			#set($NodeImage = $articleToolbox.getImageNode("Image", "$i", "true"))
 
1231			#set($UrlImage = $articleToolbox.getImageURL("Image", "$i", "crop1200x980"))
 
1232			#if($cont_image != "")
 
1233				#set($cont_image = $cont_image + ',')
 
1234			#end
 
1235			#set($cont_image = $cont_image + '{"@type": "ImageObject","url": "'+$UrlImage+'","datePublished": "'+$reserved-article-display-date.data+'"')
 
1236			#if($!NodeImage.Byline && $!NodeImage.Byline.data != "")
 
1237				#set($BylineImage = $!NodeImage.Byline.data)
 
1238				#set($cont_image = $cont_image + ',"author": "'+$!BylineImage+'"')
 
1239
 
1240			#end
 
1241			#if($!NodeImage.Cutline && $!NodeImage.Cutline.data != "")
 
1242				#set($CutlineImage = $!NodeImage.Cutline.data)
 
1243				#set($cont_image = $cont_image + ',"caption": "'+$CutlineImage+'","name": "'+$!CutlineImage+'"')
 
1244			#end
 
1245			#set($cont_image = $cont_image + '}')
 
1246		#end
 
1247
 
1248	#end
 
1249	#set ($numImageText = $articleToolbox.getNumImageTags("Image_Text", "true"))
 
1250	#if(!$numImageText)
 
1251		#set ($numImageText = 0)
 
1252	#end
 
1253	#if($numImageText > 0)	
 
1254		#set ($numImageForT = $numImageText - 1)
 
1255		#foreach($i in [0..$numImageForT])
 
1256			#set($NodeImage = $articleToolbox.getImageNode("Image_Text", "$i", "true"))
 
1257			#set($UrlImage = $articleToolbox.getImageURL("Image_Text", "$i", "crop1200x980"))
 
1258			#if($cont_image != "")
 
1259				#set($cont_image = $cont_image + ',')
 
1260			#end
 
1261			#set($cont_image = $cont_image + '{"@type": "ImageObject","url": "'+$UrlImage+'","datePublished": "'+$reserved-article-display-date.data+'"')
 
1262			#if($!NodeImage.Byline && $!NodeImage.Byline.data != "")
 
1263				#set($BylineImage = $!NodeImage.Byline.data)
 
1264				#set($cont_image = $cont_image + ',"author": "'+$!BylineImage+'"')
 
1265
 
1266			#end
 
1267			#if($!NodeImage.Cutline && $!NodeImage.Cutline.data != "")
 
1268				#set($CutlineImage = $!NodeImage.Cutline.data)
 
1269				#set($cont_image = $cont_image + ',"caption": "'+$CutlineImage+'","name": "'+$!CutlineImage+'"')
 
1270			#end
 
1271			#set($cont_image = $cont_image + '}')
 
1272		#end
 
1273	#end
 
1274	<script type="application/ld+json" nominify>
 
1275		{  
 
1276			"@context": "http://schema.org",  
 
1277			"@type": "NewsArticle",  
 
1278			"mainEntityOfPage": {
 
1279				"@type": "WebPage",
 
1280				"@id": "#siteUrl()$url_actual"  
 
1281			},
 
1282			"headline": "$TituloEsc",
 
1283			#if($keywordsfinal != 'undefined')#*
 
1284			*#		"keywords": [ $keywordsfinal],#*
 
1285			*##end
 
1286			"articleBody": "$TextoFinal",
 
1287			"url": "#siteUrl()$url_actual",
 
1288			"articleSection":"$section",  
 
1289			"datePublished": "$reserved-article-display-date.data",
 
1290			"dateModified": "$reserved-article-modified-date.data",  
 
1291			"author":[{
 
1292				"@type": "Person",
 
1293				"name": "$autorfinal",
 
1294				"url": "#siteUrl()$!autorUrl"
 
1295			}],
 
1296			"publisher": {
 
1297				"@type": "Organization",
 
1298				"name": "Código Nuevo",
 
1299				"logo": {
 
1300					"@type": "ImageObject",
 
1301					"url": "$logo"    
 
1302				}  
 
1303			},
 
1304			#if($cont_image != "")#*
 
1305			*#		"image":[$cont_image],#*
 
1306			*##end#*
 
1307			*##if($cont_video != "")#*
 
1308			*#		"video":[$cont_video],#*
 
1309			*##end
 
1310			"description": "$!TextoEsc"		
 
1311		}
 
1312	</script>
 
1313
 
1314	#set($logo = $iterVelocityTools.getVariable("0","logo_amp"))
 
1315	<script type="application/ld+json"> {"@context":"https://schema.org",
 
1316		"@graph":[{
 
1317		"@type":"Organization",
 
1318		"@id":"https://www.codigonuevo.com/organization",
 
1319		"name":"Código Nuevo",
 
1320		"url":"https://www.codigonuevo.com/",
 
1321		"sameAs":["https://www.facebook.com/codigonuevoCN/","https://twitter.com/codigonuevo/","https://www.instagram.com/codigonuevo/","https://www.youtube.com/channel/UCSqYjOWkCPVtZY8XubFZdDA"],
 
1322		"logo":{"@type":"ImageObject","@id":"https://www.compramejor.es/#logo",
 
1323		"inLanguage":"es",
 
1324		"url":"$logo",
 
1325		"width":395,
 
1326		"height":55,
 
1327		"caption":"Código Nuevo"
 
1328		}
 
1329		},
 
1330		  {"@type":"WebSite","@id":"https://www.codigonuevo.com/#website",
 
1331		"url":"https://www.codigonuevo.com/",
 
1332		"name":"Código Nuevo","description":"Código Nuevo es el medio de comunicación online que habla claro de las cosas que te interesan. Inspiramos, informamos y conectamos contigo.","publisher":{"@id":"https://www.codigonuevo.com/#organization"},"inLanguage":"es"},
 
1333		{"@type":"WebPage","@id":"https://www.codigonuevo.com/#webpage","url":"https://www.codigonuevo.com/","name":"Código Nuevo | La información que te conecta con el mundo",
 
1334		"isPartOf":{"@id":"https://www.codigonuevo.com/#website"},"about":{"@id":"https://www.codigonuevo.com/#organization"},
 
1335		"datePublished":"$reserved-article-modified-date.data","dateModified":"$reserved-article-display-date.data","description":"Código Nuevo es el medio de comunicación online que habla claro de las cosas que te interesan. Inspiramos, informamos y conectamos contigo.","inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https://www.codigonuevo.com/"]}]}
 
1336		]}
 
1337	</script>	
 
1338
 
1339	#set($metaFrom = {})
 
1340	#set($temp = $metaFrom.put("property","article:published_time"))
 
1341	#set($temp = $metaFrom.put("content",$date_m.trim()))
 
1342	$iterVelocityTools.addMetaTag( $metaFrom )
 
1343
 
1344	#set($metaModif = {})
 
1345	#set($temp = $metaModif.put("property","article:modified_time"))
 
1346	#set($temp = $metaModif.put("content", $date_m.trim() ))
 
1347	$iterVelocityTools.addMetaTag( $metaModif )		
 
1348
 
1349	#set($metaRobots = {})
 
1350	#set($temp = $metaRobots.put("name","robots"))
 
1351	#set($temp = $metaRobots.put("content", "max-image-preview:large" ))
 
1352	$iterVelocityTools.addMetaTag( $metaRobots )
 
1353
 
1354	#set($metaFaceApp = {})
 
1355	#set($temp = $metaFaceApp.put("property","fb:app_id"))
 
1356	#set($temp = $metaFaceApp.put("content","219282031776342" ))
 
1357	$iterVelocityTools.addMetaTag( $metaFaceApp )
 
1358
 
1359	#set($metaFacePage = {})
 
1360	#set($temp = $metaFacePage.put("property","fb:pages"))
 
1361	#set($temp = $metaFacePage.put("content","" ))
 
1362	##$iterVelocityTools.addMetaTag( $metaFacePage )
 
1363
 
1364	#set($metaSiteName = {})
 
1365	#set($temp = $metaSiteName.put("property","og:site_name"))
 
1366	#set($temp = $metaSiteName.put("content","Código Nuevo" ))
 
1367	$iterVelocityTools.addMetaTag( $metaSiteName )
 
1368
 
1369	#if($TextoEsc && $TextoEsc != "")
 
1370		#set($metaSiteName = {})
 
1371		#set($temp = $metaSiteName.put("name","twitter:description"))
 
1372		#set($temp = $metaSiteName.put("content",$TextoEsc))
 
1373		$iterVelocityTools.addMetaTag( $metaSiteName )
 
1374	#end
 
1375
 
1376	#set($url_image = "$!articleToolbox.getImageURL('Image', '0', 'crop1200x980')" )
 
1377	#set($metaSiteName = {})
 
1378	#set($temp = $metaSiteName.put("name","twitter:image"))
 
1379	#set($temp = $metaSiteName.put("content", $!url_image))
 
1380	$iterVelocityTools.addMetaTag( $metaSiteName )
 
1381
 
1382	##++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
1383	##++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
1384	#set($metaSiteName = {})
 
1385	#set($temp = $metaSiteName.put("name","twitter:title"))
 
1386	#set($temp = $metaSiteName.put("content",$TituloEsc))
 
1387	$iterVelocityTools.addMetaTag( $metaSiteName )
 
1388
 
1389	#set($metaSiteName = {})
 
1390	#set($temp = $metaSiteName.put("name","twitter:site"))
 
1391	#set($temp = $metaSiteName.put("content","@CodigoNuevo"))
 
1392	$iterVelocityTools.addMetaTag( $metaSiteName )
 
1393	
 
1394	#set($metaSiteName = {})
 
1395	#set($temp = $metaSiteName.put("name","twitter:card"))
 
1396	#set($temp = $metaSiteName.put("content","summary_large_image"))
 
1397	$iterVelocityTools.addMetaTag( $!metaSiteName )
 
1398	
 
1399	#set($metaSiteName = {})
 
1400	#set($temp = $metaSiteName.put("name","author"))
 
1401	#set($temp = $metaSiteName.put("content","$autorfinal"))
 
1402	$iterVelocityTools.addMetaTag( $metaSiteName )
 
1403
 
1404	#set($metaSiteName = {})
 
1405	#set($temp = $metaSiteName.put("name","publisher"))
 
1406	#set($temp = $metaSiteName.put("content","www.codigonuevo.com"))
 
1407	$iterVelocityTools.addMetaTag( $metaSiteName )
 
1408
 
1409	#set($metaSiteName = {})
 
1410	#set($temp = $metaSiteName.put("name","og:section"))
 
1411	#set($temp = $metaSiteName.put("content","$section"))
 
1412	$iterVelocityTools.addMetaTag( $metaSiteName )
 
1413
 
1414	#if($articleToolbox.getTag(null, "SEOCanonical") && $articleToolbox.getTag(null, "SEOCanonical") != "")
 
1415		#set($linkCanonical = {})
 
1416		#set($URLCanonical = "https://" + $!articleToolbox.getTag(null, "SEOCanonical").data )
 
1417		#set($temp = $linkCanonical.put("rel","canonical"))
 
1418		#set($temp = $linkCanonical.put("href", $URLCanonical))
 
1419		$iterVelocityTools.addLinkTag( $linkCanonical )
 
1420	#end
 
1421
 
1422
 
1423#end