-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
footer.php
186 lines (161 loc) · 9.54 KB
/
footer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the id=main and id=page divs and all content after.
*
* @package Largo
* @since 0.1
*/
?>
</div> <!-- #main -->
<div class="row-fluid clearfix">
<div id="fe-cta-footer">
<div class="inner">
<div class="widget span6">
<h3><span>Make a Donation</span></h3>
<?php
$id=19314; // "Donate Blurb"
$post = get_post($id);
$content = apply_filters('the_content', $post->post_content);
echo $content;
?>
</div>
<div class="widget span6">
<h3><span>Sign Up for News and Updates</span></h3>
<!-- <form>
<input type="text" placeholder="First Name" />
<input type="text" placeholder="Last Name" />
<input type="text" placeholder="Email" />
<button type="submit">Sign Up</button>
</form> -->
<!--NEON FORM START-->
<form name="pShoppingCartFormBean" method="post" action="https://secure.fresh-energy.org/np/publicaccess/survey.do" onsubmit="return snippet_validateNeonForm();">
<input type=password autocomplete='off' style='display:none'>
<input type=hidden name="skipDuplicateRequestCheck" value="1">
<input type=hidden name="surveyId" value="3" />
<input type=hidden name="currentPage" value="1" />
<input type=hidden name="direction" id="snippet_direction" value="next" />
<div id=snippet_surveyForm class=snippet_tbmain>
<table border=0 width=520 cellpadding=5 cellspacing=0>
<tbody>
<tr id="snippet_person.firstName1">
<td class=rightField>
<label class="visuallyhidden" for="person.firstName">First Name</label>
<input type="text" name="person.firstName" maxlength="100" size="20" value="" id="snippet_person.firstName" class="control_textbox" required placeholder="First Name">
</td>
</tr>
<tr id="snippet_person.lastName1">
<td class=rightField>
<label class="visuallyhidden" for="person.lastName">Last Name</label>
<input type="text" name="person.lastName" maxlength="100" size="20" value="" id="snippet_person.lastName" class="control_textbox" required placeholder="Last Name">
</td>
</tr>
<tr id="snippet_person.email11">
<td class=rightField>
<label class="visuallyhidden" for="person.email1">Email</label>
<input type="text" name="person.email1" maxlength="100" size="20" value="" id="snippet_person.email1" class="control_textbox" required placeholder="Email">
</td>
</tr>
<tr id="snippet_survey.data.73.value1">
<td class=rightField>
<label class="visuallyhidden">ReCAPTCHA</label>
<script src='https://www.google.com/recaptcha/api.js'></script>
<input type="hidden" name="recaptcha_unlimited" value="1">
<input type="hidden" id="snippet_gCaptcha" name="gCaptcha" value="true">
<div class="g-recaptcha" data-sitekey="6Lcsbw8UAAAAAJ6H5uLehos0lMXkHl3qiSGDVfTJ"></div>
</td>
</tr>
<tr id="snippet_null1">
<td colspan=2 align=center>
<input type="submit" name="null" class="control_button snippet_control_button" value="Sign Up" id="snippet_null">
</td>
</tr>
</tbody>
</table>
</div>
<input type=hidden name=orgId value=freshenergy>
</form>
<SCRIPT src="https://secure.fresh-energy.org/np/js/regExpValidate.js" type=text/javascript></SCRIPT>
<script>
function validateNeonStandardEmail(){if(getElement("snippet_person.email1") && getElement("snippet_person.email1").value.trim().length>0){return validateSurveyEmail(getElement("snippet_person.email1").value);}return true;}</script><SCRIPT language=javascript type=text/javascript>function snippet_validateNeonForm() { if(document.getElementById("snippet_direction").value=="previous"){ return true;}if(!validateNeonStandardEmail()){ alert("The Email Address is invalid."); document.getElementById("snippet_person.email1").focus(); return false;}if(getElement("snippet_person.firstName")){ if ( !validateNotEmpty(document.getElementById("snippet_person.firstName").value ) ){ alert("First Name is required."); document.getElementById("snippet_person.firstName").focus(); return false; }}if(getElement("snippet_person.lastName")){ if ( !validateNotEmpty(document.getElementById("snippet_person.lastName").value ) ){ alert("Last Name is required."); document.getElementById("snippet_person.lastName").focus(); return false; }}if(getElement("snippet_person.email1")){ if ( !validateNotEmpty(document.getElementById("snippet_person.email1").value ) ){ alert("Email is required."); document.getElementById("snippet_person.email1").focus(); return false; }} var buttons = document.getElementsByClassName("snippet_control_button"); for(var i=0;i<buttons.length;i++){ buttons.disabled = true; } return true;}</SCRIPT><SCRIPT language=javascript type=text/javascript>function populateValueFromRadio(textBoxId,radioId,hiddenObjId){var radios=document.getElementsByName(radioId);var hiddenObj = document.getElementById(hiddenObjId);var txtboxObj = document.getElementById(textBoxId);for(var i=0;i<radios.length;i++){ if(radios.checked){ hiddenObj.value=radios.value; }}if( txtboxObj != undefined && (hiddenObj.value == null || hiddenObj.value == "") ) { var dAmt = trimAll(removeCurrency(txtboxObj.value)); if (dAmt==""){ txtboxObj.focus(); } else { hiddenObj.value = dAmt; }}}function leavingTextBox(textBoxId,radioId,hiddenObjId){var radios=document.getElementsByName(radioId);var hiddenObj = document.getElementById(hiddenObjId);var txtboxObj = document.getElementById(textBoxId);for(var i=0;i<radios.length;i++){ if(radios.checked){ hiddenObj.value=radios.value; if(txtboxObj != undefined && (radios.value == null || radios.value == "")) { var dAmt = trimAll(removeCurrency(txtboxObj.value)); if (dAmt==""){ alert("Please enter donation amount"); txtboxObj.focus(); return false; } else if (validateNumeric(dAmt)==false) { alert("The donation amount should be a number."); txtboxObj.focus(); return false; } else if (validatePositiveAndZero(dAmt) == false){ alert("The donation amount should be bigger than 0."); return false; } else if(validateNumeric(dAmt)==true){ var numdAmt = dAmt; numdAmt=numdAmt.replace(',',''); while(numdAmt.indexOf(',')!=-1){ numdAmt=numdAmt.replace(',',''); } numdAmt = numdAmt.split('.'); if(numdAmt[0].length>13){ alert('Your donation amount is too large.'); return false; } hiddenObj.value = dAmt; return true; } } return true; }}}function validatePositiveAndZero(val){ if(Number(val) <= 0){ return false; }}function validateAmount(){ var txtboxObj = document.getElementById('snippet_donation.amount'); if(txtboxObj != undefined){ var dAmt = trimAll(removeCurrency(txtboxObj.value)); if (dAmt==""){ alert("Please enter donation amount"); txtboxObj.focus(); return false; } else if (validateNumeric(dAmt)==false) { alert("The donation amount should be a number."); txtboxObj.focus(); return false; } else if (validatePositiveAndZero(dAmt) == false){ alert("The donation amount should be bigger than 0."); return false; } else if (validateNumeric(dAmt)==true){ var numdAmt = dAmt; numdAmt=numdAmt.replace(',',''); while(numdAmt.indexOf(',')!=-1){ numdAmt=numdAmt.replace(',',''); } numdAmt = numdAmt.split('.'); if(numdAmt[0].length>13){ alert('Your donation amount is too large.'); return false; } } } return true;}function associateToggle(val, elem){var elem = document.getElementById(elem);if(elem == null) return;if(val == 1){ elem.style.display="";}else if(val == 0){ elem.style.display="none";}}associateToggle(0, 'snippet_recurringDonation.recurringInterval1');
</SCRIPT>
<!--NEON FORM END-->
</div>
</div>
</div>
</div>
</div><!-- #page -->
<?php
if ( is_active_sidebar( 'before-footer' ) ) {
get_template_part( 'partials/footer', 'before-footer-widget-area' );
}
/**
* Fires before the Largo footer content.
*
* @since 0.4
*/
do_action( 'largo_before_footer' );
?>
<div class="footer-bg clearfix nocontent">
<footer id="site-footer">
<?php
/**
* Fires before the Largo footer widgets appear.
*
* @since 0.4
*/
do_action( 'largo_before_footer_widgets' );
get_template_part( 'partials/footer', 'widget-area' );
/**
* Fires before the Largo footer boilerplate content.
*
* @since 0.4
*/
do_action( 'largo_before_footer_boilerplate' );
get_template_part( 'partials/footer', 'boilerplate' );
/**
* Fires just before the Largo footer content ends.
*
* @since 0.4
*/
do_action( 'largo_before_footer_close' );
?>
</footer>
</div>
<?php
/**
* Fires after the Largo footer content.
*
* @since 0.4
*/
do_action( 'largo_after_footer' );
wp_footer();
?>
<script>
//Allow clicking instead of hover for dropdown menus
jQuery(document).ready( function($){
$('#main-nav.navbar .nav>li').click( function(event){
var $this = $(this);
event.stopPropagation();
$('#main-nav.navbar .nav>li .dropdown-menu').hide();
$this.find('.dropdown-menu').show();
});
// $('#main-nav.navbar .nav>li').mouseout(function(){
// $('#main-nav.navbar .nav>li .dropdown-menu').hide();
// })
$(document).click( function(){
$('#main-nav.navbar .nav>li .dropdown-menu').hide();
});
$('#main-nav.navbar .nav>li').hover( function(event){
var $this = $(this);
event.stopPropagation();
$('#main-nav.navbar .nav>li .dropdown-menu').hide();
$this.find('.dropdown-menu').show();
}, function(){
$('#main-nav.navbar .nav>li .dropdown-menu').hide();
});
});
</script>
</body>
</html>