Tu perro muestra entusiasmo ante el habla dirigida a perros de cualquiera. Tu gato solo ante el habla dirigida a gatos que proviene de ti

Sorpresa de las buenas, de hecho. Porque tu perro se vuelve absolutamente loco de felicidad cuando le hablas y diriges tu atención hacia él, su rabito meneándose frenéticamente, sus orejitas agachadas, su cuerpo inquieto, mientras que tu gato parece no hacerte ni puto caso o un caso mínimo. Uno parece decirte con su comportamiento que te ama por encima de todo y que eres el ser más especial del universo para él. El otro parece decirte que puede que le caigas bien y poco más. Sin embargo, y como cuenta el experto Bence Nanay, de la Universidad de Amberes, “los gatos tienen una reacción mucho más fuerte al habla cuando es su dueño quien lo hace”. El resto de la gente le da igual.

”La reacción de los perros es bastante difícil de pasar por alto, ya que va desde saltar arriba y abajo hasta saltar arriba y abajo como locos, pero los gatos son, como tantas otras veces, mucho más sutiles: giran los orejas o incluso la cabeza ligeramente en la dirección de la voz y puede dejar de acicalarse”. Las investigaciones muestran, según el propio Nanay, que esta reacción sutil es en realidad muy significativa, ya que a diferencia de los perros, que reaccionan con similar intensidad o incluso con la misma intensidad con independencia de qué humano hable, tu gato solo muestra interés en ti, lo que prueba que verdaderamente te considera muy especial. Son animales muy selectivos.

Así conectan contigo los gatos

Por supuesto, y como indica este especialista en Psychology Today, “todo esto claramente no muestra que los gatos estén más interesados en sus dueño que los perros, y mucho menos que los amen más, pero en un aspecto tan importante como este son más perspicaces” y prueban tener “un vínculo especial con su dueño en este sentido”. Seguro que tu perro te ama profundamente pero en sus genes está sentir amor y devoción similar por cualquier ser humano. Son así de amables. De amorosos. De abiertos y confiados. Tu gato, por el contrario, requiere de muchos más momentos con una persona para desarrollar una conexión. Contigo la tienen. Con el resto del mundo no.

Y lo curioso es que este fenómeno se mantiene cuando hablas a tu perro o a tu gato con lo que se conoce como habla dirigida a perros y habla dirigida a gatos. Ya sabes: eso de “utilizar tonos más altos, vocales extendidas y muchas repeticiones”. “¿Quién es el animal más boniiiiiiito del univeeeeeeerso?”. En ese sentido, “los estudios descartan que sean las simples características acústicas del habla dirigida a gatos la que hace que tu gato se interese, como el tono o la repetición, ya que las mismas características acústicas no hacen nada cuando es un extraño quien las pronuncia”. Son inmunes a ese hablar si no viene de ti. Quizá no muestren tanto entusiasmo. Pero el que muestren solo lo muestran con su queridx dueñx. ¿No es precioso?

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