Version Description
- Deactivation survey
Download this release
Release Info
Developer | adamskaat |
Plugin | Countdown, Coming Soon – Countdown & Clock |
Version | 1.8.8 |
Comparing to | |
See all releases |
Code changes from version 1.8.7 to 1.8.8
- assets/css/admin/deactivationSurvey.css +296 -0
- assets/js/admin/deactivationSurvey.js +46 -0
- assets/views/admin/uninstallSurveyPopup.php +47 -0
- classes/Actions.php +14 -1
- classes/Ajax.php +30 -0
- config/config.php +7 -6
- countdown-builder.php +1 -1
- readme.txt +5 -2
assets/css/admin/deactivationSurvey.css
ADDED
@@ -0,0 +1,296 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*deactivation survey popup*/
|
2 |
+
.countdown-builder-deactivation-survey-popup-container {
|
3 |
+
position:fixed;
|
4 |
+
top:0;
|
5 |
+
left:0;
|
6 |
+
right:0;
|
7 |
+
bottom:0;
|
8 |
+
display:none;
|
9 |
+
z-index: 100;
|
10 |
+
}
|
11 |
+
|
12 |
+
.countdown-builder-deactivation-survey-popup-error-message {
|
13 |
+
color: #F00;
|
14 |
+
display: none;
|
15 |
+
}
|
16 |
+
|
17 |
+
.countdown-builder-deactivation-survey-popup-overlay {
|
18 |
+
position:fixed;
|
19 |
+
top:0;
|
20 |
+
left:0;
|
21 |
+
right:0;
|
22 |
+
bottom:0;
|
23 |
+
background:rgba(0,0,0,0.5);
|
24 |
+
/*display:none;*/
|
25 |
+
}
|
26 |
+
|
27 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-tbl {
|
28 |
+
display:table;
|
29 |
+
width:100%;
|
30 |
+
height:100%;
|
31 |
+
}
|
32 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-tbl .countdown-builder-deactivation-survey-popup-cel{
|
33 |
+
display:table-cell;
|
34 |
+
vertical-align:middle;
|
35 |
+
}
|
36 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-tbl .countdown-builder-deactivation-survey-popup-cel .countdown-builder-deactivation-survey-popup-inner-content {
|
37 |
+
padding:0 40px;
|
38 |
+
}
|
39 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-tbl .countdown-builder-deactivation-survey-popup-cel .countdown-builder-deactivation-survey-popup-content {
|
40 |
+
background:#fff;
|
41 |
+
max-width:700px;
|
42 |
+
margin:0 auto;
|
43 |
+
position: relative;
|
44 |
+
text-align:center;
|
45 |
+
}
|
46 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-tbl .countdown-builder-deactivation-survey-popup-cel .countdown-builder-deactivation-survey-popup-content .countdown-builder-deactivation-survey-popup-control-buttons-container{
|
47 |
+
margin-top:30px;
|
48 |
+
}
|
49 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-tbl .countdown-builder-deactivation-survey-popup-cel .countdown-builder-deactivation-survey-popup-content a.countdown-builder-deactivation-survey-popup-cancel {
|
50 |
+
position: absolute;
|
51 |
+
right: 15px;
|
52 |
+
top: 15px;
|
53 |
+
text-decoration: none;
|
54 |
+
/* font-size: 24px; */
|
55 |
+
/* color: #016cb0; */
|
56 |
+
/* border: 2px solid #016cb0;
|
57 |
+
border-radius: 50%;
|
58 |
+
width: 28px;*/
|
59 |
+
/* height: 24px; */
|
60 |
+
/* line-height: 18px; */
|
61 |
+
/* text-align: center; */
|
62 |
+
/* font-weight: 600; */
|
63 |
+
transition: all 0.5s ease;
|
64 |
+
-webkit-transition: all 0.5s ease;
|
65 |
+
}
|
66 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-tbl .countdown-builder-deactivation-survey-popup-cel .countdown-builder-deactivation-survey-popup-content .countdown-builder-deactivation-survey-popup-cancel img {
|
67 |
+
|
68 |
+
border: 2px solid grey;
|
69 |
+
border-radius: 50%;
|
70 |
+
width: 16px;
|
71 |
+
}
|
72 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-tbl .countdown-builder-deactivation-survey-popup-cel .countdown-builder-deactivation-survey-popup-content a.countdown-builder-deactivation-survey-popup-cancel:hover{
|
73 |
+
/*color:#fff;
|
74 |
+
background:#016cb0;*/
|
75 |
+
opacity:0.8;
|
76 |
+
transition:all 0.5s ease;
|
77 |
+
-webkit-transition: all 0.5s ease;
|
78 |
+
}
|
79 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-tbl .countdown-builder-deactivation-survey-popup-cel .countdown-builder-deactivation-survey-popup-content .countdown-builder-deactivation-survey-popup-desc {
|
80 |
+
/* text-transform: uppercase; */
|
81 |
+
font-size: 16px;
|
82 |
+
max-width: 450px;
|
83 |
+
margin: 0 auto;
|
84 |
+
margin-bottom: 30px;
|
85 |
+
color: #808080;
|
86 |
+
}
|
87 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-tbl .countdown-builder-deactivation-survey-popup-cel .countdown-builder-deactivation-survey-popup-content h3 {
|
88 |
+
font-size: 36px;
|
89 |
+
font-family:'Raleway';
|
90 |
+
font-weight:700;
|
91 |
+
color:#000;
|
92 |
+
margin-bottom: 25px;
|
93 |
+
}
|
94 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-form-group{
|
95 |
+
overflow:auto;
|
96 |
+
margin-bottom: 15px;
|
97 |
+
}
|
98 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-form-group .countdown-builder-deactivation-survey-popup-form-twocol{
|
99 |
+
width:50%;
|
100 |
+
float:left;
|
101 |
+
box-sizing:border-box;
|
102 |
+
padding:0 5px;
|
103 |
+
}
|
104 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-form-group .countdown-builder-deactivation-survey-popup-form-onecol{
|
105 |
+
box-sizing: border-box;
|
106 |
+
padding: 0 5px;
|
107 |
+
}
|
108 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-form-group input {
|
109 |
+
width: 100%;
|
110 |
+
border: 1px solid #ddd;
|
111 |
+
box-shadow: none !important;
|
112 |
+
padding: 10px;
|
113 |
+
}
|
114 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-form-group select {
|
115 |
+
width: 100%;
|
116 |
+
border: 1px solid #ddd;
|
117 |
+
box-shadow: none !important;
|
118 |
+
height: 43px;
|
119 |
+
padding-left: 10px;
|
120 |
+
}
|
121 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-privacy-links-container {
|
122 |
+
border-top:1px solid #ddd;
|
123 |
+
padding-top:20px;
|
124 |
+
margin-top: 40px;
|
125 |
+
}
|
126 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-privacy-links-container a{
|
127 |
+
font-size:16px;
|
128 |
+
text-decoration:none;
|
129 |
+
margin: 0 15px;
|
130 |
+
color:#016cb0;
|
131 |
+
}
|
132 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-control-buttons-container .countdown-builder-deactivation-survey-result-submit {
|
133 |
+
background: #016cb0 !important;
|
134 |
+
width:165px;
|
135 |
+
height:50px;
|
136 |
+
padding: 0;
|
137 |
+
border: none;
|
138 |
+
font-size: 16px;
|
139 |
+
text-transform: uppercase;
|
140 |
+
margin-right: 0px;
|
141 |
+
font-weight: 700;
|
142 |
+
}
|
143 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-control-buttons-container .countdown-builder-deactivation-survey-result-submit .btn-text {
|
144 |
+
display: inline-block;
|
145 |
+
padding: 0 15px;
|
146 |
+
margin-right: 0;
|
147 |
+
vertical-align: middle;
|
148 |
+
float: left;
|
149 |
+
line-height: inherit;
|
150 |
+
height: 50px;
|
151 |
+
padding-top: 12px;
|
152 |
+
box-sizing: border-box;
|
153 |
+
width: 109px;
|
154 |
+
}
|
155 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-control-buttons-container .countdown-builder-deactivation-survey-result-submit .btn-text-icon {
|
156 |
+
display: inline-block;
|
157 |
+
width: 56px;
|
158 |
+
text-align: center;
|
159 |
+
vertical-align: middle;
|
160 |
+
float: left;
|
161 |
+
line-height: inherit;
|
162 |
+
border-radius: 0 3px 3px 0;
|
163 |
+
position: relative;
|
164 |
+
overflow: hidden;
|
165 |
+
background: #004270;
|
166 |
+
height: 50px;
|
167 |
+
padding-top: 14px;
|
168 |
+
box-sizing: border-box;
|
169 |
+
}
|
170 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-control-buttons-container .countdown-builder-deactivation-survey-result-submit:hover .btn-text-icon img{
|
171 |
+
-webkit-animation-name: moving;
|
172 |
+
-webkit-animation-duration: 0.8s;
|
173 |
+
}
|
174 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-control-buttons-container .countdown-builder-deactivation-survey-result-submit:hover .btn-text-icon {
|
175 |
+
background: #012842;
|
176 |
+
}
|
177 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-control-buttons-container .countdown-builder-deactivation-survey-popup-cancel{
|
178 |
+
border:2px solid #016cb0;
|
179 |
+
font-size: 16px;
|
180 |
+
text-transform: uppercase;
|
181 |
+
height: inherit;
|
182 |
+
background:#fff;
|
183 |
+
/*width:165px;*/
|
184 |
+
height:50px;
|
185 |
+
margin-left: 15px;
|
186 |
+
font-weight: 700;
|
187 |
+
}
|
188 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-control-buttons-container .countdown-builder-deactivation-survey-popup-cancel:hover{
|
189 |
+
border:2px solid #016cb0;
|
190 |
+
background:#fff;
|
191 |
+
}
|
192 |
+
|
193 |
+
.countdown-builder-deactivation-survey-popup-container textarea {
|
194 |
+
width: 100%;
|
195 |
+
min-height: 90px;
|
196 |
+
max-height: 200px;
|
197 |
+
}
|
198 |
+
|
199 |
+
.countdown-builder-deactivation-survey-header {
|
200 |
+
padding: 18px 15px;
|
201 |
+
-webkit-box-shadow: 0 0 8px rgba(0,0,0,.1);
|
202 |
+
/* box-shadow: 0 0 8px rgba(0,0,0,.1); */
|
203 |
+
text-align: left;
|
204 |
+
}
|
205 |
+
|
206 |
+
.countdown-builder-uninstall-header-title {
|
207 |
+
font-size: 15px;
|
208 |
+
text-transform: uppercase;
|
209 |
+
font-weight: 700;
|
210 |
+
padding-left: 5px;
|
211 |
+
}
|
212 |
+
|
213 |
+
.countdown-builder-deactivation-survey-content {
|
214 |
+
padding: 0 30px 30px;
|
215 |
+
min-height: 50px;
|
216 |
+
text-align: left;
|
217 |
+
}
|
218 |
+
|
219 |
+
.countdown-builder-deactivation-survey-content-p {
|
220 |
+
font-weight: 700;
|
221 |
+
font-size: 15px;
|
222 |
+
color: #495157;
|
223 |
+
line-height: 1.4;
|
224 |
+
}
|
225 |
+
|
226 |
+
.countdown-builder-deactivate-feedback-dialog-input:not(:checked)~.countdown-builder-feedback-text {
|
227 |
+
display: none;
|
228 |
+
}
|
229 |
+
|
230 |
+
.countdown-builder-deactivate-feedback-dialog-input-wrapper {
|
231 |
+
margin-bottom: 15px;
|
232 |
+
}
|
233 |
+
.countdown-builder-deactivate-feedback-dialog-input {
|
234 |
+
float: left;
|
235 |
+
margin: 0 15px 0 0 !important;
|
236 |
+
-webkit-box-shadow: none;
|
237 |
+
box-shadow: none;
|
238 |
+
}
|
239 |
+
|
240 |
+
.countdown-builder-deactivate-feedback-dialog-label {
|
241 |
+
display: block;
|
242 |
+
font-size: 13px;
|
243 |
+
color: #6d7882;
|
244 |
+
}
|
245 |
+
|
246 |
+
.countdown-builder-deactivation-survey-footer {
|
247 |
+
border-top: none;
|
248 |
+
text-align: left;
|
249 |
+
padding: 20px 30px 30px;
|
250 |
+
overflow: hidden;
|
251 |
+
background-color: #F1F1F1;
|
252 |
+
}
|
253 |
+
|
254 |
+
.countdown-builder-survey-skip {
|
255 |
+
font-size: 13px;
|
256 |
+
color: #a4afb7;
|
257 |
+
background: none;
|
258 |
+
float: right;
|
259 |
+
width: auto;
|
260 |
+
}
|
261 |
+
|
262 |
+
.countdown-builder-survey-submit {
|
263 |
+
background-color: #ff7a64;
|
264 |
+
-webkit-border-radius: 3px;
|
265 |
+
border-radius: 3px;
|
266 |
+
color: #fff;
|
267 |
+
line-height: 1;
|
268 |
+
padding: 12px 20px;
|
269 |
+
font-size: 13px;
|
270 |
+
width: 180px;
|
271 |
+
height: 38px;
|
272 |
+
}
|
273 |
+
|
274 |
+
.countdown-builder-survey-btn {
|
275 |
+
font-family: Roboto,Arial,Helvetica,Verdana,sans-serif;
|
276 |
+
border: none;
|
277 |
+
cursor: pointer;
|
278 |
+
padding: 13px 0;
|
279 |
+
outline: 0;
|
280 |
+
}
|
281 |
+
|
282 |
+
.countdown-builder-survey-sub-choice {
|
283 |
+
margin: 10px 0 0 30px;
|
284 |
+
padding: 5px;
|
285 |
+
font-size: 13px;
|
286 |
+
-webkit-box-shadow: none;
|
287 |
+
box-shadow: none;
|
288 |
+
background-color: #fff;
|
289 |
+
width: 92%;
|
290 |
+
}
|
291 |
+
|
292 |
+
@media only screen and (max-width: 740px) {
|
293 |
+
.countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-tbl .countdown-builder-deactivation-survey-popup-cel .countdown-builder-deactivation-survey-popup-content h3 {
|
294 |
+
line-height: 1.1;
|
295 |
+
}
|
296 |
+
}
|
assets/js/admin/deactivationSurvey.js
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function YcdDeactivateJs() {
|
2 |
+
this.init();
|
3 |
+
}
|
4 |
+
|
5 |
+
YcdDeactivateJs.prototype.init = function () {
|
6 |
+
this.deactivate();
|
7 |
+
};
|
8 |
+
|
9 |
+
YcdDeactivateJs.prototype.deactivate = function () {
|
10 |
+
var that = this;
|
11 |
+
jQuery("tr[data-slug='countdown-builder'] .deactivate a").click(function(event) {
|
12 |
+
event.preventDefault();
|
13 |
+
that.deactivationUrl = jQuery(this).attr("href");
|
14 |
+
jQuery("#countdown-builder-deactivation-survey-popup-container").show();
|
15 |
+
});
|
16 |
+
|
17 |
+
jQuery('.countdown-builder-deactivation-survey-popup-overlay').bind('click', function () {
|
18 |
+
jQuery("#countdown-builder-deactivation-survey-popup-container").hide();
|
19 |
+
});
|
20 |
+
|
21 |
+
jQuery('.countdown-builder-survey-skip').bind('click', function (e) {
|
22 |
+
jQuery("#countdown-builder-deactivation-survey-popup-container").hide();
|
23 |
+
window.location.replace(that.deactivationUrl);
|
24 |
+
});
|
25 |
+
|
26 |
+
jQuery('.countdown-builder-deactivation-survey-content-form').submit(function (event) {
|
27 |
+
event.preventDefault();
|
28 |
+
var savedData = jQuery(this).serialize();
|
29 |
+
jQuery("#countdown-builder-deactivation-survey-popup-container").hide();
|
30 |
+
var data = {
|
31 |
+
action: 'countdown-builder_storeSurveyResult',
|
32 |
+
savedData: savedData,
|
33 |
+
token: COUNTDOWN_DEACTIVATE_ARGS.nonce
|
34 |
+
};
|
35 |
+
|
36 |
+
jQuery.post(ajaxurl, data, function(response) {
|
37 |
+
console.log(response);
|
38 |
+
}).always(function() {
|
39 |
+
window.location.replace(that.deactivationUrl);
|
40 |
+
});
|
41 |
+
});
|
42 |
+
};
|
43 |
+
|
44 |
+
jQuery(document).ready(function () {
|
45 |
+
new YcdDeactivateJs;
|
46 |
+
});
|
assets/views/admin/uninstallSurveyPopup.php
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="countdown-builder-deactivation-survey-popup-container" class="countdown-builder-deactivation-survey-popup-container is-dismissible" style="display: none;">
|
2 |
+
<div class="countdown-builder-deactivation-survey-popup-overlay"></div>
|
3 |
+
|
4 |
+
<div class="countdown-builder-deactivation-survey-popup-tbl">
|
5 |
+
<div class="countdown-builder-deactivation-survey-popup-cel">
|
6 |
+
<div class="countdown-builder-deactivation-survey-popup-content">
|
7 |
+
|
8 |
+
<div class="countdown-builder-deactivation-survey-header">
|
9 |
+
<span class="countdown-builder-uninstall-header-title">Quick Feedback</span>
|
10 |
+
</div>
|
11 |
+
<div class="countdown-builder-deactivation-survey-content">
|
12 |
+
<form class="countdown-builder-deactivation-survey-content-form">
|
13 |
+
<p class="countdown-builder-deactivation-survey-content-p">If you have a moment, please share why you are deactivating Countdown Builder:</p>
|
14 |
+
<div class="countdown-builder-deactivation-survey-choises-wrapper">
|
15 |
+
|
16 |
+
<div class="countdown-builder-deactivate-feedback-dialog-input-wrapper">
|
17 |
+
<input id="countdown-builder-deactivate-feedback-no_longer_needed" class="countdown-builder-deactivate-feedback-dialog-input" type="radio" name="countdown-builder_reason_key" value="no_longer_needed"><label for="countdown-builder-deactivate-feedback-no_longer_needed" class="countdown-builder-deactivate-feedback-dialog-label">I no longer need the plugin</label></div>
|
18 |
+
<div class="countdown-builder-deactivate-feedback-dialog-input-wrapper">
|
19 |
+
<input id="countdown-builder-deactivate-feedback-found_a_better_plugin" class="countdown-builder-deactivate-feedback-dialog-input" type="radio" name="countdown-builder_reason_key" value="found_a_better_plugin">
|
20 |
+
<label for="countdown-builder-deactivate-feedback-found_a_better_plugin" class="countdown-builder-deactivate-feedback-dialog-label">I found a better plugin</label>
|
21 |
+
<input class="countdown-builder-feedback-text countdown-builder-survey-sub-choice" type="text" name="countdown-builder_reason_found_a_better_plugin" placeholder="Please share which plugin">
|
22 |
+
</div>
|
23 |
+
<div class="countdown-builder-deactivate-feedback-dialog-input-wrapper">
|
24 |
+
<input id="countdown-builder-deactivate-feedback-couldnt_get_the_plugin_to_work" class="countdown-builder-deactivate-feedback-dialog-input" type="radio" name="countdown-builder_reason_key" value="couldnt_get_the_plugin_to_work">
|
25 |
+
<label for="countdown-builder-deactivate-feedback-couldnt_get_the_plugin_to_work" class="countdown-builder-deactivate-feedback-dialog-label">I couldn't get the plugin to work</label>
|
26 |
+
</div>
|
27 |
+
<div class="countdown-builder-deactivate-feedback-dialog-input-wrapper">
|
28 |
+
<input id="countdown-builder-deactivate-feedback-temporary_deactivation" class="countdown-builder-deactivate-feedback-dialog-input" type="radio" name="countdown-builder_reason_key" value="temporary_deactivation">
|
29 |
+
<label for="countdown-builder-deactivate-feedback-temporary_deactivation" class="countdown-builder-deactivate-feedback-dialog-label">It's a temporary deactivation</label>
|
30 |
+
</div>
|
31 |
+
<div class="countdown-builder-deactivate-feedback-dialog-input-wrapper">
|
32 |
+
<input id="countdown-builder-deactivate-feedback-other" class="countdown-builder-deactivate-feedback-dialog-input" type="radio" name="countdown-builder_reason_key" value="other">
|
33 |
+
<label for="countdown-builder-deactivate-feedback-other" class="countdown-builder-deactivate-feedback-dialog-label">Other</label>
|
34 |
+
<input class="countdown-builder-feedback-text countdown-builder-survey-sub-choice" type="text" name="countdown-builder_reason_other" placeholder="Please share the reason">
|
35 |
+
</div>
|
36 |
+
</div>
|
37 |
+
</div>
|
38 |
+
<div class="countdown-builder-deactivation-survey-footer">
|
39 |
+
<div class="dialog-buttons-wrapper dialog-lightbox-buttons-wrapper">
|
40 |
+
<button class="countdown-builder-survey-btn countdown-builder-survey-submit">Submit & Deactivate</button>
|
41 |
+
<button class="countdown-builder-survey-btn countdown-builder-survey-skip">Skip & Deactivate</button></div>
|
42 |
+
</div>
|
43 |
+
</form>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
</div>
|
classes/Actions.php
CHANGED
@@ -39,7 +39,19 @@ class Actions {
|
|
39 |
add_action("admin_menu", array($this, 'adminMenu'));
|
40 |
add_action('admin_action_ycd_duplicate_post_as_draft', array($this, 'duplicatePostSave'));
|
41 |
}
|
42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
public function duplicatePostSave() {
|
44 |
|
45 |
global $wpdb;
|
@@ -214,6 +226,7 @@ class Actions {
|
|
214 |
}
|
215 |
|
216 |
public function postTypeInit() {
|
|
|
217 |
$this->revieNotice();
|
218 |
$this->customPostTypeObj = new RegisterPostType();
|
219 |
$currentPostType = AdminHelper::getCurrentPostType();
|
39 |
add_action("admin_menu", array($this, 'adminMenu'));
|
40 |
add_action('admin_action_ycd_duplicate_post_as_draft', array($this, 'duplicatePostSave'));
|
41 |
}
|
42 |
+
|
43 |
+
public function beforeDeactivateCountdown() {
|
44 |
+
wp_enqueue_style('before-deactivate-countdown-css', YCD_COUNTDOWN_ADMIN_CSS_URL.'deactivationSurvey.css');
|
45 |
+
wp_enqueue_script('before-deactivate-countdown-js', YCD_COUNTDOWN_ADMIN_JS_URL.'deactivationSurvey.js', array('jquery'));
|
46 |
+
|
47 |
+
wp_localize_script('before-deactivate-countdown-js', 'COUNTDOWN_DEACTIVATE_ARGS', array(
|
48 |
+
'nonce' => wp_create_nonce('countdownBuilderAjaxNonce'),
|
49 |
+
'areYouSure' => __('Are you sure?', YCD_TEXT_DOMAIN)
|
50 |
+
));
|
51 |
+
|
52 |
+
require_once YCD_ADMIN_VIEWS_PATH.'uninstallSurveyPopup.php';
|
53 |
+
}
|
54 |
+
|
55 |
public function duplicatePostSave() {
|
56 |
|
57 |
global $wpdb;
|
226 |
}
|
227 |
|
228 |
public function postTypeInit() {
|
229 |
+
add_action('admin_footer', array($this, 'beforeDeactivateCountdown'));
|
230 |
$this->revieNotice();
|
231 |
$this->customPostTypeObj = new RegisterPostType();
|
232 |
$currentPostType = AdminHelper::getCurrentPostType();
|
classes/Ajax.php
CHANGED
@@ -21,6 +21,36 @@ class Ajax {
|
|
21 |
add_action('wp_ajax_ycd_select2_search_data', array($this, 'select2Ajax'));
|
22 |
add_action('wp_ajax_ycd_edit_conditions_row', array($this, 'conditionsRow'));
|
23 |
add_action('wp_ajax_ycd_add_conditions_row', array($this, 'conditionsRow'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
25 |
|
26 |
public function changeReviewPeriod() {
|
21 |
add_action('wp_ajax_ycd_select2_search_data', array($this, 'select2Ajax'));
|
22 |
add_action('wp_ajax_ycd_edit_conditions_row', array($this, 'conditionsRow'));
|
23 |
add_action('wp_ajax_ycd_add_conditions_row', array($this, 'conditionsRow'));
|
24 |
+
|
25 |
+
add_action('wp_ajax_countdown-builder_storeSurveyResult', array($this, 'countdownBuilderStoreSurveyResult'));
|
26 |
+
}
|
27 |
+
|
28 |
+
public function countdownBuilderStoreSurveyResult() {
|
29 |
+
check_ajax_referer('countdownBuilderAjaxNonce', 'token');
|
30 |
+
$str = $_POST['savedData'];
|
31 |
+
parse_str($str, $savedData);
|
32 |
+
|
33 |
+
$headers = 'MIME-Versions: 1.0'."\r\n";
|
34 |
+
//$headers .= 'From: '.$sendFromEmail.''."\r\n";
|
35 |
+
$headers .= 'Content-types: text/plain; charset=UTF-8'."\r\n";
|
36 |
+
$message = '<b>Product</b>: Countdown builder<br>';
|
37 |
+
$message .= '<b>Version</b>: '.YCD_VERSION_TEXT.'<br>';
|
38 |
+
|
39 |
+
if (empty($savedData['countdown-builder_reason_key'])) {
|
40 |
+
$message .= 'Skip <br>';
|
41 |
+
}
|
42 |
+
else {
|
43 |
+
foreach ($savedData as $key => $value) {
|
44 |
+
if (empty($value)) {
|
45 |
+
continue;
|
46 |
+
}
|
47 |
+
$message .= '<b>'.$key.'</b>: '.$value.'<br>';
|
48 |
+
}
|
49 |
+
}
|
50 |
+
|
51 |
+
$sendStatus = wp_mail('xavierveretu@gmail.com', 'Countdown builder Deactivate Survey', $message, $headers);
|
52 |
+
echo 1;
|
53 |
+
die;
|
54 |
}
|
55 |
|
56 |
public function changeReviewPeriod() {
|
config/config.php
CHANGED
@@ -16,6 +16,7 @@ class YcdCountdownConfig {
|
|
16 |
self::addDefine('YCD_COUNTDOWN_URL', plugins_url().'/'.YCD_FOLDER_NAME.'/');
|
17 |
self::addDefine('YCD_COUNTDOWN_ASSETS_URL', YCD_COUNTDOWN_URL.'assets/');
|
18 |
self::addDefine('YCD_COUNTDOWN_CSS_URL', YCD_COUNTDOWN_ASSETS_URL.'css/');
|
|
|
19 |
self::addDefine('YCD_COUNTDOWN_JS_URL', YCD_COUNTDOWN_ASSETS_URL.'js/');
|
20 |
self::addDefine('YCD_COUNTDOWN_ADMIN_JS_URL', YCD_COUNTDOWN_JS_URL.'admin/');
|
21 |
self::addDefine('YCD_COUNTDOWN_IMG_URL', YCD_COUNTDOWN_ASSETS_URL.'img/');
|
@@ -68,8 +69,8 @@ class YcdCountdownConfig {
|
|
68 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
69 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
70 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
71 |
-
self::addDefine('YCD_VERSION_PRO', 1.
|
72 |
-
self::addDefine('YCD_VERSION', 1.
|
73 |
self::addDefine('YCD_FREE_VERSION', 1);
|
74 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
75 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
@@ -77,13 +78,13 @@ class YcdCountdownConfig {
|
|
77 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
78 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
79 |
|
80 |
-
$versionText = '1.8.
|
81 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
82 |
-
$versionText = '1.7.
|
83 |
}
|
84 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
85 |
-
self::addDefine('YCD_LAST_UPDATE', '
|
86 |
-
self::addDefine('YCD_NEXT_UPDATE', 'Sep
|
87 |
}
|
88 |
|
89 |
public static function displaySettings() {
|
16 |
self::addDefine('YCD_COUNTDOWN_URL', plugins_url().'/'.YCD_FOLDER_NAME.'/');
|
17 |
self::addDefine('YCD_COUNTDOWN_ASSETS_URL', YCD_COUNTDOWN_URL.'assets/');
|
18 |
self::addDefine('YCD_COUNTDOWN_CSS_URL', YCD_COUNTDOWN_ASSETS_URL.'css/');
|
19 |
+
self::addDefine('YCD_COUNTDOWN_ADMIN_CSS_URL', YCD_COUNTDOWN_CSS_URL.'admin/');
|
20 |
self::addDefine('YCD_COUNTDOWN_JS_URL', YCD_COUNTDOWN_ASSETS_URL.'js/');
|
21 |
self::addDefine('YCD_COUNTDOWN_ADMIN_JS_URL', YCD_COUNTDOWN_JS_URL.'admin/');
|
22 |
self::addDefine('YCD_COUNTDOWN_IMG_URL', YCD_COUNTDOWN_ASSETS_URL.'img/');
|
69 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
70 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
71 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
72 |
+
self::addDefine('YCD_VERSION_PRO', 1.74);
|
73 |
+
self::addDefine('YCD_VERSION', 1.88);
|
74 |
self::addDefine('YCD_FREE_VERSION', 1);
|
75 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
76 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
78 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
79 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
80 |
|
81 |
+
$versionText = '1.8.8';
|
82 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
83 |
+
$versionText = '1.7.4';
|
84 |
}
|
85 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
86 |
+
self::addDefine('YCD_LAST_UPDATE', 'Sep 13');
|
87 |
+
self::addDefine('YCD_NEXT_UPDATE', 'Sep 29');
|
88 |
}
|
89 |
|
90 |
public static function displaySettings() {
|
countdown-builder.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Countdown builder
|
4 |
* Description: The best countdown plugin by Adam skaat
|
5 |
-
* Version: 1.8.
|
6 |
* Author: Adam Skaat
|
7 |
* Author URI: https://edmonsoft.com/countdown
|
8 |
* License: GPLv2
|
2 |
/**
|
3 |
* Plugin Name: Countdown builder
|
4 |
* Description: The best countdown plugin by Adam skaat
|
5 |
+
* Version: 1.8.8
|
6 |
* Author: Adam Skaat
|
7 |
* Author URI: https://edmonsoft.com/countdown
|
8 |
* License: GPLv2
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: adamskaat
|
3 |
Tags: countdown, timer, countdown timer
|
4 |
Requires at least: 3.8
|
5 |
-
Tested up to: 5.5
|
6 |
-
Stable tag: 1.8.
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -66,6 +66,9 @@ Yes you can, we have Circle and Flipclock countdown popups.
|
|
66 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
67 |
|
68 |
== Changelog ==
|
|
|
|
|
|
|
69 |
= 1.8.7 =
|
70 |
* Create default countdown after the first activation
|
71 |
* Bug fixes
|
2 |
Contributors: adamskaat
|
3 |
Tags: countdown, timer, countdown timer
|
4 |
Requires at least: 3.8
|
5 |
+
Tested up to: 5.5.1
|
6 |
+
Stable tag: 1.8.8
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
66 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
67 |
|
68 |
== Changelog ==
|
69 |
+
= 1.8.8 =
|
70 |
+
* Deactivation survey
|
71 |
+
|
72 |
= 1.8.7 =
|
73 |
* Create default countdown after the first activation
|
74 |
* Bug fixes
|