Últimas Fotogalerías
Se ha producido un error al procesar la plantilla.
Encountered "0" at 21136/F/METRICAS_DETALLE[line 217, column 74]
Was expecting one of:
    "," ...
    ")" ...
    <WHITESPACE> ...
    
1##----Metricas Detalle----
 
2
 
3#set($TituloEsc = $!articleToolbox.getTag(null,"Headline").data)
 
4#set($TituloEsc = $TituloEsc.replaceAll("\n", ""))
 
5#set($DescTexto = $!articleToolbox.getTag(null,"Lead").data)
 
6#set($DescTexto = $DescTexto.trim() )
 
7#set($DescTexto = $htmlUtil.escape($DescTexto))	
 
8
 
9
 
10#set($logo = "$iterVelocityTools.getVariable('0','logo2')" )
 
11#set($logo = $logo.trim() )
 
12#set($logo = $htmlUtil.escape($logo))
 
13#set($logo = $logo.replaceAll("/","\/") )
 
14#set($section = "")
 
15#set($section_url = "")
 
16#set($ac-sectionDateFrom =  $articleContext.selectNodes('articlectx/sections//section[@from]'))
 
17#if($ac-sectionDateFrom && $ac-sectionDateFrom.size() > 0)
 
18	#foreach ($atrib in $ac-sectionDateFrom.get(0).attributes()  )
 
19		#if($atrib.name == "name")
 
20			#set($section = $!atrib.data)
 
21		#end
 
22		#if($atrib.name == "url")
 
23			#set($section_url = $!atrib.data)
 
24		#end
 
25		
 
26	#end
 
27#end
 
28## *************** AUTOR ********************
 
29#set($hmAutores = {})
 
30#getAcAssignedCatExtended_v1($hmAutores "Author")
 
31#set($autorfinal = "")
 
32#set($urlautorfinal = "")
 
33#if($hmAutores.size() > 0)
 
34	#set($hmAutor = $hmAutores.get(0))
 
35	#set($autorfinal = $hmAutor.name)
 
36	#set($urlautorfinal = "#metadataUrl_v1('cronologia')${hmAutor.friendlyname}")
 
37#end
 
38#if($autorfinal == "")
 
39	#set($autorfinal = "LaPrensa.hn")
 
40	#set($urlautorfinal = "https://www.laprensa.hn")
 
41#end
 
42##************** METADATOS *******************
 
43#set($keywordsfinal = "")
 
44#set($auxCatalagoTema = {})
 
45#getAcAssignedCatExtended_v1($auxCatalagoTema "Topic")
 
46#if($auxCatalagoTema.size() > 0)
 
47	#foreach($keyword in $auxCatalagoTema)
 
48		#if($keywordsfinal == "")
 
49			#set($keywordsfinal = $keyword.name)
 
50		#else
 
51			#set($keywordsfinal = $keywordsfinal + ", " +$keyword.name)
 
52		#end
 
53	#end
 
54#end
 
55
 
56#set($auxCatalagoLocation = {})
 
57#getAcAssignedCatExtended_v1($auxCatalagoLocation "Location")
 
58#if($auxCatalagoLocation.size() > 0)
 
59	#foreach($keyword in $auxCatalagoLocation)
 
60		#if($keywordsfinal == "")
 
61			#set($keywordsfinal = $keyword.name)
 
62		#else
 
63			#set($keywordsfinal = $keywordsfinal + ", " +$keyword.name)
 
64		#end
 
65	#end
 
66#end
 
67#set($auxCatalagoPeople = {})
 
68#getAcAssignedCatExtended_v1($auxCatalagoPeople "People")
 
69#if($auxCatalagoPeople.size() > 0)
 
70	#foreach($keyword in $auxCatalagoPeople)
 
71		#if($keywordsfinal == "")
 
72			#set($keywordsfinal = $keyword.name )
 
73		#else
 
74			#set($keywordsfinal = $keywordsfinal + ", " +$keyword.name)
 
75		#end
 
76	#end
 
77#end
 
78#set($auxCatalagoTeams = {})
 
79#getAcAssignedCatExtended_v1($auxCatalagoOrganizations "Teams")
 
80#if($auxCatalagoTeams.size() > 0)
 
81	#foreach($keyword in $auxCatalagoTeams)
 
82		#if($keywordsfinal == "")
 
83			#set($keywordsfinal = $keyword.name)
 
84		#else
 
85			#set($keywordsfinal = $keywordsfinal + ", " +$keyword.name)
 
86		#end
 
87	#end
 
88#end
 
89#set($auxCatalagoInstitutions = {})
 
90#getAcAssignedCatExtended_v1($auxCatalagoOrganizations "Institutions")
 
91#if($auxCatalagoInstitutions.size() > 0)
 
92	#foreach($keyword in $auxCatalagoInstitutions)
 
93		#if($keywordsfinal == "")
 
94			#set($keywordsfinal = $keyword.name)
 
95		#else
 
96			#set($keywordsfinal = $keywordsfinal + ", " +$keyword.name)
 
97		#end
 
98	#end
 
99#end
 
100##************************************************************************
 
