WP Maintenance Mode / Coming Soon Page Builder - Version 3.9

Version Description

Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 WP Maintenance Mode / Coming Soon Page Builder
Version 3.9
Comparing to
See all releases

Code changes from version 3.2 to 3.9

Files changed (119) hide show
  1. config.php +4 -2
  2. css/admin-settings.css +109 -21
  3. css/colorpicker.js +51 -51
  4. images/fake-logo.png +0 -0
  5. images/fb.png +0 -0
  6. images/instagram.png +0 -0
  7. images/pinterest.png +0 -0
  8. images/pro-themes/aeroplane-company.jpg +0 -0
  9. images/pro-themes/air-balloon.jpg +0 -0
  10. images/pro-themes/animated-clock.jpg +0 -0
  11. images/pro-themes/architecture.jpg +0 -0
  12. images/pro-themes/auto-service.jpg +0 -0
  13. images/pro-themes/beach.jpg +0 -0
  14. images/pro-themes/bicycle-race.jpg +0 -0
  15. images/pro-themes/bike-shop.jpg +0 -0
  16. images/pro-themes/bitcoin-miners.jpg +0 -0
  17. images/pro-themes/blogging.jpg +0 -0
  18. images/pro-themes/book-lovers.jpg +0 -0
  19. images/pro-themes/business-company.jpg +0 -0
  20. images/pro-themes/business.jpg +0 -0
  21. images/pro-themes/cafe.jpg +0 -0
  22. images/pro-themes/city-nighttime.jpg +0 -0
  23. images/pro-themes/cityscape.jpg +0 -0
  24. images/pro-themes/clouds-screensaver-video.jpg +0 -0
  25. images/pro-themes/coffee-shop.jpg +0 -0
  26. images/pro-themes/cold-lake.jpg +0 -0
  27. images/pro-themes/computer-repair-service.jpg +0 -0
  28. images/pro-themes/concert.jpg +0 -0
  29. images/pro-themes/conference-event.jpg +0 -0
  30. images/pro-themes/custom-decor.jpg +0 -0
  31. images/pro-themes/default.jpg +0 -0
  32. images/pro-themes/dental-clinic.jpg +0 -0
  33. images/pro-themes/dog-shelter.jpg +0 -0
  34. images/pro-themes/dog-training-and-behavior-consulting.jpg +0 -0
  35. images/pro-themes/employment.jpg +0 -0
  36. images/pro-themes/essay-writing-service.jpg +0 -0
  37. images/pro-themes/fall-video.jpg +0 -0
  38. images/pro-themes/fashion.jpg +0 -0
  39. images/pro-themes/financial-district.jpg +0 -0
  40. images/pro-themes/flower-shop.jpg +0 -0
  41. images/pro-themes/food-blog.jpg +0 -0
  42. images/pro-themes/football.jpg +0 -0
  43. images/pro-themes/frozen-nature.jpg +0 -0
  44. images/pro-themes/future-technology.jpg +0 -0
  45. images/pro-themes/halloween.jpg +0 -0
  46. images/pro-themes/holiday-resort.jpg +0 -0
  47. images/pro-themes/homemade-chocolate-gifts.jpg +0 -0
  48. images/pro-themes/ice-cream-shop.jpg +0 -0
  49. images/pro-themes/interior-design.jpg +0 -0
  50. images/pro-themes/journey-video.jpg +0 -0
  51. images/pro-themes/ladies-accessories.jpg +0 -0
  52. images/pro-themes/lego-bricks.jpg +0 -0
  53. images/pro-themes/loneliness.jpg +0 -0
  54. images/pro-themes/lonely-road.jpg +0 -0
  55. images/pro-themes/luxury-car.jpg +0 -0
  56. images/pro-themes/maintenance-mode.jpg +0 -0
  57. images/pro-themes/makeup-artist-training.jpg +0 -0
  58. images/pro-themes/misty-forest-video.jpg +0 -0
  59. images/pro-themes/mobile-designer.jpg +0 -0
  60. images/pro-themes/mobile-meeting.jpg +0 -0
  61. images/pro-themes/modern-blog.jpg +0 -0
  62. images/pro-themes/modern-office.jpg +0 -0
  63. images/pro-themes/modern-recipes.jpg +0 -0
  64. images/pro-themes/mountain-slide.jpg +0 -0
  65. images/pro-themes/mountain.jpg +0 -0
  66. images/pro-themes/movie-trailer-video.jpg +0 -0
  67. images/pro-themes/nature.jpg +0 -0
  68. images/pro-themes/office-meeting-video.jpg +0 -0
  69. images/pro-themes/office-theme.jpg +0 -0
  70. images/pro-themes/online-learning.jpg +0 -0
  71. images/pro-themes/pancake-house.jpg +0 -0
  72. images/pro-themes/parenting.jpg +0 -0
  73. images/pro-themes/passage.jpg +0 -0
  74. images/pro-themes/peaceful-river.jpg +0 -0
  75. images/pro-themes/personal-trainer.jpg +0 -0
  76. images/pro-themes/photography.jpg +0 -0
  77. images/pro-themes/romantic-travels.jpg +0 -0
  78. images/pro-themes/running-blog.jpg +0 -0
  79. images/pro-themes/running-video.jpg +0 -0
  80. images/pro-themes/scholar-university.jpg +0 -0
  81. images/pro-themes/shoes-store.jpg +0 -0
  82. images/pro-themes/simple-beige-design.jpg +0 -0
  83. images/pro-themes/snow-screensaver-video.jpg +0 -0
  84. images/pro-themes/snowboarding-blog.jpg +0 -0
  85. images/pro-themes/snowy-mountain.jpg +0 -0
  86. images/pro-themes/snowy-oasis.jpg +0 -0
  87. images/pro-themes/social-media-service.jpg +0 -0
  88. images/pro-themes/spa-beauty-studio.jpg +0 -0
  89. images/pro-themes/spring.jpg +0 -0
  90. images/pro-themes/startup.jpg +0 -0
  91. images/pro-themes/stylish-workplace.jpg +0 -0
  92. images/pro-themes/technology.jpg +0 -0
  93. images/pro-themes/the-big-city-newsletter.jpg +0 -0
  94. images/pro-themes/the-sunny-view.jpg +0 -0
  95. images/pro-themes/travel-agency.jpg +0 -0
  96. images/pro-themes/travel-blog.jpg +0 -0
  97. images/pro-themes/tulips.jpg +0 -0
  98. images/pro-themes/valentines-day.jpg +0 -0
  99. images/pro-themes/video-production.jpg +0 -0
  100. images/pro-themes/virtual-assistant-service.jpg +0 -0
  101. images/pro-themes/walking-away-video.jpg +0 -0
  102. images/pro-themes/webinar.jpg +0 -0
  103. images/pro-themes/wedding-blog.jpg +0 -0
  104. images/pro-themes/white-orchids.jpg +0 -0
  105. images/pro-themes/working-out.jpg +0 -0
  106. images/pro-themes/workplace.jpg +0 -0
  107. images/pro-themes/writing-service-video.jpg +0 -0
  108. images/twitter.png +0 -0
  109. includes/classes/class-wpmmp-settings.php +53 -53
  110. includes/classes/class-wpmmp-theme-handler.php +22 -24
  111. includes/functions.php +116 -5
  112. includes/pro-themes.php +1123 -0
  113. includes/tabs.php +37 -36
  114. js/admin-settings.js +73 -60
  115. readme.txt +74 -93
  116. views/admin-settings/add-hooktohead.php +3 -3
  117. views/admin-settings/premiumui.php +83 -172
  118. views/themes/default/assets/css/style.css +6 -5
  119. wp-wpmmp.php +31 -9
config.php CHANGED
@@ -2,6 +2,8 @@
2
 
