blob: d399a675c4ebd6bae8ed7347c3b4f7bd4619ad58 (
plain)
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
|
<?php
$joined_features_waitlist = false;
$joined_waitlists = WMobilePack_Options::get_setting('joined_waitlists');
if ($joined_waitlists != '' && in_array('themes_features', $joined_waitlists))
$joined_features_waitlist = true;
// check if we have a https connection
$is_secure = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443;
?>
<div class="form-box wmp_waitlist_container">
<h2>New Themes & Features</h2>
<div class="spacer-10"></div>
<p>Join the waiting list and you'll be one of the first to get notified when new themes & features are on their way.</p>
<div class="spacer-10"></div>
<?php if ($joined_features_waitlist == false):?>
<form id="wmp_waitlist_form" name="wmp_waitlist_form" method="post">
<input name="wmp_waitlist_emailaddress" id="wmp_waitlist_emailaddress" type="text" placeholder="Your e-mail address" class="small" value="<?php echo get_option( 'admin_email' );?>" />
<div class="spacer-5"></div>
<div class="field-message error" id="error_emailaddress_container"></div>
<div class="spacer-10"></div>
<a class="btn blue smaller" href="javascript:void(0)" id="wmp_waitlist_send_btn">Join waitlist</a>
</form>
<?php endif;?>
<div id="wmp_waitlist_added" class="added" style="display: <?php echo $joined_features_waitlist ? 'block' : 'none'?>;">
<div class="switcher blue">
<div class="msg">ADDED TO WAITLIST</div>
<div class="check"></div>
</div>
<div class="spacer-15"></div>
</div>
</div>
<div class="spacer-15"></div>
<script type="text/javascript">
if (window.WMPJSInterface && window.WMPJSInterface != null){
jQuery(document).ready(function(){
<?php if ($joined_features_waitlist == false):?>
window.WMPJSInterface.add("UI_joinwaitlist",
"WMP_WAITLIST",
{
'DOMDoc': window.document,
'container' : window.document.getElementById('wmp_waitlist_container'),
'submitURL' : '<?php echo $is_secure ? WMP_WAITLIST_PATH_HTTPS : WMP_WAITLIST_PATH;?>',
'listType' : 'themes_features'
},
window
);
<?php endif;?>
});
}
</script>
|