Minimal Coming Soon & Maintenance Mode - Version 1.2

Version Description

  • 2016-11-22
  • WebFactory took over development
  • fixed known bugs
Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Minimal Coming Soon & Maintenance Mode
Version 1.2
Comparing to
See all releases

Code changes from version 1.1.1 to 1.2

framework/admin/css/admin.css CHANGED
@@ -4,494 +4,506 @@
4
  */
5
 
6
  .signals-clearfix {
7
- *zoom: 1;
8
  }
9
  .signals-clearfix:before,
10
  .signals-clearfix:after {
11
- display: table;
12
- content: "";
13
  }
14
  .signals-clearfix:after {
15
- clear: both;
16
  }
17
  .signals-hide {
18
- display: none;
19
  }
20
  .signals-strong {
21
- font-weight: bold;
22
  }
23
  .signals-red-color {
24
- color: #e76e70;
25
  }
26
  .signals-cnt-fix {
27
- background: #f1f1f1;
28
- margin: 0;
29
- margin-left: -20px !important;
30
  }
31
  .signals-fix-wp38 {}
32
  .signals-header {
33
- padding: 20px;
34
- background: #ffffff;
35
  }
36
  .signals-header p {
37
- float: left;
38
- font-size: 14px;
39
- margin: 0;
40
- margin-top: 3px;
41
  }
42
  .signals-header p span {
43
- display: block;
44
- font-size: 12px;
45
- font-weight: normal;
46
  }
47
  .signals-logo {
48
- float: left;
49
- border-radius: 100%;
50
- margin-right: 10px;
51
  }
52
  .signals-body {
53
- padding: 30px 20px;
54
  }
55
  .signals-body p {
56
- line-height: 24px;
57
  }
58
  .signals-single-section {
59
- padding: 30px;
60
  }
61
  .signals-float-left {
62
- float: left;
63
- width: 30%;
64
- margin-right: 2%;
65
  }
66
  .signals-float-right {
67
- float: right;
68
- width: 68%;
69
  }
70
  .signals-tile {
71
- display: none;
72
- position: relative;
73
- background-color: #ffffff;
74
- color: #666666;
 
75
  }
76
  .signals-tile .signals-tile-body {
77
- padding: 19px 18px 15px 24px;
78
  }
79
  .signals-tile .signals-tile-title {
80
- font-size: 13px;
81
- letter-spacing: 0.5px;
82
- font-weight: 600;
83
  }
84
  .signals-tile .signals-tile-title span {
85
- font-weight: normal;
86
- margin-left: 10px;
87
  }
88
  .signals-tile .signals-tile-body ul {
89
- margin: 0;
90
- padding: 0;
91
  }
92
  .signals-tile .signals-tile-body ul li {
93
- margin: 12px 0;
94
- padding: 0;
95
  }
96
  .signals-tile .signals-tile-body ul li a {
97
- text-decoration: none;
98
- margin-right: 4px;
99
  }
100
  .signals-section-content {
101
- margin-top: 30px;
102
  }
103
  .signals-main-menu {
104
- display: block;
105
- margin: 0;
106
  }
107
  .signals-main-menu li {
108
- font-size: 14px;
109
- color: #888888;
110
- margin: 0;
111
- padding: 0;
112
  }
113
  .signals-main-menu li a {
114
- display: block;
115
- color: #888888;
116
- padding: 10px;
117
- text-decoration: none;
118
- border: 1px solid transparent;
119
- border-bottom-color: #e2e2e2;
120
- outline: 0;
 
121
  }
122
  .signals-main-menu li:last-child a {
123
- border-bottom-color: transparent;
124
  }
125
  .signals-main-menu li a:hover {
126
- background: #ffffff;
127
- font-weight: bold;
128
- color: #333333;
 
129
  }
130
  .signals-main-menu li a.active {
131
- color: #e76e70;
132
- background-color: #fff6f4;
133
- border-color: #f8cdcd;
134
- font-weight: bold;
135
- box-shadow: 0 0 2px 1px rgba(74, 34, 15, 0.06);
136
  }
 
 
 
 
 
 
137
  .signals-mobile-menu {
138
- display: none;
139
- text-align: center;
140
- margin-bottom: 20px;
141
  }
142
  .signals-mobile-menu a {
143
- display: inline-block;
144
- outline: 0;
145
  }
146
  .signals-mobile-menu a img {
147
- display: block;
148
- max-height: 15px;
149
- width: auto;
150
  }
151
  #signals-widgets-css-editor {
152
- width: 100%;
153
- height: 400px;
154
- margin-bottom: 10px;
155
  }
156
  .signals-links {
157
- font-size: 14px !important;
158
  }
159
  .signals-fixed-save-btn {
160
- position: fixed;
161
- bottom: 0px;
162
- margin-left: -20px;
163
- padding: 10px;
164
- width: 100%;
165
- background: #fff;
166
- border-top: 1px solid #eee;
167
- box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.05);
168
- z-index: 9999;
169
  }
170
  .signals-share a {
171
- display: inline-block;
172
- margin-right: 10px;
173
  }
174
  .signals-share a:last-child {
175
- margin-right: 0;
176
  }
177
  .signals-elements {
178
- border: 1px solid #f1f1f1;
179
- padding: 10px 20px;
180
- margin-bottom: 30px;
181
  }
182
  #arrange-items li {
183
- background: #f3f3f3;
184
- padding: 5px 15px;
185
- font-weight: bold;
186
- cursor: move;
187
- cursor: -webkit-grabbing;
 
 
 
188
  }
189
 
190
  /* Forms */
191
 
192
  fieldset {
193
- padding: 0;
194
- margin: 0;
195
- border: 0;
196
  }
197
  legend {
198
- display: block;
199
- width: 100%;
200
- padding: 0;
201
- margin-bottom: 20px;
202
- font-size: 21px;
203
- line-height: inherit;
204
- color: #333333;
205
- border: 0;
206
- border-bottom: 1px solid #e5e5e5;
207
  }
208
  label {
209
- display: block;
210
- margin-bottom: 5px;
211
  }
212
  textarea {
213
- width: 100%;
214
- resize: none;
215
  }
216
  input[type="search"] {
217
- -webkit-box-sizing: border-box;
218
- -moz-box-sizing: border-box;
219
- box-sizing: border-box;
220
  }
221
  input[type="radio"],
222
  input[type="checkbox"] {
223
- margin: 4px 0 0;
224
- margin-top: 1px \9;
225
- line-height: normal;
226
  }
227
  input[type="file"] {
228
- display: block;
229
  }
230
  select[multiple],
231
  select[size] {
232
- height: auto;
233
  }
234
  select optgroup {
235
- font-size: inherit;
236
- font-style: inherit;
237
- font-family: inherit;
238
  }
239
  input[type="file"]:focus,
240
  input[type="radio"]:focus,
241
  input[type="checkbox"]:focus {
242
- outline: thin dotted;
243
- outline: 5px auto -webkit-focus-ring-color;
244
- outline-offset: -2px;
245
  }
246
  input[type="number"]::-webkit-outer-spin-button,
247
  input[type="number"]::-webkit-inner-spin-button {
248
- height: auto;
249
  }
250
  output {
251
- display: block;
252
- padding-top: 7px;
253
- font-size: 14px;
254
- line-height: 1.428571429;
255
- color: #555555;
256
- vertical-align: middle;
257
  }
258
  dl,
259
  dd {
260
- margin: 0;
261
- padding: 0;
262
  }
263
  .signals-form-control {
264
- display: block;
265
- width: 100%;
266
- height: 34px;
267
- padding: 6px 12px;
268
- font-size: 14px;
269
- line-height: 1.428571429;
270
- color: #555555;
271
- vertical-align: middle;
272
- background-color: #ffffff;
273
- background-image: none;
274
- border: 1px solid #cccccc;
275
- border-radius: 4px;
276
- -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
277
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
278
- -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
279
- transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
280
  }
281
  .signals-form-control:focus {
282
- border-color: #66afe9;
283
- outline: 0;
284
- -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
285
- box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
286
  }
287
  .signals-form-control:-moz-placeholder {
288
- color: #999999;
289
  }
290
  .signals-form-control::-moz-placeholder {
291
- color: #999999;
292
- opacity: 1;
293
  }
294
  .signals-form-control:-ms-input-placeholder {
295
- color: #999999;
296
  }
297
  .signals-form-control::-webkit-input-placeholder {
298
- color: #999999;
299
  }
300
  .signals-form-control[disabled],
301
  .signals-form-control[readonly] {
302
- cursor: not-allowed;
303
- background-color: #eeeeee;
304
  }
305
  textarea.signals-form-control {
306
- height: auto;
307
  }
308
  .signals-form-group {
309
- margin-bottom: 21px;
310
- padding-bottom: 14px;
311
- border-bottom: 1px solid #f1f1f1;
312
  }
313
  .signals-form-group:last-child {
314
- border: none;
315
  }
316
  .signals-form-group.border-fix {
317
- border-bottom: none;
318
  }
319
  .signals-double-group {
320
- margin-bottom: 21px;
321
- border-bottom: 1px solid #f1f1f1;
322
  }
323
  .signals-double-group:last-child {
324
- border: none;
325
  }
326
  .signals-double-group.no-border {
327
- border-bottom: 0;
328
- margin-bottom: 14px;
329
  }
330
  .signals-double-group .signals-form-group {
331
- border-bottom: none;
332
- float: left;
333
- width: 48%;
334
- margin-right: 4%;
335
- margin-bottom: 0;
336
  }
337
  .signals-double-group .signals-form-group:last-child,
338
  .signals-upload-group .signals-form-group:last-child {
339
- margin-right: 0;
340
  }
341
  .signals-upload-group .signals-form-group {
342
- float: left;
343
- width: 32%;
344
- margin-right: 2%;
345
  }
346
  .signals-form-radio,
347
  .signals-form-checkbox {
348
- display: block;
349
- min-height: 20px;
350
- margin-top: 10px;
351
- margin-bottom: 10px;
352
- padding-left: 20px;
353
- vertical-align: middle;
354
  }
355
  .signals-form-radio label,
356
  .signals-form-checkbox label {
357
- display: inline;
358
- margin-bottom: 0;
359
- font-weight: normal;
360
- cursor: pointer;
361
  }
362
  .signals-form-radio input[type="radio"],
363
  .signals-form-checkbox input[type="checkbox"] {
364
- float: left;
365
- margin-left: -20px;
366
  }
367
  .signals-form-radio + .signals-form-radio,
368
  .signals-form-checkbox + .signals-form-checkbox {
369
- margin-top: -5px;
370
  }
371
  input[type="radio"][disabled],
372
  input[type="checkbox"][disabled],
