-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
82 lines (68 loc) · 2.25 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
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the "off-canvas-wrap" div and all content after.
*
* @package FoundationPress
* @since FoundationPress 1.0.0
*/
//controlled in the widget sections
?>
</section>
<div class="footer-container" data-sticky-footer>
<footer class="footer">
<?php do_action( 'foundationpress_before_footer' ); ?>
<div id="footer-form" class="footer-form">
<div class="row expanded">
<?php dynamic_sidebar( 'form-footer-widgets' ); ?>
</div>
</div>
<div class="footer-upper hide-for-small-only">
<div class="row-16">
<?php dynamic_sidebar( 'upper-footer-widgets' ); ?>
</div>
</div>
<div class="footer-lower">
<div class="row">
<?php dynamic_sidebar( 'lower-footer-widgets' ); ?>
</div>
</div>
<?php do_action( 'foundationpress_after_footer' ); ?>
</footer>
</div>
<?php do_action( 'foundationpress_layout_end' ); ?>
</div><!-- Close off-canvas content -->
</div><!-- Close off-canvas wrapper -->
<?php wp_footer(); ?>
<!-- Begin Keymetric Tracking Code -->
<script type = 'text/javascript' >
var KmHost = (("https:" == document.location.protocol) ? "https://km14221" : "http://km14221");
var kmscr = document.createElement('script');
kmscr.type = 'text/javascript';
kmscr.src = KmHost + ".keymetric.net/KeyMetric.js";
document.body.appendChild(kmscr);
</script>
<!-- End Keymetric Tracking Code -->
<!-- Begin Custom KM Lead Source Tracking -->
<script type="text/javascript">
// add ad source to hidden field
(function ($) {
// wait for Key Metrics code
$( window ).on( "load", function() {
var adSrc = km_GetTrackingURL('adsource');
// Ninja forms is not outputting custom field name. Have to target
// auto-generated form names
// nf-field-214 is the lead_source field on the Footer Contact form
// nf-field-216 is the lead_source field on the Brochure form
// nf-field-218 is the lead_source field on the Insurance form
$('#nf-field-214, #nf-field-216, #nf-field-218').each( function() {
$(this).val(adSrc);
});
});
})(jQuery);
</script>
<!-- End Custom KM Lead Source Tracking -->
<?php do_action( 'foundationpress_before_closing_body' ); ?>
</body>
</html>