Sua sessão no site expirou. Você será desconectado em 59 segundos. Continuar conectado.

Sua sessão no site expirou. Faça seu Login .

Sua sessão no site foi renovada.

Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> f_origin  [in template "20116#20152#198784" at line 1169, column 94]

----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${f_origin}  [in template "20116#20152#198784" at line 1169, column 92]
----
1<script> 
2  if ($("link[data-css='promocoes-ofertas']").length === 0) { 
3     $('<link>').attr({ 
4             "href": "/o/avianca-theme/css/promocoes-ofertas.min.css", 
5             "rel" : "stylesheet", 
6             "data-css" : "promocoes-ofertas" 
7         }) 
8         .appendTo('head'); 
9
10</script> 
11 
12<#-- Get all Content on Entries and find the in<#-- Get all Content on Entries and find the information on it. --> 
13<#assign service = serviceLocator.findService("com.liferay.journal.util.JournalContent") > 
14<#assign model = objectUtil("com.liferay.portal.kernel.portlet.PortletRequestModel", renderRequest, renderResponse)> 
15<#assign ambiente = "homol"> 
16<#if ambiente = "dev"> 
17    <#assign c_classTypeId_config_structure = 86608> 
18    <#assign c_DDL_State_Mapping = 80413> 
19    <#assign c_DDL_City_Mapping = 80416> 
20    <#assign c_classTypeId_ofertas_na_home = 86651> 
21    <#assign c_classTypeId_ofertas_all = 86659> 
22	<#assign c_template_config_structure = "189218"> 
23	<#assign c_template_oferta_structure = "0"> 
24    <#assign c_template_banner = "0"> 
25	<#assign c_template_ofertas_home = "189224"> 
26    <#assign c_template_ofertas_all = "0"> 
27<#elseif ambiente = "homol"> 
28    <#assign c_classTypeId_config_structure = 86608> 
29    <#assign c_DDL_State_Mapping = 80413> 
30    <#assign c_DDL_City_Mapping = 80416> 
31    <#assign c_classTypeId_ofertas_na_home = 86651> 
32    <#assign c_classTypeId_ofertas_all = 86659> 
33	<#assign c_template_config_structure = "189218"> 
34	<#assign c_template_oferta_structure = "189208"> 
35    <#assign c_template_banner = "189213"> 
36	<#assign c_template_ofertas_home = "189224"> 
37    <#assign c_template_ofertas_all = "194648"> 
38<#elseif ambiente = "prod"> 
39    <#assign c_classTypeId_config_structure = 86608> 
40    <#assign c_DDL_State_Mapping = 80413> 
41    <#assign c_DDL_City_Mapping = 80416> 
42    <#assign c_classTypeId_ofertas_na_home = 86651> 
43    <#assign c_classTypeId_ofertas_all = 86659> 
44    <#assign c_template_config_structure = "189218"> 
45    <#assign c_template_oferta_structure = "189208"> 
46    <#assign c_template_banner = "189213"> 
47    <#assign c_template_ofertas_home = "189224"> 
48    <#assign c_template_ofertas_all = "194648"> 
49</#if>   
50    <#assign c_grouid = '0'> 
51    <#assign c_folderpath_desktop = '0'> 
52    <#assign c_folderpath_mobile = '0'> 
53    <#assign c_parentfolderid = ''> 
54    <#assign c_Contador = 0> 
55    <#assign c_numbanners = '0'> 
56    <#assign c_beforebirthday = '0'> 
57    <#assign c_afterbirthday = '0'> 
58    <#assign c_idestrutura1 = '0'> 
59    <#assign c_idestrutura2 = '0'> 
60    <#assign c_config_error = ''> 
61    <#assign c_config_content_error = 'X'> 
62    <#assign c_geolocation_iata = ""> 
63    <#assign c_geolocation_iatadesc = "">    
64    <#assign c_debug = ""> 
65     
66    <#-- Define Fields to be filled for each Banner or Promotion --> 
67    <#assign c_banner_title = []> 
68    <#assign c_banner_item = []> 
69    <#assign c_banner_values = []> 
70    <#assign c_ofertas_title = []> 
71    <#assign c_ofertas_item = []> 
72    <#assign c_ofertas_values = []> 
73    <#assign c_ofertas_geolocalizadas = []> 
74    <#assign c_ofertas_not_geolocalizadas = []> 
75	 
76<#---------------------------------------------------- Start Functions -----> 
77<#if c_debug = "X"> 
78	<#assign timea = .now?time?long> 
79</#if> 
80 
81        <#function get_files_from_folder state path index c_grouid c_parentfolderid> 
82 
83            <#assign imageURL = "Nenhuma imagem encontrada"> 
84             
85            <#-- Get Folder for destination--> 
86            <#assign DLFolderLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFolderLocalService") /> 
87            <#assign path1 = path + "/"> 
88            <#assign path1 = path1 + state> 
89        <#-------Translate Path to IDs --------->    
90            <#assign folder_id = c_parentfolderid> 
91            <#assign folder_id_string = []> 
92            <#list path1?split("/") as sValue> 
93                <#assign image_folders = DLFolderLocalService.getFolders(c_grouid?number?long, folder_id?number?long)> 
94                <#list image_folders as image_folder> 
95                    <#if image_folder.name = sValue> 
96                        <#assign folder_id_string = folder_id_string + [image_folder.folderId]> 
97                        <#assign folder_id = image_folder.folderId> 
98                        <#break> 
99                    </#if> 
100                </#list> 
101            </#list> 
102             
103            <#assign num = folder_id_string?size?number - 1> 
104             
105            <#-- Get All Images from Folder --> 
106            <#assign imageURL = ''> 
107            <#assign DLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
108            <#assign images = DLFileEntryLocalService.getFileEntries(c_grouid?number?long, folder_id_string[num]?long)> 
109             
110            <#-- Order According to Priority --> 
111            <#assign new_images_priority = []> 
112            <#list images as single_image>    
113               <#if single_image.getStatus() = 0> 
114                    <#assign end_value = ""> 
115                    <#assign fileVersionId = single_image.getLatestFileVersion(true).getFileVersionId() /> 
116                    <#if fileVersionId??> 
117                        <#assign map = single_image.getDDMFormValuesMap(fileVersionId)> 
118                    </#if> 
119                    <#if map??> 
120                        <#list map?keys as structureKey> 
121                            <#if map[structureKey]??> 
122                                <#list map[structureKey].getDDMFormFieldValues() as field> 
123                                    <#if field.getName() = "priority"> 
124                                        <#assign end_value = field.getValue().getString(locale)> 
125                                    </#if> 
126                                </#list> 
127                            </#if> 
128                        </#list> 
129                    </#if> 
130                    <#assign new_images_priority = new_images_priority + [{"id": single_image, "priority": end_value}]> 
131                </#if> 
132            </#list> 
133             
134            <#assign images = []> 
135            <#list new_images_priority?sort_by("priority") as new_image_single> 
136                <#assign images = images + [new_image_single.id]> 
137            </#list> 
138             
139            <#-- Order According to Priority --> 
140             
141            <#assign count_img = images?size?number> 
142            <#if count_img gt 0> 
143                <#if (index - 1) gt count_img> 
144                    <#assign xx = index / count_img> 
145                    <#assign yy = index - (count_img * xx?int)> 
146                    <#assign imageURL = "/documents/" + images[yy].getGroupId() + "/" + images[yy].getFolderId() + "/" + images[yy].getTitle()+"/"+images[yy].getUuid()> 
147                <#else> 
148                    <#assign imageURL = "/documents/" + images[((index - 1) % count_img)].getGroupId() + "/" + images[((index - 1) % count_img)].getFolderId() + "/" + images[((index - 1) % count_img)].getTitle()+"/"+images[((index - 1) % count_img)].getUuid()> 
149                </#if> 
150            </#if> 
151            <#return imageURL> 
152           
153        </#function> 
154 
155    <#-------- Search value of a field ----->        
156    <#function get_value value_name title values> 
157 
158        <#assign it =  title?size?number - 1> 
159         
160        <#assign id_value = ""> 
161         
162            <#list 0..it as num> 
163             
164                <#if title[num] = value_name> 
165                    <#assign id_value = num> 
166                    <#break> 
167                </#if> 
168 
169            </#list> 
170             
171            <#if values[id_value]??> 
172             
173                <#return values[id_value]> 
174                 
175            <#else> 
176             
177                <#return "Not Found"> 
178             
179            </#if> 
180 
181    </#function>     
182 
183    <#function get_parameter_from_url parameter_name> 
184        <#assign id = "Not Found"> 
185        <#assign PortalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"] /> 
186        <#if PortalUtil??> 
187            <#assign url_split = PortalUtil.getCurrentCompleteURL(request)?split("?")> 
188        </#if> 
189        <#if url_split[1]??> 
190            <#assign parm_list = url_split[1]?split("&")> 
191        </#if> 
192        <#if parm_list??> 
193            <#list parm_list as parm> 
194                <#if parm?split("=")??> 
195                    <#assign c_name = parm?split("=")> 
196                </#if> 
197                <#if c_name??> 
198                    <#if parameter_name = c_name[0]> 
199                        <#assign id = c_name[1]> 
200                        <#break> 
201                    </#if> 
202                </#if> 
203            </#list> 
204        </#if> 
205        <#if id = ""> 
206            <#assign id = "Not Found"> 
207        </#if> 
208        <#return id> 
209    </#function> 
210 
211    <#if c_debug = "X">Valor: ${get_parameter_from_url("myparm")}</br></#if> 
212 
213<#function get_afiliados_url f_originIATA f_destinationIATA f_dateout f_datein f_cabine f_flexdates f_adt f_chd f_inf f_redemption f_Selecionar5r0p f_minimumstay f_totalstay f_timewindowout f_timewindowin> 
214 
215    <#-- Calculate Dates -----> 
216        <#assign date_now0 = .now?date?string["yyyy"] + "-" + .now?date?string["MM"] + "-" + .now?date?string["dd"] + "T23:59:59.999Z">  
217        <#assign date_now1 = date_now0?datetime.iso?date?long> 
218 
219        <#assign date_out0 = f_dateout?date("yyyyMMdd")?string["yyyy"] + "-" + f_dateout?date("yyyyMMdd")?string["MM"] + "-" + f_dateout?date("yyyyMMdd")?string["dd"] + "T23:59:59.999Z">  
220        <#assign date_out1 = date_out0?datetime.iso?date?long>   
221         
222        <#assign date_in0 = f_datein?date("yyyyMMdd")?string["yyyy"] + "-" + f_datein?date("yyyyMMdd")?string["MM"] + "-" + f_datein?date("yyyyMMdd")?string["dd"] + "T23:59:59.999Z">  
223        <#assign date_in1 = date_in0?datetime.iso?date?long> 
224     
225    <#if f_minimumstay != "" || f_totalstay != ""> 
226 
227        <#assign final_date_out1 = date_out1> 
228        <#if date_out1 < date_now1> 
229            <#assign final_date_out1 = date_now1>    
230        </#if> 
231 
232 
233         
234        <#if (f_totalstay?number)*(1000 * 60 * 60 * 24) gt (date_in1 - final_date_out1) > 
235            <#if (f_minimumstay?number)*(1000 * 60 * 60 * 24) gt (date_in1 - final_date_out1)> 
236                <#assign f_Selecionar5r0p = "OW"> 
237            <#else> 
238                <#assign final_date_in1 = date_in1> 
239            </#if> 
240 
241        <#else> 
242            <#assign final_date_in1 = date_out1 + ((1000 * 60 * 60 * 24) * f_totalstay?number)> 
243        </#if> 
244 
245    <#else> 
246        <#assign final_date_out1 = date_out1> 
247        <#assign final_date_in1 = date_in1> 
248    </#if> 
249 
250    <#assign final_date_in3 = ""> 
251    <#if final_date_in1??> 
252        <#assign final_date_in3 = final_date_in1?number_to_date?string["yyyyMMdd"]> 
253    </#if> 
254 
255    <#-- Get Language -----> 
256    <#assign language = "BR"> 
257    <#if locale = "pt_BR"> 
258        <#assign language = "BR"> 
259    <#elseif locale = "en_US"> 
260        <#assign language = "US"> 
261    <#elseif locale = "es_ES"> 
262        <#assign language = "ES"> 
263    </#if> 
264    <#-- Fim Get Language -----> 
265 
266	<#assign c_url = "Trip Type Error (OW or RT)"> 
267	<#if f_Selecionar5r0p = "OW"> 
268		<#assign f_url = "/busca?ORG=" + f_originIATA + "&DEST=" + f_destinationIATA + "&OUTBOUND_DATE=" + final_date_out1?number_to_date?string["yyyyMMdd"] + "&FLEX_DATES=" + f_flexdates +"&QT_ADT=" + f_adt + "&QT_CHD=" + f_chd + "&QT_INF=" + f_inf + "&CABIN=" + f_cabine + "&REDEMPTION=" + f_redemption + "&LANG=" + language + "&TRIPTYPE=" + f_Selecionar5r0p> 
269	<#elseif f_Selecionar5r0p = "RT"> 
270		<#assign f_url = "/busca?ORG=" + f_originIATA + "&DEST=" + f_destinationIATA + "&OUTBOUND_DATE=" + final_date_out1?number_to_date?string["yyyyMMdd"] + "&INBOUND_DATE=" + final_date_in3 + "&FLEX_DATES=" + f_flexdates +"&QT_ADT=" + f_adt + "&QT_CHD=" + f_chd + "&QT_INF=" + f_inf + "&CABIN=" + f_cabine + "&REDEMPTION=" + f_redemption + "&LANG=" + language + "&TRIPTYPE=" + f_Selecionar5r0p> 
271	</#if> 
272 
273	<#-- Inicio Regra Timewindow -----> 
274	<#if f_timewindowout?? && f_timewindowout!=""> 
275		<#assign f_url = f_url + "&PERIOD_OUT_WINDOW=" + f_timewindowout> 
276	</#if> 
277	<#if f_timewindowin?? && f_timewindowin!=""> 
278		<#assign f_url = f_url + "&PERIOD_IN_WINDOW=" + f_timewindowin> 
279	</#if> 
280	<#-- Fim Regra Timewindow -----> 
281 
282    <#return f_url> 
283</#function> 
284 
285<#function get_hash entrada template>	 
286			<#assign renderer = entrada.getAssetRenderer()> 
287			<#assign c_hash = {}> 
288			<#if renderer.getArticle()??> 
289			<#assign article = renderer.getArticle()> 
290 
291			<#if service.getContent(article.getGroupId(), article.getArticleId(), template, "view", locale.toString(), model, themeDisplay)??> 
292				<#assign html = service.getContent(article.getGroupId(), article.getArticleId(), template, "view", locale.toString(), model, themeDisplay)> 
293				<#list html?split("<06item>") as item> 
294					<#assign flag = 0> 
295					<#assign end_item = ""> 
296					<#assign end_value = ""> 
297					<#list item?split("<O6value>") as value> 
298						<#if flag = 0> 
299							<#assign end_item = value?trim> 
300							<#assign flag = 1> 
301						<#elseif flag = 1> 
302							<#assign end_value = value?trim> 
303						</#if>														 
304					</#list> 
305					<#assign c_hash = c_hash + {end_item: end_value}> 
306				</#list> 
307			</#if> 
308			</#if> 
309			<#return c_hash>	 
310</#function> 
311 
312 
313<#-- Calculate Dates Inbound Outbound -----> 
314<#function calculate_dates_inbound_outbound inbound_name outbound_name f_dateout f_datein f_minimumstay f_totalstay> 
315 
316    <#assign dates_in_out = {inbound_name: "", outbound_name: ""}> 
317 
318    <#-- Calculate Dates -----> 
319    <#assign date_now0 = .now?date?string["yyyy"] + "-" + .now?date?string["MM"] + "-" + .now?date?string["dd"] + "T23:59:59.999Z"> 
320    <#assign date_now1 = date_now0?datetime.iso?date?long> 
321    <#assign date_out0 = f_dateout?date("yyyyMMdd")?string["yyyy"] + "-" + f_dateout?date("yyyyMMdd")?string["MM"] + "-" + f_dateout?date("yyyyMMdd")?string["dd"] + "T23:59:59.999Z"> 
322    <#assign date_out1 = date_out0?datetime.iso?date?long> 
323    <#assign date_in0 = f_datein?date("yyyyMMdd")?string["yyyy"] + "-" + f_datein?date("yyyyMMdd")?string["MM"] + "-" + f_datein?date("yyyyMMdd")?string["dd"] + "T23:59:59.999Z"> 
324    <#assign date_in1 = date_in0?datetime.iso?date?long> 
325    <#if f_minimumstay != "" || f_totalstay != ""> 
326        <#assign final_date_out1 = date_out1> 
327        <#if date_out1 < date_now1> 
328            <#assign final_date_out1 = date_now1> 
329        </#if> 
330        <#if (f_totalstay?number)*(1000 * 60 * 60 * 24) gt (date_in1 - final_date_out1) > 
331            <#if (f_minimumstay?number)*(1000 * 60 * 60 * 24) gt (date_in1 - final_date_out1)> 
332                <#assign f_Selecionar5r0p = "OW"> 
333            <#else> 
334                <#assign final_date_in1 = date_in1> 
335            </#if> 
336        <#else> 
337            <#assign final_date_in1 = date_out1 + ((1000 * 60 * 60 * 24) * f_totalstay?number)> 
338        </#if> 
339    <#else> 
340        <#assign final_date_out1 = date_out1> 
341        <#assign final_date_in1 = date_in1> 
342    </#if> 
343    <#assign final_date_in3 = ""> 
344    <#if final_date_in1??> 
345        <#assign final_date_in3 = final_date_in1?number_to_date?string["yyyyMMdd"]> 
346    </#if> 
347    <#-- Assing Object -----> 
348    <#assign dates_in_out = {"inbound_name": final_date_in3, "outbound_name": final_date_out1?number_to_date?string["yyyyMMdd"]}> 
349 
350    <#return dates_in_out> 
351</#function> 
352<#-- Fim Calculate Dates Inbound Outbound ----->	 
353     
354<#---------------------------------------------------- End Functions -----> 
355     
356    <#-- Get Customer Geolocation State --> 
357    <#assign IPGeocoder_service = serviceLocator.findService("com.liferay.ip.geocoder.IPGeocoder")> 
358    <#assign portalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"]> 
359    <#assign ip = portalUtil.getHttpServletRequest(renderRequest).getRemoteAddr()>  
360    <#assign ip_info = IPGeocoder_service.getIPInfo(ip)> 
361 
362    <#if ip_info.getCountryName()??> 
363        <#assign ip_getCountryName = ip_info.getCountryName()> 
364    <#else> 
365        <#assign ip_getCountryName = "Not Found"> 
366    </#if> 
367     
368    <#if ip_info.getCountryCode()??> 
369        <#assign ip_getCountryCode = ip_info.getCountryCode()> 
370    <#else> 
371        <#assign ip_getCountryCode = "Not Found"> 
372    </#if> 
373     
374    <#if ip_info.getRegionCode()??> 
375        <#assign ip_getRegionCode = ip_info.getRegionCode()> 
376    <#else> 
377        <#assign ip_getRegionCode = "Not Found"> 
378    </#if> 
379         
380    <#if ip_info.getRegionName()??> 
381        <#assign ip_getRegionName = ip_info.getRegionName()> 
382    <#else> 
383        <#assign ip_getRegionName = "Not Found"> 
384    </#if> 
385     
386    <#if ip_info.getCity()??> 
387        <#assign ip_getCity = ip_info.getCity()> 
388    <#else> 
389        <#assign ip_getCity = "Not Found"> 
390    </#if> 
391 
392    <#if ip_info.getLatitude()??> 
393        <#assign ip_getLatitude = ip_info.getLatitude()> 
394    <#else> 
395        <#assign ip_getLatitude = "Not Found"> 
396    </#if> 
397 
398    <#if ip_info.getLongitude()??> 
399        <#assign ip_getLongitude = ip_info.getLongitude()> 
400    <#else> 
401        <#assign ip_getLongitude = "Not Found"> 
402    </#if> 
403     
404    <#if c_debug = "X"> 
405        <#if ip_info.getCountryName()??> 
406        País: ${ip_getCountryName} </br> 
407        </#if> 
408        <#if ip_info.getCountryCode()??> 
409        Código do Pais: ${ip_getCountryCode} </br> 
410        </#if> 
411        <#if ip_info.getRegionCode()??> 
412        State Code: ${ip_getRegionCode} </br> 
413        </#if> 
414        <#if ip_info.getRegionName()??> 
415        State: ${ip_getRegionName} </br> 
416        </#if> 
417        <#if ip_info.getCity()??> 
418        City: ${ip_getCity} </br> 
419        </#if> 
420        <#if ip_info.getLatitude()??> 
421        Latitude: ${ip_getLatitude} </br> 
422        </#if> 
423        <#if ip_info.getLongitude()??> 
424        Longitude: ${ip_getLongitude} </br> 
425        </#if> 
426    </#if> 
427 
428     
429    <#if c_debug = "X">------- Start Geolocation </br></#if>     
430    <#-- Get Geolocation and Airport for the City  --> 
431    <#assign c_Client_city = ""> 
432    <#assign c_city_citydescription = "" >   
433    <#assign c_city_stateid = "" > 
434    <#assign c_city_origemiata = "" > 
435    <#assign c_city_iatadescription = "" > 
436    <#assign c_stateid = "" > 
437    <#if ip_getRegionCode?? && ip_getRegionCode != ""> 
438         
439        <#assign DDLRecordLocalService = serviceLocator.findService("com.liferay.dynamic.data.lists.service.DDLRecordSetLocalService")> 
440        <#assign recordset = DDLRecordLocalService.getDDLRecordSet(c_DDL_City_Mapping)> 
441        
442       <#list recordset.getRecords() as records> 
443            <#assign fields = records.getDDMFormValues().getDDMFormFieldValues()> 
444 
445                 
446            <#list fields as field> 
447                 
448                <#if field.getName() = "citydescription"> 
449                    <#assign c_city_citydescription = field.getValue().getString(locale) > 
450                </#if> 
451                 
452                <#if field.getName() = "stateid"> 
453                    <#assign c_stateid = field.getValue().getString(locale) > 
454                </#if> 
455 
456                <#if field.getName() = "origemiata"> 
457                    <#assign c_city_origemiata = field.getValue().getString(locale) > 
458                </#if> 
459 
460                <#if field.getName() = "iatadescription"> 
461                    <#assign c_city_iatadescription = field.getValue().getString(locale) > 
462                </#if> 
463                 
464            </#list> 
465             
466            <#if c_city_citydescription = ip_getCity> 
467                <#break> 
468            <#else> 
469                <#assign c_city_citydescription = "" >   
470                <#assign c_stateid = "" > 
471                <#assign c_city_origemiata = "" > 
472                <#assign c_city_iatadescription = "" >               
473            </#if> 
474             
475       </#list> 
476        
477    </#if>  
478     
479    <#assign c_Client_city = c_city_citydescription> 
480     
481    <#assign c_Client_State = c_stateid > 
482     
483    <#if c_debug = "X">IATA per City</br></#if>  
484    <#if c_debug = "X">c_city_citydescription: ${c_city_citydescription}</br></#if> 
485    <#if c_debug = "X">c_stateid: ${c_stateid}</br></#if> 
486    <#if c_debug = "X">c_city_origemiata: ${c_city_origemiata}</br></#if> 
487    <#if c_debug = "X">c_city_iatadescription: ${c_city_iatadescription}</br></#if> 
488     
489    <#assign c_origemiata = "" > 
490    <#assign c_iatadescription = "" > 
491     
492    <#if c_Client_State = ""> 
493        <#-- Get Geolocation and Airport for the State  --> 
494        <#assign c_Client_State = c_stateid> 
495        <#if ip_getRegionCode?? && ip_getRegionCode!= ""> 
496             
497            <#assign DDLRecordLocalService = serviceLocator.findService("com.liferay.dynamic.data.lists.service.DDLRecordSetLocalService")> 
498            <#assign recordset = DDLRecordLocalService.getDDLRecordSet(c_DDL_State_Mapping)> 
499            
500           <#list recordset.getRecords() as records> 
501                <#assign fields = records.getDDMFormValues().getDDMFormFieldValues()> 
502                    <#assign c_statedescription = "" >   
503                    <#assign c_stateid = "" > 
504                    <#assign c_origemiata = "" > 
505                    <#assign c_iatadescription = "" > 
506                     
507                <#list fields as field> 
508                     
509                    <#if field.getName() = "statedescription"> 
510                        <#assign c_statedescription = field.getValue().getString(locale) > 
511                    </#if> 
512                     
513                    <#if field.getName() = "stateid"> 
514                        <#assign c_stateid = field.getValue().getString(locale) > 
515                    </#if> 
516 
517                    <#if field.getName() = "origemiata"> 
518                        <#assign c_origemiata = field.getValue().getString(locale) > 
519                    </#if> 
520 
521                    <#if field.getName() = "iatadescription"> 
522                        <#assign c_iatadescription = field.getValue().getString(locale) > 
523                    </#if> 
524                     
525                </#list> 
526                 
527                <#if c_statedescription = ip_getRegionName> 
528                    <#break> 
529                <#else> 
530                    <#assign c_statedescription = "" >   
531                    <#assign c_stateid = "" > 
532                    <#assign c_origemiata = "" > 
533                    <#assign c_iatadescription = "" >                
534                </#if> 
535                 
536           </#list> 
537            
538        </#if>   
539         
540        <#assign c_Client_State = c_stateid > 
541         
542     
543        <#if c_debug = "X"></br>IATA per State</br></#if>    
544        <#if c_debug = "X">c_Client_State: ${c_Client_State}</br></#if> 
545        <#if c_debug = "X">c_statedescription: ${c_statedescription}</br></#if> 
546        <#if c_debug = "X">c_origemiata: ${c_origemiata}</br></#if> 
547        <#if c_debug = "X">c_iatadescription: ${c_iatadescription}</br></#if> 
548 
549    </#if> 
550         
551    <#-- Set Geolocation IATA code and description --> 
552    <#if c_city_origemiata != ""> 
553        <#assign c_geolocation_iata = c_city_origemiata > 
554        <#assign c_geolocation_iatadesc = c_city_iatadescription > 
555    <#else> 
556        <#assign c_geolocation_iata = c_origemiata > 
557        <#assign c_geolocation_iatadesc = c_iatadescription > 
558    </#if> 
559     
560    <#if c_debug = "X">c_Client_State: ${c_Client_State}</br></#if> 
561    <#if c_debug = "X"></br>Geolocalization Results per State</br></#if>     
562    <#if c_debug = "X">c_geolocation_iata: ${c_geolocation_iata}</br></#if> 
563    <#if c_debug = "X">c_geolocation_iatadesc: ${c_geolocation_iatadesc}</br></#if> 
564    <#if c_debug = "X">------- End Geolocation </br></#if>   
565     
566    <#-- Get Customer Birthdate "dd/MM" --> 
567     
568    <#if portalUtil.getOriginalServletRequest(portalUtil.getHttpServletRequest(renderRequest)).getSession().getAttribute("AVIANCA_USER_BIRTHDATE_DAY")??> 
569        <#assign c_Client_Birthday = portalUtil.getOriginalServletRequest(portalUtil.getHttpServletRequest(renderRequest)).getSession().getAttribute("AVIANCA_USER_BIRTHDATE_DAY")> 
570        <#if c_debug = "X">c_Client_Birthday (Encontrou na Sessão): ${c_Client_Birthday}</br></#if> 
571    <#else> 
572        <#assign c_Client_Birthday = '01'> 
573        <#if c_debug = "X">c_Client_Birthday (Não encontrou na Sessão): ${c_Client_Birthday}</br></#if> 
574    </#if> 
575     
576    <#if portalUtil.getOriginalServletRequest(portalUtil.getHttpServletRequest(renderRequest)).getSession().getAttribute("AVIANCA_USER_BIRTHDATE_MONTH")??> 
577        <#assign c_Client_Birthmonth = portalUtil.getOriginalServletRequest(portalUtil.getHttpServletRequest(renderRequest)).getSession().getAttribute("AVIANCA_USER_BIRTHDATE_MONTH")> 
578        <#if c_debug = "X">c_Client_Birthmonth (Encontrou na Sessão): ${c_Client_Birthmonth}</br></#if> 
579    <#else> 
580        <#assign c_Client_Birthmonth = '01'> 
581        <#if c_debug = "X">c_Client_Birthmonth (Não encontrou na Sessão): ${c_Client_Birthmonth}</br></#if> 
582    </#if> 
583 
584     
585    <#-- Get Logged User (Yes or No) --> 
586    <#assign c_logado = 'X'> 
587    <#if c_debug = "X">c_logado: ${c_logado}</br></#if> 
588     
589    <#-- Get Logged User Name--> 
590    <#if portalUtil.getOriginalServletRequest(portalUtil.getHttpServletRequest(renderRequest)).getSession().getAttribute("AVIANCA_USER_FIRSTNAME")??> 
591        <#assign c_firstname = portalUtil.getOriginalServletRequest(portalUtil.getHttpServletRequest(renderRequest)).getSession().getAttribute("AVIANCA_USER_FIRSTNAME")> 
592        <#if c_debug = "X">c_firstname (Encontrou na Sessão): ${c_firstname}</br></#if> 
593    <#else> 
594        <#assign c_firstname = 'N/A'> 
595        <#if c_debug = "X">c_firstname (Não encontrou na Sessão): ${c_firstname}</br></#if> 
596    </#if>   
597     
598    <#-- Get Customer Status (Amigo or not Amigo) --> 
599    <#if portalUtil.getOriginalServletRequest(portalUtil.getHttpServletRequest(renderRequest)).getSession().getAttribute("AVIANCA_USER_OPTIN_AMIGO")??> 
600        <#assign c_amigo = portalUtil.getOriginalServletRequest(portalUtil.getHttpServletRequest(renderRequest)).getSession().getAttribute("AVIANCA_USER_OPTIN_AMIGO")> 
601        <#if c_debug = "X">c_amigo (Encontrou na Sessão): ${c_amigo}</br></#if>  
602    <#else> 
603        <#assign c_amigo = ''> 
604        <#if c_debug = "X">c_amigo (Não encontrou na Sessão): ${c_amigo}</br></#if>      
605    </#if>   
606 
607     
608    <#-- Text Replacement TAGs -->   
609    <#assign c_replacement_tag_id = []> 
610    <#assign c_replacement_tag_value = []> 
611    <#assign c_replacement_tag = "**"> 
612    <#assign c_replacement_tag_id = [(c_replacement_tag + "nome" + c_replacement_tag)]>      
613    <#assign c_replacement_tag_id = c_replacement_tag_id + [(c_replacement_tag + "aniversario" + c_replacement_tag)]> 
614    <#assign c_replacement_tag_id = c_replacement_tag_id + [(c_replacement_tag + "preco" + c_replacement_tag)]>  
615    <#assign c_replacement_tag_id = c_replacement_tag_id + [(c_replacement_tag + "num_parcelas" + c_replacement_tag)]> 
616    <#assign c_replacement_tag_id = c_replacement_tag_id + [(c_replacement_tag + "val_parcelas" + c_replacement_tag)]> 
617 
618    <#if c_debug = "X"> 
619        ------- Text Replacement TAGs Start ----------- </br> 
620         
621        <#assign it =  c_replacement_tag_id?size?number - 1> 
622         
623        <#list 0..it as num> 
624         
625            ${c_replacement_tag_id[num]}</br> 
626 
627        </#list> 
628         
629        ------- Text Replacement TAGs End ----------- </br> 
630    </#if> 
631     
632     
633     
634    <#-- Read Configuration from Configratuion Content  --> 
635    <#if entries?has_content> 
636 
637        <#list entries as entry> 
638            <#if entry.classTypeId == c_classTypeId_config_structure> 
639                 
640				<#assign hash = get_hash(entry c_template_config_structure)> 
641				 
642				<#if c_debug = "X">---------Parametrizações----------</br></#if>     
643 
644				<#assign c_numbanners = hash.numbanners> 
645				<#if c_debug = "X">c_numbanners: ${c_numbanners}</br></#if>        
646 
647				<#assign c_beforebirthday = hash.beforebirthday> 
648				<#if c_debug = "X">c_beforebirthday: ${c_beforebirthday}</br></#if>                                    
649 
650				<#assign c_afterbirthday = hash.afterbirthday> 
651				<#if c_debug = "X">c_afterbirthday: ${c_afterbirthday}</br></#if>                                  
652 
653				<#assign c_idestrutura1 = hash.idestrutura1> 
654				<#if c_debug = "X">c_idestrutura1: ${c_idestrutura1}</br></#if>                                    
655 
656				<#assign c_idestrutura2 = hash.idestrutura2> 
657				<#if c_debug = "X">c_idestrutura2: ${c_idestrutura2}</br></#if>                                    
658 
659				<#assign c_grouid = hash.grouid> 
660				<#if c_debug = "X">c_grouid: ${c_grouid}</br></#if>                                    
661 
662				<#assign c_folderpath_desktop = hash.folderpathdesktop> 
663				<#if c_debug = "X">c_folderpath_desktop: ${c_folderpath_desktop}</br></#if>                                    
664 
665				<#assign c_folderpath_mobile = hash.folderpathmobile> 
666				<#if c_debug = "X">c_folderpath_mobile: ${c_folderpath_mobile}</br></#if>                                  
667 
668				<#assign c_parentfolderid = hash.parentfolderid> 
669				<#if c_debug = "X">c_parentfolderid: ${c_parentfolderid}</br></#if>                                    
670	                  
671                <#assign c_config_content_error = ''> 
672            </#if> 
673 
674            <#if entry.classTypeId == c_classTypeId_ofertas_all> 
675			 
676               	<#assign hash = get_hash(entry c_template_ofertas_all)> 
677								 
678				<#assign f_texthome = hash.texthome> 
679				<#assign f_linkhome = hash.linkhome> 
680				<#assign f_textpromotion = hash.textpromotion> 
681				<#assign f_linkpromotion = hash.linkpromotion> 
682				<#assign f_searchboxtitle = hash.searchboxtitle> 
683				<#assign f_linkrefreshsearch = hash.linkrefreshsearch> 
684				<#assign f_origin = hash.origin> 
685				<#assign f_destination = hash.destination> 
686				<#assign f_andor = hash.andor> 
687				<#assign f_placeholder = hash.placeholder> 
688				<#assign f_searchbuttonlable = hash.searchbuttonlable> 
689				<#assign f_title = hash.title> 
690				<#assign f_subtitle = hash.subtitle> 
691				<#assign f_buttonlable = hash.buttonlable> 
692                
693            </#if>             
694             
695            <#if entry.classTypeId == c_classTypeId_ofertas_na_home> 
696					 
697				<#assign hash = get_hash(entry c_template_ofertas_home)> 
698				 
699                        <#if c_debug = "X">---------Parametrizações----------</br></#if>     
700 
701				<#assign f_title = hash.title> 
702				<#assign f_subtitle = hash.subtitle> 
703				<#assign f_buttonlable = hash.buttonlable> 
704				<#assign f_linktoofertas = hash.linktoofertas> 
705				 
706            </#if> 
707         
708             
709        </#list> 
710 
711    </#if> 
712 
713 
714    <#-- Configuration Check  --> 
715 
716    <#if c_config_content_error = 'X'> 
717 
718        Missing Configuration Content - Check if exists and if the number is correct on the first variable of this code. And in all Languages!!! 
719 
720    <#else> 
721         
722        <#if c_numbanners = '' || c_numbanners = '0'> 
723            c_numbanners: ${c_numbanners} </br> 
724            Missing Number of Banners on Configuration Content. And in all Languages!!! </br> 
725            <#assign c_config_error = 'X'> 
726        </#if> 
727 
728        <#if c_beforebirthday = '' || c_beforebirthday = '0'> 
729            c_beforebirthday: ${c_beforebirthday} </br> 
730            Missing beforebirthday on Configuration Content. And in all Languages!!!  </br> 
731                <#assign c_config_error = 'X'> 
732        </#if> 
733 
734        <#if c_afterbirthday = '' || c_afterbirthday = '0'> 
735            c_afterbirthday: ${c_afterbirthday} </br> 
736            Missing afterbirthday on Configuration Content. And in all Languages!!!  </br> 
737                <#assign c_config_error = 'X'> 
738        </#if> 
739 
740        <#if c_idestrutura1 = '' || c_idestrutura1 = '0'> 
741            c_idestrutura1: ${c_idestrutura1} </br> 
742            Missing idestrutura1 on Configuration Content. And in all Languages!!!  </br> 
743                <#assign c_config_error = 'X'> 
744        </#if> 
745 
746        <#if c_idestrutura2 = '' || c_idestrutura2 = '0'> 
747            c_idestrutura2: ${c_idestrutura2} </br> 
748            Missing idestrutura2 on Configuration Content. And in all Languages!!!  </br> 
749                <#assign c_config_error = 'X'> 
750        </#if> 
751 
752        <#if c_grouid = '' || c_grouid = '0'> 
753            c_grouid: ${c_grouid} </br> 
754            Missing c_grouid on Configuration Content. And in all Languages!!!  </br> 
755                <#assign c_config_error = 'X'> 
756        </#if>   
757         
758        <#if c_folderpath_desktop = '' || c_folderpath_desktop = '0'> 
759            c_folderpath_desktop: ${c_folderpath_desktop} </br> 
760            Missing c_folderpath_desktop on Configuration Content. And in all Languages!!!  </br> 
761                <#assign c_config_error = 'X'> 
762        </#if>   
763         
764        <#if c_folderpath_mobile = '' || c_folderpath_mobile = '0'> 
765            c_folderpath_mobile: ${c_folderpath_mobile} </br> 
766            Missing c_folderpath_mobile on Configuration Content. And in all Languages!!!  </br> 
767                <#assign c_config_error = 'X'> 
768        </#if>   
769             
770        <#if c_parentfolderid = ''> 
771            c_parentfolderid: ${c_parentfolderid} </br> 
772            Missing c_parentfolderid on Configuration Content. And in all Languages!!!  </br> 
773                <#assign c_config_error = 'X'> 
774        </#if>   
775         
776         
777    </#if>   
778         
779    <#-- Read Assets  --> 
780    <#if c_config_error != 'X' && c_config_content_error != 'X' && c_numbanners?number gt c_Contador> 
781 
782        <#if c_debug = "X">Número de Assets Trazidos = ${entries?size}</br></#if>    
783     
784        <#if entries?has_content> 
785 
786    <#------Get Title of Banner Fields--------------------------->   
787    <#if c_debug = "X"></br>------Get Title of Banner Fields---------------------------</br></#if>   
788            <#list entries as entry> 
789                <#if entry.classTypeId == c_idestrutura1?number> 
790 
791					<#--Get Fields--> 
792					<#assign hash = get_hash(entry c_template_banner)> 
793					<#list hash?keys as k> 
794					 
795						<#if c_debug = "X">Nome do Campo Novo: ${k} / Tipo do Campo: n/a </br></#if>                 
796						<#assign c_banner_title = c_banner_title + [k]> 
797					</#list> 
798					<#break> 
799                     
800                </#if> 
801            </#list> 
802             
803    <#------Get Title of Oferta---------------------------->     
804    <#if c_debug = "X"></br>------Get Title of Oferta Fields---------------------------</br></#if>       
805            <#list entries as entry> 
806                <#if entry.classTypeId == c_idestrutura2?number> 
807				 
808					<#--Get Fields--> 
809					<#assign hash = get_hash(entry c_template_oferta_structure)> 
810					<#list hash?keys as k> 
811					 
812						<#if c_debug = "X">Nome do Campo Novo: ${k} / Tipo do Campo: n/a </br></#if>                 
813						<#assign c_ofertas_title = c_ofertas_title + [k]> 
814						 
815					</#list> 
816					<#break> 
817 
818                </#if> 
819            </#list> 
820 
821 
822    <#------Get all Banners ------------------------------------------>  
823            <#assign c_Contador = 0> 
824            <#list entries as entry> 
825                <#-- First Type Banner --> 
826                 
827                <#if entry.classTypeId == c_idestrutura1?number> 
828                <#assign journalutil = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
829                <#if c_debug = "X">------- Início do Banner ------</br></#if> 
830                <#if c_debug = "X">Banner_id = ${c_Contador}</br></#if> 
831                 
832					<#assign hash = get_hash(entry c_template_banner)> 
833					<#assign c_banner_type = hash.bannertype> 
834					<#if c_debug = "X">Banner Type Novo = ${hash.bannertype}</br></#if> 
835				 
836                    <#assign renderer = entry.getAssetRenderer()> 
837                    <#assign className = renderer.getClassName()> 
838                    <#assign className2 = 'com.liferay.journal.model.JournalArticle'> 
839                    <#if className == className2> 
840 
841                        <#--Check if Banner is to be shown--> 
842                        <#assign c_check = ""> 
843                      
844                        <#if c_banner_type = "1" > 
845                        <#--Always show Priority-->                  
846                            <#assign c_check = "X"> 
847                        </#if> 
848 
849                        <#if c_banner_type = "2" > 
850                            <#--Check Birthday vs System Date considering and average month of 30 days as there is no function to calculate the exact day on freemarker--> 
851                            <#assign aDateTime = .now>               
852                            <#assign c_date = aDateTime?date>    
853                            <#assign c_date_month = c_date?string["MM"]?number>  
854                            <#assign c_date_day = c_date?string["dd"]?number> 
855                            <#assign c_date_from = (c_date_month * 30 + c_date_day) - c_beforebirthday?number> 
856                            <#assign c_date_to = (c_date_month * 30 + c_date_day) + c_afterbirthday?number> 
857                            <#assign c_date_birthday_cliente = (c_Client_Birthmonth?number * 30 + c_Client_Birthday?number)> 
858                                 
859                            <#if c_date_from <= c_date_birthday_cliente && c_date_birthday_cliente <= c_date_to > 
860                                <#assign c_check = "X"> 
861                            </#if> 
862                        </#if> 
863                         
864                        <#if c_banner_type = "3" > 
865                        <#--Check State of Promotion vs State of User--> 
866 
867                            <#assign c_state_check = hash.state>             
868                                                 
869                            <#if c_state_check = c_Client_State>     
870                                <#assign c_check = "X"> 
871                            </#if> 
872                             
873                        </#if> 
874                         
875                        <#if c_banner_type = "4" > 
876                        <#--Check if it is a Amigo user--> 
877                            <#assign c_check = "X">  
878                        </#if> 
879                         
880                        <#if c_banner_type = "5" > 
881                        <#--Always add banner padrão--> 
882                            <#assign c_check = "X">                      
883                        </#if> 
884                         
885 
886                     
887                        <#------Checks for Every Banner ------------->   
888                        <#------Checks Logged and Amigo ------------->   
889                        <#assign c_overall_check = ""> 
890                        <#assign c_overall_check2 = ""> 
891                         
892						<#assign c_onlyamigo = hash.onlyamigo> 
893						<#assign c_onlylogged = hash.onlylogged> 
894						                        
895                        <#if c_debug = "X">c_logado = ${c_logado}</br></#if> 
896                        <#if c_debug = "X">c_onlyamigo = ${c_onlyamigo[2]}</br></#if> 
897                        <#if c_debug = "X">c_onlylogged = ${c_onlylogged}</br></#if> 
898 
899                        <#if c_onlyamigo[2] = "0">                               
900                            <#assign c_overall_check = "X">      
901                        <#elseif c_onlyamigo[2] = "1"> 
902                            <#if c_amigo = ''> 
903                                <#assign c_overall_check = "X">  
904                            </#if> 
905                        <#elseif c_onlyamigo[2] = "2"> 
906                            <#if c_amigo != ''> 
907                                <#assign c_overall_check = "X">  
908                            </#if> 
909                        </#if> 
910 
911                        <#if c_onlylogged = "true">                              
912                            <#if c_logado != ''> 
913                                <#assign c_overall_check2 = "X">     
914                            </#if> 
915                        <#else> 
916                            <#assign c_overall_check2 = "X">     
917                        </#if> 
918 
919                        <#if c_debug = "X">c_check = ${c_check}</br></#if> 
920                         
921                        <#if c_debug = "X">c_overall_check = ${c_overall_check}</br></#if> 
922                         
923                        <#if c_debug = "X">c_overall_check2 = ${c_overall_check2}</br></#if> 
924                         
925                        <#if c_check = "X" && c_overall_check = "X" && c_overall_check2 = "X"> 
926						 
927							<#--Get Fields--> 
928							<#list hash?values as v> 
929								<#assign c_banner_values = c_banner_values + [v]> 
930								<#if c_debug = "X">Valor: ${v}</br></#if> 
931							</#list> 
932						 
933 
934                                <#assign c_banner_item = c_banner_item + [c_banner_values]>          
935                                <#assign c_Contador = c_Contador + 1> 
936                                <#assign c_banner_values = []>                                                                   
937                        </#if> 
938                        <#if c_debug = "X">------- Fim do Banner ------</br></#if> 
939                    </#if> 
940                     
941                </#if> 
942            </#list> 
943 
944    <#------Get all Ofertas ------------------------------------------>  
945            <#assign c_Contador = 0> 
946            <#list entries as entry> 
947             
948                <#-- First Type Oferta --> 
949                <#if entry.classTypeId == c_idestrutura2?number> 
950                 
951                    <#if c_debug = "X">------- Início de Ofertas ------</br></#if> 
952                    <#if c_debug = "X">Oferta_id = ${c_Contador}</br></#if> 
953                    <#if c_debug = "X">Entrada: ${entry}</br></#if> 
954                    <#assign renderer = entry.getAssetRenderer()> 
955                    <#assign className = renderer.getClassName()> 
956                    <#assign className2 = 'com.liferay.journal.model.JournalArticle'> 
957                    <#if className == className2> 
958 
959						<#assign hash = get_hash(entry c_template_oferta_structure)> 
960						<#list hash?values as v> 
961							<#if c_debug = "X">Valores do Campo: ${v} </br></#if>                 
962						</#list> 
963                         
964<#------------Execute Checks ------------------> 
965                        <#assign c_active_check = ''> 
966                        <#assign c_bannerhome_check = ''> 
967                        <#assign c_bannerhome_check_mob = ''> 
968                        <#assign c_state_check = ''> 
969                        <#assign c_slotshome_check = ''> 
970                        <#assign c_bannerlanding_check = ''> 
971                        <#assign c_slotslanding_check = ''> 
972                        <#assign c_destinationpage_check = ''> 
973                        <#assign c_allpromopage_check = ''> 
974                        <#assign c_originIATA_check = ''> 
975                        <#assign c_destinationIATA_check = ''> 
976                         
977						<#assign c_active_check = hash.activeoffer> 
978						<#assign c_bannerhome_check = hash.bannerheaderdesk> 
979						<#assign c_bannerhome_check_mob = hash.bannerheadermob> 
980						<#assign c_slotshome_check = hash.slotshome> 
981						<#assign c_bannerlanding_check = hash.bannerlanding> 
982						<#assign c_slotslanding_check = hash.slotslanding> 
983						<#assign c_destinationpage_check = hash.destinationpage> 
984						<#assign c_allpromopage_check = hash.allpromopage> 
985						<#assign c_originIATA_check = hash.originIATA> 
986						<#assign c_destinationIATA_check = hash.destinationIATA> 
987						<#assign c_dateboardingto_check = hash.dateboardingto> 
988						<#assign c_dateboardingfrom_check = hash.dateboardingfrom> 
989                      
990                        <#if c_debug = "X">c_active_check: ${c_active_check}</br></#if> 
991                        <#if c_debug = "X">c_bannerhome_check: ${c_bannerhome_check}</br></#if> 
992                        <#if c_debug = "X">c_bannerhome_check_mob: ${c_bannerhome_check_mob}</br></#if> 
993                        <#if c_debug = "X">c_state_check: ${c_state_check}</br></#if> 
994                        <#if c_debug = "X">c_Client_State: ${c_Client_State}</br></#if> 
995                        <#if c_debug = "X">c_slotshome_check: ${c_slotshome_check}</br></#if> 
996                        <#if c_debug = "X">c_bannerlanding_check: ${c_bannerlanding_check}</br></#if> 
997                        <#if c_debug = "X">c_slotslanding_check: ${c_slotslanding_check}</br></#if> 
998                        <#if c_debug = "X">c_destinationpage_check: ${c_destinationpage_check}</br></#if> 
999                        <#if c_debug = "X">c_allpromopage_check: ${c_allpromopage_check}</br></#if> 
1000                        <#if c_debug = "X">c_originIATA_check: ${c_originIATA_check}</br></#if> 
1001                        <#if c_debug = "X">c_destinationIATA_check: ${c_destinationIATA_check}</br></#if> 
1002                        <#if c_debug = "X">c_dateboardingto_check: ${c_destinationIATA_check}</br></#if> 
1003                        <#if c_debug = "X">c_dateboardingfrom_check: ${c_destinationIATA_check}</br></#if> 
1004                         
1005                        <#--Check Active Offer, bannerheaderdesk and bannerheadermob-->  
1006 
1007<#--Adjust for each presentation template--> 
1008                    <#if c_debug = "X"></br>-------- Start Check Destination Filter ---------</br></#if> 
1009                    <#if c_debug = "X">get_parameter_from_url("origem"): ${get_parameter_from_url("origem")}</br></#if> 
1010                    <#if c_debug = "X">c_originIATA_check: ${c_originIATA_check}</br></#if> 
1011                    <#if c_debug = "X">get_parameter_from_url("destino"): ${get_parameter_from_url("destino")}</br></#if> 
1012                    <#if c_debug = "X">c_destinationIATA_check: ${c_destinationIATA_check}</br></#if> 
1013 
1014                    <#assign c_filter_check = ""> 
1015                    <#if get_parameter_from_url("origem") = "Not Found" && get_parameter_from_url("destino") = "Not Found"> 
1016                        <#assign c_filter_check = "X"> 
1017                    <#elseif get_parameter_from_url("origem") != "Not Found" && get_parameter_from_url("destino") = "Not Found" && c_originIATA_check = get_parameter_from_url("origem")> 
1018                        <#assign c_filter_check = "X"> 
1019                    <#elseif get_parameter_from_url("origem") = "Not Found" && get_parameter_from_url("destino") != "Not Found" && c_destinationIATA_check = get_parameter_from_url("destino")> 
1020                        <#assign c_filter_check = "X"> 
1021                    <#elseif get_parameter_from_url("origem") != "Not Found" && get_parameter_from_url("destino") != "Not Found" && c_originIATA_check = get_parameter_from_url("origem") && c_destinationIATA_check = get_parameter_from_url("destino")> 
1022                        <#assign c_filter_check = "X"> 
1023                    </#if> 
1024 
1025                    <#if c_debug = "X">c_filter_check: ${c_filter_check}</br></#if> 
1026 
1027                    <#if c_debug = "X"></br>-------- End Check Destination Filter ---------</br></#if> 
1028 
1029                    <#if c_active_check = "true" && c_allpromopage_check = "true" && c_filter_check = "X"> 
1030<#--Adjust for each presentation template--> 
1031                             
1032                                <#if c_debug = "X"></br>Check Oferta Geolocalization</br></#if> 
1033                                <#if c_debug = "X">c_originIATA_check: ${c_originIATA_check}</br></#if> 
1034                                <#if c_debug = "X">c_geolocation_iata: ${c_geolocation_iata}</br></#if> 
1035                             
1036                                <#if (c_originIATA_check = c_geolocation_iata)> 
1037                                    <#--Check if oferta is Geolocalized.--> 
1038                                    <#assign c_ofertas_geolocalizadas = c_ofertas_geolocalizadas + [c_Contador]> 
1039                                    <#if c_debug = "X">Oferta is geolocalized. It has the ID: ${c_Contador}</br></#if> 
1040                                <#else> 
1041                                    <#-- Oferta is NOT Geolocalized.--> 
1042                                    <#assign c_ofertas_not_geolocalizadas = c_ofertas_not_geolocalizadas + [c_Contador]> 
1043                                    <#if c_debug = "X">Oferta is not geolocalized. It has the ID: ${c_Contador}</br></#if>                           
1044                                </#if> 
1045                                 
1046                            <#--Get Fields--> 
1047                   
1048								<#list hash?values as v> 
1049									<#assign c_ofertas_values = c_ofertas_values + [v]> 
1050									<#if c_debug = "X">Valores do Campo: ${v} </br></#if>                 
1051								</#list> 
1052				   
1053                                <#assign c_ofertas_item = c_ofertas_item + [c_ofertas_values]>               
1054                                <#assign c_Contador = c_Contador + 1> 
1055                                <#assign c_ofertas_values = []> 
1056                             
1057                             
1058                            </#if> 
1059                     
1060                    </#if> 
1061                    <#if c_debug = "X">------- Fim de Ofertas ------</br></#if> 
1062                </#if> 
1063 
1064                 
1065            </#list> 
1066             
1067        </#if>           
1068         
1069    </#if> 
1070 
1071         
1072<#if c_debug = "X"> 
1073</br> 
1074------- Debbuger Ofertas Adicionadas ------</br> 
1075</br> 
1076    <#list c_ofertas_item as c_ofertas_values> 
1077        <#assign it =  c_ofertas_title?size?number - 1> 
1078        <#list 0..it as num> 
1079            Oferta ${num}</br> 
1080            ${c_ofertas_title[num]}: <#if c_ofertas_values[num]??> ${c_ofertas_values[num]} </#if> </br> 
1081        </#list> 
1082    </#list> 
1083</br> 
1084------- Debbuger Banners Adicionadas ------</br> 
1085</br> 
1086    <#list c_banner_item as c_banner_values> 
1087        <#assign it =  c_banner_title?size?number - 1> 
1088        <#list 0..it as num> 
1089            ${c_banner_title[num]}: <#if c_banner_values[num]??> ${c_banner_values[num]} </#if> </br> 
1090        </#list> 
1091    </#list>     
1092</br>    
1093 
1094------- Debbuger com Replacer dos textos dos Banners Adicionadas ------</br> 
1095</br> 
1096    <#list c_banner_item as c_banner_values> 
1097        <#assign it =  c_banner_title?size?number - 1> 
1098        <#list 0..it as num> 
1099 
1100        <#assign string_to_replace2 = "Este é um teste **nome** para..."> 
1101         
1102            <#-------- Replace TAGs Start-----> 
1103                <#assign c_val = ["oknome"] + [c_Client_Birthday + "/" + c_Client_Birthmonth] + ["okpreco"] + ["oknum"] + ["okval"]> 
1104                <#assign c_rep_string = c_banner_values[num]> 
1105                <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
1106                <#list 0..count_replace as count>        
1107                        <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
1108                </#list> 
1109            <#-------- Replace TAGs End----->    
1110             
1111            ${c_banner_title[num]}: <#if c_rep_string??> ${c_rep_string} </#if></br> 
1112             
1113        </#list> 
1114    </#list>     
1115</#if>           
1116 
1117<#if c_debug = "X">         
1118<#assign timeb = .now?time?long> 
1119	Tempo de Exec: ${timeb - timea} </br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br> 
1120</#if> 
1121 
1122 
1123<#------------ Início do HTML ------------------> 
1124 
1125<#assign array_origem = []> 
1126<#assign array_destino = []>	 
1127 
1128 
1129<#if c_debug = "X"> 
1130------------------- Summary </br> 
1131c_ofertas_item = ${c_ofertas_item?size} </br> 
1132c_ofertas_geolocalizadas = ${c_ofertas_geolocalizadas?size} </br> 
1133c_ofertas_not_geolocalizadas = ${c_ofertas_not_geolocalizadas?size} </br> 
1134</#if> 
1135 
1136<#assign counter = 0> 
1137<#assign counter_geoloc = 0> 
1138<#assign counter_not_geoloc = 0> 
1139<#assign iata_image_desk_check = []> 
1140<#assign iata_image_mobile_check = []> 
1141 
1142 
1143<div class="container-fluid"> 
1144    <div class="row av-breadcrumb hidden-xs"> 
1145        <div class="container"> 
1146            <ul class="row"> 
1147                <li class="pull-left"><#if f_texthome??><a role="link" href="${f_linkhome}" alt="${f_texthome}" title="${f_texthome}" tabindex="100" class="fz-12">${f_texthome}</a></#if></li> 
1148                <li class="last pull-left"><#if f_textpromotion??><a role="link" alt="${f_textpromotion}" title="${f_textpromotion}" href="${f_linkpromotion}" tabindex="100" class="fz-12">${f_textpromotion}</a> </#if></li> 
1149            </ul> 
1150        </div> 
1151    </div> 
1152 
1153    <div class="row wrap"> 
1154        <div class="container in-wrap"> 
1155            <!-- Filtros --> 
1156            <div class="row"> 
1157                <div class="col-xs-12 filtros"> 
1158                    <div class="filtros-in"> 
1159                        <h2 aria-level="2" role="heading" tabindex="100"><#if f_searchboxtitle??>${f_searchboxtitle}</#if></h2> 
1160                        <!-- Formulário --> 
1161                        <form id="filter" action="#" method="get"> 
1162                            <!-- Origem --> 
1163                            <div class="col-xs-12 col-sm-3 col-md-4 col-lg-4"> 
1164                                <div class="form-group select filtered-select"> 
1165                                    <div class="content-select"> 
1166                                        <div class="row"> 
1167                                            <label class="fz-14" for="origem" tabindex="100"><#if f_origin??>${f_origin}</#if></label> 
1168                                            <div class="text-input"> 
1169                                                <input id="origem" type="text" aria-label="${f_origin}" tabindex="100" name="origem" class="form-control txt-center" placeholder="<#if f_placeholder??>${f_placeholder}</#if>"> 
1170                                                <span class="current-value fz-18 tac" data-value=""><#if f_placeholder??>${f_placeholder}</#if></span> 
1171                                                <span class="ico glyphicon glyphicon-chevron-down"></span> 
1172                                                <span class="ico glyphicon glyphicon-chevron-up"></span> 
1173                                                <div class="dropdown col-xs-12"> 
1174                                                    <ul class="row"> 
1175                                                    <#assign filter = []> 
1176                                                    <#list entries as entry> 
1177 
1178                                                        <#if entry.classTypeId == c_idestrutura2?number> 
1179 
1180                                                            <#if c_debug = "X">------- Get Available destination and Origen ------</br></#if> 
1181 
1182                                                            <#assign renderer = entry.getAssetRenderer()> 
1183                                                            <#assign className = renderer.getClassName()> 
1184                                                            <#assign className2 = 'com.liferay.journal.model.JournalArticle'> 
1185                                                            <#if className == className2> 
1186 
1187                                                                <#assign journalArticle = renderer.getArticle()> 
1188                                                                <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale))> 
1189                                                                <#assign rootElement = document.getRootElement()> 
1190 
1191 
1192                                                            <#------------Execute Checks ------------------> 
1193                                                                <#assign c_active_check = ''> 
1194                                                                <#assign c_allpromopage_check = ''> 
1195                                                                <#assign c_destinationcityname_check = ''> 
1196                                                                <#assign c_origincityname_check = ''> 
1197                                                                <#assign c_originIATA_check = ''> 
1198                                                                <#assign c_destinationIATA_check = ''> 
1199 
1200                                                                <#list rootElement.elements() as dynamicElement> 
1201 
1202                                                                    <#if dynamicElement.attributeValue("name") = "activeoffer"> 
1203                                                                        <#assign c_active_check = dynamicElement.element("dynamic-content").getText()> 
1204                                                                    </#if> 
1205 
1206                                                                    <#if dynamicElement.attributeValue("name") = "allpromopage"> 
1207                                                                        <#assign c_allpromopage_check = dynamicElement.element("dynamic-content").getText()> 
1208                                                                    </#if> 
1209 
1210                                                                    <#if dynamicElement.attributeValue("name") = "destinationcityname"> 
1211                                                                        <#assign c_destinationcityname_check = dynamicElement.element("dynamic-content").getText()> 
1212                                                                    </#if> 
1213 
1214                                                                    <#if dynamicElement.attributeValue("name") = "origincityname"> 
1215                                                                        <#assign c_origincityname_check = dynamicElement.element("dynamic-content").getText()> 
1216                                                                    </#if> 
1217 
1218                                                                    <#if dynamicElement.attributeValue("name") = "originIATA"> 
1219                                                                        <#assign c_originIATA_check = dynamicElement.element("dynamic-content").getText()> 
1220                                                                    </#if> 
1221 
1222                                                                    <#if dynamicElement.attributeValue("name") = "destinationIATA"> 
1223                                                                        <#assign c_destinationIATA_check = dynamicElement.element("dynamic-content").getText()> 
1224                                                                    </#if> 
1225 
1226                                                                </#list> 
1227 
1228 
1229                                                            <#--Check Duplicated--> 
1230                                                                <#assign check_filter_iata = ""> 
1231                                                                <#list filter as filter_item> 
1232                                                                    <#if filter_item = c_originIATA_check> 
1233                                                                        <#assign check_filter_iata = "X"> 
1234                                                                        <#break> 
1235                                                                    </#if> 
1236                                                                </#list> 
1237 
1238 
1239                                                            <#--Check Active Offer, bannerheaderdesk and bannerheadermob--> 
1240 
1241                                                                <#if c_active_check = "true" && c_allpromopage_check = "true"> 
1242                                                                    <#assign array_origem = array_origem + [c_originIATA_check]> 
1243                                                                </#if> 
1244 
1245                                                                <#if c_active_check = "true" && c_allpromopage_check = "true" && check_filter_iata != "X"> 
1246                                                                    <li><a href="#" class="fz-18 tac" data-value="${c_originIATA_check}">${c_origincityname_check}</a></li> 
1247                                                                    <#assign filter = filter + [c_originIATA_check]> 
1248                                                                </#if> 
1249 
1250                                                            </#if> 
1251                                                            <#if c_debug = "X">------- Fim Get Available destination and Origen ------</br></#if> 
1252                                                        </#if> 
1253                                                    </#list> 
1254                                                    </ul> 
1255                                                </div> 
1256                                            </div> 
1257                                        </div> 
1258                                    </div> 
1259                                </div> 
1260                            </div> 
1261                            <!-- e/ou --> 
1262                            <div class="col-xs-12 col-sm-2 col-md-1 col-lg-1"> 
1263                                <div class="and" role="heading" tabindex="100"><#if f_andor??>${f_andor}</#if></div> 
1264                            </div> 
1265                            <!-- Destino --> 
1266                            <div class="col-xs-12 col-sm-3 col-md-4 col-lg-4"> 
1267                                <div class="form-group select filtered-select"> 
1268                                    <div class="content-select"> 
1269                                        <div class="row"> 
1270                                            <label class="fz-14" for="destino" tabindex="100"><#if f_destination??>${f_destination}</#if></label> 
1271                                            <div class="text-input"> 
1272                                                <input id="destino" type="text" name="destino" aria-label="${f_destination}" tabindex="100" class="form-control txt-center" placeholder="<#if f_placeholder??>${f_placeholder}</#if>"> 
1273                                                <span class="current-value fz-18 tac" data-value=""><#if f_placeholder??>${f_placeholder}</#if></span> 
1274                                                <span class="ico glyphicon glyphicon-chevron-down"></span> 
1275                                                <span class="ico glyphicon glyphicon-chevron-up"></span> 
1276                                                <div class="dropdown col-xs-12"> 
1277                                                    <ul class="row"> 
1278                                                    <#assign filter = []> 
1279                                                    <#list entries as entry> 
1280 
1281                                                        <#if entry.classTypeId == c_idestrutura2?number> 
1282 
1283                                                            <#if c_debug = "X">------- Get Available destination and Origen ------</br></#if> 
1284 
1285                                                            <#assign renderer = entry.getAssetRenderer()> 
1286                                                            <#assign className = renderer.getClassName()> 
1287                                                            <#assign className2 = 'com.liferay.journal.model.JournalArticle'> 
1288                                                            <#if className == className2> 
1289 
1290                                                                <#assign journalArticle = renderer.getArticle()> 
1291                                                                <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale))> 
1292                                                                <#assign rootElement = document.getRootElement()> 
1293 
1294 
1295                                                            <#------------Execute Checks ------------------> 
1296                                                                <#assign c_active_check = ''> 
1297                                                                <#assign c_allpromopage_check = ''> 
1298                                                                <#assign c_destinationcityname_check = ''> 
1299                                                                <#assign c_origincityname_check = ''> 
1300                                                                <#assign c_originIATA_check = ''> 
1301                                                                <#assign c_destinationIATA_check = ''> 
1302 
1303                                                                <#list rootElement.elements() as dynamicElement> 
1304 
1305                                                                    <#if dynamicElement.attributeValue("name") = "activeoffer"> 
1306                                                                        <#assign c_active_check = dynamicElement.element("dynamic-content").getText()> 
1307                                                                    </#if> 
1308 
1309                                                                    <#if dynamicElement.attributeValue("name") = "allpromopage"> 
1310                                                                        <#assign c_allpromopage_check = dynamicElement.element("dynamic-content").getText()> 
1311                                                                    </#if> 
1312 
1313                                                                    <#if dynamicElement.attributeValue("name") = "destinationcityname"> 
1314                                                                        <#assign c_destinationcityname_check = dynamicElement.element("dynamic-content").getText()> 
1315                                                                    </#if> 
1316 
1317                                                                    <#if dynamicElement.attributeValue("name") = "origincityname"> 
1318                                                                        <#assign c_origincityname_check = dynamicElement.element("dynamic-content").getText()> 
1319                                                                    </#if> 
1320 
1321                                                                    <#if dynamicElement.attributeValue("name") = "originIATA"> 
1322                                                                        <#assign c_originIATA_check = dynamicElement.element("dynamic-content").getText()> 
1323                                                                    </#if> 
1324 
1325                                                                    <#if dynamicElement.attributeValue("name") = "destinationIATA"> 
1326                                                                        <#assign c_destinationIATA_check = dynamicElement.element("dynamic-content").getText()> 
1327                                                                    </#if> 
1328 
1329                                                                </#list> 
1330 
1331                                                            <#--Check Duplicated--> 
1332                                                                <#assign check_filter_iata = ""> 
1333                                                                <#list filter as filter_item> 
1334                                                                    <#if filter_item = c_destinationIATA_check> 
1335                                                                        <#assign check_filter_iata = "X"> 
1336                                                                        <#break> 
1337                                                                    </#if> 
1338                                                                </#list> 
1339 
1340 
1341                                                            <#--Check Active Offer, bannerheaderdesk and bannerheadermob--> 
1342 
1343                                                                <#if c_active_check = "true" && c_allpromopage_check = "true"> 
1344                                                                    <#assign array_destino = array_destino + [c_destinationIATA_check]> 
1345                                                                </#if> 
1346 
1347                                                                <#if c_active_check = "true" && c_allpromopage_check = "true" && check_filter_iata != "X"> 
1348                                                                    <li><a href="#" class="fz-18 tac" data-value="${c_destinationIATA_check}">${c_destinationcityname_check}</a></li> 
1349                                                                    <#assign filter = filter + [c_destinationIATA_check]> 
1350                                                                </#if> 
1351                                                            </#if> 
1352                                                            <#if c_debug = "X">------- Fim Get Available destination and Origen ------</br></#if> 
1353                                                        </#if> 
1354                                                    </#list> 
1355                                                    </ul> 
1356                                                </div> 
1357                                            </div> 
1358                                        </div> 
1359                                    </div> 
1360                                </div> 
1361                            </div> 
1362                            <!-- Buscar tarifa --> 
1363                            <div class="col-xs-12 col-sm-4 col-md-3 col-lg-3"> 
1364                                <button id="submitfilter" type="button" aria-pressed="true" tabindex="100" class="red-btn"><#if f_searchbuttonlable??>${f_searchbuttonlable}</#if></button> 
1365                            <#if f_linkrefreshsearch??><a href="${f_linkpromotion}" role="link" tabindex="100" alt="${f_linkrefreshsearch}" class="refazer-busca">${f_linkrefreshsearch}</a></#if> 
1366                            </div> 
1367                        </form> 
1368                    </div> 
1369                </div> 
1370            </div> 
1371            <!-- Título Página --> 
1372            <div class="row"> 
1373                <div class="col-xs-12 col-sm-12 col-md-10 col-md-offset-1"> 
1374                    <#if f_title?? && f_title?trim?has_content> 
1375                        <h2 class="fwb" aria-level="2" role="heading" tabindex="100">${f_title}</h2> 
1376                    </#if> 
1377                    <#if f_subtitle?? && f_subtitle?trim?has_content> 
1378                        <h3 aria-level="3" role="heading" tabindex="100">${f_subtitle}</h3> 
1379                    </#if> 
1380                </div> 
1381            </div> 
1382            <!-- Cards --> 
1383            <div class="box-cards-d row" style="padding-top:0"> 
1384                <div class="boxes col-lg-12"> 
1385                    <!-- Primários --> 
1386                    <div class="row"> 
1387                        <!--Card Coluna 1 --> 
1388                        <div class="col-xs-12 col-sm-6 col-md-5 column-1 npm"> 
1389                            <#if c_ofertas_item?has_content && c_ofertas_item?size gt counter> 
1390                                <#assign c_oferta_position = counter> 
1391 
1392                                <#if c_ofertas_geolocalizadas?size gt counter_geoloc> 
1393                                    <!-- Get next Geolocalized --> 
1394                                    <#assign c_oferta_position = c_ofertas_geolocalizadas[counter_geoloc]> 
1395                                    <#assign counter_geoloc = counter_geoloc + 1> 
1396                                <#else> 
1397                                    <!-- Get next Not Geolocalized --> 
1398                                    <#assign c_oferta_position = c_ofertas_not_geolocalizadas[counter_not_geoloc]> 
1399                                    <#assign counter_not_geoloc = counter_not_geoloc + 1> 
1400                                </#if> 
1401 
1402                                <#assign c_count = 0> 
1403                                <#list c_ofertas_item as c_ofertas_values> 
1404 
1405                                    <#if c_count = c_oferta_position> 
1406                                        <div class="col-sm-12 big-height offer"> 
1407                                        
1408                                            <div class="row"> 
1409 
1410                                                <#if c_ofertas_values?has_content> 
1411                                                    <!-- Get next Not Geolocalized --> 
1412                                                    <#if get_value("allpromopage", c_ofertas_title, c_ofertas_values) = "true"> 
1413                                                        <!-- Light box informativo --> 
1414                                                        <span class="ico ico-info hidden-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
1415                                                        <span class="ico ico-info mob visible-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
1416                                                        <div class="title hide"> 
1417                                                            <h3 role="heading" aria-level="3" tabindex="100">${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}</h3> 
1418                                                        </div> 
1419                                                        <div class="content-lt hide"> 
1420                                                            <div class="text" tabindex="100" role="heading"> 
1421                                                                <p>${get_value("legalbodytext", c_ofertas_title, c_ofertas_values)}</p> 
1422                                                            </div> 
1423                                                            <div class="button col-xs-12"> 
1424                                                                <hr> 
1425                                                                <!-- Parametros GA: inbound e outbound --> 
1426                                                                <#assign outbound_name = "outbound"> 
1427                                                                <#assign inbound_name = "inbound"> 
1428                                                                <#assign dates_in_out = []> 
1429                                                                <#assign dates_in_out = calculate_dates_inbound_outbound (inbound_name outbound_name get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values))> 
1430                                                                <a  
1431                                                                    class="more-offer red-btn"  
1432                                                                    href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values) get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}"  
1433                                                                    tabindex="100" 
1434                                                                    data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
1435                                                                    data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
1436                                                                    data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
1437                                                                    data-obDate="${dates_in_out.outbound_name}" 
1438                                                                    data-ibDate="${dates_in_out.inbound_name}"> 
1439                                                                     
1440                                                                        <#if get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)??>${get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)}</#if> 
1441                                                                </a> 
1442                                                            </div> 
1443                                                        </div> 
1444                                                        <!-- Fim Light box informativo --> 
1445 
1446                                                        <#assign image_auto_desk = get_value("checkautomaticbannermobile", c_ofertas_title, c_ofertas_values)> 
1447                                                        <#assign image_auto_mobile = get_value("checkautomaticbannermobile", c_ofertas_title, c_ofertas_values)> 
1448                                                        <#assign image_desk = get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)> 
1449                                                        <#assign image_mobile = get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)> 
1450                                                        <a  
1451                                                            href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values)get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}"  
1452                                                            role="link"  
1453                                                            class="<#if image_auto_desk = "false" && image_desk = "">no-desk-img </#if><#if image_auto_mobile = "false" && image_mobile = "">no-mob-img</#if>" 
1454                                                            title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}"  
1455                                                            tabindex="100" 
1456                                                            data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
1457                                                            data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
1458                                                            data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
1459                                                            data-obDate="${dates_in_out.outbound_name}" 
1460                                                            data-ibDate="${dates_in_out.inbound_name}"> 
1461                                                            
1462                                                            <!-- IMG DESKTOP --> 
1463                                                            <#if image_auto_desk = "true"> 
1464                                                                <#assign compare_iata = get_value("destinationIATA", c_ofertas_title, c_ofertas_values)> 
1465                                                                <#assign count_iata = 1> 
1466                                                                <#if iata_image_desk_check?size gt 0> 
1467                                                                    <#assign count_iata = 1> 
1468                                                                    <#list iata_image_desk_check as var_iata> 
1469                                                                        <#if var_iata = compare_iata> 
1470                                                                            <#assign count_iata = count_iata + 1> 
1471                                                                        </#if> 
1472                                                                    </#list> 
1473                                                                </#if> 
1474                                                                <img src="${get_files_from_folder(compare_iata, c_folderpath_mobile, count_iata, c_grouid, c_parentfolderid)}" class="hidden-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="-1"> 
1475                                                                <#assign iata_image_desk_check = iata_image_desk_check + [compare_iata]> 
1476                                                            <#else> 
1477                                                                <#if image_desk != ""> 
1478                                                                    <img src="${get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)}" class="hidden-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="-1"> 
1479                                                                </#if> 
1480                                                            </#if> 
1481                                                            <!-- IMG MOBILE --> 
1482                                                            <#if image_auto_mobile = "true"> 
1483                                                                <#assign compare_iata = get_value("destinationIATA", c_ofertas_title, c_ofertas_values)> 
1484                                                                <#assign count_iata = 1> 
1485                                                                <#if iata_image_mobile_check?size gt 0> 
1486                                                                    <#assign count_iata = 1> 
1487                                                                    <#list iata_image_mobile_check as var_iata> 
1488                                                                        <#if var_iata = compare_iata> 
1489                                                                            <#assign count_iata = count_iata + 1> 
1490                                                                        </#if> 
1491                                                                    </#list> 
1492                                                                </#if> 
1493                                                                <img src="${get_files_from_folder(compare_iata, c_folderpath_mobile, count_iata, c_grouid, c_parentfolderid)}" class="visible-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="100"> 
1494                                                                <#assign iata_image_mobile_check = iata_image_mobile_check + [compare_iata]> 
1495                                                            <#else> 
1496                                                                <#if image_mobile != ""> 
1497                                                                    <img src="${get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)}" class="visible-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="100"> 
1498                                                                </#if> 
1499                                                            </#if> 
1500 
1501 
1502                                                            <!-- Textos da Oferta --> 
1503                                                            <div class="infos-offer"> 
1504                                                                <p alt="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}" title="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}"> 
1505                                                                    <span class="titles" tabindex="100"> 
1506                                                                        ${get_value("origincityname", c_ofertas_title, c_ofertas_values)}<br/> 
1507                                                                        ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)} 
1508                                                                    </span> 
1509 
1510                                                                    <#-------- Replace TAGs Start-----> 
1511                                                                    <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
1512                                                                        <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
1513                                                                        <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
1514                                                                        <#assign c_rep_price_text = "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values)> 
1515                                                                    <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) != "true"> 
1516                                                                        <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
1517                                                                        <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
1518                                                                        <#assign c_rep_price_text = "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values)> 
1519                                                                    <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) != "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
1520                                                                        <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
1521                                                                        <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
1522                                                                        <#assign c_rep_price_text = "<em class=\"price\">" + "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
1523                                                                    </#if> 
1524                                                                    <#assign c_val = [c_firstname] + [c_Client_Birthday + "/" + c_Client_Birthmonth] + [c_rep_price_text] + [c_rep_installment_num_text] + [c_rep_installment_value_text]> 
1525 
1526                                                                    <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true"> 
1527                                                                        <span class="from" tabindex="100">                                                       
1528                                                                        <#-------- Replace TAGs Start-----> 
1529                                                                            <#assign c_rep_string = get_value("installmenttext", c_ofertas_title, c_ofertas_values)> 
1530                                                                            <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
1531                                                                            <#assign c_rep_string = c_rep_string?replace("R$", "")> 
1532                                                                            <#list 0..count_replace as count>        
1533                                                                                    <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
1534                                                                            </#list> 
1535                                                                            <#assign c_rep_string = c_rep_string?replace(c_rep_installment_num_text + "x", c_rep_installment_num_text)> 
1536                                                                            <#-------- Replace TAGs End----->  
1537                                                                            ${c_rep_string} 
1538                                                                        </span> 
1539 
1540                                                                    </#if>  
1541                                                                    <#if get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
1542                                                                        <span class="from" tabindex="100"> 
1543                                                                            <#-------- Replace TAGs Start----->  
1544                                                                            <#assign c_rep_string = get_value("pricetext", c_ofertas_title, c_ofertas_values)> 
1545                                                                            <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
1546                                                                            <#assign c_rep_string = c_rep_string?replace("R$", "")> 
1547                                                                            <#list 0..count_replace as count>        
1548                                                                                    <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
1549                                                                            </#list> 
1550                                                                            <#-------- Replace TAGs End----->   
1551                                                                            ${c_rep_string}  
1552                                                                        </span> 
1553                                                                    </#if>  
1554                                                                </p> 
1555                                                            </div> 
1556                                                        </a> 
1557                                                    </#if> 
1558                                                </#if> 
1559                                            </div> 
1560                                        </div> 
1561                                        <#break> 
1562                                    </#if> 
1563                                    <#assign c_count = c_count + 1> 
1564                                </#list> 
1565                                <#assign counter = counter + 1> 
1566                                     
1567                            <!-- Sem Oferta --> 
1568                            <#else> 
1569                                <div class="col-sm-12 offer big-height sem-oferta"> 
1570                                    <div class="row"> 
1571                                         
1572                                    </div> 
1573                                </div>                                 
1574                            </#if>   
1575                                     
1576                        </div> 
1577 
1578 
1579                        <!--Card Coluna 2 --> 
1580 
1581                        <div class="col-xs-12 col-sm-6 col-md-5 column-1 hidden-xs"> 
1582                            <#if c_ofertas_item?has_content && c_ofertas_item?size gt counter> 
1583                                <#assign c_oferta_position = counter> 
1584 
1585                                <#if c_ofertas_geolocalizadas?size gt counter_geoloc> 
1586                                    <!-- Get next Geolocalized --> 
1587                                    <#assign c_oferta_position = c_ofertas_geolocalizadas[counter_geoloc]> 
1588                                    <#assign counter_geoloc = counter_geoloc + 1> 
1589                                <#else> 
1590                                    <!-- Get next Not Geolocalized --> 
1591                                    <#assign c_oferta_position = c_ofertas_not_geolocalizadas[counter_not_geoloc]> 
1592                                    <#assign counter_not_geoloc = counter_not_geoloc + 1> 
1593                                </#if> 
1594                                <#assign c_count = 0> 
1595                                <#list c_ofertas_item as c_ofertas_values> 
1596                                    <#if c_count = c_oferta_position> 
1597                                         <div class="col-sm-12 offer big-height"> 
1598                                            <div class="row"> 
1599                                                <#if c_ofertas_values?has_content> 
1600 
1601                                                    <#if get_value("allpromopage", c_ofertas_title, c_ofertas_values) = "true"> 
1602                                                        <!-- Light box informativo --> 
1603                                                        <span class="ico ico-info hidden-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
1604                                                        <span class="ico ico-info mob visible-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
1605                                                        <div class="title hide"> 
1606                                                            <h3 role="heading" aria-level="3" tabindex="100">${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}</h3> 
1607                                                        </div> 
1608                                                        <div class="content-lt hide"> 
1609                                                            <div class="text" tabindex="100" role="heading"> 
1610                                                                <p>${get_value("legalbodytext", c_ofertas_title, c_ofertas_values)}</p> 
1611                                                            </div> 
1612                                                            <div class="button col-xs-12"> 
1613                                                                <hr> 
1614                                                                <!-- Parametros GA: inbound e outbound --> 
1615                                                                <#assign outbound_name = "outbound"> 
1616                                                                <#assign inbound_name = "inbound"> 
1617                                                                <#assign dates_in_out = []> 
1618                                                                <#assign dates_in_out = calculate_dates_inbound_outbound (inbound_name outbound_name get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values))> 
1619                                                                <a  
1620                                                                class="more-offer red-btn"  
1621                                                                href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values) get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}"  
1622                                                                tabindex="100" 
1623                                                                data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
1624                                                                data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
1625                                                                data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
1626                                                                data-obDate="${dates_in_out.outbound_name}" 
1627                                                                data-ibDate="${dates_in_out.inbound_name}"> 
1628                                                                     
1629                                                                    <#if get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)??>${get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)}</#if> 
1630                                                                </a> 
1631                                                            </div> 
1632                                                        </div> 
1633                                                        <!-- Fim Light box informativo --> 
1634 
1635                                                        <#assign image_auto_desk = get_value("checkautomaticbannermobile", c_ofertas_title, c_ofertas_values)> 
1636                                                        <#assign image_auto_mobile = get_value("checkautomaticbannermobile", c_ofertas_title, c_ofertas_values)> 
1637                                                        <#assign image_desk = get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)> 
1638                                                        <#assign image_mobile = get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)> 
1639                                                        <a  
1640                                                            href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values)get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}"  
1641                                                            role="link"  
1642                                                            class="<#if image_auto_desk = "false" && image_desk = "">no-desk-img </#if><#if image_auto_mobile = "false" && image_mobile = "">no-mob-img</#if>" 
1643                                                            title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}"  
1644                                                            tabindex="100" 
1645                                                            data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
1646                                                            data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
1647                                                            data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
1648                                                            data-obDate="${dates_in_out.outbound_name}" 
1649                                                            data-ibDate="${dates_in_out.inbound_name}"> 
1650                                                            
1651                                                            <!-- IMG DESKTOP --> 
1652                                                            <#if image_auto_desk = "true"> 
1653                                                                <#assign compare_iata = get_value("destinationIATA", c_ofertas_title, c_ofertas_values)> 
1654                                                                <#assign count_iata = 1> 
1655                                                                <#if iata_image_desk_check?size gt 0> 
1656                                                                    <#assign count_iata = 1> 
1657                                                                    <#list iata_image_desk_check as var_iata> 
1658                                                                        <#if var_iata = compare_iata> 
1659                                                                            <#assign count_iata = count_iata + 1> 
1660                                                                        </#if> 
1661                                                                    </#list> 
1662                                                                </#if> 
1663                                                                <img src="${get_files_from_folder(compare_iata, c_folderpath_mobile, count_iata, c_grouid, c_parentfolderid)}" class="hidden-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="-1"> 
1664                                                                <#assign iata_image_desk_check = iata_image_desk_check + [compare_iata]> 
1665                                                            <#else> 
1666                                                                <#if image_desk != ""> 
1667                                                                    <img src="${get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)}" class="hidden-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="-1"> 
1668                                                                </#if> 
1669                                                            </#if> 
1670                                                            <!-- IMG MOBILE --> 
1671                                                            <#if image_auto_mobile = "true"> 
1672                                                                <#assign compare_iata = get_value("destinationIATA", c_ofertas_title, c_ofertas_values)> 
1673                                                                <#assign count_iata = 1> 
1674                                                                <#if iata_image_mobile_check?size gt 0> 
1675                                                                    <#assign count_iata = 1> 
1676                                                                    <#list iata_image_mobile_check as var_iata> 
1677                                                                        <#if var_iata = compare_iata> 
1678                                                                            <#assign count_iata = count_iata + 1> 
1679                                                                        </#if> 
1680                                                                    </#list> 
1681                                                                </#if> 
1682                                                                <img src="${get_files_from_folder(compare_iata, c_folderpath_mobile, count_iata, c_grouid, c_parentfolderid)}" class="visible-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="100"> 
1683                                                                <#assign iata_image_mobile_check = iata_image_mobile_check + [compare_iata]> 
1684                                                            <#else> 
1685                                                                <#if image_mobile != ""> 
1686                                                                    <img src="${get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)}" class="visible-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="100"> 
1687                                                                </#if> 
1688                                                            </#if> 
1689 
1690 
1691                                                            <!-- Textos da Oferta --> 
1692                                                            <div class="infos-offer"> 
1693                                                                <p alt="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}" title="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}"> 
1694                                                                    <span class="titles" tabindex="100"> 
1695                                                                        ${get_value("origincityname", c_ofertas_title, c_ofertas_values)}<br/> 
1696                                                                        ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)} 
1697                                                                    </span> 
1698                                                                     
1699                                                                    <#-------- Replace TAGs Start-----> 
1700                                                                    <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
1701                                                                        <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
1702                                                                        <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
1703                                                                        <#assign c_rep_price_text = "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values)> 
1704                                                                    <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) != "true"> 
1705                                                                        <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
1706                                                                        <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
1707                                                                        <#assign c_rep_price_text = "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values)> 
1708                                                                    <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) != "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
1709                                                                        <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
1710                                                                        <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
1711                                                                        <#assign c_rep_price_text = "<em class=\"price\">" + "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
1712                                                                    </#if> 
1713                                                                    <#assign c_val = [c_firstname] + [c_Client_Birthday + "/" + c_Client_Birthmonth] + [c_rep_price_text] + [c_rep_installment_num_text] + [c_rep_installment_value_text]> 
1714 
1715                                                                    <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true"> 
1716                                                                        <span class="from" tabindex="100">                                                               <#-------- Replace TAGs Start-----> 
1717                                                                            <#assign c_rep_string = get_value("installmenttext", c_ofertas_title, c_ofertas_values)> 
1718                                                                            <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
1719                                                                            <#assign c_rep_string = c_rep_string?replace("R$", "")> 
1720                                                                            <#list 0..count_replace as count>        
1721                                                                                    <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
1722                                                                            </#list> 
1723                                                                            <#assign c_rep_string = c_rep_string?replace(c_rep_installment_num_text + "x", c_rep_installment_num_text)> 
1724                                                                            <#-------- Replace TAGs End----->  
1725                                                                            ${c_rep_string} 
1726                                                                        </span> 
1727 
1728                                                                    </#if>  
1729                                                                    <#if get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
1730                                                                        <span class="from" tabindex="100"> 
1731                                                                            <#-------- Replace TAGs Start----->  
1732                                                                            <#assign c_rep_string = get_value("pricetext", c_ofertas_title, c_ofertas_values)> 
1733                                                                            <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
1734                                                                            <#assign c_rep_string = c_rep_string?replace("R$", "")> 
1735                                                                            <#list 0..count_replace as count>        
1736                                                                                    <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
1737                                                                            </#list> 
1738                                                                            <#-------- Replace TAGs End----->   
1739                                                                            ${c_rep_string}  
1740                                                                        </span> 
1741                                                                    </#if> 
1742                                                                </p> 
1743                                                            </div> 
1744                                                        </a> 
1745 
1746                                                    </#if> 
1747                                                </#if> 
1748                                                <#break> 
1749                                            </#if> 
1750 
1751                                            <#assign c_count = c_count + 1> 
1752                                        </#list> 
1753                                        <#assign counter = counter + 1> 
1754                                    </div> 
1755                                </div> 
1756                            <!-- Sem Oferta --> 
1757                            <#else> 
1758                                <div class="col-sm-12 offer big-height sem-oferta"> 
1759                                    <div class="row"> 
1760                                         
1761                                    </div> 
1762                                </div>                                 
1763                            </#if>   
1764                        </div> 
1765 
1766                        <!-- Cards price --> 
1767                        <!-- CARD 1 Coluna Direita  --> 
1768                        <div class="col-xs-12 col-sm-12 col-md-2 fourth cards-price npm"> 
1769 
1770                            <div class="col-sm-12 col-md-12 card"> 
1771                                <div class="row"> 
1772                                    <#assign shown = ""> 
1773                                    <#if c_ofertas_item?has_content && c_ofertas_item?size gt counter> 
1774                                        <div class="content-card npm"> 
1775                                            <#assign c_oferta_position = counter> 
1776 
1777                                            <#if c_ofertas_geolocalizadas?size gt counter_geoloc> 
1778                                                <!-- Get next Geolocalized --> 
1779                                                <#assign c_oferta_position = c_ofertas_geolocalizadas[counter_geoloc]> 
1780                                                <#assign counter_geoloc = counter_geoloc + 1> 
1781                                            <#else> 
1782                                                <!-- Get next Not Geolocalized --> 
1783                                                <#assign c_oferta_position = c_ofertas_not_geolocalizadas[counter_not_geoloc]> 
1784                                                <#assign counter_not_geoloc = counter_not_geoloc + 1> 
1785                                            </#if> 
1786                                            <#assign c_count = 0> 
1787                                            <#list c_ofertas_item as c_ofertas_values> 
1788 
1789                                                <#if c_count = c_oferta_position> 
1790 
1791                                                    <#if c_ofertas_values?has_content> 
1792 
1793                                                        <#if get_value("allpromopage", c_ofertas_title, c_ofertas_values) = "true"> 
1794 
1795                                                            <!-- Light box informativo --> 
1796                                                            <span class="ico ico-info hidden-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
1797                                                            <span class="ico ico-info mob visible-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
1798                                                            <div class="title hide" > 
1799                                                                <h3 role="heading" aria-level="3" tabindex="100">${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}</h3> 
1800                                                            </div> 
1801                                                            <div class="content-lt hide"> 
1802                                                                <div class="text" tabindex="100"> 
1803                                                                    <p>${get_value("legalbodytext", c_ofertas_title, c_ofertas_values)}</p> 
1804                                                                </div> 
1805                                                                <div class="button col-xs-12"> 
1806                                                                    <hr> 
1807                                                                    <!-- Parametros GA: inbound e outbound --> 
1808                                                                    <#assign outbound_name = "outbound"> 
1809                                                                    <#assign inbound_name = "inbound"> 
1810                                                                    <#assign dates_in_out = []> 
1811                                                                    <#assign dates_in_out = calculate_dates_inbound_outbound (inbound_name outbound_name get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values))> 
1812                                                                    <a  
1813                                                                    class="more-offer red-btn"  
1814                                                                    tabindex="100"  
1815                                                                    href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values) get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}"  
1816                                                                    data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
1817                                                                    data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
1818                                                                    data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
1819                                                                    data-obDate="${dates_in_out.outbound_name}" 
1820                                                                    data-ibDate="${dates_in_out.inbound_name}"> 
1821 
1822                                                                        <#if get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)??>${get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)}</#if> 
1823                                                                    </a> 
1824                                                                </div> 
1825                                                            </div> 
1826                                                            <!-- Fim Light box informativo --> 
1827 
1828                                                            <a  
1829                                                            role="link"  
1830                                                            title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}"  
1831                                                            href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values)get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}"  
1832                                                            tabindex="100" 
1833                                                            data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
1834                                                            data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
1835                                                            data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
1836                                                            data-obDate="${dates_in_out.outbound_name}" 
1837                                                            data-ibDate="${dates_in_out.inbound_name}"> 
1838 
1839                                                                <p alt="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}" title="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}"> 
1840                                                                   <span class="titles" tabindex="100"> 
1841                                                                        ${get_value("origincityname", c_ofertas_title, c_ofertas_values)}<br/> 
1842                                                                        ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)} 
1843                                                                    </span> 
1844                                                                     
1845                                                                    <#-------- Replace TAGs Start-----> 
1846                                                                    <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
1847                                                                        <#assign c_rep_installment_num_text = get_value("installment", c_ofertas_title, c_ofertas_values) + "X"> 
1848                                                                        <#assign c_rep_installment_value_text = "<em>R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
1849                                                                        <#assign c_rep_price_text = "<em>R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
1850                                                                    <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) != "true"> 
1851                                                                        <#assign c_rep_installment_num_text = get_value("installment", c_ofertas_title, c_ofertas_values) + "X"> 
1852                                                                        <#assign c_rep_installment_value_text = "<em>R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
1853                                                                        <#assign c_rep_price_text = "<em>R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
1854                                                                    <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) != "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
1855                                                                        <#assign c_rep_installment_num_text = get_value("installment", c_ofertas_title, c_ofertas_values) + "X"> 
1856                                                                        <#assign c_rep_installment_value_text = "<em>R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
1857                                                                        <#assign c_rep_price_text = "<em>R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
1858                                                                    </#if> 
1859                                                                    <#assign c_val = [c_firstname] + [c_Client_Birthday + "/" + c_Client_Birthmonth] + [c_rep_price_text] + [c_rep_installment_num_text] + [c_rep_installment_value_text]> 
1860 
1861                                                                    <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true"> 
1862                                                                        <span class="from" tabindex="100">                                                               <#-------- Replace TAGs Start-----> 
1863                                                                            <#assign c_rep_string = get_value("installmenttext", c_ofertas_title, c_ofertas_values)> 
1864                                                                            <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
1865                                                                            <#assign c_rep_string = c_rep_string?replace("R$", "")> 
1866                                                                            <#list 0..count_replace as count>        
1867                                                                                    <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
1868                                                                            </#list> 
1869                                                                            <#assign c_rep_string = c_rep_string?replace(c_rep_installment_num_text + "x", c_rep_installment_num_text)> 
1870                                                                            <#-------- Replace TAGs End----->  
1871                                                                            ${c_rep_string} 
1872                                                                        </span> 
1873 
1874                                                                    </#if>  
1875                                                                    <#if get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
1876                                                                        <span class="from" tabindex="100"> 
1877                                                                            <#-------- Replace TAGs Start----->  
1878                                                                            <#assign c_rep_string = get_value("pricetext", c_ofertas_title, c_ofertas_values)> 
1879                                                                            <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
1880                                                                            <#assign c_rep_string = c_rep_string?replace("R$", "")> 
1881                                                                            <#list 0..count_replace as count>        
1882                                                                                    <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
1883                                                                            </#list> 
1884                                                                            <#-------- Replace TAGs End----->   
1885                                                                            ${c_rep_string}  
1886                                                                        </span> 
1887                                                                    </#if> 
1888                                                                </p> 
1889                                                            </a> 
1890                                                            <#assign shown = "X"> 
1891 
1892                                                        </#if> 
1893                                                    </#if> 
1894                                                    <#break> 
1895                                                </#if> 
1896 
1897                                                <#assign c_count = c_count + 1> 
1898                                            </#list> 
1899                                            <#assign counter = counter + 1> 
1900                                        </div> 
1901                                    <!-- Sem Oferta --> 
1902                                    <#else> 
1903                                        <div class="content-card sem-oferta"> 
1904                                            <a> 
1905                                                <p></p> 
1906                                            </a> 
1907                                        </div>                               
1908                                    </#if>  
1909                                </div> 
1910                            </div> 
1911 
1912                            <!-- CARD 2 Coluna Direita  --> 
1913                            <div class="col-sm-12 col-md-12 card"> 
1914                                <div class="row"> 
1915                                    <#assign shown = ""> 
1916                                    <#if c_ofertas_item?has_content && c_ofertas_item?size gt counter> 
1917                                        <div class="content-card npm"> 
1918                                            <#assign c_oferta_position = counter> 
1919 
1920                                            <#if c_ofertas_geolocalizadas?size gt counter_geoloc> 
1921                                                <!-- Get next Geolocalized --> 
1922                                                <#assign c_oferta_position = c_ofertas_geolocalizadas[counter_geoloc]> 
1923                                                <#assign counter_geoloc = counter_geoloc + 1> 
1924                                            <#else> 
1925                                                <!-- Get next Not Geolocalized --> 
1926                                                <#assign c_oferta_position = c_ofertas_not_geolocalizadas[counter_not_geoloc]> 
1927                                                <#assign counter_not_geoloc = counter_not_geoloc + 1> 
1928                                            </#if> 
1929                                            <#assign c_count = 0> 
1930                                            <#list c_ofertas_item as c_ofertas_values> 
1931 
1932                                                <#if c_count = c_oferta_position> 
1933 
1934                                                    <#if c_ofertas_values?has_content> 
1935 
1936                                                        <#if get_value("allpromopage", c_ofertas_title, c_ofertas_values) = "true"> 
1937 
1938                                                            <!-- Light box informativo --> 
1939                                                            <span class="ico ico-info hidden-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
1940                                                            <span class="ico ico-info mob visible-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
1941                                                            <div class="title hide" > 
1942                                                                <h3 role="heading" aria-level="3" tabindex="100">${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}</h3> 
1943                                                            </div> 
1944                                                            <div class="content-lt hide"> 
1945                                                                <div class="text" tabindex="100"> 
1946                                                                    <p>${get_value("legalbodytext", c_ofertas_title, c_ofertas_values)}</p> 
1947                                                                </div> 
1948                                                                <div class="button col-xs-12"> 
1949                                                                    <hr> 
1950                                                                    <!-- Parametros GA: inbound e outbound --> 
1951                                                                    <#assign outbound_name = "outbound"> 
1952                                                                    <#assign inbound_name = "inbound"> 
1953                                                                    <#assign dates_in_out = []> 
1954                                                                    <#assign dates_in_out = calculate_dates_inbound_outbound (inbound_name outbound_name get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values))> 
1955                                                                    <a  
1956                                                                    class="more-offer red-btn"  
1957                                                                    tabindex="100"  
1958                                                                    href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values) get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}" 
1959                                                                    data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
1960                                                                    data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
1961                                                                    data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
1962                                                                    data-obDate="${dates_in_out.outbound_name}" 
1963                                                                    data-ibDate="${dates_in_out.inbound_name}"> 
1964 
1965                                                                        <#if get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)??>${get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)}</#if> 
1966                                                                    </a> 
1967                                                                </div> 
1968                                                            </div> 
1969                                                            <!-- Fim Light box informativo --> 
1970 
1971                                                            <a  
1972                                                            role="link"  
1973                                                            title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}"  
1974                                                            href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values)get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}"  
1975                                                            tabindex="100" 
1976                                                            data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
1977                                                            data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
1978                                                            data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
1979                                                            data-obDate="${dates_in_out.outbound_name}" 
1980                                                            data-ibDate="${dates_in_out.inbound_name}"> 
1981 
1982                                                                <p alt="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}" title="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}"> 
1983                                                                    <span class="titles" tabindex="100"> 
1984                                                                        ${get_value("origincityname", c_ofertas_title, c_ofertas_values)}<br/> 
1985                                                                        ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)} 
1986                                                                    </span> 
1987                                                                     
1988                                                                    <#-------- Replace TAGs Start-----> 
1989                                                                    <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
1990                                                                        <#assign c_rep_installment_num_text = get_value("installment", c_ofertas_title, c_ofertas_values) + "X"> 
1991                                                                        <#assign c_rep_installment_value_text = "<em>R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
1992                                                                        <#assign c_rep_price_text = "<em>R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
1993                                                                    <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) != "true"> 
1994                                                                        <#assign c_rep_installment_num_text = get_value("installment", c_ofertas_title, c_ofertas_values) + "X"> 
1995                                                                        <#assign c_rep_installment_value_text = "<em>R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
1996                                                                        <#assign c_rep_price_text = "<em>R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
1997                                                                    <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) != "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
1998                                                                        <#assign c_rep_installment_num_text = get_value("installment", c_ofertas_title, c_ofertas_values) + "X"> 
1999                                                                        <#assign c_rep_installment_value_text = "<em>R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2000                                                                        <#assign c_rep_price_text = "<em>R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
2001                                                                    </#if> 
2002                                                                    <#assign c_val = [c_firstname] + [c_Client_Birthday + "/" + c_Client_Birthmonth] + [c_rep_price_text] + [c_rep_installment_num_text] + [c_rep_installment_value_text]> 
2003 
2004                                                                    <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true"> 
2005                                                                        <span class="from" tabindex="100">                                                               <#-------- Replace TAGs Start-----> 
2006                                                                            <#assign c_rep_string = get_value("installmenttext", c_ofertas_title, c_ofertas_values)> 
2007                                                                            <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
2008                                                                            <#assign c_rep_string = c_rep_string?replace("R$", "")> 
2009                                                                            <#list 0..count_replace as count>        
2010                                                                                    <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
2011                                                                            </#list> 
2012                                                                            <#assign c_rep_string = c_rep_string?replace(c_rep_installment_num_text + "x", c_rep_installment_num_text)> 
2013                                                                            <#-------- Replace TAGs End----->  
2014                                                                            ${c_rep_string} 
2015                                                                        </span> 
2016 
2017                                                                    </#if>  
2018                                                                    <#if get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2019                                                                        <span class="from" tabindex="100"> 
2020                                                                            <#-------- Replace TAGs Start----->  
2021                                                                            <#assign c_rep_string = get_value("pricetext", c_ofertas_title, c_ofertas_values)> 
2022                                                                            <#assign count_replace =  c_replacement_tag_id?size?number - 1> 
2023                                                                            <#assign c_rep_string = c_rep_string?replace("R$", "")>  
2024                                                                            <#list 0..count_replace as count>        
2025                                                                                    <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
2026                                                                            </#list> 
2027                                                                            <#-------- Replace TAGs End----->   
2028                                                                            ${c_rep_string}  
2029                                                                        </span> 
2030                                                                    </#if> 
2031                                                                </p> 
2032                                                            </a> 
2033                                                            <#assign shown = "X"> 
2034 
2035                                                        </#if> 
2036                                                    </#if> 
2037                                                    <#break> 
2038                                                </#if> 
2039 
2040                                                <#assign c_count = c_count + 1> 
2041                                            </#list> 
2042                                            <#assign counter = counter + 1> 
2043                                        </div> 
2044                                    <!-- Sem Oferta --> 
2045                                    <#else> 
2046                                        <div class="content-card sem-oferta"> 
2047                                            <a > 
2048                                                <p></p> 
2049                                            </a> 
2050                                        </div>                               
2051                                    </#if>  
2052                                </div> 
2053                            </div> 
2054 
2055                            <!-- CARD 3 Coluna Direita  --> 
2056                            <div class="col-sm-12 col-md-12 card hidden-xs"> 
2057                                <div class="row"> 
2058                                    <#assign shown = ""> 
2059                                    <#if c_ofertas_item?has_content && c_ofertas_item?size gt counter> 
2060                                        <div class="content-card npm"> 
2061                                            <#assign c_oferta_position = counter> 
2062 
2063                                            <#if c_ofertas_geolocalizadas?size gt counter_geoloc> 
2064                                                <!-- Get next Geolocalized --> 
2065                                                <#assign c_oferta_position = c_ofertas_geolocalizadas[counter_geoloc]> 
2066                                                <#assign counter_geoloc = counter_geoloc + 1> 
2067                                            <#else> 
2068                                                <!-- Get next Not Geolocalized --> 
2069                                                <#assign c_oferta_position = c_ofertas_not_geolocalizadas[counter_not_geoloc]> 
2070                                                <#assign counter_not_geoloc = counter_not_geoloc + 1> 
2071                                            </#if> 
2072                                            <#assign c_count = 0> 
2073                                            <#list c_ofertas_item as c_ofertas_values> 
2074 
2075                                                <#if c_count = c_oferta_position> 
2076 
2077                                                    <#if c_ofertas_values?has_content> 
2078 
2079                                                        <#if get_value("allpromopage", c_ofertas_title, c_ofertas_values) = "true"> 
2080 
2081                                                            <!-- Light box informativo --> 
2082                                                            <span class="ico ico-info hidden-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
2083                                                            <span class="ico ico-info mob visible-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
2084                                                            <div class="title hide"> 
2085                                                                <h3 role="heading" aria-level="3" tabindex="100">${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}</h3> 
2086                                                            </div> 
2087                                                            <div class="content-lt hide" tabindex="100"> 
2088                                                                <div class="text"> 
2089                                                                    <p>${get_value("legalbodytext", c_ofertas_title, c_ofertas_values)}</p> 
2090                                                                </div> 
2091                                                                <div class="button col-xs-12"> 
2092                                                                    <hr> 
2093                                                                    <!-- Parametros GA: inbound e outbound --> 
2094                                                                    <#assign outbound_name = "outbound"> 
2095                                                                    <#assign inbound_name = "inbound"> 
2096                                                                    <#assign dates_in_out = []> 
2097                                                                    <#assign dates_in_out = calculate_dates_inbound_outbound (inbound_name outbound_name get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values))> 
2098                                                                    <a  
2099                                                                    class="more-offer red-btn"  
2100                                                                    tabindex="100"  
2101                                                                    href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values) get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}" 
2102                                                                    data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
2103                                                                    data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
2104                                                                    data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
2105                                                                    data-obDate="${dates_in_out.outbound_name}" 
2106                                                                    data-ibDate="${dates_in_out.inbound_name}"> 
2107 
2108                                                                        <#if get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)??>${get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)}</#if> 
2109                                                                    </a> 
2110                                                                </div> 
2111                                                            </div> 
2112                                                            <!-- Fim Light box informativo --> 
2113 
2114                                                            <a  
2115                                                            role="link"  
2116                                                            title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}"  
2117                                                            href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values)get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}"  
2118                                                            tabindex="100" 
2119                                                            data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
2120                                                            data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
2121                                                            data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
2122                                                            data-obDate="${dates_in_out.outbound_name}" 
2123                                                            data-ibDate="${dates_in_out.inbound_name}"> 
2124 
2125                                                                <p alt="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}" title="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}"> 
2126                                                                   <span class="titles" tabindex="100"> 
2127                                                                        ${get_value("origincityname", c_ofertas_title, c_ofertas_values)}<br/> 
2128                                                                        ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)} 
2129                                                                    </span> 
2130                                                                     
2131                                                                    <#-------- Replace TAGs Start-----> 
2132                                                                    <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2133                                                                        <#assign c_rep_installment_num_text = get_value("installment", c_ofertas_title, c_ofertas_values) + "X"> 
2134                                                                        <#assign c_rep_installment_value_text = "<em>R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2135                                                                        <#assign c_rep_price_text = "<em>R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
2136                                                                    <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) != "true"> 
2137                                                                        <#assign c_rep_installment_num_text = get_value("installment", c_ofertas_title, c_ofertas_values) + "X"> 
2138                                                                        <#assign c_rep_installment_value_text = "<em>R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2139                                                                        <#assign c_rep_price_text = "<em>R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
2140                                                                    <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) != "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2141                                                                        <#assign c_rep_installment_num_text = get_value("installment", c_ofertas_title, c_ofertas_values) + "X"> 
2142                                                                        <#assign c_rep_installment_value_text = "<em>R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2143                                                                        <#assign c_rep_price_text = "<em>R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
2144                                                                    </#if> 
2145                                                                    <#assign c_val = [c_firstname] + [c_Client_Birthday + "/" + c_Client_Birthmonth] + [c_rep_price_text] + [c_rep_installment_num_text] + [c_rep_installment_value_text]> 
2146 
2147                                                                    <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true"> 
2148                                                                        <span class="from" tabindex="100">                                                               <#-------- Replace TAGs Start-----> 
2149                                                                            <#assign c_rep_string = get_value("installmenttext", c_ofertas_title, c_ofertas_values)> 
2150                                                                            <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
2151                                                                            <#assign c_rep_string = c_rep_string?replace("R$", "")> 
2152                                                                            <#list 0..count_replace as count>        
2153                                                                                    <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
2154                                                                            </#list> 
2155                                                                            <#assign c_rep_string = c_rep_string?replace(c_rep_installment_num_text + "x", c_rep_installment_num_text)> 
2156                                                                            <#-------- Replace TAGs End----->  
2157                                                                            ${c_rep_string} 
2158                                                                        </span> 
2159 
2160                                                                    </#if>  
2161                                                                    <#if get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2162                                                                        <span class="from" tabindex="100"> 
2163                                                                            <#-------- Replace TAGs Start----->  
2164                                                                            <#assign c_rep_string = get_value("pricetext", c_ofertas_title, c_ofertas_values)> 
2165                                                                            <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
2166                                                                            <#assign c_rep_string = c_rep_string?replace("R$", "")> 
2167                                                                            <#list 0..count_replace as count>        
2168                                                                                    <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
2169                                                                            </#list> 
2170                                                                            <#-------- Replace TAGs End----->   
2171                                                                            ${c_rep_string}  
2172                                                                        </span> 
2173                                                                    </#if> 
2174                                                                </p> 
2175                                                            </a> 
2176                                                            <#assign shown = "X"> 
2177 
2178                                                        </#if> 
2179                                                    </#if> 
2180                                                    <#break> 
2181                                                </#if> 
2182 
2183                                                <#assign c_count = c_count + 1> 
2184                                            </#list> 
2185                                            <#assign counter = counter + 1> 
2186                                        </div> 
2187                                    <!-- Sem Oferta --> 
2188                                    <#else> 
2189                                        <div class="content-card sem-oferta"> 
2190                                            <a > 
2191                                                <p></p> 
2192                                            </a> 
2193                                        </div>                               
2194                                    </#if>  
2195                                </div> 
2196                            </div> 
2197 
2198                            <!-- CARD 4 Coluna Direita  --> 
2199                            <div class="col-sm-12 col-md-12 card hidden-xs"> 
2200                                <div class="row"> 
2201                                    <#assign shown = ""> 
2202                                    <#if c_ofertas_item?has_content && c_ofertas_item?size gt counter> 
2203                                        <div class="content-card npm"> 
2204                                            <#assign c_oferta_position = counter> 
2205 
2206                                            <#if c_ofertas_geolocalizadas?size gt counter_geoloc> 
2207                                                <!-- Get next Geolocalized --> 
2208                                                <#assign c_oferta_position = c_ofertas_geolocalizadas[counter_geoloc]> 
2209                                                <#assign counter_geoloc = counter_geoloc + 1> 
2210                                            <#else> 
2211                                                <!-- Get next Not Geolocalized --> 
2212                                                <#assign c_oferta_position = c_ofertas_not_geolocalizadas[counter_not_geoloc]> 
2213                                                <#assign counter_not_geoloc = counter_not_geoloc + 1> 
2214                                            </#if> 
2215                                            <#assign c_count = 0> 
2216                                            <#list c_ofertas_item as c_ofertas_values> 
2217 
2218                                                <#if c_count = c_oferta_position> 
2219 
2220                                                    <#if c_ofertas_values?has_content> 
2221 
2222                                                        <#if get_value("allpromopage", c_ofertas_title, c_ofertas_values) = "true"> 
2223                                                            <!-- Light box informativo --> 
2224                                                            <span class="ico ico-info hidden-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
2225                                                            <span class="ico ico-info mob visible-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
2226                                                            <div class="title hide"> 
2227                                                                <h3 role="heading" aria-level="3" tabindex="100">${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}</h3> 
2228                                                            </div> 
2229                                                            <div class="content-lt hide"> 
2230                                                                <div class="text" tabindex="100"> 
2231                                                                    <p>${get_value("legalbodytext", c_ofertas_title, c_ofertas_values)}</p> 
2232                                                                </div> 
2233                                                                <div class="button col-xs-12"> 
2234                                                                    <hr> 
2235                                                                    <!-- Parametros GA: inbound e outbound --> 
2236                                                                    <#assign outbound_name = "outbound"> 
2237                                                                    <#assign inbound_name = "inbound"> 
2238                                                                    <#assign dates_in_out = []> 
2239                                                                    <#assign dates_in_out = calculate_dates_inbound_outbound (inbound_name outbound_name get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values))> 
2240                                                                    <a  
2241                                                                    class="more-offer red-btn"  
2242                                                                    tabindex="100"  
2243                                                                    href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values) get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}" 
2244                                                                    data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
2245                                                                    data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
2246                                                                    data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
2247                                                                    data-obDate="${dates_in_out.outbound_name}" 
2248                                                                    data-ibDate="${dates_in_out.inbound_name}"> 
2249 
2250                                                                        <#if get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)??>${get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)}</#if> 
2251                                                                    </a> 
2252                                                                </div> 
2253                                                            </div> 
2254                                                            <!-- Fim Light box informativo --> 
2255 
2256                                                            <a  
2257                                                            role="link"  
2258                                                            title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}"  
2259                                                            href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values)get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}"  
2260                                                            tabindex="100" 
2261                                                            data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
2262                                                            data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
2263                                                            data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
2264                                                            data-obDate="${dates_in_out.outbound_name}" 
2265                                                            data-ibDate="${dates_in_out.inbound_name}"> 
2266 
2267                                                                <p alt="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}" title="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}"> 
2268                                                                    <span class="titles" tabindex="100"> 
2269                                                                        ${get_value("origincityname", c_ofertas_title, c_ofertas_values)}<br/> 
2270                                                                        ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)} 
2271                                                                    </span> 
2272                                                                     
2273                                                                    <#-------- Replace TAGs Start-----> 
2274                                                                    <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2275                                                                        <#assign c_rep_installment_num_text = get_value("installment", c_ofertas_title, c_ofertas_values) + "X"> 
2276                                                                        <#assign c_rep_installment_value_text = "<em>R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2277                                                                        <#assign c_rep_price_text = "<em>R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
2278                                                                    <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) != "true"> 
2279                                                                        <#assign c_rep_installment_num_text = get_value("installment", c_ofertas_title, c_ofertas_values) + "X"> 
2280                                                                        <#assign c_rep_installment_value_text = "<em>R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2281                                                                        <#assign c_rep_price_text = "<em>R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
2282                                                                    <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) != "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2283                                                                        <#assign c_rep_installment_num_text = get_value("installment", c_ofertas_title, c_ofertas_values) + "X"> 
2284                                                                        <#assign c_rep_installment_value_text = "<em>R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2285                                                                        <#assign c_rep_price_text = "<em>R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
2286                                                                    </#if> 
2287                                                                    <#assign c_val = [c_firstname] + [c_Client_Birthday + "/" + c_Client_Birthmonth] + [c_rep_price_text] + [c_rep_installment_num_text] + [c_rep_installment_value_text]> 
2288 
2289                                                                    <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true"> 
2290                                                                        <span class="from" tabindex="100">                                                               <#-------- Replace TAGs Start-----> 
2291                                                                            <#assign c_rep_string = get_value("installmenttext", c_ofertas_title, c_ofertas_values)> 
2292                                                                            <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
2293                                                                            <#assign c_rep_string = c_rep_string?replace("R$", "")> 
2294                                                                            <#list 0..count_replace as count>        
2295                                                                                    <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
2296                                                                            </#list> 
2297                                                                            <#assign c_rep_string = c_rep_string?replace(c_rep_installment_num_text + "x", c_rep_installment_num_text)> 
2298                                                                            <#-------- Replace TAGs End----->  
2299                                                                            ${c_rep_string} 
2300                                                                        </span> 
2301 
2302                                                                    </#if>  
2303                                                                    <#if get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2304                                                                        <span class="from" tabindex="100"> 
2305                                                                            <#-------- Replace TAGs Start----->  
2306                                                                            <#assign c_rep_string = get_value("pricetext", c_ofertas_title, c_ofertas_values)> 
2307                                                                            <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
2308                                                                            <#assign c_rep_string = c_rep_string?replace("R$", "")> 
2309                                                                            <#list 0..count_replace as count>        
2310                                                                                    <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
2311                                                                            </#list> 
2312                                                                            <#-------- Replace TAGs End----->   
2313                                                                            ${c_rep_string}  
2314                                                                        </span> 
2315                                                                    </#if> 
2316                                                                </p> 
2317                                                            </a> 
2318                                                            <#assign shown = "X"> 
2319 
2320                                                        </#if> 
2321                                                    </#if> 
2322                                                    <#break> 
2323                                                </#if> 
2324 
2325                                                <#assign c_count = c_count + 1> 
2326                                            </#list> 
2327                                            <#assign counter = counter + 1> 
2328                                        </div> 
2329                                    <!-- Sem Oferta --> 
2330                                    <#else> 
2331                                        <div class="content-card sem-oferta"> 
2332                                            <a > 
2333                                                <p></p> 
2334                                            </a> 
2335                                        </div>                               
2336                                    </#if>  
2337                                </div> 
2338                            </div> 
2339 
2340                        </div> 
2341                    </div> 
2342 
2343                <!-- Secundários --> 
2344                <!-- Linha 1 --> 
2345                <!-- CARD 1 Linhas Repetitiva  --> 
2346                <#assign iata_image_desk_check = []> 
2347                <#assign num_lines = (c_ofertas_item?size - 6 ) / 3> 
2348                <#assign num_lines = num_lines?ceiling> 
2349                <#if c_debug = "X"> 
2350                    num_    lines = ${num_lines}</br> 
2351                </#if> 
2352                <#if num_lines gt 0> 
2353                    <#list 1..num_lines as it> 
2354                        <#if c_debug = "X"> 
2355                            it = ${it}</br> 
2356                        </#if> 
2357                         
2358                        <div class="row" id="morepromo_${it}" <#if it != 1 && it != 2>style="display: none;"</#if>> 
2359 
2360                            <#if c_ofertas_item?has_content && c_ofertas_item?size gt counter> 
2361                                <!--Card Coluna 3 --> 
2362                                <div class="col-xs-12 col-sm-6 col-md-5 hidden-xs hidden-sm column-3 npm"> 
2363                                    <div class="col-sm-12 offer"> 
2364                                        <#assign c_oferta_position = counter> 
2365                                        <#if c_debug = "X"> 
2366                                            Entrou: ${counter}</br> 
2367                                        </#if> 
2368                                        <#if c_ofertas_geolocalizadas?size gt counter_geoloc> 
2369                                            <!-- Get next Geolocalized --> 
2370                                            <#assign c_oferta_position = c_ofertas_geolocalizadas[counter_geoloc]> 
2371                                            <#assign counter_geoloc = counter_geoloc + 1> 
2372                                            <#if c_debug = "X"> 
2373                                                Geolocalizada: ${counter_geoloc}</br> 
2374                                            </#if> 
2375                                        <#else> 
2376                                            <!-- Get next Not Geolocalized --> 
2377                                            <#assign c_oferta_position = c_ofertas_not_geolocalizadas[counter_not_geoloc]> 
2378                                            <#assign counter_not_geoloc = counter_not_geoloc + 1> 
2379                                            <#if c_debug = "X"> 
2380                                                Not Geolocalizada: ${counter_geoloc}</br> 
2381                                            </#if> 
2382                                        </#if> 
2383                                        <#assign c_count = 0> 
2384 
2385                                        <#list c_ofertas_item as c_ofertas_values> 
2386 
2387                                            <#if c_count = c_oferta_position> 
2388 
2389                                                <#if c_ofertas_values?has_content> 
2390 
2391                                                    <#if get_value("allpromopage", c_ofertas_title, c_ofertas_values) = "true"> 
2392                                                         
2393                                                        <div class="row"> 
2394                                                            <!-- Light box informativo --> 
2395                                                            <span class="ico ico-info hidden-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
2396                                                            <span class="ico ico-info mob visible-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
2397                                                            <div class="title hide" > 
2398                                                                <h3 role="heading" aria-level="3" tabindex="100">${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}</h3> 
2399                                                            </div> 
2400                                                            <div class="content-lt hide"> 
2401                                                                <div class="text" tabindex="100"> 
2402                                                                    <p>${get_value("legalbodytext", c_ofertas_title, c_ofertas_values)}</p> 
2403                                                                </div> 
2404                                                                <div class="button col-xs-12"> 
2405                                                                    <hr> 
2406                                                                    <!-- Parametros GA: inbound e outbound --> 
2407                                                                    <#assign outbound_name = "outbound"> 
2408                                                                    <#assign inbound_name = "inbound"> 
2409                                                                    <#assign dates_in_out = []> 
2410                                                                    <#assign dates_in_out = calculate_dates_inbound_outbound (inbound_name outbound_name get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values))> 
2411                                                                    <a  
2412                                                                    class="more-offer red-btn"  
2413                                                                    tabindex="100"  
2414                                                                    href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values) get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}" 
2415                                                                    data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
2416                                                                    data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
2417                                                                    data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
2418                                                                    data-obDate="${dates_in_out.outbound_name}" 
2419                                                                    data-ibDate="${dates_in_out.inbound_name}"> 
2420 
2421                                                                        <#if get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)??>${get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)}</#if> 
2422                                                                    </a> 
2423                                                                </div> 
2424                                                            </div> 
2425                                                            <!-- Fim Light box informativo --> 
2426 
2427                                                            <#assign image_auto_desk = get_value("checkautomaticbannerdesk", c_ofertas_title, c_ofertas_values)> 
2428                                                            <#assign image_auto_mobile = get_value("checkautomaticbannermobile", c_ofertas_title, c_ofertas_values)> 
2429                                                            <#assign image_desk = get_value("ImagemBannerWide", c_ofertas_title, c_ofertas_values)> 
2430                                                            <#assign image_mobile = get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)> 
2431                                                            <a  
2432                                                                href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values)get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}"  
2433                                                                role="link"  
2434                                                                class="<#if image_auto_desk = "false" && image_desk = "">no-desk-img </#if><#if image_auto_mobile = "false" && image_mobile = "">no-mob-img</#if>" 
2435                                                                title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}"  
2436                                                                tabindex="100" 
2437                                                                data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
2438                                                                data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
2439                                                                data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
2440                                                                data-obDate="${dates_in_out.outbound_name}" 
2441                                                                data-ibDate="${dates_in_out.inbound_name}"> 
2442                                                                
2443                                                                <!-- IMG DESKTOP --> 
2444                                                                <#if image_auto_desk = "true"> 
2445                                                                    <#assign compare_iata = get_value("destinationIATA", c_ofertas_title, c_ofertas_values)> 
2446                                                                    <#assign count_iata = 1> 
2447                                                                    <#if iata_image_desk_check?size gt 0> 
2448                                                                        <#assign count_iata = 1> 
2449                                                                        <#list iata_image_desk_check as var_iata> 
2450                                                                            <#if var_iata = compare_iata> 
2451                                                                                <#assign count_iata = count_iata + 1> 
2452                                                                            </#if> 
2453                                                                        </#list> 
2454                                                                    </#if> 
2455                                                                    <img src="${get_files_from_folder(compare_iata, c_folderpath_desktop, count_iata, c_grouid, c_parentfolderid)}" class="hidden-xs av-img-responsive width iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="-1"> 
2456                                                                    <#assign iata_image_desk_check = iata_image_desk_check + [compare_iata]> 
2457                                                                <#else> 
2458                                                                    <#if image_desk != ""> 
2459                                                                        <img src="${get_value("ImagemBannerWide", c_ofertas_title, c_ofertas_values)}" class="hidden-xs av-img-responsive width iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="-1"> 
2460                                                                    </#if> 
2461                                                                </#if> 
2462                                                                <!-- IMG MOBILE --> 
2463                                                                <#if image_auto_mobile = "true"> 
2464                                                                    <#assign compare_iata = get_value("destinationIATA", c_ofertas_title, c_ofertas_values)> 
2465                                                                    <#assign count_iata = 1> 
2466                                                                    <#if iata_image_mobile_check?size gt 0> 
2467                                                                        <#assign count_iata = 1> 
2468                                                                        <#list iata_image_mobile_check as var_iata> 
2469                                                                            <#if var_iata = compare_iata> 
2470                                                                                <#assign count_iata = count_iata + 1> 
2471                                                                            </#if> 
2472                                                                        </#list> 
2473                                                                    </#if> 
2474                                                                    <img src="${get_files_from_folder(compare_iata, c_folderpath_mobile, count_iata, c_grouid, c_parentfolderid)}" class="visible-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="100"> 
2475                                                                    <#assign iata_image_mobile_check = iata_image_mobile_check + [compare_iata]> 
2476                                                                <#else> 
2477                                                                    <#if image_mobile != ""> 
2478                                                                        <img src="${get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)}" class="visible-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="100"> 
2479                                                                    </#if> 
2480                                                                </#if> 
2481 
2482 
2483                                                                <!-- Textos da Oferta --> 
2484                                                                <div class="infos-offer"> 
2485                                                                    <p alt="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}" title="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}"> 
2486                                                                        <span class="titles" tabindex="100"> 
2487                                                                            ${get_value("origincityname", c_ofertas_title, c_ofertas_values)}<br/> 
2488                                                                            ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)} 
2489                                                                        </span> 
2490                                                                            
2491                                                                        <#-------- Replace TAGs Start-----> 
2492                                                                        <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2493                                                                            <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
2494                                                                            <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2495                                                                            <#assign c_rep_price_text = "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values)> 
2496                                                                        <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) != "true"> 
2497                                                                            <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
2498                                                                            <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2499                                                                            <#assign c_rep_price_text = "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values)> 
2500                                                                        <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) != "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2501                                                                            <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
2502                                                                            <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2503                                                                            <#assign c_rep_price_text = "<em class=\"price\">" + "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
2504                                                                        </#if> 
2505                                                                        <#assign c_val = [c_firstname] + [c_Client_Birthday + "/" + c_Client_Birthmonth] + [c_rep_price_text] + [c_rep_installment_num_text] + [c_rep_installment_value_text]> 
2506 
2507                                                                        <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true"> 
2508                                                                            <span class="from" tabindex="100">                                                               <#-------- Replace TAGs Start-----> 
2509                                                                                <#assign c_rep_string = get_value("installmenttext", c_ofertas_title, c_ofertas_values)> 
2510                                                                                <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
2511                                                                                <#assign c_rep_string = c_rep_string?replace("R$", "")> 
2512                                                                                <#list 0..count_replace as count>        
2513                                                                                        <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
2514                                                                                </#list> 
2515                                                                                <#assign c_rep_string = c_rep_string?replace(c_rep_installment_num_text + "x", c_rep_installment_num_text)> 
2516                                                                                <#-------- Replace TAGs End----->  
2517                                                                                ${c_rep_string} 
2518                                                                            </span> 
2519 
2520                                                                        </#if>  
2521                                                                        <#if get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2522                                                                            <span class="from" tabindex="100"> 
2523                                                                                <#-------- Replace TAGs Start----->  
2524                                                                                <#assign c_rep_string = get_value("pricetext", c_ofertas_title, c_ofertas_values)> 
2525                                                                                <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
2526                                                                                <#assign c_rep_string = c_rep_string?replace("R$", "")> 
2527                                                                                <#list 0..count_replace as count>        
2528                                                                                        <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
2529                                                                                </#list> 
2530                                                                                <#-------- Replace TAGs End----->   
2531                                                                                ${c_rep_string}  
2532                                                                            </span> 
2533                                                                        </#if>  
2534                                                                    </p> 
2535                                                                </div> 
2536                                                            </a> 
2537                                                        </div> 
2538                                                    </#if> 
2539                                                </#if> 
2540                                                <#break> 
2541                                            </#if> 
2542 
2543                                            <#assign c_count = c_count + 1> 
2544                                        </#list> 
2545                                        <#assign counter = counter + 1> 
2546                                    </div> 
2547                                </div> 
2548                            <!-- Sem Oferta --> 
2549                            <#else> 
2550                                <div class="col-sm-12 offer sem-oferta"> 
2551                                    <div class="row"> 
2552                                         
2553                                    </div> 
2554                                </div>                              
2555                            </#if> 
2556 
2557 
2558                            <!-- CARD 2 Linhas Repetitiva  --> 
2559                            <div class="col-xs-12 col-sm-12 col-md-7"> 
2560                                <div class="row"> 
2561 
2562                                    <#if c_ofertas_item?has_content && c_ofertas_item?size gt counter> 
2563                                        <#assign c_oferta_position = counter> 
2564 
2565                                        <#if c_ofertas_geolocalizadas?size gt counter_geoloc> 
2566                                            <!-- Get next Geolocalized --> 
2567                                            <#assign c_oferta_position = c_ofertas_geolocalizadas[counter_geoloc]> 
2568                                            <#assign counter_geoloc = counter_geoloc + 1> 
2569                                        <#else> 
2570                                            <!-- Get next Not Geolocalized --> 
2571                                            <#assign c_oferta_position = c_ofertas_not_geolocalizadas[counter_not_geoloc]> 
2572                                            <#assign counter_not_geoloc = counter_not_geoloc + 1> 
2573                                        </#if> 
2574                                        <#assign c_count = 0> 
2575                                        <#list c_ofertas_item as c_ofertas_values> 
2576 
2577                                            <#if c_count = c_oferta_position> 
2578 
2579                                                <#if c_ofertas_values?has_content> 
2580 
2581                                                    <#if get_value("allpromopage", c_ofertas_title, c_ofertas_values) = "true"> 
2582                                                        <!--Card Coluna 4 --> 
2583                                                        <div class="col-xs-12 col-sm-6 col-md-6 column-4 npm"> 
2584                                                            <div class="col-sm-12 offer"> 
2585                                                                <div class="row"> 
2586                                                                    <!-- Light box informativo --> 
2587                                                                    <span class="ico ico-info hidden-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
2588                                                                    <span class="ico ico-info mob visible-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
2589                                                                    <div class="title hide"> 
2590                                                                        <h3 role="heading" aria-level="3" tabindex="100">${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}</h3> 
2591                                                                    </div> 
2592                                                                    <div class="content-lt hide"> 
2593                                                                        <div class="text" tabindex="100"> 
2594                                                                            <p>${get_value("legalbodytext", c_ofertas_title, c_ofertas_values)}</p> 
2595                                                                        </div> 
2596                                                                        <div class="button col-xs-12"> 
2597                                                                            <hr> 
2598                                                                            <!-- Parametros GA: inbound e outbound --> 
2599                                                                            <#assign outbound_name = "outbound"> 
2600                                                                            <#assign inbound_name = "inbound"> 
2601                                                                            <#assign dates_in_out = []> 
2602                                                                            <#assign dates_in_out = calculate_dates_inbound_outbound (inbound_name outbound_name get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values))> 
2603                                                                            <a  
2604                                                                            class="more-offer red-btn"  
2605                                                                            tabindex="100"  
2606                                                                            href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values) get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}" 
2607                                                                            data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
2608                                                                            data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
2609                                                                            data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
2610                                                                            data-obDate="${dates_in_out.outbound_name}" 
2611                                                                            data-ibDate="${dates_in_out.inbound_name}"> 
2612 
2613                                                                                <#if get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)??>${get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)}</#if> 
2614                                                                            </a> 
2615                                                                        </div> 
2616                                                                    </div> 
2617                                                                    <!-- Fim Light box informativo --> 
2618 
2619                                                                    <#assign image_auto_desk = get_value("checkautomaticbannerdesk", c_ofertas_title, c_ofertas_values)> 
2620                                                                    <#assign image_auto_mobile = get_value("checkautomaticbannermobile", c_ofertas_title, c_ofertas_values)> 
2621                                                                    <#assign image_desk = get_value("ImagemBannerWide", c_ofertas_title, c_ofertas_values)> 
2622                                                                    <#assign image_mobile = get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)> 
2623                                                                    <a  
2624                                                                        href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values)get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}"  
2625                                                                        role="link"  
2626                                                                        class="<#if image_auto_desk = "false" && image_desk = "">no-desk-img </#if><#if image_auto_mobile = "false" && image_mobile = "">no-mob-img</#if>" 
2627                                                                        title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}"  
2628                                                                        tabindex="100" 
2629                                                                        data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
2630                                                                        data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
2631                                                                        data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
2632                                                                        data-obDate="${dates_in_out.outbound_name}" 
2633                                                                        data-ibDate="${dates_in_out.inbound_name}"> 
2634                                                                        
2635                                                                        <!-- IMG DESKTOP --> 
2636                                                                        <#if image_auto_desk = "true"> 
2637                                                                            <#assign compare_iata = get_value("destinationIATA", c_ofertas_title, c_ofertas_values)> 
2638                                                                            <#assign count_iata = 1> 
2639                                                                            <#if iata_image_desk_check?size gt 0> 
2640                                                                                <#assign count_iata = 1> 
2641                                                                                <#list iata_image_desk_check as var_iata> 
2642                                                                                    <#if var_iata = compare_iata> 
2643                                                                                        <#assign count_iata = count_iata + 1> 
2644                                                                                    </#if> 
2645                                                                                </#list> 
2646                                                                            </#if> 
2647                                                                            <img src="${get_files_from_folder(compare_iata, c_folderpath_desktop, count_iata, c_grouid, c_parentfolderid)}" class="av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="-1"> 
2648                                                                            <#assign iata_image_desk_check = iata_image_desk_check + [compare_iata]> 
2649                                                                        <#else> 
2650                                                                            <#if image_desk != ""> 
2651                                                                                <img src="${get_value("ImagemBannerWide", c_ofertas_title, c_ofertas_values)}" class="av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="-1"> 
2652                                                                            </#if> 
2653                                                                        </#if> 
2654                                                                        <!-- IMG MOBILE --> 
2655                                                                        <#if image_auto_mobile = "true"> 
2656                                                                            <#assign compare_iata = get_value("destinationIATA", c_ofertas_title, c_ofertas_values)> 
2657                                                                            <#assign count_iata = 1> 
2658                                                                            <#if iata_image_mobile_check?size gt 0> 
2659                                                                                <#assign count_iata = 1> 
2660                                                                                <#list iata_image_mobile_check as var_iata> 
2661                                                                                    <#if var_iata = compare_iata> 
2662                                                                                        <#assign count_iata = count_iata + 1> 
2663                                                                                    </#if> 
2664                                                                                </#list> 
2665                                                                            </#if> 
2666                                                                            <img src="${get_files_from_folder(compare_iata, c_folderpath_mobile, count_iata, c_grouid, c_parentfolderid)}" class="av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="100"> 
2667                                                                            <#assign iata_image_mobile_check = iata_image_mobile_check + [compare_iata]> 
2668                                                                        <#else> 
2669                                                                            <#if image_mobile != ""> 
2670                                                                                <img src="${get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)}" class="av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="100"> 
2671                                                                            </#if> 
2672                                                                        </#if> 
2673 
2674 
2675                                                                        <!-- Textos da Oferta --> 
2676                                                                        <div class="infos-offer"> 
2677                                                                            <p alt="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}" title="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}"> 
2678                                                                                <span class="titles" tabindex="100"> 
2679                                                                                    ${get_value("origincityname", c_ofertas_title, c_ofertas_values)}<br/> 
2680                                                                                    ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)} 
2681                                                                                </span> 
2682                                                                                 
2683                                                                                <#-------- Replace TAGs Start-----> 
2684                                                                                <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2685                                                                                    <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
2686                                                                                    <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2687                                                                                    <#assign c_rep_price_text = "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values)> 
2688                                                                                <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) != "true"> 
2689                                                                                    <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
2690                                                                                    <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2691                                                                                    <#assign c_rep_price_text = "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values)> 
2692                                                                                <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) != "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2693                                                                                    <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
2694                                                                                    <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2695                                                                                    <#assign c_rep_price_text = "<em class=\"price\">" + "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
2696                                                                                </#if> 
2697                                                                                <#assign c_val = [c_firstname] + [c_Client_Birthday + "/" + c_Client_Birthmonth] + [c_rep_price_text] + [c_rep_installment_num_text] + [c_rep_installment_value_text]> 
2698 
2699                                                                                <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true"> 
2700                                                                                    <span class="from" tabindex="100">                                                               <#-------- Replace TAGs Start-----> 
2701                                                                                        <#assign c_rep_string = get_value("installmenttext", c_ofertas_title, c_ofertas_values)> 
2702                                                                                        <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
2703                                                                                        <#assign c_rep_string = c_rep_string?replace("R$", "")> 
2704                                                                                        <#list 0..count_replace as count>        
2705                                                                                                <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
2706                                                                                        </#list> 
2707                                                                                        <#assign c_rep_string = c_rep_string?replace(c_rep_installment_num_text + "x", c_rep_installment_num_text)> 
2708                                                                                        <#-------- Replace TAGs End----->  
2709                                                                                        ${c_rep_string} 
2710                                                                                    </span> 
2711 
2712                                                                                </#if>  
2713                                                                                <#if get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2714                                                                                    <span class="from" tabindex="100"> 
2715                                                                                        <#-------- Replace TAGs Start----->  
2716                                                                                        <#assign c_rep_string = get_value("pricetext", c_ofertas_title, c_ofertas_values)> 
2717                                                                                        <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
2718                                                                                        <#assign c_rep_string = c_rep_string?replace("R$", "")> 
2719                                                                                        <#list 0..count_replace as count>        
2720                                                                                                <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
2721                                                                                        </#list> 
2722                                                                                        <#-------- Replace TAGs End----->   
2723                                                                                        ${c_rep_string}  
2724                                                                                    </span> 
2725                                                                                </#if>  
2726                                                                            </p> 
2727                                                                        </div> 
2728                                                                    </a> 
2729                                                                </div> 
2730                                                            </div> 
2731                                                        </div> 
2732 
2733                                                    </#if> 
2734                                                </#if> 
2735                                                <#break> 
2736                                            </#if> 
2737 
2738                                            <#assign c_count = c_count + 1> 
2739                                        </#list> 
2740                                        <#assign counter = counter + 1> 
2741                                    <!-- Sem Oferta --> 
2742                                    <#else> 
2743                                        <div class="col-xs-12 col-sm-6 col-md-6 column-4 npm"> 
2744                                            <div class="col-sm-12 offer sem-oferta"> 
2745                                                <div class="row"> 
2746                                                  
2747                                                </div> 
2748                                            </div> 
2749                                        </div>                            
2750                                    </#if> 
2751 
2752 
2753                                    <!-- CARD 3 Linhas Repetitiva  --> 
2754                                    <#if c_ofertas_item?has_content && c_ofertas_item?size gt counter> 
2755                                        <#assign c_oferta_position = counter> 
2756 
2757                                        <#if c_ofertas_geolocalizadas?size gt counter_geoloc> 
2758                                            <!-- Get next Geolocalized --> 
2759                                            <#assign c_oferta_position = c_ofertas_geolocalizadas[counter_geoloc]> 
2760                                            <#assign counter_geoloc = counter_geoloc + 1> 
2761                                        <#else> 
2762                                            <!-- Get next Not Geolocalized --> 
2763                                            <#assign c_oferta_position = c_ofertas_not_geolocalizadas[counter_not_geoloc]> 
2764                                            <#assign counter_not_geoloc = counter_not_geoloc + 1> 
2765                                        </#if> 
2766                                        <#assign c_count = 0> 
2767                                        <#list c_ofertas_item as c_ofertas_values> 
2768 
2769                                            <#if c_count = c_oferta_position> 
2770 
2771                                                <#if c_ofertas_values?has_content> 
2772 
2773                                                    <#if get_value("allpromopage", c_ofertas_title, c_ofertas_values) = "true"> 
2774                                                        <!--Card Coluna 5 --> 
2775                                                        <div class="col-xs-12 col-sm-6 col-md-6 column-5 npm"> 
2776                                                            <div class="col-sm-12 offer"> 
2777                                                                <div class="row"> 
2778                                                                    <!-- Light box informativo --> 
2779                                                                    <span class="ico ico-info hidden-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
2780                                                                    <span class="ico ico-info mob visible-xs" tabindex="100" alt="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}" title="${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}"></span> 
2781                                                                    <div class="title hide"> 
2782                                                                        <h3 role="heading" aria-level="3" tabindex="0">${get_value("legaltitletext", c_ofertas_title, c_ofertas_values)}</h3> 
2783                                                                    </div> 
2784                                                                    <div class="content-lt hide"> 
2785                                                                        <div class="text" tabindex="100"> 
2786                                                                            <p>${get_value("legalbodytext", c_ofertas_title, c_ofertas_values)}</p> 
2787                                                                        </div> 
2788                                                                        <div class="button col-xs-12"> 
2789                                                                            <hr> 
2790                                                                            <!-- Parametros GA: inbound e outbound --> 
2791                                                                            <#assign outbound_name = "outbound"> 
2792                                                                            <#assign inbound_name = "inbound"> 
2793                                                                            <#assign dates_in_out = []> 
2794                                                                            <#assign dates_in_out = calculate_dates_inbound_outbound (inbound_name outbound_name get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values))> 
2795                                                                            <a  
2796                                                                            class="more-offer red-btn"  
2797                                                                            tabindex="100"  
2798                                                                            href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values) get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}" 
2799                                                                            data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
2800                                                                            data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
2801                                                                            data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
2802                                                                            data-obDate="${dates_in_out.outbound_name}" 
2803                                                                            data-ibDate="${dates_in_out.inbound_name}"> 
2804 
2805                                                                                <#if get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)??>${get_value("buttonlabeltext", c_ofertas_title, c_ofertas_values)}</#if> 
2806                                                                            </a> 
2807                                                                        </div> 
2808                                                                    </div> 
2809                                                                    <!-- Fim Light box informativo --> 
2810 
2811 
2812                                                                    <#assign image_auto_desk = get_value("checkautomaticbannerdesk", c_ofertas_title, c_ofertas_values)> 
2813                                                                    <#assign image_auto_mobile = get_value("checkautomaticbannermobile", c_ofertas_title, c_ofertas_values)> 
2814                                                                    <#assign image_desk = get_value("ImagemBannerWide", c_ofertas_title, c_ofertas_values)> 
2815                                                                    <#assign image_mobile = get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)> 
2816                                                                    <a  
2817                                                                        href="${get_afiliados_url(get_value("originIATA", c_ofertas_title, c_ofertas_values) get_value("destinationIATA", c_ofertas_title, c_ofertas_values) get_value("dateboardingfrom", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("dateboardingto", c_ofertas_title, c_ofertas_values)?replace("-","") get_value("cabine", c_ofertas_title, c_ofertas_values) get_value("felxdates", c_ofertas_title, c_ofertas_values) get_value("Adtpax", c_ofertas_title, c_ofertas_values) get_value("Chdpax", c_ofertas_title, c_ofertas_values) get_value("Infpax", c_ofertas_title, c_ofertas_values) get_value("redemption", c_ofertas_title, c_ofertas_values) get_value("Selecionar5r0p", c_ofertas_title, c_ofertas_values) get_value("minimumstay", c_ofertas_title, c_ofertas_values) get_value("totalstay", c_ofertas_title, c_ofertas_values)get_value("timewindowout", c_ofertas_title, c_ofertas_values) get_value("timewindowin", c_ofertas_title, c_ofertas_values))}"  
2818                                                                        role="link"  
2819                                                                        class="<#if image_auto_desk = "false" && image_desk = "">no-desk-img </#if><#if image_auto_mobile = "false" && image_mobile = "">no-mob-img</#if>" 
2820                                                                        title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}"  
2821                                                                        tabindex="100" 
2822                                                                        data-ofertaTipo=<#if get_value("originIATA", c_ofertas_title, c_ofertas_values) = c_geolocation_iata>geolocalizada<#else>prioritaria</#if> 
2823                                                                        data-origem="${get_value("originIATA", c_ofertas_title, c_ofertas_values)}" 
2824                                                                        data-destino="${get_value("destinationIATA", c_ofertas_title, c_ofertas_values)}" 
2825                                                                        data-obDate="${dates_in_out.outbound_name}" 
2826                                                                        data-ibDate="${dates_in_out.inbound_name}"> 
2827                                                                        
2828                                                                        <!-- IMG DESKTOP --> 
2829                                                                        <#if image_auto_desk = "true"> 
2830                                                                            <#assign compare_iata = get_value("destinationIATA", c_ofertas_title, c_ofertas_values)> 
2831                                                                            <#assign count_iata = 1> 
2832                                                                            <#if iata_image_desk_check?size gt 0> 
2833                                                                                <#assign count_iata = 1> 
2834                                                                                <#list iata_image_desk_check as var_iata> 
2835                                                                                    <#if var_iata = compare_iata> 
2836                                                                                        <#assign count_iata = count_iata + 1> 
2837                                                                                    </#if> 
2838                                                                                </#list> 
2839                                                                            </#if> 
2840                                                                            <img src="${get_files_from_folder(compare_iata, c_folderpath_desktop, count_iata, c_grouid, c_parentfolderid)}" class="hidden-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="-1"> 
2841                                                                            <#assign iata_image_desk_check = iata_image_desk_check + [compare_iata]> 
2842                                                                        <#else> 
2843                                                                            <#if image_desk != ""> 
2844                                                                                <img src="${get_value("ImagemBannerWide", c_ofertas_title, c_ofertas_values)}" class="hidden-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="-1"> 
2845                                                                            </#if> 
2846                                                                        </#if> 
2847                                                                        <!-- IMG MOBILE --> 
2848                                                                        <#if image_auto_mobile = "true"> 
2849                                                                            <#assign compare_iata = get_value("destinationIATA", c_ofertas_title, c_ofertas_values)> 
2850                                                                            <#assign count_iata = 1> 
2851                                                                            <#if iata_image_mobile_check?size gt 0> 
2852                                                                                <#assign count_iata = 1> 
2853                                                                                <#list iata_image_mobile_check as var_iata> 
2854                                                                                    <#if var_iata = compare_iata> 
2855                                                                                        <#assign count_iata = count_iata + 1> 
2856                                                                                    </#if> 
2857                                                                                </#list> 
2858                                                                            </#if> 
2859                                                                            <img src="${get_files_from_folder(compare_iata, c_folderpath_mobile, count_iata, c_grouid, c_parentfolderid)}" class="visible-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="100"> 
2860                                                                            <#assign iata_image_mobile_check = iata_image_mobile_check + [compare_iata]> 
2861                                                                        <#else> 
2862                                                                            <#if image_mobile != ""> 
2863                                                                                <img src="${get_value("ImagemBannerMobile", c_ofertas_title, c_ofertas_values)}" class="visible-xs av-img-responsive iac" alt="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" title="${get_value("imagealt", c_ofertas_title, c_ofertas_values)}" tabindex="100"> 
2864                                                                            </#if> 
2865                                                                        </#if> 
2866 
2867 
2868                                                                        <!-- Textos da Oferta --> 
2869                                                                        <div class="infos-offer"> 
2870                                                                            <p alt="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}" title="${get_value("origincityname", c_ofertas_title, c_ofertas_values)} - ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)}"> 
2871                                                                                <span class="titles" tabindex="100"> 
2872                                                                                    ${get_value("origincityname", c_ofertas_title, c_ofertas_values)}<br/> 
2873                                                                                    ${get_value("destinationcityname", c_ofertas_title, c_ofertas_values)} 
2874                                                                                </span> 
2875                                                                                  
2876                                                                                <#-------- Replace TAGs Start-----> 
2877                                                                                <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2878                                                                                    <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
2879                                                                                    <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2880                                                                                    <#assign c_rep_price_text = "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values)> 
2881                                                                                <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) != "true"> 
2882                                                                                    <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
2883                                                                                    <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2884                                                                                    <#assign c_rep_price_text = "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values)> 
2885                                                                                <#elseif get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) != "true" && get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2886                                                                                    <#assign c_rep_installment_num_text = "<strong class=\"price\">" + get_value("installment", c_ofertas_title, c_ofertas_values) + "x" + "</strong>"> 
2887                                                                                    <#assign c_rep_installment_value_text = "<em class=\"price\">" + "R$ " + get_value("installmentvalue", c_ofertas_title, c_ofertas_values) + "</em>"> 
2888                                                                                    <#assign c_rep_price_text = "<em class=\"price\">" + "R$ " + get_value("manualprice", c_ofertas_title, c_ofertas_values) + "</em>"> 
2889                                                                                </#if> 
2890                                                                                <#assign c_val = [c_firstname] + [c_Client_Birthday + "/" + c_Client_Birthmonth] + [c_rep_price_text] + [c_rep_installment_num_text] + [c_rep_installment_value_text]> 
2891 
2892                                                                                <#if get_value("showinstallmenttext", c_ofertas_title, c_ofertas_values) = "true"> 
2893                                                                                    <span class="from" tabindex="100">                                                               <#-------- Replace TAGs Start-----> 
2894                                                                                        <#assign c_rep_string = get_value("installmenttext", c_ofertas_title, c_ofertas_values)> 
2895                                                                                        <#assign count_replace =  c_replacement_tag_id?size?number - 1>  
2896                                                                                        <#assign c_rep_string = c_rep_string?replace("R$", "")> 
2897                                                                                        <#list 0..count_replace as count>        
2898                                                                                                <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
2899                                                                                        </#list> 
2900                                                                                        <#assign c_rep_string = c_rep_string?replace(c_rep_installment_num_text + "x", c_rep_installment_num_text)> 
2901                                                                                        <#-------- Replace TAGs End----->  
2902                                                                                        ${c_rep_string} 
2903                                                                                    </span> 
2904 
2905                                                                                </#if>  
2906                                                                                <#if get_value("showpricetext", c_ofertas_title, c_ofertas_values) = "true"> 
2907                                                                                    <span class="from" tabindex="100"> 
2908                                                                                        <#-------- Replace TAGs Start----->  
2909                                                                                        <#assign c_rep_string = get_value("pricetext", c_ofertas_title, c_ofertas_values)> 
2910                                                                                        <#assign count_replace =  c_replacement_tag_id?size?number - 1> 
2911                                                                                        <#assign c_rep_string = c_rep_string?replace("R$", "")>  
2912                                                                                        <#list 0..count_replace as count>        
2913                                                                                                <#assign c_rep_string = c_rep_string?replace(c_replacement_tag_id[count], c_val[count])> 
2914                                                                                        </#list> 
2915                                                                                        <#-------- Replace TAGs End----->   
2916                                                                                        ${c_rep_string}  
2917                                                                                    </span> 
2918                                                                                </#if>  
2919                                                                            </p> 
2920                                                                        </div> 
2921                                                                    </a> 
2922                                                                </div> 
2923                                                            </div> 
2924                                                        </div> 
2925 
2926                                                    </#if> 
2927                                                </#if> 
2928                                                <#break> 
2929                                            </#if> 
2930 
2931                                            <#assign c_count = c_count + 1> 
2932                                        </#list> 
2933                                        <#assign counter = counter + 1> 
2934                                    <!-- Sem Oferta --> 
2935                                    <#else> 
2936                                        <div class="col-xs-12 col-sm-6 col-md-6 column-5 npm"> 
2937                                            <div class="col-sm-12 offer sem-oferta"> 
2938                                                <div class="row"> 
2939                                                     
2940                                                </div> 
2941                                            </div> 
2942                                        </div>                           
2943                                    </#if> 
2944 
2945 
2946                                </div> 
2947                            </div> 
2948 
2949                        </div> 
2950                    </#list> 
2951 
2952                </#if> 
2953                </div> 
2954            </div> 
2955 
2956            <div class="col-xs-12 col-lg-10 col-lg-offset-1"> 
2957                <!-- Ver mais ofertas --> 
2958                <div class="row"> 
2959                    <div class="col-xs-12 col-sm-4 col-md-3 col-lg-3 pull-right"> 
2960                        <div class="row"> 
2961                            <div class="btn-more" style="display:none"> 
2962                                <a class="more-offer red-btn" role="button" href="javascript:;" tabindex="100"><#if f_buttonlable??>${f_buttonlable}</#if></a> 
2963                            </div> 
2964                        </div> 
2965                    </div> 
2966                </div> 
2967            </div> 
2968        </div> 
2969    </div> 
2970</div> 
2971 
2972<#if c_debug = "X"> 
2973	<#assign timec = .now?time?long> 
2974	Tempo de Exec: ${timec - timeb} </br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br></br> 
2975</#if>     
2976 
2977<SCRIPT> 
2978    var countPromoLine = 0; 
2979    $('div[id^="morepromo_"]').each(function(){ 
2980        countPromoLine++; 
2981 
2982        if(countPromoLine == 3) 
2983            $('.btn-more').removeAttr('style'); 
2984    }); 
2985 
2986    var po={ 
2987        init:function(Y){ 
2988            po.load_more(Y); 
2989            po.modal(Y);}, 
2990 
2991        load_more:function(Y){ 
2992            Y.on('click',clickHandler,'.more-offer'); 
2993 
2994            function clickHandler(e){ 
2995 
2996                if ($("#morepromo_3").css('display') == 'none') { 
2997                    valor = 3; 
2998
2999 
3000                m_promo = "#morepromo_" + valor; 
3001 
3002                $(m_promo).show(); 
3003 
3004                valor = valor + 1; 
3005 
3006                $('#av-container .box-cards-d ' + m_promo +' .offer img').each(function(){ 
3007                    var src = $(this).attr('src'); 
3008 
3009                    $(this).parent().css({ 
3010                        'width': '100%', 
3011                        'height': '100%', 
3012                        'display': 'block', 
3013                        'background': 'url('+src+') no-repeat', 
3014                        'background-size': 'cover' 
3015                    }); 
3016 
3017                    $(this).hide(); 
3018                }); 
3019 
3020                if(!$("#morepromo_" + valor).length){ 
3021                    $('.btn-more').hide(); 
3022
3023 
3024
3025        }, 
3026        modal:function(Y){ 
3027 
3028
3029    }; 
3030 
3031    (function(){YUI().use('aui-modal','aui-scrollspy','aui-selector','aui-node-base',function(Y){po.init(Y);});})(); 
3032 
3033    var form = document.getElementById("filter"); 
3034    document.getElementById("submitfilter").addEventListener("click", function () { 
3035        form.submit(); 
3036    }); 
3037 
3038 
3039    $(document).ready(function(){ 
3040 
3041        /*/ ordena origem e destino */ 
3042        $.fn.sortList = function() { 
3043            var mylist = $(this); 
3044            var listitems = $('li', mylist).get(); 
3045            listitems.sort(function(a, b) { 
3046                var compA = $(a).text().toUpperCase(); 
3047                var compB = $(b).text().toUpperCase(); 
3048                return (compA < compB) ? -1 : 1; 
3049            }); 
3050            $.each(listitems, function(i, itm) { 
3051                mylist.append(itm); 
3052            }); 
3053
3054 
3055        var lis = $("#destino").siblings("div").children(); 
3056        $(lis).sortList(); 
3057        lis = $("#origem").siblings("div").children(); 
3058        $(lis).sortList(); 
3059 
3060        var arr_origem  = [<#list array_origem as curr_origem>"${curr_origem}",</#list>]; 
3061        var arr_destino = [<#list array_destino as curr_destino>"${curr_destino}",</#list>]; 
3062 
3063        console.log("origem"); 
3064        console.log(arr_origem); 
3065        console.log("destino"); 
3066        console.log(arr_destino); 
3067 
3068/*// dada uma origem (ex: usuário clicou em Guarulhos - GRU) 
3069    //verifica se tem rota com destino dado/*/ 
3070        function has_destino(origem_iata, destino_iata, arr_ori, arr_dest){ 
3071            for (var i = 0; i < arr_ori.length; i++){ 
3072                if (arr_ori[i] == origem_iata && 
3073                        arr_dest[i] == destino_iata){ 
3074                    return true; 
3075
3076
3077            return false; 
3078
3079 
3080 
3081/* dada uma origem (ex: usuário clicou em Guarulhos - GRU), 
3082    verifica se tem rota com origem dada*/ 
3083        function has_origem(destino_iata, origem_iata, arr_ori, arr_dest){ 
3084            for (var i = 0; i < arr_ori.length; i++){ 
3085                if (arr_dest[i] == destino_iata && 
3086                        arr_ori[i] == origem_iata){ 
3087                    return true; 
3088
3089
3090            return false; 
3091
3092 
3093/*filtra destinos quando origem é selecionada*/ 
3094        $("#origem").siblings("div").children().on("click", "li a", function() { 
3095            iata_destino_selecionado = $(this).attr("data-value"); 
3096            console.log("vrau"); 
3097            $("#destino").siblings("div").children().children().children().each(function(){ 
3098                iata_orig = $(this).attr("data-value"); 
3099                if (!has_destino(iata_destino_selecionado, iata_orig, arr_origem, arr_destino)) { 
3100                    $(this).hide(); 
3101
3102                else { 
3103                    $(this).removeAttr("style"); 
3104
3105            }); 
3106        }); 
3107 
3108 
3109/*filtra origem quando destino é selecionada*/ 
3110        $("#destino").siblings("div").children().on("click", "li a", function() { 
3111            iata_destino_selecionado = $(this).attr("data-value"); 
3112            $("#origem").siblings("div").children().children().children().each(function(){ 
3113                iata_orig = $(this).attr("data-value"); 
3114                if (!has_origem(iata_destino_selecionado, iata_orig, arr_origem, arr_destino)) { 
3115                    $(this).hide(); 
3116
3117                else { 
3118                    $(this).removeAttr("style"); 
3119
3120            }); 
3121        }); 
3122    }); 
3123</SCRIPT> 
Nó: haceprdas7:8080