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