101#set($ac-url = $articleContext.selectNodes('articlectx/url'))
 
102#set($xml-url = $ac-url.get(0).text)
 
103#set($url_actual = $!xml-url )
 
104#set($dateF = "#printDateFrom_v1('yyyy-MM-dd' 'false' 'false')")
 
105#set($dateF = $dateF.trim())
 
106#set($dateM = "#printDateFrom_v1('HH:mm:ss' 'false' 'false')")
 
107#set($dateM = $dateM.trim())
 
108#set($dateF = $dateF + "T" + $dateM)
 
109#set($pub_imagen = $articleToolbox.getImageURL("Image","0","crop_900x506"))
 
110#set($thumb_imagen = $articleToolbox.getImageURL("Image","0","crop_200x112"))
 
111
 
112#set($TextoTotalEsc = $!articleToolbox.getTag(null,"Text").data)
 
113#set($TextoTotalEsc = $TextoTotalEsc.replaceAll("<p>", ""))
 
114#set($TextoTotalEsc = $TextoTotalEsc.replaceAll("</p>", ""))
 
115#set($TextoTotalEsc = $htmlUtil.escape($TextoTotalEsc))	
 
116<script type="application/ld+json">
 
117	{
 
118		"@context": "https://schema.org",
 
119		"@type": "NewsArticle",
 
120		"mainEntityOfPage": "#siteUrl()$!articleToolbox.getArticleViewer("canonical")",
 
121		"name": "$TituloEsc",
 
122		"headline": "$TituloEsc",
 
123		"description": "$!DescTexto",
 
124		"url": "#siteUrl()$url_actual",
 
125		"thumbnailUrl": "$thumb_imagen",
 
126		"datePublished": "$dateF",
 
127		"dateCreated": "$dateF",
 
128		"dateModified": "$dateF",
 
129		"articleSection": "$section",
 
130		"creator": ["$autorfinal"],
 
131		"keywords": ["$keywordsfinal"],
 
132		"author": [{
 
133			"@type": "Person",
 
134			"name": "$autorfinal",
 
135			"url": "$urlautorfinal"
 
136		}],
 
137		"image": {
 
138          "@type": "ImageObject",
 
139          "url": "$pub_imagen",
 
140          "width": 900,
 
141		  "height": 506
 
142        },
 
143		"publisher": {
 
144          "@type": "Organization",
 
145          "name": "La Prensa",
 
146          "logo": {
 
147            "@type": "ImageObject",
 
148            "url": "$iterVelocityTools.getVariable('0','logo2')"
 
149          }
 
150        },
 
151		"sameAs" : [
 
152			"https://www.facebook.com/diariolaprensahonduras/",
 
153			"https://twitter.com/DiarioLaPrensa/",
 
154			"https://plus.google.com/117628110611405237004/",
 
155			"https://instagram.com/diariolaprensa/"
 
156		],
 
157		"articleBody": "$!TextoTotalEsc"
 
158	}
 
159</script>
 
160<meta itemscope itemprop="mainEntityOfPage" itemtype="https://schema.org/WebPage" itemid="#siteUrl()$url_actual" />
 
161<meta itemprop="datePublished" content="$dateF">
 
162<meta itemprop="dateModified" content="$dateF">
 
163<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
 
164	<meta itemprop="url" content="https://www.laprensa.hn/" />
 
165	<meta itemprop="name" content="LaPrensa" />
 
166	<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
 
167		<meta itemprop="url" content="$iterVelocityTools.getVariable('0','logo2')" />
 
168		<meta itemprop="width" content="300" />
 
169		<meta itemprop="height" content="43" />
 
170	</div>
 
171</div>
 
172
 
173#set($metaTwitter = {})
 
174#set($temp = $metaTwitter.put("name","twitter:card"))
 
175#set($temp = $metaTwitter.put("content","summary_large_image"))
 
176$!iterVelocityTools.addMetaTag($metaTwitter)
 
177
 
178#set($metaTwitter = {})
 
179#set($temp = $metaTwitter.put("name","twitter:site"))
 
180#set($temp = $metaTwitter.put("content","@DiarioLaPrensa"))
 
181$!iterVelocityTools.addMetaTag($metaTwitter)
 
182
 
183#set($metaTwitter = {})
 
184#set($temp = $metaTwitter.put("name","twitter:title"))
 
185#set($temp = $metaTwitter.put("content","$!TituloEsc"))
 
186$!iterVelocityTools.addMetaTag($metaTwitter)
 
187
 
188#set($metaTwitter = {})
 
189#set($temp = $metaTwitter.put("name","twitter:description"))
 
190#set($temp = $metaTwitter.put("content","$!DescTexto"))
 
191$!iterVelocityTools.addMetaTag($metaTwitter)
 
192
 
193#set($metaTwitter = {})
 
194#set($temp = $metaTwitter.put("name","twitter:image"))
 
195#set($temp = $metaTwitter.put("content","$pub_imagen"))
 
196$!iterVelocityTools.addMetaTag($metaTwitter)
 
197
 
198#set($metaTwitter = {})
 
199#set($temp = $metaTwitter.put("name","twitter:url"))
 