373
  .signals-form-radio[disabled],
374
  .signals-form-checkbox[disabled] {
375
- cursor: not-allowed;
376
  }
377
  .signals-form-input-sm {
378
- height: 30px;
379
- padding: 5px 10px;
380
- font-size: 12px;
381
- line-height: 1.5;
382
- border-radius: 3px;
383
  }
384
  select.signals-form-input-sm {
385
- height: 30px;
386
- line-height: 30px;
387
  }
388
  textarea.signals-form-input-sm {
389
- height: auto;
390
  }
391
  .signals-form-input-lg {
392
- height: 46px;
393
- padding: 10px 16px;
394
- font-size: 18px;
395
- line-height: 1.33;
396
- border-radius: 6px;
397
  }
398
  select.signals-form-input-lg {
399
- height: 46px;
400
- line-height: 46px;
401
  }
402
  textarea.signals-form-input-lg {
403
- height: auto;
404
  }
405
  .signals-form-help-block {
406
- display: block;
407
- margin-top: 5px;
408
- margin-bottom: 10px;
409
- color: #737373;
410
  }
411
 
412
  /* Alerts & Buttons */
413
 
414
  .signals-alert {
415
- color: #ce8f22;
416
- background-color: #fffcee;
417
- background-image: none;
418
- box-shadow: none;
419
- text-shadow: none;
420
- padding: 9px 19px 9px 15px;
421
- border-radius: 3px 3px 3px 3px;
422
- border: 1px solid #F0DBB4;
423
- margin-bottom: 20px;
424
- -webkit-transition: all 0.2s linear 0s;
425
- transition: all 0.2s linear 0s;
426
  }
427
  .signals-alert-success {
428
- color: #438a85;
429
- background-color: #f3faf8;
430
- border-color: #bfd1cf;
431
  }
432
  .signals-alert-info {
433
- color: #246a8e;
434
- background-color: #ebf6fb;
435
- border-color: #bfd4de;
436
  }
437
  .signals-alert-warning {
438
- background-color: #fcf8e3;
439
- border-color: #8a6d3b;
440
- color: #8a6d3b;
441
  }
442
  .signals-alert-danger {
443
- color: #e76e70;
444
- background-color: #fff6f4;
445
- border-color: #f8cdcd;
446
  }
447
  .signals-btn {
448
- display: inline-block;
449
- padding: 6px 12px;
450
- margin-bottom: 0;
451
- font-size: 13px;
452
- line-height: 20px;
453
- text-align: center;
454
- vertical-align: middle;
455
- cursor: pointer;
456
- color: #ffffff;
457
- background-color: #0090d9;
458
- -webkit-border-radius: 3px;
459
- background-image: none !important;
460
- border: none;
461
- text-shadow: none;
462
- text-decoration: none;
463
- box-shadow: none;
464
- transition: all 0.12s linear 0s !important;
465
  }
466
  .signals-btn:hover,
467
  .signals-btn:focus,
468
  .signals-btn:active {
469
- background-color: #0090d9;
470
- color: #ffffff;
471
- opacity: .8;
472
  }
473
 
474
  /* Red Color */
475
 
476
  .signals-btn-red {
477
- background-color: #f35958;
478
  }
479
  .signals-btn-red:hover,
480
  .signals-btn-red:focus,
481
  .signals-btn-red:active {
482
- background-color: #f35958;
483
  }
484
 
485
  /* Overrides extra padding on button elements in Firefox */
486
 
487
  .signals-btn::-moz-focus-inner {
488
- padding: 0;
489
- border: 0;
490
  }
491
  #signals_csmm_html_editor,
492
  #signals_csmm_css_editor {
493
- width: 100%;
494
- height: 300px;
495
  }
496
 
497
  /* Upload process for the panel */
@@ -524,84 +536,129 @@ textarea.signals-form-input-lg {
524
  /* Switches */
525
 
526
  .switchery {
527
- background-color: #ffffff;
528
- border: 1px solid #dfdfdf;
529
- border-radius: 20px;
530
- cursor: pointer;
531
- display: inline-block;
532
- height: 20px;
533
- position: relative;
534
- vertical-align: middle;
535
- width: 40px;
536
  }
537
  .switchery > small {
538
- background: #ffffff;
539
- border-radius: 100%;
540
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
541
- height: 20px;
542
- position: absolute;
543
- top: 0;
544
- width: 20px;
545
  }
546
 
547
  /* Hidden */
548
 
549
  @media (max-width: 767px) {
550
- .signals-hidden-xs {
551
- display: none !important;
552
- }
553
  }
554
  @media (min-width: 768px) and (max-width: 991px) {
555
- .signals-hidden-sm {
556
- display: none !important;
557
- }
558
  }
559
  @media (min-width: 992px) and (max-width: 1199px) {
560
- .signals-hidden-md {
561
- display: none !important;
562
- }
563
  }
564
  @media (min-width: 1200px) {
565
- .signals-hidden-lg {
566
- display: none !important;
567
- }
568
  }
569
 
570
  /* Responsive */
571
 
572
  @media (max-width: 767px) {
573
- .signals-float-left,
574
- .signals-float-right {
575
- float: none;
576
- width: 100%;
577
- margin: 0;
578
- }
579
- .signals-float-left {
580
- margin-bottom: 30px;
581
- }
582
- .signals-cnt-fix {
583
- margin-left: -10px !important;
584
- }
585
- .signals-main-menu {
586
- display: none;
587
- }
588
- .signals-mobile-menu {
589
- display: block;
590
- }
591
- .signals-double-group .signals-form-group {
592
- float: none;
593
- width: 100%;
594
- margin-right: 0;
595
- margin-bottom: 21px;
596
- border-bottom: 1px solid #f1f1f1;
597
- }
598
- .signals-double-group .signals-form-group:last-child {
599
- margin-bottom: 0;
600
- border-bottom: none;
601
- }
602
- .signals-upload-group .signals-form-group {
603
- float: none;
604
- width: 100%;
605
- margin-right: 0;
606
- }
607
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  */
5
 
6
  .signals-clearfix {
7
+ *zoom: 1;
8
  }
9
  .signals-clearfix:before,
10
  .signals-clearfix:after {
11
+ display: table;
12
+ content: "";
13
  }
14
  .signals-clearfix:after {
15
+ clear: both;
16
  }
17
  .signals-hide {
18
+ display: none;
19
  }
20
  .signals-strong {
21
+ font-weight: bold;
22
  }
23
  .signals-red-color {
24
+ color: #e76e70;
25
  }
26
  .signals-cnt-fix {
27
+ background: #f1f1f1;
28
+ margin: 0;
29
+ margin-left: -20px !important;
30
  }
31
  .signals-fix-wp38 {}
32
  .signals-header {
33
+ padding: 20px;
34
+ background: #ffffff;
35
  }
36
  .signals-header p {
37
+ float: left;
38
+ font-size: 14px;
39
+ margin: 0;
40
+ margin-top: 3px;
41
  }
42
  .signals-header p span {
43
+ display: block;
44
+ font-size: 12px;
45
+ font-weight: normal;
46
  }
47
  .signals-logo {
48
+ float: left;
49
+ border-radius: 100%;
50
+ margin-right: 10px;
51
  }
52
  .signals-body {
53
+ padding: 30px 0 30px 20px;
54
  }
55
  .signals-body p {
56
+ line-height: 24px;
57
  }
58
  .signals-single-section {
59
+ padding: 30px;
60
  }
61
  .signals-float-left {
62
+ width: 160px;
63
+ float: left;
64
+ margin-right: -160px;
65
  }
66
  .signals-float-right {
67
+ margin-left: 160px;
68
+ max-width: 1200px;
69
  }
70
  .signals-tile {
71
+ display: none;
72
+ position: relative;
73
+ background-color: #ffffff;
74
+ color: #666666;
75
+ min-height: 300px;
76
  }
77
  .signals-tile .signals-tile-body {
78
+ padding: 19px 18px 15px 24px;
79
  }
80
  .signals-tile .signals-tile-title {
81
+ font-size: 14px;
82
+ letter-spacing: 0.5px;
83
+ font-weight: bold;
84
  }
85
  .signals-tile .signals-tile-title span {
86
+ font-weight: normal;
87
+ margin-left: 10px;
88
  }
89
  .signals-tile .signals-tile-body ul {
90
+ margin: 0;
91
+ padding: 0;
92
  }
93
  .signals-tile .signals-tile-body ul li {
94
+ margin: 12px 0;
95
+ padding: 0;
96
  }
97
  .signals-tile .signals-tile-body ul li a {
98
+ text-decoration: none;
99
+ margin-right: 4px;
100
  }
101
  .signals-section-content {
102
+ margin-top: 30px;
103
  }
104
  .signals-main-menu {
105
+ display: block;
106
+ margin: 0;
107
  }
108
  .signals-main-menu li {
109
+ font-size: 14px;
110
+ color: #888888;
111
+ margin: 0;
112
+ padding: 0;
113
  }
114
  .signals-main-menu li a {
115
+ display: block;
116
+ color: #888888;
117
+ padding: 10px;
118
+ text-decoration: none;
119
+ border: 1px solid transparent;
120
+ border-bottom-color: #e2e2e2;
121
+ outline: 0 !important;
122
+ border: none;
123
  }
124
  .signals-main-menu li:last-child a {
125
+ border-bottom-color: transparent;
126
  }
127
  .signals-main-menu li a:hover {
128
+ background: #ffffff;
129
+ font-weight: bold;
130
+ color: #333333;
131
+ outline: 0;
132
  }
133
  .signals-main-menu li a.active {
134
+ color: #333333;
135
+ background-color: #ffffff;
136
+ font-weight: bold;
137
+ outline: 0;
138
+ border: none;
139
  }
140
+
141
+ .signals-main-menu li a:focus{
142
+ -webkit-box-shadow:none;
143
+ box-shadow:none;
144
+ }
145
+
146
  .signals-mobile-menu {
147
+ display: none;
148
+ text-align: center;
149
+ margin-bottom: 20px;
150
  }
151
  .signals-mobile-menu a {
152
+ display: inline-block;
153
+ outline: 0;
154
  }
155
  .signals-mobile-menu a img {
156
+ display: block;
157
+ max-height: 15px;
158
+ width: auto;
159
  }
160
  #signals-widgets-css-editor {
161
+ width: 100%;
162
+ height: 400px;
163
+ margin-bottom: 10px;
164
  }
165
  .signals-links {
166
+ font-size: 14px !important;
167
  }
168
  .signals-fixed-save-btn {
169
+ position: fixed;
170
+ bottom: 0px;
171
+ margin-left: -20px;
172
+ padding: 15px 10px;
173
+ width: 100%;
174
+ background: #fff;
175
+ border-top: 1px solid #eee;
176
+ box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.05);
177
+ z-index: 9999;
178
  }
