An error occurred while processing the template.
Error on line 21, column 33 in 10157#10197#2448022
renderer.getArticle() is undefined.
It cannot be assigned to article
1<#assign aui = taglibLiferayHash["/WEB-INF/tld/aui.tld"] /> 
2<#assign liferayui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
3<#assign portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet.tld"] /> 
4 
5<div id="<@portlet.namespace />tab-content" class="panel panel-default"> 
6	<#if entries?has_content> 
7	  
8	    <div class="panel-heading"> 
9    		<ul class="nav nav-tabs"> 
10    			<#list entries as entry> 
11    			    <#assign tabClassName = (entry.getTitle(locale)) /> 
12    				<li ><a class="${tabClassName?replace(" ","_")?lower_case}" href="#">${entry.getTitle(locale)}</a></li> 
13    			</#list> 
14    		</ul> 
15        </div> 
16		<#list entries as entry> 
17			<#assign renderer = entry.getAssetRenderer() /> 
18			<#assign className = renderer.getClassName() /> 
19			<#if className == "com.liferay.portlet.journal.model.JournalArticle"> 
20				<div class="panel-body entry-view hidden"> 
21				<#assign article = renderer.getArticle() /> 
22				<#assign articleId = article.getArticleId() /> 
23				<#assign groupId = article.getGroupId() /> 
24				<@liferayui["journal-article"] articleId="${articleId}" groupId=groupId /> 
25				</div> 
26			</#if> 
27		</#list> 
28	</#if> 
29</div> 
30<style> 
31#<@portlet.namespace />tab-content .panel-heading { 
32    padding-bottom:0px; 
33
34#<@portlet.namespace />tab-content .panel-heading .nav.nav-tabs { 
35    border-bottom:none; 
36
37#<@portlet.namespace />tab-content .panel-heading a { 
38    cursor:pointer; 
39    text-decoration:none; 
40
41#<@portlet.namespace />tab-content .panel-heading .nav{ 
42    margin-bottom:0px; 
43
44#<@portlet.namespace />tab-content .panel-heading .nav{ 
45    margin-bottom:0px; 
46
47#<@portlet.namespace />tab-content .bulk_catalogue { 
48     margin-bottom:0px; 
49
50</style> 
51 
52 
53<script type="text/javascript"> 
54AUI().ready('node', function(A) { 
55	var container = A.one('#<@portlet.namespace />tab-content'), 
56		tabs = container.all('.nav > li'), 
57		ancors =  container.all('.nav-tabs > li > a'), 
58		contents = container.all('.entry-view'); 
59		 
60	var firstTabWithContent = null; 
61	for(var x = 0; x < ancors.size(); x++) { 
62	    if(AUI().one(contents._nodes[x]).text().trim() == "") { 
63				AUI().one(ancors._nodes[x]).addClass("hidden");  
64				AUI().one(contents._nodes[x]).addClass("hidden");  
65				AUI().one(tabs._nodes[x]).removeClass("active"); 
66	    } else if(AUI().one(contents._nodes[x]).one(".bulk-catalog-context") != null)  { 
67	              if(AUI().one(contents._nodes[x]).one(".bulk-catalog-context").text().trim() == "") { 
68        	            AUI().one(ancors._nodes[x]).addClass("hidden");  
69        				AUI().one(contents._nodes[x]).addClass("hidden");  
70        				AUI().one(tabs._nodes[x]).removeClass("active"); 
71
72	    } else { 
73			if(firstTabWithContent == null) { 
74				firstTabWithContent = x; 
75				AUI().one(tabs._nodes[firstTabWithContent]).addClass("active");  
76				AUI().one(ancors._nodes[firstTabWithContent]).removeClass("hidden");  
77				AUI().one(contents._nodes[firstTabWithContent]).removeClass("hidden");  
78
79
80
81	 
82	tabs.on('click', function(e){ 
83		if(e.target.getAttribute("href") == "#" ){ 
84			e.preventDefault(); 
85			doClick(e.currentTarget); 
86
87    }); 
88	 
89	function doClick(node){ 
90	 
91		if(!node){ 
92			return; 
93
94		 
95		var index = tabs.indexOf(node); 
96		contents.addClass('hidden'); 
97		tabs.removeClass('active'); 
98		node.addClass('active'); 
99		contents.item(index).removeClass('hidden'); 
100
101	doClick(container.one('.nav > li')); 
102	 
103	//webtrends call "Discover" tab 
104	container.one('a.discover').on('click', function(e){ 
105		e.preventDefault(); 
106		if ('undefined' === typeof _webtrends) { 
107			return; 
108
109		var element = e.currentTarget; 
110		try { 
111			_webtrends.dcsMultiTrack('WT.dl', '29', 'DCSext.w_home_element', 'Discover', 'DCSext.w_discover_element', "Discover button name"); 
112		} catch(e) { 
113
114	});  
115	 
116	// ---- De pus pe beta 
117	 
118	//webtrends call Discover tab 
119	container.one('a.discover').on('click', function(e){ 
120		e.preventDefault(); 
121		if ('undefined' === typeof _webtrends) { 
122			return; 
123
124		var element = e.currentTarget; 
125		try { 
126			_webtrends.dcsMultiTrack('WT.dl', '29', 'DCSext.w_home_element', 'Tab Discover'); 
127		} catch(e) { 
128
129	}); 
130	 
131	//webtrends call Social Media tab 
132	container.one('a.social_media').on('click', function(e){ 
133		e.preventDefault(); 
134		if ('undefined' === typeof _webtrends) { 
135			return; 
136
137		var element = e.currentTarget; 
138		try { 
139			_webtrends.dcsMultiTrack('WT.dl', '29', 'DCSext.w_home_element', 'Tab Social Media'); 
140		} catch(e) { 
141
142	});  
143	 
144	// ---- De pus pe beta 
145	 
146	// webtrends call for links from "Discover" tab 
147	container.all('.discover a').on('click', function(e) { 
148		e.preventDefault(); 
149		if ('undefined' === typeof _webtrends) { 
150			return; 
151
152		var element = e.currentTarget; 
153		try { 
154			var linkLabel = element.one('span').getAttribute('en-label'); 
155			 
156			if (!linkLabel) { 
157				linkLabel = element.one('span').html().trim(); 
158
159			_webtrends.dcsMultiTrack('WT.dl', '29', 'DCSext.w_home_element', 'Discover', 'DCSext.w_discover_element', linkLabel); 
160		} catch(e) { 
161
162		window.location.href = element.get('href'); 
163	}); 
164}); 
165</script> 

Most popular

The content of this web element cannot be displayed at the moment. Please retry later.