This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
forked from UWAA/uwaa-2014
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-golden-opportunity.php
94 lines (60 loc) · 2.48 KB
/
page-golden-opportunity.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
<?php
$UWAA->Memberchecker->getSession();
/*
* Template Name: UWAA-Membership
* Description: A Page Template for membership pages.
*/
get_header();
$memberid = $_GET['mem'];
$memberNumber = 'No Member Number Found';
$safeMemberNumber = filter_var($_GET['mem'], FILTER_SANITIZE_NUMBER_INT);
$memberNumber = $safeMemberNumber;
if ($UWAA->Memberchecker->isLoggedIn == true && $UWAA->Memberchecker->hasActiveMembership == true) {
$memberNumber = $UWAA->Memberchecker->getMemberIDNumber();
}
?>
<div class="uw-hero-image membership"></div>
<div class="container uw-body">
<div class="row">
<div class="col-md-8 uw-content" role='main'>
<!-- <a href="<?php echo home_url('/'); ?>" title="<?php echo esc_attr( get_bloginfo() ) ?>"><h2 class="uw-site-title"><?php bloginfo(); ?></h2></a> -->
<h2 class="uw-site-title">UWAA Membership</h2>
<?php get_template_part('partials/sidebar', 'page-breadcrumbs') ?>
<div class="uw-body-copy">
<?php while ( have_posts() ) : the_post(); ?>
<h1><?php the_title() ?></h1>
<?php
the_content();
endwhile;
?>
<div id="wufoo-z4mx8b61ioft32">
</div>
<script type="text/javascript">var z4mx8b61ioft32;(function(d, t) {
var s = d.createElement(t), options = {
'userName':'uwalum',
'formHash':'z4mx8b61ioft32',
'autoResize':true,
/* Autofill Magic! */
'defaultValues':'field5=<?php echo $memberNumber; ?>',
'height':'400',
'async':true,
'host':'wufoo.com',
'header':'show',
'ssl':true};
s.src = ('https:' == d.location.protocol ? 'https://' : 'http://') + 'www.wufoo.com/scripts/embed/form.js';
s.onload = s.onreadystatechange = function() {
var rs = this.readyState; if (rs) if (rs != 'complete') if (rs != 'loaded') return;
try { z4mx8b61ioft32 = new WufooForm();z4mx8b61ioft32.initialize(options);z4mx8b61ioft32.display(); } catch (e) {}};
var scr = d.getElementsByTagName(t)[0], par = scr.parentNode; par.insertBefore(s, scr);
})(document, 'script');</script>
</div>
</div>
<div class="col-md-4 uw-sidebar">
<?php
echo sprintf( '<nav id="desktop-relative" aria-label="mobile menu that is not visible in the desktop version" class="uwaa-hidden-xs-up">%s</nav>', uw_list_pages() );;
dynamic_sidebar( 'membership_sidebar' );
?>
</div>
</div>
</div>
<?php get_footer(); ?>