admin-content.php
4 years ago
folder-deactivate-form.php
4 years ago
folder-popup.php
4 years ago
general-settings.php
4 years ago
help.php
5 years ago
media-cleaning.php
4 years ago
media-replace.php
5 years ago
recommended-plugins.php
5 years ago
update.php
4 years ago
upgrade-table.php
4 years ago
upgrade-to-pro.php
5 years ago
update.php
278 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Email Signup Form |
| 4 | * |
| 5 | * @author : Premio <contact@premio.io> |
| 6 | * @license : GPL2 |
| 7 | * */ |
| 8 | |
| 9 | if (defined('ABSPATH') === false) { |
| 10 | exit; |
| 11 | } |
| 12 | ?> |
| 13 | <style> |
| 14 | body { |
| 15 | background: #ffffff !important; |
| 16 | } |
| 17 | </style> |
| 18 | <div class="starts-testimonials-updates-form"> |
| 19 | <div class="updates-form-form-left"> |
| 20 | <div class="updates-form-form-left-text">premio</div> |
| 21 | <img src="<?php echo WCP_FOLDER_URL ?>assets/images/wcupdate_email.svg" style="width: 230px;margin: 60px 0px 20px 0px;" /> |
| 22 | <p><?php esc_html_e('Grow your WordPress or Shopify websites with our plugins', 'stars-testimonials'); ?></p> |
| 23 | </div> |
| 24 | <div class="updates-form-form-right"> |
| 25 | <div class="update-title"><?php esc_html_e('Be the first to know product updates, tips & discounts', 'stars-testimonials'); ?></div> |
| 26 | <p><?php esc_html_e('Be among the first to know about our latest features & what we’re working on. Plus insider offer & flash sales', 'stars-testimonials'); ?></p> |
| 27 | <div class="updates-form"> |
| 28 | <div class="update-form-input"> |
| 29 | <div class="mail-icon"> |
| 30 | <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 31 | <mask id="mask0" mask-type="alpha" maskUnits="userSpaceOnUse" x="2" y="4" width="20" height="16"> |
| 32 | <path fill-rule="evenodd" clip-rule="evenodd" d="M22 6C22 4.9 21.1 4 20 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6ZM20 6L12 11L4 6H20ZM12 13L4 8V18H20V8L12 13Z" fill="white"/> |
| 33 | </mask> |
| 34 | <g mask="url(#mask0)"> |
| 35 | <rect width="24" height="24" fill="#94A3B8"/> |
| 36 | </g> |
| 37 | </svg> |
| 38 | </div> |
| 39 | <input id="folder_update_status" autocomplete="off" value="<?php echo get_option('admin_email') ?>" placeholder="Email address"> |
| 40 | <button href="javascript:;" class="button button-primary form-submit-btn yes befirst-btn"><?php esc_html_e('Sign Up', 'stars-testimonials'); ?></button> |
| 41 | </div> |
| 42 | <!--div class="update-form-skip-button"> |
| 43 | <button href="javascript:;" class="button button-secondary form-cancel-btn no">Skip</button> |
| 44 | </div--> |
| 45 | </div> |
| 46 | <div class="update-notice-latter"> |
| 47 | <span><a href="javascript:;" class="form-cancel-btn no"><?php esc_html_e('No, I will do it later', 'stars-testimonials'); ?></a></span> |
| 48 | </div> |
| 49 | <div class="update-notice"> |
| 50 | <?php esc_html_e('You can remove yourself from the list whenever you want, no strings attached', 'stars-testimonials'); ?> |
| 51 | </div> |
| 52 | </div> |
| 53 | </div> |
| 54 | <div id="mystickyelement-update-email-overlay" class="stickyelement-overlay" style="display:block;" data-id="0" data-from="widget-status"></div> |
| 55 | <style> |
| 56 | |
| 57 | @font-face { |
| 58 | font-family: 'Lato'; |
| 59 | src: url('<?php echo WCP_FOLDER_URL."assets/fonts/Lato-Regular.woff";?>'); |
| 60 | } |
| 61 | |
| 62 | #wpwrap{ |
| 63 | background: url('<?php echo WCP_FOLDER_URL;?>assets/images/update-bg.jpg'); |
| 64 | background-position: bottom center; |
| 65 | background-size: cover; |
| 66 | } |
| 67 | |
| 68 | .starts-testimonials-updates-form { |
| 69 | width: 768px; |
| 70 | padding: 0px 30px 0px 0px; |
| 71 | box-shadow: 0px 20px 25px rgb(0 0 0 / 10%), 0px 10px 10px rgb(0 0 0 / 4%); |
| 72 | display: flex; |
| 73 | margin: 100px auto 0; |
| 74 | font-family: Lato, sans-serif; |
| 75 | border-radius: 18.42px 0px 0px 18.419px; |
| 76 | background:#fff; |
| 77 | } |
| 78 | .update-title { |
| 79 | font-style: normal; |
| 80 | font-weight: 700; |
| 81 | font-size: 30px; |
| 82 | align-items: center; |
| 83 | color: #334155; |
| 84 | position: relative; |
| 85 | line-height: 36px; |
| 86 | font-family:Lato; |
| 87 | } |
| 88 | |
| 89 | .update-title:after{ |
| 90 | content: ''; |
| 91 | background: #605DEC; |
| 92 | width: 19%; |
| 93 | height: 2px; |
| 94 | position: absolute; |
| 95 | bottom: -16px; |
| 96 | left: 0; |
| 97 | } |
| 98 | |
| 99 | .updates-form-form-left { |
| 100 | padding: 25px 0px 50px 0px; |
| 101 | background: linear-gradient(180deg, #3C139A 25.79%, #2A0D76 72.72%); |
| 102 | border-radius: 14.42px 0px 0px 14.419px; |
| 103 | text-align:center; |
| 104 | width: 70%; |
| 105 | } |
| 106 | |
| 107 | .updates-form-form-left p{ |
| 108 | font-size: 16px; |
| 109 | line-height: 1.5; |
| 110 | margin: 0; |
| 111 | color: #fff; |
| 112 | padding: 0px 36px; |
| 113 | font-family:Lato; |
| 114 | } |
| 115 | |
| 116 | .updates-form-form-left span{ |
| 117 | color: #fff; |
| 118 | margin-left: 0px; |
| 119 | margin-top: 0px; |
| 120 | position: absolute; |
| 121 | font-size: 20px; |
| 122 | line-height: 0.5; |
| 123 | font-family:Lato; |
| 124 | } |
| 125 | |
| 126 | .updates-form-form-left-text{ |
| 127 | color: #fff; |
| 128 | font-size: 20px; |
| 129 | font-weight: 600; |
| 130 | text-align: left; |
| 131 | padding-left: 30px; |
| 132 | font-family:Lato; |
| 133 | } |
| 134 | .updates-form-form-right{ |
| 135 | margin-left: 16px; |
| 136 | padding: 70px 47px 70px 45px; |
| 137 | } |
| 138 | .updates-form-form-right p { |
| 139 | font-size: 16px; |
| 140 | font-style: normal; |
| 141 | font-weight: normal; |
| 142 | line-height: 150%; |
| 143 | position: relative; |
| 144 | color: #475569; |
| 145 | margin: 32px 0px 20px 0px; |
| 146 | font-family:Lato; |
| 147 | |
| 148 | } |
| 149 | /*.updates-form-form-right p:after { |
| 150 | content: ""; |
| 151 | border: 1px solid #3C85F7; |
| 152 | position: absolute; |
| 153 | bottom: 5px; |
| 154 | left: 0; |
| 155 | width: 90px; |
| 156 | |
| 157 | }*/ |
| 158 | .updates-form { |
| 159 | /*display: flex;*/ |
| 160 | } |
| 161 | .update-form-input { |
| 162 | position: relative; |
| 163 | } |
| 164 | .update-form-input input { |
| 165 | width: 385px; |
| 166 | background: #F4F4F5; |
| 167 | border: 1px solid #F4F4F5; |
| 168 | box-sizing: border-box; |
| 169 | border-radius: 8px; |
| 170 | height: 42px; |
| 171 | line-height: 40px; |
| 172 | padding: 0 50px 0 40px; |
| 173 | font-size: 13px; |
| 174 | box-sizing: border-box; |
| 175 | color: #334155; |
| 176 | } |
| 177 | .update-form-input .form-submit-btn { |
| 178 | background: #5A00F0; |
| 179 | border-radius: 8px; |
| 180 | border: none; |
| 181 | color: #fff; |
| 182 | font-style: normal; |
| 183 | font-weight: 500; |
| 184 | font-size: 13px; |
| 185 | line-height: 150%; |
| 186 | height: 36px; |
| 187 | padding: 0 10px; |
| 188 | position: absolute; |
| 189 | right: 3px; |
| 190 | top: 3px; |
| 191 | width: 100px; |
| 192 | font-family:Lato; |
| 193 | } |
| 194 | .update-form-input #starts_testimonials_update_email:hover{ |
| 195 | border-bottom: 1px solid #5A00F0; |
| 196 | border-radius: 8px 8px 0px 0px; |
| 197 | } |
| 198 | |
| 199 | .update-form-input #starts_testimonials_update_email:focus-visible{ |
| 200 | border :1px solid #5A00F0 !important; |
| 201 | outline: 1px !important; |
| 202 | border-radius: 8px; |
| 203 | } |
| 204 | |
| 205 | .update-form-input .form-submit-btn:hover{ |
| 206 | background: #5A00F0; |
| 207 | } |
| 208 | |
| 209 | .updates-form .form-cancel-btn.no { |
| 210 | margin: 0 0 0 3px; |
| 211 | background: transparent; |
| 212 | border: none; |
| 213 | color: #64748B; |
| 214 | font-size: 13px; |
| 215 | line-height: 40px; |
| 216 | padding: 0 0 0 5px; |
| 217 | } |
| 218 | |
| 219 | .updates-form .form-cancel-btn.no:hover { |
| 220 | color: #334155; |
| 221 | } |
| 222 | |
| 223 | .mail-icon { |
| 224 | position: absolute; |
| 225 | top: 8px; |
| 226 | left: 10px; |
| 227 | } |
| 228 | |
| 229 | .update-notice { |
| 230 | margin: 50px 22px 0 0px; |
| 231 | font-size: 16px; |
| 232 | line-height: 150%; |
| 233 | color: #28375A; |
| 234 | text-align:center; |
| 235 | font-family:Lato; |
| 236 | padding: 0; |
| 237 | } |
| 238 | |
| 239 | .update-notice-latter{ |
| 240 | margin: 20px 0px; |
| 241 | width: 100%; |
| 242 | text-align: center; |
| 243 | color:#28375A; |
| 244 | } |
| 245 | |
| 246 | .update-notice-latter span a{ |
| 247 | text-decoration: underline; |
| 248 | cursor: pointer; |
| 249 | color:#28375A; |
| 250 | } |
| 251 | </style> |
| 252 | |
| 253 | <script> |
| 254 | jQuery(document).ready(function($) { |
| 255 | jQuery(document).on("click", ".updates-form button, a.form-cancel-btn", function () { |
| 256 | var updateStatus = 0; |
| 257 | if (jQuery(this).hasClass("yes")) { |
| 258 | updateStatus = 1; |
| 259 | } |
| 260 | $(".updates-form button").attr("disabled", true); |
| 261 | $.ajax({ |
| 262 | url: ajaxurl, |
| 263 | data: { |
| 264 | action: "folder_update_status", |
| 265 | status: updateStatus, |
| 266 | nonce: '<?php echo wp_create_nonce("folder_update_status") ?>', |
| 267 | email: jQuery("#folder_update_status").val() |
| 268 | }, |
| 269 | type: 'post', |
| 270 | cache: false, |
| 271 | success: function () { |
| 272 | window.location.reload(); |
| 273 | } |
| 274 | }) |
| 275 | }); |
| 276 | }); |
| 277 | </script> |
| 278 |