PluginProbe ʕ •ᴥ•ʔ
Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager / 3.0.9
Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager v3.0.9
3.1.9 3.1.8 3.1.7 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 trunk 1.3.7 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9 2.9.1 2.9.2
folders / templates / admin / update.php
folders / templates / admin Last commit date
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
update.php
346 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', 'folders'); ?></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', 'folders'); ?></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', 'folders'); ?></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', 'folders'); ?></button>
42 <p id="suggestion"></p>
43 </div>
44 <!--div class="update-form-skip-button">
45 <button href="javascript:;" class="button button-secondary form-cancel-btn no">Skip</button>
46 </div-->
47 </div>
48 <div class="update-notice-latter">
49 <span><a href="javascript:;" class="form-cancel-btn no"><?php esc_html_e('No, I will do it later', 'folders'); ?></a></span>
50 </div>
51 <div class="update-notice">
52 <?php esc_html_e('You can remove yourself from the list whenever you want, no strings attached', 'folders'); ?>
53 </div>
54 </div>
55 </div>
56 <div id="mystickyelement-update-email-overlay" class="stickyelement-overlay" style="display:block;" data-id="0" data-from="widget-status"></div>
57 <style>
58
59 @font-face {
60 font-family: 'Lato';
61 src: url('<?php echo esc_url(WCP_FOLDER_URL."assets/fonts/Lato-Regular.woff");?>');
62 }
63
64 #wpwrap{
65 background: url('<?php echo esc_url(WCP_FOLDER_URL."assets/images/update-bg.jpg") ?>');
66 background-position: bottom center;
67 background-size: cover;
68 }
69
70 .starts-testimonials-updates-form {
71 width: 768px;
72 padding: 0px 30px 0px 0px;
73 box-shadow: 0px 20px 25px rgb(0 0 0 / 10%), 0px 10px 10px rgb(0 0 0 / 4%);
74 display: flex;
75 margin: 100px auto 0;
76 font-family: Lato, sans-serif;
77 border-radius: 18.42px 0px 0px 18.419px;
78 background:#fff;
79 }
80 .update-title {
81 font-style: normal;
82 font-weight: 700;
83 font-size: 30px;
84 align-items: center;
85 color: #334155;
86 position: relative;
87 line-height: 36px;
88 font-family:Lato;
89 }
90
91 .update-title:after{
92 content: '';
93 background: #605DEC;
94 width: 19%;
95 height: 2px;
96 position: absolute;
97 bottom: -16px;
98 left: 0;
99 }
100
101 .updates-form-form-left {
102 padding: 25px 0px 50px 0px;
103 background: linear-gradient(180deg, #3C139A 25.79%, #2A0D76 72.72%);
104 border-radius: 14.42px 0px 0px 14.419px;
105 text-align:center;
106 width: 70%;
107 }
108
109 .updates-form-form-left p{
110 font-size: 16px;
111 line-height: 1.5;
112 margin: 0;
113 color: #fff;
114 padding: 0px 36px;
115 font-family:Lato;
116 }
117
118 .updates-form-form-left span{
119 color: #fff;
120 margin-left: 0px;
121 margin-top: 0px;
122 position: absolute;
123 font-size: 20px;
124 line-height: 0.5;
125 font-family:Lato;
126 }
127
128 .updates-form-form-left-text{
129 color: #fff;
130 font-size: 20px;
131 font-weight: 600;
132 text-align: left;
133 padding-left: 30px;
134 font-family:Lato;
135 }
136 .updates-form-form-right{
137 margin-left: 16px;
138 padding: 70px 47px 70px 45px;
139 }
140 .updates-form-form-right p {
141 font-size: 16px;
142 font-style: normal;
143 font-weight: normal;
144 line-height: 150%;
145 position: relative;
146 color: #475569;
147 margin: 32px 0px 20px 0px;
148 font-family:Lato;
149
150 }
151 /*.updates-form-form-right p:after {
152 content: "";
153 border: 1px solid #3C85F7;
154 position: absolute;
155 bottom: 5px;
156 left: 0;
157 width: 90px;
158
159 }*/
160 .updates-form {
161 /*display: flex;*/
162 }
163 .update-form-input {
164 position: relative;
165 }
166 .update-form-input input {
167 width: 385px;
168 background: #F4F4F5;
169 border: 1px solid #F4F4F5;
170 box-sizing: border-box;
171 border-radius: 8px;
172 height: 42px;
173 line-height: 40px;
174 padding: 0 50px 0 40px;
175 font-size: 13px;
176 box-sizing: border-box;
177 color: #334155;
178 }
179 .update-form-input .form-submit-btn {
180 background: #5A00F0;
181 border-radius: 8px;
182 border: none;
183 color: #fff;
184 font-style: normal;
185 font-weight: 500;
186 font-size: 13px;
187 line-height: 150%;
188 height: 36px;
189 padding: 0 10px;
190 position: absolute;
191 right: 3px;
192 top: 3px;
193 width: 100px;
194 font-family:Lato;
195 }
196 .update-form-input #starts_testimonials_update_email:hover{
197 border-bottom: 1px solid #5A00F0;
198 border-radius: 8px 8px 0px 0px;
199 }
200
201 .update-form-input #starts_testimonials_update_email:focus-visible{
202 border :1px solid #5A00F0 !important;
203 outline: 1px !important;
204 border-radius: 8px;
205 }
206
207 .update-form-input .form-submit-btn:hover{
208 background: #5A00F0;
209 }
210
211 .updates-form .form-cancel-btn.no {
212 margin: 0 0 0 3px;
213 background: transparent;
214 border: none;
215 color: #64748B;
216 font-size: 13px;
217 line-height: 40px;
218 padding: 0 0 0 5px;
219 }
220
221 .updates-form .form-cancel-btn.no:hover {
222 color: #334155;
223 }
224
225 .mail-icon {
226 position: absolute;
227 top: 8px;
228 left: 10px;
229 z-index: 1;
230 }
231
232 .update-notice {
233 margin: 50px 22px 0 0px;
234 font-size: 16px;
235 line-height: 150%;
236 color: #28375A;
237 text-align:center;
238 font-family:Lato;
239 padding: 0;
240 }
241
242 .update-notice-latter{
243 margin: 20px 0px;
244 width: 100%;
245 text-align: center;
246 color:#28375A;
247 }
248
249 .update-notice-latter span a{
250 text-decoration: underline;
251 cursor: pointer;
252 color:#28375A;
253 }
254 #suggestion {
255 margin: 10px 0 0;
256 padding: 0;
257 font-size: 14px;
258 color: #970029;
259 }
260 #suggestion i {
261 color: #2596be;
262 font-weight: bold;
263 cursor: pointer;
264 }
265 .eac-sugg{
266 color:#c1c1c1;
267 margin-left: -4px;
268 }
269 .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary[disabled] {
270 background: #e7e7e7!important;
271 }
272 </style>
273
274 <script>
275 jQuery(document).ready(function($) {
276 jQuery(document).on("click", ".updates-form button, a.form-cancel-btn", function () {
277 var updateStatus = 0;
278 if (jQuery(this).hasClass("yes")) {
279 updateStatus = 1;
280 }
281 $(".updates-form button").attr("disabled", true);
282 $.ajax({
283 url: ajaxurl,
284 data: {
285 action: "folder_update_status",
286 status: updateStatus,
287 nonce: '<?php echo esc_attr(wp_create_nonce("folder_update_status")) ?>',
288 email: jQuery("#folder_update_status").val()
289 },
290 type: 'post',
291 cache: false,
292 success: function () {
293 window.location.reload();
294 }
295 })
296 });
297
298 jQuery("#folder_update_status").emailautocomplete({
299 domains: ['example.com'],
300 caseSensitive: false
301 });
302
303 jQuery(document).on("click", "#suggestion i", function (){
304 $("#folder_update_status").val($(this).text()).focus();
305 $("#suggestion").html('');
306 });
307
308 jQuery(document).on("change", "#folder_update_status", function (){
309 isValidEmailAddress();
310 });
311 jQuery(document).on("keyup", "#folder_update_status", function (){
312 if(isValidEmailAddress()) {
313 jQuery(this).mailcheck({
314 suggested: function(element, suggestion) {
315 // callback code
316 jQuery('#suggestion').html("Did you mean <b><i>" + suggestion.full + "</b></i>?");
317 },
318 empty: function(element) {
319 // callback code
320 jQuery('#suggestion').html('');
321 }
322 });
323 } else {
324 jQuery('#suggestion').html('');
325 }
326 });
327 });
328 function isValidEmailAddress() {
329 if(jQuery.trim(jQuery("#folder_update_status").val()) == "") {
330 jQuery(".form-submit-btn").prop("disabled", true);
331 return false;
332 } else if(!isValidEmail(jQuery("#folder_update_status").val())) {
333 jQuery(".form-submit-btn").prop("disabled", true);
334 return false;
335 } else {
336 jQuery(".form-submit-btn").prop("disabled", false);
337 }
338 return true;
339 }
340
341 function isValidEmail(email) {
342 var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
343 return regex.test(email);
344 }
345 </script>
346