200#set($temp = $metaTwitter.put("content","#siteUrl()$url_actual"))
 
201$!iterVelocityTools.addMetaTag($metaTwitter)
 
202
 
203
 
204#set($metaDetalle = {})
 
205#set($temp = $metaDetalle.put("property","og:locale"))
 
206#set($temp = $metaDetalle.put("content","es_LA"))
 
207$!iterVelocityTools.addMetaTag($metaDetalle)
 
208
 
209#set($metaDetalle = {})
 
210#set($temp = $metaDetalle.put("property","article:publisher"))
 
211#set($temp = $metaDetalle.put("content","https://www.facebook.com/diariolaprensahonduras/"))
 
212$!iterVelocityTools.addMetaTag($metaDetalle)
 
213
 
214
 
215#set($metaDetalle = {})
 
216#set($temp = $metaDetalle.put("property","article:section"))
 
217#set($temp = $metaDetalle.put("content","$iterVelocityTools.getVariable("0", "SectionName")"))
 
218$!iterVelocityTools.addMetaTag($metaDetalle)
 
219
 
220
 
221#set($hmTemas = {})
 
222#getAcAssignedCatExtended_v1($hmTemas "Topics")
 
223
 
224#if($hmTemas && $hmTemas.size() > 0)
 
225	#foreach ($elem in $hmTemas)
 
226		#set($metaTema = {})
 
227		#set($temp = $metaTema.put("property","article:tag"))
 
228		#set($temp = $metaTema.put("content",$elem.name))
 
229		$iterVelocityTools.addMetaTag( $metaTema )
 
230	#end
 
231#end
 
232
 
233
 
234
 
235<script type="text/javascript">
 
236(function() {
 
237	/** CONFIGURATION START **/
 
238	var _sf_async_config = window._sf_async_config = (window._sf_async_config || {});
 
239	_sf_async_config.uid = 21622;
 
240	_sf_async_config.domain = 'laprensa.hn';
 
241	_sf_async_config.flickerControl = false;
 
242	_sf_async_config.useCanonical = true;
 
243	_sf_async_config.useCanonicalDomain = true;
 
244	_sf_async_config.sections = "$section";
 
245	_sf_async_config.authors = "$autorfinal";
 
246	_sf_async_config.title = "$TituloEsc";
 
247	/** CONFIGURATION END **/
 
248	function loadChartbeat() {
 
249		var e = document.createElement('script');
 
250		var n = document.getElementsByTagName('script')[0];
 
251		e.type = 'text/javascript';
 
252		e.async = true;
 
253		e.src = '//static.chartbeat.com/js/chartbeat.js';;
 
254		n.parentNode.insertBefore(e, n);
 
255	}
 
256	loadChartbeat();
 
257})();
 
258</script>
 
259<script async src="//static.chartbeat.com/js/chartbeat_mab.js"></script>
 
260#set($dim3 = "Estandar")
 
261#set($dim5 = "0")
 
262#set($dim6 = "Estandar")
 
263#if($Youtube && $Youtube.data != "" || $Youtube_Text && $Youtube_Text.data != "" || $Jwplayer && $Jwplayer.data != "" || $Jwplayer_Text && $Jwplayer_Text.data != "" || $Multimedia && $Multimedia.data != "" || $Multimedia_Text && $Multimedia_Text.data != "")
 
264	#set($dim3 = "Nota-Video")
 
265#end
 
266#set($ac_section =  $articleContext.selectNodes('articlectx/sections//section'))
 
267#if($ac_section.size() > 0)
 
268	#foreach ($secc in $ac_section  )
 
269		#foreach ($atrib in $secc.attributes())      
 
270			#if($atrib.name == "name")
 
271				#if($!atrib.data == "Videos")
 
272					#set($dim3 = "Video")
 
273				#end
 
274				#if($!atrib.data == "Fotogalerías")
 
275					#set($dim3 = "Fotogalería")
 
276				#end
 
277			#end
 
278		#end 
 
279	#end
 
280#end
 
281#set($hmAClassification = {})
 
282#getAcAssignedCatExtended_v1($hmAutores "Advertising_Classification")
 
283#if($hmAClassification.size() > 0)
 
284	#set($hmAC = $hmAClassification.get(0))
 
285	#if($hmAC.name == "No GAE")
 
286		#set($dim5 = "1")
 
287	#end
 
288#end
 
289#set($hmJournalism_Type = {})
 
290#getAcAssignedCatExtended_v1($hmJournalism_Type "Journalism_Type")
 
291#if($hmJournalism_Type.size() > 0)
 
292	#set($hmJT = $hmJournalism_Type.get(0))
 
293	#set($dim6 = $hmJT.name)
 
294#end
 
295<script>
 
296      window.dataLayer.push({
 
297	      'event' : 'pageview',
 
298	      'dimension1' : '$autorfinal',
 
299	      'dimension2' : '$dateF',
 
300	      'dimension3' : '$dim3',
 
301	      'dimension4' : '$section',
 
302	      'dimension5' : '$dim5',
 
303	      'dimension6' : '$dim6'
 
304      });
 
305</script>