settings-tabs
1 year ago
admin-content.php
1 year ago
email-signup.php
1 year ago
folder-deactivate-form.php
1 year ago
folder-popup.php
1 year ago
general-settings.php
1 year ago
help.php
1 year ago
media-cleaning.php
1 year ago
media-replace.php
1 year ago
modals.php
1 year ago
recommended-plugins.php
1 year ago
update.php
1 year ago
upgrade-table.php
1 year ago
upgrade-to-pro.php
1 year ago
email-signup.php
553 lines
| 1 | <?php if (!defined('ABSPATH')) { exit; } |
| 2 | $email = (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == "playground.wordpress.net")?"":get_option('admin_email'); |
| 3 | $popup_data = FOLDER_UPDATE_POPUP_CONTENT; // get Data from update class, |
| 4 | |
| 5 | |
| 6 | ?> |
| 7 | <style> |
| 8 | |
| 9 | @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap'); |
| 10 | |
| 11 | @font-face { |
| 12 | font-family: 'Lato'; |
| 13 | src: url('<?php echo esc_url($popup_data['font_url']); ?>'); |
| 14 | } |
| 15 | |
| 16 | #wpwrap { |
| 17 | background-color: #fff; |
| 18 | background-position: bottom center; |
| 19 | background-size: cover; |
| 20 | background-image: url('<?php echo esc_url($popup_data['background_image']);?>'); |
| 21 | position: relative; |
| 22 | } |
| 23 | #wpcontent{ |
| 24 | background-color: transparent !important; |
| 25 | } |
| 26 | #wpbody-content { |
| 27 | padding-bottom: 100px; |
| 28 | } |
| 29 | #wpbody { |
| 30 | height: 100%; |
| 31 | position: unset; |
| 32 | } |
| 33 | .premio-update-popup-wrap { |
| 34 | display: flex; |
| 35 | height: 100%; |
| 36 | width: 100%; |
| 37 | align-items: center; |
| 38 | justify-content: center; |
| 39 | box-sizing: border-box; |
| 40 | } |
| 41 | .premio-update-popup-wrap * { |
| 42 | box-sizing: border-box; |
| 43 | } |
| 44 | |
| 45 | .premio-update-popup-content { |
| 46 | margin-top: 100px; |
| 47 | width: 626px; |
| 48 | box-shadow: 0px 15.511px 46.534px 0px rgba(0, 0, 0, 0.16); |
| 49 | border-radius: 16px; |
| 50 | padding: 36px; |
| 51 | background-color: #FFF; |
| 52 | position: relative; |
| 53 | z-index: 999; |
| 54 | overflow: hidden; |
| 55 | display: flex; |
| 56 | flex-wrap: wrap; |
| 57 | gap: 48px; |
| 58 | margin-left: 20px; |
| 59 | margin-right: 20px; |
| 60 | } |
| 61 | |
| 62 | .premio-update-heading { |
| 63 | color: #092030; |
| 64 | font-family: "Poppins", sans-serif; |
| 65 | font-size: 24px; |
| 66 | font-style: normal; |
| 67 | font-weight: 700; |
| 68 | line-height: normal; |
| 69 | letter-spacing: 0.24px; |
| 70 | margin: 0; |
| 71 | } |
| 72 | |
| 73 | .premio-update-user-trust { |
| 74 | display: flex; |
| 75 | padding: 6px 12px; |
| 76 | align-items: center; |
| 77 | gap: 10px; |
| 78 | border-radius: 100px; |
| 79 | background: #FFEDF6; |
| 80 | width: fit-content; |
| 81 | } |
| 82 | .premio-update-user-trust img { |
| 83 | height: 24px; |
| 84 | } |
| 85 | |
| 86 | .premio-update-user-trust span { |
| 87 | color: #092030; |
| 88 | font-family: Lato, sans-serif; |
| 89 | font-size: 14px; |
| 90 | font-style: normal; |
| 91 | font-weight: 700; |
| 92 | line-height: normal; |
| 93 | } |
| 94 | |
| 95 | .premio-update-popup-content h1 { |
| 96 | color: #092030; |
| 97 | font-family: Lato, sans-serif; |
| 98 | font-size: 32px; |
| 99 | font-style: normal; |
| 100 | font-weight: 800; |
| 101 | line-height: normal; |
| 102 | } |
| 103 | |
| 104 | .premio-content-list { |
| 105 | display: flex; |
| 106 | flex-direction: column; |
| 107 | gap: 8px; |
| 108 | } |
| 109 | |
| 110 | .premio-content-list .premio-content-list-items { |
| 111 | display: flex; |
| 112 | gap: 8px; |
| 113 | align-items: center; |
| 114 | color: #092030; |
| 115 | font-family: Lato, sans-serif; |
| 116 | font-size: 16px; |
| 117 | font-style: normal; |
| 118 | font-weight: 400; |
| 119 | line-height: 150%; |
| 120 | } |
| 121 | |
| 122 | .premio-content-list .premio-content-list-items img { |
| 123 | height: 20px; |
| 124 | width: 20px; |
| 125 | |
| 126 | display: inherit; |
| 127 | } |
| 128 | |
| 129 | /* // X-Small devices (portrait phones, less than 576px) */ |
| 130 | |
| 131 | |
| 132 | .premio-update-froms-input { |
| 133 | margin-top: 24px; |
| 134 | position: relative; |
| 135 | height: 45px; |
| 136 | } |
| 137 | |
| 138 | .premio-update-froms-input input { |
| 139 | height: 100%; |
| 140 | padding: 8px; |
| 141 | width: 100%; |
| 142 | border-radius: 8px; |
| 143 | border: 1px solid #C6D7E3; |
| 144 | padding-left: 40px; |
| 145 | font-size: 13px; |
| 146 | height: 45px; |
| 147 | } |
| 148 | |
| 149 | .premio-update-froms-input input:hover, |
| 150 | .premio-update-froms-input input:focus { |
| 151 | border-color: rgba(206, 19, 109, 0.60); |
| 152 | outline: none; |
| 153 | box-shadow: none; |
| 154 | } |
| 155 | |
| 156 | .premio-update-froms-input .mail-icon { |
| 157 | position: absolute; |
| 158 | left: 10px; |
| 159 | top: 11px; |
| 160 | z-index: 1; |
| 161 | } |
| 162 | .premio-update-froms-input .mail-icon img { |
| 163 | height: 24px; |
| 164 | width: 24px; |
| 165 | } |
| 166 | |
| 167 | .eac-input-wrap { |
| 168 | width: 100%; |
| 169 | } |
| 170 | |
| 171 | .update-popup-btn { |
| 172 | padding: 12px 24px; |
| 173 | display: flex; |
| 174 | align-items: center; |
| 175 | gap: 10px; |
| 176 | border-radius: 8px; |
| 177 | background: #CE136D; |
| 178 | color: #fff; |
| 179 | border: none; |
| 180 | font-family: Lato, sans-serif; |
| 181 | font-size: 14px; |
| 182 | font-weight: 800; |
| 183 | cursor: pointer; |
| 184 | transition: all 0.3s ease-in-out; |
| 185 | } |
| 186 | |
| 187 | .update-popup-btn:hover, .update-popup-btn:disabled { |
| 188 | background-color: #A81059; |
| 189 | color: #fff !important; |
| 190 | } |
| 191 | .close-popup { |
| 192 | background-color: #EAEFF2; |
| 193 | color: #49687E; |
| 194 | } |
| 195 | .close-popup:hover, .close-popup:disabled { |
| 196 | background-color: #D3DDE2; |
| 197 | color: #49687E !important; |
| 198 | } |
| 199 | |
| 200 | .update-popup-btn .icon { |
| 201 | padding-top: 4px; |
| 202 | display: inline-block; |
| 203 | } |
| 204 | |
| 205 | |
| 206 | |
| 207 | .premio-update-popup-footer { |
| 208 | display: flex; |
| 209 | justify-content: space-between; |
| 210 | width: 100%; |
| 211 | } |
| 212 | |
| 213 | .premio-update-popup-icon-box { |
| 214 | display: flex; |
| 215 | align-items: self-start; |
| 216 | gap: 8px; |
| 217 | width: 33%; |
| 218 | position: relative; |
| 219 | } |
| 220 | |
| 221 | .premio-update-popup-icon-box .content h4 { |
| 222 | color: #49687E; |
| 223 | font-family: Lato, sans-serif; |
| 224 | font-size: 16px; |
| 225 | font-style: normal; |
| 226 | font-weight: 800; |
| 227 | line-height: normal; |
| 228 | margin: 0; |
| 229 | padding-bottom: 4px; |
| 230 | } |
| 231 | |
| 232 | .premio-update-popup-icon-box .content span { |
| 233 | color: #49687E; |
| 234 | font-family: Lato, sans-serif; |
| 235 | font-size: 12px; |
| 236 | font-style: normal; |
| 237 | font-weight: 400; |
| 238 | line-height: normal; |
| 239 | } |
| 240 | |
| 241 | .premio-update-popup-icon-box .absulate-border { |
| 242 | position: absolute; |
| 243 | left: -14px; |
| 244 | top: 0; |
| 245 | content: ''; |
| 246 | height: 20px; |
| 247 | width: 2px; |
| 248 | background-color: #49687E; |
| 249 | opacity: 0.16; |
| 250 | } |
| 251 | |
| 252 | |
| 253 | .premio-update-popup-bg-shape { |
| 254 | border-radius: 448.684px; |
| 255 | background: linear-gradient(180deg, rgba(175, 0, 52, 0.24) 0%, rgba(250, 22, 107, 0.24) 100%); |
| 256 | filter: blur(150px); |
| 257 | display: inline-block; |
| 258 | width: 214.632px; |
| 259 | height: 448.684px; |
| 260 | transform: rotate(109.229deg); |
| 261 | flex-shrink: 0; |
| 262 | position: absolute; |
| 263 | right: -110px; |
| 264 | top: 0; |
| 265 | z-index: -1; |
| 266 | } |
| 267 | |
| 268 | .premio-update-popup-bottom-shape-one { |
| 269 | position: absolute; |
| 270 | bottom: 0; |
| 271 | right: 5%; |
| 272 | } |
| 273 | |
| 274 | .premio-update-popup-right-shape-one { |
| 275 | position: absolute; |
| 276 | bottom: 30%; |
| 277 | right: 0; |
| 278 | } |
| 279 | |
| 280 | .popup-update-btn-wrap { |
| 281 | display: flex; |
| 282 | gap: 24px; |
| 283 | margin-top: 24px; |
| 284 | } |
| 285 | |
| 286 | |
| 287 | |
| 288 | #suggestion { |
| 289 | margin: 0; |
| 290 | padding: 0; |
| 291 | font-size: 14px; |
| 292 | color: #970029; |
| 293 | } |
| 294 | |
| 295 | #suggestion i { |
| 296 | color: #2596be; |
| 297 | font-weight: bold; |
| 298 | cursor: pointer; |
| 299 | } |
| 300 | |
| 301 | .eac-sugg { |
| 302 | color: #c1c1c1; |
| 303 | margin-left: 20px; |
| 304 | } |
| 305 | |
| 306 | #pre-loader{ |
| 307 | height: 17px; |
| 308 | width: 16px; |
| 309 | } |
| 310 | /* responsive */ |
| 311 | @media (max-width: 575.98px) { |
| 312 | #wpcontent { |
| 313 | padding-left: 0 !important; |
| 314 | } |
| 315 | .premio-update-user-trust span { |
| 316 | font-size: 12px; |
| 317 | } |
| 318 | .premio-update-popup-content h1 { |
| 319 | font-size: 28px; |
| 320 | } |
| 321 | .premio-content-list .premio-content-list-items { |
| 322 | align-items: start; |
| 323 | } |
| 324 | .premio-content-list .premio-content-list-items img{ |
| 325 | |
| 326 | margin-top: 5px; |
| 327 | } |
| 328 | |
| 329 | |
| 330 | .premio-update-popup-icon-box .absulate-border { |
| 331 | display: none; |
| 332 | } |
| 333 | .premio-update-popup-footer { |
| 334 | gap: 12px; |
| 335 | flex-direction: column; |
| 336 | justify-content: center; |
| 337 | } |
| 338 | |
| 339 | .premio-update-popup-icon-box { |
| 340 | width: auto; |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | /* responsive */ |
| 345 | </style> |
| 346 | |
| 347 | <div class="premio-update-popup-wrap" > |
| 348 | <img src="<?php echo esc_url($popup_data['shape_bottom']);?>" class="premio-update-popup-bottom-shape-one" alt="shape bottom"> |
| 349 | <img src="<?php echo esc_url($popup_data['shape_bottom_right']); ?>" class="premio-update-popup-right-shape-one" alt="shape right"> |
| 350 | <div class="premio-update-popup-content"> |
| 351 | <span class="premio-update-popup-bg-shape"></span> |
| 352 | <?php if(isset($popup_data['plugin_logo'])): ?> |
| 353 | <img class="plugin-logo" src="<?php echo esc_url($popup_data['plugin_logo']);?>" alt="user trust"> |
| 354 | <?php else: ?> |
| 355 | <h3 class="premio-update-heading"><?php echo esc_html($popup_data['plugin_name']) ?></h3> |
| 356 | <?php endif; ?> |
| 357 | <div class="remio-update-popup-content"> |
| 358 | <div class="premio-update-user-trust"> |
| 359 | <img src="<?php echo esc_url($popup_data['trust_user_img']);?>" alt="user trust"> |
| 360 | |
| 361 | <span><?php echo esc_html($popup_data['trust_user']) ?><span> |
| 362 | </div> |
| 363 | |
| 364 | <h1><?php esc_html_e("We Only Email When It's Worth It", 'folders') ?></h1> |
| 365 | |
| 366 | <div class="premio-content-list"> |
| 367 | <div class="premio-content-list-items"> |
| 368 | <img src="<?php echo esc_url($popup_data['check_circle']);?>" alt="check circle"> |
| 369 | <span><?php esc_html_e('Plugin updates and features for improved performance', 'folders') ?> </span> |
| 370 | </div> |
| 371 | <div class="premio-content-list-items"> |
| 372 | <img src="<?php echo esc_url($popup_data['check_circle']);?>" alt="check circle"> |
| 373 | <span><?php esc_html_e('Important security updates for site safety', 'folders') ?></span> |
| 374 | |
| 375 | </div> |
| 376 | <div class="premio-content-list-items"> |
| 377 | <img src="<?php echo esc_url($popup_data['check_circle']);?>" alt="check circle"> |
| 378 | <span><?php esc_html_e('Limited-time offers for WordPress users seeking growth', 'folders') ?> </span> |
| 379 | </div> |
| 380 | </div> |
| 381 | |
| 382 | <div class="premio-update-froms-input"> |
| 383 | <span class="mail-icon"> |
| 384 | <img src="<?php echo esc_url($popup_data['mail_icon']) ?>" alt="Mail icon"> |
| 385 | </span> |
| 386 | <input type="email" value="<?php echo esc_attr($email) ?>" name="folder_update_email" id="folder_update_email" autocomplete="off" placeholder="<?php esc_html_e('Your Email Address', 'folders') ?>" required> |
| 387 | |
| 388 | </div> |
| 389 | <p id="suggestion"></p> |
| 390 | <div class="popup-update-btn-wrap"> |
| 391 | <button href="javascript:;" class="update-popup-btn submit-popup yes"> <?php esc_html_e('Count Me In', 'folders')?> |
| 392 | <span class="icon"> |
| 393 | <img class="arrow-right" src="<?php echo esc_url($popup_data['arrow_right']) ?>" alt="arrow right"> |
| 394 | <img id="pre-loader" style="display: none;" src="<?php echo esc_url($popup_data['pre_loader']) ?>" alt="pre loader"> |
| 395 | |
| 396 | </span> |
| 397 | |
| 398 | </button> |
| 399 | <button href="javascript:;" class="update-popup-btn close-popup no"> <?php esc_html_e('Maybe Later', 'folders')?> </button> |
| 400 | </div> |
| 401 | |
| 402 | </div> |
| 403 | |
| 404 | |
| 405 | <div class="premio-update-popup-footer"> |
| 406 | <!-- Icon Box --> |
| 407 | <div class="premio-update-popup-icon-box"> |
| 408 | <div class="icon"> |
| 409 | <img src="<?php echo esc_url($popup_data['user_icon']) ?>" alt="user icon"> |
| 410 | </div> |
| 411 | <div class="content"> |
| 412 | <h4><?php echo esc_html($popup_data['website_owners']) ?></h4> |
| 413 | <span><?php esc_html_e('Website Owners', 'folders') ?></span> |
| 414 | </div> |
| 415 | </div> |
| 416 | <!-- Icon Box --> |
| 417 | <!-- Icon Box --> |
| 418 | <div class="premio-update-popup-icon-box"> |
| 419 | |
| 420 | <span class="absulate-border"></span> |
| 421 | <div class="icon"> |
| 422 | <img src="<?php echo esc_url($popup_data['slash_icon']) ?>" alt="slash icon"> |
| 423 | </div> |
| 424 | <div class="content"> |
| 425 | <h4><?php esc_html_e('No Spam Ever', 'folders') ?></h4> |
| 426 | <span><?php esc_html_e('Unsubscribe Anytime', 'folders') ?></span> |
| 427 | </div> |
| 428 | </div> |
| 429 | <!-- Icon Box --> |
| 430 | <!-- Icon Box --> |
| 431 | <div class="premio-update-popup-icon-box"> |
| 432 | |
| 433 | <span class="absulate-border"></span> |
| 434 | <div class="icon"> |
| 435 | <img src="<?php echo esc_url($popup_data['star_icon']) ?>" alt="star icon"> |
| 436 | </div> |
| 437 | <div class="content"> |
| 438 | <h4><?php echo esc_html($popup_data['rating']) ?></h4> |
| 439 | <span><?php echo esc_html($popup_data['review']) ?></span> |
| 440 | </div> |
| 441 | </div> |
| 442 | <!-- Icon Box --> |
| 443 | </div> |
| 444 | <input type="hidden" id="folder_update_nonce" value="<?php echo wp_create_nonce("folder_update_nonce") ?>"> |
| 445 | |
| 446 | </div> |
| 447 | </div> |
| 448 | |
| 449 | <script> |
| 450 | jQuery(document).ready(function($) { |
| 451 | var mailcheck_flg = false; |
| 452 | $(document).on("click", ".update-popup-btn", function () { |
| 453 | //$('#folder_update_email').trigger( 'blur' ); |
| 454 | // after clicking button button should be disable |
| 455 | $('.update-popup-btn').attr("disabled", true); |
| 456 | |
| 457 | $('#suggestion').html(''); |
| 458 | var email = $('#folder_update_email').val(); |
| 459 | var preLoader = $('#pre-loader'); |
| 460 | var btnIcon = $('.submit-popup .icon .arrow-right'); |
| 461 | var emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; |
| 462 | |
| 463 | var updateStatus = 0; |
| 464 | if ($(this).hasClass("yes")) { |
| 465 | updateStatus = 1; |
| 466 | } |
| 467 | |
| 468 | |
| 469 | msemailcheck(); |
| 470 | |
| 471 | // Check email address is empty or not its email |
| 472 | if(email == '' && updateStatus == 1){ |
| 473 | $('#suggestion').html('Please enter your email address.'); |
| 474 | // empty this after 5 sec |
| 475 | setTimeout(function(){ $('#suggestion').html(''); }, 5000); |
| 476 | $('.update-popup-btn').attr("disabled", false); |
| 477 | return; |
| 478 | }else if (!emailRegex.test(email) && updateStatus == 1) { |
| 479 | $('#suggestion').html('Please enter a valid email address.'); |
| 480 | // empty this after 5 sec |
| 481 | setTimeout(function(){ $('#suggestion').html(''); }, 5000); |
| 482 | $('.update-popup-btn').attr("disabled", false); |
| 483 | return; |
| 484 | } |
| 485 | |
| 486 | btnIcon.hide(); // hide arrow icon |
| 487 | preLoader.show(); // show loader |
| 488 | |
| 489 | if ( $('#suggestion').html() != '' && mailcheck_flg == false ) { |
| 490 | mailcheck_flg = true; |
| 491 | preLoader.hide(); |
| 492 | btnIcon.show(); |
| 493 | $('.update-popup-btn').attr("disabled", false); |
| 494 | return false; |
| 495 | } |
| 496 | |
| 497 | $.ajax({ |
| 498 | url: ajaxurl, |
| 499 | type: 'post', |
| 500 | data: { |
| 501 | action: "folder_update_status", |
| 502 | status: updateStatus, |
| 503 | email: email, |
| 504 | nonce: jQuery("#folder_update_nonce").val() |
| 505 | }, |
| 506 | type: 'post', |
| 507 | cache: false, |
| 508 | success: function () { |
| 509 | mailcheck_flg = false; |
| 510 | preLoader.hide(); |
| 511 | window.location.reload(); |
| 512 | } |
| 513 | }) |
| 514 | }); |
| 515 | |
| 516 | var checkdomains = ["yahoo.com" ,"hotmail.com" ,"gmail.com" ,"me.com" ,"aol.com" ,"mac.com" ,"live.com" ,"comcast.net" ,"googlemail.com" ,"msn.com" ,"hotmail.co.uk" ,"facebook.com" ,"verizon.net" ,"sbcglobal.net" ,"att.net" ,"gmx.com" ,"outlook.com" ,"icloud.com" ,"protonmail.com"]; |
| 517 | var topLevelDomains = ["com", "net", "org", "me", "io"]; |
| 518 | jQuery(document).on('blur','#folder_update_email', function(event) { |
| 519 | msemailcheck(); |
| 520 | }); |
| 521 | |
| 522 | function msemailcheck() { |
| 523 | |
| 524 | jQuery('#folder_update_email').mailcheck({ |
| 525 | domains: checkdomains, // Optional array like ['gmail.com', 'yahoo.com'] |
| 526 | topLevelDomains: topLevelDomains, // Optional array like ['com', 'net', 'org'] |
| 527 | suggested: function(element, suggestion) { |
| 528 | |
| 529 | jQuery('#suggestion').html("Did you mean <b><i>" + suggestion.full + "</i></b>?"); |
| 530 | }, |
| 531 | empty: function(element) { |
| 532 | jQuery('#suggestion').html(''); |
| 533 | } |
| 534 | }); |
| 535 | } |
| 536 | |
| 537 | $("#folder_update_email").emailautocomplete({ |
| 538 | domains: ["yahoo.com" ,"hotmail.com" ,"gmail.com" ,"me.com" ,"aol.com" ,"mac.com" ,"live.com" ,"comcast.net" ,"googlemail.com" ,"msn.com" ,"hotmail.co.uk" ,"facebook.com" ,"verizon.net" ,"sbcglobal.net" ,"att.net" ,"gmx.com" ,"outlook.com" ,"icloud.com" ,"protonmail.com"] |
| 539 | }); |
| 540 | |
| 541 | $(document).on("click", "#suggestion i", function (){ |
| 542 | $("#folder_update_email").val($(this).text()); |
| 543 | setTimeout(function(){ jQuery('#suggestion').html(''); }, 1000); |
| 544 | }); |
| 545 | }); |
| 546 | </script> |
| 547 | <?php ?> |
| 548 | |
| 549 | |
| 550 | |
| 551 | |
| 552 | |
| 553 |