179
  .signals-share a {
180
+ display: inline-block;
181
+ margin-right: 10px;
182
  }
183
  .signals-share a:last-child {
184
+ margin-right: 0;
185
  }
186
  .signals-elements {
187
+ border: 1px solid #f1f1f1;
188
+ padding: 10px 20px;
189
+ margin-bottom: 30px;
190
  }
191
  #arrange-items li {
192
+ background: #f3f3f3;
193
+ padding: 5px 15px;
194
+ font-weight: bold;
195
+ cursor: move;
196
+ cursor: -webkit-grabbing;
197
+ }
198
+ .sortable-ghost {
199
+ border: 1px dashed #333;
200
  }
201
 
202
  /* Forms */
203
 
204
  fieldset {
205
+ padding: 0;
206
+ margin: 0;
207
+ border: 0;
208
  }
209
  legend {
210
+ display: block;
211
+ width: 100%;
212
+ padding: 0;
213
+ margin-bottom: 20px;
214
+ font-size: 21px;
215
+ line-height: inherit;
216
+ color: #333333;
217
+ border: 0;
218
+ border-bottom: 1px solid #e5e5e5;
219
  }
220
  label {
221
+ display: block;
222
+ margin-bottom: 5px;
223
  }
224
  textarea {
225
+ width: 100%;
226
+ resize: none;
227
  }
228
  input[type="search"] {
229
+ -webkit-box-sizing: border-box;
230
+ -moz-box-sizing: border-box;
231
+ box-sizing: border-box;
232
  }
233
  input[type="radio"],
234
  input[type="checkbox"] {
235
+ margin: 4px 0 0;
236
+ margin-top: 1px \9;
237
+ line-height: normal;
238
  }
239
  input[type="file"] {
240
+ display: block;
241
  }
242
  select[multiple],
243
  select[size] {
244
+ height: auto;
245
  }
246
  select optgroup {
247
+ font-size: inherit;
248
+ font-style: inherit;
249
+ font-family: inherit;
250
  }
251
  input[type="file"]:focus,
252
  input[type="radio"]:focus,
253
  input[type="checkbox"]:focus {
254
+ outline: thin dotted;
255
+ outline: 5px auto -webkit-focus-ring-color;
256
+ outline-offset: -2px;
257
  }
258
  input[type="number"]::-webkit-outer-spin-button,
259
  input[type="number"]::-webkit-inner-spin-button {
260
+ height: auto;
261
  }
262
  output {
263
+ display: block;
264
+ padding-top: 7px;
265
+ font-size: 14px;
266
+ line-height: 1.428571429;
267
+ color: #555555;
268
+ vertical-align: middle;
269
  }
270
  dl,
271
  dd {
272
+ margin: 0;
273
+ padding: 0;
274
  }
275
  .signals-form-control {
276
+ display: block;
277
+ width: 100%;
278
+ height: 34px;
279
+ padding: 6px 12px;
280
+ font-size: 14px;
281
+ line-height: 1.428571429;
282
+ color: #555555;
283
+ vertical-align: middle;
284
+ background-color: #ffffff;
285
+ background-image: none;
286
+ border: 1px solid #cccccc;
287
+ border-radius: 4px;
288
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
289
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
290
+ -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
291
+ transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
292
  }
293
  .signals-form-control:focus {
294
+ border-color: #66afe9;
295
+ outline: 0;
296
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
297
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
298
  }
299
  .signals-form-control:-moz-placeholder {
300
+ color: #999999;
301
  }
302
  .signals-form-control::-moz-placeholder {
303
+ color: #999999;
304
+ opacity: 1;
305
  }
306
  .signals-form-control:-ms-input-placeholder {
307
+ color: #999999;
308
  }
309
  .signals-form-control::-webkit-input-placeholder {
310
+ color: #999999;
311
  }
312
  .signals-form-control[disabled],
313
  .signals-form-control[readonly] {
314
+ cursor: not-allowed;
315
+ background-color: #eeeeee;
316
  }
317
  textarea.signals-form-control {
318
+ height: auto;
319
  }
320
  .signals-form-group {
321
+ margin-bottom: 21px;
322
+ padding-bottom: 14px;
323
+ border-bottom: 1px solid #f1f1f1;
324
  }
325
  .signals-form-group:last-child {
326
+ border: none;
327
  }
328
  .signals-form-group.border-fix {
329
+ border-bottom: none;
330
  }
331
  .signals-double-group {
332
+ margin-bottom: 21px;
333
+ border-bottom: 1px solid #f1f1f1;
334
  }
335
  .signals-double-group:last-child {
336
+ border: none;
337
  }
338
  .signals-double-group.no-border {
339
+ border-bottom: 0;
340
+ margin-bottom: 14px;
341
  }
342
  .signals-double-group .signals-form-group {
343
+ border-bottom: none;
344
+ float: left;
345
+ width: 48%;
346
+ margin-right: 4%;
347
+ margin-bottom: 0;
348
  }
349
  .signals-double-group .signals-form-group:last-child,
350
  .signals-upload-group .signals-form-group:last-child {
351
+ margin-right: 0;
352
  }
353
  .signals-upload-group .signals-form-group {
354
+ float: left;
355
+ width: 32%;
356
+ margin-right: 2%;
357
  }
358
  .signals-form-radio,
359
  .signals-form-checkbox {
360
+ display: block;
361
+ min-height: 20px;
362
+ margin-top: 10px;
363
+ margin-bottom: 10px;
364
+ padding-left: 20px;
365
+ vertical-align: middle;
366
  }
367
  .signals-form-radio label,
368
  .signals-form-checkbox label {
369
+ display: inline;
370
+ margin-bottom: 0;
371
+ font-weight: normal;
372
+ cursor: pointer;
373
  }
374
  .signals-form-radio input[type="radio"],
375
  .signals-form-checkbox input[type="checkbox"] {
376
+ float: left;
377
+ margin-left: -20px;
378
  }
379
  .signals-form-radio + .signals-form-radio,
380
  .signals-form-checkbox + .signals-form-checkbox {
381
+ margin-top: -5px;
382
  }
383
  input[type="radio"][disabled],
384
  input[type="checkbox"][disabled],
385
  .signals-form-radio[disabled],
386
  .signals-form-checkbox[disabled] {
387
+ cursor: not-allowed;
388
  }
389
  .signals-form-input-sm {
390
+ height: 30px;
391
+ padding: 5px 10px;
392
+ font-size: 12px;
393
+ line-height: 1.5;
394
+ border-radius: 3px;
395
  }
396
  select.signals-form-input-sm {
397
+ height: 30px;
398
+ line-height: 30px;
399
  }
400
  textarea.signals-form-input-sm {
401
+ height: auto;
402
  }
403
  .signals-form-input-lg {
404
+ height: 46px;
405
+ padding: 10px 16px;
406
+ font-size: 18px;
407
+ line-height: 1.33;
408
+ border-radius: 6px;
409
  }
410
  select.signals-form-input-lg {
411
+ height: 46px;
412
+ line-height: 46px;
413
  }
414
  textarea.signals-form-input-lg {
415
+ height: auto;
416
  }
417
  .signals-form-help-block {
418
+ display: block;
419
+ margin-top: 5px;
420
+ margin-bottom: 10px;
421
+ color: #737373;
422
  }
423
 
424
  /* Alerts & Buttons */
425
 
426
  .signals-alert {
427
+ color: #ce8f22;
428
+ background-color: #fffcee;
429
+ background-image: none;
430
+ box-shadow: none;
431
+ text-shadow: none;
432
+ padding: 9px 19px 9px 15px;
433
+ border-radius: 3px 3px 3px 3px;
434
+ border: 1px solid #F0DBB4;
435
+ margin-bottom: 20px;
436
+ -webkit-transition: all 0.2s linear 0s;
437
+ transition: all 0.2s linear 0s;
438
  }
439
  .signals-alert-success {
440
+ color: #438a85;
441
+ background-color: #f3faf8;
442
+ border-color: #bfd1cf;
443
  }
444
  .signals-alert-info {
445
+ color: #246a8e;
446
+ background-color: #ebf6fb;
447
+ border-color: #bfd4de;
448
  }
449
  .signals-alert-warning {
450
+ background-color: #fcf8e3;
451
+ border-color: #8a6d3b;
452
+ color: #8a6d3b;
453
  }
454
  .signals-alert-danger {
455
+ color: #e76e70;
456
+ background-color: #fff6f4;
457
+ border-color: #f8cdcd;
458
  }
459
  .signals-btn {
460
+ display: inline-block;
461
+ padding: 6px 12px;
462
+ margin-bottom: 0;
463
+ font-size: 13px;
464
+ line-height: 20px;
465
+ text-align: center;
466
+ vertical-align: middle;
467
+ cursor: pointer;
468
+ color: #ffffff;
469
+ background-color: #0090d9;
470
+ -webkit-border-radius: 3px;
471
+ background-image: none !important;
472
+ border: none;
473
+ text-shadow: none;
474
+ text-decoration: none;
475
+ box-shadow: none;
476
+ transition: all 0.12s linear 0s !important;
477
  }
478
  .signals-btn:hover,
479
  .signals-btn:focus,
480
  .signals-btn:active {
481
+ background-color: #0090d9;
482
+ color: #ffffff;
483
+ opacity: .8;
484
  }
485
 
486
  /* Red Color */
487
 
488
  .signals-btn-red {
489
+ background-color: #f35958;
490
  }
491
  .signals-btn-red:hover,
492
  .signals-btn-red:focus,
493
  .signals-btn-red:active {
494
+ background-color: #f35958;
495
  }
496
 
497
  /* Overrides extra padding on button elements in Firefox */
498
 
499
  .signals-btn::-moz-focus-inner {
500
+ padding: 0;
501
+ border: 0;
502
  }
503
  #signals_csmm_html_editor,
504
  #signals_csmm_css_editor {
505
+ width: 100%;
506
+ height: 300px;
507
  }
508
 
509
  /* Upload process for the panel */
536
  /* Switches */
537
 
538
  .switchery {
539
+ background-color: #ffffff;
540
+ border: 1px solid #dfdfdf;
541
+ border-radius: 20px;
542
+ cursor: pointer;
543
+ display: inline-block;
544
+ height: 20px;
545
+ position: relative;
546
+ vertical-align: middle;
547
+ width: 40px;
548
  }
549
  .switchery > small {
550
+ background: #ffffff;
551
+ border-radius: 100%;
552
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
553
+ height: 20px;
554
+ position: absolute;
555
+ top: 0;
556
+ width: 20px;
557
  }
558
 
