| 
									
										
										
										
											2018-03-25 13:20:54 -04:00
										 |  |  | <%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%> | 
					
						
							| 
									
										
										
										
											2018-03-25 13:30:42 -04:00
										 |  |  | <% content_for(:dont_track_ga) {'true'} %> | 
					
						
							|  |  |  | <% content_for(:hide_nav_beacon) {'true'} %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <% content_for(:title) {"Donate to #{@nonprofit.name }"} %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <% content_for :javascripts do %> | 
					
						
							| 
									
										
										
										
											2019-11-27 14:06:30 -06:00
										 |  |  |   <%= javascript_pack_tag 'i18n', 'page__nonprofits__donate' %> | 
					
						
							| 
									
										
										
										
											2018-03-25 13:30:42 -04:00
										 |  |  |   <script> | 
					
						
							|  |  |  |     app.referer_url = "<%= @referer %>" | 
					
						
							|  |  |  |     app.campaign = <%= raw (@campaign || {}).to_json %> | 
					
						
							|  |  |  |     app.currency_symbol = "<%= @nonprofit.currency_symbol %>" | 
					
						
							|  |  |  |     app.utmParams = { | 
					
						
							|  |  |  |       utm_campaign: "<%= params[:utm_campaign] %>", | 
					
						
							|  |  |  |       utm_content: "<%= params[:utm_content] %>", | 
					
						
							|  |  |  |       utm_medium: "<%= params[:utm_medium] %>", | 
					
						
							|  |  |  |       utm_source: "<%= params[:utm_source] %>" | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     app.iframeParams = document.location.search | 
					
						
							|  |  |  |     app.countriesList = <%= raw (@countries_translations).to_json %> | 
					
						
							|  |  |  |     app.show_state_field = <%= Settings.show_state_field %> | 
					
						
							|  |  |  |     I18n.defaultLocale = "<%=  I18n.default_locale %>" | 
					
						
							|  |  |  |     I18n.locale = "<%=  I18n.locale %>" | 
					
						
							|  |  |  |   </script> | 
					
						
							|  |  |  | <% end %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <% content_for :stylesheets do %> | 
					
						
							|  |  |  | 	<%= stylesheet_link_tag 'nonprofits/donate/page' %> | 
					
						
							|  |  |  | <% end %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%= content_for :facebook_tags do %> | 
					
						
							|  |  |  | 	<meta property='og:title' content='I support <%= @nonprofit.name %>!'> | 
					
						
							|  |  |  | 	<meta property='og:description' content='<%= @nonprofit.summary %>'> | 
					
						
							| 
									
										
										
										
											2020-05-15 14:01:59 -05:00
										 |  |  | 	<meta property='og:image' content='<%= @nonprofit.main_image.attached? ? @nonprofit.main_image_by_size(:nonprofit_carousel) : "" %>'> | 
					
						
							| 
									
										
										
										
											2018-03-25 13:30:42 -04:00
										 |  |  | <% end %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%= content_for :twitter_tags do %> | 
					
						
							|  |  |  | 	<meta property="twitter:title" content="I support <%= raw @nonprofit.name %>!"> | 
					
						
							|  |  |  | 	<meta property="twitter:description" content="<%= raw @nonprofit.summary %>"> | 
					
						
							| 
									
										
										
										
											2020-05-15 14:01:59 -05:00
										 |  |  | 	<meta property="twitter:image" content="<%= @nonprofit.main_image.attached? ? @nonprofit.main_image_by_size(:nonprofit_carousel) : "" %>" /> | 
					
						
							| 
									
										
										
										
											2018-03-25 13:30:42 -04:00
										 |  |  | <% end %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <% content_for :body_id do %>donate<% end %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <div class='donate-popup donationWizard'> | 
					
						
							|  |  |  |     <div class='js-donateForm'> </div> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | <%= render 'layouts/javascripts' %> | 
					
						
							|  |  |  | <%= yield :javascripts %> |