PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 154
Lasso Lite – Affiliate Link Manager & Product Displays v154
158 157 155 156 154 153 152 151 150 149 148 trunk 0.9.9 104 105 106 107 108 109 110 111 112 113 114 115 All 57 releases
simple-urls / admin / views / modals / enable-support.php

enable-support.php in Lasso Lite – Affiliate Link Manager & Product Displays 154, at admin/views/modals/enable-support.php

66 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Enable Support
4 *
5 * @package Enable Support Modal
6 */
7
8 use LassoLite\Classes\Enum;
9 use LassoLite\Classes\Setting;
10 use LassoLite\Classes\License;
11
12 $settings = Setting::get_settings();
13 $email_support = $settings[ Enum::EMAIL_SUPPORT ] ?? '';
14 $is_subscribe_setting = $settings[ Enum::IS_SUBSCRIBE ] ?? '';
15 $is_subscribe_setting_checked = 'true' === $is_subscribe_setting || empty( $settings[ Enum::IS_SUBSCRIBE ] ) ? 'checked' : '';
16 $license_active = License::get_license_status();
17 ?>
18 <div class="modal fade" id="enable-support" tabindex="-1" role="dialog">
19 <div class="modal-dialog modal-lg" role="document">
20 <div class="modal-content shadow p-5 rounded text-center">
21 <?php if ( ! $license_active ) { ?>
22 <div id="enable-support-wrapper">
23 <h2>Get Help from the Lasso Team</h2>
24 <div class="mb-4">
25 <p>Please add your email address so you can receive responses.</p>
26 </div>
27 <div class="form-group mb-3">
28 <input type="text" name="email" id="email" required class="form-control" value="<?php echo esc_attr( $email_support ); ?>" placeholder="Email">
29 <p class="js-error text-danger mt-1 mb-1"></p>
30 </div>
31 <div class="text-center">
32 <p><a href="javascript:void(0)" id="btn-connect-for-free" class="btn">Submit</a></p>
33 <div class="clearfix"></div>
34 <div class="clearfix"></div>
35 <small class="mt-2 dismiss">No thanks.</small>
36 </div>
37 </div>
38 <?php } else { ?>
39 <form method="post" onsubmit="event.preventDefault()">
40 <div id="enable-support-wrapper">
41 <h2>Enable Lasso Support</h2>
42 <p class="mb-0">We want to help you in any way that we can.</p>
43 <p>What is the best email to reach you at?</p>
44 <div class="form-group">
45 <input type="text" name="email" id="email" required class="form-control" value="<?php echo $email_support; ?>" placeholder="Email">
46 <p class="js-error text-danger mt-1 mb-1"></p>
47 </div>
48 <div class="form-check mb-3">
49 <input id="subscribe" <?php echo $is_subscribe_setting_checked; ?> type="checkbox">
50 <label class="form-check-label" for="subscribe">
51 <small>Subscribe and learn affiliate marketing in just 3 minutes per week</small>
52 <span></span>
53 </label>
54 </div>
55 <div class="text-center">
56 <p><button id="btn-connect-for-free" class="btn">Enable Support</button></p>
57 <div class="clearfix"></div>
58 <div class="clearfix"></div>
59 <small class="mt-2 dismiss">No thanks, I don't want support</small>
60 </div>
61 </form>
62 <?php } ?>
63 </div>
64 </div>
65 </div>
66