559
  /* Hidden */
560
 
561
  @media (max-width: 767px) {
562
+ .signals-hidden-xs {
563
+ display: none !important;
564
+ }
565
  }
566
  @media (min-width: 768px) and (max-width: 991px) {
567
+ .signals-hidden-sm {
568
+ display: none !important;
569
+ }
570
  }
571
  @media (min-width: 992px) and (max-width: 1199px) {
572
+ .signals-hidden-md {
573
+ display: none !important;
574
+ }
575
  }
576
  @media (min-width: 1200px) {
577
+ .signals-hidden-lg {
578
+ display: none !important;
579
+ }
580
  }
581
 
582
  /* Responsive */
583
 
584
  @media (max-width: 767px) {
585
+ .signals-float-left,
586
+ .signals-float-right {
587
+ float: none;
588
+ width: 100%;
589
+ margin: 0;
590
+ }
591
+ .signals-float-left {
592
+ margin-bottom: 30px;
593
+ }
594
+ .signals-cnt-fix {
595
+ margin-left: -10px !important;
596
+ }
597
+ .signals-main-menu {
598
+ display: none;
599
+ }
600
+ .signals-mobile-menu {
601
+ display: block;
602
+ }
603
+ .signals-double-group .signals-form-group {
604
+ float: none;
605
+ width: 100%;
606
+ margin-right: 0;
607
+ margin-bottom: 21px;
608
+ border-bottom: 1px solid #f1f1f1;
609
+ }
610
+ .signals-double-group .signals-form-group:last-child {
611
+ margin-bottom: 0;
612
+ border-bottom: none;
613
+ }
614
+ .signals-upload-group .signals-form-group {
615
+ float: none;
616
+ width: 100%;
617
+ margin-right: 0;
618
+ }
619
+ }
620
+
621
+ #collect_emails {
622
+ display: block;
623
+ width: 600px;
624
+ padding: 15px;
625
+ margin: 0px 20px 30px 0;
626
+ color: #fff;
627
+ background-color: rgba(243, 89, 88, 0.81);
628
+ position: relative;
629
+ }
630
+
631
+ #collect_emails #mm_subscribe_cancel {
632
+ position: absolute;
633
+ right: 5px;
634
+ top: 5px;
635
+ text-decoration: none;
636
+ }
637
+
638
+ #collect_emails p {
639
+ margin: 5px 0;
640
+ }
641
+
642
+ #collect_emails b {
643
+ font-weight: bolder;
644
+ }
645
+
646
+ #collect_emails input {
647
+ border: none;
648
+ outline: none;
649
+ box-shadow: none;
650
+ margin-right: 10px;
651
+ }
652
+
653
+ #collect_emails p a {
654
+ color: #fff;
655
+ }
656
+
657
+ #collect_emails p .button {
658
+ -webkit-box-shadow: none;
659
+ box-shadow: none;
660
+ text-shadow: none;
661
+ border: none;
662
+ font-weight: 600;
663
+ }
664
+
framework/admin/img/lrg-icon.png CHANGED
Binary file
framework/admin/include/fonts.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Google fonts for the plugin.
5
  *
