Se ha producido un error al procesar la plantilla.
Expression countries_text is undefined on line 157, column 84 in 20155#20207#22619.
1<#assign urlName = name.getData()?replace(" ", "-")> 
2<#assign region = .vars['Regions_Sel'].getData()> 
3<#assign regionDis = region?replace("_", "-")> 
4<#if .vars['countries'].getData() != ""> 
5<#assign countryDisplay = .vars['countries'].getData()> 
6<#assign countryDisplay = countryDisplay?lower_case> 
7<#assign countryDisplay = countryDisplay?replace("_", "-")> 
8<#assign countryDisplay = 'country.' + countryDisplay> 
9<#if countryDisplay == "country.north-africa"> 
10<#assign countryDisplay = "north-africa"> 
11</#if> 
12 
13</#if> 
14<#assign regionMainURL = region?replace("_","-")> 
15<#if regionMainURL == "south-africa"> 
16    <#assign regionMainURL = "south-africa-region"> 
17</#if> 
18<#if getterUtil.getBoolean(.vars['Donate_Button'].getData())> 
19	<#assign usaURL = "https://www.simusa.org/get-involved/give/?DSG=project&FundIDP=${.vars['Project_Number'].getData()}&searchme=searchP"> 
20	<#if .vars['Canada_Donate_URL'].getData() != ""> 
21<#assign canadaURL = .vars['Canada_Donate_URL'].getData() > 
22<#else> 
23<#assign canadaURL = "https://www.sim.ca/missionaries/unlisted-missionary"> 
24</#if> 
25<#if .vars['French_Donate_URL'].getData() != ""> 
26<#assign frenchURL = .vars['French_Donate_URL'].getData() > 
27<#else> 
28<#assign frenchURL = "http://www.simorg.fr/je-donne"> 
29</#if> 
30<#if .vars['Australia_Donate_URL'].getData() != "" > 
31<#assign australiaURL = .vars['Australia_Donate_URL'].getData() > 
32<#else> 
33<#assign australiaURL = "http://www.sim.org.au/Donate/Ways-to-Give"> 
34</#if> 
35<#assign ukURL = "https://www.sim.co.uk/give"> 
36<#assign nzURL = "http://sim.org.nz/donate/"> 
37</#if> 
38<style> 
39#donate-modal{ 
40display:none; 
41position:fixed; 
42 
43top: 0; 
44left: 0; 
45right:0; 
46bottom:0; 
47padding:5%; 
48z-index:910; 
49overflow:hidden; 
50background-color: rgb(0,0,0); /* Fallback color */ 
51background-color: rgba(0,0,0,0.2); 
52
53#donate-form { 
54margin: 10px; 
55
56.donate-modal-content{ 
57    background-color: #fefefe; 
58    margin: 15% auto; /* 15% from the top and centered */ 
59    padding: 20px; 
60    -webkit-box-shadow: 0px 0px 25px -6px rgba(0,0,0,0.75); 
61-moz-box-shadow: 0px 0px 25px -6px rgba(0,0,0,0.75); 
62box-shadow: 0px 0px 25px -6px rgba(0,0,0,0.75); 
63    width:50%; 
64    border-radius: 5px; 
65    text-align: center; 
66
67.donate-modal-header{ 
68 
69border-bottom: .5px solid #ddd; 
70width:100%; 
71height: 100%; 
72
73@media (max-width:480px) { 
74.donate-modal-content{ 
75width:90%; 
76
77
78</style> 
79<div id="embedded-welcome-portlet" style="display:none;"> 
80  <runtime-portlet name="82" instance="" queryString=""/> 
81</div> 
82<div class="sim-opportunity-content-container"> 
83	<div class="image-banner-container" 
84		<#if mainImage.getData()?contains("photobucket")> 
85			style="background-image:linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),url(<@image_url url='${mainImage.getData()}' size='b' />)"> 
86		<#else> 
87			style="background-image:linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),url(${mainImage.getData()})"> 
88		</#if> 
89 
90		<div class="container-fluid"> 
91			<div class="banner-text-content-container"> 
92				<#if getterUtil.getBoolean(locationRestricted.getData())> 
93				    
94                        <span class="image-banner-location-text"><a href="/-/${regionMainURL}?Regions_Sel=${region}">${languageUtil.get(locale, region)}</a></span> 
95                     
96					 
97				<#else> 
98					<#if .vars['countries'].getData()?has_content && region == "#urlparam#"> 
99					    <#if .vars['countries'].getData()?contains("-")> 
100                            <#assign count = 0> 
101                            <#assign countSeq = .vars['countries'].getData()?split("-")> 
102                            <#assign lastCount = countSeq?size - 1> 
103                            <#list countSeq as i>  
104                                 
105                                <#assign iLoc = 'country.' + i?replace("_","-")> 
106                                <#if count gt 0> 
107                                 
108                                <#assign countries_text = countries_text + '<a href="/-/' + i + '?countries=' + i + '&Regions_Sel=' + region + '">' + languageUtil.get(locale, iLoc?lower_case)> 
109                                <#if count != lastCount><#assign countries_text = countries_text + ' & '></#if> 
110                                <#if count == lastCount><#assign countries_text = countries_text + ', '></#if> 
111                                <#assign countries_text = countries_text + '</a>' /> 
112                                <#else> 
113                                <#assign countries_text = '<a href="/-/' + i + '?countries=' + i  + '&Regions_Sel=' + region + '">' + languageUtil.get(locale, iLoc)> 
114                                <#if count != lastCount><#assign countries_text = countries_text + ' & '></#if> 
115                                <#assign countries_text = countries_text + '</a>' /> 
116                                </#if> 
117                                 
118                                <#assign count = count + 1> 
119                            </#list> 
120                        <#else> 
121                            <#assign countries_text = '<a href="/-/' + countries.getData() + '?countries=' + countries.getData() + '&Regions_Sel=' + region + '">' + languageUtil.get(locale, countryDisplay) + ',</a>' /> 
122                        </#if> 
123					</#if> 
124 
125					<#if region?has_content && countries.getData()?has_content> 
126					    <#if .vars['countries'].getData()?contains("-")> 
127                            <#assign count = 0> 
128                            <#assign countSeq = .vars['countries'].getData()?split("-")> 
129                            <#assign lastCount = countSeq?size - 1> 
130                            <#list countSeq as i>  
131                                <#assign iLoc = 'country.' + i?replace("_","-")> 
132                                <#if count gt 0> 
133                                <#assign countries_text = countries_text + '<a href="/-/' + i + '?countries=' + i + '">' + languageUtil.get(locale, iLoc?lower_case)> 
134                                <#if count != lastCount><#assign countries_text = countries_text + ' & '></#if> 
135                                <#if count == lastCount><#assign countries_text = countries_text + ', '></#if> 
136                                <#assign countries_text = countries_text + '</a>' /> 
137                                <#else> 
138                                <#assign countries_text = '<a href="/-/' + i + '?countries=' + i + '">' + languageUtil.get(locale, iLoc?lower_case)> 
139                                <#if count != lastCount><#assign countries_text = countries_text + ' & '></#if> 
140                                <#assign countries_text = countries_text + '</a>' /> 
141                                </#if> 
142                                <#assign count = count + 1> 
143                            </#list> 
144                        <#else> 
145                            <#assign countries_text = '<a href="/-/' + countries.getData() + '?countries=' + countries.getData() + '">' + languageUtil.get(locale, countryDisplay) + ',</a>' /> 
146                        </#if> 
147                         
148                             
149                            <#assign countries_text = countries_text + '<a href="/-/' + regionMainURL + '?Regions_Sel=' + region + '&countries=' + region?replace("-","_") + '"> '+ languageUtil.get(locale, regionDis) + '</a>' >  
150                             
151                        </#if> 
152						 
153					</#if> 
154					<#if countries.getData() == "" && region != "#urlparam#"> 
155					    <#assign countries_text = '<a href="/-/' + regionMainURL + '?Regions_Sel=' + region + '&countries=' + region?replace("-","_") + '"> '+ languageUtil.get(locale, regionDis) + '</a>' > 
156					</#if> 
157					<span class="image-banner-location-text">${countries_text}</span> 
158				 
159 
160				<#if name.getData()?has_content> 
161					<span class="image-banner-main-text">${name.getData()}</span> 
162				</#if> 
163 
164				<#if mission.getData()?has_content> 
165					<#assign mission_focus_text = mission.getData() /> 
166 
167					<#if focus.getData()?has_content> 
168						<#assign mission_focus_text = mission.getData() + ': ' + focus.getData() /> 
169					</#if> 
170 
171					<span class="image-banner-sub-text">${mission_focus_text?replace('\\d+', '', 'r')}</span> 
172				</#if> 
173			</div> 
174		</div> 
175	</div> 
176 
177	<div class="sim-opportunity-content"> 
178		<ul class="unstyled nav nav-tabs"> 
179			<li class="tab"><a href="#aboutContent">${languageUtil.get(locale, 'about')}</a></li> 
180 
181			<li class="tab"><a href="#goContent">${languageUtil.get(locale, 'come')}</a></li> 
182 
183			<li class="tab"><a href="#prayContent">${languageUtil.get(locale, 'pray')}</a></li> 
184<#if getterUtil.getBoolean(.vars['Donate_Button'].getData())> 
185            <li class="tab"><a href="#donate" onclick="donate();return false;" style="color:#bd2919">Donate</a></li> 
186		</#if>	 
187		</ul> 
188 
189		 
190			<div class="about-content-container tab-pane container-fluid" id="aboutContent"> 
191				<h3 class="section-header text-center">${name.getData()}</h3> 
192				 
193				 
194                
195      
196				<p class="text-center">${vision.getData()}</p> 
197				 
198			</div> 
199			<#assign opp = 0> 
200<#if opportunity.getSiblings()?has_content> 
201    <#list opportunity.getSiblings() as cur_opportunity> 
202        <#if cur_opportunity.getData() != ""> 
203            <#assign opp = 1> 
204        </#if> 
205    </#list> 
206</#if> 
207<#if opp == 1> 
208<#if opportunity.getSiblings()?has_content> 
209			<div class="go-content-container tab-pane container-fluid" id="goContent"> 
210				<h3 class="section-header">${languageUtil.get(locale, 'come-and-serve')}</h3> 
211 
212				 
213					<div class="opportunities-container"> 
214						<#list opportunity.getSiblings() as cur_opportunity> 
215							<div class="opportunity-container"> 
216								<div class="opportunity"> 
217									<div class="oppotunity-mission">${mission.getData()?replace('\\d+', '', 'r')}</div> 
218 
219									<div class="opportunity-title">${cur_opportunity.getData()}</div> 
220                                <#if getterUtil.getBoolean(locationRestricted.getData())> 
221									<div class="opportunity-location"><a href="/-/${regionMainURL}?regions=${regionurl}">${regions.getData()}</a></div> 
222								<#else> 
223								    <div class="opportunity-location">${countries_text}</div> 
224								</#if> 
225								</div> 
226 
227 
228							</div> 
229						</#list> 
230					</div> 
231				 
232			</div> 
233</#if> 
234</#if> 
235 
236			<div class="pray-content-container tab-pane container-fluid" id="prayContent"> 
237				<h3 class="section-header">${languageUtil.get(locale, 'prayers')}</h3> 
238 
239				<#if prayerRequest.getSiblings()?has_content> 
240					<div class="prayers-container"> 
241						<#assign prayer_index = 1 /> 
242 
243						<#list prayerRequest.getSiblings() as cur_prayerRequest> 
244							<div class="card card-center prayer-request-${prayer_index}"> 
245								<div class="left-content">${prayer_index}</div> 
246 
247								<div class="seperator"></div> 
248 
249								<div class="request-container right-content "> 
250									<p class="request text-left">${cur_prayerRequest.getData()}</p> 
251 
252								</div> 
253							</div> 
254 
255							<#assign prayer_index = prayer_index + 1 /> 
256						</#list> 
257					</div> 
258				</#if> 
259			</div> 
260			<#if getterUtil.getBoolean(.vars['Donate_Button'].getData())> 
261			<div class="pray-content-container tab-pane container-fluid" id="donate"> 
262			<h3 class="section-header">Donate to this Ministry</h3> 
263			<p class="lead">If you would like to financially support this ministry, you can give online by using the donate button below.</p> 
264				<div class="text-center"> 
265	<a href="#" id="big-donate-btn" onclick="donate();return false;" class="btn btn-large btn-danger">Donate</a> 
266	</div> 
267	</div> 
268</#if> 
269 
270			 
271		 
272	</div> 
273</div> 
274<#if getterUtil.getBoolean(.vars['Donate_Button'].getData())> 
275 
276<div id="donate-modal"> 
277<div class="donate-modal-content"> 
278<div class="donate-modal-header"> 
279<h2>Thank you for your support!</h2> 
280<p class="lead">Remember you are givng to: 
281 
282<br>Project # ${.vars['Project_Number'].getData()}</p> 
283 
284 
285<p>Please select which country you would give to, some countries will require the project number listed above.</p> 
286</div> 
287<form id="donate-form" class="form-inline"> 
288 
289<label class="radio"> 
290  <input type="radio" name="countryOptions" id="Australia" value="australia"> 
291  Australia &nbsp; &nbsp; 
292</label> 
293 
294<label class="radio"> 
295  <input type="radio" name="countryOptions" id="Canada" value="canada"> 
296  Canada&nbsp; &nbsp; 
297</label> 
298 
299<label class="radio"> 
300  <input type="radio" name="countryOptions" id="France" value="france"> 
301  France &nbsp;&nbsp;  
302</label> 
303 
304<label class="radio"> 
305  <input type="radio" name="countryOptions" id="NewZealand" value="newzealand"> 
306   New Zealand &nbsp; &nbsp; 
307</label> 
308 
309<label class="radio"> 
310  <input type="radio" name="countryOptions" id="UK" value="uk"> 
311   United Kingdom &nbsp; &nbsp; 
312</label> 
313 
314<label class="radio"> 
315  <input type="radio" name="countryOptions" id="USA" value="USA" checked> 
316  USA&nbsp;  
317</label> 
318<a id="donate-destination" onclick="gotoDonate(); return false;" href="#" class="btn" target="_blank">Donate</a> 
319</form> 
320</div> 
321</div> 
322<script> 
323var donateURL = document.getElementById("donate-destination"); 
324var donateSelect = document.getElementsByName("countryOptions"); 
325function gotoDonate() { 
326    for (var i=0, len=donateSelect.length; i<len; i++) { 
327        if (donateSelect[i].checked) { 
328        if (donateSelect[i].value == "USA") { 
329            window.open('${usaURL}','_blank'); 
330            //close(); 
331
332        if (donateSelect[i].value == "uk") { 
333            window.open('${ukURL}','_blank'); 
334            //close(); 
335
336        if (donateSelect[i].value == "canada") { 
337            window.open('${canadaURL}','_blank'); 
338            //close(); 
339
340        if (donateSelect[i].value == "france") { 
341            window.open('${frenchURL}','_blank'); 
342            //close(); 
343
344        if (donateSelect[i].value == "newzealand") { 
345            window.open('${nzURL}','_blank'); 
346            //close(); 
347
348        if (donateSelect[i].value == "australia") { 
349            window.open('${australiaURL}','_blank'); 
350            //close(); 
351
352
353
354
355function donate() { 
356    document.getElementById("donate-modal").style.display = "block"; 
357}; 
358function close() { 
359    document.getElementById("donate-modal").style.display = "none"; 
360
361window.onclick = function(event) { 
362    if (event.target == document.getElementById("donate-modal")) { 
363        close(); 
364
365
366</script> 
367	 
368</#if>