PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 108
Lasso Lite – Affiliate Link Manager & Product Displays v108
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 108, at admin/views/modals/enable-support.php

45 lines 1.7 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
11 $settings = Setting::get_settings();
12 $email_support = ! empty( $settings[Enum::EMAIL_SUPPORT] ) ? $settings[Enum::EMAIL_SUPPORT] : get_option( 'admin_email' );
13 $is_subscribe_setting = $settings[Enum::IS_SUBSCRIBE] ?? '';
14 $is_subscribe_setting_checked = 'true' === $is_subscribe_setting || empty( $settings[Enum::IS_SUBSCRIBE] ) ? 'checked' : '';
15 ?>
16 <div class="modal fade" id="enable-support" tabindex="-1" role="dialog">
17 <div class="modal-dialog" role="document">
18 <div class="modal-content shadow p-5 rounded text-center">
19 <form method="post" onsubmit="event.preventDefault()">
20 <div id="enable-support-wrapper">
21 <h2>Enable Lasso Support</h2>
22 <p class="mb-0">We want to help you in any way that we can.</p>
23 <p>What is the best email to reach you at?</p>
24 <div class="form-group">
25 <input type="text" name="email" id="email" required class="form-control" value="<?php echo $email_support; ?>" placeholder="Email">
26 <p class="js-error text-danger mt-1 mb-1"></p>
27 </div>
28 <div class="form-check mb-3">
29 <input id="subscribe" <?php echo $is_subscribe_setting_checked; ?> type="checkbox">
30 <label class="form-check-label" for="subscribe">
31 <small>Subscribe and learn affiliate marketing in just 3 minutes per week</small>
32 <span></span>
33 </label>
34 </div>
35 <div class="text-center">
36 <p><button id="btn-save-support" class="btn">Enable Support</button></p>
37 <div class="clearfix"></div>
38 <div class="clearfix"></div>
39 <small class="mt-2 dismiss">No thanks, I don't want support</small>
40 </div>
41 </div>
42 </form>
43 </div>
44 </div>
45 </div>