6
- * @link http://www.69signals.com
7
  * @since 0.1
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  $signals_google_fonts = array(
3
  /**
4
  * Google fonts for the plugin.
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 0.1
 
8
  */
9
 
10
  $signals_google_fonts = array(
framework/admin/init.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * WordPress management panel.
5
  *
6
- * @link http://www.69signals.com
7
  * @since 0.1
8
  * @package Signals_Maintenance_Mode
9
  */
@@ -12,8 +12,7 @@ function csmm_meta_links( $links, $file ) {
12
 
13
  if ( strpos( $file, 'minimal-coming-soon-maintenance-mode.php' ) !== false ) {
14
  $new_links = array(
15
- '<a href="http://www.69signals.com/support/" target="_blank">' . __( 'Support', 'signals' ) . '</a>',
16
- '<a href="http://www.69signals.com/hire-us.php" target="_blank">' . __( 'Hire Us', 'signals' ) . '</a>'
17
  );
18
 
19
  $links = array_merge( $links, $new_links );
3
  /**
4
  * WordPress management panel.
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 0.1
8
  * @package Signals_Maintenance_Mode
9
  */
12
 
13
  if ( strpos( $file, 'minimal-coming-soon-maintenance-mode.php' ) !== false ) {
14
  $new_links = array(
15
+ '<a href="https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode" target="_blank">' . __( 'Support', 'signals' ) . '</a>'
 
16
  );
17
 
18
  $links = array_merge( $links, $new_links );
framework/admin/js/admin.js CHANGED
@@ -112,7 +112,7 @@ function getUploader( $text, $target ) {
112
  } );
113
 
114
  editor.getSession().setMode( 'ace/mode/' + $mode );
115
- editor.setTheme( 'ace/theme/xcode' );
116
  editor.getSession().setUseWrapMode( true );
117
  editor.getSession().setWrapLimitRange( null, null );
118
  editor.renderer.setShowPrintMargin( null );
@@ -143,6 +143,34 @@ function getUploader( $text, $target ) {
143
 
144
  // on dom ready
145
  $( document ).ready( function() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
 
147
  // google fonts
148
  $( '.signals-google-fonts' ).each( function() {
@@ -230,10 +258,10 @@ function getUploader( $text, $target ) {
230
  $( '.signals-main-menu li a' ).removeClass( 'active' );
231
  $( 'a[href="' + $state + '"]' ).addClass( 'active' );
232
 
233
- $( $state ).fadeIn();
234
  } else {
235
  $( '.signals-main-menu li:first a' ).addClass( 'active' );
236
- $( '.signals-tile:first' ).fadeIn();
237
  }
238
 
239
  $( '.signals-main-menu li a' ).click( function(e) {
@@ -249,7 +277,7 @@ function getUploader( $text, $target ) {
249
  $selector.addClass( 'active' );
250
 
251
  $( '.signals-tile' ).hide();
252
- $( $tab ).fadeIn();
253
  $.cookie( 'signals_csmm_menu', $tab, { path: '/' } );
254
 
255
  } );
112
  } );
113
 
114
  editor.getSession().setMode( 'ace/mode/' + $mode );
115
+ //editor.setTheme( 'ace/theme/xcode' );
116
  editor.getSession().setUseWrapMode( true );
117
  editor.getSession().setWrapLimitRange( null, null );
118
  editor.renderer.setShowPrintMargin( null );
143
 
144
  // on dom ready
145
  $( document ).ready( function() {
146
+
147
+ $( document ).on( 'click', '#mm_subscribe', function(e) {
148
+ e.preventDefault();
149
+
150
+ if (!$('#mm_name').val() || !$('#mm_email').val()) {
151
+ alert('Oh come on! The are only two fields. Fill them ;)');
152
+ return;
153
+ }
154
+
155
+ $.get(ajaxurl, {'action': 'csmm_subscribe', 'name': $('#mm_name').val(), 'email': $('#mm_email').val()}, function(data){
156
+ if (data.success == true) {
157
+ alert('Everything is looking good! Expect free stuff soon ;)');
158
+ } else {
159
+ alert('Something is not right :( Please try again in a few moments.');
160
+ }
161
+ });
162
+
163
+ return false;
164
+ } );
165
+
166
+ $( document ).on( 'click', '#mm_subscribe_cancel', function(e) {
167
+ e.preventDefault();
168
+
169
+ $('#collect_emails').hide();
170
+ $.get(ajaxurl, {'action': 'csmm_subscribe_hide'}, function(){});
171
+
172
+ return false;
173
+ } );
174
 
175
  // google fonts
176
  $( '.signals-google-fonts' ).each( function() {
258
  $( '.signals-main-menu li a' ).removeClass( 'active' );
259
  $( 'a[href="' + $state + '"]' ).addClass( 'active' );
260
 
261
+ $( $state ).show();
262
  } else {
263
  $( '.signals-main-menu li:first a' ).addClass( 'active' );
264
+ $( '.signals-tile:first' ).show();
265
  }
266
 
267
  $( '.signals-main-menu li a' ).click( function(e) {
277
  $selector.addClass( 'active' );
278
 
279
  $( '.signals-tile' ).hide();
280
+ $( $tab ).show();
281
  $.cookie( 'signals_csmm_menu', $tab, { path: '/' } );
282
 
283
  } );
framework/admin/preview.php CHANGED
@@ -3,14 +3,17 @@
3
  /**
4
  * Preview maintenance mode.
5
  *
6
- * @link http://www.69signals.com
7
  * @since 0.1
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  // Load WordPress
12
- require_once( explode( "wp-content" , __FILE__ )[0] . "wp-load.php" );
13
-
 
 
 
 
14
 
15
  // Include important files
16
  require_once '../public/include/functions.php';
@@ -47,4 +50,4 @@ if ( empty( $signals_csmm_options['custom_login_url'] ) ) {
47
 
48
 
49
  // Render the maintenance mode template
50
- csmm_render_template( $signals_csmm_options );
3
  /**
4
  * Preview maintenance mode.
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 0.1
 
8
  */
9
 
10
  // Load WordPress
11
+ $tmp = explode( "wp-content" , __FILE__ );
12
+ if (empty($tmp[0])) {
13
+ die('Unable to load WP core. Please preview Maintenance Mode by opening the site home page.');
14
+ } else {
15
+ require_once( $tmp[0] . "wp-load.php" );
16
+ }
17
 
18
  // Include important files
19
  require_once '../public/include/functions.php';
50
 
51
 
52
  // Render the maintenance mode template
53
+ csmm_render_template( $signals_csmm_options );
framework/admin/settings.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Settings page for the plugin
5
  *
6
- * @link http://www.69signals.com
7
  * @since 0.1
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  function csmm_admin_settings() {
@@ -139,20 +138,22 @@ function csmm_admin_settings() {
139
  'custom_css' => $_POST['signals_csmm_css'] // Giving full freedom to them :)
140
  );
141
 
 
142
 
143
  // Updating the options in the database and showing message to the user
144
  update_option( 'signals_csmm_options', $update_options );
145
- $signals_csmm_err = '<div class="signals-alert signals-alert-info"><strong>Hey!</strong> Options have been updated.</div>';
146
-
147
  }
148
 
149
 
150
  // Grab options from the database
151
  $signals_csmm_options = get_option( 'signals_csmm_options' );
 
152
 
153
 
154
  // Grabbing admin_email from the database
155
- $signals_admin_email = get_option( 'admin_email', '' );
 
156
 
157
 
158
  // View template for the settings panel
@@ -183,17 +184,17 @@ function csmm_ajax_support() {
183
 
184
 
185
  // Sending the mail to the support email
186
- if ( true === wp_mail( 'support@69signals.com', $subject, $body, $headers ) ) {
187
  // Sending the success response
188
  $response = array(
189
  'code' => 'success',
190
- 'response' => __( 'We have received your support ticket. We will get back to you shortly!', 'signals' )
191
  );
192
  } else {
193
  // Sending the failure response
194
  $response = array(
195
  'code' => 'error',
196
- 'response' => __( 'There was an error creating the support ticket. You can try again later or send us an email directly to <strong>support@69signals.com</strong>', 'signals' )
197
  );
198
  }
199
  }
@@ -208,4 +209,4 @@ function csmm_ajax_support() {
208
  exit();
209
 
210
  }
211
- add_action( 'wp_ajax_signals_csmm_support', 'csmm_ajax_support' );
3
  /**
4
  * Settings page for the plugin
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 0.1
 
8
  */
9
 
10
  function csmm_admin_settings() {
138
  'custom_css' => $_POST['signals_csmm_css'] // Giving full freedom to them :)
139
  );
140
 
141
+ $update_options = stripslashes_deep($update_options);
142
 
143
  // Updating the options in the database and showing message to the user
144
  update_option( 'signals_csmm_options', $update_options );
145
+ $signals_csmm_err = '<div class="signals-alert signals-alert-info"><strong>Great!</strong> Options have been updated.</div>';
 
146
  }
147
 
148
 
149
  // Grab options from the database
150
  $signals_csmm_options = get_option( 'signals_csmm_options' );
151
+
152
 
153
 
154
  // Grabbing admin_email from the database
155
+ $user = wp_get_current_user();
156
+ $signals_admin_email = $user->user_email;
157
 
158
 
159
  // View template for the settings panel
184
 
185
 
186
  // Sending the mail to the support email
187
+ if ( true === wp_mail( 'support@webfactoryltd.com', $subject, $body, $headers ) ) {
188
  // Sending the success response
189
  $response = array(
190
  'code' => 'success',
191
+ 'response' => __( 'We have received your support ticket and will get back to you shortly!', 'signals' )
192
  );
193
  } else {
194
  // Sending the failure response
195
  $response = array(
196
  'code' => 'error',
197
+ 'response' => __( 'There was an error creating the support ticket. You can try again later or send us an email directly to <strong>support@webfactoryltd.com</strong>', 'signals' )
198
  );
199
  }
200
  }
209
  exit();
210
 
211
  }
212
+ add_action( 'wp_ajax_signals_csmm_support', 'csmm_ajax_support' );
framework/admin/views/footer.php CHANGED
@@ -3,12 +3,11 @@
3
  /**
4
  * Provide a admin footer view for the plugin
5
  *
6
- * @link http://www.69signals.com
7
  * @since 0.1
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  ?>
12
 
13
  </div><!-- .signals-fix-wp38 -->
14
- </div><!-- .signals-cnt-fix -->
3
  /**
4
  * Provide a admin footer view for the plugin
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 0.1
 
8
  */
9
 
10
  ?>
11
 
12
  </div><!-- .signals-fix-wp38 -->
13
+ </div><!-- .signals-cnt-fix -->
framework/admin/views/header.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Provide a admin header view for the plugin
5
  *
6
- * @link http://www.69signals.com
7
  * @since 0.1
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  ?>
@@ -16,8 +15,9 @@
16
  <img src="<?php echo SIGNALS_CSMM_URL; ?>/framework/admin/img/lrg-icon.png" class="signals-logo">
17
  <p>
18
  <strong><?php _e( 'Maintenance Mode', 'signals' ); ?></strong>
19
- <span><?php _e( 'by', 'signals' ); ?> <a href="http://www.69signals.com/" target="_blank"><?php _e( '69signals', 'signals' ); ?></a></span>
20
  </p>
21
 
22
  <?php if ( isset( $signals_header_addon ) ) { echo $signals_header_addon; } ?>
23
- </div><!-- .signals-header -->
 
3
  /**
4
  * Provide a admin header view for the plugin
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 0.1
 
8
  */
9
 
10
  ?>
15
  <img src="<?php echo SIGNALS_CSMM_URL; ?>/framework/admin/img/lrg-icon.png" class="signals-logo">
16
  <p>
17
  <strong><?php _e( 'Maintenance Mode', 'signals' ); ?></strong>
18
+ <span><?php _e( 'by', 'signals' ); ?> <a href="http://www.webfactoryltd.com/" target="_blank"><?php _e( 'Web Factory Ltd', 'signals' ); ?></a></span>
19
  </p>
20
 
21
  <?php if ( isset( $signals_header_addon ) ) { echo $signals_header_addon; } ?>
22
+ </div><!-- .signals-header -->
23
+
framework/admin/views/settings-about.php DELETED
@@ -1,57 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * About view for the plugin
5
- *
6
- * @link http://www.69signals.com
7
- * @since 1.0
8
- * @package Signals_Maintenance_Mode
9
- */
10
-
11
- ?>
12
-
13
- <div class="signals-tile" id="about">
14
- <div class="signals-tile-body">
15
- <p class="signals-strong"><?php _e( 'We are a Creative Digital Marketplace.', 'signals' ); ?></p>
16
- <p><?php _e( 'We love to weave the web, simple but amazing. We create flawless web and mobile applications. Our perfectly crafted products will make you believe us.', 'signals' ); ?></p>
17
-
18
- <div class="signals-section-content">
19
- <?php
20
-
21
- // Checking for the offers transient
22
- $offers_transient = get_transient( 'signals_csmm_offer' );
23
-
24
- // If the value is saved in the database, then don't ping the server
25
- if ( $offers_transient ) {
26
- echo '<div class="signals-tile-title">' . __( 'OFFERS', 'signals' ) . '</div>';
27
- echo $offers_transient . '<br/>';
28
- } else {
29
- // Getting our latest products and offer from the website
30
- $signals_offers = wp_remote_get( 'http://www.69signals.com/offers.php?product=maintenance' );
31
-
32
- // Checking for the errors
33
- // If everything is OK, then display the information
34
- if ( ! is_wp_error( $signals_offers ) ) {
35
- echo '<div class="signals-tile-title">' . __( 'OFFERS', 'signals' ) . '</div>';
36
- echo $signals_offers['body'] . '<br/>';
37
-
38
- // Setting the transient over here so that it does not ping the server again for a day atleast
39
- set_transient( 'signals_csmm_offer', $signals_offers['body'], 60 * 60 * 24 );
40
- } // $signals_offers
41
- } // $offers_transient
42
-
43
- ?>
44
-
45
- <div class="signals-share">
46
- <p><?php _e( 'Show us some love. Connect with us via Social channels.', 'signals' ); ?></p>
47
- <a href="https://www.twitter.com/69signals" target="_blank">
48
- <img src="<?php echo SIGNALS_CSMM_URL; ?>/framework/admin/img/twitter.png" />
49
- </a>
50
-
51
- <a href="https://www.facebook.com/69Signals" target="_blank">
52
- <img src="<?php echo SIGNALS_CSMM_URL; ?>/framework/admin/img/facebook.png" />
53
- </a>
54
- </div>
55
- </div>
56
- </div>
57
- </div><!-- #about -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
framework/admin/views/settings-advanced.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Advanced settings view for the plugin
5
  *
6
- * @link http://www.69signals.com
7
  * @since 1.0
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  ?>
@@ -18,7 +17,7 @@
18
  <div class="signals-section-content">
19
  <div class="signals-form-group">
20
  <label for="signals_csmm_disable" class="signals-strong"><?php _e( 'Use Custom HTML only', 'signals' ); ?></label>
21
- <input type="checkbox" class="signals-form-ios" name="signals_csmm_disable" value="1"<?php checked( '1', $signals_csmm_options['disable_settings'] ); ?>>
22
 
23
  <p class="signals-form-help-block"><?php _e( 'If you enable this option, the plugin will ignore everything except the HTML you provide.', 'signals' ); ?></p>
24
  <p class="signals-form-help-block"><?php _e( 'Basically, you will have a blank template which you can fill with your provided html content. Only basic css gets added by the plugin which does the task of browser styling reset. You should style your html content either inline or by inserting styling in the custom css section. In short, use this option only if you know what you are doing.', 'signals' ); ?></p>
@@ -42,4 +41,4 @@
42
  </div>
43
  </div>
44
  </div>
45
- </div><!-- #advanced -->
3
  /**
4
  * Advanced settings view for the plugin
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 1.0
 
8
  */
9
 
10
  ?>
17
  <div class="signals-section-content">
18
  <div class="signals-form-group">
19
  <label for="signals_csmm_disable" class="signals-strong"><?php _e( 'Use Custom HTML only', 'signals' ); ?></label>
20
+ <input type="checkbox" class="signals-form-ios" id="signals_csmm_disable" name="signals_csmm_disable" value="1"<?php checked( '1', $signals_csmm_options['disable_settings'] ); ?>>
21
 
22
  <p class="signals-form-help-block"><?php _e( 'If you enable this option, the plugin will ignore everything except the HTML you provide.', 'signals' ); ?></p>
23
  <p class="signals-form-help-block"><?php _e( 'Basically, you will have a blank template which you can fill with your provided html content. Only basic css gets added by the plugin which does the task of browser styling reset. You should style your html content either inline or by inserting styling in the custom css section. In short, use this option only if you know what you are doing.', 'signals' ); ?></p>
41
  </div>
42
  </div>
43
  </div>
44
+ </div><!-- #advanced -->
framework/admin/views/settings-basic.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Basic settings view for the plugin
5
  *
6
- * @link http://www.69signals.com
7
  * @since 1.0
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  ?>
@@ -19,7 +18,7 @@
19
  <div class="signals-double-group signals-clearfix">
20
  <div class="signals-form-group">
21
  <label for="signals_csmm_status" class="signals-strong"><?php _e( 'Enable Maintenance Mode?', 'signals' ); ?></label>
22
- <input type="checkbox" class="signals-form-ios" name="signals_csmm_status" value="1"<?php checked( '1', $signals_csmm_options['status'] ); ?>>
23
 
24
  <p class="signals-form-help-block"><?php _e( 'Set the plugin status. Do you want to enable <strong>Maintenance Mode</strong> for your website?', 'signals' ); ?></p>
25
  </div>
@@ -74,7 +73,7 @@
74
 
75
  <div class="signals-form-group">
76
  <label for="signals_csmm_excludese" class="signals-strong"><?php _e( 'Exclude Search Engines?', 'signals' ); ?></label>
77
- <input type="checkbox" class="signals-form-ios" name="signals_csmm_excludese" value="1"<?php checked( '1', $signals_csmm_options['exclude_se'] ); ?>>
78
 
79
  <p class="signals-form-help-block"><?php _e( 'Do you want to exclude search engines from viewing maintenance page? This will enable search engines to view your regular website and not the Maintenance Mode page even if the plugin is enabled.', 'signals' ); ?></p>
80
  </div>
@@ -92,20 +91,20 @@
92
  // list items
93
  foreach ( $signals_arrange as $signals_item ) {
94
  if ( 'html' == $signals_item ) {
95
- echo '<li data-id="' . $signals_item . '">' . __( 'Custom HTML', 'signals' ) . '</li>';
96
  } else {
97
- echo '<li data-id="' . $signals_item . '">' . ucfirst( $signals_item ) . '</li>';
98
  }
99
  }
100
  } else {
101
 
102
  ?>
103
 
104
- <li data-id="logo"><?php _e( 'Logo', 'signals' ); ?></li>
105
- <li data-id="header"><?php _e( 'Header Text', 'signals' ); ?></li>
106
- <li data-id="secondary"><?php _e( 'Secondary Text', 'signals' ); ?></li>
107
- <li data-id="form"><?php _e( 'Form', 'signals' ); ?></li>
108
- <li data-id="html"><?php _e( 'Custom HTML', 'signals' ); ?></li>
109
 
110
  <?php } // arrange ?>
111
  </ul>
@@ -121,4 +120,4 @@
121
  </div>
122
  </div>
123
  </div>
124
- </div><!-- #basic -->
3
  /**
4
  * Basic settings view for the plugin
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 1.0
 
8
  */
9
 
10
  ?>
18
  <div class="signals-double-group signals-clearfix">
19
  <div class="signals-form-group">
20
  <label for="signals_csmm_status" class="signals-strong"><?php _e( 'Enable Maintenance Mode?', 'signals' ); ?></label>
21
+ <input type="checkbox" class="signals-form-ios" name="signals_csmm_status" id="signals_csmm_status" value="1"<?php checked( '1', $signals_csmm_options['status'] ); ?>>
22
 
23
  <p class="signals-form-help-block"><?php _e( 'Set the plugin status. Do you want to enable <strong>Maintenance Mode</strong> for your website?', 'signals' ); ?></p>
24
  </div>
73
 
74
  <div class="signals-form-group">
75
  <label for="signals_csmm_excludese" class="signals-strong"><?php _e( 'Exclude Search Engines?', 'signals' ); ?></label>
76
+ <input type="checkbox" class="signals-form-ios" name="signals_csmm_excludese" id="signals_csmm_excludese" value="1"<?php checked( '1', $signals_csmm_options['exclude_se'] ); ?>>
77
 
78
  <p class="signals-form-help-block"><?php _e( 'Do you want to exclude search engines from viewing maintenance page? This will enable search engines to view your regular website and not the Maintenance Mode page even if the plugin is enabled.', 'signals' ); ?></p>
79
  </div>
91
  // list items
92
  foreach ( $signals_arrange as $signals_item ) {
93
  if ( 'html' == $signals_item ) {
94
+ echo '<li data-id="' . $signals_item . '"><span class="dashicons dashicons-sort"></span> ' . __( 'Custom HTML', 'signals' ) . '</li>';
95
  } else {
96
+ echo '<li data-id="' . $signals_item . '"><span class="dashicons dashicons-sort"></span> ' . ucfirst( $signals_item ) . '</li>';
97
  }
98
  }
99
  } else {
100
 
101
  ?>
102
 
103
+ <li data-id="logo"><span class="dashicons dashicons-sort"></span> <?php _e( 'Logo', 'signals' ); ?></li>
104
+ <li data-id="header"><span class="dashicons dashicons-sort"></span> <?php _e( 'Header Text', 'signals' ); ?></li>
105
+ <li data-id="secondary"><span class="dashicons dashicons-sort"></span> <?php _e( 'Secondary Text', 'signals' ); ?></li>
106
+ <li data-id="form"><span class="dashicons dashicons-sort"></span> <?php _e( 'Form', 'signals' ); ?></li>
107
+ <li data-id="html"><span class="dashicons dashicons-sort"></span> <?php _e( 'Custom HTML', 'signals' ); ?></li>
108
 
109
  <?php } // arrange ?>
110
  </ul>
120
  </div>
121
  </div>
122
  </div>
123
+ </div><!-- #basic -->
framework/admin/views/settings-design.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Design settings view for the plugin
5
  *
6
- * @link http://www.69signals.com
7
  * @since 1.0
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  ?>
@@ -261,4 +260,4 @@
261
  </div>
262
  </div>
263
  </div>
264
- </div><!-- #design -->
3
  /**
4
  * Design settings view for the plugin
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 1.0
 
8
  */
9
 
10
  ?>
260
  </div>
261
  </div>
262
  </div>
263
+ </div><!-- #design -->
framework/admin/views/settings-email.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Email settings view for the plugin
5
  *
6
- * @link http://www.69signals.com
7
  * @since 1.0
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  ?>
@@ -78,18 +77,18 @@
78
  <div class="signals-double-group signals-clearfix">
79
  <div class="signals-form-group">
80
  <label for="signals_csmm_message_wrong" class="signals-strong"><?php _e( 'Message: General Error', 'signals' ); ?></label>
81
- <input type="text" name="signals_csmm_message_wrong" id="signals_csmm_message_wrong" value="<?php echo esc_attr_e( $signals_csmm_options['message_wrong'] ); ?>" placeholder="<?php esc_attr_e( 'Message when anything goes wrong while subscribing', 'signals' ); ?>" class="signals-form-control">
82
 
83
  <p class="signals-form-help-block"><?php _e( 'Provide general error message to show if anything goes wrong while subscribing.', 'signals' ); ?></p>
84
  </div>
85
 
86
  <div class="signals-form-group">
87
  <label for="signals_csmm_message_done" class="signals-strong"><?php _e( 'Message: Successfully Subscribed', 'signals' ); ?></label>
88
- <input type="text" name="signals_csmm_message_done" id="signals_csmm_message_done" value="<?php echo esc_attr_e( $signals_csmm_options['message_done'] ); ?>" placeholder="<?php esc_attr_e( 'Success message when the user gets subscribed', 'signals' ); ?>" class="signals-form-control">
89
 
90
  <p class="signals-form-help-block"><?php _e( 'Provide message to show when the user gets subscribed successfully.', 'signals' ); ?></p>
91
  </div>
92
  </div>
93
  </div>
94
  </div>
95
- </div><!-- #email -->
3
  /**
4
  * Email settings view for the plugin
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 1.0
 
8
  */
9
 
10
  ?>
77
  <div class="signals-double-group signals-clearfix">
78
  <div class="signals-form-group">
79
  <label for="signals_csmm_message_wrong" class="signals-strong"><?php _e( 'Message: General Error', 'signals' ); ?></label>
80
+ <input type="text" name="signals_csmm_message_wrong" id="signals_csmm_message_wrong" value="<?php echo esc_attr( $signals_csmm_options['message_wrong'] ); ?>" placeholder="<?php esc_attr_e( 'Message when anything goes wrong while subscribing', 'signals' ); ?>" class="signals-form-control">
81
 
82
  <p class="signals-form-help-block"><?php _e( 'Provide general error message to show if anything goes wrong while subscribing.', 'signals' ); ?></p>
83
  </div>
84
 
85
  <div class="signals-form-group">
86
  <label for="signals_csmm_message_done" class="signals-strong"><?php _e( 'Message: Successfully Subscribed', 'signals' ); ?></label>
87
+ <input type="text" name="signals_csmm_message_done" id="signals_csmm_message_done" value="<?php echo esc_attr( $signals_csmm_options['message_done'] ); ?>" placeholder="<?php esc_attr_e( 'Success message when the user gets subscribed', 'signals' ); ?>" class="signals-form-control">
88
 
89
  <p class="signals-form-help-block"><?php _e( 'Provide message to show when the user gets subscribed successfully.', 'signals' ); ?></p>
90
  </div>
91
  </div>
92
  </div>
93
  </div>
94
+ </div><!-- #email -->
framework/admin/views/settings-form.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Form settings view for the plugin
5
  *
6
- * @link http://www.69signals.com
7
  * @since 1.0
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  ?>
@@ -34,7 +33,7 @@
34
 
35
  <div class="signals-form-group">
36
  <label for="signals_csmm_ignore_styles" class="signals-strong"><?php _e( 'Ignore Default Form Styles?', 'signals' ); ?></label>
37
- <input type="checkbox" class="signals-form-ios" name="signals_csmm_ignore_styles" value="1"<?php checked( '1', $signals_csmm_options['ignore_form_styles'] ); ?>>
38
 
39
  <p class="signals-form-help-block"><?php _e( 'Enable this option if you would like to use your custom form styles. The settings below will only be applicable when this option is turned on.', 'signals' ); ?></p>
40
  </div>
@@ -188,4 +187,4 @@
188
  </div>
189
  </div>
190
  </div>
191
- </div><!-- #form -->
3
  /**
4
  * Form settings view for the plugin
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 1.0
 
8
  */
9
 
10
  ?>
33
 
34
  <div class="signals-form-group">
35
  <label for="signals_csmm_ignore_styles" class="signals-strong"><?php _e( 'Ignore Default Form Styles?', 'signals' ); ?></label>
36
+ <input type="checkbox" class="signals-form-ios" name="signals_csmm_ignore_styles" id="signals_csmm_ignore_styles" value="1"<?php checked( '1', $signals_csmm_options['ignore_form_styles'] ); ?>>
37
 
38
  <p class="signals-form-help-block"><?php _e( 'Enable this option if you would like to use your custom form styles. The settings below will only be applicable when this option is turned on.', 'signals' ); ?></p>
39
  </div>
187
  </div>
188
  </div>
189
  </div>
190
+ </div><!-- #form -->
framework/admin/views/settings-preview.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Preview view for the plugin
5
  *
6
- * @link http://www.69signals.com
7
  * @since 1.0
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  ?>
@@ -19,4 +18,4 @@
19
  <a href="<?php echo SIGNALS_CSMM_URL; ?>/framework/admin/preview.php" class="signals-btn" target="_blank"><strong><?php _e( 'Preview Maintenance Page', 'signals' ); ?></strong></a>
20
  </div>
21
  </div>
22
- </div><!-- #preview -->
3
  /**
4
  * Preview view for the plugin
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 1.0
 
8
  */
9
 
10
  ?>
18
  <a href="<?php echo SIGNALS_CSMM_URL; ?>/framework/admin/preview.php" class="signals-btn" target="_blank"><strong><?php _e( 'Preview Maintenance Page', 'signals' ); ?></strong></a>
19
  </div>
20
  </div>
21
+ </div><!-- #preview -->
framework/admin/views/settings-support.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Support view for the plugin
5
  *
6
- * @link http://www.69signals.com
7
  * @since 1.0
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  ?>
@@ -13,7 +12,7 @@
13
  <div class="signals-tile" id="support">
14
  <div class="signals-tile-body">
15
  <div class="signals-tile-title"><?php _e( 'SUPPORT', 'signals' ); ?></div>
16
- <p><?php _e( 'Getting help is just a click away now. Report issue using the form below and we will get back to you at your admin email address. If the below support form is not working for you, kindly send us an email at ', 'signals' ); ?><a href="mailto:support@69signals.com">support@69signals.com</a><?php _e( ' explaining the issue you are facing with the plugin.', 'signals' ); ?></p>
17
 
18
  <div class="signals-section-content signals-support-form">
19
  <div class="signals-ajax-response"></div>
3
  /**
4
  * Support view for the plugin
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 1.0
 
8
  */
9
 
10
  ?>
12
  <div class="signals-tile" id="support">
13
  <div class="signals-tile-body">
14
  <div class="signals-tile-title"><?php _e( 'SUPPORT', 'signals' ); ?></div>
15
+ <p><?php _e( 'Report issues using the form below and we will get back to you ASAP. If the support form is not working, please send us an email at ', 'signals' ); ?><a href="mailto:support@webfactoryltd.com">support@webfactoryltd.com</a><?php _e( ' explaining the issue you are having.', 'signals' ); ?></p>
16
 
17
  <div class="signals-section-content signals-support-form">
18
  <div class="signals-ajax-response"></div>
framework/admin/views/settings.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Settings panel view for the plugin
5
  *
6
- * @link http://www.69signals.com
7
  * @since 0.1
8
  * @package Signals_Maintenance_Mode
9
  */
@@ -20,7 +20,13 @@ require_once 'header.php';
20
  if ( isset( $signals_csmm_err ) ) {
21
  echo $signals_csmm_err;
22
  }
23
-
 
 
 
 
 
 
24
  ?>
25
 
26
  <div class="signals-float-left">
@@ -38,7 +44,6 @@ require_once 'header.php';
38
  <li><a href="#advanced"><?php _e( 'Advanced', 'signals' ); ?></a></li>
39
  <li><a href="#preview"><?php _e( 'Preview', 'signals' ); ?></a></li>
40
  <li><a href="#support"><?php _e( 'Support', 'signals' ); ?></a></li>
41
- <li><a href="#about"><?php _e( 'About', 'signals' ); ?></a></li>
42
  </ul>
43
  </div><!-- .signals-float-left -->
44
 
@@ -53,8 +58,6 @@ require_once 'header.php';
53
  require_once 'settings-advanced.php'; // advanced
54
  require_once 'settings-preview.php'; // preview
55
  require_once 'settings-support.php'; // support
56
- require_once 'settings-about.php'; // about
57
-
58
  ?>
59
  </div><!-- .signals-float-right -->
60
 
3
  /**
4
  * Settings panel view for the plugin
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 0.1
8
  * @package Signals_Maintenance_Mode
9
  */
20
  if ( isset( $signals_csmm_err ) ) {
21
  echo $signals_csmm_err;
22
  }
23
+
24
+ $user = wp_get_current_user();
25
+
26
+ if (!get_transient('csmm_subscribe_hide')) {
27
+ echo '<div id="collect_emails"><p><b>Get new templates &amp; premium updates straight to your inbox - for FREE!</b></p><p><input id="mm_name" value="' . $user->display_name . '" placeholder="How shall we call you?" type="text"> <input value="' . $user->user_email . '" id="mm_email" placeholder="Your best email address" type="email"><a href="#" id="mm_subscribe" class="button button-primary">Give me the free stuff</a> <a href="#" id="mm_subscribe_cancel"><span class="dashicons dashicons-no"></span></a></p></div>';
28
+ } // if not hidden
29
+
30
  ?>
31
 
32
  <div class="signals-float-left">
44
  <li><a href="#advanced"><?php _e( 'Advanced', 'signals' ); ?></a></li>
45
  <li><a href="#preview"><?php _e( 'Preview', 'signals' ); ?></a></li>
46
  <li><a href="#support"><?php _e( 'Support', 'signals' ); ?></a></li>
 
47
  </ul>
48
  </div><!-- .signals-float-left -->
49
 
58
  require_once 'settings-advanced.php'; // advanced
59
  require_once 'settings-preview.php'; // preview
60
  require_once 'settings-support.php'; // support
 
 
61
  ?>
62
  </div><!-- .signals-float-right -->
63
 
framework/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // silence is golden
framework/public/include/functions.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Required functions for the plugin.
5
  *
6
- * @link http://www.69signals.com
7
  * @since 1.0
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  function csmm_render_template( $options ) {
@@ -108,4 +107,4 @@ function csmm_string_to_array( $str, $array ) {
108
  $regexp = '~(' . implode( '|', array_values( $array ) ) . ')~i';
109
  return ( bool ) preg_match( $regexp, $str );
110
 
111
- }
3
  /**
4
  * Required functions for the plugin.
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 1.0
 
8
  */
9
 
10
  function csmm_render_template( $options ) {
107
  $regexp = '~(' . implode( '|', array_values( $array ) ) . ')~i';
108
  return ( bool ) preg_match( $regexp, $str );
109
 
110
+ }
framework/public/include/styles.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Required styles for the plugin.
5
  *
6
- * @link http://www.69signals.com
7
  * @since 1.0
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  echo '<style>' . "\r\n";
@@ -283,4 +282,4 @@ if ( ! empty( $options['custom_css'] ) ) {
283
  echo stripslashes( $options['custom_css'] );
284
  }
285
 
286
- echo '</style>' . "\r\n";
3
  /**
4
  * Required styles for the plugin.
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 1.0
 
8
  */
9
 
10
  echo '<style>' . "\r\n";
282
  echo stripslashes( $options['custom_css'] );
283
  }
284
 
285
+ echo '</style>' . "\r\n";
framework/public/init.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Public side of the plugin.
5
  *
6
- * @link http://www.69signals.com
7
  * @since 0.1
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  /* Include important files. */
@@ -13,6 +12,9 @@ require_once 'include/functions.php';
13
 
14
 
15
  function csmm_plugin_init() {
 
 
 
16
 
17
  // Plugin options from the database
18
  $signals_csmm_options = get_option( 'signals_csmm_options' );
@@ -95,4 +97,26 @@ function csmm_plugin_init() {
95
  }
96
 
97
  }
98
- add_action( 'init', 'csmm_plugin_init' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  /**
4
  * Public side of the plugin.
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 0.1
 
8
  */
9
 
10
  /* Include important files. */
12
 
13
 
14
  function csmm_plugin_init() {
15
+
16
+ add_action('wp_ajax_csmm_subscribe', 'csmm_subscribe');
17
+ add_action('wp_ajax_csmm_subscribe_hide', 'csmm_subscribe_hide');
18
 
19
  // Plugin options from the database
20
  $signals_csmm_options = get_option( 'signals_csmm_options' );
97
  }
98
 
99
  }
100
+ add_action( 'init', 'csmm_plugin_init' );
101
+
102
+ function csmm_subscribe() {
103
+ $request_params = array('sslverify' => false, 'timeout' => 20, 'redirection' => 2);
104
+ $url = add_query_arg(array('wp_ver' => get_bloginfo('version'),
105
+ 'plugin_ver' => csmm_get_plugin_version(),
106
+ 'siteurl' => get_home_url(),
107
+ 'name' => @$_GET['name'],
108
+ 'email' => @$_GET['email']), 'http://www.webfactoryltd.com/maintenance-mode/subscribe.php');
109
+ $response = wp_remote_get(esc_url_raw($url), $request_params);
110
+
111
+ if (is_wp_error($response)) {
112
+ wp_send_json_error();
113
+ } else {
114
+ wp_send_json_success();
115
+ }
116
+ } // csmm_subscribe
117
+
118
+ function csmm_subscribe_hide() {
119
+ set_transient('csmm_subscribe_hide', true, DAY_IN_SECONDS * 90);
120
+
121
+ wp_send_json_success();
122
+ } // csmm_subscribe_hide
framework/public/views/blank.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Renders the blank template for the plugin.
5
  *
6
- * @link http://www.69signals.com
7
  * @since 1.0
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  ?><!DOCTYPE html>
@@ -116,7 +115,6 @@
116
 
117
  ?>
118
 
119
- <!-- Maintenance Mode Plugin by 69signals (http://www.69signals.com) -->
120
- <!-- We are a creative digital marketplace. We love to weave the web, simple but amazing. We create flawless web and mobile applications. -->
121
  </body>
122
  </html>
3
  /**
4
  * Renders the blank template for the plugin.
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 1.0
 
8
  */
9
 
10
  ?><!DOCTYPE html>
115
 
116
  ?>
117
 
118
+ <!-- Maintenance Mode Plugin by Web Factory Ltd (http://www.webfactoryltd.com) -->
 
119
  </body>
120
  </html>
framework/public/views/html.php CHANGED
@@ -3,9 +3,8 @@
3
  /**
4
  * Renders the html template for the plugin.
5
  *
6
- * @link http://www.69signals.com
7
  * @since 1.0
8
- * @package Signals_Maintenance_Mode
9
  */
10
 
11
  ?><!DOCTYPE html>
@@ -42,7 +41,7 @@
42
  // Logo
43
  if ( ! empty( $options['logo'] ) ) {
44
  $signals_arrange['logo'] = '<div class="logo-container">' . "\r\n";
45
- $signals_arrange['logo'] .= '<img src="' . $options['logo'] . '" class="logo" />' . "\r\n";
46
  $signals_arrange['logo'] .= '</div>' . "\r\n";
47
  }
48
 
@@ -146,13 +145,10 @@
146
  <?php
147
 
148
  // analytics
149
- if ( isset( $options['analytics'] ) && '' != $options['analytics'] ) {
150
  echo stripslashes( $options['analytics'] ) . "\r\n";
151
  }
152
 
153
  ?>
154
-
155
- <!-- Maintenance Mode Plugin by 69signals (http://www.69signals.com) -->
156
- <!-- We are a Creative Digital Marketplace. We love to weave the web, simple but amazing. We create flawless web and mobile applications. -->
157
  </body>
158
  </html>
3
  /**
4
  * Renders the html template for the plugin.
5
  *
6
+ * @link http://www.webfactoryltd.com
7
  * @since 1.0
 
8
  */
9
 
10
  ?><!DOCTYPE html>
41
  // Logo
42
  if ( ! empty( $options['logo'] ) ) {
43
  $signals_arrange['logo'] = '<div class="logo-container">' . "\r\n";
44
+ $signals_arrange['logo'] .= '<img title= "' . get_bloginfo('name') . '" alt= "' . get_bloginfo('name') . '" src="' . $options['logo'] . '" class="logo" />' . "\r\n";
45
  $signals_arrange['logo'] .= '</div>' . "\r\n";
46
  }
47
 
145
  <?php
146
 
147
  // analytics
148
+ if ( !empty( $options['analytics'] )) {
149
  echo stripslashes( $options['analytics'] ) . "\r\n";
150
  }
151
 
152
  ?>
 
 
 
153
  </body>
154
  </html>
minimal-coming-soon-maintenance-mode.php CHANGED
@@ -1,18 +1,12 @@
1
  <?php
2
 
3
  /**
4
- *
5
- * @link http://www.69signals.com
6
- * @since 0.1
7
- * @package Signals_Maintenance_Mode
8
- *
9
- *
10
  * Plugin Name: Minimal Coming Soon & Maintenance Mode
11
- * Plugin URI: http://www.69signals.com/
12
  * Description: Simply awesome coming soon & maintenance mode plugin for your WordPress blog. Try it to know why there is no other plugin like this one.
13
- * Version: 1.1
14
- * Author: akshitsethi
15
- * Author URI: http://www.69signals.com
16
  * License: GPLv3
17
  * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
18
  * Text Domain: signals
@@ -20,7 +14,7 @@
20
  *
21
  *
22
  * Minimal Coming Soon & Maintenance Mode Plugin
23
- * Copyright (C) 2015, akshitsethi - support@69signals.com
24
  *
25
  * This program is free software: you can redistribute it and/or modify
26
  * it under the terms of the GNU General Public License as published by
@@ -160,4 +154,11 @@ if ( is_admin() ) {
160
  * All the widgets are included and registered using the right hook.
161
  */
162
 
163
- require SIGNALS_CSMM_PATH . 'framework/public/init.php';
 
 
 
 
 
 
 
1
  <?php
2
 
3
  /**
 
 
 
 
 
 
4
  * Plugin Name: Minimal Coming Soon & Maintenance Mode
5
+ * Plugin URI: https://wordpress.org/plugins/minimal-coming-soon-maintenance-mode/
6
  * Description: Simply awesome coming soon & maintenance mode plugin for your WordPress blog. Try it to know why there is no other plugin like this one.
7
+ * Version: 1.2
8
+ * Author: WebFactory
9
+ * Author URI: http://www.webfactoryltd.com
10
  * License: GPLv3
11
  * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
12
  * Text Domain: signals
14
  *
15
  *
16
  * Minimal Coming Soon & Maintenance Mode Plugin
17
+ * Copyright (C) 2016, Web Factory Ltd - support@webfactoryltd.com
18
  *
19
  * This program is free software: you can redistribute it and/or modify
20
  * it under the terms of the GNU General Public License as published by
154
  * All the widgets are included and registered using the right hook.
155
  */
156
 
157
+ require SIGNALS_CSMM_PATH . 'framework/public/init.php';
158
+
159
+
160
+ function csmm_get_plugin_version() {
161
+ $plugin_data = get_file_data(__FILE__, array('version' => 'Version'), 'plugin');
162
+
163
+ return $plugin_data['version'];
164
+ } // csmm_get_plugin_version
readme.txt CHANGED
@@ -1,49 +1,41 @@
1
- === Minimal Coming Soon & Maintenance Mode ===
2
- Contributors: akshitsethi
3
- Donate link: http://www.69signals.com/
4
- Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, offline, unavailable, under construction, wordpress coming soon, wordpress maintenance mode, wordpress under construction
5
- Requires at least: 3.5.0
6
- Tested up to: 4.3
7
- Stable tag: 1.1.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
- Simply awesome Coming Soon & Maintenance Mode plugin for your WordPress blog. Try it to know why it's simply the best.
12
 
13
 
14
  == Description ==
15
  The Minimal Coming Soon & Maintenance Mode plugin allows you to quickly and easily set up a Coming Soon or Launch Page for your website.
16
 
17
- It's Simple + flexible and works with any WordPress theme you have installed on your site. Plus you have full control over the frontend of the website and can modify almost every aspect of it as per your preference.
18
 
19
 
20
  = Plugin Features =
21
 
22
- * Works with any WordPress Theme.
23
- * Completely customizable look and feel including Background Color, Cover Image, Fonts etc.
24
- * Each and every element of the maintenance page can be configured.
25
- * Option to preview the maintenance page for changes made before activating it.
26
- * Arrange position of the page elements as per preference.
27
- * W3 Total Cache and WP Super Cache Support.
28
- * Easily add Custom CSS and HTML.
29
- * Collect Emails with MailChimp.
30
- * You can let search engines to view website normally while visitors see the "Coming Soon" page.
31
- * Visible to only non logged in users so you can build your site while visitors see the "Coming Soon" page. Configurable via options panel.
32
- * Supports Custom Login URL.
33
- * Track visitors with support for Analytics.
34
- * Integrated with Google Fonts.
35
- * Stretch Background Image to Cover the Entire Browser.
36
- * Uses HTML5 & CSS3.
37
- * Translation Ready, i18n Support.
38
- * Powerful Options Panel.
39
- * Get support within the options panel itself. It's something you going to love.
40
-
41
-
42
- About **69signals**
43
-
44
- We are a Creative Digital Marketplace. We love to weave the web, simple but amazing. We create flawless web and mobile applications. Our perfectly crafted products will make you believe us.
45
-
46
- [Support](http://www.69signals.com/support/) | [Services](http://www.69signals.com/services.php) | [Hire Us](http://www.69signals.com/hire-us.php) | [Subscribe to our Newsletter](http://www.69signals.com/#subscribe)
47
 
48
 
49
  == Installation ==
@@ -60,20 +52,25 @@ To manually install this plugin, please follow the instructions below.
60
 
61
  = Having issues with the plugin? =
62
 
63
- Getting help is just a click away now. Report your issues using the support form in the plugin options panel and we will get back to you at your admin email address. If the support form is not working for you, kindly send us an email at **support@69signals.com** explaining the issue you are facing with the plugin.
64
 
65
 
66
  == Screenshots ==
67
 
68
  1. Simple maintenance page
69
  2. Coming soon page
70
- 3. See how perfectly it adapts to mobile
71
  4. Mobile optimized admin panel of the plugin
72
- 5. Get support within the options panel without leaving your website. Isn't that cool?
73
 
74
 
75
  == Changelog ==
76
 
 
 
 
 
 
77
  = 1.1 =
78
 
79
  * ADDED: Preview maintenance page before activating it.
@@ -114,9 +111,4 @@ Getting help is just a click away now. Report your issues using the support form
114
  * Fix: Translation file.
115
 
116
  = 0.1 =
117
- * Initial release
118
-
119
-
120
- == Upgrade Notice ==
121
-
122
- Various improvements made to the plugin. Adds option to preview maintenance page, analytics support, visual improvements, and more customization options. Recommended update.
1
+ === Minimal Coming Soon & Maintenance Mode for WordPress===
2
+ Tags: coming soon, coming soon page, launch page, maintenance mode, mailchimp
3
+ Contributors: WebFactory
4
+ Requires at least: 4.0
5
+ Tested up to: 4.7
6
+ Stable tag: 1.2
 
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
10
+ Simple and flexible Coming Soon & Maintenance Mode plugin for any WordPress site. MailChimp support built-in.
11
 
12
 
13
  == Description ==
14
  The Minimal Coming Soon & Maintenance Mode plugin allows you to quickly and easily set up a Coming Soon or Launch Page for your website.
15
 
16
+ It's simple + flexible and works with any WordPress theme & plugin Plus you have full control over the frontend of the website and can modify almost every aspect of it per your preference.
17
 
18
 
19
  = Plugin Features =
20
 
21
+ * Works with all WordPress themes and plugins
22
+ * Completely customizable look and feel including background color, cover image, fonts etc
23
+ * Each and every element of the maintenance page can be configured
24
+ * Option to preview the maintenance page before activation
25
+ * Rearrange position of the page elements to your liking
26
+ * W3 Total Cache and WP Super Cache Support
27
+ * Easily add Custom CSS and HTML
28
+ * Collect Emails with MailChimp - full API support
29
+ * You can let search engines to view website normally while visitors see the "Coming Soon" page
30
+ * Visible to only non logged in users so you can build your site while visitors see the "Coming Soon" page. Configurable via options panel
31
+ * Supports Custom Login URL
32
+ * Track visitors with support for Google Analytics
33
+ * Integrated with Google Fonts
34
+ * Stretch Background Image to Cover the Entire Browser
35
+ * Uses HTML5 & CSS3
36
+ * Translation Ready, i18n Support
37
+ * Powerful Options Panel
38
+ * Get support from within the options panel
 
 
 
 
 
 
 
39
 
40
 
41
  == Installation ==
52
 
53
  = Having issues with the plugin? =
54
 
55
+ Please use the <a href="https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode">support forum</a>. We read it all the time.
56
 
57
 
58
  == Screenshots ==
59
 
60
  1. Simple maintenance page
61
  2. Coming soon page
62
+ 3. Fully responsive design
63
  4. Mobile optimized admin panel of the plugin
64
+ 5. Get support from within the plugin
65
 
66
 
67
  == Changelog ==
68
 
69
+ = 1.2 =
70
+ * 2016-11-22
71
+ * WebFactory took over development
72
+ * fixed known bugs
73
+
74
  = 1.1 =
75
 
76
  * ADDED: Preview maintenance page before activating it.
111
  * Fix: Translation file.
112
 
113
  = 0.1 =
114
+ * Initial release
 
 
 
 
 
uninstall.php CHANGED
@@ -4,9 +4,8 @@
4
  * File which gets called on plugin uninstall.
5
  * Since the plugin does not do any sort of setup, nothing is done over here.
6
  *
7
- * @link http://www.69signals.com
8
  * @since 0.1
9
- * @package Signals_Maintenance_Mode
10
  *
11
  * Checking whether the file is called by the Wordpress uninstall action or not
12
  * If not, then exit and prevent unauthorized access
@@ -17,4 +16,4 @@ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
17
  }
18
 
19
  /* Removing the options from the database. */
20
- delete_option( 'signals_csmm_options' );
4
  * File which gets called on plugin uninstall.
5
  * Since the plugin does not do any sort of setup, nothing is done over here.
6
  *
7
+ * @link http://www.webfactoryltd.com
8
  * @since 0.1
 
9
  *
10
  * Checking whether the file is called by the Wordpress uninstall action or not
11
  * If not, then exit and prevent unauthorized access
16
  }
17
 
18
  /* Removing the options from the database. */
19
+ delete_option( 'signals_csmm_options' );