Version Description
Download this release
Release Info
Developer | mailmunch |
Plugin | MailChimp Forms by MailMunch |
Version | 2.1.4 |
Comparing to | |
See all releases |
Code changes from version 2.1.3 to 2.1.4
- admin/class-mailchimp-mailmunch-admin.php +63 -1
- admin/css/mailchimp-mailmunch-admin.css +65 -543
- admin/partials/mailchimp-mailmunch-modals.php +22 -22
- includes/class-mailchimp-mailmunch.php +9 -3
- mailchimp-mailmunch.php +1 -1
- readme.txt +101 -7
- uninstall.php +3 -1
admin/class-mailchimp-mailmunch-admin.php
CHANGED
@@ -152,7 +152,7 @@ class Mailchimp_Mailmunch_Admin {
|
|
152 |
*
|
153 |
* @since 2.1.3
|
154 |
*/
|
155 |
-
function activation_redirect() {
|
156 |
if (get_option(MAILCHIMP_MAILMUNCH_PREFIX. '_activation_redirect', 'true') == 'true') {
|
157 |
update_option(MAILCHIMP_MAILMUNCH_PREFIX. '_activation_redirect', 'false');
|
158 |
wp_redirect(esc_url(admin_url('admin.php?page='. MAILCHIMP_MAILMUNCH_SLUG)));
|
@@ -160,6 +160,68 @@ class Mailchimp_Mailmunch_Admin {
|
|
160 |
}
|
161 |
}
|
162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
/**
|
164 |
* Adds settings link for plugin
|
165 |
*
|
152 |
*
|
153 |
* @since 2.1.3
|
154 |
*/
|
155 |
+
public function activation_redirect() {
|
156 |
if (get_option(MAILCHIMP_MAILMUNCH_PREFIX. '_activation_redirect', 'true') == 'true') {
|
157 |
update_option(MAILCHIMP_MAILMUNCH_PREFIX. '_activation_redirect', 'false');
|
158 |
wp_redirect(esc_url(admin_url('admin.php?page='. MAILCHIMP_MAILMUNCH_SLUG)));
|
160 |
}
|
161 |
}
|
162 |
|
163 |
+
/**
|
164 |
+
* Check and store installation/activation date
|
165 |
+
*
|
166 |
+
* @since 2.1.4
|
167 |
+
*/
|
168 |
+
public function check_installation_date() {
|
169 |
+
$activation_date = get_option( MAILCHIMP_MAILMUNCH_PREFIX. '_activation_date' );
|
170 |
+
if (!$activation_date) {
|
171 |
+
add_option( MAILCHIMP_MAILMUNCH_PREFIX. '_activation_date', strtotime( "now" ) );
|
172 |
+
}
|
173 |
+
}
|
174 |
+
|
175 |
+
/**
|
176 |
+
* Review notice after two weeks of usage
|
177 |
+
*
|
178 |
+
* @since 2.1.4
|
179 |
+
*/
|
180 |
+
public function review_us_notice() {
|
181 |
+
$show_notice = true;
|
182 |
+
$past_date = strtotime( '-14 days' );
|
183 |
+
$activation_date = get_option( MAILCHIMP_MAILMUNCH_PREFIX. '_activation_date' );
|
184 |
+
|
185 |
+
$notice_dismissed = get_option( MAILCHIMP_MAILMUNCH_PREFIX. '_dismiss_review_notice' );
|
186 |
+
if ($notice_dismissed == 'true') {
|
187 |
+
$show_notice = false;
|
188 |
+
} elseif (!in_array(get_current_screen()->base , array( 'dashboard' , 'post' , 'edit' )) && strpos(get_current_screen()->base , MAILCHIMP_MAILMUNCH_SLUG) == false) {
|
189 |
+
$show_notice = false;
|
190 |
+
} elseif (!current_user_can( 'install_plugins' )) {
|
191 |
+
$show_notice = false;
|
192 |
+
} elseif ( !$activation_date || $past_date < $activation_date ) {
|
193 |
+
$show_notice = false;
|
194 |
+
}
|
195 |
+
|
196 |
+
if ($show_notice) {
|
197 |
+
$review_url = 'https://wordpress.org/support/view/plugin-reviews/'. MAILCHIMP_MAILMUNCH_PLUGIN_DIRECTORY;
|
198 |
+
$dismiss_url = esc_url_raw( add_query_arg( MAILCHIMP_MAILMUNCH_PREFIX. '_dismiss_review_notice', '1', admin_url() ) );
|
199 |
+
|
200 |
+
$review_message = '<div class="mailmunch-review-logo"><img src="'.plugins_url( 'admin/img/mailchimp_logo.png', dirname(__FILE__) ) .'" /></div>';
|
201 |
+
$review_message .= sprintf( __( "You have been using <strong>%s</strong> for a few weeks now. We hope you are enjoying the features. Please consider leaving us a nice review. Reviews help people find our plugin and lets you provide us with useful feedback which helps us improve." , MAILCHIMP_MAILMUNCH_SLUG ), $this->plugin_name );
|
202 |
+
$review_message .= "<div class='mailmunch-buttons'>";
|
203 |
+
$review_message .= sprintf( "<a href='%s' target='_blank' class='button-secondary'><span class='dashicons dashicons-star-filled'></span>" . __( "Leave a Review" , MAILCHIMP_MAILMUNCH_SLUG ) . "</a>", $review_url );
|
204 |
+
$review_message .= sprintf( "<a href='%s' class='button-secondary'><span class='dashicons dashicons-no-alt'></span>" . __( "Dismiss" , MAILCHIMP_MAILMUNCH_SLUG ) . "</a>", $dismiss_url );
|
205 |
+
$review_message .= "</div>";
|
206 |
+
?>
|
207 |
+
<div class="mailmunch-review-notice">
|
208 |
+
<?php echo $review_message; ?>
|
209 |
+
</div>
|
210 |
+
<?php
|
211 |
+
}
|
212 |
+
}
|
213 |
+
|
214 |
+
/**
|
215 |
+
* Dismiss review notice
|
216 |
+
*
|
217 |
+
* @since 2.1.4
|
218 |
+
*/
|
219 |
+
public function dismiss_review_notice() {
|
220 |
+
if ( isset( $_GET[MAILCHIMP_MAILMUNCH_PREFIX. '_dismiss_review_notice'] ) ) {
|
221 |
+
add_option( MAILCHIMP_MAILMUNCH_PREFIX. '_dismiss_review_notice', 'true' );
|
222 |
+
}
|
223 |
+
}
|
224 |
+
|
225 |
/**
|
226 |
* Adds settings link for plugin
|
227 |
*
|
admin/css/mailchimp-mailmunch-admin.css
CHANGED
@@ -217,37 +217,6 @@
|
|
217 |
.alert > p + p {
|
218 |
margin-top: 5px;
|
219 |
}
|
220 |
-
.alert-dismissable {
|
221 |
-
padding-right: 35px;
|
222 |
-
}
|
223 |
-
.alert-dismissable .close {
|
224 |
-
position: relative;
|
225 |
-
top: -2px;
|
226 |
-
right: -21px;
|
227 |
-
color: inherit;
|
228 |
-
}
|
229 |
-
.alert-success {
|
230 |
-
color: #3c763d;
|
231 |
-
background-color: #dff0d8;
|
232 |
-
border-color: #d6e9c6;
|
233 |
-
}
|
234 |
-
.alert-success hr {
|
235 |
-
border-top-color: #c9e2b3;
|
236 |
-
}
|
237 |
-
.alert-success .alert-link {
|
238 |
-
color: #2b542c;
|
239 |
-
}
|
240 |
-
.alert-info {
|
241 |
-
color: #31708f;
|
242 |
-
background-color: #d9edf7;
|
243 |
-
border-color: #bce8f1;
|
244 |
-
}
|
245 |
-
.alert-info hr {
|
246 |
-
border-top-color: #a6e1ec;
|
247 |
-
}
|
248 |
-
.alert-info .alert-link {
|
249 |
-
color: #245269;
|
250 |
-
}
|
251 |
.alert-warning {
|
252 |
color: #8a6d3b;
|
253 |
background-color: #fcf8e3;
|
@@ -271,49 +240,12 @@
|
|
271 |
color: #843534;
|
272 |
}
|
273 |
|
274 |
-
label {
|
275 |
display: inline-block;
|
276 |
margin-bottom: 5px;
|
277 |
font-weight: bold;
|
278 |
}
|
279 |
-
|
280 |
-
-webkit-box-sizing: border-box;
|
281 |
-
-moz-box-sizing: border-box;
|
282 |
-
box-sizing: border-box;
|
283 |
-
}
|
284 |
-
input[type="radio"],
|
285 |
-
input[type="checkbox"] {
|
286 |
-
margin: 4px 0 0;
|
287 |
-
margin-top: 1px \9;
|
288 |
-
/* IE8-9 */
|
289 |
-
line-height: normal;
|
290 |
-
}
|
291 |
-
input[type="file"] {
|
292 |
-
display: block;
|
293 |
-
}
|
294 |
-
input[type="range"] {
|
295 |
-
display: block;
|
296 |
-
width: 100%;
|
297 |
-
}
|
298 |
-
select[multiple],
|
299 |
-
select[size] {
|
300 |
-
height: auto;
|
301 |
-
}
|
302 |
-
input[type="file"]:focus,
|
303 |
-
input[type="radio"]:focus,
|
304 |
-
input[type="checkbox"]:focus {
|
305 |
-
outline: thin dotted;
|
306 |
-
outline: 5px auto -webkit-focus-ring-color;
|
307 |
-
outline-offset: -2px;
|
308 |
-
}
|
309 |
-
output {
|
310 |
-
display: block;
|
311 |
-
padding-top: 7px;
|
312 |
-
font-size: 14px;
|
313 |
-
line-height: 1.42857143;
|
314 |
-
color: #555;
|
315 |
-
}
|
316 |
-
.form-control {
|
317 |
display: block;
|
318 |
width: 400px;
|
319 |
height: 34px;
|
@@ -330,128 +262,28 @@ output {
|
|
330 |
-webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
331 |
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
332 |
}
|
333 |
-
.form-control:focus {
|
334 |
border-color: #66afe9;
|
335 |
outline: 0;
|
336 |
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
|
337 |
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
|
338 |
}
|
339 |
-
.form-control::-moz-placeholder {
|
340 |
color: #999;
|
341 |
opacity: 1;
|
342 |
}
|
343 |
-
.form-control:-ms-input-placeholder {
|
344 |
color: #999;
|
345 |
}
|
346 |
-
.form-control::-webkit-input-placeholder {
|
347 |
color: #999;
|
348 |
}
|
349 |
-
|
350 |
-
.form-
|
351 |
-
fieldset[disabled] .form-control {
|
352 |
-
cursor: not-allowed;
|
353 |
-
background-color: #eee;
|
354 |
-
opacity: 1;
|
355 |
-
}
|
356 |
-
textarea.form-control {
|
357 |
-
height: auto;
|
358 |
-
}
|
359 |
-
input[type="search"] {
|
360 |
-
-webkit-appearance: none;
|
361 |
-
}
|
362 |
-
input[type="date"] {
|
363 |
-
line-height: 34px;
|
364 |
-
}
|
365 |
-
.form-group {
|
366 |
margin-bottom: 15px;
|
367 |
}
|
368 |
-
.radio,
|
369 |
-
.checkbox {
|
370 |
-
display: block;
|
371 |
-
min-height: 20px;
|
372 |
-
padding-left: 20px;
|
373 |
-
margin-top: 10px;
|
374 |
-
margin-bottom: 10px;
|
375 |
-
}
|
376 |
-
.radio label,
|
377 |
-
.checkbox label {
|
378 |
-
display: inline;
|
379 |
-
font-weight: normal;
|
380 |
-
cursor: pointer;
|
381 |
-
}
|
382 |
-
.radio input[type="radio"],
|
383 |
-
.radio-inline input[type="radio"],
|
384 |
-
.checkbox input[type="checkbox"],
|
385 |
-
.checkbox-inline input[type="checkbox"] {
|
386 |
-
float: left;
|
387 |
-
margin-left: -20px;
|
388 |
-
}
|
389 |
-
.radio + .radio,
|
390 |
-
.checkbox + .checkbox {
|
391 |
-
margin-top: -5px;
|
392 |
-
}
|
393 |
-
.radio-inline,
|
394 |
-
.checkbox-inline {
|
395 |
-
display: inline-block;
|
396 |
-
padding-left: 20px;
|
397 |
-
margin-bottom: 0;
|
398 |
-
font-weight: normal;
|
399 |
-
vertical-align: middle;
|
400 |
-
cursor: pointer;
|
401 |
-
}
|
402 |
-
.radio-inline + .radio-inline,
|
403 |
-
.checkbox-inline + .checkbox-inline {
|
404 |
-
margin-top: 0;
|
405 |
-
margin-left: 10px;
|
406 |
-
}
|
407 |
-
input[type="radio"][disabled],
|
408 |
-
input[type="checkbox"][disabled],
|
409 |
-
.radio[disabled],
|
410 |
-
.radio-inline[disabled],
|
411 |
-
.checkbox[disabled],
|
412 |
-
.checkbox-inline[disabled],
|
413 |
-
fieldset[disabled] input[type="radio"],
|
414 |
-
fieldset[disabled] input[type="checkbox"],
|
415 |
-
fieldset[disabled] .radio,
|
416 |
-
fieldset[disabled] .radio-inline,
|
417 |
-
fieldset[disabled] .checkbox,
|
418 |
-
fieldset[disabled] .checkbox-inline {
|
419 |
-
cursor: not-allowed;
|
420 |
-
}
|
421 |
-
.input-sm {
|
422 |
-
height: 30px;
|
423 |
-
padding: 5px 10px;
|
424 |
-
font-size: 12px;
|
425 |
-
line-height: 1.5;
|
426 |
-
border-radius: 3px;
|
427 |
-
}
|
428 |
-
select.input-sm {
|
429 |
-
height: 30px;
|
430 |
-
line-height: 30px;
|
431 |
-
}
|
432 |
-
textarea.input-sm,
|
433 |
-
select[multiple].input-sm {
|
434 |
-
height: auto;
|
435 |
-
}
|
436 |
-
.input-lg {
|
437 |
-
height: 46px;
|
438 |
-
padding: 10px 16px;
|
439 |
-
font-size: 18px;
|
440 |
-
line-height: 1.33;
|
441 |
-
border-radius: 6px;
|
442 |
-
}
|
443 |
-
select.input-lg {
|
444 |
-
height: 46px;
|
445 |
-
line-height: 46px;
|
446 |
-
}
|
447 |
-
textarea.input-lg,
|
448 |
-
select[multiple].input-lg {
|
449 |
-
height: auto;
|
450 |
-
}
|
451 |
-
|
452 |
|
453 |
-
|
454 |
-
.btn {
|
455 |
display: inline-block;
|
456 |
padding: 6px 12px;
|
457 |
margin-bottom: 0;
|
@@ -471,413 +303,103 @@ select[multiple].input-lg {
|
|
471 |
border-radius: 4px;
|
472 |
text-decoration: none;
|
473 |
}
|
474 |
-
.btn:focus,
|
475 |
-
.btn:active:focus,
|
476 |
-
.btn.active:focus {
|
477 |
outline: thin dotted;
|
478 |
outline: 5px auto -webkit-focus-ring-color;
|
479 |
outline-offset: -2px;
|
480 |
}
|
481 |
-
.btn:hover,
|
482 |
-
.btn:focus {
|
483 |
color: #333;
|
484 |
text-decoration: none;
|
485 |
}
|
486 |
-
.btn:active,
|
487 |
-
.btn.active {
|
488 |
background-image: none;
|
489 |
outline: 0;
|
490 |
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
491 |
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
492 |
}
|
493 |
-
.btn
|
494 |
-
.btn[disabled],
|
495 |
-
fieldset[disabled] .btn {
|
496 |
-
pointer-events: none;
|
497 |
-
cursor: not-allowed;
|
498 |
-
filter: alpha(opacity=65);
|
499 |
-
-webkit-box-shadow: none;
|
500 |
-
box-shadow: none;
|
501 |
-
opacity: .65;
|
502 |
-
}
|
503 |
-
.btn-default {
|
504 |
-
color: #333;
|
505 |
-
background-color: #fff;
|
506 |
-
border-color: #ccc;
|
507 |
-
}
|
508 |
-
.btn-default:hover,
|
509 |
-
.btn-default:focus,
|
510 |
-
.btn-default:active,
|
511 |
-
.btn-default.active,
|
512 |
-
.open .dropdown-toggle.btn-default {
|
513 |
-
color: #333;
|
514 |
-
background-color: #ebebeb;
|
515 |
-
border-color: #adadad;
|
516 |
-
}
|
517 |
-
.btn-default:active,
|
518 |
-
.btn-default.active,
|
519 |
-
.open .dropdown-toggle.btn-default {
|
520 |
-
background-image: none;
|
521 |
-
}
|
522 |
-
.btn-default.disabled,
|
523 |
-
.btn-default[disabled],
|
524 |
-
fieldset[disabled] .btn-default,
|
525 |
-
.btn-default.disabled:hover,
|
526 |
-
.btn-default[disabled]:hover,
|
527 |
-
fieldset[disabled] .btn-default:hover,
|
528 |
-
.btn-default.disabled:focus,
|
529 |
-
.btn-default[disabled]:focus,
|
530 |
-
fieldset[disabled] .btn-default:focus,
|
531 |
-
.btn-default.disabled:active,
|
532 |
-
.btn-default[disabled]:active,
|
533 |
-
fieldset[disabled] .btn-default:active,
|
534 |
-
.btn-default.disabled.active,
|
535 |
-
.btn-default[disabled].active,
|
536 |
-
fieldset[disabled] .btn-default.active {
|
537 |
-
background-color: #fff;
|
538 |
-
border-color: #ccc;
|
539 |
-
}
|
540 |
-
.btn-default .badge {
|
541 |
-
color: #fff;
|
542 |
-
background-color: #333;
|
543 |
-
}
|
544 |
-
.btn-primary {
|
545 |
-
color: #fff;
|
546 |
-
background-color: #428bca;
|
547 |
-
border-color: #357ebd;
|
548 |
-
}
|
549 |
-
.btn-primary:hover,
|
550 |
-
.btn-primary:focus,
|
551 |
-
.btn-primary:active,
|
552 |
-
.btn-primary.active,
|
553 |
-
.open .dropdown-toggle.btn-primary {
|
554 |
-
color: #fff;
|
555 |
-
background-color: #3276b1;
|
556 |
-
border-color: #285e8e;
|
557 |
-
}
|
558 |
-
.btn-primary:active,
|
559 |
-
.btn-primary.active,
|
560 |
-
.open .dropdown-toggle.btn-primary {
|
561 |
-
background-image: none;
|
562 |
-
}
|
563 |
-
.btn-primary.disabled,
|
564 |
-
.btn-primary[disabled],
|
565 |
-
fieldset[disabled] .btn-primary,
|
566 |
-
.btn-primary.disabled:hover,
|
567 |
-
.btn-primary[disabled]:hover,
|
568 |
-
fieldset[disabled] .btn-primary:hover,
|
569 |
-
.btn-primary.disabled:focus,
|
570 |
-
.btn-primary[disabled]:focus,
|
571 |
-
fieldset[disabled] .btn-primary:focus,
|
572 |
-
.btn-primary.disabled:active,
|
573 |
-
.btn-primary[disabled]:active,
|
574 |
-
fieldset[disabled] .btn-primary:active,
|
575 |
-
.btn-primary.disabled.active,
|
576 |
-
.btn-primary[disabled].active,
|
577 |
-
fieldset[disabled] .btn-primary.active {
|
578 |
-
background-color: #428bca;
|
579 |
-
border-color: #357ebd;
|
580 |
-
}
|
581 |
-
.btn-primary .badge {
|
582 |
-
color: #428bca;
|
583 |
-
background-color: #fff;
|
584 |
-
}
|
585 |
-
.btn-success {
|
586 |
color: #fff;
|
587 |
background-color: #5cb85c;
|
588 |
border-color: #4cae4c;
|
589 |
}
|
590 |
-
.btn-success:hover,
|
591 |
-
.btn-success:focus,
|
592 |
-
.btn-success:active,
|
593 |
-
.btn-success.active
|
594 |
-
.open .dropdown-toggle.btn-success {
|
595 |
color: #fff;
|
596 |
background-color: #47a447;
|
597 |
border-color: #398439;
|
598 |
}
|
599 |
-
.btn-success:active,
|
600 |
-
.btn-success.active
|
601 |
-
.open .dropdown-toggle.btn-success {
|
602 |
background-image: none;
|
603 |
}
|
604 |
-
.btn-success.
|
605 |
-
.btn-success[disabled],
|
606 |
-
fieldset[disabled] .btn-success,
|
607 |
-
.btn-success.disabled:hover,
|
608 |
-
.btn-success[disabled]:hover,
|
609 |
-
fieldset[disabled] .btn-success:hover,
|
610 |
-
.btn-success.disabled:focus,
|
611 |
-
.btn-success[disabled]:focus,
|
612 |
-
fieldset[disabled] .btn-success:focus,
|
613 |
-
.btn-success.disabled:active,
|
614 |
-
.btn-success[disabled]:active,
|
615 |
-
fieldset[disabled] .btn-success:active,
|
616 |
-
.btn-success.disabled.active,
|
617 |
-
.btn-success[disabled].active,
|
618 |
-
fieldset[disabled] .btn-success.active {
|
619 |
-
background-color: #5cb85c;
|
620 |
-
border-color: #4cae4c;
|
621 |
-
}
|
622 |
-
.btn-success .badge {
|
623 |
color: #5cb85c;
|
624 |
background-color: #fff;
|
625 |
}
|
626 |
-
.btn-
|
627 |
-
color: #fff;
|
628 |
-
background-color: #5bc0de;
|
629 |
-
border-color: #46b8da;
|
630 |
-
}
|
631 |
-
.btn-info:hover,
|
632 |
-
.btn-info:focus,
|
633 |
-
.btn-info:active,
|
634 |
-
.btn-info.active,
|
635 |
-
.open .dropdown-toggle.btn-info {
|
636 |
-
color: #fff;
|
637 |
-
background-color: #39b3d7;
|
638 |
-
border-color: #269abc;
|
639 |
-
}
|
640 |
-
.btn-info:active,
|
641 |
-
.btn-info.active,
|
642 |
-
.open .dropdown-toggle.btn-info {
|
643 |
-
background-image: none;
|
644 |
-
}
|
645 |
-
.btn-info.disabled,
|
646 |
-
.btn-info[disabled],
|
647 |
-
fieldset[disabled] .btn-info,
|
648 |
-
.btn-info.disabled:hover,
|
649 |
-
.btn-info[disabled]:hover,
|
650 |
-
fieldset[disabled] .btn-info:hover,
|
651 |
-
.btn-info.disabled:focus,
|
652 |
-
.btn-info[disabled]:focus,
|
653 |
-
fieldset[disabled] .btn-info:focus,
|
654 |
-
.btn-info.disabled:active,
|
655 |
-
.btn-info[disabled]:active,
|
656 |
-
fieldset[disabled] .btn-info:active,
|
657 |
-
.btn-info.disabled.active,
|
658 |
-
.btn-info[disabled].active,
|
659 |
-
fieldset[disabled] .btn-info.active {
|
660 |
-
background-color: #5bc0de;
|
661 |
-
border-color: #46b8da;
|
662 |
-
}
|
663 |
-
.btn-info .badge {
|
664 |
-
color: #5bc0de;
|
665 |
-
background-color: #fff;
|
666 |
-
}
|
667 |
-
.btn-warning {
|
668 |
-
color: #fff;
|
669 |
-
background-color: #f0ad4e;
|
670 |
-
border-color: #eea236;
|
671 |
-
}
|
672 |
-
.btn-warning:hover,
|
673 |
-
.btn-warning:focus,
|
674 |
-
.btn-warning:active,
|
675 |
-
.btn-warning.active,
|
676 |
-
.open .dropdown-toggle.btn-warning {
|
677 |
-
color: #fff;
|
678 |
-
background-color: #ed9c28;
|
679 |
-
border-color: #d58512;
|
680 |
-
}
|
681 |
-
.btn-warning:active,
|
682 |
-
.btn-warning.active,
|
683 |
-
.open .dropdown-toggle.btn-warning {
|
684 |
-
background-image: none;
|
685 |
-
}
|
686 |
-
.btn-warning.disabled,
|
687 |
-
.btn-warning[disabled],
|
688 |
-
fieldset[disabled] .btn-warning,
|
689 |
-
.btn-warning.disabled:hover,
|
690 |
-
.btn-warning[disabled]:hover,
|
691 |
-
fieldset[disabled] .btn-warning:hover,
|
692 |
-
.btn-warning.disabled:focus,
|
693 |
-
.btn-warning[disabled]:focus,
|
694 |
-
fieldset[disabled] .btn-warning:focus,
|
695 |
-
.btn-warning.disabled:active,
|
696 |
-
.btn-warning[disabled]:active,
|
697 |
-
fieldset[disabled] .btn-warning:active,
|
698 |
-
.btn-warning.disabled.active,
|
699 |
-
.btn-warning[disabled].active,
|
700 |
-
fieldset[disabled] .btn-warning.active {
|
701 |
-
background-color: #f0ad4e;
|
702 |
-
border-color: #eea236;
|
703 |
-
}
|
704 |
-
.btn-warning .badge {
|
705 |
-
color: #f0ad4e;
|
706 |
-
background-color: #fff;
|
707 |
-
}
|
708 |
-
.btn-danger {
|
709 |
-
color: #fff;
|
710 |
-
background-color: #d9534f;
|
711 |
-
border-color: #d43f3a;
|
712 |
-
}
|
713 |
-
.btn-danger:hover,
|
714 |
-
.btn-danger:focus,
|
715 |
-
.btn-danger:active,
|
716 |
-
.btn-danger.active,
|
717 |
-
.open .dropdown-toggle.btn-danger {
|
718 |
-
color: #fff;
|
719 |
-
background-color: #d2322d;
|
720 |
-
border-color: #ac2925;
|
721 |
-
}
|
722 |
-
.btn-danger:active,
|
723 |
-
.btn-danger.active,
|
724 |
-
.open .dropdown-toggle.btn-danger {
|
725 |
-
background-image: none;
|
726 |
-
}
|
727 |
-
.btn-danger.disabled,
|
728 |
-
.btn-danger[disabled],
|
729 |
-
fieldset[disabled] .btn-danger,
|
730 |
-
.btn-danger.disabled:hover,
|
731 |
-
.btn-danger[disabled]:hover,
|
732 |
-
fieldset[disabled] .btn-danger:hover,
|
733 |
-
.btn-danger.disabled:focus,
|
734 |
-
.btn-danger[disabled]:focus,
|
735 |
-
fieldset[disabled] .btn-danger:focus,
|
736 |
-
.btn-danger.disabled:active,
|
737 |
-
.btn-danger[disabled]:active,
|
738 |
-
fieldset[disabled] .btn-danger:active,
|
739 |
-
.btn-danger.disabled.active,
|
740 |
-
.btn-danger[disabled].active,
|
741 |
-
fieldset[disabled] .btn-danger.active {
|
742 |
-
background-color: #d9534f;
|
743 |
-
border-color: #d43f3a;
|
744 |
-
}
|
745 |
-
.btn-danger .badge {
|
746 |
-
color: #d9534f;
|
747 |
-
background-color: #fff;
|
748 |
-
}
|
749 |
-
.btn-link {
|
750 |
-
font-weight: normal;
|
751 |
-
color: #428bca;
|
752 |
-
cursor: pointer;
|
753 |
-
border-radius: 0;
|
754 |
-
}
|
755 |
-
.btn-link,
|
756 |
-
.btn-link:active,
|
757 |
-
.btn-link[disabled],
|
758 |
-
fieldset[disabled] .btn-link {
|
759 |
-
background-color: transparent;
|
760 |
-
-webkit-box-shadow: none;
|
761 |
-
box-shadow: none;
|
762 |
-
}
|
763 |
-
.btn-link,
|
764 |
-
.btn-link:hover,
|
765 |
-
.btn-link:focus,
|
766 |
-
.btn-link:active {
|
767 |
-
border-color: transparent;
|
768 |
-
}
|
769 |
-
.btn-link:hover,
|
770 |
-
.btn-link:focus {
|
771 |
-
color: #2a6496;
|
772 |
-
text-decoration: underline;
|
773 |
-
background-color: transparent;
|
774 |
-
}
|
775 |
-
.btn-link[disabled]:hover,
|
776 |
-
fieldset[disabled] .btn-link:hover,
|
777 |
-
.btn-link[disabled]:focus,
|
778 |
-
fieldset[disabled] .btn-link:focus {
|
779 |
-
color: #999;
|
780 |
-
text-decoration: none;
|
781 |
-
}
|
782 |
-
.btn-lg,
|
783 |
-
.btn-group-lg > .btn {
|
784 |
padding: 10px 16px;
|
785 |
font-size: 18px;
|
786 |
line-height: 1.33;
|
787 |
border-radius: 6px;
|
788 |
text-decoration: none;
|
789 |
}
|
790 |
-
.btn-sm,
|
791 |
-
.btn-group-sm > .btn {
|
792 |
-
padding: 5px 10px;
|
793 |
-
font-size: 12px;
|
794 |
-
line-height: 1.5;
|
795 |
-
border-radius: 3px;
|
796 |
-
text-decoration: none;
|
797 |
-
}
|
798 |
-
.btn-xs,
|
799 |
-
.btn-group-xs > .btn {
|
800 |
-
padding: 1px 5px;
|
801 |
-
font-size: 12px;
|
802 |
-
line-height: 1.5;
|
803 |
-
border-radius: 3px;
|
804 |
-
}
|
805 |
-
.btn-block {
|
806 |
-
display: block;
|
807 |
-
width: 100%;
|
808 |
-
padding-right: 0;
|
809 |
-
padding-left: 0;
|
810 |
-
}
|
811 |
-
.btn-block + .btn-block {
|
812 |
-
margin-top: 5px;
|
813 |
-
}
|
814 |
-
input[type="submit"].btn-block,
|
815 |
-
input[type="reset"].btn-block,
|
816 |
-
input[type="button"].btn-block {
|
817 |
-
width: 100%;
|
818 |
-
}
|
819 |
|
820 |
-
.
|
821 |
-
|
822 |
}
|
823 |
-
.
|
824 |
-
|
825 |
}
|
826 |
-
.
|
827 |
-
|
828 |
}
|
829 |
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
margin-bottom: 20px;
|
834 |
}
|
835 |
-
|
836 |
-
.
|
837 |
-
|
838 |
-
|
839 |
-
.table > tbody > tr > td,
|
840 |
-
.table > tfoot > tr > td {
|
841 |
-
padding: 8px;
|
842 |
-
line-height: 1.42857143;
|
843 |
-
vertical-align: top;
|
844 |
-
border-top: 1px solid #ddd;
|
845 |
-
}
|
846 |
-
.table > thead > tr > th {
|
847 |
-
vertical-align: bottom;
|
848 |
-
border-bottom: 0px solid #ddd;
|
849 |
-
text-align: left;
|
850 |
-
}
|
851 |
-
.table > caption + thead > tr:first-child > th,
|
852 |
-
.table > colgroup + thead > tr:first-child > th,
|
853 |
-
.table > thead:first-child > tr:first-child > th,
|
854 |
-
.table > caption + thead > tr:first-child > td,
|
855 |
-
.table > colgroup + thead > tr:first-child > td,
|
856 |
-
.table > thead:first-child > tr:first-child > td {
|
857 |
-
border-top: 0;
|
858 |
-
}
|
859 |
-
.table > tbody + tbody {
|
860 |
-
border-top: 2px solid #ddd;
|
861 |
-
}
|
862 |
-
.table .table {
|
863 |
-
background-color: #fff;
|
864 |
}
|
865 |
-
|
866 |
-
.
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
|
|
|
|
872 |
}
|
873 |
|
|
|
|
|
|
|
|
|
874 |
|
875 |
-
.
|
876 |
-
|
|
|
877 |
}
|
878 |
-
|
879 |
-
|
|
|
880 |
}
|
881 |
-
|
882 |
-
|
|
|
|
|
883 |
}
|
|
|
|
|
|
|
|
217 |
.alert > p + p {
|
218 |
margin-top: 5px;
|
219 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
.alert-warning {
|
221 |
color: #8a6d3b;
|
222 |
background-color: #fcf8e3;
|
240 |
color: #843534;
|
241 |
}
|
242 |
|
243 |
+
label.mailmunch-form-label {
|
244 |
display: inline-block;
|
245 |
margin-bottom: 5px;
|
246 |
font-weight: bold;
|
247 |
}
|
248 |
+
.mailmunch-form-control {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
display: block;
|
250 |
width: 400px;
|
251 |
height: 34px;
|
262 |
-webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
263 |
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
264 |
}
|
265 |
+
.mailmunch-form-control:focus {
|
266 |
border-color: #66afe9;
|
267 |
outline: 0;
|
268 |
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
|
269 |
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
|
270 |
}
|
271 |
+
.mailmunch-form-control::-moz-placeholder {
|
272 |
color: #999;
|
273 |
opacity: 1;
|
274 |
}
|
275 |
+
.mailmunch-form-control:-ms-input-placeholder {
|
276 |
color: #999;
|
277 |
}
|
278 |
+
.mailmunch-form-control::-webkit-input-placeholder {
|
279 |
color: #999;
|
280 |
}
|
281 |
+
|
282 |
+
.mailmunch-form-group {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
margin-bottom: 15px;
|
284 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
|
286 |
+
.mailmunch-btn {
|
|
|
287 |
display: inline-block;
|
288 |
padding: 6px 12px;
|
289 |
margin-bottom: 0;
|
303 |
border-radius: 4px;
|
304 |
text-decoration: none;
|
305 |
}
|
306 |
+
.mailmunch-btn:focus,
|
307 |
+
.mailmunch-btn:active:focus,
|
308 |
+
.mailmunch-btn.active:focus {
|
309 |
outline: thin dotted;
|
310 |
outline: 5px auto -webkit-focus-ring-color;
|
311 |
outline-offset: -2px;
|
312 |
}
|
313 |
+
.mailmunch-btn:hover,
|
314 |
+
.mailmunch-btn:focus {
|
315 |
color: #333;
|
316 |
text-decoration: none;
|
317 |
}
|
318 |
+
.mailmunch-btn:active,
|
319 |
+
.mailmunch-btn.active {
|
320 |
background-image: none;
|
321 |
outline: 0;
|
322 |
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
323 |
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
324 |
}
|
325 |
+
.mailmunch-btn-success {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
color: #fff;
|
327 |
background-color: #5cb85c;
|
328 |
border-color: #4cae4c;
|
329 |
}
|
330 |
+
.mailmunch-btn-success:hover,
|
331 |
+
.mailmunch-btn-success:focus,
|
332 |
+
.mailmunch-btn-success:active,
|
333 |
+
.mailmunch-btn-success.active {
|
|
|
334 |
color: #fff;
|
335 |
background-color: #47a447;
|
336 |
border-color: #398439;
|
337 |
}
|
338 |
+
.mailmunch-btn-success:active,
|
339 |
+
.mailmunch-btn-success.active {
|
|
|
340 |
background-image: none;
|
341 |
}
|
342 |
+
.mailmunch-btn-success .badge {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
color: #5cb85c;
|
344 |
background-color: #fff;
|
345 |
}
|
346 |
+
.mailmunch-btn-lg {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
347 |
padding: 10px 16px;
|
348 |
font-size: 18px;
|
349 |
line-height: 1.33;
|
350 |
border-radius: 6px;
|
351 |
text-decoration: none;
|
352 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
353 |
|
354 |
+
.pull-right {
|
355 |
+
float: right !important;
|
356 |
}
|
357 |
+
.pull-left {
|
358 |
+
float: left !important;
|
359 |
}
|
360 |
+
.clearfix {
|
361 |
+
clear: both;
|
362 |
}
|
363 |
|
364 |
+
.mailmunch-review-logo {
|
365 |
+
float: left;
|
366 |
+
margin-right: 15px;
|
|
|
367 |
}
|
368 |
+
|
369 |
+
.mailmunch-review-logo img {
|
370 |
+
max-width: 80px;
|
371 |
+
max-height: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
372 |
}
|
373 |
+
|
374 |
+
.mailmunch-review-notice {
|
375 |
+
border-left: 4px solid #11a1ec;
|
376 |
+
background: #fefefe;
|
377 |
+
padding: 10px 15px 1px;
|
378 |
+
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
|
379 |
+
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
|
380 |
+
margin: 15px 25px 20px 5px;
|
381 |
+
min-height: 100px;
|
382 |
}
|
383 |
|
384 |
+
.mailmunch-review-notice .mailmunch-buttons {
|
385 |
+
margin-top: 15px;
|
386 |
+
margin-bottom: 10px;
|
387 |
+
}
|
388 |
|
389 |
+
.mailmunch-review-notice .mailmunch-buttons .dashicons {
|
390 |
+
font-size: 14px;
|
391 |
+
line-height: 1.9;
|
392 |
}
|
393 |
+
|
394 |
+
.mailmunch-review-notice .mailmunch-buttons .dashicons-star-filled {
|
395 |
+
color: #e6bb00;
|
396 |
}
|
397 |
+
|
398 |
+
.mailmunch-review-notice .mailmunch-buttons .dashicons-no-alt {
|
399 |
+
color: rgb(220, 58, 58);
|
400 |
+
line-height: 2;
|
401 |
}
|
402 |
+
|
403 |
+
.mailmunch-review-notice .mailmunch-buttons a {
|
404 |
+
margin-right: 10px;
|
405 |
+
}
|
admin/partials/mailchimp-mailmunch-modals.php
CHANGED
@@ -21,28 +21,28 @@
|
|
21 |
<div class="alert alert-danger signup-alert" role="alert">Account with this email already exists. Please sign in using your password.</div>
|
22 |
|
23 |
<form action="" method="POST" id="signup_form">
|
24 |
-
<div class="form-group">
|
25 |
-
<label>Wordpress Name</label>
|
26 |
-
<input type="text" placeholder="Site Name" name="site_name" value="<?php echo get_bloginfo(); ?>" class="form-control">
|
27 |
</div>
|
28 |
|
29 |
-
<div class="form-group">
|
30 |
-
<label>Wordpress URL</label>
|
31 |
-
<input type="text" placeholder="Site URL" name="site_url" value="<?php echo home_url() ?>" class="form-control">
|
32 |
</div>
|
33 |
|
34 |
-
<div class="form-group">
|
35 |
-
<label>Email Address</label>
|
36 |
-
<input type="email" placeholder="Email Address" name="email" value="<?php echo wp_get_current_user()->user_email; ?>" class="form-control">
|
37 |
</div>
|
38 |
|
39 |
-
<div class="form-group">
|
40 |
-
<label>Password</label>
|
41 |
-
<input type="password" placeholder="Password" name="password" class="form-control" />
|
42 |
</div>
|
43 |
|
44 |
-
<div class="form-group">
|
45 |
-
<input type="submit" value="Sign Up »" class="btn btn-success btn-lg" />
|
46 |
</div>
|
47 |
</form>
|
48 |
</div>
|
@@ -59,17 +59,17 @@
|
|
59 |
<div class="form-container">
|
60 |
<form action="" method="POST" id="signin_form">
|
61 |
|
62 |
-
<div class="form-group">
|
63 |
-
<label>Email Address</label>
|
64 |
-
<input type="email" placeholder="Email Address" name="email" class="form-control" value="" />
|
65 |
</div>
|
66 |
-
<div class="form-group">
|
67 |
-
<label>Password</label>
|
68 |
-
<input type="password" placeholder="Password" name="password" class="form-control" />
|
69 |
</div>
|
70 |
|
71 |
-
<div class="form-group">
|
72 |
-
<input type="submit" value="Sign In »" class="btn btn-success btn-lg" />
|
73 |
</div>
|
74 |
</form>
|
75 |
</div>
|
21 |
<div class="alert alert-danger signup-alert" role="alert">Account with this email already exists. Please sign in using your password.</div>
|
22 |
|
23 |
<form action="" method="POST" id="signup_form">
|
24 |
+
<div class="mailmunch-form-group">
|
25 |
+
<label class="mailmunch-form-label">Wordpress Name</label>
|
26 |
+
<input type="text" placeholder="Site Name" name="site_name" value="<?php echo get_bloginfo(); ?>" class="mailmunch-form-control">
|
27 |
</div>
|
28 |
|
29 |
+
<div class="mailmunch-form-group">
|
30 |
+
<label class="mailmunch-form-label">Wordpress URL</label>
|
31 |
+
<input type="text" placeholder="Site URL" name="site_url" value="<?php echo home_url() ?>" class="mailmunch-form-control">
|
32 |
</div>
|
33 |
|
34 |
+
<div class="mailmunch-form-group">
|
35 |
+
<label class="mailmunch-form-label">Email Address</label>
|
36 |
+
<input type="email" placeholder="Email Address" name="email" value="<?php echo wp_get_current_user()->user_email; ?>" class="mailmunch-form-control">
|
37 |
</div>
|
38 |
|
39 |
+
<div class="mailmunch-form-group">
|
40 |
+
<label class="mailmunch-form-label">Password</label>
|
41 |
+
<input type="password" placeholder="Password" name="password" class="mailmunch-form-control" />
|
42 |
</div>
|
43 |
|
44 |
+
<div class="mailmunch-form-group">
|
45 |
+
<input type="submit" value="Sign Up »" class="mailmunch-btn mailmunch-btn-success mailmunch-btn-lg" />
|
46 |
</div>
|
47 |
</form>
|
48 |
</div>
|
59 |
<div class="form-container">
|
60 |
<form action="" method="POST" id="signin_form">
|
61 |
|
62 |
+
<div class="mailmunch-form-group">
|
63 |
+
<label class="mailmunch-form-label">Email Address</label>
|
64 |
+
<input type="email" placeholder="Email Address" name="email" class="mailmunch-form-control" value="" />
|
65 |
</div>
|
66 |
+
<div class="mailmunch-form-group">
|
67 |
+
<label class="mailmunch-form-label">Password</label>
|
68 |
+
<input type="password" placeholder="Password" name="password" class="mailmunch-form-control" />
|
69 |
</div>
|
70 |
|
71 |
+
<div class="mailmunch-form-group">
|
72 |
+
<input type="submit" value="Sign In »" class="mailmunch-btn mailmunch-btn-success mailmunch-btn-lg" />
|
73 |
</div>
|
74 |
</form>
|
75 |
</div>
|
includes/class-mailchimp-mailmunch.php
CHANGED
@@ -18,7 +18,8 @@ define( 'MAILCHIMP_MAILMUNCH_URL', "http://wordpress.mailmunch.co" );
|
|
18 |
define( 'MAILCHIMP_MAILMUNCH_HOME_URL', "http://app.mailmunch.co" );
|
19 |
define( 'MAILCHIMP_MAILMUNCH_SLUG', "mailchimp-mailmunch" );
|
20 |
define( 'MAILCHIMP_MAILMUNCH_PREFIX', 'mc_mm' );
|
21 |
-
define( '
|
|
|
22 |
|
23 |
/**
|
24 |
* The core plugin class.
|
@@ -189,12 +190,17 @@ class Mailchimp_Mailmunch {
|
|
189 |
*/
|
190 |
private function define_admin_hooks() {
|
191 |
|
192 |
-
$plugin_admin = new Mailchimp_Mailmunch_Admin( $this->get_plugin_name(), $this->
|
193 |
|
194 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
|
195 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
|
196 |
$this->loader->add_action( 'admin_menu', $plugin_admin, 'menu' );
|
197 |
$this->loader->add_action( 'admin_init', $plugin_admin, 'activation_redirect' );
|
|
|
|
|
|
|
|
|
|
|
198 |
|
199 |
// Ajax calls
|
200 |
$this->loader->add_action( 'wp_ajax_sign_up', $plugin_admin, 'sign_up' );
|
@@ -261,7 +267,7 @@ class Mailchimp_Mailmunch {
|
|
261 |
* @since 2.0.0
|
262 |
* @return string The name of the plugin.
|
263 |
*/
|
264 |
-
public function
|
265 |
return $this->integration_name;
|
266 |
}
|
267 |
|
18 |
define( 'MAILCHIMP_MAILMUNCH_HOME_URL', "http://app.mailmunch.co" );
|
19 |
define( 'MAILCHIMP_MAILMUNCH_SLUG', "mailchimp-mailmunch" );
|
20 |
define( 'MAILCHIMP_MAILMUNCH_PREFIX', 'mc_mm' );
|
21 |
+
define( 'MAILCHIMP_MAILMUNCH_PLUGIN_DIRECTORY', 'mailchimp-forms-by-mailmunch' );
|
22 |
+
define( 'MAILCHIMP_MAILMUNCH_VERSION', '2.1.4' );
|
23 |
|
24 |
/**
|
25 |
* The core plugin class.
|
190 |
*/
|
191 |
private function define_admin_hooks() {
|
192 |
|
193 |
+
$plugin_admin = new Mailchimp_Mailmunch_Admin( $this->get_plugin_name(), $this->get_integration_name(), $this->get_version() );
|
194 |
|
195 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
|
196 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
|
197 |
$this->loader->add_action( 'admin_menu', $plugin_admin, 'menu' );
|
198 |
$this->loader->add_action( 'admin_init', $plugin_admin, 'activation_redirect' );
|
199 |
+
$this->loader->add_action( 'admin_init', $plugin_admin, 'check_installation_date' );
|
200 |
+
|
201 |
+
// Review Notice
|
202 |
+
$this->loader->add_action( 'admin_init', $plugin_admin, 'dismiss_review_notice' );
|
203 |
+
$this->loader->add_action( 'admin_notices', $plugin_admin, 'review_us_notice' );
|
204 |
|
205 |
// Ajax calls
|
206 |
$this->loader->add_action( 'wp_ajax_sign_up', $plugin_admin, 'sign_up' );
|
267 |
* @since 2.0.0
|
268 |
* @return string The name of the plugin.
|
269 |
*/
|
270 |
+
public function get_integration_name() {
|
271 |
return $this->integration_name;
|
272 |
}
|
273 |
|
mailchimp-mailmunch.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: MailChimp Forms by MailMunch
|
17 |
* Plugin URI: http://connect.mailchimp.com/integrations/mailmunch-email-list-builder
|
18 |
* Description: The MailChimp plugin allows you to quickly and easily add signup forms for your MailChimp lists. Popup, Embedded, Top Bar and a variety of different options available.
|
19 |
-
* Version: 2.1.
|
20 |
* Author: MailMunch
|
21 |
* Author URI: http://www.mailmunch.co
|
22 |
* License: GPL-2.0+
|
16 |
* Plugin Name: MailChimp Forms by MailMunch
|
17 |
* Plugin URI: http://connect.mailchimp.com/integrations/mailmunch-email-list-builder
|
18 |
* Description: The MailChimp plugin allows you to quickly and easily add signup forms for your MailChimp lists. Popup, Embedded, Top Bar and a variety of different options available.
|
19 |
+
* Version: 2.1.4
|
20 |
* Author: MailMunch
|
21 |
* Author URI: http://www.mailmunch.co
|
22 |
* License: GPL-2.0+
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== MailChimp Forms by MailMunch ===
|
2 |
-
Contributors: mailmunch
|
3 |
Tags: mailchimp,mailchimp form,mailchimp newsletter,mailchimp plugin,newsletter,newsletter form, optin form, form, mailchimp signup, mailchimp signup forms, signup form, mailchimp widget, email form, leads, mailchimp subscribe
|
4 |
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -18,16 +18,20 @@ What is [MailChimp](http://www.mailchimp.com/)? MailChimp is one of the best ema
|
|
18 |
|
19 |
[vimeo http://vimeo.com/117103275]
|
20 |
|
21 |
-
Our improved signup plugin for MailChimp will proactively sign-up new subscribers to your MailChimp newsletter list. Our MailChimp forms offer the same basic features that MailChimp's official plugin, but also much more. In addition to the form, analytics will help you track the number of form views and subscriptions.
|
22 |
|
23 |
= Sign-Up Forms =
|
24 |
-
|
|
|
|
|
|
|
|
|
25 |
|
26 |
= Features =
|
27 |
* Mobile optimized MailChimp form
|
28 |
* Easier sign-ups to your MailChimp newsletter
|
29 |
* Automatic synching with your MailChimp account
|
30 |
-
* Beautiful
|
31 |
* Complete Integration of MailChimp into WordPress
|
32 |
* Easily import MailChimp forms from an active MailChimp account
|
33 |
* Monitor MailChimp account activity
|
@@ -40,6 +44,20 @@ Easily create sign-up forms for your MailChimp list and display it as a popup, e
|
|
40 |
* View individual MailChimp form subscriber count
|
41 |
* Display multiple MailChimp forms on a single page
|
42 |
* Easily add MailChimp forms to pages and posts with a button in the page/post editor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
After installation and creating your account, the plugin will guide you through connecting with MailChimp, selecting your MailChimp list, and then adding the MailChimp form to your site. The time from starting installation to have the form on your site should be less than 5 minutes - absolutely everything can be done via our user friendly GUI - no file editing at all!
|
45 |
|
@@ -94,7 +112,7 @@ Absolutely not. MailChimp by MailMunch is designed with high performance and sca
|
|
94 |
Most people see a 100% to 500% growth in their MailChimp email subscribers.
|
95 |
|
96 |
= How to display a MailChimp form in my template files? =
|
97 |
-
You can display shortcodes using `echo do_shortcode([SHORTCODE])`.
|
98 |
|
99 |
Example:
|
100 |
`<?php echo do_shortcode( '[mailmunch-form id=79669]' ) ?>`
|
@@ -126,6 +144,15 @@ MailChimp provides complete analytics on your MailChimp forms and MailChimp subs
|
|
126 |
= How is this MailChimp plugin better than other MailChimp plugins? =
|
127 |
This MailChimp plugin is the easiest, fastest and best form builder. Try other MailChimp plugins and then try ours.
|
128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
== Other Notes ==
|
130 |
|
131 |
Our MailChimp email newsletter list builder helps WordPress users build their audiences on MailChimp.
|
@@ -163,6 +190,18 @@ With MailChimp you can build a list of email subscribers. MailChimp allows you t
|
|
163 |
|
164 |
== Changelog ==
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
= MailChimp Forms 2.1.2 =
|
167 |
* Fixed MailChimp typo
|
168 |
|
@@ -207,12 +246,67 @@ With MailChimp you can build a list of email subscribers. MailChimp allows you t
|
|
207 |
= MailChimp Forms 1.0.9 =
|
208 |
* Faster MailChimp forms
|
209 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
= MailChimp Forms 1.0.5 =
|
211 |
* More MailChimp features
|
212 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
= MailChimp Forms 1.0.1 =
|
214 |
* The first version of MailChimp Forms WordPress plugin by MailMunch
|
215 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
= MailChimp Playground (2015-10-22) =
|
217 |
* MailChimp Forms API playground
|
218 |
|
1 |
=== MailChimp Forms by MailMunch ===
|
2 |
+
Contributors: mailmunch, lizgannes
|
3 |
Tags: mailchimp,mailchimp form,mailchimp newsletter,mailchimp plugin,newsletter,newsletter form, optin form, form, mailchimp signup, mailchimp signup forms, signup form, mailchimp widget, email form, leads, mailchimp subscribe
|
4 |
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 4.5
|
7 |
+
Stable tag: 2.1.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
18 |
|
19 |
[vimeo http://vimeo.com/117103275]
|
20 |
|
21 |
+
Our improved signup plugin for MailChimp will proactively sign-up new subscribers to your MailChimp newsletter list. Our MailChimp forms offer the same basic features that MailChimp's official plugin, but also much more. In addition to the form, analytics will help you track the number of MailChimp form views and subscriptions.
|
22 |
|
23 |
= Sign-Up Forms =
|
24 |
+
* MailChimp Popup with Exit
|
25 |
+
* MailChimp Embedded
|
26 |
+
* MailChimp Sidebar Widget
|
27 |
+
* MailChimp Top Bar
|
28 |
+
* MailChimp Scroll Box
|
29 |
|
30 |
= Features =
|
31 |
* Mobile optimized MailChimp form
|
32 |
* Easier sign-ups to your MailChimp newsletter
|
33 |
* Automatic synching with your MailChimp account
|
34 |
+
* Beautiful themes for your Mailchimp newsletter sign-up form
|
35 |
* Complete Integration of MailChimp into WordPress
|
36 |
* Easily import MailChimp forms from an active MailChimp account
|
37 |
* Monitor MailChimp account activity
|
44 |
* View individual MailChimp form subscriber count
|
45 |
* Display multiple MailChimp forms on a single page
|
46 |
* Easily add MailChimp forms to pages and posts with a button in the page/post editor
|
47 |
+
* Custom CSS for MailChimp form
|
48 |
+
* View your MailChimp list statistics
|
49 |
+
* Customize MailChimp submit button text
|
50 |
+
* Add MailChimp form to widget areas
|
51 |
+
* Exit monitoring for MailChimp forms
|
52 |
+
* Connect your MailChimp account in seconds
|
53 |
+
* Content gate for MailChimp forms
|
54 |
+
* MailChimp automation supported
|
55 |
+
* A/B test MailChimp forms
|
56 |
+
|
57 |
+
= Why MailChimp? =
|
58 |
+
Your MailChimp list is one of your most important assets, no matter if you're a blogger, marketer or small business owner. MailChimp Forms by MailMunch will build great looking forms that convert.
|
59 |
+
|
60 |
+
MailChimp Forms by MailMunch is a super-fast tool that lets you build beautiful looking MailChimp forms to maximize conversions and grow your MailChimp list.
|
61 |
|
62 |
After installation and creating your account, the plugin will guide you through connecting with MailChimp, selecting your MailChimp list, and then adding the MailChimp form to your site. The time from starting installation to have the form on your site should be less than 5 minutes - absolutely everything can be done via our user friendly GUI - no file editing at all!
|
63 |
|
112 |
Most people see a 100% to 500% growth in their MailChimp email subscribers.
|
113 |
|
114 |
= How to display a MailChimp form in my template files? =
|
115 |
+
You can display MailChimp shortcodes using `echo do_shortcode([SHORTCODE])`.
|
116 |
|
117 |
Example:
|
118 |
`<?php echo do_shortcode( '[mailmunch-form id=79669]' ) ?>`
|
144 |
= How is this MailChimp plugin better than other MailChimp plugins? =
|
145 |
This MailChimp plugin is the easiest, fastest and best form builder. Try other MailChimp plugins and then try ours.
|
146 |
|
147 |
+
= How do I change the MailChimp submit button text? =
|
148 |
+
Edit your MailChimp form and go to the "Fields" step. Update the MailChimp submit button text.
|
149 |
+
|
150 |
+
= How do I add new MailChimp fields to my form? =
|
151 |
+
Edit your MailChimp form and go to the "Fields" step. Click add new MailChimp field.
|
152 |
+
|
153 |
+
= How do I change the MailChimp field labels? =
|
154 |
+
Edit your MailChimp form and go to the "Fields" step. Edit the MailChimp field and update the label.
|
155 |
+
|
156 |
== Other Notes ==
|
157 |
|
158 |
Our MailChimp email newsletter list builder helps WordPress users build their audiences on MailChimp.
|
190 |
|
191 |
== Changelog ==
|
192 |
|
193 |
+
= MailChimp Forms (2016-05-16) =
|
194 |
+
* Redesigned subscribers page
|
195 |
+
* Improved MailChimp search
|
196 |
+
|
197 |
+
= MailChimp Forms 2.1.4 =
|
198 |
+
* MailChimp feedback notice
|
199 |
+
* MailChimp styling fix
|
200 |
+
* MailChimp WordPress 4.4
|
201 |
+
|
202 |
+
= MailChimp Forms 2.1.3 =
|
203 |
+
* MailChimp easy activation
|
204 |
+
|
205 |
= MailChimp Forms 2.1.2 =
|
206 |
* Fixed MailChimp typo
|
207 |
|
246 |
= MailChimp Forms 1.0.9 =
|
247 |
* Faster MailChimp forms
|
248 |
|
249 |
+
= MailChimp Forms 1.0.8 =
|
250 |
+
* Fixed multiple MailChimp forms conflict
|
251 |
+
|
252 |
+
= MailChimp Forms 1.0.7 =
|
253 |
+
* MailChimp confirmation email
|
254 |
+
|
255 |
+
= MailChimp Forms 1.0.6 =
|
256 |
+
* Fixed MailChimp double opt-in
|
257 |
+
|
258 |
= MailChimp Forms 1.0.5 =
|
259 |
* More MailChimp features
|
260 |
|
261 |
+
= MailChimp Forms 1.0.4 =
|
262 |
+
* Fixed subscribers not showing on MailChimp
|
263 |
+
|
264 |
+
= MailChimp Forms 1.0.3 =
|
265 |
+
* Added scroll box left position
|
266 |
+
|
267 |
+
= MailChimp Forms 1.0.2 =
|
268 |
+
* Few bug fixes with MailChimp API
|
269 |
+
|
270 |
= MailChimp Forms 1.0.1 =
|
271 |
* The first version of MailChimp Forms WordPress plugin by MailMunch
|
272 |
|
273 |
+
= MailChimp Forms 0.9 =
|
274 |
+
* Final preperation of initial release
|
275 |
+
* Added new MailChimp API tokens
|
276 |
+
|
277 |
+
= MailChimp Forms 0.8 =
|
278 |
+
* Fixed MailChimp list selection bug
|
279 |
+
|
280 |
+
= MailChimp Forms 0.7 =
|
281 |
+
* Beta release
|
282 |
+
|
283 |
+
= MailChimp Forms 0.6 =
|
284 |
+
* MailChimp API updated
|
285 |
+
|
286 |
+
= MailChimp Forms 0.5 =
|
287 |
+
* Fixed UI issues from user feedback
|
288 |
+
|
289 |
+
= MailChimp Forms 0.4 =
|
290 |
+
* Alpha release for Public
|
291 |
+
|
292 |
+
= MailChimp Forms 0.3 =
|
293 |
+
* MailChimp API updated
|
294 |
+
|
295 |
+
= MailChimp Forms 0.2 =
|
296 |
+
* Fixed few MailChimp connection issues
|
297 |
+
|
298 |
+
= MailChimp Forms 0.1 =
|
299 |
+
* Alpha release for internal testing
|
300 |
+
|
301 |
+
= MailChimp Release (2016-02-10) =
|
302 |
+
* MailChimp Inbox Preview
|
303 |
+
* MailChimp API Improvements
|
304 |
+
|
305 |
+
= MailChimp 10.6 (2015-11-18) =
|
306 |
+
* MailChimp Pro Features
|
307 |
+
* MailChimp Automation and Workflow
|
308 |
+
* RSS Campaigns by MailChimp
|
309 |
+
|
310 |
= MailChimp Playground (2015-10-22) =
|
311 |
* MailChimp Forms API playground
|
312 |
|
uninstall.php
CHANGED
@@ -35,4 +35,6 @@ delete_option('mc_mm_site_id');
|
|
35 |
delete_option('mc_mm_mailchimp_access_token');
|
36 |
delete_option('mc_mm_mailchimp_list_id');
|
37 |
delete_option('mc_mm_skip_onboarding');
|
38 |
-
delete_option('mc_mm_activation_redirect');
|
|
|
|
35 |
delete_option('mc_mm_mailchimp_access_token');
|
36 |
delete_option('mc_mm_mailchimp_list_id');
|
37 |
delete_option('mc_mm_skip_onboarding');
|
38 |
+
delete_option('mc_mm_activation_redirect');
|
39 |
+
delete_option('mc_mm_activation_date');
|
40 |
+
delete_option('mc_mm_dismiss_review_notice');
|