3
  define( 'WPMMP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
4
 
 
 
5
  define( 'WPMMP_PLUGIN_DIR_NAME', dirname( plugin_basename( __FILE__ ) ) );
6
 
7
  define( 'WPMMP_PLUGIN_PREFIX', 'wpmmp' );
@@ -32,6 +34,6 @@ define( 'WPMMP_PLUGIN_JS_DIRECTORY', WPMMP_PLUGIN_PATH .
32
 
33
  define( 'WPMMP_PLUGIN_MAIN_FILE', WPMMP_PLUGIN_PATH . 'wp-wpmmp.php' );
34
 
35
- define( 'WPMMP_PLUGIN_VERSION', '3.8.1' );
36
 
37
- define( 'WPMMP_FREE_VERSION_ACTIVATED', true );
2
 
3
  define( 'WPMMP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
4
 
5
+ define( 'WPMMP_PLUGIN_URL', plugins_url( '', WPMMP_PLUGIN_FILE ) );
6
+
7
  define( 'WPMMP_PLUGIN_DIR_NAME', dirname( plugin_basename( __FILE__ ) ) );
8
 
9
  define( 'WPMMP_PLUGIN_PREFIX', 'wpmmp' );
34
 
35
  define( 'WPMMP_PLUGIN_MAIN_FILE', WPMMP_PLUGIN_PATH . 'wp-wpmmp.php' );
36
 
37
+ define( 'WPMMP_PLUGIN_VERSION', '3.9' );
38
 
39
+ define( 'WPMMP_FREE_VERSION_ACTIVATED', true );
css/admin-settings.css CHANGED
@@ -124,15 +124,13 @@ table.wpmmp_input tbody tr td.label label {
124
  }
125
 
126
  #wpmmp-themes li:first-child {
127
-
128
  }
129
 
130
  #wpmmp-themes li img {
131
  width: 250px;
132
  height: 180px;
133
- -moz-box-shadow: 3px 3px 5px 6px #ccc;
134
- -webkit-box-shadow: 3px 3px 5px 6px #ccc;
135
- box-shadow: 3px 3px 5px 6px #ccc;
136
  }
137
 
138
 
@@ -141,7 +139,7 @@ table.wpmmp_input tbody tr td.label label {
141
  position: relative; width: 90px;
142
  -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
143
  }
144
- td .onoffswitch-checkbox {
145
  display: none;
146
  }
147
  .onoffswitch-label {
@@ -160,7 +158,8 @@ table.wpmmp_input tbody tr td.label label {
160
  .onoffswitch-inner:before {
161
  content: "Yes";
162
  padding-left: 10px;
163
- background-color: #34A7C1; color: #FFFFFF;
 
164
  }
165
  .onoffswitch-inner:after {
166
  content: "No";
@@ -174,39 +173,39 @@ table.wpmmp_input tbody tr td.label label {
174
  position: absolute; top: 0; bottom: 0;
175
  right: 56px;
176
  border: 2px solid #999999; border-radius: 20px;
177
- transition: all 0.1s ease-in 0s;
178
  }
179
  .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
180
  margin-left: 0;
181
  }
182
  .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
183
- right: 0px;
184
 
185
  }
186
  @font-face {
187
  font-family: 'Montserrat';
188
  font-style: normal;
189
  font-weight: 400;
190
- src: local('Montserrat-Regular'), url(http://fonts.gstatic.com/s/montserrat/v6/zhcz-_WihjSQC0oHJ9TCYPk_vArhqVIZ0nv9q090hN8.woff2) format('woff2'), url(http://fonts.gstatic.com/s/montserrat/v6/zhcz-_WihjSQC0oHJ9TCYBsxEYwM7FgeyaSgU71cLG0.woff) format('woff');
191
  }
192
 
193
  @font-face {
194
  font-family: 'Lato';
195
  font-style: normal;
196
  font-weight: 400;
197
- src: local('Lato Regular'), local('Lato-Regular'), url(http://fonts.gstatic.com/s/lato/v11/1YwB1sO8YE1Lyjf12WNiUA.woff2) format('woff2'), url(http://fonts.gstatic.com/s/lato/v11/9k-RPmcnxYEPm8CNFsH2gg.woff) format('woff');
198
  }
199
  @font-face {
200
  font-family: 'Lato';
201
  font-style: normal;
202
  font-weight: 700;
203
- src: local('Lato Bold'), local('Lato-Bold'), url(http://fonts.gstatic.com/s/lato/v11/H2DMvhDLycM56KNuAtbJYA.woff2) format('woff2'), url(http://fonts.gstatic.com/s/lato/v11/wkfQbvfT_02e2IWO3yYueQ.woff) format('woff');
204
  }
205
  @font-face {
206
  font-family: 'Lato';
207
  font-style: italic;
208
  font-weight: 400;
209
- src: local('Lato Italic'), local('Lato-Italic'), url(http://fonts.gstatic.com/s/lato/v11/PLygLKRVCQnA5fhu3qk5fQ.woff2) format('woff2'), url(http://fonts.gstatic.com/s/lato/v11/oUan5VrEkpzIazlUe5ieaA.woff) format('woff');
210
  }
211
 
212
  .onoffswitch {
@@ -219,7 +218,6 @@ transition: all 0.4s ease-in-out;
219
 
220
  b, strong {
221
  color: #666;
222
- font-size: 18px;
223
  font-weight: 700;
224
  }
225
 
@@ -240,16 +238,15 @@ b, strong {
240
  color:#777;
241
  }
242
 
243
- .wrap h1 {
244
  background: #ffba00 none repeat scroll 0 0;
245
  color: #fff;
246
  font-family: 'Montserrat',sans-serif;
247
- font-size: 42px;
248
  font-weight: 400;
249
  margin: -40px -8% 40px;
250
- padding: 40px;
251
  text-align: center;
252
- text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
253
  }
254
 
255
  .wrap h3 {
@@ -313,9 +310,9 @@ b, strong {
313
 
314
  }
315
  /*
316
- This css and associated images borrow heavily from the fantastic
317
  chosen select box plugin.
318
-
319
  Copyright (c) 2011 Harvest http://getharvest.com
320
 
321
  MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
@@ -497,7 +494,7 @@ td.font-select-active > a div b {
497
 
498
 
499
  td span#pal {
500
- top: 80px;
501
  }
502
 
503
  .heading_save_btn {
@@ -539,4 +536,95 @@ td span#pal {
539
  font-size: 20px;
540
  -webkit-font-smoothing: antialiased;
541
  font-weight: bold;
542
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  }
125
 
126
  #wpmmp-themes li:first-child {
127
+
128
  }
129
 
130
  #wpmmp-themes li img {
131
  width: 250px;
132
  height: 180px;
133
+ border: 1px solid #111;
 
 
134
  }
135
 
136
 
139
  position: relative; width: 90px;
140
  -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
141
  }
142
+ input[type="checkbox"].onoffswitch-checkbox {
143
  display: none;
144
  }
145
  .onoffswitch-label {
158
  .onoffswitch-inner:before {
159
  content: "Yes";
160
  padding-left: 10px;
161
+ background-color: #0085ba;
162
+ color: #FFFFFF;
163
  }
164
  .onoffswitch-inner:after {
165
  content: "No";
173
  position: absolute; top: 0; bottom: 0;
174
  right: 56px;
175
  border: 2px solid #999999; border-radius: 20px;
176
+ transition: all 0.1s ease-in 0s;
177
  }
178
  .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
179
  margin-left: 0;
180
  }
181
  .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
182
+ right: 0px;
183
 
184
  }
185
  @font-face {
186
  font-family: 'Montserrat';
187
  font-style: normal;
188
  font-weight: 400;
189
+ src: local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v6/zhcz-_WihjSQC0oHJ9TCYPk_vArhqVIZ0nv9q090hN8.woff2) format('woff2'), url(https://fonts.gstatic.com/s/montserrat/v6/zhcz-_WihjSQC0oHJ9TCYBsxEYwM7FgeyaSgU71cLG0.woff) format('woff');
190
  }
191
 
192
  @font-face {
193
  font-family: 'Lato';
194
  font-style: normal;
195
  font-weight: 400;
196
+ src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v11/1YwB1sO8YE1Lyjf12WNiUA.woff2) format('woff2'), url(https://fonts.gstatic.com/s/lato/v11/9k-RPmcnxYEPm8CNFsH2gg.woff) format('woff');
197
  }
198
  @font-face {
199
  font-family: 'Lato';
200
  font-style: normal;
201
  font-weight: 700;
202
+ src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v11/H2DMvhDLycM56KNuAtbJYA.woff2) format('woff2'), url(https://fonts.gstatic.com/s/lato/v11/wkfQbvfT_02e2IWO3yYueQ.woff) format('woff');
203
  }
204
  @font-face {
205
  font-family: 'Lato';
206
  font-style: italic;
207
  font-weight: 400;
208
+ src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v11/PLygLKRVCQnA5fhu3qk5fQ.woff2) format('woff2'), url(https://fonts.gstatic.com/s/lato/v11/oUan5VrEkpzIazlUe5ieaA.woff) format('woff');
209
  }
210
 
211
  .onoffswitch {
218
 
219
  b, strong {
220
  color: #666;
 
221
  font-weight: 700;
222
  }
223
 
238
  color:#777;
239
  }
240
 
241
+ #wpbody .wrap h1 {
242
  background: #ffba00 none repeat scroll 0 0;
243
  color: #fff;
244
  font-family: 'Montserrat',sans-serif;
245
+ font-size: 40px;
246
  font-weight: 400;
247
  margin: -40px -8% 40px;
248
+ padding: 25px;
249
  text-align: center;
 
250
  }
251
 
252
  .wrap h3 {
310
 
311
  }
312
  /*
313
+ This css and associated images borrow heavily from the fantastic
314
  chosen select box plugin.
315
+
316
  Copyright (c) 2011 Harvest http://getharvest.com
317
 
318
  MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
494
 
495
 
496
  td span#pal {
497
+ top: 80px;
498
  }
499
 
500
  .heading_save_btn {
536
  font-size: 20px;
537
  -webkit-font-smoothing: antialiased;
538
  font-weight: bold;
539
+ }
540
+
541
+ .submit a.button-secondary.big {
542
+ width: 30%;
543
+ height: 50px;
544
+ font-size: 20px;
545
+ -webkit-font-smoothing: antialiased;
546
+ vertical-align: top;
547
+ line-height: 45px;
548
+ }
549
+
550
+
551
+ .theme-thumb {
552
+ min-width: 150px;
553
+ display: inline-block;
554
+ margin: 15px;
555
+ width: calc(33% - 25px);
556
+ box-sizing: border-box;
557
+ background-color: #f1f1f1;
558
+ padding-bottom: 5px;
559
+ border: thin solid transparent;
560
+ position: relative;
561
+ }
562
+
563
+ .theme-thumbs-wrap .theme-thumb:nth-child(3n + 1) {
564
+ margin-left: 0;
565
+ }
566
+ .theme-thumb:hover {
567
+ border: thin solid #00000099;
568
+ }
569
+ .theme-thumb span {
570
+ display: block;
571
+ padding: 5px 10px;
572
+ }
573
+ .theme-thumb img {
574
+ max-width: 100%;
575
+ border-bottom: 2px solid #fe2929;
576
+ }
577
+ .theme-thumb span.name {
578
+ font-weight: 600;
579
+ font-size: 15px;
580
+ }
581
+ .theme-thumb span.name small {
582
+ font-weight: 400;
583
+ font-size: smaller;
584
+ }
585
+ .theme-thumb .ribbon {
586
+ width: 100px;
587
+ height: 100px;
588
+ overflow: hidden;
589
+ position: absolute;
590
+ top: 0;
591
+ right: 0;
592
+ }
593
+ .theme-thumb .ribbon::before,
594
+ .theme-thumb .ribbon::after {
595
+ position: absolute;
596
+ z-index: -1;
597
+ content: '';
598
+ display: block;
599
+ }
600
+ .theme-thumb .ribbon i {
601
+ position: absolute;
602
+ display: inline-block;
603
+ padding: 10px;
604
+ background-color: #fe2929e6;
605
+ color: #fff;
606
+ font: 700 18px/1 'Lato', sans-serif;
607
+ right: 0;
608
+ top: 0;
609
+ }
610
+ .theme-thumb .ribbon::before,
611
+ .theme-thumb .ribbon::after {
612
+ border-top-color: transparent;
613
+ border-right-color: transparent;
614
+ }
615
+ .theme-thumb .ribbon::before {
616
+ top: 0;
617
+ left: 0;
618
+ }
619
+ .theme-thumb .ribbon::after {
620
+ bottom: 0;
621
+ right: 0;
622
+ }
623
+
624
+ .form-table .themes-banner {
625
+ padding: 15px;
626
+ margin: 15px 0;
627
+ display: inline-block;
628
+ background: #f1f1f1;
629
+ border: 1px solid red;
630
+ }
css/colorpicker.js CHANGED
@@ -13,7 +13,7 @@ jQuery(document).ready(function() {
13
  jQuery(".ffft").val(font[0]);
14
 
15
  });
16
-
17
  });
18
 
19
  jQuery(document).ready(function() {
@@ -25,7 +25,7 @@ jQuery(document).ready(function() {
25
  jQuery(".ffft").val(font[0]);
26
 
27
  });
28
-
29
  });
30
 
31
 
@@ -38,7 +38,7 @@ jQuery(document).ready(function() {
38
  jQuery(".ffft").val(font[0]);
39
 
40
  });
41
-
42
  });
43
 
44
 
@@ -93,7 +93,7 @@ jQuery(document).ready(function() {
93
 
94
  (function($){
95
 
96
- $.fn.fontselect = function(options) {
97
 
98
  var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
99
 
@@ -192,13 +192,13 @@ jQuery(document).ready(function() {
192
  "La+Belle+Aurore",
193
  "Lato:100",
194
  "Lato:100italic",
195
- "Lato:300",
196
  "Lato",
197
- "Lato:bold",
198
  "Lato:900",
199
  "League+Script",
200
- "Lekton",
201
- "Limelight",
202
  "Lobster",
203
  "Lobster Two",
204
  "Lora",
@@ -223,8 +223,8 @@ jQuery(document).ready(function() {
223
  "Monofett",
224
  "Molengo",
225
  "Mountains of Christmas",
226
- "Muli:300",
227
- "Muli",
228
  "Neucha",
229
  "Neuton",
230
  "News+Cycle",
@@ -256,7 +256,7 @@ jQuery(document).ready(function() {
256
  "Reenie+Beanie",
257
  "Pacifico",
258
  "Patrick+Hand",
259
- "Paytone+One",
260
  "Permanent+Marker",
261
  "Philosopher",
262
  "Play",
@@ -320,11 +320,11 @@ jQuery(document).ready(function() {
320
  style: 'font-select',
321
  placeholder: 'Select a font',
322
  lookahead: 2,
323
- api: 'http://fonts.googleapis.com/css?family='
324
  };
325
-
326
  var Fontselect = (function(){
327
-
328
  function Fontselect(original, o){
329
  this.$original = $(original);
330
  this.options = o;
@@ -339,47 +339,47 @@ jQuery(document).ready(function() {
339
  this.addFontLink(font);
340
  }
341
  }
342
-
343
  Fontselect.prototype.bindEvents = function(){
344
-
345
  $('li', this.$results)
346
  .click(__bind(this.selectFont, this))
347
  .mouseenter(__bind(this.activateFont, this))
348
  .mouseleave(__bind(this.deactivateFont, this));
349
-
350
  $('span', this.$select).click(__bind(this.toggleDrop, this));
351
  this.$arrow.click(__bind(this.toggleDrop, this));
352
  };
353
-
354
  Fontselect.prototype.toggleDrop = function(ev){
355
-
356
  if(this.active){
357
  this.$element.removeClass('font-select-active');
358
  this.$drop.hide();
359
  clearInterval(this.visibleInterval);
360
-
361
  } else {
362
  this.$element.addClass('font-select-active');
363
  this.$drop.show();
364
  this.moveToSelected();
365
  this.visibleInterval = setInterval(__bind(this.getVisibleFonts, this), 500);
366
  }
367
-
368
  this.active = !this.active;
369
  };
370
-
371
  Fontselect.prototype.selectFont = function(){
372
-
373
  var font = $('li.active', this.$results).data('value');
374
  this.$original.val(font).change();
375
  this.updateSelected();
376
  this.toggleDrop();
377
  };
378
-
379
  Fontselect.prototype.moveToSelected = function(){
380
-
381
  var $li, font = this.$original.val();
382
-
383
  if (font){
384
  $li = $("li[data-value='"+ font +"']", this.$results);
385
  } else {
@@ -388,25 +388,25 @@ jQuery(document).ready(function() {
388
 
389
  this.$results.scrollTop($li.addClass('active').position().top);
390
  };
391
-
392
  Fontselect.prototype.activateFont = function(ev){
393
  $('li.active', this.$results).removeClass('active');
394
  $(ev.currentTarget).addClass('active');
395
  };
396
-
397
  Fontselect.prototype.deactivateFont = function(ev){
398
-
399
  $(ev.currentTarget).removeClass('active');
400
  };
401
-
402
  Fontselect.prototype.updateSelected = function(){
403
-
404
  var font = this.$original.val();
405
  $('span', this.$element).text(this.toReadable(font)).css(this.toStyle(font));
406
  };
407
-
408
  Fontselect.prototype.setupHtml = function(){
409
-
410
  this.$original.empty().hide();
411
  this.$element = $('<div>', {'class': this.options.style});
412
  this.$arrow = $('<div><b></b></div>');
@@ -416,43 +416,43 @@ jQuery(document).ready(function() {
416
  this.$original.after(this.$element.append(this.$select.append(this.$arrow)).append(this.$drop));
417
  this.$drop.append(this.$results.append(this.fontsAsHtml())).hide();
418
  };
419
-
420
  Fontselect.prototype.fontsAsHtml = function(){
421
-
422
  var l = fonts.length;
423
  var r, s, h = '';
424
-
425
  for(var i=0; i<l; i++){
426
  r = this.toReadable(fonts[i]);
427
  s = this.toStyle(fonts[i]);
428
  h += '<li data-value="'+ fonts[i] +'" style="font-family: '+s['font-family'] +'; font-weight: '+s['font-weight'] +'">'+ r +'</li>';
429
  }
430
-
431
  return h;
432
  };
433
-
434
  Fontselect.prototype.toReadable = function(font){
435
  return font.replace(/[\+|:]/g, ' ');
436
  };
437
-
438
  Fontselect.prototype.toStyle = function(font){
439
  var t = font.split(':');
440
  return {'font-family': this.toReadable(t[0]), 'font-weight': (t[1] || 400)};
441
  };
442
-
443
  Fontselect.prototype.getVisibleFonts = function(){
444
-
445
  if(this.$results.is(':hidden')) return;
446
-
447
  var fs = this;
448
  var top = this.$results.scrollTop();
449
  var bottom = top + this.$results.height();
450
-
451
  if(this.options.lookahead){
452
  var li = $('li', this.$results).first().height();
453
  bottom += li*this.options.lookahead;
454
  }
455
-
456
  $('li', this.$results).each(function(){
457
 
458
  var ft = $(this).position().top+top;
@@ -462,26 +462,26 @@ jQuery(document).ready(function() {
462
  var font = $(this).data('value');
463
  fs.addFontLink(font);
464
  }
465
-
466
  });
467
  };
468
-
469
  Fontselect.prototype.addFontLink = function(font){
470
-
471
  var link = this.options.api + font;
472
-
473
  if ($("link[href*='" + font + "']").length === 0){
474
  $('link:last').after('<link href="' + link + '" rel="stylesheet" type="text/css">');
475
  }
476
  };
477
-
478
  return Fontselect;
479
  })();
480
 
481
- return this.each(function(options) {
482
  // If options exist, lets merge them
483
  if (options) $.extend( settings, options );
484
-
485
  return new Fontselect(this, settings);
486
  });
487
 
13
  jQuery(".ffft").val(font[0]);
14
 
15
  });
16
+
17
  });
18
 
19
  jQuery(document).ready(function() {
25
  jQuery(".ffft").val(font[0]);
26
 
27
  });
28
+
29
  });
30
 
31
 
38
  jQuery(".ffft").val(font[0]);
39
 
40
  });
41
+
42
  });
43
 
44
 
93
 
94
  (function($){
95
 
96
+ $.fn.fontselect = function(options) {
97
 
98
  var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
99
 
192
  "La+Belle+Aurore",
193
  "Lato:100",
194
  "Lato:100italic",
195
+ "Lato:300",
196
  "Lato",
197
+ "Lato:bold",
198
  "Lato:900",
199
  "League+Script",
200
+ "Lekton",
201
+ "Limelight",
202
  "Lobster",
203
  "Lobster Two",
204
  "Lora",
223
  "Monofett",
224
  "Molengo",
225
  "Mountains of Christmas",
226
+ "Muli:300",
227
+ "Muli",
228
  "Neucha",
229
  "Neuton",
230
  "News+Cycle",
256
  "Reenie+Beanie",
257
  "Pacifico",
258
  "Patrick+Hand",
259
+ "Paytone+One",
260
  "Permanent+Marker",
261
  "Philosopher",
262
  "Play",
320
  style: 'font-select',
321
  placeholder: 'Select a font',
322
  lookahead: 2,
323
+ api: 'https://fonts.googleapis.com/css?family='
324
  };
325
+
326
  var Fontselect = (function(){
327
+
328
  function Fontselect(original, o){
329
  this.$original = $(original);
330
  this.options = o;
339
  this.addFontLink(font);
340
  }
341
  }
342
+
343
  Fontselect.prototype.bindEvents = function(){
344
+
345
  $('li', this.$results)
346
  .click(__bind(this.selectFont, this))
347
  .mouseenter(__bind(this.activateFont, this))
348
  .mouseleave(__bind(this.deactivateFont, this));
349
+
350
  $('span', this.$select).click(__bind(this.toggleDrop, this));
351
  this.$arrow.click(__bind(this.toggleDrop, this));
352
  };
353
+
354
  Fontselect.prototype.toggleDrop = function(ev){
355
+
356
  if(this.active){
357
  this.$element.removeClass('font-select-active');
358
  this.$drop.hide();
359
  clearInterval(this.visibleInterval);
360
+
361
  } else {
362
  this.$element.addClass('font-select-active');
363
  this.$drop.show();
364
  this.moveToSelected();
365
  this.visibleInterval = setInterval(__bind(this.getVisibleFonts, this), 500);
366
  }
367
+
368
  this.active = !this.active;
369
  };
370
+
371
  Fontselect.prototype.selectFont = function(){
372
+
373
  var font = $('li.active', this.$results).data('value');
374
  this.$original.val(font).change();
375
  this.updateSelected();
376
  this.toggleDrop();
377
  };
378
+
379
  Fontselect.prototype.moveToSelected = function(){
380
+
381
  var $li, font = this.$original.val();
382
+
383
  if (font){
384
  $li = $("li[data-value='"+ font +"']", this.$results);
385
  } else {
388
 
389
  this.$results.scrollTop($li.addClass('active').position().top);
390
  };
391
+
392
  Fontselect.prototype.activateFont = function(ev){
393
  $('li.active', this.$results).removeClass('active');
394
  $(ev.currentTarget).addClass('active');
395
  };
396
+
397
  Fontselect.prototype.deactivateFont = function(ev){
398
+
399
  $(ev.currentTarget).removeClass('active');
400
  };
401
+
402
  Fontselect.prototype.updateSelected = function(){
403
+
404
  var font = this.$original.val();
405
  $('span', this.$element).text(this.toReadable(font)).css(this.toStyle(font));
406
  };
407
+
408
  Fontselect.prototype.setupHtml = function(){
409
+
410
  this.$original.empty().hide();
411
  this.$element = $('<div>', {'class': this.options.style});
412
  this.$arrow = $('<div><b></b></div>');
416
  this.$original.after(this.$element.append(this.$select.append(this.$arrow)).append(this.$drop));
417
  this.$drop.append(this.$results.append(this.fontsAsHtml())).hide();
418
  };
419
+
420
  Fontselect.prototype.fontsAsHtml = function(){
421
+
422
  var l = fonts.length;
423
  var r, s, h = '';
424
+
425
  for(var i=0; i<l; i++){
426
  r = this.toReadable(fonts[i]);
427
  s = this.toStyle(fonts[i]);
428
  h += '<li data-value="'+ fonts[i] +'" style="font-family: '+s['font-family'] +'; font-weight: '+s['font-weight'] +'">'+ r +'</li>';
429
  }
430
+
431
  return h;
432
  };
433
+
434
  Fontselect.prototype.toReadable = function(font){
435
  return font.replace(/[\+|:]/g, ' ');
436
  };
437
+
438
  Fontselect.prototype.toStyle = function(font){
439
  var t = font.split(':');
440
  return {'font-family': this.toReadable(t[0]), 'font-weight': (t[1] || 400)};
441
  };
442
+
443
  Fontselect.prototype.getVisibleFonts = function(){
444
+
445
  if(this.$results.is(':hidden')) return;
446
+
447
  var fs = this;
448
  var top = this.$results.scrollTop();
449
  var bottom = top + this.$results.height();
450
+
451
  if(this.options.lookahead){
452
  var li = $('li', this.$results).first().height();
453
  bottom += li*this.options.lookahead;
454
  }
455
+
456
  $('li', this.$results).each(function(){
457
 
458
  var ft = $(this).position().top+top;
462
  var font = $(this).data('value');
463
  fs.addFontLink(font);
464
  }
465
+
466
  });
467
  };
468
+
469
  Fontselect.prototype.addFontLink = function(font){
470
+
471
  var link = this.options.api + font;
472
+
473
  if ($("link[href*='" + font + "']").length === 0){
474
  $('link:last').after('<link href="' + link + '" rel="stylesheet" type="text/css">');
475
  }
476
  };
477
+
478
  return Fontselect;
479
  })();
480
 
481
+ return this.each(function(options) {
482
  // If options exist, lets merge them
483
  if (options) $.extend( settings, options );
484
+
485
  return new Fontselect(this, settings);
486
  });
487
 
images/fake-logo.png ADDED
Binary file
images/fb.png CHANGED
File without changes
images/instagram.png CHANGED
File without changes
images/pinterest.png CHANGED
File without changes
images/pro-themes/aeroplane-company.jpg ADDED
Binary file
images/pro-themes/air-balloon.jpg ADDED
Binary file
images/pro-themes/animated-clock.jpg ADDED
Binary file
images/pro-themes/architecture.jpg ADDED
Binary file
images/pro-themes/auto-service.jpg ADDED
Binary file
images/pro-themes/beach.jpg ADDED
Binary file
images/pro-themes/bicycle-race.jpg ADDED
Binary file
images/pro-themes/bike-shop.jpg ADDED
Binary file
images/pro-themes/bitcoin-miners.jpg ADDED
Binary file
images/pro-themes/blogging.jpg ADDED
Binary file
images/pro-themes/book-lovers.jpg ADDED
Binary file
images/pro-themes/business-company.jpg ADDED
Binary file
images/pro-themes/business.jpg ADDED
Binary file
images/pro-themes/cafe.jpg ADDED
Binary file
images/pro-themes/city-nighttime.jpg ADDED
Binary file
images/pro-themes/cityscape.jpg ADDED
Binary file
images/pro-themes/clouds-screensaver-video.jpg ADDED
Binary file
images/pro-themes/coffee-shop.jpg ADDED
Binary file
images/pro-themes/cold-lake.jpg ADDED
Binary file
images/pro-themes/computer-repair-service.jpg ADDED
Binary file
images/pro-themes/concert.jpg ADDED
Binary file
images/pro-themes/conference-event.jpg ADDED
Binary file
images/pro-themes/custom-decor.jpg ADDED
Binary file
images/pro-themes/default.jpg ADDED
Binary file
images/pro-themes/dental-clinic.jpg ADDED
Binary file
images/pro-themes/dog-shelter.jpg ADDED
Binary file
images/pro-themes/dog-training-and-behavior-consulting.jpg ADDED
Binary file
images/pro-themes/employment.jpg ADDED
Binary file
images/pro-themes/essay-writing-service.jpg ADDED
Binary file
images/pro-themes/fall-video.jpg ADDED
Binary file
images/pro-themes/fashion.jpg ADDED
Binary file
images/pro-themes/financial-district.jpg ADDED
Binary file
images/pro-themes/flower-shop.jpg ADDED
Binary file
images/pro-themes/food-blog.jpg ADDED
Binary file
images/pro-themes/football.jpg ADDED
Binary file
images/pro-themes/frozen-nature.jpg ADDED
Binary file
images/pro-themes/future-technology.jpg ADDED
Binary file
images/pro-themes/halloween.jpg ADDED
Binary file
images/pro-themes/holiday-resort.jpg ADDED
Binary file
images/pro-themes/homemade-chocolate-gifts.jpg ADDED
Binary file
images/pro-themes/ice-cream-shop.jpg ADDED
Binary file
images/pro-themes/interior-design.jpg ADDED
Binary file
images/pro-themes/journey-video.jpg ADDED
Binary file
images/pro-themes/ladies-accessories.jpg ADDED
Binary file
images/pro-themes/lego-bricks.jpg ADDED
Binary file
images/pro-themes/loneliness.jpg ADDED
Binary file
images/pro-themes/lonely-road.jpg ADDED
Binary file
images/pro-themes/luxury-car.jpg ADDED
Binary file
images/pro-themes/maintenance-mode.jpg ADDED
Binary file
images/pro-themes/makeup-artist-training.jpg ADDED
Binary file
images/pro-themes/misty-forest-video.jpg ADDED
Binary file
images/pro-themes/mobile-designer.jpg ADDED
Binary file
images/pro-themes/mobile-meeting.jpg ADDED
Binary file
images/pro-themes/modern-blog.jpg ADDED
Binary file
images/pro-themes/modern-office.jpg ADDED
Binary file
images/pro-themes/modern-recipes.jpg ADDED
Binary file
images/pro-themes/mountain-slide.jpg ADDED
Binary file
images/pro-themes/mountain.jpg ADDED
Binary file
images/pro-themes/movie-trailer-video.jpg ADDED
Binary file
images/pro-themes/nature.jpg ADDED
Binary file
images/pro-themes/office-meeting-video.jpg ADDED
Binary file
images/pro-themes/office-theme.jpg ADDED
Binary file
images/pro-themes/online-learning.jpg ADDED
Binary file
images/pro-themes/pancake-house.jpg ADDED
Binary file
images/pro-themes/parenting.jpg ADDED
Binary file
images/pro-themes/passage.jpg ADDED
Binary file
images/pro-themes/peaceful-river.jpg ADDED
Binary file
images/pro-themes/personal-trainer.jpg ADDED
Binary file
images/pro-themes/photography.jpg ADDED
Binary file
images/pro-themes/romantic-travels.jpg ADDED
Binary file
images/pro-themes/running-blog.jpg ADDED
Binary file
images/pro-themes/running-video.jpg ADDED
Binary file
images/pro-themes/scholar-university.jpg ADDED
Binary file
images/pro-themes/shoes-store.jpg ADDED
Binary file
images/pro-themes/simple-beige-design.jpg ADDED
Binary file
images/pro-themes/snow-screensaver-video.jpg ADDED
Binary file
images/pro-themes/snowboarding-blog.jpg ADDED
Binary file
images/pro-themes/snowy-mountain.jpg ADDED
Binary file
images/pro-themes/snowy-oasis.jpg ADDED
Binary file
images/pro-themes/social-media-service.jpg ADDED
Binary file
images/pro-themes/spa-beauty-studio.jpg ADDED
Binary file
images/pro-themes/spring.jpg ADDED
Binary file
images/pro-themes/startup.jpg ADDED
Binary file
images/pro-themes/stylish-workplace.jpg ADDED
Binary file
images/pro-themes/technology.jpg ADDED
Binary file
images/pro-themes/the-big-city-newsletter.jpg ADDED
Binary file
images/pro-themes/the-sunny-view.jpg ADDED
Binary file
images/pro-themes/travel-agency.jpg ADDED
Binary file
images/pro-themes/travel-blog.jpg ADDED
Binary file
images/pro-themes/tulips.jpg ADDED
Binary file
images/pro-themes/valentines-day.jpg ADDED
Binary file
images/pro-themes/video-production.jpg ADDED
Binary file
images/pro-themes/virtual-assistant-service.jpg ADDED
Binary file
images/pro-themes/walking-away-video.jpg ADDED
Binary file
images/pro-themes/webinar.jpg ADDED
Binary file
images/pro-themes/wedding-blog.jpg ADDED
Binary file
images/pro-themes/white-orchids.jpg ADDED
Binary file
images/pro-themes/working-out.jpg ADDED
Binary file
images/pro-themes/workplace.jpg ADDED
Binary file
images/pro-themes/writing-service-video.jpg ADDED
Binary file
images/twitter.png CHANGED
File without changes
includes/classes/class-wpmmp-settings.php CHANGED
@@ -5,7 +5,7 @@ class Wpmmp_Settings {
5
  function __construct() {
6
 
7
  $this->previous_default_settings();
8
-
9
  if ( ! get_option( 'mmp_favicon' ) ) {
10
 
11
  $this->default_settings();
@@ -44,9 +44,9 @@ class Wpmmp_Settings {
44
 
45
  $parent_slug = 'options-general.php';
46
 
47
- $page_title = __( 'Maintenance Mode Settings', 'wpmp' );
48
 
49
- $menu_title = __( 'Maintenance Mode', 'wpmp' );
50
 
51
  $capability = 'manage_options';
52
 
@@ -75,19 +75,19 @@ class Wpmmp_Settings {
75
 
76
  wp_enqueue_media();
77
 
78
- wp_enqueue_style( 'wpmp-settings',
79
  plugins_url( 'css/admin-settings.css', WPMMP_PLUGIN_MAIN_FILE ) );
80
 
81
- wp_enqueue_script( 'wpmp-settings',
82
  plugins_url( 'js/admin-settings.js', WPMMP_PLUGIN_MAIN_FILE ), array( 'wp-color-picker' ) );
83
 
84
- $translation_array = array(
85
  'confirm_reset' => __( 'Are you sure you want to reset the settings ?', 'wpmmp' ),
86
  'successfull_reset' => __( 'The settings have been restored to the default settings', 'wpmmp' ),
87
  'reset_nonce' => wp_create_nonce( 'wpmmp_reset_nonce' ),
88
  'ajax_url' => admin_url( 'admin-ajax.php' )
89
  );
90
-
91
  wp_localize_script( 'wpmp-settings', 'wpmmpjs', $translation_array );
92
 
93
  }
@@ -158,13 +158,13 @@ class Wpmmp_Settings {
158
  delete_option('mmp_feed_access');
159
  delete_option('mmp_themes');
160
  delete_option('mmp_mc_api');
161
- delete_option('mmp_mc_listid');
162
- delete_option('mmp_mc_optin');
163
- delete_option('mmp_mc_sbt');
164
- delete_option('mmp_mc_pt');
165
- delete_option('mmp_subheading');
166
- delete_option('mmp_headingcolor');
167
- delete_option('mmp_userroles');
168
 
169
  exit( '10' );
170
 
@@ -227,14 +227,14 @@ class Wpmmp_Settings {
227
 
228
  add_option('mmp_on_off' , 0);
229
  add_option('mmp_favicon', '');
230
- add_option('mmp_title', 'Site is Down');
231
- add_option('mmp_seo_meta', '');
232
  add_option('mmp_analytics', '');
233
- add_option('mmp_logo' , '');
234
- add_option('mmp_headline' , 'We are down for maintenance');
235
- add_option('mmp_message' , 'Ad your message here');
236
  add_option('mmp_bgcolor' , '');
237
- add_option('mmp_text_color', '');
238
  add_option('mmp_links_color' ,'');
239
  add_option('mmp_links_hover_color','');
240
  add_option('mmp_background_image' , '');
@@ -244,27 +244,27 @@ class Wpmmp_Settings {
244
  add_option('mmp_custom_css' , '');
245
  add_option('mmp_custom_header_script' , '');
246
  add_option('mmp_custom_footrt_script', '');
247
- add_option('mmp_fb_page' , '');
248
- add_option('mmp_tw_page' , '');
249
- add_option('mmp_lkin_page' , '');
250
  add_option('mmp_pin_page' ,'');
251
  add_option('mmp_insta_page', '');
252
- add_option('mmp_show_fb' , 0);
253
- add_option('mmp_show_tw' , 0);
254
- add_option('mmp_show_lk' , 0);
255
  add_option('mmp_show_pin' , 0);
256
  add_option('mmp_show_insta' , 0);
257
  add_option('mmp_on_off_countdown' , 0);
258
- add_option('mmp_on_off_progress' , 0);
259
- add_option('mmp_set_dateTime', date('m/d/Y'));
260
- add_option('mmp_set_progress' , '');
261
  add_option('mmp_on_off_subscribe' , 0);
262
  add_option('mmp_http_503' , 0);
263
  add_option('mmp_feed_access' , 0);
264
-
265
  add_option('mmp_themes' , 'default');
266
  add_option('mmp_mc_api' , '');
267
- add_option('mmp_mc_listid' , '' );
268
  add_option('mmp_mc_optin' , 1);
269
  add_option('mmp_mc_sbt' , 'Subscribe');
270
  add_option('mmp_mc_pt' , 'Enter Email');
@@ -286,38 +286,38 @@ class Wpmmp_Settings {
286
  }
287
 
288
  function admin_tabs( $current = 'general-settings' ) {
289
-
290
- $tabs = array(
291
- 'general-settings' => __( 'General Settings', 'wpmmp' ),
292
-
293
  'theme-settings' => __( 'Themes', 'wpmmp' ),
294
-
295
- 'page-settings' => __( 'Page', 'wpmmp' ),
296
-
297
  'header-settings' => __( 'Header', 'wpmmp' ),
298
-
299
  'design-settings' => __( 'Design', 'wpmmp' ),
300
-
301
  'social-settings' => __( 'Social Icons', 'wpmmp' ),
302
 
303
  'email-settings' => __( 'Email Settings', 'wpmmp' ),
304
-
305
-
306
-
307
  'script-settings' => __( 'Scripts', 'wpmmp' ),
308
-
309
  'advanced-settings' => __( 'Advanced', 'wpmmp' ),
310
  );
311
 
312
  echo '<div id="icon-themes" class="icon32"><br></div>';
313
-
314
  echo '<h2 class="nav-tab-wrapper">';
315
-
316
  foreach( $tabs as $tab => $name ){
317
-
318
  $class = ( $tab == $current ) ? ' nav-tab-active' : '';
319
-
320
- echo "<a class='nav-tab$class' href='?page=wpmmp-settings&tab=$tab'>$name</a>";
321
 
322
  }
323
 
@@ -362,7 +362,7 @@ class Wpmmp_Settings {
362
 
363
  $settings_link = sprintf( '<a href="%s">Settings</a>', $settings_link );
364
 
365
- return array_merge( $links, array(
366
  'settings' => $settings_link
367
  ) );
368
 
@@ -407,9 +407,9 @@ class Wpmmp_Settings {
407
  register_setting('mmp-settings-group','mmp_on_off_subscribe');
408
  register_setting('mmp-settings-group','mmp_http_503');
409
  register_setting('mmp-settings-group','mmp_feed_access');
410
- register_setting('mmp-settings-group','mmp_themes');
411
  register_setting('mmp-settings-group','mmp_mc_api');
412
- register_setting('mmp-settings-group','mmp_mc_listid');
413
  register_setting('mmp-settings-group','mmp_mc_optin');
414
  register_setting('mmp-settings-group','mmp_mc_sbt');
415
  register_setting('mmp-settings-group','mmp_mc_pt');
@@ -420,4 +420,4 @@ class Wpmmp_Settings {
420
 
421
  }
422
 
423
- }
5
  function __construct() {
6
 
7
  $this->previous_default_settings();
8
+
9
  if ( ! get_option( 'mmp_favicon' ) ) {
10
 
11
  $this->default_settings();
44
 
45
  $parent_slug = 'options-general.php';
46
 
47
+ $page_title = __( 'Rocket Maintenance Mode Settings', 'wpmp' );
48
 
49
+ $menu_title = __( 'Rocket Maintenance Mode', 'wpmp' );
50
 
51
  $capability = 'manage_options';
52
 
75
 
76
  wp_enqueue_media();
77
 
78
+ wp_enqueue_style( 'wpmp-settings',
79
  plugins_url( 'css/admin-settings.css', WPMMP_PLUGIN_MAIN_FILE ) );
80
 
81
+ wp_enqueue_script( 'wpmp-settings',
82
  plugins_url( 'js/admin-settings.js', WPMMP_PLUGIN_MAIN_FILE ), array( 'wp-color-picker' ) );
83
 
84
+ $translation_array = array(
85
  'confirm_reset' => __( 'Are you sure you want to reset the settings ?', 'wpmmp' ),
86
  'successfull_reset' => __( 'The settings have been restored to the default settings', 'wpmmp' ),
87
  'reset_nonce' => wp_create_nonce( 'wpmmp_reset_nonce' ),
88
  'ajax_url' => admin_url( 'admin-ajax.php' )
89
  );
90
+
91
  wp_localize_script( 'wpmp-settings', 'wpmmpjs', $translation_array );
92
 
93
  }
158
  delete_option('mmp_feed_access');
159
  delete_option('mmp_themes');
160
  delete_option('mmp_mc_api');
161
+ delete_option('mmp_mc_listid');
162
+ delete_option('mmp_mc_optin');
163
+ delete_option('mmp_mc_sbt');
164
+ delete_option('mmp_mc_pt');
165
+ delete_option('mmp_subheading');
166
+ delete_option('mmp_headingcolor');
167
+ delete_option('mmp_userroles');
168
 
169
  exit( '10' );
170
 
227
 
228
  add_option('mmp_on_off' , 0);
229
  add_option('mmp_favicon', '');
230
+ add_option('mmp_title', 'Site is Down for Maintenance');
231
+ add_option('mmp_seo_meta', 'We are doing some work on the site. Please come back later.');
232
  add_option('mmp_analytics', '');
233
+ add_option('mmp_logo' , WPMMP_PLUGIN_URL . '/images/fake-logo.png');
234
+ add_option('mmp_headline' , 'The site is shortly down for maintenance');
235
+ add_option('mmp_message' , 'Please stick around, we\'ll be back soon.');
236
  add_option('mmp_bgcolor' , '');
237
+ add_option('mmp_text_color', '#f1f1f1');
238
  add_option('mmp_links_color' ,'');
239
  add_option('mmp_links_hover_color','');
240
  add_option('mmp_background_image' , '');
244
  add_option('mmp_custom_css' , '');
245
  add_option('mmp_custom_header_script' , '');
246
  add_option('mmp_custom_footrt_script', '');
247
+ add_option('mmp_fb_page' , '#');
248
+ add_option('mmp_tw_page' , '#');
249
+ add_option('mmp_lkin_page' , '#');
250
  add_option('mmp_pin_page' ,'');
251
  add_option('mmp_insta_page', '');
252
+ add_option('mmp_show_fb', 1);
253
+ add_option('mmp_show_tw', 1);
254
+ add_option('mmp_show_lk', 1);
255
  add_option('mmp_show_pin' , 0);
256
  add_option('mmp_show_insta' , 0);
257
  add_option('mmp_on_off_countdown' , 0);
258
+ add_option('mmp_on_off_progress' , 1);
259
+ add_option('mmp_set_dateTime', date('Y-m-d', time() + DAY_IN_SECONDS * 10));
260
+ add_option('mmp_set_progress' , '65');
261
  add_option('mmp_on_off_subscribe' , 0);
262
  add_option('mmp_http_503' , 0);
263
  add_option('mmp_feed_access' , 0);
264
+
265
  add_option('mmp_themes' , 'default');
266
  add_option('mmp_mc_api' , '');
267
+ add_option('mmp_mc_listid' , '' );
268
  add_option('mmp_mc_optin' , 1);
269
  add_option('mmp_mc_sbt' , 'Subscribe');
270
  add_option('mmp_mc_pt' , 'Enter Email');
286
  }
287
 
288
  function admin_tabs( $current = 'general-settings' ) {
289
+
290
+ $tabs = array(
291
+ 'general-settings' => __( 'General Settings', 'wpmmp' ),
292
+
293
  'theme-settings' => __( 'Themes', 'wpmmp' ),
294
+
295
+ 'page-settings' => __( 'Page', 'wpmmp' ),
296
+
297
  'header-settings' => __( 'Header', 'wpmmp' ),
298
+
299
  'design-settings' => __( 'Design', 'wpmmp' ),
300
+
301
  'social-settings' => __( 'Social Icons', 'wpmmp' ),
302
 
303
  'email-settings' => __( 'Email Settings', 'wpmmp' ),
304
+
305
+
306
+
307
  'script-settings' => __( 'Scripts', 'wpmmp' ),
308
+
309
  'advanced-settings' => __( 'Advanced', 'wpmmp' ),
310
  );
311
 
312
  echo '<div id="icon-themes" class="icon32"><br></div>';
313
+
314
  echo '<h2 class="nav-tab-wrapper">';
315
+
316
  foreach( $tabs as $tab => $name ){
317
+
318
  $class = ( $tab == $current ) ? ' nav-tab-active' : '';
319
+
320
+ echo "<a data-tab='$tab' class='nav-tab$class' href='?page=wpmmp-settings&tab=$tab'>$name</a>";
321
 
322
  }
323
 
362
 
363
  $settings_link = sprintf( '<a href="%s">Settings</a>', $settings_link );
364
 
365
+ return array_merge( $links, array(
366
  'settings' => $settings_link
367
  ) );
368
 
407
  register_setting('mmp-settings-group','mmp_on_off_subscribe');
408
  register_setting('mmp-settings-group','mmp_http_503');
409
  register_setting('mmp-settings-group','mmp_feed_access');
410
+ //register_setting('mmp-settings-group','mmp_themes');
411
  register_setting('mmp-settings-group','mmp_mc_api');
412
+ register_setting('mmp-settings-group','mmp_mc_listid');
413
  register_setting('mmp-settings-group','mmp_mc_optin');
414
  register_setting('mmp-settings-group','mmp_mc_sbt');
415
  register_setting('mmp-settings-group','mmp_mc_pt');
420
 
421
  }
422
 
423
+ }
includes/classes/class-wpmmp-theme-handler.php CHANGED
@@ -51,7 +51,7 @@ class Wpmmp_Theme_Handler {
51
  private function _filters() {
52
 
53
  add_filter( 'wpmmp_themes', array( $this, 'register_theme' ) );
54
-
55
  if ( $this->is_activated() && $this->check_rules() )
56
  $this->theme_change();
57
 
@@ -61,7 +61,7 @@ class Wpmmp_Theme_Handler {
61
 
62
  add_action( 'wp_ajax_nopriv_wpmmp_c_soon_store_email', array( $this, 'store_email' ) );
63
  add_action( 'wp_ajax_wpmmp_c_soon_store_email', array( $this, 'store_email' ) );
64
-
65
  }
66
 
67
  public function name( $name = '' ) {
@@ -109,7 +109,7 @@ class Wpmmp_Theme_Handler {
109
 
110
  $theme = wpmmp_get_active_theme();
111
 
112
-
113
  if ( $id === 'default' ) {
114
 
115
  if ( strpos( $theme, 'default' ) !== false )
@@ -122,21 +122,19 @@ class Wpmmp_Theme_Handler {
122
  }
123
 
124
  public function check_rules( $theme_id = '' ) {
125
-
126
  if ( empty( $id ) )
127
  $id = $this->id();
128
 
129
  if ( isset( $_GET['wpmmp-mode'] ) ) {
130
-
131
  if ( $_GET['wpmmp-mode'] === 'enabled' ) {
132
-
133
  if ( wp_verify_nonce( $_GET['nonce'], 'wpmmp-preview-nonce' ) ) {
134
 
135
  if ( ! defined( 'WPMMP_DEBUG_MODE' ) )
136
  define( 'WPMMP_DEBUG_MODE', TRUE );
137
-
138
- return
139
- apply_filters( 'wpmmp_check_rules', TRUE, 'preview' );
140
  }
141
 
142
 
@@ -144,7 +142,7 @@ class Wpmmp_Theme_Handler {
144
  }
145
  }
146
 
147
-
148
 
149
  $status = get_option( 'mmp_on_off' );
150
 
@@ -171,11 +169,11 @@ class Wpmmp_Theme_Handler {
171
 
172
  $current_user = wp_get_current_user();
173
 
174
- if ( array_intersect( $allowed_roles, $current_user->roles )
175
  && ! defined( 'WPMMP_DEBUG_MODE' ) )
176
  return FALSE;
177
 
178
-
179
 
180
  add_action( 'template_redirect', array( $this, 'template_hook' ) );
181
 
@@ -209,13 +207,13 @@ class Wpmmp_Theme_Handler {
209
  $cd_hr_min = '';
210
 
211
  $dateTime = esc_attr(get_option('mmp_set_dateTime'));
212
-
213
  if ( $dateTime !== '' ) {
214
-
215
  $cd_date = $dateTime;
216
-
217
  $cd_date = str_replace( '-' , '/', $cd_date);
218
-
219
  }
220
 
221
  include( $this->path );
@@ -248,7 +246,7 @@ class Wpmmp_Theme_Handler {
248
 
249
  if ( ! isset( $content_width ) )
250
  $content_width = 750;
251
-
252
  global $wp_embed;
253
 
254
  $content = $wp_embed->autoembed( $content );
@@ -292,7 +290,7 @@ class Wpmmp_Theme_Handler {
292
 
293
  error_reporting(0);
294
 
295
- if ( ! wp_verify_nonce( $_POST['wpmmp_email_manager_nonce'],
296
  'wpmmp_email_manager_nonce' ) ) {
297
  $response = array(
298
  'valid' => 0,
@@ -323,15 +321,15 @@ class Wpmmp_Theme_Handler {
323
  wpmmp_include( '/libs/MCAPI.class.php' );
324
 
325
  $api_key = get_option( 'mmp_mc_api' );
326
-
327
  $list_id = get_option( 'mmp_mc_listid' );
328
 
329
  $api = new Wpmmp_MCAPI( $api_key );
330
 
331
- list($fname,$lname) = preg_split('/\s+(?=[^\s]+$)/', $name, 2);
332
-
333
  $merge_vars = array(
334
- 'FNAME' => $fname,
335
  'LNAME' => $lname
336
  );
337
 
@@ -352,7 +350,7 @@ class Wpmmp_Theme_Handler {
352
  'valid' => 1,
353
  'message' => 'Email submitted successfully!'
354
  );
355
-
356
  exit( json_encode( $response ) );
357
 
358
  }
@@ -369,4 +367,4 @@ class Wpmmp_Theme_Handler {
369
 
370
  }
371
 
372
- }
51
  private function _filters() {
52
 
53
  add_filter( 'wpmmp_themes', array( $this, 'register_theme' ) );
54
+
55
  if ( $this->is_activated() && $this->check_rules() )
56
  $this->theme_change();
57
 
61
 
62
  add_action( 'wp_ajax_nopriv_wpmmp_c_soon_store_email', array( $this, 'store_email' ) );
63
  add_action( 'wp_ajax_wpmmp_c_soon_store_email', array( $this, 'store_email' ) );
64
+
65
  }
66
 
67
  public function name( $name = '' ) {
109
 
110
  $theme = wpmmp_get_active_theme();
111
 
112
+
113
  if ( $id === 'default' ) {
114
 
115
  if ( strpos( $theme, 'default' ) !== false )
122
  }
123
 
124
  public function check_rules( $theme_id = '' ) {
125
+
126
  if ( empty( $id ) )
127
  $id = $this->id();
128
 
129
  if ( isset( $_GET['wpmmp-mode'] ) ) {
 
130
  if ( $_GET['wpmmp-mode'] === 'enabled' ) {
131
+
132
  if ( wp_verify_nonce( $_GET['nonce'], 'wpmmp-preview-nonce' ) ) {
133
 
134
  if ( ! defined( 'WPMMP_DEBUG_MODE' ) )
135
  define( 'WPMMP_DEBUG_MODE', TRUE );
136
+
137
+ return apply_filters( 'wpmmp_check_rules', TRUE, 'preview' );
 
138
  }
139
 
140
 
142
  }
143
  }
144
 
145
+
146
 
147
  $status = get_option( 'mmp_on_off' );
148
 
169
 
170
  $current_user = wp_get_current_user();
171
 
172
+ if ( array_intersect( $allowed_roles, $current_user->roles )
173
  && ! defined( 'WPMMP_DEBUG_MODE' ) )
174
  return FALSE;
175
 
176
+
177
 
178
  add_action( 'template_redirect', array( $this, 'template_hook' ) );
179
 
207
  $cd_hr_min = '';
208
 
209
  $dateTime = esc_attr(get_option('mmp_set_dateTime'));
210
+
211
  if ( $dateTime !== '' ) {
212
+
213
  $cd_date = $dateTime;
214
+
215
  $cd_date = str_replace( '-' , '/', $cd_date);
216
+
217
  }
218
 
219
  include( $this->path );
246
 
247
  if ( ! isset( $content_width ) )
248
  $content_width = 750;
249
+
250
  global $wp_embed;
251
 
252
  $content = $wp_embed->autoembed( $content );
290
 
291
  error_reporting(0);
292
 
293
+ if ( ! wp_verify_nonce( $_POST['wpmmp_email_manager_nonce'],
294
  'wpmmp_email_manager_nonce' ) ) {
295
  $response = array(
296
  'valid' => 0,
321
  wpmmp_include( '/libs/MCAPI.class.php' );
322
 
323
  $api_key = get_option( 'mmp_mc_api' );
324
+
325
  $list_id = get_option( 'mmp_mc_listid' );
326
 
327
  $api = new Wpmmp_MCAPI( $api_key );
328
 
329
+ list($fname,$lname) = preg_split('/\s+(?=[^\s]+$)/', $name, 2);
330
+
331
  $merge_vars = array(
332
+ 'FNAME' => $fname,
333
  'LNAME' => $lname
334
  );
335
 
350
  'valid' => 1,
351
  'message' => 'Email submitted successfully!'
352
  );
353
+
354
  exit( json_encode( $response ) );
355
 
356
  }
367
 
368
  }
369
 
370
+ }
includes/functions.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
 
 
 
3
  function load_wpmmp() {
4
 
5
  load_wpmmp_classes();
@@ -9,6 +11,113 @@ function load_wpmmp() {
9
 
10
  }
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  function wpmmp_when_plugins_loaded() {
13
 
14
  //Register and init the default theme
@@ -40,8 +149,9 @@ function load_wpmmp_classes() {
40
 
41
  new Wpmmp_Settings();
42
 
43
- add_action( 'plugins_loaded', 'wpmmp_when_plugins_loaded' );
44
-
 
45
  }
46
 
47
  function wpmmp_include( $file_name, $require = true ) {
@@ -108,7 +218,7 @@ function wpmmp_get_single_setting( $key ) {
108
  if ( ! isset( $settings[$key] ) )
109
  return apply_filters( 'wpmmp_get_single_setting', NULL );
110
 
111
- return apply_filters( 'wpmmp_get_single_setting', $settings[$key] );
112
 
113
  }
114
 
@@ -116,6 +226,7 @@ function wpmmp_get_active_theme() {
116
 
117
  $theme = get_option('mmp_themes');
118
 
119
- return apply_filters( 'wpmmp_get_active_theme', $theme );
 
120
 
121
- }
1
  <?php
2
 
3
+ require 'pro-themes.php';
4
+
5
  function load_wpmmp() {
6
 
7
  load_wpmmp_classes();
11
 
12
  }
13
 
14
+ function wpmmp_get_plugin_version() {
15
+ $plugin_data = get_file_data(WPMMP_PLUGIN_FILE, array('version' => 'Version'), 'plugin');
16
+
17
+ return $plugin_data['version'];
18
+ } // get_plugin_version
19
+
20
+ function wpmmp_generate_web_link($placement = '', $page = '/', $params = array(), $anchor = '') {
21
+ $base_url = 'https://comingsoonwp.com/';
22
+
23
+ if ('/' != $page) {
24
+ $page = '/' . trim($page, '/') . '/';
25
+ }
26
+ if ($page == '//') {
27
+ $page = '/';
28
+ }
29
+
30
+ $parts = array_merge(array('utm_source' => 'rocket-free', 'utm_medium' => 'plugin', 'utm_content' => $placement, 'utm_campaign' => 'rocket-free-v' . wpmmp_get_plugin_version()), $params);
31
+
32
+ if (!empty($anchor)) {
33
+ $anchor = '#' . trim($anchor, '#');
34
+ }
35
+
36
+ $out = $base_url . $page . '?' . http_build_query($parts, '', '&amp;') . $anchor;
37
+
38
+ return $out;
39
+ } // generate_web_link
40
+
41
+
42
+ // helper function for adding plugins to fav list
43
+ function wpmmp_featured_plugins_tab($args) {
44
+ add_filter('plugins_api_result', 'wpmmp_plugins_api_result', 10, 3);
45
+
46
+ return $args;
47
+ } // featured_plugins_tab
48
+
49
+
50
+ // add single plugin to list of favs
51
+ function wpmmp_add_plugin_favs($plugin_slug, $res) {
52
+ if (!empty($res->plugins) && is_array($res->plugins)) {
53
+ foreach ($res->plugins as $plugin) {
54
+ if (is_object($plugin) && $plugin->slug == $plugin_slug) {
55
+ return $res;
56
+ }
57
+ } // foreach
58
+ }
59
+
60
+ if ($plugin_info = get_transient('wf-plugin-info-' . $plugin_slug)) {
61
+ array_unshift($res->plugins, $plugin_info);
62
+ } else {
63
+ $plugin_info = plugins_api('plugin_information', array(
64
+ 'slug' => $plugin_slug,
65
+ 'is_ssl' => is_ssl(),
66
+ 'fields' => array(
67
+ 'banners' => true,
68
+ 'reviews' => true,
69
+ 'downloaded' => true,
70
+ 'active_installs' => true,
71
+ 'icons' => true,
72
+ 'short_description' => true,
73
+ )
74
+ ));
75
+ if (!is_wp_error($plugin_info)) {
76
+ $res->plugins[] = $plugin_info;
77
+ set_transient('wf-plugin-info-' . $plugin_slug, $plugin_info, DAY_IN_SECONDS * 7);
78
+ }
79
+ }
80
+
81
+ return $res;
82
+ } // add_plugin_favs
83
+
84
+
85
+ // add our plugins to recommended list
86
+ function wpmmp_plugins_api_result($res, $action, $args) {
87
+ remove_filter('plugins_api_result', 'wpmmp_plugins_api_result', 10, 3);
88
+
89
+ $res = wpmmp_add_plugin_favs('wp-reset', $res);
90
+
91
+ return $res;
92
+ } // plugins_api_result
93
+
94
+
95
+
96
+ function wpmmp_empty_cache() {
97
+ if (function_exists('w3tc_pgcache_flush')) {
98
+ w3tc_pgcache_flush();
99
+ }
100
+ if (function_exists('wp_cache_clear_cache')) {
101
+ wp_cache_clear_cache();
102
+ }
103
+ if (class_exists('Endurance_Page_Cache')) {
104
+ $epc = new Endurance_Page_Cache;
105
+ $epc->purge_all();
106
+ }
107
+ if (class_exists('SG_CachePress_Supercacher') && method_exists('SG_CachePress_Supercacher', 'purge_cache')) {
108
+ SG_CachePress_Supercacher::purge_cache(true);
109
+ }
110
+ if (class_exists('SiteGround_Optimizer\Supercacher\Supercacher')) {
111
+ SiteGround_Optimizer\Supercacher\Supercacher::purge_cache();
112
+ }
113
+ if (isset($GLOBALS['wp_fastest_cache']) && method_exists($GLOBALS['wp_fastest_cache'], 'deleteCache')) {
114
+ $GLOBALS['wp_fastest_cache']->deleteCache(true);
115
+ }
116
+ if (is_callable(array('Swift_Performance_Cache', 'clear_all_cache'))) {
117
+ Swift_Performance_Cache::clear_all_cache();
118
+ }
119
+ }
120
+
121
  function wpmmp_when_plugins_loaded() {
122
 
123
  //Register and init the default theme
149
 
150
  new Wpmmp_Settings();
151
 
152
+ add_action( 'plugins_loaded', 'wpmmp_when_plugins_loaded' );
153
+ add_filter('install_plugins_table_api_args_featured', 'wpmmp_featured_plugins_tab');
154
+
155
  }
156
 
157
  function wpmmp_include( $file_name, $require = true ) {
218
  if ( ! isset( $settings[$key] ) )
219
  return apply_filters( 'wpmmp_get_single_setting', NULL );
220
 
221
+ return apply_filters( 'wpmmp_get_single_setting', $settings[$key] );
222
 
223
  }
224
 
226
 
227
  $theme = get_option('mmp_themes');
228
 
229
+ return 'default';
230
+ //return apply_filters( 'wpmmp_get_active_theme', $theme );
231
 
232
+ }
includes/pro-themes.php ADDED
@@ -0,0 +1,1123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function wpmmp_pro_themes() {
3
+ $themes =
4
+ array (
5
+ 0 =>
6
+ array (
7
+ 'type' => 'CSMM PRO',
8
+ 'version' => '5.005',
9
+ 'last_edit' => 'Thu, 22 Feb 2018 18:45:00 +0000',
10
+ 'name' => 'Aeroplane Company',
11
+ 'description' => 'Andrea',
12
+ 'frontpage' => '1',
13
+ 'status' => 'pro',
14
+ 'name_clean' => 'aeroplane-company',
15
+ ),
16
+ 1 =>
17
+ array (
18
+ 'type' => 'CSMM PRO',
19
+ 'version' => '15.17',
20
+ 'last_edit' => 'Sun, 09 Sep 2018 16:06:39 +0000',
21
+ 'name' => 'Air Balloon',
22
+ 'description' => '',
23
+ 'frontpage' => '1',
24
+ 'status' => 'agency',
25
+ 'name_clean' => 'air-balloon',
26
+ ),
27
+ 2 =>
28
+ array (
29
+ 'type' => 'CSMM PRO',
30
+ 'version' => '15.05',
31
+ 'last_edit' => 'Fri, 02 Mar 2018 12:43:04 +0000',
32
+ 'name' => 'Animated Clock',
33
+ 'description' => 'Andrea',
34
+ 'frontpage' => '0',
35
+ 'status' => 'pro',
36
+ 'name_clean' => 'animated-clock',
37
+ ),
38
+ 3 =>
39
+ array (
40
+ 'type' => 'CSMM PRO',
41
+ 'version' => '15.17',
42
+ 'last_edit' => 'Sat, 08 Sep 2018 14:42:03 +0000',
43
+ 'name' => 'Architecture',
44
+ 'description' => '',
45
+ 'frontpage' => '1',
46
+ 'status' => 'agency',
47
+ 'name_clean' => 'architecture',
48
+ ),
49
+ 4 =>
50
+ array (
51
+ 'type' => 'CSMM PRO',
52
+ 'version' => '15.17',
53
+ 'last_edit' => 'Sun, 23 Sep 2018 12:44:52 +0000',
54
+ 'name' => 'Auto Service',
55
+ 'description' => '',
56
+ 'frontpage' => '1',
57
+ 'status' => 'agency',
58
+ 'name_clean' => 'auto-service',
59
+ ),
60
+ 5 =>
61
+ array (
62
+ 'type' => 'CSMM PRO',
63
+ 'version' => '15.17',
64
+ 'last_edit' => 'Sat, 09 Jun 2018 13:26:02 +0000',
65
+ 'name' => 'Beach',
66
+ 'description' => '',
67
+ 'frontpage' => '1',
68
+ 'status' => 'pro',
69
+ 'name_clean' => 'beach',
70
+ ),
71
+ 6 =>
72
+ array (
73
+ 'type' => 'CSMM PRO',
74
+ 'version' => '5.05',
75
+ 'last_edit' => 'Wed, 28 Feb 2018 10:30:46 +0000',
76
+ 'name' => 'Bicycle Race',
77
+ 'description' => 'Andrea',
78
+ 'frontpage' => '0',
79
+ 'status' => 'agency',
80
+ 'name_clean' => 'bicycle-race',
81
+ ),
82
+ 7 =>
83
+ array (
84
+ 'type' => 'CSMM PRO',
85
+ 'version' => '15.17',
86
+ 'last_edit' => 'Sat, 23 Mar 2019 14:44:52 +0000',
87
+ 'name' => 'Bike Shop',
88
+ 'description' => '',
89
+ 'frontpage' => '1',
90
+ 'status' => 'pro',
91
+ 'name_clean' => 'bike-shop',
92
+ ),
93
+ 8 =>
94
+ array (
95
+ 'type' => 'CSMM PRO',
96
+ 'version' => '5.005',
97
+ 'last_edit' => 'Sat, 24 Feb 2018 11:48:50 +0000',
98
+ 'name' => 'Bitcoin Miners',
99
+ 'description' => '',
100
+ 'frontpage' => '1',
101
+ 'status' => 'agency',
102
+ 'name_clean' => 'bitcoin-miners',
103
+ ),
104
+ 9 =>
105
+ array (
106
+ 'type' => 'CSMM PRO',
107
+ 'version' => '15.17',
108
+ 'last_edit' => 'Fri, 30 Mar 2018 11:50:26 +0000',
109
+ 'name' => 'Blogging',
110
+ 'description' => '',
111
+ 'frontpage' => '1',
112
+ 'status' => 'agency',
113
+ 'name_clean' => 'blogging',
114
+ ),
115
+ 10 =>
116
+ array (
117
+ 'type' => 'CSMM PRO',
118
+ 'version' => '5.005',
119
+ 'last_edit' => 'Tue, 27 Feb 2018 09:56:05 +0000',
120
+ 'name' => 'Book Lovers',
121
+ 'description' => 'Andrea',
122
+ 'frontpage' => '1',
123
+ 'status' => 'agency',
124
+ 'name_clean' => 'book-lovers',
125
+ ),
126
+ 11 =>
127
+ array (
128
+ 'type' => 'CSMM PRO',
129
+ 'version' => '5.001',
130
+ 'last_edit' => 'Thu, 15 Feb 2018 16:24:58 +0000',
131
+ 'name' => 'Business Company',
132
+ 'description' => '',
133
+ 'frontpage' => '0',
134
+ 'status' => 'agency',
135
+ 'name_clean' => 'business-company',
136
+ ),
137
+ 12 =>
138
+ array (
139
+ 'type' => 'CSMM PRO',
140
+ 'version' => '15.17',
141
+ 'last_edit' => 'Wed, 25 Apr 2018 11:06:41 +0000',
142
+ 'name' => 'Business',
143
+ 'description' => 'Andrea',
144
+ 'frontpage' => '1',
145
+ 'status' => 'agency',
146
+ 'name_clean' => 'business',
147
+ ),
148
+ 13 =>
149
+ array (
150
+ 'type' => 'CSMM PRO',
151
+ 'version' => '15.17',
152
+ 'last_edit' => 'Wed, 30 Jan 2019 19:31:32 +0000',
153
+ 'name' => 'Café',
154
+ 'description' => '',
155
+ 'frontpage' => '1',
156
+ 'status' => 'agency',
157
+ 'name_clean' => 'cafe',
158
+ ),
159
+ 14 =>
160
+ array (
161
+ 'type' => 'CSMM PRO',
162
+ 'version' => '15.17',
163
+ 'last_edit' => 'Sun, 10 Mar 2019 11:24:47 +0000',
164
+ 'name' => 'City Nighttime',
165
+ 'description' => '',
166
+ 'frontpage' => '1',
167
+ 'status' => 'pro',
168
+ 'name_clean' => 'city-nighttime',
169
+ ),
170
+ 15 =>
171
+ array (
172
+ 'type' => 'CSMM PRO',
173
+ 'version' => '15.17',
174
+ 'last_edit' => 'Sun, 29 Jul 2018 12:52:06 +0000',
175
+ 'name' => 'Cityscape',
176
+ 'description' => '',
177
+ 'frontpage' => '1',
178
+ 'status' => 'agency',
179
+ 'name_clean' => 'cityscape',
180
+ ),
181
+ 16 =>
182
+ array (
183
+ 'type' => 'CSMM PRO',
184
+ 'version' => '5.14',
185
+ 'last_edit' => 'Fri, 23 Mar 2018 16:46:05 +0000',
186
+ 'name' => 'Clouds Screensaver (Video)',
187
+ 'description' => '',
188
+ 'frontpage' => '1',
189
+ 'status' => 'agency',
190
+ 'name_clean' => 'clouds-screensaver-video',
191
+ ),
192
+ 17 =>
193
+ array (
194
+ 'type' => 'CSMM PRO',
195
+ 'version' => '5.005',
196
+ 'last_edit' => 'Thu, 22 Feb 2018 18:45:40 +0000',
197
+ 'name' => 'Coffee Shop',
198
+ 'description' => 'Andrea',
199
+ 'frontpage' => '1',
200
+ 'status' => 'agency',
201
+ 'name_clean' => 'coffee-shop',
202
+ ),
203
+ 18 =>
204
+ array (
205
+ 'type' => 'CSMM PRO',
206
+ 'version' => '15.17',
207
+ 'last_edit' => 'Fri, 04 May 2018 08:57:40 +0000',
208
+ 'name' => 'Cold Lake',
209
+ 'description' => '',
210
+ 'frontpage' => '1',
211
+ 'status' => 'agency',
212
+ 'name_clean' => 'cold-lake',
213
+ ),
214
+ 19 =>
215
+ array (
216
+ 'type' => 'CSMM PRO',
217
+ 'version' => '15.17',
218
+ 'last_edit' => 'Mon, 07 Jan 2019 08:25:36 +0000',
219
+ 'name' => 'Computer Repair Service',
220
+ 'description' => '',
221
+ 'frontpage' => '1',
222
+ 'status' => 'agency',
223
+ 'name_clean' => 'computer-repair-service',
224
+ ),
225
+ 20 =>
226
+ array (
227
+ 'type' => 'CSMM PRO',
228
+ 'version' => '15.17',
229
+ 'last_edit' => 'Wed, 27 Feb 2019 20:04:27 +0000',
230
+ 'name' => 'Concert',
231
+ 'description' => '',
232
+ 'frontpage' => '1',
233
+ 'status' => 'pro',
234
+ 'name_clean' => 'concert',
235
+ ),
236
+ 21 =>
237
+ array (
238
+ 'type' => 'CSMM PRO',
239
+ 'version' => '15.17',
240
+ 'last_edit' => 'Tue, 23 Apr 2019 08:43:55 +0000',
241
+ 'name' => 'Conference Event',
242
+ 'description' => '',
243
+ 'frontpage' => '1',
244
+ 'status' => 'pro',
245
+ 'name_clean' => 'conference-event',
246
+ ),
247
+ 22 =>
248
+ array (
249
+ 'type' => 'CSMM PRO',
250
+ 'version' => '15.17',
251
+ 'last_edit' => 'Fri, 30 Nov 2018 10:25:04 +0000',
252
+ 'name' => 'Custom Decor',
253
+ 'description' => '',
254
+ 'frontpage' => '1',
255
+ 'status' => 'agency',
256
+ 'name_clean' => 'custom-decor',
257
+ ),
258
+ 23 =>
259
+ array (
260
+ 'type' => 'CSMM PRO',
261
+ 'version' => '5.005',
262
+ 'last_edit' => 'Mon, 26 Feb 2018 20:41:31 +0000',
263
+ 'name' => 'Default',
264
+ 'description' => 'Default settings, nothing more.',
265
+ 'frontpage' => '0',
266
+ 'status' => 'pro',
267
+ 'name_clean' => 'default',
268
+ ),
269
+ 24 =>
270
+ array (
271
+ 'type' => 'CSMM PRO',
272
+ 'version' => '15.17',
273
+ 'last_edit' => 'Fri, 30 Mar 2018 11:24:59 +0000',
274
+ 'name' => 'Dental Clinic',
275
+ 'description' => 'Andrea',
276
+ 'frontpage' => '1',
277
+ 'status' => 'agency',
278
+ 'name_clean' => 'dental-clinic',
279
+ ),
280
+ 25 =>
281
+ array (
282
+ 'type' => 'CSMM PRO',
283
+ 'version' => '15.17',
284
+ 'last_edit' => 'Mon, 26 Nov 2018 18:41:25 +0000',
285
+ 'name' => 'Dog Shelter',
286
+ 'description' => '',
287
+ 'frontpage' => '1',
288
+ 'status' => 'pro',
289
+ 'name_clean' => 'dog-shelter',
290
+ ),
291
+ 26 =>
292
+ array (
293
+ 'type' => 'CSMM PRO',
294
+ 'version' => '5.001',
295
+ 'last_edit' => 'Tue, 20 Feb 2018 09:14:59 +0000',
296
+ 'name' => 'Dog Training and Behavior Consulting',
297
+ 'description' => '',
298
+ 'frontpage' => '1',
299
+ 'status' => 'agency',
300
+ 'name_clean' => 'dog-training-and-behavior-consulting',
301
+ ),
302
+ 27 =>
303
+ array (
304
+ 'type' => 'CSMM PRO',
305
+ 'version' => '15.17',
306
+ 'last_edit' => 'Mon, 07 Jan 2019 08:27:22 +0000',
307
+ 'name' => 'Employment',
308
+ 'description' => '',
309
+ 'frontpage' => '1',
310
+ 'status' => 'pro',
311
+ 'name_clean' => 'employment',
312
+ ),
313
+ 28 =>
314
+ array (
315
+ 'type' => 'CSMM PRO',
316
+ 'version' => '15.17',
317
+ 'last_edit' => 'Sun, 23 Dec 2018 09:56:23 +0000',
318
+ 'name' => 'Essay Writing Service',
319
+ 'description' => '',
320
+ 'frontpage' => '1',
321
+ 'status' => 'agency',
322
+ 'name_clean' => 'essay-writing-service',
323
+ ),
324
+ 29 =>
325
+ array (
326
+ 'type' => 'CSMM PRO',
327
+ 'version' => '15.17',
328
+ 'last_edit' => 'Wed, 29 Aug 2018 16:00:04 +0000',
329
+ 'name' => 'Fall (Video)',
330
+ 'description' => '',
331
+ 'frontpage' => '1',
332
+ 'status' => 'pro',
333
+ 'name_clean' => 'fall-video',
334
+ ),
335
+ 30 =>
336
+ array (
337
+ 'type' => 'CSMM PRO',
338
+ 'version' => '15.17',
339
+ 'last_edit' => 'Sat, 21 Jul 2018 22:37:09 +0000',
340
+ 'name' => 'Fashion',
341
+ 'description' => '',
342
+ 'frontpage' => '1',
343
+ 'status' => 'agency',
344
+ 'name_clean' => 'fashion',
345
+ ),
346
+ 31 =>
347
+ array (
348
+ 'type' => 'CSMM PRO',
349
+ 'version' => '15.17',
350
+ 'last_edit' => 'Tue, 30 Oct 2018 18:11:40 +0000',
351
+ 'name' => 'Financial District',
352
+ 'description' => '',
353
+ 'frontpage' => '1',
354
+ 'status' => 'pro',
355
+ 'name_clean' => 'financial-district',
356
+ ),
357
+ 32 =>
358
+ array (
359
+ 'type' => 'CSMM PRO',
360
+ 'version' => '15.05',
361
+ 'last_edit' => 'Fri, 02 Mar 2018 12:33:55 +0000',
362
+ 'name' => 'Flower Shop',
363
+ 'description' => '',
364
+ 'frontpage' => '1',
365
+ 'status' => 'agency',
366
+ 'name_clean' => 'flower-shop',
367
+ ),
368
+ 33 =>
369
+ array (
370
+ 'type' => 'CSMM PRO',
371
+ 'version' => '15.17',
372
+ 'last_edit' => 'Wed, 02 May 2018 09:37:48 +0000',
373
+ 'name' => 'Food Blog',
374
+ 'description' => '',
375
+ 'frontpage' => '1',
376
+ 'status' => 'pro',
377
+ 'name_clean' => 'food-blog',
378
+ ),
379
+ 34 =>
380
+ array (
381
+ 'type' => 'CSMM PRO',
382
+ 'version' => '15.17',
383
+ 'last_edit' => 'Mon, 18 Jun 2018 16:40:10 +0000',
384
+ 'name' => 'Football',
385
+ 'description' => '',
386
+ 'frontpage' => '1',
387
+ 'status' => 'pro',
388
+ 'name_clean' => 'football',
389
+ ),
390
+ 35 =>
391
+ array (
392
+ 'type' => 'CSMM PRO',
393
+ 'version' => '15.17',
394
+ 'last_edit' => 'Sun, 23 Dec 2018 10:16:53 +0000',
395
+ 'name' => 'Frozen Nature',
396
+ 'description' => '',
397
+ 'frontpage' => '1',
398
+ 'status' => 'pro',
399
+ 'name_clean' => 'frozen-nature',
400
+ ),
401
+ 36 =>
402
+ array (
403
+ 'type' => 'CSMM PRO',
404
+ 'version' => '15.17',
405
+ 'last_edit' => 'Thu, 28 Feb 2019 08:14:36 +0000',
406
+ 'name' => 'Future Technology',
407
+ 'description' => '',
408
+ 'frontpage' => '1',
409
+ 'status' => 'pro',
410
+ 'name_clean' => 'future-technology',
411
+ ),
412
+ 37 =>
413
+ array (
414
+ 'type' => 'CSMM PRO',
415
+ 'version' => '15.17',
416
+ 'last_edit' => 'Tue, 23 Oct 2018 17:23:42 +0000',
417
+ 'name' => 'Halloween',
418
+ 'description' => '',
419
+ 'frontpage' => '1',
420
+ 'status' => 'pro',
421
+ 'name_clean' => 'halloween',
422
+ ),
423
+ 38 =>
424
+ array (
425
+ 'type' => 'CSMM PRO',
426
+ 'version' => '15.17',
427
+ 'last_edit' => 'Sat, 28 Jul 2018 15:16:26 +0000',
428
+ 'name' => 'Holiday Resort',
429
+ 'description' => '',
430
+ 'frontpage' => '1',
431
+ 'status' => 'pro',
432
+ 'name_clean' => 'holiday-resort',
433
+ ),
434
+ 39 =>
435
+ array (
436
+ 'type' => 'CSMM PRO',
437
+ 'version' => '15.17',
438
+ 'last_edit' => 'Fri, 30 Mar 2018 11:26:42 +0000',
439
+ 'name' => 'Homemade Chocolate Gifts',
440
+ 'description' => '',
441
+ 'frontpage' => '0',
442
+ 'status' => 'pro',
443
+ 'name_clean' => 'homemade-chocolate-gifts',
444
+ ),
445
+ 40 =>
446
+ array (
447
+ 'type' => 'CSMM PRO',
448
+ 'version' => '15.17',
449
+ 'last_edit' => 'Wed, 30 Jan 2019 19:33:31 +0000',
450
+ 'name' => 'Ice Cream Shop',
451
+ 'description' => '',
452
+ 'frontpage' => '1',
453
+ 'status' => 'pro',
454
+ 'name_clean' => 'ice-cream-shop',
455
+ ),
456
+ 41 =>
457
+ array (
458
+ 'type' => 'CSMM PRO',
459
+ 'version' => '15.05',
460
+ 'last_edit' => 'Fri, 02 Mar 2018 12:59:44 +0000',
461
+ 'name' => 'Interior Design',
462
+ 'description' => 'Andrea',
463
+ 'frontpage' => '1',
464
+ 'status' => 'agency',
465
+ 'name_clean' => 'interior-design',
466
+ ),
467
+ 42 =>
468
+ array (
469
+ 'type' => 'CSMM PRO',
470
+ 'version' => '5.14',
471
+ 'last_edit' => 'Fri, 23 Mar 2018 16:42:15 +0000',
472
+ 'name' => 'Journey (Video)',
473
+ 'description' => '',
474
+ 'frontpage' => '1',
475
+ 'status' => 'agency',
476
+ 'name_clean' => 'journey-video',
477
+ ),
478
+ 43 =>
479
+ array (
480
+ 'type' => 'CSMM PRO',
481
+ 'version' => '15.17',
482
+ 'last_edit' => 'Mon, 11 Mar 2019 18:11:04 +0000',
483
+ 'name' => 'Ladies Accessories',
484
+ 'description' => '',
485
+ 'frontpage' => '1',
486
+ 'status' => 'agency',
487
+ 'name_clean' => 'ladies-accessories',
488
+ ),
489
+ 44 =>
490
+ array (
491
+ 'type' => 'CSMM PRO',
492
+ 'version' => '15.17',
493
+ 'last_edit' => 'Fri, 30 Mar 2018 11:28:28 +0000',
494
+ 'name' => 'LEGO Bricks',
495
+ 'description' => '',
496
+ 'frontpage' => '0',
497
+ 'status' => 'pro',
498
+ 'name_clean' => 'lego-bricks',
499
+ ),
500
+ 45 =>
501
+ array (
502
+ 'type' => 'CSMM PRO',
503
+ 'version' => '15.17',
504
+ 'last_edit' => 'Wed, 29 Aug 2018 16:36:44 +0000',
505
+ 'name' => 'Loneliness',
506
+ 'description' => '',
507
+ 'frontpage' => '1',
508
+ 'status' => 'agency',
509
+ 'name_clean' => 'loneliness',
510
+ ),
511
+ 46 =>
512
+ array (
513
+ 'type' => 'CSMM PRO',
514
+ 'version' => '15.17',
515
+ 'last_edit' => 'Wed, 25 Apr 2018 11:04:55 +0000',
516
+ 'name' => 'Lonely Road',
517
+ 'description' => 'Andrea',
518
+ 'frontpage' => '1',
519
+ 'status' => 'agency',
520
+ 'name_clean' => 'lonely-road',
521
+ ),
522
+ 47 =>
523
+ array (
524
+ 'type' => 'CSMM PRO',
525
+ 'version' => '15.17',
526
+ 'last_edit' => 'Fri, 30 Mar 2018 11:30:37 +0000',
527
+ 'name' => 'Luxury Car',
528
+ 'description' => '',
529
+ 'frontpage' => '1',
530
+ 'status' => 'pro',
531
+ 'name_clean' => 'luxury-car',
532
+ ),
533
+ 48 =>
534
+ array (
535
+ 'type' => 'CSMM PRO',
536
+ 'version' => '5.005',
537
+ 'last_edit' => 'Mon, 26 Feb 2018 18:31:18 +0000',
538
+ 'name' => 'Maintenance Mode',
539
+ 'description' => 'Andrea',
540
+ 'frontpage' => '0',
541
+ 'status' => 'pro',
542
+ 'name_clean' => 'maintenance-mode',
543
+ ),
544
+ 49 =>
545
+ array (
546
+ 'type' => 'CSMM PRO',
547
+ 'version' => '5.005',
548
+ 'last_edit' => 'Mon, 26 Feb 2018 17:59:30 +0000',
549
+ 'name' => 'Makeup Artist Training',
550
+ 'description' => 'Andrea',
551
+ 'frontpage' => '1',
552
+ 'status' => 'agency',
553
+ 'name_clean' => 'makeup-artist-training',
554
+ ),
555
+ 50 =>
556
+ array (
557
+ 'type' => 'CSMM PRO',
558
+ 'version' => '15.17',
559
+ 'last_edit' => 'Sun, 23 Sep 2018 13:09:03 +0000',
560
+ 'name' => 'Misty Forest (Video)',
561
+ 'description' => '',
562
+ 'frontpage' => '1',
563
+ 'status' => 'pro',
564
+ 'name_clean' => 'misty-forest-video',
565
+ ),
566
+ 51 =>
567
+ array (
568
+ 'type' => 'CSMM PRO',
569
+ 'version' => '15.17',
570
+ 'last_edit' => 'Wed, 25 Apr 2018 11:08:31 +0000',
571
+ 'name' => 'Mobile Designer',
572
+ 'description' => 'Andrea',
573
+ 'frontpage' => '1',
574
+ 'status' => 'agency',
575
+ 'name_clean' => 'mobile-designer',
576
+ ),
577
+ 52 =>
578
+ array (
579
+ 'type' => 'CSMM PRO',
580
+ 'version' => '15.17',
581
+ 'last_edit' => 'Tue, 30 Oct 2018 18:10:11 +0000',
582
+ 'name' => 'Mobile Meeting',
583
+ 'description' => '',
584
+ 'frontpage' => '1',
585
+ 'status' => 'agency',
586
+ 'name_clean' => 'mobile-meeting',
587
+ ),
588
+ 53 =>
589
+ array (
590
+ 'type' => 'CSMM PRO',
591
+ 'version' => '5.005',
592
+ 'last_edit' => 'Mon, 26 Feb 2018 18:04:32 +0000',
593
+ 'name' => 'Modern Blog',
594
+ 'description' => '',
595
+ 'frontpage' => '1',
596
+ 'status' => 'pro',
597
+ 'name_clean' => 'modern-blog',
598
+ ),
599
+ 54 =>
600
+ array (
601
+ 'type' => 'CSMM PRO',
602
+ 'version' => '15.05',
603
+ 'last_edit' => 'Fri, 02 Mar 2018 10:14:21 +0000',
604
+ 'name' => 'Modern Office',
605
+ 'description' => 'Andrea',
606
+ 'frontpage' => '0',
607
+ 'status' => 'agency',
608
+ 'name_clean' => 'modern-office',
609
+ ),
610
+ 55 =>
611
+ array (
612
+ 'type' => 'CSMM PRO',
613
+ 'version' => '15.17',
614
+ 'last_edit' => 'Mon, 26 Nov 2018 18:42:35 +0000',
615
+ 'name' => 'Modern Recipes',
616
+ 'description' => '',
617
+ 'frontpage' => '1',
618
+ 'status' => 'agency',
619
+ 'name_clean' => 'modern-recipes',
620
+ ),
621
+ 56 =>
622
+ array (
623
+ 'type' => 'CSMM PRO',
624
+ 'version' => '15.17',
625
+ 'last_edit' => 'Fri, 30 Mar 2018 11:48:23 +0000',
626
+ 'name' => 'Mountain Slide',
627
+ 'description' => '',
628
+ 'frontpage' => '1',
629
+ 'status' => 'pro',
630
+ 'name_clean' => 'mountain-slide',
631
+ ),
632
+ 57 =>
633
+ array (
634
+ 'type' => 'CSMM PRO',
635
+ 'version' => '5.05',
636
+ 'last_edit' => 'Thu, 01 Mar 2018 10:49:52 +0000',
637
+ 'name' => 'Mountain',
638
+ 'description' => 'Andrea',
639
+ 'frontpage' => '0',
640
+ 'status' => 'pro',
641
+ 'name_clean' => 'mountain',
642
+ ),
643
+ 58 =>
644
+ array (
645
+ 'type' => 'CSMM PRO',
646
+ 'version' => '15.17',
647
+ 'last_edit' => 'Wed, 25 Apr 2018 11:12:56 +0000',
648
+ 'name' => 'Movie Trailer (Video)',
649
+ 'description' => '',
650
+ 'frontpage' => '0',
651
+ 'status' => 'pro',
652
+ 'name_clean' => 'movie-trailer-video',
653
+ ),
654
+ 59 =>
655
+ array (
656
+ 'type' => 'CSMM PRO',
657
+ 'version' => '15.05',
658
+ 'last_edit' => 'Fri, 02 Mar 2018 10:17:02 +0000',
659
+ 'name' => 'Nature',
660
+ 'description' => 'Andrea',
661
+ 'frontpage' => '0',
662
+ 'status' => 'agency',
663
+ 'name_clean' => 'nature',
664
+ ),
665
+ 60 =>
666
+ array (
667
+ 'type' => 'CSMM PRO',
668
+ 'version' => '5.14',
669
+ 'last_edit' => 'Fri, 23 Mar 2018 16:37:55 +0000',
670
+ 'name' => 'Office Meeting (Video)',
671
+ 'description' => '',
672
+ 'frontpage' => '1',
673
+ 'status' => 'agency',
674
+ 'name_clean' => 'office-meeting-video',
675
+ ),
676
+ 61 =>
677
+ array (
678
+ 'type' => 'CSMM PRO',
679
+ 'version' => '15.05',
680
+ 'last_edit' => 'Fri, 02 Mar 2018 12:35:44 +0000',
681
+ 'name' => 'Office Theme',
682
+ 'description' => '',
683
+ 'frontpage' => '1',
684
+ 'status' => 'agency',
685
+ 'name_clean' => 'office-theme',
686
+ ),
687
+ 62 =>
688
+ array (
689
+ 'type' => 'CSMM PRO',
690
+ 'version' => '5.005',
691
+ 'last_edit' => 'Mon, 26 Feb 2018 18:07:28 +0000',
692
+ 'name' => 'Online Learning',
693
+ 'description' => 'Andrea',
694
+ 'frontpage' => '1',
695
+ 'status' => 'agency',
696
+ 'name_clean' => 'online-learning',
697
+ ),
698
+ 63 =>
699
+ array (
700
+ 'type' => 'CSMM PRO',
701
+ 'version' => '15.17',
702
+ 'last_edit' => 'Wed, 25 Apr 2018 11:10:44 +0000',
703
+ 'name' => 'Pancake House',
704
+ 'description' => '',
705
+ 'frontpage' => '0',
706
+ 'status' => 'pro',
707
+ 'name_clean' => 'pancake-house',
708
+ ),
709
+ 64 =>
710
+ array (
711
+ 'type' => 'CSMM PRO',
712
+ 'version' => '15.17',
713
+ 'last_edit' => 'Wed, 25 Apr 2018 11:15:19 +0000',
714
+ 'name' => 'Parenting',
715
+ 'description' => '',
716
+ 'frontpage' => '0',
717
+ 'status' => 'pro',
718
+ 'name_clean' => 'parenting',
719
+ ),
720
+ 65 =>
721
+ array (
722
+ 'type' => 'CSMM PRO',
723
+ 'version' => '15.17',
724
+ 'last_edit' => 'Tue, 28 Aug 2018 15:03:08 +0000',
725
+ 'name' => 'Passage',
726
+ 'description' => '',
727
+ 'frontpage' => '0',
728
+ 'status' => 'pro',
729
+ 'name_clean' => 'passage',
730
+ ),
731
+ 66 =>
732
+ array (
733
+ 'type' => 'CSMM PRO',
734
+ 'version' => '15.17',
735
+ 'last_edit' => 'Tue, 23 Oct 2018 18:08:17 +0000',
736
+ 'name' => 'Peaceful River',
737
+ 'description' => '',
738
+ 'frontpage' => '1',
739
+ 'status' => 'agency',
740
+ 'name_clean' => 'peaceful-river',
741
+ ),
742
+ 67 =>
743
+ array (
744
+ 'type' => 'CSMM PRO',
745
+ 'version' => '15.17',
746
+ 'last_edit' => 'Sat, 18 May 2019 12:49:23 +0000',
747
+ 'name' => 'Personal Trainer',
748
+ 'description' => '',
749
+ 'frontpage' => '1',
750
+ 'status' => 'pro',
751
+ 'name_clean' => 'personal-trainer',
752
+ ),
753
+ 68 =>
754
+ array (
755
+ 'type' => 'CSMM PRO',
756
+ 'version' => '15.17',
757
+ 'last_edit' => 'Fri, 30 Mar 2018 11:35:07 +0000',
758
+ 'name' => 'Photography',
759
+ 'description' => '',
760
+ 'frontpage' => '1',
761
+ 'status' => 'agency',
762
+ 'name_clean' => 'photography',
763
+ ),
764
+ 69 =>
765
+ array (
766
+ 'type' => 'CSMM PRO',
767
+ 'version' => '15.17',
768
+ 'last_edit' => 'Sun, 10 Mar 2019 11:20:31 +0000',
769
+ 'name' => 'Romantic Travels',
770
+ 'description' => '',
771
+ 'frontpage' => '1',
772
+ 'status' => 'agency',
773
+ 'name_clean' => 'romantic-travels',
774
+ ),
775
+ 70 =>
776
+ array (
777
+ 'type' => 'CSMM PRO',
778
+ 'version' => '15.17',
779
+ 'last_edit' => 'Fri, 30 Mar 2018 11:41:09 +0000',
780
+ 'name' => 'Running Blog',
781
+ 'description' => '',
782
+ 'frontpage' => '0',
783
+ 'status' => 'agency',
784
+ 'name_clean' => 'running-blog',
785
+ ),
786
+ 71 =>
787
+ array (
788
+ 'type' => 'CSMM PRO',
789
+ 'version' => '15.14',
790
+ 'last_edit' => 'Sat, 24 Mar 2018 10:23:40 +0000',
791
+ 'name' => 'Running (Video)',
792
+ 'description' => '',
793
+ 'frontpage' => '1',
794
+ 'status' => 'pro',
795
+ 'name_clean' => 'running-video',
796
+ ),
797
+ 72 =>
798
+ array (
799
+ 'type' => 'CSMM PRO',
800
+ 'version' => '15.17',
801
+ 'last_edit' => 'Thu, 25 Apr 2019 08:11:16 +0000',
802
+ 'name' => 'Scholar University',
803
+ 'description' => '',
804
+ 'frontpage' => '1',
805
+ 'status' => 'agency',
806
+ 'name_clean' => 'scholar-university',
807
+ ),
808
+ 73 =>
809
+ array (
810
+ 'type' => 'CSMM PRO',
811
+ 'version' => '5.005',
812
+ 'last_edit' => 'Mon, 26 Feb 2018 11:17:32 +0000',
813
+ 'name' => 'Shoes Store',
814
+ 'description' => 'Andrea',
815
+ 'frontpage' => '1',
816
+ 'status' => 'agency',
817
+ 'name_clean' => 'shoes-store',
818
+ ),
819
+ 74 =>
820
+ array (
821
+ 'type' => 'CSMM PRO',
822
+ 'version' => '15.17',
823
+ 'last_edit' => 'Wed, 25 Apr 2018 11:17:21 +0000',
824
+ 'name' => 'Simple Beige Design',
825
+ 'description' => '',
826
+ 'frontpage' => '0',
827
+ 'status' => 'pro',
828
+ 'name_clean' => 'simple-beige-design',
829
+ ),
830
+ 75 =>
831
+ array (
832
+ 'type' => 'CSMM PRO',
833
+ 'version' => '15.17',
834
+ 'last_edit' => 'Wed, 25 Apr 2018 11:19:34 +0000',
835
+ 'name' => 'Snow Screensaver (Video)',
836
+ 'description' => '',
837
+ 'frontpage' => '1',
838
+ 'status' => 'pro',
839
+ 'name_clean' => 'snow-screensaver-video',
840
+ ),
841
+ 76 =>
842
+ array (
843
+ 'type' => 'CSMM PRO',
844
+ 'version' => '15.17',
845
+ 'last_edit' => 'Fri, 30 Mar 2018 11:44:39 +0000',
846
+ 'name' => 'Snowboarding Blog',
847
+ 'description' => '',
848
+ 'frontpage' => '1',
849
+ 'status' => 'pro',
850
+ 'name_clean' => 'snowboarding-blog',
851
+ ),
852
+ 77 =>
853
+ array (
854
+ 'type' => 'CSMM PRO',
855
+ 'version' => '15.17',
856
+ 'last_edit' => 'Wed, 25 Apr 2018 11:21:19 +0000',
857
+ 'name' => 'Snowy Mountain',
858
+ 'description' => '',
859
+ 'frontpage' => '1',
860
+ 'status' => 'pro',
861
+ 'name_clean' => 'snowy-mountain',
862
+ ),
863
+ 78 =>
864
+ array (
865
+ 'type' => 'CSMM PRO',
866
+ 'version' => '15.17',
867
+ 'last_edit' => 'Fri, 30 Nov 2018 10:24:22 +0000',
868
+ 'name' => 'Snowy Oasis',
869
+ 'description' => '',
870
+ 'frontpage' => '1',
871
+ 'status' => 'pro',
872
+ 'name_clean' => 'snowy-oasis',
873
+ ),
874
+ 79 =>
875
+ array (
876
+ 'type' => 'CSMM PRO',
877
+ 'version' => '15.17',
878
+ 'last_edit' => 'Wed, 10 Apr 2019 17:03:10 +0000',
879
+ 'name' => 'Social Media Service',
880
+ 'description' => '',
881
+ 'frontpage' => '1',
882
+ 'status' => 'agency',
883
+ 'name_clean' => 'social-media-service',
884
+ ),
885
+ 80 =>
886
+ array (
887
+ 'type' => 'CSMM PRO',
888
+ 'version' => '15.17',
889
+ 'last_edit' => 'Sun, 17 Feb 2019 12:27:43 +0000',
890
+ 'name' => 'Spa & Beauty Studio',
891
+ 'description' => '',
892
+ 'frontpage' => '1',
893
+ 'status' => 'agency',
894
+ 'name_clean' => 'spa-beauty-studio',
895
+ ),
896
+ 81 =>
897
+ array (
898
+ 'type' => 'CSMM PRO',
899
+ 'version' => '15.17',
900
+ 'last_edit' => 'Fri, 30 Mar 2018 09:59:40 +0000',
901
+ 'name' => 'Spring',
902
+ 'description' => '',
903
+ 'frontpage' => '0',
904
+ 'status' => 'agency',
905
+ 'name_clean' => 'spring',
906
+ ),
907
+ 82 =>
908
+ array (
909
+ 'type' => 'CSMM PRO',
910
+ 'version' => '15.17',
911
+ 'last_edit' => 'Sat, 26 Jan 2019 16:30:01 +0000',
912
+ 'name' => 'Startup',
913
+ 'description' => '',
914
+ 'frontpage' => '1',
915
+ 'status' => 'pro',
916
+ 'name_clean' => 'startup',
917
+ ),
918
+ 83 =>
919
+ array (
920
+ 'type' => 'CSMM PRO',
921
+ 'version' => '15.17',
922
+ 'last_edit' => 'Sun, 19 Aug 2018 07:48:14 +0000',
923
+ 'name' => 'Stylish Workplace',
924
+ 'description' => '',
925
+ 'frontpage' => '1',
926
+ 'status' => 'pro',
927
+ 'name_clean' => 'stylish-workplace',
928
+ ),
929
+ 84 =>
930
+ array (
931
+ 'type' => 'CSMM PRO',
932
+ 'version' => '15.17',
933
+ 'last_edit' => 'Wed, 25 Apr 2018 11:22:49 +0000',
934
+ 'name' => 'The Big City Newsletter',
935
+ 'description' => 'Andrea',
936
+ 'frontpage' => '1',
937
+ 'status' => 'agency',
938
+ 'name_clean' => 'the-big-city-newsletter',
939
+ ),
940
+ 85 =>
941
+ array (
942
+ 'type' => 'CSMM PRO',
943
+ 'version' => '5.14',
944
+ 'last_edit' => 'Thu, 22 Mar 2018 11:33:57 +0000',
945
+ 'name' => 'The Sunny View',
946
+ 'description' => 'Andrea',
947
+ 'frontpage' => '0',
948
+ 'status' => 'pro',
949
+ 'name_clean' => 'the-sunny-view',
950
+ ),
951
+ 86 =>
952
+ array (
953
+ 'type' => 'CSMM PRO',
954
+ 'version' => '5.001',
955
+ 'last_edit' => 'Tue, 20 Feb 2018 10:57:27 +0000',
956
+ 'name' => 'Travel Agency',
957
+ 'description' => '',
958
+ 'frontpage' => '1',
959
+ 'status' => 'pro',
960
+ 'name_clean' => 'travel-agency',
961
+ ),
962
+ 87 =>
963
+ array (
964
+ 'type' => 'CSMM PRO',
965
+ 'version' => '15.05',
966
+ 'last_edit' => 'Fri, 02 Mar 2018 12:39:22 +0000',
967
+ 'name' => 'Travel Blog',
968
+ 'description' => 'Andrea',
969
+ 'frontpage' => '1',
970
+ 'status' => 'agency',
971
+ 'name_clean' => 'travel-blog',
972
+ ),
973
+ 88 =>
974
+ array (
975
+ 'type' => 'CSMM PRO',
976
+ 'version' => '15.17',
977
+ 'last_edit' => 'Wed, 25 Apr 2018 11:24:56 +0000',
978
+ 'name' => 'Tulips',
979
+ 'description' => '',
980
+ 'frontpage' => '1',
981
+ 'status' => 'agency',
982
+ 'name_clean' => 'tulips',
983
+ ),
984
+ 89 =>
985
+ array (
986
+ 'type' => 'CSMM PRO',
987
+ 'version' => '15.17',
988
+ 'last_edit' => 'Sun, 27 Jan 2019 08:47:12 +0000',
989
+ 'name' => 'Valentine&#39;s Day',
990
+ 'description' => '',
991
+ 'frontpage' => '1',
992
+ 'status' => 'pro',
993
+ 'name_clean' => 'valentines-day',
994
+ ),
995
+ 90 =>
996
+ array (
997
+ 'type' => 'CSMM PRO',
998
+ 'version' => '5.001',
999
+ 'last_edit' => 'Mon, 19 Feb 2018 12:31:48 +0000',
1000
+ 'name' => 'Video Production',
1001
+ 'description' => '',
1002
+ 'frontpage' => '1',
1003
+ 'status' => 'pro',
1004
+ 'name_clean' => 'video-production',
1005
+ ),
1006
+ 91 =>
1007
+ array (
1008
+ 'type' => 'CSMM PRO',
1009
+ 'version' => '15.17',
1010
+ 'last_edit' => 'Thu, 04 Apr 2019 16:55:28 +0000',
1011
+ 'name' => 'Virtual Assistant Service',
1012
+ 'description' => '',
1013
+ 'frontpage' => '1',
1014
+ 'status' => 'agency',
1015
+ 'name_clean' => 'virtual-assistant-service',
1016
+ ),
1017
+ 92 =>
1018
+ array (
1019
+ 'type' => 'CSMM PRO',
1020
+ 'version' => '15.17',
1021
+ 'last_edit' => 'Sat, 07 Jul 2018 15:15:19 +0000',
1022
+ 'name' => 'Walking Away (Video)',
1023
+ 'description' => '',
1024
+ 'frontpage' => '0',
1025
+ 'status' => 'pro',
1026
+ 'name_clean' => 'walking-away-video',
1027
+ ),
1028
+ 93 =>
1029
+ array (
1030
+ 'type' => 'CSMM PRO',
1031
+ 'version' => '5.005',
1032
+ 'last_edit' => 'Mon, 26 Feb 2018 19:54:07 +0000',
1033
+ 'name' => 'Webinar',
1034
+ 'description' => 'Andrea',
1035
+ 'frontpage' => '1',
1036
+ 'status' => 'agency',
1037
+ 'name_clean' => 'webinar',
1038
+ ),
1039
+ 94 =>
1040
+ array (
1041
+ 'type' => 'CSMM PRO',
1042
+ 'version' => '5.005',
1043
+ 'last_edit' => 'Fri, 23 Feb 2018 11:53:23 +0000',
1044
+ 'name' => 'Wedding Blog',
1045
+ 'description' => 'Andrea',
1046
+ 'frontpage' => '1',
1047
+ 'status' => 'agency',
1048
+ 'name_clean' => 'wedding-blog',
1049
+ ),
1050
+ 95 =>
1051
+ array (
1052
+ 'type' => 'CSMM PRO',
1053
+ 'version' => '15.17',
1054
+ 'last_edit' => 'Tue, 22 May 2018 12:41:04 +0000',
1055
+ 'name' => 'White Orchids',
1056
+ 'description' => '',
1057
+ 'frontpage' => '1',
1058
+ 'status' => 'pro',
1059
+ 'name_clean' => 'white-orchids',
1060
+ ),
1061
+ 96 =>
1062
+ array (
1063
+ 'type' => 'CSMM PRO',
1064
+ 'version' => '5.14',
1065
+ 'last_edit' => 'Thu, 22 Mar 2018 11:29:56 +0000',
1066
+ 'name' => 'Working Out',
1067
+ 'description' => '',
1068
+ 'frontpage' => '1',
1069
+ 'status' => 'agency',
1070
+ 'name_clean' => 'working-out',
1071
+ ),
1072
+ 97 =>
1073
+ array (
1074
+ 'type' => 'CSMM PRO',
1075
+ 'version' => '15.05',
1076
+ 'last_edit' => 'Fri, 02 Mar 2018 12:36:42 +0000',
1077
+ 'name' => 'Workplace',
1078
+ 'description' => 'Andrea',
1079
+ 'frontpage' => '1',
1080
+ 'status' => 'agency',
1081
+ 'name_clean' => 'workplace',
1082
+ ),
1083
+ 98 =>
1084
+ array (
1085
+ 'type' => 'CSMM PRO',
1086
+ 'version' => '15.17',
1087
+ 'last_edit' => 'Wed, 25 Apr 2018 11:00:38 +0000',
1088
+ 'name' => 'Writing Service (Video)',
1089
+ 'description' => '',
1090
+ 'frontpage' => '1',
1091
+ 'status' => 'agency',
1092
+ 'name_clean' => 'writing-service-video',
1093
+ ),
1094
+ );
1095
+
1096
+ $path = WPMMP_PLUGIN_URL . '/images/pro-themes/';
1097
+
1098
+ echo '<p>Pro version of the plugin comes with <b>100+ themes</b> coupled with over a <b>million premium images</b>, secret access links so your friends &amp; <b>clients can preview the site</b>, content animations, <b>best-in-class SEO analyzer</b> so you rank from day one, numerous integrations with emailing systems and much more. <a href="' . wpmmp_generate_web_link('view-pro-features', '/', array('coupon' => 'welcome')) . '" target="_blank">View all pro features.</a></p>';
1099
+
1100
+ echo '<div style="text-align: center;"><p class="themes-banner"><a href="' . wpmmp_generate_web_link('themes-banner', '/', array('coupon' => 'welcome')) . '" target="_blank">A <b>25% WELCOMING DISCOUNT</b> has been applied to all PRO themes and licenses. <b>GRAB IT NOW!</b></a></p></div>';
1101
+
1102
+ echo '<div class="theme-thumbs-wrap">';
1103
+
1104
+ foreach ($themes as $theme) {
1105
+ echo '<div class="theme-thumb" data-theme="' . $theme['name_clean'] . '">';
1106
+ echo '<a href="' . wpmmp_generate_web_link('preview-theme-thumb-' . $theme['name_clean'], 'theme-preview', array('theme' => $theme['name_clean'])) . '" target="_blank"><img src="' . $path . $theme['name_clean'] . '.jpg" alt="Preview ' . $theme['name'] . '" title="Preview ' . $theme['name'] . '"></a>';
1107
+ echo '<span class="name">' . $theme['name'] . ' <small>(' . $theme['status'] . ' theme)</small></span>';
1108
+ echo '<span name="actions">';
1109
+ echo '<a href="' . wpmmp_generate_web_link('get-theme-' . $theme['name_clean'], '/', array('coupon' => 'welcome')) . '" class="button button-primary" target="_blank">';
1110
+ if ($theme['status'] == 'pro') {
1111
+ echo 'Get this theme from $6.99/m';
1112
+ } else {
1113
+ echo 'Get this theme from $15.99/m';
1114
+ }
1115
+ echo '</a>&nbsp; &nbsp;';
1116
+ echo '<a target="_blank" class="button button-secondary" href="' . wpmmp_generate_web_link('preview-theme-' . $theme['name_clean'], 'theme-preview', array('theme' => $theme['name_clean'])) . '">Preview</a>';
1117
+ echo '</span>';
1118
+ echo '<div class="ribbon"><i><span class="dashicons dashicons-star-filled"></span></i></div>';
1119
+ echo '</div>';
1120
+
1121
+ } // foreach theme
1122
+ echo '</div>';
1123
+ }
includes/tabs.php CHANGED
@@ -95,7 +95,7 @@ if(get_option( 'mmp_text_color') ) return;
95
  }
96
 
97
 
98
-
99
  register_activation_hook( __FILE__, 'mmp_default_settings' );
100
 
101
 
@@ -106,8 +106,8 @@ function wp_enqueue_js( ) {
106
  wp_enqueue_style( 'wp-color-picker' );
107
  wp_enqueue_style( 'thickbox' );
108
  wp_enqueue_script( 'thickbox' );
109
- wp_enqueue_script( 'media-upload' );
110
-
111
  wp_enqueue_script( 'wp-color-picker-script', WP_PLUGIN_URL .'/tabs/wspcolorpicker.js', array( 'wp-color-picker' ), false, true );
112
 
113
  }
@@ -154,39 +154,39 @@ function tabs_settings_page(){?>
154
  position: absolute; top: 0; bottom: 0;
155
  right: 56px;
156
  border: 2px solid #999999; border-radius: 20px;
157
- transition: all 0.1s ease-in 0s;
158
  }
159
  .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
160
  margin-left: 0;
161
  }
162
  .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
163
- right: 0px;
164
 
165
  }
166
  @font-face {
167
  font-family: 'Montserrat';
168
  font-style: normal;
169
  font-weight: 400;
170
- src: local('Montserrat-Regular'), url(http://fonts.gstatic.com/s/montserrat/v6/zhcz-_WihjSQC0oHJ9TCYPk_vArhqVIZ0nv9q090hN8.woff2) format('woff2'), url(http://fonts.gstatic.com/s/montserrat/v6/zhcz-_WihjSQC0oHJ9TCYBsxEYwM7FgeyaSgU71cLG0.woff) format('woff');
171
  }
172
 
173
  @font-face {
174
  font-family: 'Lato';
175
  font-style: normal;
176
  font-weight: 400;
177
- src: local('Lato Regular'), local('Lato-Regular'), url(http://fonts.gstatic.com/s/lato/v11/1YwB1sO8YE1Lyjf12WNiUA.woff2) format('woff2'), url(http://fonts.gstatic.com/s/lato/v11/9k-RPmcnxYEPm8CNFsH2gg.woff) format('woff');
178
  }
179
  @font-face {
180
  font-family: 'Lato';
181
  font-style: normal;
182
  font-weight: 700;
183
- src: local('Lato Bold'), local('Lato-Bold'), url(http://fonts.gstatic.com/s/lato/v11/H2DMvhDLycM56KNuAtbJYA.woff2) format('woff2'), url(http://fonts.gstatic.com/s/lato/v11/wkfQbvfT_02e2IWO3yYueQ.woff) format('woff');
184
  }
185
  @font-face {
186
  font-family: 'Lato';
187
  font-style: italic;
188
  font-weight: 400;
189
- src: local('Lato Italic'), local('Lato-Italic'), url(http://fonts.gstatic.com/s/lato/v11/PLygLKRVCQnA5fhu3qk5fQ.woff2) format('woff2'), url(http://fonts.gstatic.com/s/lato/v11/oUan5VrEkpzIazlUe5ieaA.woff) format('woff');
190
  }
191
 
192
  * {
@@ -293,9 +293,9 @@ b, strong {
293
 
294
  }
295
  /*
296
- This css and associated images borrow heavily from the fantastic
297
  chosen select box plugin.
298
-
299
  Copyright (c) 2011 Harvest http://getharvest.com
300
 
301
  MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
@@ -477,19 +477,20 @@ td.font-select-active > a div b {
477
 
478
 
479
  td span#pal {
480
- top: 80px;
481
  }
482
-
483
 
484
  </style>
485
 
486
- <div class='wrap'>
487
-
488
- <?php
 
489
  if ( isset( $_POST['reset'] ) ){
490
 
491
 
492
- delete_option('mmp_on_off');
493
  delete_option('mmp_favicon');
494
  delete_option('mmp_title');
495
  delete_option('mmp_seo_meta');
@@ -528,14 +529,14 @@ td span#pal {
528
 
529
  }
530
  ?>
531
-
532
  <?php settings_errors(); ?>
533
 
534
  <form method="post" action="options.php" >
535
  <?php settings_fields('mmp-settings-group');?>
536
  <table class="form-table">
537
  <h1><?php _e('Maintenance Mode Options Panel')?></h1>
538
-
539
 
540
  <br>
541
  <br>
@@ -571,7 +572,7 @@ td span#pal {
571
  </label>
572
  </div>
573
  </td>
574
- </tr>
575
 
576
 
577
  <tr>
@@ -597,11 +598,11 @@ td span#pal {
597
  </label>
598
  </div>
599
  </td>
600
- </tr>
 
601
 
602
 
603
 
604
-
605
 
606
  <tr>
607
  <th scope='row'><?php _e('Set Progress bar %');?></th>
@@ -625,8 +626,8 @@ td span#pal {
625
  </label>
626
  </div>
627
  </td>
628
- </tr>
629
-
630
 
631
  </table>
632
 
@@ -720,13 +721,13 @@ td span#pal {
720
  </td>
721
  </tr>
722
 
723
- </table>
724
-
725
 
726
  <table class="form-table">
727
 
728
  <div id="hed3"><h3><?php _e('Design')?></h3></div>
729
-
730
 
731
  <tr>
732
  <th scope='row'><?php _e('Background Color');?></th>
@@ -791,14 +792,14 @@ td span#pal {
791
  </label>
792
  </div>
793
  </td>
794
- </tr>
795
 
796
 
797
 
798
  <th scope='row'><?php _e('Font Family For Text');?></th>
799
  <td><label for='mmp_fft'>
800
  <input id="font" type="text" name="mmp_fft" value="<?php echo get_option( 'mmp_fft' ); ?>" />
801
-
802
  </label>
803
  </td>
804
  </tr>
@@ -818,7 +819,7 @@ td span#pal {
818
 
819
 
820
  <table class="form-table">
821
- <div id="hed3"><h3><?php _e('Template') ?></h3></div>
822
  <tr valign="top">
823
  <th scope="row"><?php _e( 'Custom Css') ?></th>
824
  <td><label for="mmp_custom_css">
@@ -828,8 +829,8 @@ td span#pal {
828
  </td>
829
  </tr>
830
  </table>
831
-
832
-
833
 
834
  <table class="form-table">
835
 
@@ -1017,13 +1018,13 @@ td span#pal {
1017
 
1018
  </table>
1019
 
1020
-
1021
 
1022
  <p class="submit">
1023
  <input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
1024
  </p>
1025
 
1026
-
1027
  </form>
1028
 
1029
  <form method="post" action="">
@@ -1032,10 +1033,10 @@ td span#pal {
1032
  <input type="hidden" value="reset" />
1033
  </p>
1034
  </form>
1035
-
1036
  </div> <!-- wraper-->
1037
 
1038
 
1039
  <?php }
1040
 
1041
- ?>
95
  }
96
 
97
 
98
+
99
  register_activation_hook( __FILE__, 'mmp_default_settings' );
100
 
101
 
106
  wp_enqueue_style( 'wp-color-picker' );
107
  wp_enqueue_style( 'thickbox' );
108
  wp_enqueue_script( 'thickbox' );
109
+ wp_enqueue_script( 'media-upload' );
110
+
111
  wp_enqueue_script( 'wp-color-picker-script', WP_PLUGIN_URL .'/tabs/wspcolorpicker.js', array( 'wp-color-picker' ), false, true );
112
 
113
  }
154
  position: absolute; top: 0; bottom: 0;
155
  right: 56px;
156
  border: 2px solid #999999; border-radius: 20px;
157
+ transition: all 0.1s ease-in 0s;
158
  }
159
  .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
160
  margin-left: 0;
161
  }
162
  .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
163
+ right: 0px;
164
 
165
  }
166
  @font-face {
167
  font-family: 'Montserrat';
168
  font-style: normal;
169
  font-weight: 400;
170
+ src: local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v6/zhcz-_WihjSQC0oHJ9TCYPk_vArhqVIZ0nv9q090hN8.woff2) format('woff2'), url(https://fonts.gstatic.com/s/montserrat/v6/zhcz-_WihjSQC0oHJ9TCYBsxEYwM7FgeyaSgU71cLG0.woff) format('woff');
171
  }
172
 
173
  @font-face {
174
  font-family: 'Lato';
175
  font-style: normal;
176
  font-weight: 400;
177
+ src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v11/1YwB1sO8YE1Lyjf12WNiUA.woff2) format('woff2'), url(https://fonts.gstatic.com/s/lato/v11/9k-RPmcnxYEPm8CNFsH2gg.woff) format('woff');
178
  }
179
  @font-face {
180
  font-family: 'Lato';
181
  font-style: normal;
182
  font-weight: 700;
183
+ src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v11/H2DMvhDLycM56KNuAtbJYA.woff2) format('woff2'), url(https://fonts.gstatic.com/s/lato/v11/wkfQbvfT_02e2IWO3yYueQ.woff) format('woff');
184
  }
185
  @font-face {
186
  font-family: 'Lato';
187
  font-style: italic;
188
  font-weight: 400;
189
+ src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v11/PLygLKRVCQnA5fhu3qk5fQ.woff2) format('woff2'), url(https://fonts.gstatic.com/s/lato/v11/oUan5VrEkpzIazlUe5ieaA.woff) format('woff');
190
  }
191
 
192
  * {
293
 
294
  }
295
  /*
296
+ This css and associated images borrow heavily from the fantastic
297
  chosen select box plugin.
298
+
299
  Copyright (c) 2011 Harvest http://getharvest.com
300
 
301
  MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
477
 
478
 
479
  td span#pal {
480
+ top: 80px;
481
  }
482
+
483
 
484
  </style>
485
 
486
+ <div class='wrap'>
487
+
488
+ <?php
489
+
490
  if ( isset( $_POST['reset'] ) ){
491
 
492
 
493
+ delete_option('mmp_on_off');
494
  delete_option('mmp_favicon');
495
  delete_option('mmp_title');
496
  delete_option('mmp_seo_meta');
529
 
530
  }
531
  ?>
532
+
533
  <?php settings_errors(); ?>
534
 
535
  <form method="post" action="options.php" >
536
  <?php settings_fields('mmp-settings-group');?>
537
  <table class="form-table">
538
  <h1><?php _e('Maintenance Mode Options Panel')?></h1>
539
+
540
 
541
  <br>
542
  <br>
572
  </label>
573
  </div>
574
  </td>
575
+ </tr>
576
 
577
 
578
  <tr>
598
  </label>
599
  </div>
600
  </td>
601
+ </tr>
602
+
603
 
604
 
605
 
 
606
 
607
  <tr>
608
  <th scope='row'><?php _e('Set Progress bar %');?></th>
626
  </label>
627
  </div>
628
  </td>
629
+ </tr>
630
+
631
 
632
  </table>
633
 
721
  </td>
722
  </tr>
723
 
724
+ </table>
725
+
726
 
727
  <table class="form-table">
728
 
729
  <div id="hed3"><h3><?php _e('Design')?></h3></div>
730
+
731
 
732
  <tr>
733
  <th scope='row'><?php _e('Background Color');?></th>
792
  </label>
793
  </div>
794
  </td>
795
+ </tr>
796
 
797
 
798
 
799
  <th scope='row'><?php _e('Font Family For Text');?></th>
800
  <td><label for='mmp_fft'>
801
  <input id="font" type="text" name="mmp_fft" value="<?php echo get_option( 'mmp_fft' ); ?>" />
802
+
803
  </label>
804
  </td>
805
  </tr>
819
 
820
 
821
  <table class="form-table">
822
+ <div id="hed3"><h3><?php _e('Template') ?></h3></div>
823
  <tr valign="top">
824
  <th scope="row"><?php _e( 'Custom Css') ?></th>
825
  <td><label for="mmp_custom_css">
829
  </td>
830
  </tr>
831
  </table>
832
+
833
+
834
 
835
  <table class="form-table">
836
 
1018
 
1019
  </table>
1020
 
1021
+
1022
 
1023
  <p class="submit">
1024
  <input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
1025
  </p>
1026
 
1027
+
1028
  </form>
1029
 
1030
  <form method="post" action="">
1033
  <input type="hidden" value="reset" />
1034
  </p>
1035
  </form>
1036
+
1037
  </div> <!-- wraper-->
1038
 
1039
 
1040
  <?php }
1041
 
1042
+ ?>
js/admin-settings.js CHANGED
@@ -1,4 +1,3 @@
1
-
2
  jQuery(document).ready(function() {
3
  jQuery('.color_picker').wpColorPicker();
4
  });
@@ -13,7 +12,7 @@ jQuery(document).ready(function() {
13
  jQuery(".ffft").val(font[0]);
14
 
15
  });
16
-
17
  });
18
 
19
  jQuery(document).ready(function() {
@@ -25,7 +24,7 @@ jQuery(document).ready(function() {
25
  jQuery(".ffft").val(font[0]);
26
 
27
  });
28
-
29
  });
30
 
31
 
@@ -38,7 +37,7 @@ jQuery(document).ready(function() {
38
  jQuery(".ffft").val(font[0]);
39
 
40
  });
41
-
42
  });
43
 
44
 
@@ -63,14 +62,14 @@ jQuery('.onetarek-upload-button').live('click', function( event ){
63
 
64
  // When an image is selected, run a callback.
65
  file_frame.on( 'select', function() {
66
-
67
  // We set multiple to false so only get one image from the uploader
68
  attachment = file_frame.state().get('selection').first().toJSON();
69
-
70
  console.log(that);
71
  that.prev('input').val( attachment.url );
72
-
73
-
74
  });
75
 
76
  // Finally, open the modal
@@ -79,7 +78,7 @@ jQuery('.onetarek-upload-button').live('click', function( event ){
79
 
80
  (function($){
81
 
82
- $.fn.fontselect = function(options) {
83
 
84
  var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
85
 
@@ -178,13 +177,13 @@ jQuery('.onetarek-upload-button').live('click', function( event ){
178
  "La+Belle+Aurore",
179
  "Lato:100",
180
  "Lato:100italic",
181
- "Lato:300",
182
  "Lato",
183
- "Lato:bold",
184
  "Lato:900",
185
  "League+Script",
186
- "Lekton",
187
- "Limelight",
188
  "Lobster",
189
  "Lobster Two",
190
  "Lora",
@@ -209,8 +208,8 @@ jQuery('.onetarek-upload-button').live('click', function( event ){
209
  "Monofett",
210
  "Molengo",
211
  "Mountains of Christmas",
212
- "Muli:300",
213
- "Muli",
214
  "Neucha",
215
  "Neuton",
216
  "News+Cycle",
@@ -242,7 +241,7 @@ jQuery('.onetarek-upload-button').live('click', function( event ){
242
  "Reenie+Beanie",
243
  "Pacifico",
244
  "Patrick+Hand",
245
- "Paytone+One",
246
  "Permanent+Marker",
247
  "Philosopher",
248
  "Play",
@@ -306,11 +305,11 @@ jQuery('.onetarek-upload-button').live('click', function( event ){
306
  style: 'font-select',
307
  placeholder: 'Select a font',
308
  lookahead: 2,
309
- api: 'http://fonts.googleapis.com/css?family='
310
  };
311
-
312
  var Fontselect = (function(){
313
-
314
  function Fontselect(original, o){
315
  this.$original = $(original);
316
  this.options = o;
@@ -325,47 +324,47 @@ jQuery('.onetarek-upload-button').live('click', function( event ){
325
  this.addFontLink(font);
326
  }
327
  }
328
-
329
  Fontselect.prototype.bindEvents = function(){
330
-
331
  $('li', this.$results)
332
  .click(__bind(this.selectFont, this))
333
  .mouseenter(__bind(this.activateFont, this))
334
  .mouseleave(__bind(this.deactivateFont, this));
335
-
336
  $('span', this.$select).click(__bind(this.toggleDrop, this));
337
  this.$arrow.click(__bind(this.toggleDrop, this));
338
  };
339
-
340
  Fontselect.prototype.toggleDrop = function(ev){
341
-
342
  if(this.active){
343
  this.$element.removeClass('font-select-active');
344
  this.$drop.hide();
345
  clearInterval(this.visibleInterval);
346
-
347
  } else {
348
  this.$element.addClass('font-select-active');
349
  this.$drop.show();
350
  this.moveToSelected();
351
  this.visibleInterval = setInterval(__bind(this.getVisibleFonts, this), 500);
352
  }
353
-
354
  this.active = !this.active;
355
  };
356
-
357
  Fontselect.prototype.selectFont = function(){
358
-
359
  var font = $('li.active', this.$results).data('value');
360
  this.$original.val(font).change();
361
  this.updateSelected();
362
  this.toggleDrop();
363
  };
364
-
365
  Fontselect.prototype.moveToSelected = function(){
366
-
367
  var $li, font = this.$original.val();
368
-
369
  if (font){
370
  $li = $("li[data-value='"+ font +"']", this.$results);
371
  } else {
@@ -374,25 +373,25 @@ jQuery('.onetarek-upload-button').live('click', function( event ){
374
 
375
  this.$results.scrollTop($li.addClass('active').position().top);
376
  };
377
-
378
  Fontselect.prototype.activateFont = function(ev){
379
  $('li.active', this.$results).removeClass('active');
380
  $(ev.currentTarget).addClass('active');
381
  };
382
-
383
  Fontselect.prototype.deactivateFont = function(ev){
384
-
385
  $(ev.currentTarget).removeClass('active');
386
  };
387
-
388
  Fontselect.prototype.updateSelected = function(){
389
-
390
  var font = this.$original.val();
391
  $('span', this.$element).text(this.toReadable(font)).css(this.toStyle(font));
392
  };
393
-
394
  Fontselect.prototype.setupHtml = function(){
395
-
396
  this.$original.empty().hide();
397
  this.$element = $('<div>', {'class': this.options.style});
398
  this.$arrow = $('<div><b></b></div>');
@@ -402,43 +401,43 @@ jQuery('.onetarek-upload-button').live('click', function( event ){
402
  this.$original.after(this.$element.append(this.$select.append(this.$arrow)).append(this.$drop));
403
  this.$drop.append(this.$results.append(this.fontsAsHtml())).hide();
404
  };
405
-
406
  Fontselect.prototype.fontsAsHtml = function(){
407
-
408
  var l = fonts.length;
409
  var r, s, h = '';
410
-
411
  for(var i=0; i<l; i++){
412
  r = this.toReadable(fonts[i]);
413
  s = this.toStyle(fonts[i]);
414
  h += '<li data-value="'+ fonts[i] +'" style="font-family: '+s['font-family'] +'; font-weight: '+s['font-weight'] +'">'+ r +'</li>';
415
  }
416
-
417
  return h;
418
  };
419
-
420
  Fontselect.prototype.toReadable = function(font){
421
  return font.replace(/[\+|:]/g, ' ');
422
  };
423
-
424
  Fontselect.prototype.toStyle = function(font){
425
  var t = font.split(':');
426
  return {'font-family': this.toReadable(t[0]), 'font-weight': (t[1] || 400)};
427
  };
428
-
429
  Fontselect.prototype.getVisibleFonts = function(){
430
-
431
  if(this.$results.is(':hidden')) return;
432
-
433
  var fs = this;
434
  var top = this.$results.scrollTop();
435
  var bottom = top + this.$results.height();
436
-
437
  if(this.options.lookahead){
438
  var li = $('li', this.$results).first().height();
439
  bottom += li*this.options.lookahead;
440
  }
441
-
442
  $('li', this.$results).each(function(){
443
 
444
  var ft = $(this).position().top+top;
@@ -448,26 +447,26 @@ jQuery('.onetarek-upload-button').live('click', function( event ){
448
  var font = $(this).data('value');
449
  fs.addFontLink(font);
450
  }
451
-
452
  });
453
  };
454
-
455
  Fontselect.prototype.addFontLink = function(font){
456
-
457
  var link = this.options.api + font;
458
-
459
  if ($("link[href*='" + font + "']").length === 0){
460
  $('link:last').after('<link href="' + link + '" rel="stylesheet" type="text/css">');
461
  }
462
  };
463
-
464
  return Fontselect;
465
  })();
466
 
467
- return this.each(function(options) {
468
  // If options exist, lets merge them
469
  if (options) $.extend( settings, options );
470
-
471
  return new Fontselect(this, settings);
472
  });
473
 
@@ -485,13 +484,13 @@ $(document).ready(function() {
485
  if ( confirm( wpmmpjs.confirm_reset ) ) {
486
 
487
  var url = wpmmpjs.ajax_url + '?action=wpmmp_reset_settings&nonce='+ wpmmpjs.reset_nonce;
488
-
489
  $.post( url, function(data) {
490
 
491
  alert(wpmmpjs.successfull_reset);
492
 
493
  window.location = window.location.href;
494
-
495
  });
496
 
497
  }
@@ -503,6 +502,7 @@ $(document).ready(function() {
503
  e.preventDefault();
504
 
505
  var tab = $(this).attr('href').replace( '?page=wpmmp-settings&tab=', '' );
 
506
 
507
  $('.nav-tab').each( function( index ) {
508
 
@@ -520,12 +520,25 @@ $(document).ready(function() {
520
 
521
  $(this).addClass('nav-tab-active');
522
 
523
-
524
  $('.tab-'+tab).addClass('active');
525
 
526
  });
527
 
 
 
 
 
 
 
 
 
 
 
 
 
 
528
  });
529
 
530
  //end
531
- });
 
1
  jQuery(document).ready(function() {
2
  jQuery('.color_picker').wpColorPicker();
3
  });
12
  jQuery(".ffft").val(font[0]);
13
 
14
  });
15
+
16
  });
17
 
18
  jQuery(document).ready(function() {
24
  jQuery(".ffft").val(font[0]);
25
 
26
  });
27
+
28
  });
29
 
30
 
37
  jQuery(".ffft").val(font[0]);
38
 
39
  });
40
+
41
  });
42
 
43
 
62
 
63
  // When an image is selected, run a callback.
64
  file_frame.on( 'select', function() {
65
+
66
  // We set multiple to false so only get one image from the uploader
67
  attachment = file_frame.state().get('selection').first().toJSON();
68
+
69
  console.log(that);
70
  that.prev('input').val( attachment.url );
71
+
72
+
73
  });
74
 
75
  // Finally, open the modal
78
 
79
  (function($){
80
 
81
+ $.fn.fontselect = function(options) {
82
 
83
  var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
84
 
177
  "La+Belle+Aurore",
178
  "Lato:100",
179
  "Lato:100italic",
180
+ "Lato:300",
181
  "Lato",
182
+ "Lato:bold",
183
  "Lato:900",
184
  "League+Script",
185
+ "Lekton",
186
+ "Limelight",
187
  "Lobster",
188
  "Lobster Two",
189
  "Lora",
208
  "Monofett",
209
  "Molengo",
210
  "Mountains of Christmas",
211
+ "Muli:300",
212
+ "Muli",
213
  "Neucha",
214
  "Neuton",
215
  "News+Cycle",
241
  "Reenie+Beanie",
242
  "Pacifico",
243
  "Patrick+Hand",
244
+ "Paytone+One",
245
  "Permanent+Marker",
246
  "Philosopher",
247
  "Play",
305
  style: 'font-select',
306
  placeholder: 'Select a font',
307
  lookahead: 2,
308
+ api: 'https://fonts.googleapis.com/css?family='
309
  };
310
+
311
  var Fontselect = (function(){
312
+
313
  function Fontselect(original, o){
314
  this.$original = $(original);
315
  this.options = o;
324
  this.addFontLink(font);
325
  }
326
  }
327
+
328
  Fontselect.prototype.bindEvents = function(){
329
+
330
  $('li', this.$results)
331
  .click(__bind(this.selectFont, this))
332
  .mouseenter(__bind(this.activateFont, this))
333
  .mouseleave(__bind(this.deactivateFont, this));
334
+
335
  $('span', this.$select).click(__bind(this.toggleDrop, this));
336
  this.$arrow.click(__bind(this.toggleDrop, this));
337
  };
338
+
339
  Fontselect.prototype.toggleDrop = function(ev){
340
+
341
  if(this.active){
342
  this.$element.removeClass('font-select-active');
343
  this.$drop.hide();
344
  clearInterval(this.visibleInterval);
345
+
346
  } else {
347
  this.$element.addClass('font-select-active');
348
  this.$drop.show();
349
  this.moveToSelected();
350
  this.visibleInterval = setInterval(__bind(this.getVisibleFonts, this), 500);
351
  }
352
+
353
  this.active = !this.active;
354
  };
355
+
356
  Fontselect.prototype.selectFont = function(){
357
+
358
  var font = $('li.active', this.$results).data('value');
359
  this.$original.val(font).change();
360
  this.updateSelected();
361
  this.toggleDrop();
362
  };
363
+
364
  Fontselect.prototype.moveToSelected = function(){
365
+
366
  var $li, font = this.$original.val();
367
+
368
  if (font){
369
  $li = $("li[data-value='"+ font +"']", this.$results);
370
  } else {
373
 
374
  this.$results.scrollTop($li.addClass('active').position().top);
375
  };
376
+
377
  Fontselect.prototype.activateFont = function(ev){
378
  $('li.active', this.$results).removeClass('active');
379
  $(ev.currentTarget).addClass('active');
380
  };
381
+
382
  Fontselect.prototype.deactivateFont = function(ev){
383
+
384
  $(ev.currentTarget).removeClass('active');
385
  };
386
+
387
  Fontselect.prototype.updateSelected = function(){
388
+
389
  var font = this.$original.val();
390
  $('span', this.$element).text(this.toReadable(font)).css(this.toStyle(font));
391
  };
392
+
393
  Fontselect.prototype.setupHtml = function(){
394
+
395
  this.$original.empty().hide();
396
  this.$element = $('<div>', {'class': this.options.style});
397
  this.$arrow = $('<div><b></b></div>');
401
  this.$original.after(this.$element.append(this.$select.append(this.$arrow)).append(this.$drop));
402
  this.$drop.append(this.$results.append(this.fontsAsHtml())).hide();
403
  };
404
+
405
  Fontselect.prototype.fontsAsHtml = function(){
406
+
407
  var l = fonts.length;
408
  var r, s, h = '';
409
+
410
  for(var i=0; i<l; i++){
411
  r = this.toReadable(fonts[i]);
412
  s = this.toStyle(fonts[i]);
413
  h += '<li data-value="'+ fonts[i] +'" style="font-family: '+s['font-family'] +'; font-weight: '+s['font-weight'] +'">'+ r +'</li>';
414
  }
415
+
416
  return h;
417
  };
418
+
419
  Fontselect.prototype.toReadable = function(font){
420
  return font.replace(/[\+|:]/g, ' ');
421
  };
422
+
423
  Fontselect.prototype.toStyle = function(font){
424
  var t = font.split(':');
425
  return {'font-family': this.toReadable(t[0]), 'font-weight': (t[1] || 400)};
426
  };
427
+
428
  Fontselect.prototype.getVisibleFonts = function(){
429
+
430
  if(this.$results.is(':hidden')) return;
431
+
432
  var fs = this;
433
  var top = this.$results.scrollTop();
434
  var bottom = top + this.$results.height();
435
+
436
  if(this.options.lookahead){
437
  var li = $('li', this.$results).first().height();
438
  bottom += li*this.options.lookahead;
439
  }
440
+
441
  $('li', this.$results).each(function(){
442
 
443
  var ft = $(this).position().top+top;
447
  var font = $(this).data('value');
448
  fs.addFontLink(font);
449
  }
450
+
451
  });
452
  };
453
+
454
  Fontselect.prototype.addFontLink = function(font){
455
+
456
  var link = this.options.api + font;
457
+
458
  if ($("link[href*='" + font + "']").length === 0){
459
  $('link:last').after('<link href="' + link + '" rel="stylesheet" type="text/css">');
460
  }
461
  };
462
+
463
  return Fontselect;
464
  })();
465
 
466
+ return this.each(function(options) {
467
  // If options exist, lets merge them
468
  if (options) $.extend( settings, options );
469
+
470
  return new Fontselect(this, settings);
471
  });
472
 
484
  if ( confirm( wpmmpjs.confirm_reset ) ) {
485
 
486
  var url = wpmmpjs.ajax_url + '?action=wpmmp_reset_settings&nonce='+ wpmmpjs.reset_nonce;
487
+
488
  $.post( url, function(data) {
489
 
490
  alert(wpmmpjs.successfull_reset);
491
 
492
  window.location = window.location.href;
493
+
494
  });
495
 
496
  }
502
  e.preventDefault();
503
 
504
  var tab = $(this).attr('href').replace( '?page=wpmmp-settings&tab=', '' );
505
+ localStorage.setItem('wpmmp_active_tab', tab);
506
 
507
  $('.nav-tab').each( function( index ) {
508
 
520
 
521
  $(this).addClass('nav-tab-active');
522
 
523
+
524
  $('.tab-'+tab).addClass('active');
525
 
526
  });
527
 
528
+ active_tab = localStorage.getItem('wpmmp_active_tab');
529
+ if (active_tab) {
530
+ tab = active_tab;
531
+ $('.nav-tab').each( function( index ) {
532
+ $(this).removeClass('nav-tab-active');
533
+ });
534
+ $('.accordion').each( function( index ) {
535
+ $(this).removeClass('active');
536
+ $(this).addClass('inactive');
537
+ });
538
+ $('.nav-tab[data-tab=' + tab + ']').addClass('nav-tab-active');
539
+ $('.tab-'+tab).addClass('active');
540
+ }
541
  });
542
 
543
  //end
544
+ });
readme.txt CHANGED
@@ -1,138 +1,119 @@
1
- === WP Maintenance Mode / Coming Soon Page Builder ===
2
- Contributors: Muneeb, maintenancemodesupport
3
- Donate link: http://web-settler.com/maintenance-mode/
4
- Tags: maintenance,coming soon, coming soon page, maintenance mode, under construction
5
  Requires at least: 3.1
6
- Tested up to: 4.9
7
- Stable tag: 3.2
 
8
  License: GPLv2 or later
 
 
 
9
 
10
- Maintenance mode with progress bar and responsive layout. Adds a responsive maintenance mode page or coming soon page.
11
 
12
  == Description ==
13
 
14
  Maintenance mode or a coming soon page with progress bar and responsive layout. Simply enable the maintenance mode from the plugin settings and in few seconds you can put your site in maintenance mode.
15
 
16
- With progress bar and countdown timer([pro version feature](http://web-settler.com/maintenance-mode/))</strong> the visitors will be informed about the time left in launch.
17
 
 
18
 
19
- <b>Features</b>
20
 
21
- * Simple & easy to use interface - perfect for non tech users, developers & clients!
22
- * Create beautiful maintenance mode page for your website
23
- * Create beautiful coming soon mode page for your website
24
- * Change heading of maintenance mode page
25
- * Change sub-heading of maintenance mode page
26
  * Set custom title for maintenance mode or coming coon page
27
- * SEO Optimized maintenance mode page
28
- * Enable Disable maintenance or coming soon mode
29
- * Add Progress bar to maintenance mode landing page
30
- * Enable HTTP 503 header for maintenance mode page
31
- * Control RSS Feed Access of maintenance mode page
32
- * Admins can make changes easily without getting maintenance mode page.
33
- * Other users then admins and visitors will get a beautiful responsive coming soon page or maintenance mode page.
34
- * Visual editor for changing content of maintenance mode page.
35
- * Add Social Icons on maintenance mode and coming soon page.
36
- * Add Logo on maintenance mode page.
37
- * Change background color of maintenance mode page.
38
- * Change color of headline.
39
- * Set SEO Title of maintenance mode page.
40
- * Set Favicon of maintenance page.
41
- * Social Facebook icon for maintenance mode page
42
- * Social Twitter icon for maintenance mode page
43
-
44
-
45
- <strong>Pro Features</strong>
46
-
47
- * Disable Maintenance Mode for some user roles.
48
- * Test and preview maintenance mode page without enabling Maintenance Mode.
49
- * Enable Countdown Timer
50
- * Show Subscribe Form.
51
- * 5 premium maintenance mode themes.
52
- * Add Analytics Code for maintenance mode page.
53
- * SEO Optimized maintenance mode page
54
- * SEO Meta Description
55
- * Text Color, Links Color, Links Hover Color, Background Image, Responsive Background
56
- * Google Fonts for maintenance mode page.
57
- * Add Custom CSS on maintenance mode page without editing any files.
58
- * Connect maintenance mode with Mailchimp.
59
- * Header script.
60
- * Footer script.
61
- * Sex maintenance mode themes.
62
- * Google fonts integration for maintenance mode page.
63
-
64
-
65
- Option to choose from 6 different responsive themes for maintenance mode page. Every theme supports <strong>countdown timer([pro version feature](http://web-settler.com/maintenance-mode/))</strong>, <strong>progress bar</strong>, custom html and you can add your own custom content using the visual editor on maintenance mode page with WordPress shortcodes support. You can also add social icons and subscribe forms on maintenance mode page.
66
-
67
- <strong>For more advanced features, themes and to get guaranteed support be sure to check out our premium version of the maintenance mode plugin, [WordPress maintenance mode pro plugin](http://web-settler.com/maintenance-mode/)</strong>
68
 
69
- == Screenshots ==
70
 
71
  == Screenshots ==
72
- Please click on the link to visit maintenance mode <a href="http://web-settler.com/maintenance-mode/">Screenshots page</a>.
 
 
 
73
 
74
  == Installation ==
75
 
76
- Extract the zip file maintenance mode plugin and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
 
 
 
 
 
 
77
 
78
  == Frequently Asked Questions ==
79
 
80
- = Q. What is a maintenance mode page ? =
 
 
 
 
 
 
 
 
81
 
82
- A: A maintenance mode page allows you to work on your website and in meantime you can show your visitors a page where they can get information about when your website is going to get live or completed. Mainteannce mode plugin also supports subscribe form so you can notify your subscribers.
83
 
84
- = Q. Can I login to my site with maintenance mode activated ? =
85
 
86
- A: You can free visit your site as well make changes. Only regular visitors will get the maintenance mode page. Admins can access the site freely without getting any maintenance mode page.
87
 
88
- = Q: Can I upload Logo Image for my maintenance mode page ? =
89
 
90
- A : Yes, You can upload logo and background images for your maintenance mode page.
91
 
92
- <strong>How to enable Maintenance Mode ?</strong>
93
- <p>A: After activating the maintenance mode plugin, you'll see the "Maintenance Mode" menu in your WordPress admin menu, click on it. You'll get maintenance mode settings page SET the <strong>Enable Maintenance Mode</strong> option to YES</p>
94
 
95
- <strong>I'm not getting Maintenance Mode page on frontend?</strong>
96
- <p>Make sure you are logged-out of your site or visit your site in browser private mode. Maintenance Mode is disabled for admins.</p>
97
 
98
- <strong>How to show Progress Bar on maintenance mode page?</strong>
99
- <p>Visit the maintenance mode admin settings page. Set the option <strong>Enable Progress Bar</strong> to YES. To set the percentage use the set progress bar % option.</p>
100
 
101
- <strong>How to change theme of maintenance mode page?</strong>
102
- <p>Visit the maintenance mode admin settings page. Click on the themes tab.</p>
103
 
104
- <strong>How to add logo on maintenance mode page?</strong>
105
- <p>Visit the maintenance mode admin settings page. Click on the Page tab. Set the logo option value. Only valid image urls are supported or you can use the upload button.</p>
106
 
107
- <strong>How to change heading on maintenance mode page?</strong>
108
- <p>Same steps as for logo adding. Change the <strong>Headline</strong> value.</p>
109
 
110
- <strong>How add content or Message on maintenance mode page?</strong>
111
- <p>Same steps as for logo adding. Use visual editor to set content for your maintenance page.</p>
112
 
 
113
 
114
- <strong>How to add social icons on maintenance mode page?</strong>
115
- <p>Visit the maintenance mode admin settings page. Click on the <strong>Social Icons</strong> Tab.</p>
116
 
117
- <strong>How to add subscribe form on maintenance mode page?</strong>
118
- <p>The subscribe form can be used to collect email addresses of visitors and at the time of launch you can inform subscribers about site launch. But This feature is only available in the paid version of the maintenance mode plugin.</p>
119
 
 
120
 
 
121
 
122
- == Other Notes ==
123
 
124
- Some of the features are locked in the free version to unlock themes please purchase the paid version of the maintenance mode plugin.
125
 
126
- <p>If plugin is not working properly on your site please contact us we'll try our best to resolve the issue.</p>
127
 
128
- <p><strong>Maintenance Mode plugin does not redirect visitors from wp-login.php or wp-admin page to maintenance mode landing page. If you are getting a maintenance mode landing page when visiting login url make sure you are not using any plugin or theme which redirects login page to some custom page. If you are using any plugin which lets you create custom login page or redirect disable it otherwise maintenance mode plugin cannot differentiate between login page or maintenance mode landing page.</strong></p>
129
 
130
- <p>If you are getting the maintenance mode page even uninstalling the maintenance mode plugin. Clear your browser cache, WordPress cache and Server side cache.</p>
131
- <p>WordPress cache plugins cache the maintenance mode page and store it on your servers you need to disable the cache plugin or clear your WP cache to load the latest maintenance mode page.</p>
 
 
132
 
133
- == Changelog ==
134
- <strong>Maintenance Mode Version 3.3</strong>
135
- Product Links changed.
136
 
137
- <strong>Maintenance Mode Version 3.2</strong>
138
- Removed the add_object_page deprecated function. Replaced it with add_menu_page. Maintenance Mode admin menu will now appear on the bottom of admin menu list.
1
+ === Rocket Maintenance Mode & Coming Soon Page ===
2
+ Contributors: WebFactory, UnderConstructionPage
3
+ Tags: maintenance mode, coming soon, coming soon page, maintenance mode page, maintenance, under construction
 
4
  Requires at least: 3.1
5
+ Requires PHP: 5.0
6
+ Tested up to: 5.2
7
+ Stable tag: 3.9
8
  License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ Easily activate a responsive Maintenance Mode Page or Coming Soon Page. Sets up in minutes.
12
 
 
13
 
14
  == Description ==
15
 
16
  Maintenance mode or a coming soon page with progress bar and responsive layout. Simply enable the maintenance mode from the plugin settings and in few seconds you can put your site in maintenance mode.
17
 
18
+ With a progress bar and countdown timer visitors will be informed about the time left till launch and you can collect their emails using built-in MailChimp integration.
19
 
20
+ If you're in a rush and need <a href="https://comingsoonwp.com/themes/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme-rocket&utm_content=100-themes">100+ perfectly designed themes</a> for your coming soon page have a look at our <a href="https://comingsoonwp.com/?utm_source=wordpressorg&utm_medium=content&utm_campaign=readme-rocket&utm_content=pro-version">PRO version</a>.
21
 
22
+ **Features**
23
 
24
+ * Simple & easy to use interface - perfect for non tech users
25
+ * Create beautiful maintenance mode or coming soon page for your WP site
26
+ * Change heading & sub-heading
 
 
27
  * Set custom title for maintenance mode or coming coon page
28
+ * SEO Optimized
29
+ * Enable / Disable maintenance or coming soon mode
30
+ * Progress Bar
31
+ * Countdown Timer
32
+ * Visual editor for changing content
33
+ * Social Icons
34
+ * Upload your own logo
35
+ * Change background color and various text colors
36
+ * Choose from hundreds of fonts
37
+ * Set SEO Title of maintenance mode page
38
+ * Set Favicon
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
 
40
 
41
  == Screenshots ==
42
+
43
+ 1. Default theme
44
+ 2. Build a coming soon page in minutes with an easy to use interface
45
+
46
 
47
  == Installation ==
48
 
49
+ Follow the usual routine;
50
+
51
+ 1. Open WordPress admin, go to Plugins, click Add New
52
+ 2. Enter "rocket maintenance mode" in search and hit Enter
53
+ 3. Plugin will show up as the first on the list, click "Install Now"
54
+ 4. Activate & open plugin's settings page located in the main admin menu
55
+
56
 
57
  == Frequently Asked Questions ==
58
 
59
+ = What is a maintenance mode page? =
60
+
61
+ A maintenance mode page allows you to work on your website and in meantime you can show your visitors a page where they can get information about when your website is going to get live or completed. Maintenance mode plugin also supports subscribe form so you can notify your subscribers.
62
+
63
+ = Can I login to my site with maintenance mode activated? =
64
+
65
+ You can free visit your site as well make changes. Only regular visitors will get the maintenance mode page. Admins can access the site freely without getting any maintenance mode page.
66
+
67
+ = Can I upload a Logo Image for my maintenance mode page? =
68
 
69
+ Yes, You can upload logo and background images for your maintenance mode page.
70
 
71
+ = How to enable Maintenance Mode? =
72
 
73
+ After activating the maintenance mode plugin, you'll see the "Maintenance Mode" menu in your WordPress admin menu, click on it. You'll get maintenance mode settings page SET the Enable Maintenance Mode option to YES
74
 
75
+ = I'm not getting Maintenance Mode page on frontend? =
76
 
77
+ Make sure you are logged-out of your site or visit your site in browser private mode. Maintenance Mode is disabled for admins.
78
 
79
+ = How to show Progress Bar on maintenance mode page? =
 
80
 
81
+ Visit the maintenance mode admin settings page. Set the option Enable Progress Bar to YES. To set the percentage use the set progress bar % option.
 
82
 
83
+ = How to change theme of maintenance mode page? =
 
84
 
85
+ Visit the maintenance mode admin settings page. Click on the themes tab.
 
86
 
87
+ = How to add logo on maintenance mode page? =
 
88
 
89
+ Visit the maintenance mode admin settings page. Click on the Page tab. Set the logo option value. Only valid image urls are supported or you can use the upload button.
 
90
 
91
+ = How to change heading on maintenance mode page? =
 
92
 
93
+ Same steps as for logo adding. Change the Headline value.
94
 
95
+ = How add content or Message on maintenance mode page? =
 
96
 
97
+ Same steps as for logo adding. Use visual editor to set content for your maintenance page.
 
98
 
99
+ = How to add social icons on maintenance mode page? =
100
 
101
+ Visit the maintenance mode admin settings page. Click on the Social Icons Tab.
102
 
103
+ = How to add subscribe form on maintenance mode page? =
104
 
105
+ The subscribe form can be used to collect email addresses of visitors and at the time of launch you can inform subscribers about site launch. But This feature is only available in the paid version of the maintenance mode plugin.
106
 
 
107
 
108
+ == Changelog ==
109
 
110
+ = v3.9 - 2019/05/24 =
111
+ * WebFactory took over development
112
+ * 20k installs, 306,953 downloads
113
+ * minor fixes
114
 
115
+ = v3.3 =
116
+ * Product Links changed
 
117
 
118
+ = v3.2 =
119
+ * Removed the add_object_page deprecated function. Replaced it with add_menu_page. Maintenance Mode admin menu will now appear on the bottom of admin menu list.
views/admin-settings/add-hooktohead.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php if ( get_option('mmp_fft') ): ?>
2
- <link rel='stylesheet' id='textfont-css' href='http://fonts.googleapis.com/css?family=<?php esc_attr_e(str_replace("+"," ",get_option("mmp_fft"))) ?>:400,300,700,900' type='text/css' media='all' />
3
  <?php endif; ?>
4
 
5
  <?php if ( get_option('mmp_ffht') ): ?>
6
- <link rel='stylesheet' id='textfont-css' href='http://fonts.googleapis.com/css?family=<?php esc_attr_e(str_replace("+","+",get_option("mmp_ffht"))) ?>:400,700,900' type='text/css' media='all' />
7
  <?php endif; ?>
8
 
9
 
@@ -13,4 +13,4 @@
13
 
14
  <?php if ( get_option('mmp_custom_header_script') !== '' ): ?>
15
  <?php echo get_option('mmp_custom_header_script') ?>
16
- <?php endif; ?>
1
  <?php if ( get_option('mmp_fft') ): ?>
2
+ <link rel='stylesheet' id='textfont-css' href='https://fonts.googleapis.com/css?family=<?php esc_attr_e(str_replace("+"," ",get_option("mmp_fft"))) ?>:400,300,700,900' type='text/css' media='all' />
3
  <?php endif; ?>
4
 
5
  <?php if ( get_option('mmp_ffht') ): ?>
6
+ <link rel='stylesheet' id='textfont-css' href='https://fonts.googleapis.com/css?family=<?php esc_attr_e(str_replace("+","+",get_option("mmp_ffht"))) ?>:400,700,900' type='text/css' media='all' />
7
  <?php endif; ?>
8
 
9
 
13
 
14
  <?php if ( get_option('mmp_custom_header_script') !== '' ): ?>
15
  <?php echo get_option('mmp_custom_header_script') ?>
16
+ <?php endif; ?>
views/admin-settings/premiumui.php CHANGED
@@ -1,25 +1,20 @@
 
 
 
 
 
 
 
1
 
2
- <div class='wrap'>
3
-
4
  <?php settings_errors(); ?>
5
 
6
  <form method="post" action="options.php" >
7
  <?php settings_fields('mmp-settings-group');?>
8
-
9
- <h1><?php _e('Maintenance Mode Options Panel')?></h1>
10
-
11
- <span>
12
- To Get Premium Support 24/7 E-mail us: <a href="mailto:umar2bajwa@gmail.com">umar2bajwa@gmail.com</a>
13
- <br />
14
- <br>
15
- If you want to do any feature request or you want us to style your maintenance/coming soon landing page E-mail us: <a href="mailto:umar2bajwa@gmail.com">umar2bajwa@gmail.com</a>
16
-
17
-
18
- <br>
19
- </span>
20
 
21
  <br />
22
-
23
  <?php $this->admin_tabs(); ?>
24
 
25
  <div id="accordion-1" class="accordion active tab-general-settings">
@@ -30,16 +25,6 @@
30
  <br>
31
 
32
  <table class="form-table">
33
- <tr valign='top'>
34
- <th scope='row'><?php _e('Preview Link ');?></th>
35
- <td>
36
- <a disabled class="button button-secondary" target="_blank">Click to Open</a>
37
- <p class="description">Test Page without Enabling Maintenance Mode.</p>
38
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
39
-
40
- </td>
41
- </tr>
42
-
43
 
44
  <tr valign='top'>
45
  <th scope='row'><?php _e('Enable Maintenance Mode ');?></th>
@@ -51,17 +36,11 @@
51
  <span class="onoffswitch-switch"></span>
52
  </label>
53
  </div>
54
- <small>Admin users will not get maintenance mode page. Please logout or use your browser private tab for testing. Clear your WordPress cache if any cache plugins are installed.</small>
55
  </td>
56
  </tr>
57
 
58
 
59
-
60
-
61
-
62
-
63
-
64
-
65
  <tr valign='top'>
66
  <th scope='row'><?php _e(' Enable Progress Bar ');?></th>
67
  <td>
@@ -73,11 +52,11 @@
73
  </label>
74
  </div>
75
  </td>
76
- </tr>
 
77
 
78
 
79
 
80
-
81
 
82
  <tr>
83
  <th scope='row'><?php _e('Set Progress bar %');?></th>
@@ -92,23 +71,20 @@
92
  <th scope='row'><?php _e(' Enable Countdown Timer ');?></th>
93
  <td>
94
  <div class="onoffswitch">
95
- <input type="checkbox" name="mmp_on_off_countdown" class="onoffswitch-checkbox" id="myonoffswitch7" value='1'<?php checked(1, get_option('mmp_on_off_countdown')); ?> disabled/>
96
  <label class="onoffswitch-label" for="myonoffswitch7">
97
  <span class="onoffswitch-inner"></span>
98
  <span class="onoffswitch-switch"></span>
99
  </label>
100
  </div>
101
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
102
  </td>
103
- </tr>
104
-
105
 
106
  <tr>
107
  <th scope='row'><?php _e('Set Date/Time For Counter');?></th>
108
  <td><label for='mmp_set_dateTime'>
109
- <input type='date' id='mmp_set_dateTime' name='mmp_set_dateTime' value='<?php echo get_option('mmp_set_dateTime' ); ?>' disabled/>
110
  <p class='description'><?php _e('Set Date & time for countdown timer') ?></p>
111
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
112
  </label>
113
  </td>
114
  </tr>
@@ -117,17 +93,16 @@
117
  <th scope='row'><?php _e('Show Subscribe Form ');?></th>
118
  <td>
119
  <div class="onoffswitch">
120
- <input type="checkbox" name="mmp_on_off_subscribe" class="onoffswitch-checkbox" id="myonoffswitch9" value='1'<?php checked(1, get_option('mmp_on_off_subscribe')); ?> disabled/>
121
  <label class="onoffswitch-label" for="myonoffswitch9">
122
  <span class="onoffswitch-inner"></span>
123
  <span class="onoffswitch-switch"></span>
124
  </label>
125
  </div>
126
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
127
 
128
  </td>
129
- </tr>
130
-
131
  </table>
132
 
133
  </div>
@@ -141,77 +116,12 @@
141
  <input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
142
  </span>
143
  </div>
144
- <div>
145
  <tr valign='top'>
146
- <th scope='row'><?php _e('Select Theme');?></th>
147
  <td>
148
-
149
-
150
-
151
-
152
- <ul id="wpmmp-themes">
153
-
154
-
155
- <li>
156
- <p class="pp"style='padding-left:2px;'>Default Theme <input type="radio" name="mmp_themes" id="mmp_theme2" value="default" <?php checked('default',get_option('mmp_themes')); true ?> /> </p>
157
-
158
- <label for="mmp_theme2"><img style='' src="<?php echo wpmmp_image_url('default-4.jpg')?>"> </label>
159
- </li>
160
-
161
- <li>
162
- <p class="pp"style='padding-left:2px;'>Coming Soon <input type="radio" name="mmp_themes" id="mmp_theme3" value="cs-simple" <?php checked('cs-simple',get_option('mmp_themes')); true ?> disabled/></p>
163
-
164
-
165
-
166
- <label for="mmp_theme3"><img style='' src="<?php echo wpmmp_image_url('simple-temp.png') ?> "> </label>
167
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
168
- </li>
169
-
170
- <li>
171
- <p class="pp"style='padding:0px 0px 0px 2px ;'>Minimal <input type="radio" name="mmp_themes" id="pal1" value="minimal" <?php checked('minimal', get_option('mmp_themes')); true ?> disabled /></p>
172
-
173
-
174
-
175
- <label for="mmp_theme1"><img style=' ' src="<?php echo wpmmp_image_url('minimal-temp.png')?> "></label>
176
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
177
- </li>
178
-
179
-
180
- <li>
181
- <p class="pp"style='padding-left:2px;'>Alissa <input type="radio" name="mmp_themes" id="mmp_theme4" value="alissa" <?php checked('alissa',get_option('mmp_themes')); true ?> disabled/></p>
182
-
183
-
184
-
185
- <label for="mmp_theme4"><img style='' src="<?php echo wpmmp_image_url('alissa-1.png') ?> "> </label>
186
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
187
- </li>
188
-
189
-
190
- <li>
191
- <p class="pp" style='padding-left:2px;'>Maintenance Mode Guru <input type="radio" name="mmp_themes" id="mmp_theme5" value="mm-one" <?php checked('mm-one',get_option('mmp_themes')); true ?> disabled/></p>
192
-
193
-
194
-
195
- <label for="mmp_theme5"><img style='' src="<?php echo wpmmp_image_url('maintenance-one.png') ?> "> </label>
196
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
197
- </li>
198
-
199
- <li>
200
- <p class="pp" style='padding-left:2px;'>Pre-Launch <input type="radio" name="mmp_themes" id="mmp_theme6" value="pre-launch" <?php checked('pre-launch',get_option('mmp_themes')); true ?> disabled/></p>
201
-
202
-
203
-
204
- <label for="mmp_theme6"><img style='' src="<?php echo wpmmp_image_url('pre-launch.png') ?> "> </label>
205
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
206
- </li>
207
-
208
-
209
-
210
-
211
-
212
- </ul>
213
-
214
-
215
  </td>
216
  </tr>
217
 
@@ -254,10 +164,8 @@
254
  <tr valign="top">
255
  <th scope="row"><?php _e( 'SEO Meta Description') ?></th>
256
  <td><label for="mmp_seo_meta">
257
- <textarea disabled cols="50" rows="2" id="mmp_seo_meta" name="mmp_seo_meta" ><?php echo get_option( 'mmp_seo_meta' ); ?> </textarea>
258
  <p class='description'> <?php _e('Add SEO Meta Description.' );?></p>
259
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
260
-
261
  </label>
262
  </td>
263
  </tr>
@@ -268,8 +176,8 @@
268
  <th scope="row"><?php _e( 'Analytics Code') ?></th>
269
  <td><label for="mmp_analytics">
270
  <textarea disabled cols="50" rows="2" id="mmp_analytics" name="mmp_analytics" ><?php echo get_option( 'mmp_analytics' ); ?></textarea>
271
- <p class='description'> <?php _e('Add Analytics code here' );?></p>
272
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
273
  </label>
274
  </td>
275
  </tr>
@@ -288,9 +196,8 @@
288
  <tr>
289
  <th scope='row'><?php _e('MailChimp API');?></th>
290
  <td><label for='mmp_fb_page'>
291
- <input size="50" type='text' id='mmp_mc_api' name='mmp_mc_api' value='<?php echo get_option('mmp_mc_api' ); ?>' disabled/>
292
- <p class='description'><?php _e('Enter MailChimp API : <a href="http://kb.mailchimp.com/accounts/management/about-api-keys" target="_blank">here</a>') ;?></p>
293
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
294
  </label>
295
  </td>
296
  </tr>
@@ -300,9 +207,8 @@
300
  <tr>
301
  <th scope='row'><?php _e('MailChimp List Id');?></th>
302
  <td><label for='mmp_mc_listid'>
303
- <input size="50" type='text' id='mmp_mc_listid' name='mmp_mc_listid' value='<?php echo get_option('mmp_mc_listid' ); ?>' disabled/>
304
  <p class='description'><?php _e('Find your list id : <a href="http://kb.mailchimp.com/lists/managing-subscribers/find-your-list-id" target="_blank">here</a>') ;?></p>
305
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
306
  </label>
307
  </td>
308
  </tr>
@@ -312,13 +218,12 @@
312
  <th scope='row'><?php _e('Double Opt-In');?></th>
313
  <td>
314
  <div class="onoffswitch">
315
- <input type="checkbox" name="mmp_mc_optin" class="onoffswitch-checkbox" id="myonoffswitch9" checked value='1'<?php checked(1, get_option('mmp_mc_optin'));?> disabled/>
316
  <label class="onoffswitch-label" for="myonoffswitch9">
317
  <span class="onoffswitch-inner"></span>
318
  <span class="onoffswitch-switch"></span>
319
  </label>
320
  </div>
321
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
322
  </td>
323
  </tr>
324
 
@@ -326,9 +231,8 @@
326
  <tr valign="top">
327
  <th scope="row"><?php _e('Subscribe Button Text'); ?></th>
328
  <td><label for="mmp_mc_sbt">
329
- <input type="text" id="mmp_mc_sbt" name="mmp_mc_sbt" value="<?php echo get_option( 'mmp_mc_sbt' ); ?>" size="50" disabled />
330
- <p class="description"><?php _e( 'Enter subscribe button text here eg: abcd. '); ?></p>
331
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
332
  </label>
333
  </td>
334
  </tr>
@@ -337,9 +241,8 @@
337
  <tr valign="top">
338
  <th scope="row"><?php _e('Placeholder Text'); ?></th>
339
  <td><label for="mmp_mc_pt">
340
- <input type="text" id="mmp_mc_pt" name="mmp_mc_pt" value="<?php echo get_option( 'mmp_mc_pt' ); ?>" size="50" disabled/>
341
- <p class="description"><?php _e( 'Enter text here for placeholder '); ?></p>
342
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
343
  </label>
344
  </td>
345
  </tr>
@@ -391,19 +294,19 @@
391
  <td><label for="mmp_message">
392
  </label>
393
  <?php
394
-
395
  $settings = array( 'media_buttons' => false, 'mmp_message', 'teeny' => true, 'quicktags' => false );
396
-
397
  $content = get_option('mmp_message');
398
-
399
  wp_editor( $content, 'mmp_message', $settings );
400
 
401
  ?>
402
  </td>
403
  </tr>
404
 
405
- </table>
406
- </div>
407
 
408
  <div id="accordion-6" class="accordion tab-design-settings">
409
  <table class="form-table">
@@ -411,7 +314,7 @@
411
  <div id="hed3"><h3><?php _e('Design')?></h3><span class="heading_save_btn">
412
  <input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
413
  </span></div>
414
-
415
 
416
  <tr>
417
  <th scope='row'><?php _e('Background Color');?></th>
@@ -436,9 +339,8 @@
436
  <tr>
437
  <th scope='row'><?php _e('Text Color');?></th>
438
  <td><label for='mmp_text_color'>
439
- <input type='color' id='mmp_text_color' name='mmp_text_color' value='<?php echo get_option('mmp_text_color' ); ; ?>' disabled/>
440
  <p class='description'><?php _e('Change Text color') ;?></p>
441
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
442
  </label>
443
  </td>
444
  </tr>
@@ -447,9 +349,8 @@
447
  <tr>
448
  <th scope='row'><?php _e('Links Color');?></th>
449
  <td><label for='mmp_links_color'>
450
- <input type='color' id='mmp_links_color' name='mmp_links_color' value='<?php echo get_option('mmp_links_color' ); ; ?>' disabled/>
451
  <p class='description'><?php _e('Change Links color') ;?></p>
452
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
453
  </label>
454
  </td>
455
  </tr>
@@ -458,13 +359,21 @@
458
  <tr>
459
  <th scope='row'><?php _e('Links Hover Color');?></th>
460
  <td><label for='mmp_links_hover_color'>
461
- <input type='color' id='mmp_links_hover_color' name='mmp_links_hover_color' value='<?php echo get_option('mmp_links_hover_color' ); ; ?>' disabled/>
462
  <p class='description'><?php _e('Change Links hover color') ;?></p>
463
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
464
  </label>
465
  </td>
466
  </tr>
467
 
 
 
 
 
 
 
 
 
 
468
 
469
  <tr valign="top">
470
  <th scope="row"><?php _e('Background Image'); ?></th>
@@ -472,8 +381,8 @@
472
  <input id="image_location" type="text" name="mmp_background_image" value="<?php echo get_option('mmp_background_image') ?>" size="50" disabled />
473
  <input class="onetarek-upload-button button" type="button" value="Upload Image" disabled />
474
  <p class='description'><?php _e('Upload or Select Site Background Image') ;?></p>
475
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
476
- </lable>
477
  </td>
478
  </tr>
479
 
@@ -488,19 +397,18 @@
488
  <span class="onoffswitch-switch"></span>
489
  </label>
490
  </div>
491
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
492
 
493
  </td>
494
- </tr>
495
 
496
 
497
 
498
  <th scope='row'><?php _e('Font Family For Text');?></th>
499
  <td><label for='mmp_fft'>
500
- <input id="font" type="text" name="" value="<?php echo get_option( 'mmp_fft' ); ?>" disabled />
501
-
502
  </label>
503
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
504
  </td>
505
  </tr>
506
 
@@ -509,10 +417,9 @@
509
  <tr>
510
  <th scope='row'><?php _e('Font Family For Header Text');?></th>
511
  <td><label for='mmp_ffht'>
512
- <input id="font1" name="" type="text" value="<?php echo get_option( 'mmp_ffht' ); ?>" disabled/>
513
 
514
  </label>
515
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
516
  </td>
517
  </tr>
518
 
@@ -521,15 +428,15 @@
521
  <td><label for="mmp_custom_css">
522
  <textarea cols="80" rows="7" id="mmp_custom_css" name="mmp_custom_css" disabled ><?php echo get_option( 'mmp_custom_css' ); ?></textarea>
523
  <p class='description'> <?php _e('Add styling inside this text area.' );?></p>
524
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
525
  </label>
526
  </td>
527
  </tr>
528
 
529
  </table>
530
  </div>
531
-
532
-
533
  <div id="accordion-7" class="accordion tab-script-settings">
534
  <table class="form-table">
535
 
@@ -543,7 +450,7 @@
543
  <td><label for="mmp_custom_header_script">
544
  <textarea disabled cols="50" rows="2" id="mmp_custom_header_script" name="mmp_custom_header_script" ><?php echo get_option( 'mmp_custom_header_script' ); ?></textarea>
545
  <p class='description'> <?php _e('Add header script in this text area.' );?></p>
546
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
547
  </label>
548
  </td>
549
  </tr>
@@ -554,7 +461,7 @@
554
  <td><label for="mmp_custom_footrt_script">
555
  <textarea disabled cols="50" rows="2" id="mmp_custom_footrt_script" name="mmp_custom_footrt_script" ><?php echo get_option( 'mmp_custom_footrt_script' ); ?></textarea>
556
  <p class='description'> <?php _e('Add footer script in this text area.' );?></p>
557
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
558
  </label>
559
  </td>
560
  </tr>
@@ -695,7 +602,7 @@
695
 
696
 
697
  </tr><tr valign='top'>
698
- <th scope='row'><?php _e('HTTP 503 Header ');?></th>
699
  <td>
700
  <div class="onoffswitch">
701
  <input disabled type="checkbox" class="onoffswitch-checkbox" id="myonoffswitch10" value='1'<?php checked(1, get_option('mmp_http_503')); ?> />
@@ -704,25 +611,27 @@
704
  <span class="onoffswitch-switch"></span>
705
  </label>
706
  </div>
707
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
 
708
  </td>
709
  </tr>
710
 
711
 
712
  </tr><tr valign='top'>
713
- <th scope='row'><?php _e('Disable Feed Access');?></th>
714
  <td>
715
  <div class="onoffswitch">
716
- <input disabled type="checkbox" class="onoffswitch-checkbox" id="myonoffswitch11" value='1'<?php checked(1, get_option('mmp_feed_access')); ?> />
717
  <label class="onoffswitch-label" for="myonoffswitch11">
718
  <span class="onoffswitch-inner"></span>
719
  <span class="onoffswitch-switch"></span>
720
  </label>
721
  </div>
722
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
 
723
  </td>
724
  </tr>
725
-
726
  <tr valign='top'>
727
 
728
  <th scope='row'>Disable Maintenance Mode for User Roles</th>
@@ -735,7 +644,7 @@
735
 
736
  if ( ! is_array( $activeroles ) )
737
  $activeroles = array('administrator');
738
-
739
 
740
  global $wp_roles;
741
 
@@ -749,12 +658,12 @@
749
  echo '<p><input disabled checked type="checkbox" value="' . $role_value . '">'.$role_name.'</p>';
750
  else
751
  echo '<p><input disabled type="checkbox" value="' . $role_value . '">'.$role_name.'</p>';
752
-
753
 
754
  }
755
-
756
  ?>
757
- <p class="description"><?php _e( '<a href="http://web-settler.com/maintenance-mode/" target="__blank"> Premium Version-Buy Here </a>'); ?></p>
758
  </td>
759
 
760
  </tr>
@@ -763,20 +672,22 @@
763
 
764
  </table>
765
  </div>
766
-
767
 
768
  <p class="submit">
769
  <input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
 
770
  </p>
771
 
772
-
773
  </form>
774
 
775
  <form id="reset" method="post" action="">
776
  <p class="submit">
777
- <input name="reset" class="button button-secondary" type="submit" value="Reset to default settings" >
 
778
  <input type="hidden" value="reset" />
779
  </p>
780
  </form>
781
-
782
- </div> <!-- wraper-->
1
+ <?php
2
+ if (@$_GET['settings-updated'] == true) {
3
+ wpmmp_empty_cache();
4
+ }
5
+ ?>
6
+
7
+ <div class='wrap'>
8
 
 
 
9
  <?php settings_errors(); ?>
10
 
11
  <form method="post" action="options.php" >
12
  <?php settings_fields('mmp-settings-group');?>
13
+
14
+ <h1>Rocket Maintenance Mode &amp; Coming Soon Page 🚀</h1>
 
 
 
 
 
 
 
 
 
 
15
 
16
  <br />
17
+
18
  <?php $this->admin_tabs(); ?>
19
 
20
  <div id="accordion-1" class="accordion active tab-general-settings">
25
  <br>
26
 
27
  <table class="form-table">
 
 
 
 
 
 
 
 
 
 
28
 
29
  <tr valign='top'>
30
  <th scope='row'><?php _e('Enable Maintenance Mode ');?></th>
36
  <span class="onoffswitch-switch"></span>
37
  </label>
38
  </div>
39
+ <p>Admin users do not see the maintenance mode page while logged in. Please use an incognito window for testing.</p>
40
  </td>
41
  </tr>
42
 
43
 
 
 
 
 
 
 
44
  <tr valign='top'>
45
  <th scope='row'><?php _e(' Enable Progress Bar ');?></th>
46
  <td>
52
  </label>
53
  </div>
54
  </td>
55
+ </tr>
56
+
57
 
58
 
59
 
 
60
 
61
  <tr>
62
  <th scope='row'><?php _e('Set Progress bar %');?></th>
71
  <th scope='row'><?php _e(' Enable Countdown Timer ');?></th>
72
  <td>
73
  <div class="onoffswitch">
74
+ <input type="checkbox" name="mmp_on_off_countdown" class="onoffswitch-checkbox" id="myonoffswitch7" value='1'<?php checked(1, get_option('mmp_on_off_countdown')); ?> />
75
  <label class="onoffswitch-label" for="myonoffswitch7">
76
  <span class="onoffswitch-inner"></span>
77
  <span class="onoffswitch-switch"></span>
78
  </label>
79
  </div>
 
80
  </td>
81
+ </tr>
 
82
 
83
  <tr>
84
  <th scope='row'><?php _e('Set Date/Time For Counter');?></th>
85
  <td><label for='mmp_set_dateTime'>
86
+ <input type='date' id='mmp_set_dateTime' name='mmp_set_dateTime' value='<?php echo get_option('mmp_set_dateTime' ); ?>' />
87
  <p class='description'><?php _e('Set Date & time for countdown timer') ?></p>
 
88
  </label>
89
  </td>
90
  </tr>
93
  <th scope='row'><?php _e('Show Subscribe Form ');?></th>
94
  <td>
95
  <div class="onoffswitch">
96
+ <input type="checkbox" name="mmp_on_off_subscribe" class="onoffswitch-checkbox" id="myonoffswitch9" value='1'<?php checked(1, get_option('mmp_on_off_subscribe')); ?> />
97
  <label class="onoffswitch-label" for="myonoffswitch9">
98
  <span class="onoffswitch-inner"></span>
99
  <span class="onoffswitch-switch"></span>
100
  </label>
101
  </div>
 
102
 
103
  </td>
104
+ </tr>
105
+
106
  </table>
107
 
108
  </div>
116
  <input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
117
  </span>
118
  </div>
119
+ <div>
120
  <tr valign='top'>
 
121
  <td>
122
+ <?php
123
+ wpmmp_pro_themes();
124
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  </td>
126
  </tr>
127
 
164
  <tr valign="top">
165
  <th scope="row"><?php _e( 'SEO Meta Description') ?></th>
166
  <td><label for="mmp_seo_meta">
167
+ <textarea cols="50" rows="2" id="mmp_seo_meta" name="mmp_seo_meta" ><?php echo get_option( 'mmp_seo_meta' ); ?> </textarea>
168
  <p class='description'> <?php _e('Add SEO Meta Description.' );?></p>
 
 
169
  </label>
170
  </td>
171
  </tr>
176
  <th scope="row"><?php _e( 'Analytics Code') ?></th>
177
  <td><label for="mmp_analytics">
178
  <textarea disabled cols="50" rows="2" id="mmp_analytics" name="mmp_analytics" ><?php echo get_option( 'mmp_analytics' ); ?></textarea>
179
+ <p class='description'> <?php _e('Google Analytics or similar tracking code.' );?></p>
180
+ <p class="description">This is a PRO feature. See <a href="<?php echo wpmmp_generate_web_link('analytics', '/', array('coupon' => 'welcome')); ?>" target="_blank">everything PRO offers &amp; get 25% OFF</a>.</p>
181
  </label>
182
  </td>
183
  </tr>
196
  <tr>
197
  <th scope='row'><?php _e('MailChimp API');?></th>
198
  <td><label for='mmp_fb_page'>
199
+ <input size="50" type='text' id='mmp_mc_api' name='mmp_mc_api' value='<?php echo get_option('mmp_mc_api' ); ?>' />
200
+ <p class='description'><?php _e('Enter MailChimp <a href="http://kb.mailchimp.com/accounts/management/about-api-keys" target="_blank">API key</a>') ;?></p>
 
201
  </label>
202
  </td>
203
  </tr>
207
  <tr>
208
  <th scope='row'><?php _e('MailChimp List Id');?></th>
209
  <td><label for='mmp_mc_listid'>
210
+ <input size="50" type='text' id='mmp_mc_listid' name='mmp_mc_listid' value='<?php echo get_option('mmp_mc_listid' ); ?>' />
211
  <p class='description'><?php _e('Find your list id : <a href="http://kb.mailchimp.com/lists/managing-subscribers/find-your-list-id" target="_blank">here</a>') ;?></p>
 
212
  </label>
213
  </td>
214
  </tr>
218
  <th scope='row'><?php _e('Double Opt-In');?></th>
219
  <td>
220
  <div class="onoffswitch">
221
+ <input type="checkbox" name="mmp_mc_optin" class="onoffswitch-checkbox" id="myonoffswitch9" checked value='1'<?php checked(1, get_option('mmp_mc_optin'));?> />
222
  <label class="onoffswitch-label" for="myonoffswitch9">
223
  <span class="onoffswitch-inner"></span>
224
  <span class="onoffswitch-switch"></span>
225
  </label>
226
  </div>
 
227
  </td>
228
  </tr>
229
 
231
  <tr valign="top">
232
  <th scope="row"><?php _e('Subscribe Button Text'); ?></th>
233
  <td><label for="mmp_mc_sbt">
234
+ <input type="text" id="mmp_mc_sbt" name="mmp_mc_sbt" value="<?php echo get_option( 'mmp_mc_sbt' ); ?>" size="50" />
235
+ <p class="description"><?php _e( 'Enter subscribe button text here eg: subscribe now. '); ?></p>
 
236
  </label>
237
  </td>
238
  </tr>
241
  <tr valign="top">
242
  <th scope="row"><?php _e('Placeholder Text'); ?></th>
243
  <td><label for="mmp_mc_pt">
244
+ <input type="text" id="mmp_mc_pt" name="mmp_mc_pt" value="<?php echo get_option( 'mmp_mc_pt' ); ?>" size="50" />
245
+ <p class="description"><?php _e( 'Enter text for email placeholder '); ?></p>
 
246
  </label>
247
  </td>
248
  </tr>
294
  <td><label for="mmp_message">
295
  </label>
296
  <?php
297
+
298
  $settings = array( 'media_buttons' => false, 'mmp_message', 'teeny' => true, 'quicktags' => false );
299
+
300
  $content = get_option('mmp_message');
301
+
302
  wp_editor( $content, 'mmp_message', $settings );
303
 
304
  ?>
305
  </td>
306
  </tr>
307
 
308
+ </table>
309
+ </div>
310
 
311
  <div id="accordion-6" class="accordion tab-design-settings">
312
  <table class="form-table">
314
  <div id="hed3"><h3><?php _e('Design')?></h3><span class="heading_save_btn">
315
  <input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
316
  </span></div>
317
+
318
 
319
  <tr>
320
  <th scope='row'><?php _e('Background Color');?></th>
339
  <tr>
340
  <th scope='row'><?php _e('Text Color');?></th>
341
  <td><label for='mmp_text_color'>
342
+ <input type='color' id='mmp_text_color' name='mmp_text_color' value='<?php echo get_option('mmp_text_color' ); ?>'/>
343
  <p class='description'><?php _e('Change Text color') ;?></p>
 
344
  </label>
345
  </td>
346
  </tr>
349
  <tr>
350
  <th scope='row'><?php _e('Links Color');?></th>
351
  <td><label for='mmp_links_color'>
352
+ <input type='color' id='mmp_links_color' name='mmp_links_color' value='<?php echo get_option('mmp_links_color' ); ?>' />
353
  <p class='description'><?php _e('Change Links color') ;?></p>
 
354
  </label>
355
  </td>
356
  </tr>
359
  <tr>
360
  <th scope='row'><?php _e('Links Hover Color');?></th>
361
  <td><label for='mmp_links_hover_color'>
362
+ <input type='color' id='mmp_links_hover_color' name='mmp_links_hover_color' value='<?php echo get_option('mmp_links_hover_color' ); ?>' />
363
  <p class='description'><?php _e('Change Links hover color') ;?></p>
 
364
  </label>
365
  </td>
366
  </tr>
367
 
368
+ <tr valign="top">
369
+ <th scope="row"><?php _e('Background Video URL'); ?></th>
370
+ <td><label for="mmp_background_video">
371
+ <input id="video_location" type="text" name="mmp_background_video" value="" size="50" disabled />
372
+ <p class='description'><?php _e('Select Background Video from YouTube or any other video hosting service.') ;?></p>
373
+ <p class="description">This is a PRO feature. See <a href="<?php echo wpmmp_generate_web_link('bg-video', '/', array('coupon' => 'welcome')); ?>" target="_blank">everything PRO offers &amp; get 25% OFF</a>.</p>
374
+ </label>
375
+ </td>
376
+ </tr>
377
 
378
  <tr valign="top">
379
  <th scope="row"><?php _e('Background Image'); ?></th>
381
  <input id="image_location" type="text" name="mmp_background_image" value="<?php echo get_option('mmp_background_image') ?>" size="50" disabled />
382
  <input class="onetarek-upload-button button" type="button" value="Upload Image" disabled />
383
  <p class='description'><?php _e('Upload or Select Site Background Image') ;?></p>
384
+ <p class="description">This is a PRO feature. See <a href="<?php echo wpmmp_generate_web_link('bg-image', '/', array('coupon' => 'welcome')); ?>" target="_blank">everything PRO offers &amp; get 25% OFF</a>.</p>
385
+ </label>
386
  </td>
387
  </tr>
388
 
397
  <span class="onoffswitch-switch"></span>
398
  </label>
399
  </div>
400
+ <p class="description">This is a PRO feature. See <a href="<?php echo wpmmp_generate_web_link('responsive-bg', '/', array('coupon' => 'welcome')); ?>" target="_blank">everything PRO offers &amp; get 25% OFF</a>.</p>
401
 
402
  </td>
403
+ </tr>
404
 
405
 
406
 
407
  <th scope='row'><?php _e('Font Family For Text');?></th>
408
  <td><label for='mmp_fft'>
409
+ <input id="font" type="text" name="" value="<?php echo get_option( 'mmp_fft' ); ?>" />
410
+
411
  </label>
 
412
  </td>
413
  </tr>
414
 
417
  <tr>
418
  <th scope='row'><?php _e('Font Family For Header Text');?></th>
419
  <td><label for='mmp_ffht'>
420
+ <input id="font1" name="" type="text" value="<?php echo get_option( 'mmp_ffht' ); ?>" />
421
 
422
  </label>
 
423
  </td>
424
  </tr>
425
 
428
  <td><label for="mmp_custom_css">
429
  <textarea cols="80" rows="7" id="mmp_custom_css" name="mmp_custom_css" disabled ><?php echo get_option( 'mmp_custom_css' ); ?></textarea>
430
  <p class='description'> <?php _e('Add styling inside this text area.' );?></p>
431
+ <p class="description">This is a PRO feature. See <a href="<?php echo wpmmp_generate_web_link('custom-css', '/', array('coupon' => 'welcome')); ?>" target="_blank">everything PRO offers &amp; get 25% OFF</a>.</p>
432
  </label>
433
  </td>
434
  </tr>
435
 
436
  </table>
437
  </div>
438
+
439
+
440
  <div id="accordion-7" class="accordion tab-script-settings">
441
  <table class="form-table">
442
 
450
  <td><label for="mmp_custom_header_script">
451
  <textarea disabled cols="50" rows="2" id="mmp_custom_header_script" name="mmp_custom_header_script" ><?php echo get_option( 'mmp_custom_header_script' ); ?></textarea>
452
  <p class='description'> <?php _e('Add header script in this text area.' );?></p>
453
+ <p class="description">This is a PRO feature. See <a href="<?php echo wpmmp_generate_web_link('header-script', '/', array('coupon' => 'welcome')); ?>" target="_blank">everything PRO offers &amp; get 25% OFF</a>.</p>
454
  </label>
455
  </td>
456
  </tr>
461
  <td><label for="mmp_custom_footrt_script">
462
  <textarea disabled cols="50" rows="2" id="mmp_custom_footrt_script" name="mmp_custom_footrt_script" ><?php echo get_option( 'mmp_custom_footrt_script' ); ?></textarea>
463
  <p class='description'> <?php _e('Add footer script in this text area.' );?></p>
464
+ <p class="description">This is a PRO feature. See <a href="<?php echo wpmmp_generate_web_link('footer-script', '/', array('coupon' => 'welcome')); ?>" target="_blank">everything PRO offers &amp; get 25% OFF</a>.</p>
465
  </label>
466
  </td>
467
  </tr>
602
 
603
 
604
  </tr><tr valign='top'>
605
+ <th scope='row'>Tell Google Site is Under Maintenance</th>
606
  <td>
607
  <div class="onoffswitch">
608
  <input disabled type="checkbox" class="onoffswitch-checkbox" id="myonoffswitch10" value='1'<?php checked(1, get_option('mmp_http_503')); ?> />
611
  <span class="onoffswitch-switch"></span>
612
  </label>
613
  </div>
614
+ <p class="description">In order not to lose your ranking Google has to know the site is under maintenance via a 503 header.</p>
615
+ <p class="description">This is a PRO feature. See <a href="<?php echo wpmmp_generate_web_link('503-header', '/', array('coupon' => 'welcome')); ?>" target="_blank">everything PRO offers &amp; get 25% OFF</a>.</p>
616
  </td>
617
  </tr>
618
 
619
 
620
  </tr><tr valign='top'>
621
+ <th scope='row'>Enable Secret Access Link</th>
622
  <td>
623
  <div class="onoffswitch">
624
+ <input disabled type="checkbox" class="onoffswitch-checkbox" id="myonoffswitch11" value='1' />
625
  <label class="onoffswitch-label" for="myonoffswitch11">
626
  <span class="onoffswitch-inner"></span>
627
  <span class="onoffswitch-switch"></span>
628
  </label>
629
  </div>
630
+ <p class="description">Get a secret link so clients &amp; friends can preview the site while maintenance mode is enabled.</p>
631
+ <p class="description">This is a PRO feature. See <a href="<?php echo wpmmp_generate_web_link('secret-link', '/', array('coupon' => 'welcome')); ?>" target="_blank">everything PRO offers &amp; get 25% OFF</a>.</p>
632
  </td>
633
  </tr>
634
+
635
  <tr valign='top'>
636
 
637
  <th scope='row'>Disable Maintenance Mode for User Roles</th>
644
 
645
  if ( ! is_array( $activeroles ) )
646
  $activeroles = array('administrator');
647
+
648
 
649
  global $wp_roles;
650
 
658
  echo '<p><input disabled checked type="checkbox" value="' . $role_value . '">'.$role_name.'</p>';
659
  else
660
  echo '<p><input disabled type="checkbox" value="' . $role_value . '">'.$role_name.'</p>';
661
+
662
 
663
  }
664
+
665
  ?>
666
+ <p class="description">This is a PRO feature. See <a href="<?php echo wpmmp_generate_web_link('user-roles', '/', array('coupon' => 'welcome')); ?>" target="_blank">everything PRO offers &amp; get 25% OFF</a>.</p>
667
  </td>
668
 
669
  </tr>
672
 
673
  </table>
674
  </div>
675
+
676
 
677
  <p class="submit">
678
  <input type="submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
679
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="button button-secondary big" href="<?php echo get_home_url() ?>?wpmmp-mode=enabled&nonce=<?php echo wp_create_nonce( 'wpmmp-preview-nonce' ); ?>" target="_blank">Preview Page (please save first)</a>
680
  </p>
681
 
682
+
683
  </form>
684
 
685
  <form id="reset" method="post" action="">
686
  <p class="submit">
687
+ <input name="reset" class="button button-secondary" type="submit" value="Reset to default settings">&nbsp;&nbsp;&nbsp;&nbsp;
688
+ <a href="" target="_blank" class="button-secondary button">Like the plugin? Please rate it!</a>
689
  <input type="hidden" value="reset" />
690
  </p>
691
  </form>
692
+
693
+ </div> <!-- wraper-->
views/themes/default/assets/css/style.css CHANGED
@@ -1,5 +1,5 @@
1
  /* ==== Google font ==== */
2
- @import url('http://fonts.googleapis.com/css?family=Lato:400,300,700,900');
3
 
4
  body {
5
  background: #394864;
@@ -130,7 +130,7 @@ form.signup input.form-control:focus {
130
  background-attachment: relative;
131
  background-position: center center;
132
  min-height: 650px;
133
- width: 100%;
134
  -webkit-background-size: 100%;
135
  -moz-background-size: 100%;
136
  -o-background-size: 100%;
@@ -170,7 +170,7 @@ p.copyright {
170
  margin-top: 50px;
171
  color: #fff;
172
  text-align: center;
173
- }
174
 
175
  #content {
176
  font-size: 16px;
@@ -185,6 +185,7 @@ p.copyright {
185
  color: white;
186
  float: left;
187
  width: 0%;
 
188
  height: 100%;
189
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
190
  background-color: #0e90d2;
@@ -198,7 +199,7 @@ p.copyright {
198
  -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
199
  -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
200
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
201
-
202
  }
203
 
204
  .mm-img-social{
@@ -209,4 +210,4 @@ p.copyright {
209
  .mm-span-social{
210
  margin-top: 6%;
211
  text-align: center;
212
- }
1
  /* ==== Google font ==== */
2
+ @import url('https://fonts.googleapis.com/css?family=Lato:400,300,700,900');
3
 
4
  body {
5
  background: #394864;
130
  background-attachment: relative;
131
  background-position: center center;
132
  min-height: 650px;
133
+ width: 100%;
134
  -webkit-background-size: 100%;
135
  -moz-background-size: 100%;
136
  -o-background-size: 100%;
170
  margin-top: 50px;
171
  color: #fff;
172
  text-align: center;
173
+ }
174
 
175
  #content {
176
  font-size: 16px;
185
  color: white;
186
  float: left;
187
  width: 0%;
188
+ line-height: 122%;
189
  height: 100%;
190
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
191
  background-color: #0e90d2;
199
  -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
200
  -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
201
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
202
+
203
  }
204
 
205
  .mm-img-social{
210
  .mm-span-social{
211
  margin-top: 6%;
212
  text-align: center;
213
+ }
wp-wpmmp.php CHANGED
@@ -1,16 +1,39 @@
1
  <?php
2
  /**
3
- Plugin Name: Maintenance Mode & Coming Soon
4
- Plugin URI: http://web-settler.com/maintenance-mode/?ref=wpOrg
5
  Description: Add a responsive maintenance mode or coming soon page to your site that lets visitors know your site is down or under construction.
6
- Author: Maintenance Mode Builder
7
- Author URI: http://web-settler.com/maintenance-mode/?ref=authoruri
8
- Version: 3.8.1
9
- Copyright: 2017 Muneeb ur Rehman http://muneeb.me/contact/?ref=readmewp
10
- **/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
- require plugin_dir_path( __FILE__ ) . 'config.php';
13
 
 
 
 
 
 
 
 
 
 
14
  require WPMMP_PLUGIN_INCLUDE_DIRECTORY . 'functions.php';
15
 
16
  define( 'WPMMP_PRO_VERSION_ENABLED', true );
@@ -18,4 +41,3 @@ define( 'WPMMP_PRO_VERSION_ENABLED', true );
18
  add_option( 'wpmmp_install_version', WPMMP_PLUGIN_VERSION );
19
 
20
  load_wpmmp();
21
-
1
  <?php
2
  /**
3
+ Plugin Name: Rocket Maintenance Mode & Coming Soon Page Builder
4
+ Plugin URI: https://wordpress.org/plugins/rocket-maintenance-mode/
5
  Description: Add a responsive maintenance mode or coming soon page to your site that lets visitors know your site is down or under construction.
6
+ Author: WebFactory Ltd
7
+ Author URI: https://www.webfactoryltd.com/
8
+ Version: 3.9
9
+ Text Domain: under-construction-page
10
+
11
+ Copyright 2015 - 2019 WebFactory Ltd (email: support@webfactoryltd.com)
12
+
13
+ This program is free software; you can redistribute it and/or modify
14
+ it under the terms of the GNU General Public License, version 2, as
15
+ published by the Free Software Foundation.
16
+
17
+ This program is distributed in the hope that it will be useful,
18
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ GNU General Public License for more details.
21
+
22
+ You should have received a copy of the GNU General Public License
23
+ along with this program; if not, write to the Free Software
24
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
+ */
26
 
 
27
 
28
+ // this is an include only WP file
29
+ if (!defined('ABSPATH')) {
30
+ die;
31
+ }
32
+
33
+
34
+ define( 'WPMMP_PLUGIN_FILE', __FILE__ );
35
+
36
+ require plugin_dir_path( __FILE__ ) . 'config.php';
37
  require WPMMP_PLUGIN_INCLUDE_DIRECTORY . 'functions.php';
38
 
39
  define( 'WPMMP_PRO_VERSION_ENABLED', true );
41
  add_option( 'wpmmp_install_version', WPMMP_PLUGIN_VERSION );
42
 
43
  load_wpmmp();