Breeze – WordPress Cache Plugin - Version 2.0.5

Version Description

  • Add: UI improvement to provide better accessibility and user experience.
Download this release

Release Info

Developer adeelkhan
Plugin Icon 128x128 Breeze – WordPress Cache Plugin
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.4 to 2.0.5

assets/css/breeze-admin-global.css CHANGED
@@ -31,6 +31,4 @@
31
 
32
  .breeze-box *, ::after, ::before {
33
  box-sizing: unset;
34
- }
35
-
36
- /*# sourceMappingURL=breeze-admin-global.css.map */
31
 
32
  .breeze-box *, ::after, ::before {
33
  box-sizing: unset;
34
+ }
 
 
assets/css/breeze-admin-global.css.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sourceRoot":"","sources":["file:///Users/mihaiirodiu/Local-Lightning/wp56subfolders/app/public/wp-content/plugins/breeze/grunt-assets/files_scss/breeze-admin-global.scss"],"names":[],"mappings":"AACE;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;;AAIJ;EACE;;AAGF;EACE;;AAGF;EACE;EACA;;;AAKJ;EACE;;;AAEF;EACE;;;AAGF;EACE","file":"breeze-admin-global.css"}
 
assets/css/breeze-admin.css CHANGED
@@ -40,126 +40,410 @@ a {
40
  }
41
  }
42
  */
 
 
 
43
  .on-off-checkbox {
44
  width: 160px;
45
  height: 28px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }
47
- .on-off-checkbox.settings-switcher {
48
- width: 420px;
49
- height: 40px;
50
- font-weight: bold;
51
- font-size: 14px;
52
- text-transform: uppercase;
53
- }
54
- @media only screen and (max-width: 418px) {
55
- .on-off-checkbox.settings-switcher {
56
- width: 97.5%;
57
- font-size: 0.91em;
 
 
 
 
 
 
 
 
 
 
 
 
58
  }
59
  }
60
- .on-off-checkbox input.br-box {
61
- display: none;
 
 
 
 
 
 
 
 
 
62
  }
63
- .on-off-checkbox input.br-box + label {
64
- height: 100%;
65
- width: 100%;
 
 
 
 
 
 
 
 
 
66
  }
67
- .on-off-checkbox input.br-box + label > .status-switch {
68
- cursor: pointer;
69
- width: 100%;
70
- height: 100%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  position: relative;
72
- background-color: #42526E;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  color: white;
74
- font-weight: 600;
75
- transition: all 0.5s ease;
76
- padding: 0;
77
- border-radius: 3px;
 
 
 
 
 
78
  }
79
- .on-off-checkbox input.br-box + label > .status-switch:before, .on-off-checkbox input.br-box + label > .status-switch:after {
80
- border-radius: 3px;
81
- height: calc(100% - 4px);
82
- width: calc(50% - 3px);
83
- display: flex;
84
- align-items: center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  position: absolute;
86
- justify-content: center;
87
- transition: all 0.2s ease;
88
- box-sizing: unset;
89
  }
90
- .on-off-checkbox input.br-box + label > .status-switch:before {
91
- background-color: #42526E;
92
- border-top: solid 2px #42526E;
93
- border-bottom: solid 2px #42526E;
94
- color: #FFFFFF;
95
- left: 2px;
96
- z-index: 10;
97
- content: attr(data-unchecked);
98
  }
99
- .on-off-checkbox input.br-box + label > .status-switch:after {
100
- right: 2px;
101
- content: attr(data-checked);
102
- background-color: #FFFFFF;
103
- color: #42526E;
104
- border-top: solid 2px #42526E;
105
- border-bottom: solid 2px #42526E;
106
- border-top-left-radius: 0;
107
- border-bottom-left-radius: 0;
 
 
 
 
 
 
108
  }
109
- .on-off-checkbox input.br-box:checked + label > .status-switch {
110
- background-color: #11ACDF;
 
111
  }
112
- .on-off-checkbox input.br-box:checked + label > .status-switch:after {
113
- left: 2px;
114
- content: attr(data-unchecked);
115
- color: #11ACDF;
116
- border-top-right-radius: 0;
117
- border-bottom-right-radius: 0;
118
- border-top-left-radius: 3px;
119
- border-bottom-left-radius: 3px;
120
- border-top: solid 2px #11ACDF;
121
- border-bottom: solid 2px #11ACDF;
122
- }
123
- .on-off-checkbox input.br-box:checked + label > .status-switch:before {
124
- color: #ffffff;
125
- background-color: #11ACDF;
126
- left: 50%;
127
- content: attr(data-checked);
128
- border-top: solid 2px #11ACDF;
129
- border-bottom: solid 2px #11ACDF;
130
- }
131
- .on-off-checkbox input.br-box:disabled + label > .status-switch {
132
- background-color: #42526E;
133
- opacity: 0.6;
134
- }
135
- .on-off-checkbox input.br-box:disabled + label > .status-switch:after {
136
- right: 2px;
137
- content: attr(data-checked);
138
- background-color: #FFFFFF;
139
- color: #42526E;
140
- border-top: solid 2px #42526E;
141
- border-bottom: solid 2px #42526E;
142
  }
143
- .on-off-checkbox input.br-box:disabled + label > .status-switch:before {
144
- border-top: solid 2px #42526E;
145
- border-bottom: solid 2px #42526E;
146
- background-color: #42526E;
147
- color: #FFFFFF;
148
- left: 2px;
149
- z-index: 10;
150
- content: attr(data-unchecked);
151
  }
152
 
153
  .br-loader-spinner {
154
  display: inline-block;
155
  position: relative;
156
  width: 80px;
157
- height: 80px;
158
  left: 0;
159
  right: 0;
160
  top: 0;
161
  bottom: 0;
162
  margin: auto;
 
163
  }
164
  @media only screen and (max-width: 632px) {
165
  .br-loader-spinner {
@@ -335,11 +619,31 @@ body {
335
  }
336
  .breeze-box .br-logo {
337
  background-image: url("../images/breez-logo200x46.png");
338
- height: 70px;
339
  background-repeat: no-repeat;
340
  background-position: center center;
341
  margin-bottom: 20px;
342
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
343
  .breeze-box .br-link {
344
  text-indent: 20px;
345
  font-style: normal;
@@ -384,6 +688,59 @@ body {
384
  width: 20px;
385
  max-width: 20px;
386
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
387
  .breeze-box .br-options {
388
  position: relative;
389
  -webkit-box-flex: 1;
@@ -933,4 +1290,18 @@ span.br-important {
933
  }
934
  }
935
 
936
- /*# sourceMappingURL=breeze-admin.css.map */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
41
  }
42
  */
43
+ /**
44
+ OLD checkbox
45
+
46
  .on-off-checkbox {
47
  width: 160px;
48
  height: 28px;
49
+
50
+ &.settings-switcher {
51
+ width: 420px;
52
+ height: 40px;
53
+ font-weight: bold;
54
+ font-size: 14px;
55
+ text-transform: uppercase;
56
+ @include ssm-screen {
57
+ width: 97.5%;
58
+ font-size: 0.91em;
59
+ }
60
+ }
61
+
62
+ input.br-box {
63
+ display: none;
64
+
65
+ // Unchecked State
66
+ + label {
67
+ height: 100%;
68
+ width: 100%;
69
+
70
+ > .status-switch {
71
+ cursor: pointer;
72
+ width: 100%;
73
+ height: 100%;
74
+ position: relative;
75
+ background-color: #42526E;
76
+ color: white;
77
+ font-weight: 600;
78
+ transition: all 0.5s ease;
79
+ padding: 0;
80
+ border-radius: 3px;
81
+
82
+ &:before,
83
+ &:after {
84
+ border-radius: 3px;
85
+ height: calc(100% - 4px);
86
+ width: calc(50% - 3px);
87
+ display: flex;
88
+ align-items: center;
89
+ position: absolute;
90
+ justify-content: center;
91
+ transition: all 0.2s ease;
92
+ box-sizing: unset;
93
+ }
94
+
95
+ &:before {
96
+ background-color: #42526E;
97
+ border-top: solid 2px #42526E;
98
+ border-bottom: solid 2px #42526E;
99
+ color: #FFFFFF;
100
+ left: 2px;
101
+ z-index: 10;
102
+ content: attr(data-unchecked);
103
+
104
+ }
105
+
106
+ &:after {
107
+ right: 2px;
108
+ content: attr(data-checked);
109
+ background-color: #FFFFFF;
110
+ color: #42526E;
111
+ border-top: solid 2px #42526E;
112
+ border-bottom: solid 2px #42526E;
113
+ //border-top-right-radius: 0;
114
+ //border-bottom-right-radius: 0;
115
+ border-top-left-radius: 0;
116
+ border-bottom-left-radius: 0;
117
+ }
118
+ }
119
+ }
120
+
121
+ // Checked state
122
+ &:checked + label > .status-switch {
123
+ background-color: #11ACDF;
124
+
125
+ &:after {
126
+ left: 2px;
127
+ content: attr(data-unchecked);
128
+ color: #11ACDF;
129
+ border-top-right-radius: 0;
130
+ border-bottom-right-radius: 0;
131
+ border-top-left-radius: 3px;
132
+ border-bottom-left-radius: 3px;
133
+ border-top: solid 2px #11ACDF;
134
+ border-bottom: solid 2px #11ACDF;
135
+ }
136
+
137
+ &:before {
138
+ color: #ffffff;
139
+ background-color: #11ACDF;
140
+ left: 50%;
141
+ content: attr(data-checked);
142
+ border-top: solid 2px #11ACDF;
143
+ border-bottom: solid 2px #11ACDF;
144
+ }
145
+ }
146
+
147
+
148
+ &:disabled + label > .status-switch {
149
+ background-color: #42526E;
150
+ opacity: 0.6;
151
+
152
+ &:after {
153
+ right: 2px;
154
+ content: attr(data-checked);
155
+ background-color: #FFFFFF;
156
+ color: #42526E;
157
+ border-top: solid 2px #42526E;
158
+ border-bottom: solid 2px #42526E;
159
+ }
160
+
161
+ &:before {
162
+ border-top: solid 2px #42526E;
163
+ border-bottom: solid 2px #42526E;
164
+ background-color: #42526E;
165
+ color: #FFFFFF;
166
+ left: 2px;
167
+ z-index: 10;
168
+ content: attr(data-unchecked);
169
+
170
+ }
171
+ }
172
+ }
173
  }
174
+ */
175
+ /**
176
+ NEW CHECKBOX
177
+
178
+
179
+ .br-toggle-chboxx {
180
+ position: relative;
181
+ width: 145px;
182
+ height: 74px;
183
+ margin: 0 auto;
184
+ border-radius: 40px;
185
+ input[type="checkbox"] {
186
+ width: 100%;
187
+ height: 100%;
188
+ position: absolute;
189
+ top: 0px;
190
+ left: 0px;
191
+ right: 0px;
192
+ bottom: 0px;
193
+ margin: 0px;
194
+ cursor: pointer;
195
+ opacity: 0;
196
+ z-index: 2;
197
  }
198
  }
199
+
200
+
201
+
202
+
203
+ .on-off-checkbox span {
204
+ display: block;
205
+ width: 145px;
206
+ height: 38px;
207
+ background-color: #c7c7c7;
208
+ border-radius: 20px;
209
+ transition: 0.5s ease background-color;
210
  }
211
+
212
+ .on-off-checkbox span:before {
213
+ content: "";
214
+ position: absolute;
215
+ top: -16px;
216
+ width: 70px;
217
+ height: 70px;
218
+ background-color: #fff;
219
+ border-radius: 50%;
220
+ box-shadow: 2px 6px 25px #d7d7d7;
221
+ transform: translate(0px, 0px);
222
+ transition: 0.6s ease transform, 0.6s box-shadow;
223
  }
224
+
225
+ .on-off-checkbox span:after {
226
+ content: "";
227
+ position: absolute;
228
+ top: 50%;
229
+ right: 0px;
230
+ left: 35px;
231
+ width: 0px;
232
+ height: 24px;
233
+ margin-top: -36px;
234
+ margin-left: -6px;
235
+ border: 6px solid #000;
236
+ border-radius: 20px;
237
+ transform: translate(0px, 0px);
238
+ transition: 0.4s ease width, 0.4s ease border-radius, 0.62s ease transform;
239
+ }
240
+
241
+ .on-off-checkbox input[type="checkbox"]:checked + span:before {
242
+ box-shadow: 7px 6px 25px #e6e6e6;
243
+ transform: translate(75px, 0px);
244
+ }
245
+
246
+ .on-off-checkbox input[type="checkbox"]:checked + span:after {
247
+ width: 24px;
248
+ border-radius: 50%;
249
+ transform: translate(64px, 0px);
250
+ }
251
+
252
+ .on-off-checkbox input[type="checkbox"]:checked + span {
253
+ background-color: #000;
254
+ }
255
+
256
+
257
+
258
+ New checkbox 2
259
+ */
260
+ .br-switcher {
261
  position: relative;
262
+ display: inline-block;
263
+ cursor: pointer;
264
+ padding-left: 47px;
265
+ height: 20px;
266
+ line-height: 20px;
267
+ margin: 5px;
268
+ font-size: 15px;
269
+ -webkit-user-select: none;
270
+ -moz-user-select: none;
271
+ -ms-user-select: none;
272
+ user-select: none;
273
+ }
274
+
275
+ .br-switcher input {
276
+ display: none;
277
+ }
278
+
279
+ .br-see-state::after {
280
+ content: "¯";
281
+ color: #DCDCDD;
282
+ position: absolute;
283
+ top: -1px;
284
+ left: 0;
285
+ height: 12px;
286
+ padding-top: 8px;
287
+ width: 20px;
288
+ font-size: 156%;
289
+ font-weight: 800;
290
+ text-align: center;
291
+ background-color: #BDBDBD;
292
+ border-radius: 50%;
293
+ -webkit-transition: all 0.3s ease;
294
+ transition: all 0.3s ease;
295
+ -webkit-animation-name: pulsein;
296
+ animation-name: pulsein;
297
+ -webkit-animation-duration: 0.3s;
298
+ animation-duration: 0.3s;
299
+ }
300
+
301
+ .br-see-state::before {
302
+ content: "";
303
+ position: absolute;
304
+ top: 2px;
305
+ left: 0;
306
+ width: 47px;
307
+ height: 15px;
308
+ background-color: #DEDEDF;
309
+ border-radius: 10px;
310
+ -webkit-transition: all 0.3s ease;
311
+ transition: all 0.3s ease;
312
+ }
313
+
314
+ input:checked + .br-see-state::after {
315
+ content: "✔";
316
+ background-color: #11ACDF;
317
  color: white;
318
+ font-size: 86%;
319
+ height: 20px;
320
+ padding-top: 0;
321
+ -webkit-transform: translateX(25px);
322
+ transform: translateX(25px);
323
+ -webkit-animation-name: pulseout;
324
+ animation-name: pulseout;
325
+ -webkit-animation-duration: 0.3s;
326
+ animation-duration: 0.3s;
327
  }
328
+
329
+ input:checked + .br-see-state::before {
330
+ background-color: #E0F2F9;
331
+ }
332
+
333
+ @-webkit-keyframes pulsein {
334
+ 0%, 100% {
335
+ top: -1px;
336
+ height: 12px;
337
+ padding-top: 8px;
338
+ width: 20px;
339
+ }
340
+ 50% {
341
+ top: -2px;
342
+ height: 12px;
343
+ padding-top: 8px;
344
+ width: 20px;
345
+ }
346
+ }
347
+ @keyframes pulsein {
348
+ 0%, 100% {
349
+ top: -1px;
350
+ height: 12px;
351
+ padding-top: 8px;
352
+ width: 20px;
353
+ }
354
+ 50% {
355
+ top: -2px;
356
+ height: 12px;
357
+ padding-top: 8px;
358
+ width: 20px;
359
+ }
360
+ }
361
+ @-webkit-keyframes pulseout {
362
+ 0%, 100% {
363
+ top: -1px;
364
+ height: 20px;
365
+ width: 20px;
366
+ }
367
+ 50% {
368
+ top: -2px;
369
+ height: 20px;
370
+ width: 20px;
371
+ }
372
+ }
373
+ @keyframes pulseout {
374
+ 0%, 100% {
375
+ top: -1px;
376
+ height: 20px;
377
+ width: 20px;
378
+ }
379
+ 50% {
380
+ top: -2px;
381
+ height: 20px;
382
+ width: 20px;
383
+ }
384
+ }
385
+ .brilbr {
386
+ display: inline-block;
387
+ }
388
+
389
+ /**
390
+ Radio button graphic.
391
+ */
392
+ .br-radio {
393
+ margin: 0.5rem;
394
+ }
395
+ .br-radio input[type=radio] {
396
  position: absolute;
397
+ opacity: 0;
 
 
398
  }
399
+ .br-radio input[type=radio] + .radio-label {
400
+ font-size: 13px;
401
+ vertical-align: top;
 
 
 
 
 
402
  }
403
+ .br-radio input[type=radio] + .radio-label:before {
404
+ content: "";
405
+ background: #f4f4f4;
406
+ border-radius: 100%;
407
+ border: 1px solid #b4b4b4;
408
+ display: inline-block;
409
+ width: 1.4em;
410
+ height: 1.4em;
411
+ position: relative;
412
+ top: -0.2em;
413
+ margin-right: 1em;
414
+ vertical-align: top;
415
+ cursor: pointer;
416
+ text-align: center;
417
+ transition: all 250ms ease;
418
  }
419
+ .br-radio input[type=radio]:checked + .radio-label:before {
420
+ background-color: #3197EE;
421
+ box-shadow: inset 0 0 0 4px #f4f4f4;
422
  }
423
+ .br-radio input[type=radio]:focus + .radio-label:before {
424
+ outline: none;
425
+ border-color: #3197EE;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
426
  }
427
+ .br-radio input[type=radio]:disabled + .radio-label:before {
428
+ background: #f4f4f4;
429
+ content: "";
430
+ border: 1px solid #b4b4b4;
431
+ }
432
+ .br-radio input[type=radio] + .radio-label:empty:before {
433
+ margin-right: 0;
 
434
  }
435
 
436
  .br-loader-spinner {
437
  display: inline-block;
438
  position: relative;
439
  width: 80px;
440
+ height: 50px;
441
  left: 0;
442
  right: 0;
443
  top: 0;
444
  bottom: 0;
445
  margin: auto;
446
+ padding-top: 10px;
447
  }
448
  @media only screen and (max-width: 632px) {
449
  .br-loader-spinner {
619
  }
620
  .breeze-box .br-logo {
621
  background-image: url("../images/breez-logo200x46.png");
622
+ height: 81px;
623
  background-repeat: no-repeat;
624
  background-position: center center;
625
  margin-bottom: 20px;
626
  }
627
+ @media only screen and (max-width: 1298px) {
628
+ .breeze-box .br-logo.subsite-logo {
629
+ height: 117px;
630
+ }
631
+ }
632
+ @media only screen and (max-width: 809px) {
633
+ .breeze-box .br-logo.subsite-logo {
634
+ height: 138px;
635
+ }
636
+ }
637
+ @media only screen and (max-width: 782px) {
638
+ .breeze-box .br-logo.subsite-logo {
639
+ height: 117px;
640
+ }
641
+ }
642
+ @media only screen and (max-width: 763px) {
643
+ .breeze-box .br-logo.subsite-logo {
644
+ height: 138px;
645
+ }
646
+ }
647
  .breeze-box .br-link {
648
  text-indent: 20px;
649
  font-style: normal;
688
  width: 20px;
689
  max-width: 20px;
690
  }
691
+ .breeze-box .br-network-only {
692
+ display: grid;
693
+ grid-template-columns: 60% 40%;
694
+ background-color: #e5e5e5;
695
+ padding-bottom: 10px;
696
+ margin-left: -26px;
697
+ margin-right: -26px;
698
+ min-height: 80px;
699
+ }
700
+ .breeze-box .br-network-only > div {
701
+ display: flex;
702
+ }
703
+ @media only screen and (max-width: 1530px) {
704
+ .breeze-box .br-network-only {
705
+ grid-template-columns: 60% 40%;
706
+ }
707
+ }
708
+ @media only screen and (max-width: 1298px) {
709
+ .breeze-box .br-network-only {
710
+ grid-template-columns: 100%;
711
+ }
712
+ }
713
+ .breeze-box .br-network-only .br-option-net {
714
+ justify-content: center;
715
+ align-items: flex-end;
716
+ }
717
+ @media only screen and (max-width: 1298px) {
718
+ .breeze-box .br-network-only .br-option-net {
719
+ justify-content: end;
720
+ }
721
+ }
722
+ .breeze-box .br-container {
723
+ position: relative;
724
+ -webkit-box-flex: 1;
725
+ -moz-box-flex: 1;
726
+ -webkit-flex-grow: 1;
727
+ -ms-flex: 1;
728
+ flex-grow: 1;
729
+ display: -webkit-inline-box;
730
+ display: -moz-inline-box;
731
+ display: -webkit-inline-flex;
732
+ display: -ms-inline-flexbox;
733
+ display: inline-flex;
734
+ background-color: #FFFFFF;
735
+ padding: 0 26px;
736
+ -webkit-box-direction: normal;
737
+ -webkit-box-orient: vertical;
738
+ -moz-box-direction: normal;
739
+ -moz-box-orient: vertical;
740
+ -webkit-flex-direction: column;
741
+ -ms-flex-direction: column;
742
+ flex-direction: column;
743
+ }
744
  .breeze-box .br-options {
745
  position: relative;
746
  -webkit-box-flex: 1;
1290
  }
1291
  }
1292
 
1293
+ .br-apply-disable {
1294
+ position: relative;
1295
+ }
1296
+ .br-apply-disable:after {
1297
+ content: " ";
1298
+ width: 100%;
1299
+ height: 100%;
1300
+ left: 0;
1301
+ right: 0;
1302
+ top: 0;
1303
+ bottom: 0;
1304
+ margin: auto;
1305
+ background-color: #fcfcfdb8;
1306
+ position: absolute;
1307
+ }
assets/css/breeze-admin.css.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sourceRoot":"","sources":["file:///Users/mihaiirodiu/Local-Lightning/wp56subfolders/app/public/wp-content/plugins/breeze/grunt-assets/files_scss/breeze-admin.scss","file:///Users/mihaiirodiu/Local-Lightning/wp56subfolders/app/public/wp-content/plugins/breeze/grunt-assets/files_scss/_mixins.scss","file:///Users/mihaiirodiu/Local-Lightning/wp56subfolders/app/public/wp-content/plugins/breeze/grunt-assets/files_scss/_checkbox.scss","file:///Users/mihaiirodiu/Local-Lightning/wp56subfolders/app/public/wp-content/plugins/breeze/grunt-assets/files_scss/_loading-spinner.scss","file:///Users/mihaiirodiu/Local-Lightning/wp56subfolders/app/public/wp-content/plugins/breeze/grunt-assets/node_modules/compass-mixins/lib/compass/css3/_shared.scss","file:///Users/mihaiirodiu/Local-Lightning/wp56subfolders/app/public/wp-content/plugins/breeze/grunt-assets/node_modules/compass-mixins/lib/compass/css3/_filter.scss"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;ACSA;AAAA;AAAA;AAUA;AAAA;AAAA;AAQA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAkBA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAoCA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AChFA;EACE;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AD0YF;EC/YA;IAOI;IACA;;;AAIJ;EACE;;AAGA;EACE;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;;AAMN;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAKJ;EACE;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AC1HR;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AFoYA;EE7YF;IAWI;;;;AAIF;EACE;EACA;EACA;EACA;;;AAKF;EACE;EACA;EACA;EACA;;;AAKF;EACE;EACA;EACA;EACA;;;AAKF;EACE;EACA;EACA;EACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;IACE;;EAEF;IACE;;;AH1FJ;EACE;;;AAGF;EACE;EACA;;;AAGF;ECiJE;EACA;EACA;EACA;EACA;EDnJA;ECgBA,WDfmB;ECgBnB;EAuLE;EACA;EACA;EACA;EAEF,wBD3MwB;EC4MxB,oBD5MwB;EC6MxB,gBD7MwB;EACxB;EACA;AAKA;AAAA;AAAA;AA0FA;AAAA;AAAA;;ACkRA;EDvXF;ICgMI;IACA;IACA;IACA;IAYF,wBDvM0B;ICwM1B,oBDxM0B;ICyM1B,gBDzM0B;IACxB;;;AAKF;EACE;EACA;EC0IF;EACA;EACA;EACA;EACA;EAkCE;EACA;EACA;EACA;EAYF,wBDtL0B;ECuL1B,oBDvL0B;ECwL1B,gBDxL0B;;AC6U1B;EDxVA;IAII;;;ACqWJ;EDzWA;IAOI;;;AAOJ;EACE;EIrBqD;EAEA;EACA;EAEA;;AH0WvD;EDvVE;IAEI;;;AAMN;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;AACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;;AAEA;EACE;;AAIJ;EACE;EACA;;AAEA;EACE;EACA;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;AAQJ;EACE;ECkJF,kBDjJqB;ECkJrB,eDlJqB;ECmJrB,mBDnJqB;ECoJrB,UDpJqB;ECqJrB,WDrJqB;ECgDrB;EACA;EACA;EACA;EACA;EDlDE;EACA;ECmFA;EACA;EACA;EACA;EAYF,wBDjG0B;ECkG1B,oBDlG0B;ECmG1B,gBDnG0B;;AAExB;EACE;;AAEA;EACE;EACA;EACA;ECpGN,WDqGyB;ECpGzB;EDqGM;EACA;;AAEA;EACE;EACA;EItI+C,gBCI7C;EDFgD,aCEhD;EDCqD,QCDrD;;ALwIN;ECcJ;EACA;EACA;EACA;EACA;EDhBM;EACA;;AC4ON;ED/OI;IC6DF;IACA;IACA;IACA;IAYF,wBDvEgC;ICwEhC,oBDxEgC;ICyEhC,gBDzEgC;;;AAG1B;ECeN;EACA;EACA;EACA;EACA;EA4CE;EACA;EACA;EACA;EAEF,wBDlEgC;ECmEhC,oBDnEgC;ECoEhC,gBDpEgC;EACxB;EACA;EACA;;AC4NR;EDjOM;IAOI;IACA;;;AC+NV;EDvOM;IAYI;IACA;IACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAIJ;ECqFN,kBDpF2B;ECqF3B,eDrF2B;ECsF3B,mBDtF2B;ECuF3B,UDvF2B;ECwF3B,WDxF2B;ECb3B;EACA;EACA;EACA;EACA;EDWQ;ECuBN;EACA;EACA;EACA;EAYF,wBDrCgC;ECsChC,oBDtCgC;ECuChC,gBDvCgC;EACxB;;ACuMR;ED5MM;IAOI;;;AAGF;EACE;EACA;;AAIJ;EACE;EACA;;AAGF;EACE;;AAGF;EACE;;AAEF;EACE;;AAIJ;EACE;EACA;;AAEA;EACE;EACA;EACA;EACA;AACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAIF;EACE;EACA;;AAUN;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AASN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EACE;;AASF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;;AAGF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;;AAGF;EACE;;AAGF;EACE;;AAIF;EACE;EACA;;AAGF;EACE;;AAGF;EACE;EACA;;AAEF;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAIF;EACE;;AAGF;EACE;EACA;;ACrFF;EDmFA;IAII;;;AAIJ;EACE;EACA;EACA;;AAGF;EACE;;AAGF;AAAA;EAEE;EACA;;AAGF;EACE;EACA;EACA;EACA;;AC1HF;EDsHA;IAMI;;;ACrGJ;ED+FA;IASI;;;AAIJ;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAEA;EACE;EACA;EACA;;ACvJJ;EDoJE;IAKI;;;AAIJ;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AAIJ;EACE;EACA;;AAGF;EACE;;AAIJ;EACE;;AAGF;EACE;;AAGF;EACE;EACA;;AAGF;EACE;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAIF;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;AAEF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;AC9RA;ED6RF;IAGI;IACA;IACA;IACA;IACA;IACA;IACA","file":"breeze-admin.css"}
 
assets/css/breeze-fonts.css CHANGED
@@ -51,6 +51,4 @@
51
  src: url("../fonts/proximanova-semibolditalic-webfont.woff2") format("woff2"), url("../fonts/proximanova-semibolditalic-webfont.woff") format("woff");
52
  font-weight: 700;
53
  font-style: italic;
54
- }
55
-
56
- /*# sourceMappingURL=breeze-fonts.css.map */
51
  src: url("../fonts/proximanova-semibolditalic-webfont.woff2") format("woff2"), url("../fonts/proximanova-semibolditalic-webfont.woff") format("woff");
52
  font-weight: 700;
53
  font-style: italic;
54
+ }
 
 
assets/css/breeze-fonts.css.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sourceRoot":"","sources":["file:///Users/mihaiirodiu/Local-Lightning/wp56subfolders/app/public/wp-content/plugins/breeze/grunt-assets/files_scss/breeze-fonts.scss"],"names":[],"mappings":"AACA;EACE;EACA;EAEA;EACA;;AAIF;EACE;EACA;EAEA;EACA;;AAIF;EACE;EACA;EAEA;EACA;;AAIF;EACE;EACA;EAEA;EACA;;AAIF;EACE;EACA;EAEA;EACA;;AAIF;EACE;EACA;EAEA;EACA;;AAGF;EACE;EACA;EAEA;EACA;;AAGF;EACE;EACA;EAEA;EACA;;AAIF;EACE;EACA;EAEA;EACA","file":"breeze-fonts.css"}
 
assets/js/breeze-main.js CHANGED
@@ -242,17 +242,27 @@ jQuery( document ).ready(
242
 
243
  var include_inline_css = $( '#include-inline-css' );
244
  var group_css = $( '#group-css' );
 
245
 
246
  if ( $( this ).is( ':checked' ) ) {
247
  font_display_swap.show();
248
- include_inline_css.removeAttr( 'disabled' );
249
- group_css.removeAttr( 'disabled' );
 
 
 
 
250
  } else {
251
  font_display_swap.hide();
252
  font_display.removeAttr( 'checked' );
253
- include_inline_css.removeAttr( 'checked' ).attr( 'disabled', 'disabled' );
254
- group_css.removeAttr( 'checked' ).attr( 'disabled', 'disabled' );
255
-
 
 
 
 
 
256
  }
257
  }
258
  );
@@ -264,14 +274,25 @@ jQuery( document ).ready(
264
 
265
  var include_inline_js = $( '#include-inline-js' );
266
  var group_js = $( '#group-js' );
 
267
 
268
  if ( $( this ).is( ':checked' ) ) {
269
- include_inline_js.removeAttr( 'disabled' );
270
- group_js.removeAttr( 'disabled' );
 
 
 
 
271
  } else {
272
- include_inline_js.removeAttr( 'checked' ).attr( 'disabled', 'disabled' );
273
- group_js.removeAttr( 'checked' ).attr( 'disabled', 'disabled' );
 
 
274
 
 
 
 
 
275
  }
276
  }
277
  );
@@ -1198,9 +1219,9 @@ jQuery( document ).ready(
1198
 
1199
  $( document ).on(
1200
  'change',
1201
- '#inherit-settings',
1202
  function () {
1203
- var is_selected = $( this ).is( ':checked' );
1204
  var is_network = '.br-is-network';
1205
  var is_custom = '.br-is-custom';
1206
  var tab_is = 'inherit';
@@ -1243,7 +1264,7 @@ jQuery( document ).ready(
1243
  complete: function ( jqXHR, textStatus ) {
1244
  $( '#wpcontent' ).find( 'div.br-inherit-wait' ).remove();
1245
 
1246
- if ( true === is_selected ) {
1247
  // custom is enabled
1248
  $( is_network ).removeClass( 'br-show' ).addClass( 'br-hide' );
1249
  $( is_custom ).removeClass( 'br-hide' ).addClass( 'br-show' );
242
 
243
  var include_inline_css = $( '#include-inline-css' );
244
  var group_css = $( '#group-css' );
245
+ var minification_css = $( '#exclude-css' );
246
 
247
  if ( $( this ).is( ':checked' ) ) {
248
  font_display_swap.show();
249
+ //include_inline_css.removeAttr( 'disabled' );
250
+ //group_css.removeAttr( 'disabled' );
251
+
252
+ minification_css.closest('div.br-option-item').removeClass('br-apply-disable');
253
+ group_css.closest('div.br-option-item').removeClass('br-apply-disable');
254
+ include_inline_css.closest('div.br-option-item').removeClass('br-apply-disable');
255
  } else {
256
  font_display_swap.hide();
257
  font_display.removeAttr( 'checked' );
258
+ //include_inline_css.removeAttr( 'checked' ).attr( 'disabled', 'disabled' );
259
+ //group_css.removeAttr( 'checked' ).attr( 'disabled', 'disabled' );
260
+ include_inline_css.prop( 'checked', false );
261
+ group_css.prop( 'checked', false );
262
+
263
+ minification_css.closest('div.br-option-item').addClass('br-apply-disable');
264
+ group_css.closest('div.br-option-item').addClass('br-apply-disable');
265
+ include_inline_css.closest('div.br-option-item').addClass('br-apply-disable');
266
  }
267
  }
268
  );
274
 
275
  var include_inline_js = $( '#include-inline-js' );
276
  var group_js = $( '#group-js' );
277
+ var exclude_js = $( '#exclude-js' );
278
 
279
  if ( $( this ).is( ':checked' ) ) {
280
+ //include_inline_js.removeAttr( 'disabled' );
281
+ //group_js.removeAttr( 'disabled' );
282
+
283
+ exclude_js.closest('div.br-option-item').removeClass('br-apply-disable');
284
+ group_js.closest('div.br-option-item').removeClass('br-apply-disable');
285
+ include_inline_js.closest('div.br-option-item').removeClass('br-apply-disable');
286
  } else {
287
+ //include_inline_js.removeAttr( 'checked' ).attr( 'disabled', 'disabled' );
288
+ //group_js.removeAttr( 'checked' ).attr( 'disabled', 'disabled' );
289
+ include_inline_js.prop( 'checked', false );
290
+ group_js.prop( 'checked', false );
291
 
292
+
293
+ exclude_js.closest('div.br-option-item').addClass('br-apply-disable');
294
+ group_js.closest('div.br-option-item').addClass('br-apply-disable');
295
+ include_inline_js.closest('div.br-option-item').addClass('br-apply-disable');
296
  }
297
  }
298
  );
1219
 
1220
  $( document ).on(
1221
  'change',
1222
+ 'input:radio[name="inherit-settings"]',
1223
  function () {
1224
+ var is_selected = $('input:radio[name="inherit-settings"]:checked').val();
1225
  var is_network = '.br-is-network';
1226
  var is_custom = '.br-is-custom';
1227
  var tab_is = 'inherit';
1264
  complete: function ( jqXHR, textStatus ) {
1265
  $( '#wpcontent' ).find( 'div.br-inherit-wait' ).remove();
1266
 
1267
+ if ( '0' === is_selected ) {
1268
  // custom is enabled
1269
  $( is_network ).removeClass( 'br-show' ).addClass( 'br-hide' );
1270
  $( is_custom ).removeClass( 'br-hide' ).addClass( 'br-show' );
assets/js/breeze-main.min.js CHANGED
@@ -1,4 +1,4 @@
1
  /*! Created by Cloudways
2
- On 08-04-2022 */
3
 
4
- jQuery(document).ready(function(n){var e=n(".breeze-box");n("#breeze-plugins-notice").length&&n(document).on("click tap",".notice-dismiss",function(){n.ajax({type:"POST",url:ajaxurl,data:{action:"compatibility_warning_close",breeze_close_warning:"1"},dataType:"json",success:function(e){},error:function(e,t,a){},complete:function(e,t){}})}),n(document).on("click","#wp-admin-bar-breeze-purge-varnish-group",function(e){e.preventDefault(),a()}),n(document).on("click","#wp-admin-bar-breeze-purge-file-group",function(e){e.preventDefault(),n.ajax({url:ajaxurl,dataType:"json",method:"POST",data:{action:"breeze_purge_file",security:breeze_token_name.breeze_purge_cache},success:function(e){current=location.href;var t=e=parseFloat(e);window.location.href=current+"#breeze-msg=success-cleancache&file="+e,div=0<t?'<div id="message" class="notice notice-success is-dismissible breeze-notice" style="margin-top:10px; margin-bottom:10px;padding: 10px;margin-left: 0;"><p><strong>Internal cache has been purged: '+t+'Kb cleaned</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>':'<div id="message" class="notice notice-success is-dismissible breeze-notice" style="margin-top:10px; margin-bottom:10px;padding: 10px;margin-left: 0;"><p><strong>Internal cache has been purged.</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>',n("#wpbody #wpbody-content").prepend(div)}})});var t=!0;function a(){n.ajax({url:ajaxurl,dataType:"json",method:"POST",data:{action:"breeze_purge_varnish",is_network:n("body").hasClass("network-admin"),security:breeze_token_name.breeze_purge_varnish},success:function(e){current=location.href,e.clear?(n("#wpbody #wpbody-content").prepend('<div id="message" class="notice notice-success is-dismissible breeze-notice" style="margin-top:10px; margin-bottom:10px;padding: 10px;margin-left: 0;"><p><strong>Varnish Cache has been purged.</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>'),setTimeout(function(){t=!0},2e3)):(window.location.href=current+"breeze-msg=purge-fail",t=!0,location.reload())}})}n(".breeze-box").on("click","#purge-varnish-button",function(e){e.preventDefault(),!0===t&&(t=!1,n(this).addClass("br-is-disabled"),a())});var i,s,r,o=location.href,c=parseFloat((i="file",s=(s=o)||window.location.href,i=i.replace(/[\[\]]/g,"\\$&"),(s=new RegExp("[?&]"+i+"(=([^&#]*)|&|#|$)").exec(s))?s[2]?decodeURIComponent(s[2].replace(/\+/g," ")):"":null));n(window).on("load",function(){var e,t;/wp-admin/i.test(o)&&(e="",0<o.indexOf("msg=success-cleancache")&&!isNaN(c)&&(e=0<c?'<div id="message" class="notice notice-success is-dismissible breeze-notice" style="margin-top:10px; margin-bottom:10px;padding: 10px;"><p><strong>Internal cache has been purged: '+c+'Kb cleaned</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>':'<div id="message" class="notice notice-success is-dismissible breeze-notice" style="margin-top:10px; margin-bottom:10px;padding: 10px;"><p><strong>Internal cache has been purged.</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>',n("#wpbody .wrap h1").after(e),t=o.split("breeze-msg"),setTimeout(function(){window.location=t[0]},2e3)))}),n("#breeze-hide-install-msg").unbind("click").click(function(){n(this).closest("div.notice").fadeOut()}),-1!==(r=location.search).indexOf("breeze_purge=1")&&-1!==r.indexOf("_wpnonce")&&((r=new URLSearchParams(location.search)).delete("breeze_purge"),r.delete("_wpnonce"),history.replaceState(null,"","?"+r+location.hash)),e.on("change","#bz-lazy-load",function(){var e=n("#native-lazy-option"),t=n("#native-lazy-option-iframe");!0===n(this).is(":checked")?(e.show(),t.show()):(e.hide(),t.hide(),n("#bz-lazy-load-nat").attr("checked",!1),n("#bz-lazy-load-iframe").attr("checked",!1))}),e.on("change","#minification-css",function(){var e=n("#font-display-swap"),t=n("#font-display"),a=n("#include-inline-css"),i=n("#group-css");n(this).is(":checked")?(e.show(),a.removeAttr("disabled"),i.removeAttr("disabled")):(e.hide(),t.removeAttr("checked"),a.removeAttr("checked").attr("disabled","disabled"),i.removeAttr("checked").attr("disabled","disabled"))}),e.on("change","#minification-js",function(){var e=n("#include-inline-js"),t=n("#group-js");n(this).is(":checked")?(e.removeAttr("disabled"),t.removeAttr("disabled")):(e.removeAttr("checked").attr("disabled","disabled"),t.removeAttr("checked").attr("disabled","disabled"))}),e.on("change","#breeze-delay-all-js",function(){var e=n("#breeze-delay-js-scripts-div-all"),t=n("#enable-js-delay");n(this).is(":checked")?(e.show(),n('input[name="enable-js-delay"]').prop("checked",!1),n("#breeze-delay-js-scripts-div").hide(),t.attr("disabled","disabled")):(e.hide(),t.removeAttr("disabled"))}),e.on("change","#enable-js-delay",function(){var e=n("#breeze-delay-js-scripts-div"),t=n("#breeze-delay-all-js");n(this).is(":checked")?(e.show(),n('input[name="breeze-delay-all-js"]').prop("checked",!1),n("#breeze-delay-js-scripts-div-all").hide(),t.attr("disabled","disabled")):(e.hide(),t.removeAttr("disabled"))})});var $valid_json=!1;jQuery(document).ready(function(r){var e=r(".breeze-box");function o(){e.on("click","span.item-remove",function(){var e=r(this).closest(".breeze-input-group");e.fadeOut(300,function(){e.remove(),l()})})}function c(){r(".breeze-list-url").length&&r(".breeze-list-url").sortable({handle:r("span.sort-handle"),stop:l})}function d(){r(".sort-handle span").unbind("click").click(function(e){var t=r(this).parents(".breeze-input-group");r(this).hasClass("moveUp")?t.insertBefore(t.prev()):t.insertAfter(t.next()),l()})}function l(){var e=r(".breeze-list-url");e.find(".breeze-input-group").find(".sort-handle").find("span").removeClass("blur"),e.find(".breeze-input-group:first-child").find(".moveUp").addClass("blur"),e.find(".breeze-input-group:last-child").find(".moveDown").addClass("blur")}r('input[name="all_control"]').click(function(){1==r(this).is(":checked")?r(".clean-data").prop("checked",!0):r(".clean-data").prop("checked",!1)}),r(".clean-data").click(function(){0==r(this).is(":checked")&&r('input[name="all_control"]').prop("checked",!1)}),o(),c(),d(),l(),e.on("keyup change blur",".breeze-input-url",function(){var e=r(this).val();""!==e&&(!0==!!/^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/.test(e)?r(this).removeClass("is-invalid-url"):r(this).addClass("is-invalid-url"))}),e.on("click","button.add-url",function(){var e=-1<r(this).attr("id").indexOf("defer"),t=-1<r(this).attr("id").indexOf("preload-fonts"),a=r(this).closest("div.br-option").find(".breeze-list-url"),i="",n=a.find(".breeze-input-group"),s=!1;if(n.each(function(){var e=r(this).find(".breeze-input-url");if(""===e.val().trim())return e.focus(),!(s=!0)}),s)return!1;i+='<div class="breeze-input-group">',i+=' <input type="text" size="98"',i+='class="breeze-input-url"',i+=t?'name="breeze-preload-font[]"':e?'name="defer-js[]"':'name="move-to-footer-js[]"',i+='placeholder="Enter URL..."',i+='value="" />',i+=' <span class="sort-handle">',i+=' <span class="dashicons dashicons-arrow-up moveUp"></span>',i+=' <span class="dashicons dashicons-arrow-down moveDown"></span>',i+=" </span>",i+=' <span class="dashicons dashicons-no item-remove" title="Remove"></span>',a.append(i+="</div>"),o(),c(),d(),l()}),r("#breeze-tabs .nav-tab").click(function(e){e.preventDefault(),r("#breeze-tabs .nav-tab").removeClass("active"),r(e.target).addClass("active"),id_tab=r(this).data("tab-id"),r("#tab-"+id_tab).addClass("active"),r("#breeze-tabs-content .tab-pane").removeClass("active"),r("#tab-content-"+id_tab).addClass("active"),document.cookie="breeze_active_tab="+id_tab,"faq"===id_tab?(r("#breeze-and-cloudways").hide(),r("#faq-content").length&&r("#faq-content").accordion({collapsible:!0,animate:200,header:".faq-question",heightStyle:"content"})):r("#breeze-and-cloudways").show()}),active_tab=function(e){for(var t=e+"=",a=document.cookie.split(";"),i=0;i<a.length;i++){for(var n=a[i];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(t))return n.substring(t.length,n.length)}return""}("breeze_active_tab"),active_tab=active_tab||"basic","import_export"===active_tab&&(active_tab="basic"),0===r("#tab-"+active_tab).length?(firstTab=r("#breeze-tabs").find("a:first-child"),firstTab.length&&(tabType=firstTab.attr("id").replace("tab-",""),firstTab.addClass("active"),r("#tab-content-"+tabType).addClass("active"))):(r("#tab-"+active_tab).addClass("active"),r("#tab-content-"+active_tab).addClass("active")),"faq"===active_tab?(r("#breeze-and-cloudways").hide(),r("#faq-content").length&&r("#faq-content").accordion({collapsible:!0,animate:200,header:".faq-question",heightStyle:"content"})):r("#breeze-and-cloudways").show();var t,a=["faq"],i=!0,n=!1,s=r("#breeze-inherit-settings-toggle");function b(e,t){var a=e.split("?");if(2<=a.length){for(var i=encodeURIComponent(t)+"=",n=a[1].split(/[&;]/g),s=n.length;0<s--;)-1!==n[s].lastIndexOf(i,0)&&n.splice(s,1);return a[0]+(0<n.length?"?"+n.join("&"):"")}return e}s.length&&(r("input",s).on("change",function(){var t="1"==r(this).val();r("#breeze-tabs").toggleClass("tabs-hidden",t),r("#breeze-tabs-content").toggleClass("tabs-hidden",t),r("#breeze-tabs .nav-tab").each(function(){var e=r(this).data("tab-id");-1===r.inArray(e,a)&&(r(this).toggleClass("inactive",t),r("#breeze-tabs-content #tab-content-"+e).toggleClass("inactive",t))}),n=!r(this).parents(".radio-field").hasClass("active")}),r("#breeze-tabs-content form").on("submit",function(e){var t=r(this);i&&n&&(e.preventDefault(),r.ajax({url:window.location,method:"post",data:s.serializeArray(),beforeSend:function(){s.addClass("loading")},complete:function(){s.removeClass("loading"),n=!1,t.submit()},success:function(){r("input:checked",s).parents(".radio-field").addClass("active").siblings().removeClass("active")}}))})),r("#breeze-database-optimize").on("click",function(e){i=!1}),r("#tab-content-database .submit input").on("click",function(e){r("#tab-content-database input[type=checkbox]").attr("checked",!1)}),window.history&&"function"==typeof window.history.pushState&&(t=b(window.location.href,"save-settings"),t=b(t,"database-cleanup"),window.history.pushState(null,null,t)),e.on("click tap","#breeze_export_settings",function(){$network=r("#breeze-level").val(),window.location=ajaxurl+"?action=breeze_export_json&network_level="+$network}),r("#breeze_import_btn").attr("disabled","disabled"),e.on("change","#breeze_import_settings",function(){var e=this.files[0],t=r("#file-selected"),a=r("#file-error"),i=r("#breeze_import_btn");t.html(e.name),"application/json"!==e.type?($valid_json=!1,t.removeClass("file_green file_red").addClass("file_red"),a.html("File must be JSON"),i.attr("disabled","disabled")):($valid_json=!0,t.removeClass("file_green file_red").addClass("file_green"),a.html(""),i.removeAttr("disabled")),r(".br-file-text").remove()}),e.on("click tap","#breeze_import_btn",function(){var e,t,a,i;!0===$valid_json&&(network=r("#breeze-level").val(),e=r("#breeze_import_settings").get(0).files[0],(t=new FormData).append("action","breeze_import_json"),t.append("network_level",network),t.append("breeze_import_file",e),a=r("#file-selected"),i=r("#file-error"),a.removeClass("file_green file_red").addClass("file_green"),a.html('<div class="br-loader-spinner import_settings"><div></div><div></div><div></div><div></div></div>'),r.ajax({type:"POST",url:ajaxurl,data:t,processData:!1,contentType:!1,enctype:"multipart/form-data",mimeType:"multipart/form-data",cache:!1,dataType:"json",success:function(e){1==e.success?(a.removeClass("file_green file_red").addClass("file_green"),a.html(e.data),i.html(""),alert(e.data),window.location.reload(!0)):(a.removeClass("file_green file_red"),a.html(""),i.html(e.data[0].message))},error:function(e,t,a){},complete:function(e,t){}}))})}),function(s){var n=[];setTimeout(function(){var e=s("#message-clear-cache-top");e.length&&(e.prependTo("#wpbody-content"),e.show())},1e3),s(window).on("resize",function(){632<=s(this).height()&&s(".br-link").removeAttr("style")});function r(e){for(var t=e+"=",a=document.cookie.split(";"),i=0;i<a.length;i++){for(var n=a[i];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(t))return n.substring(t.length,n.length)}return""}s(".breeze-box .br-link").on("click tap","a",function(e){e.preventDefault();var a=this.dataset.tabId,t=s(".br-options");o=(o=r("breeze_active_tab"))||"basic",s(".br-link").removeClass("br-active"),s(".br-link").each(function(e,t){var a=t.dataset.breezeLink,i=s(this).find("img"),t=i.get(0).dataset.path;i.attr("src",t+a+".png")});var i=s(this).closest(".br-link");i.addClass("br-active");e=i.find("img"),i=e.get(0).dataset.path;e.attr("src",i+a+"-active.png"),t.html('<div class="br-loader-spinner loading_tab"><div></div><div></div><div></div><div></div></div>'),!0===s(".br-mobile-menu").is(":visible")&&s(".br-link").fadeOut(),s.ajax({type:"GET",url:ajaxurl,data:{action:"breeze_load_options_tab",request_tab:a,"is-network":s("body").hasClass("network-admin")},contentType:"text/html; charset=UTF-8",dataType:"html",success:function(e){t.html(e)},error:function(e,t,a){},complete:function(e,t){!function(){var t=s(".breeze-per");t.length&&(t.empty(),t.append("<p>Re-checking permissions, please wait...</p>"));s.ajax({type:"GET",url:ajaxurl,data:{action:"breeze_file_permission_check","is-network":s("body").hasClass("network-admin")},dataType:"html",success:function(e){""===e?t.remove():t.length?(s(e).insertBefore(t),t.remove()):s("#wpbody-content").prepend(e)},error:function(e,t,a){},complete:function(e,t){}})}(),document.cookie="breeze_active_tab="+a,"faq"===a&&s("#faq-content").length&&s("#faq-content").accordion({collapsible:!0,animate:200,header:".faq-question",heightStyle:"content"}),n=[]}})});var e,o=r("breeze_active_tab");s("#tab-basic").closest("div.br-link").hasClass("br-hide")?s("#tab-faq").trigger("click"):void 0!==o&&""!==o?(e=s("#tab-"+(o="import_export"===o?"basic":o))).length&&e.trigger("click"):(t=s("#tab-basic")).length&&t.trigger("click");var t=s(".breeze-box");t.on("click",".br-db-item",function(){var e=this.dataset.section;if(s(this).hasClass("br-db-selected")){if(s(this).removeClass("br-db-selected"),n.length){for(var t=[],a=0;a<n.length;a++)e!==n[a]&&t.push(n[a]);n=t}}else s(this).addClass("br-db-selected"),n.push(e);var i=s("#optimize-selected-services");n.length?i.show():i.hide()}),t.on("click","#optimize-selected-services",function(e){var t=!1;!1===(t=n.length?!0:t)?alert("Please select an options first"):confirm("Proceed to optimize the selected items?")&&s.ajax({type:"POST",url:ajaxurl,data:{action:"breeze_purge_database",action_type:"custom",services:JSON.stringify(Object.assign({},n)),security:breeze_token_name.breeze_purge_database,"is-network":s("body").hasClass("network-admin")},dataType:"JSON",success:function(e){s("div.br-db-item").each(function(e,t){var a=t.dataset.section;-1!==s.inArray(a,n)&&(s(t).find("h3").find("span").removeClass("br-has").html("0"),s(t).removeClass("br-db-selected"))}),alert("Optimization process finished"),s("#tab-database").trigger("click")},error:function(e,t,a){},complete:function(e,t){n=[]}})}),t.on("click",".do_clean_action",function(e){e.preventDefault();var e=this.dataset.section,t=s(this).closest("div.br-db-item"),a=t.get(0).dataset.sectionTitle;confirm("Confirm the action to clean "+a)&&(s(this).addClass("opac"),s.ajax({type:"POST",url:ajaxurl,data:{action:"breeze_purge_database",action_type:e,security:breeze_token_name.breeze_purge_database,"is-network":s("body").hasClass("network-admin")},dataType:"JSON",success:function(e){t.find("h3").find("span").removeClass("br-has").html("0"),alert("Data for "+a+" has been cleaned")},error:function(e,t,a){},complete:function(e,t){}}))}),t.on("change","#br-clean-all",function(e){var t=s(this).is(":checked"),a=s("#br-clean-all-cta");!0===t?a.removeAttr("disabled"):a.attr("disabled","disabled")}),t.on("click","#br-clean-all-cta",function(e){!1===s(this).is(":disabled")&&confirm("Proceed to clean all trashed posts and pages?")&&s.ajax({type:"POST",url:ajaxurl,data:{action:"breeze_purge_database",action_type:"all",security:breeze_token_name.breeze_purge_database,"is-network":s("body").hasClass("network-admin")},dataType:"JSON",success:function(e){s(".br-clean-label").find("span").removeClass("br-has").html("( 0 )"),s("div.br-db-item").each(function(e,t){s(t).find("h3").find("span").removeClass("br-has").html("0")});var t=s("#br-clean-all");t.is(":checked")&&t.trigger("click"),alert("Clean all process finished")},error:function(e,t,a){},complete:function(e,t){}})}),t.on("click",".br-mobile-menu",function(){s(".br-link").fadeToggle()}),t.on("click",".br-submit-save",function(e){e.preventDefault();var e=s(this).closest("form"),t=e.get(0).dataset.section,e={action:"save_settings_tab_"+t,security:breeze_token_name.breeze_save_options,"form-data":e.serialize(),"is-network":s("body").hasClass("network-admin")};s(".br-options").html('<div class="br-loader-spinner saving_settings"><div></div><div></div><div></div><div></div></div>'),s.ajax({type:"POST",url:ajaxurl,data:e,dataType:"JSON",success:function(e){s("#tab-"+t).trigger("click")},error:function(e,t,a){},complete:function(e,t){}})}),s(document).on("change","#inherit-settings",function(){var a=s(this).is(":checked"),i=".br-is-network",n=".br-is-custom",e=s(this).closest("div.change-settings-use").find("input#breeze_inherit_settings_nonce").val();s(".br-overlay-disable").addClass("br-hide");e={action:"save_settings_tab_inherit","is-selected":a,security:e,"is-network":s("body").hasClass("network-admin")};s("<div/>",{class:"br-inherit-wait",html:'<div class="br-loader-spinner switch-to-settings"><div></div><div></div><div></div><div></div></div>'}).appendTo(s("#wpcontent")),s.ajax({type:"POST",url:ajaxurl,data:e,dataType:"JSON",success:function(e){},error:function(e,t,a){},complete:function(e,t){s("#wpcontent").find("div.br-inherit-wait").remove(),!0===a?(s(i).removeClass("br-show").addClass("br-hide"),s(n).removeClass("br-hide").addClass("br-show"),s(".br-link").removeClass("br-hide"),s("#tab-basic").trigger("click")):(s(n).removeClass("br-show").addClass("br-hide"),s(i).removeClass("br-hide").addClass("br-show"),s(".br-link").each(function(e,t){"faq"!==t.dataset.breezeLink&&s(t).addClass("br-hide")}),s("#tab-faq").trigger("click"))}})}),s(document).on("click",".notice-dismiss",function(){var e=s(this).closest("div.notice");e.hasClass("breeze-notice")&&e.fadeOut("fast").remove()})}(jQuery);
1
  /*! Created by Cloudways
2
+ On 02-05-2022 */
3
 
4
+ jQuery(document).ready(function(n){var e=n(".breeze-box");n("#breeze-plugins-notice").length&&n(document).on("click tap",".notice-dismiss",function(){n.ajax({type:"POST",url:ajaxurl,data:{action:"compatibility_warning_close",breeze_close_warning:"1"},dataType:"json",success:function(e){},error:function(e,t,a){},complete:function(e,t){}})}),n(document).on("click","#wp-admin-bar-breeze-purge-varnish-group",function(e){e.preventDefault(),a()}),n(document).on("click","#wp-admin-bar-breeze-purge-file-group",function(e){e.preventDefault(),n.ajax({url:ajaxurl,dataType:"json",method:"POST",data:{action:"breeze_purge_file",security:breeze_token_name.breeze_purge_cache},success:function(e){current=location.href;var t=e=parseFloat(e);window.location.href=current+"#breeze-msg=success-cleancache&file="+e,div=0<t?'<div id="message" class="notice notice-success is-dismissible breeze-notice" style="margin-top:10px; margin-bottom:10px;padding: 10px;margin-left: 0;"><p><strong>Internal cache has been purged: '+t+'Kb cleaned</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>':'<div id="message" class="notice notice-success is-dismissible breeze-notice" style="margin-top:10px; margin-bottom:10px;padding: 10px;margin-left: 0;"><p><strong>Internal cache has been purged.</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>',n("#wpbody #wpbody-content").prepend(div)}})});var t=!0;function a(){n.ajax({url:ajaxurl,dataType:"json",method:"POST",data:{action:"breeze_purge_varnish",is_network:n("body").hasClass("network-admin"),security:breeze_token_name.breeze_purge_varnish},success:function(e){current=location.href,e.clear?(n("#wpbody #wpbody-content").prepend('<div id="message" class="notice notice-success is-dismissible breeze-notice" style="margin-top:10px; margin-bottom:10px;padding: 10px;margin-left: 0;"><p><strong>Varnish Cache has been purged.</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>'),setTimeout(function(){t=!0},2e3)):(window.location.href=current+"breeze-msg=purge-fail",t=!0,location.reload())}})}n(".breeze-box").on("click","#purge-varnish-button",function(e){e.preventDefault(),!0===t&&(t=!1,n(this).addClass("br-is-disabled"),a())});var i,s,r,o=location.href,c=parseFloat((i="file",s=(s=o)||window.location.href,i=i.replace(/[\[\]]/g,"\\$&"),(s=new RegExp("[?&]"+i+"(=([^&#]*)|&|#|$)").exec(s))?s[2]?decodeURIComponent(s[2].replace(/\+/g," ")):"":null));n(window).on("load",function(){var e,t;/wp-admin/i.test(o)&&(e="",0<o.indexOf("msg=success-cleancache")&&!isNaN(c)&&(e=0<c?'<div id="message" class="notice notice-success is-dismissible breeze-notice" style="margin-top:10px; margin-bottom:10px;padding: 10px;"><p><strong>Internal cache has been purged: '+c+'Kb cleaned</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>':'<div id="message" class="notice notice-success is-dismissible breeze-notice" style="margin-top:10px; margin-bottom:10px;padding: 10px;"><p><strong>Internal cache has been purged.</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>',n("#wpbody .wrap h1").after(e),t=o.split("breeze-msg"),setTimeout(function(){window.location=t[0]},2e3)))}),n("#breeze-hide-install-msg").unbind("click").click(function(){n(this).closest("div.notice").fadeOut()}),-1!==(r=location.search).indexOf("breeze_purge=1")&&-1!==r.indexOf("_wpnonce")&&((r=new URLSearchParams(location.search)).delete("breeze_purge"),r.delete("_wpnonce"),history.replaceState(null,"","?"+r+location.hash)),e.on("change","#bz-lazy-load",function(){var e=n("#native-lazy-option"),t=n("#native-lazy-option-iframe");!0===n(this).is(":checked")?(e.show(),t.show()):(e.hide(),t.hide(),n("#bz-lazy-load-nat").attr("checked",!1),n("#bz-lazy-load-iframe").attr("checked",!1))}),e.on("change","#minification-css",function(){var e=n("#font-display-swap"),t=n("#font-display"),a=n("#include-inline-css"),i=n("#group-css"),s=n("#exclude-css");n(this).is(":checked")?(e.show(),s.closest("div.br-option-item").removeClass("br-apply-disable"),i.closest("div.br-option-item").removeClass("br-apply-disable"),a.closest("div.br-option-item").removeClass("br-apply-disable")):(e.hide(),t.removeAttr("checked"),a.prop("checked",!1),i.prop("checked",!1),s.closest("div.br-option-item").addClass("br-apply-disable"),i.closest("div.br-option-item").addClass("br-apply-disable"),a.closest("div.br-option-item").addClass("br-apply-disable"))}),e.on("change","#minification-js",function(){var e=n("#include-inline-js"),t=n("#group-js"),a=n("#exclude-js");n(this).is(":checked")?(a.closest("div.br-option-item").removeClass("br-apply-disable"),t.closest("div.br-option-item").removeClass("br-apply-disable"),e.closest("div.br-option-item").removeClass("br-apply-disable")):(e.prop("checked",!1),t.prop("checked",!1),a.closest("div.br-option-item").addClass("br-apply-disable"),t.closest("div.br-option-item").addClass("br-apply-disable"),e.closest("div.br-option-item").addClass("br-apply-disable"))}),e.on("change","#breeze-delay-all-js",function(){var e=n("#breeze-delay-js-scripts-div-all"),t=n("#enable-js-delay");n(this).is(":checked")?(e.show(),n('input[name="enable-js-delay"]').prop("checked",!1),n("#breeze-delay-js-scripts-div").hide(),t.attr("disabled","disabled")):(e.hide(),t.removeAttr("disabled"))}),e.on("change","#enable-js-delay",function(){var e=n("#breeze-delay-js-scripts-div"),t=n("#breeze-delay-all-js");n(this).is(":checked")?(e.show(),n('input[name="breeze-delay-all-js"]').prop("checked",!1),n("#breeze-delay-js-scripts-div-all").hide(),t.attr("disabled","disabled")):(e.hide(),t.removeAttr("disabled"))})});var $valid_json=!1;jQuery(document).ready(function(r){var e=r(".breeze-box");function o(){e.on("click","span.item-remove",function(){var e=r(this).closest(".breeze-input-group");e.fadeOut(300,function(){e.remove(),d()})})}function c(){r(".breeze-list-url").length&&r(".breeze-list-url").sortable({handle:r("span.sort-handle"),stop:d})}function l(){r(".sort-handle span").unbind("click").click(function(e){var t=r(this).parents(".breeze-input-group");r(this).hasClass("moveUp")?t.insertBefore(t.prev()):t.insertAfter(t.next()),d()})}function d(){var e=r(".breeze-list-url");e.find(".breeze-input-group").find(".sort-handle").find("span").removeClass("blur"),e.find(".breeze-input-group:first-child").find(".moveUp").addClass("blur"),e.find(".breeze-input-group:last-child").find(".moveDown").addClass("blur")}r('input[name="all_control"]').click(function(){1==r(this).is(":checked")?r(".clean-data").prop("checked",!0):r(".clean-data").prop("checked",!1)}),r(".clean-data").click(function(){0==r(this).is(":checked")&&r('input[name="all_control"]').prop("checked",!1)}),o(),c(),l(),d(),e.on("keyup change blur",".breeze-input-url",function(){var e=r(this).val();""!==e&&(!0==!!/^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/.test(e)?r(this).removeClass("is-invalid-url"):r(this).addClass("is-invalid-url"))}),e.on("click","button.add-url",function(){var e=-1<r(this).attr("id").indexOf("defer"),t=-1<r(this).attr("id").indexOf("preload-fonts"),a=r(this).closest("div.br-option").find(".breeze-list-url"),i="",s=a.find(".breeze-input-group"),n=!1;if(s.each(function(){var e=r(this).find(".breeze-input-url");if(""===e.val().trim())return e.focus(),!(n=!0)}),n)return!1;i+='<div class="breeze-input-group">',i+=' <input type="text" size="98"',i+='class="breeze-input-url"',i+=t?'name="breeze-preload-font[]"':e?'name="defer-js[]"':'name="move-to-footer-js[]"',i+='placeholder="Enter URL..."',i+='value="" />',i+=' <span class="sort-handle">',i+=' <span class="dashicons dashicons-arrow-up moveUp"></span>',i+=' <span class="dashicons dashicons-arrow-down moveDown"></span>',i+=" </span>",i+=' <span class="dashicons dashicons-no item-remove" title="Remove"></span>',a.append(i+="</div>"),o(),c(),l(),d()}),r("#breeze-tabs .nav-tab").click(function(e){e.preventDefault(),r("#breeze-tabs .nav-tab").removeClass("active"),r(e.target).addClass("active"),id_tab=r(this).data("tab-id"),r("#tab-"+id_tab).addClass("active"),r("#breeze-tabs-content .tab-pane").removeClass("active"),r("#tab-content-"+id_tab).addClass("active"),document.cookie="breeze_active_tab="+id_tab,"faq"===id_tab?(r("#breeze-and-cloudways").hide(),r("#faq-content").length&&r("#faq-content").accordion({collapsible:!0,animate:200,header:".faq-question",heightStyle:"content"})):r("#breeze-and-cloudways").show()}),active_tab=function(e){for(var t=e+"=",a=document.cookie.split(";"),i=0;i<a.length;i++){for(var s=a[i];" "==s.charAt(0);)s=s.substring(1);if(0==s.indexOf(t))return s.substring(t.length,s.length)}return""}("breeze_active_tab"),active_tab=active_tab||"basic","import_export"===active_tab&&(active_tab="basic"),0===r("#tab-"+active_tab).length?(firstTab=r("#breeze-tabs").find("a:first-child"),firstTab.length&&(tabType=firstTab.attr("id").replace("tab-",""),firstTab.addClass("active"),r("#tab-content-"+tabType).addClass("active"))):(r("#tab-"+active_tab).addClass("active"),r("#tab-content-"+active_tab).addClass("active")),"faq"===active_tab?(r("#breeze-and-cloudways").hide(),r("#faq-content").length&&r("#faq-content").accordion({collapsible:!0,animate:200,header:".faq-question",heightStyle:"content"})):r("#breeze-and-cloudways").show();var t,a=["faq"],i=!0,s=!1,n=r("#breeze-inherit-settings-toggle");function b(e,t){var a=e.split("?");if(2<=a.length){for(var i=encodeURIComponent(t)+"=",s=a[1].split(/[&;]/g),n=s.length;0<n--;)-1!==s[n].lastIndexOf(i,0)&&s.splice(n,1);return a[0]+(0<s.length?"?"+s.join("&"):"")}return e}n.length&&(r("input",n).on("change",function(){var t="1"==r(this).val();r("#breeze-tabs").toggleClass("tabs-hidden",t),r("#breeze-tabs-content").toggleClass("tabs-hidden",t),r("#breeze-tabs .nav-tab").each(function(){var e=r(this).data("tab-id");-1===r.inArray(e,a)&&(r(this).toggleClass("inactive",t),r("#breeze-tabs-content #tab-content-"+e).toggleClass("inactive",t))}),s=!r(this).parents(".radio-field").hasClass("active")}),r("#breeze-tabs-content form").on("submit",function(e){var t=r(this);i&&s&&(e.preventDefault(),r.ajax({url:window.location,method:"post",data:n.serializeArray(),beforeSend:function(){n.addClass("loading")},complete:function(){n.removeClass("loading"),s=!1,t.submit()},success:function(){r("input:checked",n).parents(".radio-field").addClass("active").siblings().removeClass("active")}}))})),r("#breeze-database-optimize").on("click",function(e){i=!1}),r("#tab-content-database .submit input").on("click",function(e){r("#tab-content-database input[type=checkbox]").attr("checked",!1)}),window.history&&"function"==typeof window.history.pushState&&(t=b(window.location.href,"save-settings"),t=b(t,"database-cleanup"),window.history.pushState(null,null,t)),e.on("click tap","#breeze_export_settings",function(){$network=r("#breeze-level").val(),window.location=ajaxurl+"?action=breeze_export_json&network_level="+$network}),r("#breeze_import_btn").attr("disabled","disabled"),e.on("change","#breeze_import_settings",function(){var e=this.files[0],t=r("#file-selected"),a=r("#file-error"),i=r("#breeze_import_btn");t.html(e.name),"application/json"!==e.type?($valid_json=!1,t.removeClass("file_green file_red").addClass("file_red"),a.html("File must be JSON"),i.attr("disabled","disabled")):($valid_json=!0,t.removeClass("file_green file_red").addClass("file_green"),a.html(""),i.removeAttr("disabled")),r(".br-file-text").remove()}),e.on("click tap","#breeze_import_btn",function(){var e,t,a,i;!0===$valid_json&&(network=r("#breeze-level").val(),e=r("#breeze_import_settings").get(0).files[0],(t=new FormData).append("action","breeze_import_json"),t.append("network_level",network),t.append("breeze_import_file",e),a=r("#file-selected"),i=r("#file-error"),a.removeClass("file_green file_red").addClass("file_green"),a.html('<div class="br-loader-spinner import_settings"><div></div><div></div><div></div><div></div></div>'),r.ajax({type:"POST",url:ajaxurl,data:t,processData:!1,contentType:!1,enctype:"multipart/form-data",mimeType:"multipart/form-data",cache:!1,dataType:"json",success:function(e){1==e.success?(a.removeClass("file_green file_red").addClass("file_green"),a.html(e.data),i.html(""),alert(e.data),window.location.reload(!0)):(a.removeClass("file_green file_red"),a.html(""),i.html(e.data[0].message))},error:function(e,t,a){},complete:function(e,t){}}))})}),function(n){var s=[];setTimeout(function(){var e=n("#message-clear-cache-top");e.length&&(e.prependTo("#wpbody-content"),e.show())},1e3),n(window).on("resize",function(){632<=n(this).height()&&n(".br-link").removeAttr("style")});function r(e){for(var t=e+"=",a=document.cookie.split(";"),i=0;i<a.length;i++){for(var s=a[i];" "==s.charAt(0);)s=s.substring(1);if(0==s.indexOf(t))return s.substring(t.length,s.length)}return""}n(".breeze-box .br-link").on("click tap","a",function(e){e.preventDefault();var a=this.dataset.tabId,t=n(".br-options");o=(o=r("breeze_active_tab"))||"basic",n(".br-link").removeClass("br-active"),n(".br-link").each(function(e,t){var a=t.dataset.breezeLink,i=n(this).find("img"),t=i.get(0).dataset.path;i.attr("src",t+a+".png")});var i=n(this).closest(".br-link");i.addClass("br-active");e=i.find("img"),i=e.get(0).dataset.path;e.attr("src",i+a+"-active.png"),t.html('<div class="br-loader-spinner loading_tab"><div></div><div></div><div></div><div></div></div>'),!0===n(".br-mobile-menu").is(":visible")&&n(".br-link").fadeOut(),n.ajax({type:"GET",url:ajaxurl,data:{action:"breeze_load_options_tab",request_tab:a,"is-network":n("body").hasClass("network-admin")},contentType:"text/html; charset=UTF-8",dataType:"html",success:function(e){t.html(e)},error:function(e,t,a){},complete:function(e,t){!function(){var t=n(".breeze-per");t.length&&(t.empty(),t.append("<p>Re-checking permissions, please wait...</p>"));n.ajax({type:"GET",url:ajaxurl,data:{action:"breeze_file_permission_check","is-network":n("body").hasClass("network-admin")},dataType:"html",success:function(e){""===e?t.remove():t.length?(n(e).insertBefore(t),t.remove()):n("#wpbody-content").prepend(e)},error:function(e,t,a){},complete:function(e,t){}})}(),document.cookie="breeze_active_tab="+a,"faq"===a&&n("#faq-content").length&&n("#faq-content").accordion({collapsible:!0,animate:200,header:".faq-question",heightStyle:"content"}),s=[]}})});var e,o=r("breeze_active_tab");n("#tab-basic").closest("div.br-link").hasClass("br-hide")?n("#tab-faq").trigger("click"):void 0!==o&&""!==o?(e=n("#tab-"+(o="import_export"===o?"basic":o))).length&&e.trigger("click"):(t=n("#tab-basic")).length&&t.trigger("click");var t=n(".breeze-box");t.on("click",".br-db-item",function(){var e=this.dataset.section;if(n(this).hasClass("br-db-selected")){if(n(this).removeClass("br-db-selected"),s.length){for(var t=[],a=0;a<s.length;a++)e!==s[a]&&t.push(s[a]);s=t}}else n(this).addClass("br-db-selected"),s.push(e);var i=n("#optimize-selected-services");s.length?i.show():i.hide()}),t.on("click","#optimize-selected-services",function(e){var t=!1;!1===(t=s.length?!0:t)?alert("Please select an options first"):confirm("Proceed to optimize the selected items?")&&n.ajax({type:"POST",url:ajaxurl,data:{action:"breeze_purge_database",action_type:"custom",services:JSON.stringify(Object.assign({},s)),security:breeze_token_name.breeze_purge_database,"is-network":n("body").hasClass("network-admin")},dataType:"JSON",success:function(e){n("div.br-db-item").each(function(e,t){var a=t.dataset.section;-1!==n.inArray(a,s)&&(n(t).find("h3").find("span").removeClass("br-has").html("0"),n(t).removeClass("br-db-selected"))}),alert("Optimization process finished"),n("#tab-database").trigger("click")},error:function(e,t,a){},complete:function(e,t){s=[]}})}),t.on("click",".do_clean_action",function(e){e.preventDefault();var e=this.dataset.section,t=n(this).closest("div.br-db-item"),a=t.get(0).dataset.sectionTitle;confirm("Confirm the action to clean "+a)&&(n(this).addClass("opac"),n.ajax({type:"POST",url:ajaxurl,data:{action:"breeze_purge_database",action_type:e,security:breeze_token_name.breeze_purge_database,"is-network":n("body").hasClass("network-admin")},dataType:"JSON",success:function(e){t.find("h3").find("span").removeClass("br-has").html("0"),alert("Data for "+a+" has been cleaned")},error:function(e,t,a){},complete:function(e,t){}}))}),t.on("change","#br-clean-all",function(e){var t=n(this).is(":checked"),a=n("#br-clean-all-cta");!0===t?a.removeAttr("disabled"):a.attr("disabled","disabled")}),t.on("click","#br-clean-all-cta",function(e){!1===n(this).is(":disabled")&&confirm("Proceed to clean all trashed posts and pages?")&&n.ajax({type:"POST",url:ajaxurl,data:{action:"breeze_purge_database",action_type:"all",security:breeze_token_name.breeze_purge_database,"is-network":n("body").hasClass("network-admin")},dataType:"JSON",success:function(e){n(".br-clean-label").find("span").removeClass("br-has").html("( 0 )"),n("div.br-db-item").each(function(e,t){n(t).find("h3").find("span").removeClass("br-has").html("0")});var t=n("#br-clean-all");t.is(":checked")&&t.trigger("click"),alert("Clean all process finished")},error:function(e,t,a){},complete:function(e,t){}})}),t.on("click",".br-mobile-menu",function(){n(".br-link").fadeToggle()}),t.on("click",".br-submit-save",function(e){e.preventDefault();var e=n(this).closest("form"),t=e.get(0).dataset.section,e={action:"save_settings_tab_"+t,security:breeze_token_name.breeze_save_options,"form-data":e.serialize(),"is-network":n("body").hasClass("network-admin")};n(".br-options").html('<div class="br-loader-spinner saving_settings"><div></div><div></div><div></div><div></div></div>'),n.ajax({type:"POST",url:ajaxurl,data:e,dataType:"JSON",success:function(e){n("#tab-"+t).trigger("click")},error:function(e,t,a){},complete:function(e,t){}})}),n(document).on("change",'input:radio[name="inherit-settings"]',function(){var a=n('input:radio[name="inherit-settings"]:checked').val(),i=".br-is-network",s=".br-is-custom",e=n(this).closest("div.change-settings-use").find("input#breeze_inherit_settings_nonce").val();n(".br-overlay-disable").addClass("br-hide");e={action:"save_settings_tab_inherit","is-selected":a,security:e,"is-network":n("body").hasClass("network-admin")};n("<div/>",{class:"br-inherit-wait",html:'<div class="br-loader-spinner switch-to-settings"><div></div><div></div><div></div><div></div></div>'}).appendTo(n("#wpcontent")),n.ajax({type:"POST",url:ajaxurl,data:e,dataType:"JSON",success:function(e){},error:function(e,t,a){},complete:function(e,t){n("#wpcontent").find("div.br-inherit-wait").remove(),"0"===a?(n(i).removeClass("br-show").addClass("br-hide"),n(s).removeClass("br-hide").addClass("br-show"),n(".br-link").removeClass("br-hide"),n("#tab-basic").trigger("click")):(n(s).removeClass("br-show").addClass("br-hide"),n(i).removeClass("br-hide").addClass("br-show"),n(".br-link").each(function(e,t){"faq"!==t.dataset.breezeLink&&n(t).addClass("br-hide")}),n("#tab-faq").trigger("click"))}})}),n(document).on("click",".notice-dismiss",function(){var e=n(this).closest("div.notice");e.hasClass("breeze-notice")&&e.fadeOut("fast").remove()})}(jQuery);
assets/js/js-front-end/breeze-lazy-load.min.js CHANGED
@@ -1,4 +1,4 @@
1
  /*! Created by Cloudways
2
- On 08-04-2022 */
3
 
4
  !function(e,t){t=t(e,e.document,Date);"object"==typeof module&&module.exports?module.exports=t:"function"==typeof define&&define.amd?define(t):e.lazySizes=t}(window,function(n,f,s){"use strict";var m,h;if(!function(){var e,t={lazyClass:"br-lazy",loadedClass:"br-loaded",loadingClass:"br-loading",preloadClass:"br-preload",errorClass:"br-error",autosizesClass:"br-autosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-breeze",srcsetAttr:"data-brsrcset",sizesAttr:"data-brsizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in h=n.lazySizesConfig||n.lazysizesConfig||{},t)e in h||(h[e]=t[e])}(),!f||!f.getElementsByClassName)return{init:function(){},cfg:h,noSupport:!0};function c(e,t){M(e,t)||e.setAttribute("class",(e[g]("class")||"").trim()+" "+t)}function u(e,t){(t=M(e,t))&&e.setAttribute("class",(e[g]("class")||"").replace(t," "))}function z(e,t){var a;!l&&(a=n.picturefill||h.pf)?(t&&t.src&&!e[g]("srcset")&&e.setAttribute("srcset",t.src),a({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)}var a,i,t,o,r,y=f.documentElement,l=n.HTMLPictureElement,d="addEventListener",g="getAttribute",e=n[d].bind(n),v=n.setTimeout,p=n.requestAnimationFrame||v,b=n.requestIdleCallback,C=/^picture$/i,A=["load","error","lazyincluded","_lazyloaded"],E={},_=Array.prototype.forEach,M=function(e,t){return E[t]||(E[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),E[t].test(e[g]("class")||"")&&E[t]},N=function(t,a,e){var n=e?d:"removeEventListener";e&&N(t,a),A.forEach(function(e){t[n](e,a)})},w=function(e,t,a,n,i){var s=f.createEvent("Event");return(a=a||{}).instance=m,s.initEvent(t,!n,!i),s.detail=a,e.dispatchEvent(s),s},L=function(e,t){return(getComputedStyle(e,null)||{})[t]},x=function(e,t,a){for(a=a||e.offsetWidth;a<h.minSize&&t&&!e._lazysizesWidth;)a=t.offsetWidth,t=t.parentNode;return a},W=(o=[],r=t=[],B._lsFlush=S,B);function S(){var e=r;for(r=t.length?o:t,i=!(a=!0);e.length;)e.shift()();a=!1}function B(e,t){a&&!t?e.apply(this,arguments):(r.push(e),i||(i=!0,(f.hidden?v:p)(S)))}function T(a,e){return e?function(){W(a)}:function(){var e=this,t=arguments;W(function(){a.apply(e,t)})}}function F(e){function t(){var e=s.now()-n;e<99?v(t,99-e):(b||i)(i)}var a,n,i=function(){a=null,e()};return function(){n=s.now(),a=a||v(t,99)}}var R,D,k,H,O,P,$,q,I,U,j,G,J,K,Q,V,X,Y,Z,ee,te,ae,ne,ie,se,oe,re,le,de,ce,ue,fe=(Z=/^img$/i,ee=/^iframe$/i,te="onscroll"in n&&!/(gle|ing)bot/.test(navigator.userAgent),ie=-1,se=function(e){return(G=null==G?"hidden"==L(f.body,"visibility"):G)||!("hidden"==L(e.parentNode,"visibility")&&"hidden"==L(e,"visibility"))},J=he,Q=ne=ae=0,V=h.throttleDelay,X=h.ricTimeout,Y=b&&49<X?function(){b(ze,{timeout:X}),X!==h.ricTimeout&&(X=h.ricTimeout)}:T(function(){v(ze)},!0),re=T(ye),le=function(e){re({target:e.target})},de=T(function(t,e,a,n,i){var s,o,r,l,d;(r=w(t,"lazybeforeunveil",e)).defaultPrevented||(n&&(a?c(t,h.autosizesClass):t.setAttribute("sizes",n)),s=t[g](h.srcsetAttr),a=t[g](h.srcAttr),i&&(o=(d=t.parentNode)&&C.test(d.nodeName||"")),l=e.firesLoad||"src"in t&&(s||a||o),r={target:t},c(t,h.loadingClass),l&&(clearTimeout(k),k=v(me,2500),N(t,le,!0)),o&&_.call(d.getElementsByTagName("source"),ge),s?t.setAttribute("srcset",s):a&&!o&&(ee.test(t.nodeName)?(n=a,0==(d=(e=t).getAttribute("data-load-mode")||h.iframeLoadMode)?e.contentWindow.location.replace(n):1==d&&(e.src=n)):t.src=a),i&&(s||o)&&z(t,{src:a})),t._lazyRace&&delete t._lazyRace,u(t,h.lazyClass),W(function(){var e=t.complete&&1<t.naturalWidth;l&&!e||(e&&c(t,h.fastLoadedClass),ye(r),t._lazyCache=!0,v(function(){"_lazyCache"in t&&delete t._lazyCache},9)),"lazy"==t.loading&&ne--},!0)}),ue=F(function(){h.loadMode=3,oe()}),{_:function(){O=s.now(),m.elements=f.getElementsByClassName(h.lazyClass),R=f.getElementsByClassName(h.lazyClass+" "+h.preloadClass),e("scroll",oe,!0),e("resize",oe,!0),e("pageshow",function(e){var t;!e.persisted||(t=f.querySelectorAll("."+h.loadingClass)).length&&t.forEach&&p(function(){t.forEach(function(e){e.complete&&ce(e)})})}),n.MutationObserver?new MutationObserver(oe).observe(y,{childList:!0,subtree:!0,attributes:!0}):(y[d]("DOMNodeInserted",oe,!0),y[d]("DOMAttrModified",oe,!0),setInterval(oe,999)),e("hashchange",oe,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){f[d](e,oe,!0)}),/d$|^c/.test(f.readyState)?pe():(e("load",pe),f[d]("DOMContentLoaded",oe),v(pe,2e4)),m.elements.length?(he(),W._lsFlush()):oe()},checkElems:oe=function(e){var t;(e=!0===e)&&(X=33),K||(K=!0,(t=V-(s.now()-Q))<0&&(t=0),e||t<9?Y():v(Y,t))},unveil:ce=function(e){var t,a,n,i;e._lazyRace||(!(i="auto"==(n=(a=Z.test(e.nodeName))&&(e[g](h.sizesAttr)||e[g]("sizes"))))&&D||!a||!e[g]("src")&&!e.srcset||e.complete||M(e,h.errorClass)||!M(e,h.lazyClass))&&(t=w(e,"lazyunveilread").detail,i&&Ee.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,ne++,de(e,t,i,n,a))},_aLSL:ve});function me(e){ne--,e&&!(ne<0)&&e.target||(ne=0)}function he(){var e,t,a,n,i,s,o,r,l,d,c,u=m.elements;if((H=h.loadMode)&&ne<8&&(e=u.length)){for(t=0,ie++;t<e;t++)if(u[t]&&!u[t]._lazyRace)if(!te||m.prematureUnveil&&m.prematureUnveil(u[t]))ce(u[t]);else if((o=u[t][g]("data-expand"))&&(i=+o)||(i=ae),l||(l=!h.expand||h.expand<1?500<y.clientHeight&&500<y.clientWidth?500:370:h.expand,d=(m._defEx=l)*h.expFactor,c=h.hFac,G=null,ae<d&&ne<1&&2<ie&&2<H&&!f.hidden?(ae=d,ie=0):ae=1<H&&1<ie&&ne<6?l:0),r!==i&&(P=innerWidth+i*c,$=innerHeight+i,s=-1*i,r=i),d=u[t].getBoundingClientRect(),(j=d.bottom)>=s&&(q=d.top)<=$&&(U=d.right)>=s*c&&(I=d.left)<=P&&(j||U||I||q)&&(h.loadHidden||se(u[t]))&&(D&&ne<3&&!o&&(H<3||ie<4)||function(e,t){var a,n=e,i=se(e);for(q-=t,j+=t,I-=t,U+=t;i&&(n=n.offsetParent)&&n!=f.body&&n!=y;)(i=0<(L(n,"opacity")||1))&&"visible"!=L(n,"overflow")&&(a=n.getBoundingClientRect(),i=U>a.left&&I<a.right&&j>a.top-1&&q<a.bottom+1);return i}(u[t],i))){if(ce(u[t]),n=!0,9<ne)break}else!n&&D&&!a&&ne<4&&ie<4&&2<H&&(R[0]||h.preloadAfterLoad)&&(R[0]||!o&&(j||U||I||q||"auto"!=u[t][g](h.sizesAttr)))&&(a=R[0]||u[t]);a&&!n&&ce(a)}}function ze(){K=!1,Q=s.now(),J()}function ye(e){var t=e.target;t._lazyCache?delete t._lazyCache:(me(e),c(t,h.loadedClass),u(t,h.loadingClass),N(t,le),w(t,"lazyloaded"))}function ge(e){var t,a=e[g](h.srcsetAttr);(t=h.customMedia[e[g]("data-media")||e[g]("media")])&&e.setAttribute("media",t),a&&e.setAttribute("srcset",a)}function ve(){3==h.loadMode&&(h.loadMode=2),ue()}function pe(){D||(s.now()-O<999?v(pe,999):(D=!0,h.loadMode=3,oe(),e("scroll",ve,!0)))}var be,Ce,Ae,Ee=(Ce=T(function(e,t,a,n){var i,s,o;if(e._lazysizesWidth=n,e.setAttribute("sizes",n+="px"),C.test(t.nodeName||""))for(s=0,o=(i=t.getElementsByTagName("source")).length;s<o;s++)i[s].setAttribute("sizes",n);a.detail.dataAttr||z(e,a.detail)}),{_:function(){be=f.getElementsByClassName(h.autosizesClass),e("resize",Ae)},checkElems:Ae=F(function(){var e,t=be.length;if(t)for(e=0;e<t;e++)_e(be[e])}),updateElem:_e});function _e(e,t,a){var n=e.parentNode;n&&(a=x(e,n,a),(t=w(e,"lazybeforesizes",{width:a,dataAttr:!!t})).defaultPrevented||(a=t.detail.width)&&a!==e._lazysizesWidth&&Ce(e,n,t,a))}function Me(){!Me.i&&f.getElementsByClassName&&(Me.i=!0,Ee._(),fe._())}return v(function(){h.init&&Me()}),m={cfg:h,autoSizer:Ee,loader:fe,init:Me,uP:z,aC:c,rC:u,hC:M,fire:w,gW:x,rAF:W}});
1
  /*! Created by Cloudways
2
+ On 02-05-2022 */
3
 
4
  !function(e,t){t=t(e,e.document,Date);"object"==typeof module&&module.exports?module.exports=t:"function"==typeof define&&define.amd?define(t):e.lazySizes=t}(window,function(n,f,s){"use strict";var m,h;if(!function(){var e,t={lazyClass:"br-lazy",loadedClass:"br-loaded",loadingClass:"br-loading",preloadClass:"br-preload",errorClass:"br-error",autosizesClass:"br-autosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-breeze",srcsetAttr:"data-brsrcset",sizesAttr:"data-brsizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in h=n.lazySizesConfig||n.lazysizesConfig||{},t)e in h||(h[e]=t[e])}(),!f||!f.getElementsByClassName)return{init:function(){},cfg:h,noSupport:!0};function c(e,t){M(e,t)||e.setAttribute("class",(e[g]("class")||"").trim()+" "+t)}function u(e,t){(t=M(e,t))&&e.setAttribute("class",(e[g]("class")||"").replace(t," "))}function z(e,t){var a;!l&&(a=n.picturefill||h.pf)?(t&&t.src&&!e[g]("srcset")&&e.setAttribute("srcset",t.src),a({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)}var a,i,t,o,r,y=f.documentElement,l=n.HTMLPictureElement,d="addEventListener",g="getAttribute",e=n[d].bind(n),v=n.setTimeout,p=n.requestAnimationFrame||v,b=n.requestIdleCallback,C=/^picture$/i,A=["load","error","lazyincluded","_lazyloaded"],E={},_=Array.prototype.forEach,M=function(e,t){return E[t]||(E[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),E[t].test(e[g]("class")||"")&&E[t]},N=function(t,a,e){var n=e?d:"removeEventListener";e&&N(t,a),A.forEach(function(e){t[n](e,a)})},w=function(e,t,a,n,i){var s=f.createEvent("Event");return(a=a||{}).instance=m,s.initEvent(t,!n,!i),s.detail=a,e.dispatchEvent(s),s},L=function(e,t){return(getComputedStyle(e,null)||{})[t]},x=function(e,t,a){for(a=a||e.offsetWidth;a<h.minSize&&t&&!e._lazysizesWidth;)a=t.offsetWidth,t=t.parentNode;return a},W=(o=[],r=t=[],B._lsFlush=S,B);function S(){var e=r;for(r=t.length?o:t,i=!(a=!0);e.length;)e.shift()();a=!1}function B(e,t){a&&!t?e.apply(this,arguments):(r.push(e),i||(i=!0,(f.hidden?v:p)(S)))}function T(a,e){return e?function(){W(a)}:function(){var e=this,t=arguments;W(function(){a.apply(e,t)})}}function F(e){function t(){var e=s.now()-n;e<99?v(t,99-e):(b||i)(i)}var a,n,i=function(){a=null,e()};return function(){n=s.now(),a=a||v(t,99)}}var R,D,k,H,O,P,$,q,I,U,j,G,J,K,Q,V,X,Y,Z,ee,te,ae,ne,ie,se,oe,re,le,de,ce,ue,fe=(Z=/^img$/i,ee=/^iframe$/i,te="onscroll"in n&&!/(gle|ing)bot/.test(navigator.userAgent),ie=-1,se=function(e){return(G=null==G?"hidden"==L(f.body,"visibility"):G)||!("hidden"==L(e.parentNode,"visibility")&&"hidden"==L(e,"visibility"))},J=he,Q=ne=ae=0,V=h.throttleDelay,X=h.ricTimeout,Y=b&&49<X?function(){b(ze,{timeout:X}),X!==h.ricTimeout&&(X=h.ricTimeout)}:T(function(){v(ze)},!0),re=T(ye),le=function(e){re({target:e.target})},de=T(function(t,e,a,n,i){var s,o,r,l,d;(r=w(t,"lazybeforeunveil",e)).defaultPrevented||(n&&(a?c(t,h.autosizesClass):t.setAttribute("sizes",n)),s=t[g](h.srcsetAttr),a=t[g](h.srcAttr),i&&(o=(d=t.parentNode)&&C.test(d.nodeName||"")),l=e.firesLoad||"src"in t&&(s||a||o),r={target:t},c(t,h.loadingClass),l&&(clearTimeout(k),k=v(me,2500),N(t,le,!0)),o&&_.call(d.getElementsByTagName("source"),ge),s?t.setAttribute("srcset",s):a&&!o&&(ee.test(t.nodeName)?(n=a,0==(d=(e=t).getAttribute("data-load-mode")||h.iframeLoadMode)?e.contentWindow.location.replace(n):1==d&&(e.src=n)):t.src=a),i&&(s||o)&&z(t,{src:a})),t._lazyRace&&delete t._lazyRace,u(t,h.lazyClass),W(function(){var e=t.complete&&1<t.naturalWidth;l&&!e||(e&&c(t,h.fastLoadedClass),ye(r),t._lazyCache=!0,v(function(){"_lazyCache"in t&&delete t._lazyCache},9)),"lazy"==t.loading&&ne--},!0)}),ue=F(function(){h.loadMode=3,oe()}),{_:function(){O=s.now(),m.elements=f.getElementsByClassName(h.lazyClass),R=f.getElementsByClassName(h.lazyClass+" "+h.preloadClass),e("scroll",oe,!0),e("resize",oe,!0),e("pageshow",function(e){var t;!e.persisted||(t=f.querySelectorAll("."+h.loadingClass)).length&&t.forEach&&p(function(){t.forEach(function(e){e.complete&&ce(e)})})}),n.MutationObserver?new MutationObserver(oe).observe(y,{childList:!0,subtree:!0,attributes:!0}):(y[d]("DOMNodeInserted",oe,!0),y[d]("DOMAttrModified",oe,!0),setInterval(oe,999)),e("hashchange",oe,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){f[d](e,oe,!0)}),/d$|^c/.test(f.readyState)?pe():(e("load",pe),f[d]("DOMContentLoaded",oe),v(pe,2e4)),m.elements.length?(he(),W._lsFlush()):oe()},checkElems:oe=function(e){var t;(e=!0===e)&&(X=33),K||(K=!0,(t=V-(s.now()-Q))<0&&(t=0),e||t<9?Y():v(Y,t))},unveil:ce=function(e){var t,a,n,i;e._lazyRace||(!(i="auto"==(n=(a=Z.test(e.nodeName))&&(e[g](h.sizesAttr)||e[g]("sizes"))))&&D||!a||!e[g]("src")&&!e.srcset||e.complete||M(e,h.errorClass)||!M(e,h.lazyClass))&&(t=w(e,"lazyunveilread").detail,i&&Ee.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,ne++,de(e,t,i,n,a))},_aLSL:ve});function me(e){ne--,e&&!(ne<0)&&e.target||(ne=0)}function he(){var e,t,a,n,i,s,o,r,l,d,c,u=m.elements;if((H=h.loadMode)&&ne<8&&(e=u.length)){for(t=0,ie++;t<e;t++)if(u[t]&&!u[t]._lazyRace)if(!te||m.prematureUnveil&&m.prematureUnveil(u[t]))ce(u[t]);else if((o=u[t][g]("data-expand"))&&(i=+o)||(i=ae),l||(l=!h.expand||h.expand<1?500<y.clientHeight&&500<y.clientWidth?500:370:h.expand,d=(m._defEx=l)*h.expFactor,c=h.hFac,G=null,ae<d&&ne<1&&2<ie&&2<H&&!f.hidden?(ae=d,ie=0):ae=1<H&&1<ie&&ne<6?l:0),r!==i&&(P=innerWidth+i*c,$=innerHeight+i,s=-1*i,r=i),d=u[t].getBoundingClientRect(),(j=d.bottom)>=s&&(q=d.top)<=$&&(U=d.right)>=s*c&&(I=d.left)<=P&&(j||U||I||q)&&(h.loadHidden||se(u[t]))&&(D&&ne<3&&!o&&(H<3||ie<4)||function(e,t){var a,n=e,i=se(e);for(q-=t,j+=t,I-=t,U+=t;i&&(n=n.offsetParent)&&n!=f.body&&n!=y;)(i=0<(L(n,"opacity")||1))&&"visible"!=L(n,"overflow")&&(a=n.getBoundingClientRect(),i=U>a.left&&I<a.right&&j>a.top-1&&q<a.bottom+1);return i}(u[t],i))){if(ce(u[t]),n=!0,9<ne)break}else!n&&D&&!a&&ne<4&&ie<4&&2<H&&(R[0]||h.preloadAfterLoad)&&(R[0]||!o&&(j||U||I||q||"auto"!=u[t][g](h.sizesAttr)))&&(a=R[0]||u[t]);a&&!n&&ce(a)}}function ze(){K=!1,Q=s.now(),J()}function ye(e){var t=e.target;t._lazyCache?delete t._lazyCache:(me(e),c(t,h.loadedClass),u(t,h.loadingClass),N(t,le),w(t,"lazyloaded"))}function ge(e){var t,a=e[g](h.srcsetAttr);(t=h.customMedia[e[g]("data-media")||e[g]("media")])&&e.setAttribute("media",t),a&&e.setAttribute("srcset",a)}function ve(){3==h.loadMode&&(h.loadMode=2),ue()}function pe(){D||(s.now()-O<999?v(pe,999):(D=!0,h.loadMode=3,oe(),e("scroll",ve,!0)))}var be,Ce,Ae,Ee=(Ce=T(function(e,t,a,n){var i,s,o;if(e._lazysizesWidth=n,e.setAttribute("sizes",n+="px"),C.test(t.nodeName||""))for(s=0,o=(i=t.getElementsByTagName("source")).length;s<o;s++)i[s].setAttribute("sizes",n);a.detail.dataAttr||z(e,a.detail)}),{_:function(){be=f.getElementsByClassName(h.autosizesClass),e("resize",Ae)},checkElems:Ae=F(function(){var e,t=be.length;if(t)for(e=0;e<t;e++)_e(be[e])}),updateElem:_e});function _e(e,t,a){var n=e.parentNode;n&&(a=x(e,n,a),(t=w(e,"lazybeforesizes",{width:a,dataAttr:!!t})).defaultPrevented||(a=t.detail.width)&&a!==e._lazysizesWidth&&Ce(e,n,t,a))}function Me(){!Me.i&&f.getElementsByClassName&&(Me.i=!0,Ee._(),fe._())}return v(function(){h.init&&Me()}),m={cfg:h,autoSizer:Ee,loader:fe,init:Me,uP:z,aC:c,rC:u,hC:M,fire:w,gW:x,rAF:W}});
assets/js/js-front-end/breeze-prefetch-links.min.js CHANGED
@@ -1,4 +1,4 @@
1
  /*! Created by Cloudways
2
- On 08-04-2022 */
3
 
4
  var timer,ready=e=>{"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)};function search_for_banned_links(e,t){var r=!1;if(e.length)for(i=0;i<e.length;i++)-1===t.indexOf(e[i])&&-1===e[i].indexOf(t)||(r=!0);return r}ready(()=>{var i=[];addEventListener("mouseover",function(e){var n;e.target instanceof HTMLAnchorElement&&(n=e.target.attributes.href.value,timer=setTimeout(function(){var e=n.replace(breeze_prefetch.local_url,""),t=new URL(breeze_prefetch.local_url).host,r=new URL(n).host;""!==n.trim()&&!1===i.includes(n)&&t===r&&!1===search_for_banned_links(breeze_prefetch.ignore_list,e)&&(i.push(n.trim()),(e=document.createElement("link")).href=n,e.rel="prefetch",document.head.appendChild(e))},150))}),addEventListener("mouseout",function(e){clearTimeout(timer)})});
1
  /*! Created by Cloudways
2
+ On 02-05-2022 */
3
 
4
  var timer,ready=e=>{"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)};function search_for_banned_links(e,t){var r=!1;if(e.length)for(i=0;i<e.length;i++)-1===t.indexOf(e[i])&&-1===e[i].indexOf(t)||(r=!0);return r}ready(()=>{var i=[];addEventListener("mouseover",function(e){var n;e.target instanceof HTMLAnchorElement&&(n=e.target.attributes.href.value,timer=setTimeout(function(){var e=n.replace(breeze_prefetch.local_url,""),t=new URL(breeze_prefetch.local_url).host,r=new URL(n).host;""!==n.trim()&&!1===i.includes(n)&&t===r&&!1===search_for_banned_links(breeze_prefetch.ignore_list,e)&&(i.push(n.trim()),(e=document.createElement("link")).href=n,e.rel="prefetch",document.head.appendChild(e))},150))}),addEventListener("mouseout",function(e){clearTimeout(timer)})});
breeze.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Breeze
4
  * Description: Breeze is a WordPress cache plugin with extensive options to speed up your website. All the options including Varnish Cache are compatible with Cloudways hosting.
5
- * Version: 2.0.4
6
  * Text Domain: breeze
7
  * Domain Path: /languages
8
  * Author: Cloudways
@@ -37,7 +37,7 @@ if ( ! defined( 'BREEZE_PLUGIN_DIR' ) ) {
37
  define( 'BREEZE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
38
  }
39
  if ( ! defined( 'BREEZE_VERSION' ) ) {
40
- define( 'BREEZE_VERSION', '2.0.4' );
41
  }
42
  if ( ! defined( 'BREEZE_SITEURL' ) ) {
43
  define( 'BREEZE_SITEURL', get_site_url() );
2
  /**
3
  * Plugin Name: Breeze
4
  * Description: Breeze is a WordPress cache plugin with extensive options to speed up your website. All the options including Varnish Cache are compatible with Cloudways hosting.
5
+ * Version: 2.0.5
6
  * Text Domain: breeze
7
  * Domain Path: /languages
8
  * Author: Cloudways
37
  define( 'BREEZE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
38
  }
39
  if ( ! defined( 'BREEZE_VERSION' ) ) {
40
+ define( 'BREEZE_VERSION', '2.0.5' );
41
  }
42
  if ( ! defined( 'BREEZE_SITEURL' ) ) {
43
  define( 'BREEZE_SITEURL', get_site_url() );
inc/breeze-configuration.php CHANGED
@@ -518,7 +518,8 @@ class Breeze_Configuration {
518
  }
519
 
520
  $response = array();
521
- $inherit_settings = ( ( false === filter_var( $_POST['is-selected'], FILTER_VALIDATE_BOOLEAN ) ) ? '1' : '0' );
 
522
  update_option( 'breeze_inherit_settings', $inherit_settings );
523
  Breeze_ConfigCache::factory()->write();
524
  Breeze_ConfigCache::factory()->write_config_cache();
518
  }
519
 
520
  $response = array();
521
+ $inherit_settings = ( ( true === filter_var( $_POST['is-selected'], FILTER_VALIDATE_BOOLEAN ) ) ? '1' : '0' );
522
+
523
  update_option( 'breeze_inherit_settings', $inherit_settings );
524
  Breeze_ConfigCache::factory()->write();
525
  Breeze_ConfigCache::factory()->write_config_cache();
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: Cloudways
3
  Tags: cache,caching, performance, wp-cache, cdn, combine, compress, speed plugin, database cache,gzip, http compression, js cache, minify, optimize, page cache, performance, speed, expire headers
4
  Requires at least: 4.5
5
- Tested up to: 5.8
6
- Stable tag: 2.0.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -145,6 +145,11 @@ Using Gzip, Breeze compresses the request files, further reducing the size of th
145
 
146
  == Changelog ==
147
 
 
 
 
 
 
148
  = 2.0.4 =
149
 
150
  * Add: Improve page load by delaying JavaScript execution. Delay JS is disabled by default for new installations.
2
  Contributors: Cloudways
3
  Tags: cache,caching, performance, wp-cache, cdn, combine, compress, speed plugin, database cache,gzip, http compression, js cache, minify, optimize, page cache, performance, speed, expire headers
4
  Requires at least: 4.5
5
+ Tested up to: 6.0
6
+ Stable tag: 2.0.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
145
 
146
  == Changelog ==
147
 
148
+ = 2.0.5 =
149
+
150
+ * Add: UI improvement to provide better accessibility and user experience.
151
+
152
+
153
  = 2.0.4 =
154
 
155
  * Add: Improve page load by delaying JavaScript execution. Delay JS is disabled by default for new installations.
views/breeze-setting-views.php CHANGED
@@ -67,11 +67,12 @@ $breeze_option_tabs = array(
67
  $section_icons = array();
68
  $section_title = array();
69
 
70
- $show_tabs = true;
71
- $is_subsite = is_multisite() && get_current_screen()->base !== 'settings_page_breeze-network';
72
-
73
  $is_inherited_settings = false;
74
  if ( $is_subsite ) {
 
75
  // Show settings inherit option.
76
  $inherit_settings = get_option( 'breeze_inherit_settings', '0' );
77
 
@@ -81,40 +82,12 @@ if ( $is_subsite ) {
81
  if ( true === $is_inherited_settings ) {
82
  $show_tabs = false;
83
  }
84
-
85
- $display_text = array(
86
- 'network' => ( true === $is_inherited_settings ) ? 'br-show' : 'br-hide',
87
- 'custom' => ( false === $is_inherited_settings ) ? 'br-show' : 'br-hide',
88
- );
89
- ?>
90
- <div style="width: 100%; margin-top: 30px;" class="change-settings-use">
91
- <div class="on-off-checkbox settings-switcher">
92
- <input id="inherit-settings" name="inherit-settings" type="checkbox" class="br-box" value="0" <?php echo $check_inherit_setting; ?>>
93
- <label for="inherit-settings">
94
- <div class="status-switch" data-unchecked="Inherit Network Settings" data-checked="Use Custom Settings"></div>
95
- </label>
96
- </div>
97
- <p class="br-global-text-settings">
98
- <span class="br-important br-is-network <?php echo esc_attr( $display_text['network'] ); ?>">
99
- <strong><?php _e( 'Network Settings', 'breeze' ); ?></strong>:
100
- <?php esc_html_e( 'This option allows the subsite to inherit all the cache settings from network. To modify/update the settings please go to network site.', 'breeze' ); ?>
101
- </span>
102
-
103
- <span class="br-is-custom <?php echo esc_attr( $display_text['custom'] ); ?>">
104
- <strong><?php _e( 'Custom Settings', 'breeze' ); ?></strong>:
105
- <?php esc_html_e( 'This option allows subsite to have different settings/configuration from the network level. Use this option only if you wish to have separate settings for this subsite.', 'breeze' ); ?>
106
- </span>
107
- </p>
108
- <?php wp_nonce_field( 'breeze_inherit_settings', 'breeze_inherit_settings_nonce' ); ?>
109
-
110
- </div>
111
- <?php
112
  }
113
  ?>
114
 
115
  <div class="wrap breeze-box">
116
  <div class="br-menu">
117
- <div class="br-logo">&nbsp;</div>
118
  <div class="br-mobile-menu">
119
  <span class="dashicons dashicons-menu"></span>
120
  <?php _e( 'Open menu', 'breeze' ); ?>
@@ -162,5 +135,56 @@ if ( $is_subsite ) {
162
  ?>
163
 
164
  </div>
165
- <div class="br-options"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  </div>
67
  $section_icons = array();
68
  $section_title = array();
69
 
70
+ $show_tabs = true;
71
+ $is_subsite = is_multisite() && get_current_screen()->base !== 'settings_page_breeze-network';
72
+ $logo_subsite = '';
73
  $is_inherited_settings = false;
74
  if ( $is_subsite ) {
75
+ $logo_subsite = ' subsite-logo';
76
  // Show settings inherit option.
77
  $inherit_settings = get_option( 'breeze_inherit_settings', '0' );
78
 
82
  if ( true === $is_inherited_settings ) {
83
  $show_tabs = false;
84
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  }
86
  ?>
87
 
88
  <div class="wrap breeze-box">
89
  <div class="br-menu">
90
+ <div class="br-logo<?php echo esc_attr( $logo_subsite ); ?>">&nbsp;</div>
91
  <div class="br-mobile-menu">
92
  <span class="dashicons dashicons-menu"></span>
93
  <?php _e( 'Open menu', 'breeze' ); ?>
135
  ?>
136
 
137
  </div>
138
+ <?php
139
+
140
+ if ( true === $is_subsite ) {
141
+ // Show settings inherit option.
142
+ $inherit_settings = get_option( 'breeze_inherit_settings', '0' );
143
+
144
+ $is_inherited_settings = isset( $inherit_settings ) ? filter_var( $inherit_settings, FILTER_VALIDATE_BOOLEAN ) : false;
145
+ $check_inherit_setting = ( isset( $is_inherited_settings ) && false === $is_inherited_settings ) ? checked( $inherit_settings, '0', false ) : '';
146
+
147
+ if ( true === $is_inherited_settings ) {
148
+ $show_tabs = false;
149
+ }
150
+
151
+ $display_text = array(
152
+ 'network' => ( true === $is_inherited_settings ) ? 'br-show' : 'br-hide',
153
+ 'custom' => ( false === $is_inherited_settings ) ? 'br-show' : 'br-hide',
154
+ );
155
+ ?>
156
+ <div class="br-container">
157
+ <div class="br-network-only change-settings-use">
158
+ <div>
159
+ <p class="br-global-text-settings">
160
+ <span class="br-important br-is-network <?php echo esc_attr( $display_text['network'] ); ?>">
161
+ <strong><?php _e( 'Network Settings', 'breeze' ); ?></strong>:<br/>
162
+ <?php esc_html_e( 'This option allows the subsite to inherit all the cache settings from network. To modify/update the settings please go to network site.', 'breeze' ); ?>
163
+ </span>
164
+
165
+ <span class="br-is-custom <?php echo esc_attr( $display_text['custom'] ); ?>">
166
+ <strong><?php _e( 'Use Custom Settings', 'breeze' ); ?></strong>:<br/>
167
+ <?php esc_html_e( 'This option allows subsite to have different settings/configuration from the network level. Use this option only if you wish to have separate settings for this subsite.', 'breeze' ); ?>
168
+ </span>
169
+ </p>
170
+ <?php wp_nonce_field( 'breeze_inherit_settings', 'breeze_inherit_settings_nonce' ); ?>
171
+ </div>
172
+ <div class="br-option-net">
173
+ <div class="br-radio">
174
+ <input type="radio" id="inherit-settings-1" name="inherit-settings" value="1" <?php echo ( true === $is_inherited_settings ) ? 'checked' : ''; ?>/>
175
+ <label for="inherit-settings-1" class="radio-label"><?php _e( 'Inherit Network Settings', 'breeze' ); ?></label>
176
+ </div>
177
+
178
+ <div class="br-radio">
179
+ <input type="radio" id="inherit-settings-2" name="inherit-settings" value="0" <?php echo ( false === $is_inherited_settings ) ? 'checked' : ''; ?> style="margin-left: 25px;"/>
180
+ <label for="inherit-settings-2" class="radio-label"><?php _e( 'Use Custom Settings', 'breeze' ); ?></label>
181
+ </div>
182
+
183
+ </div>
184
+ </div>
185
+ <div class="br-options"></div>
186
+ </div>
187
+ <?php } else { ?>
188
+ <div class="br-options"></div>
189
+ <?php } ?>
190
  </div>
views/option-tabs/advanced-tab.php CHANGED
@@ -128,11 +128,13 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/advanced-active.png';
128
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-wp-emoji'], '1', false ) : '';
129
  ?>
130
  <div class="on-off-checkbox">
131
- <input id="breeze-wpjs-emoji" name="breeze-wpjs-emoji" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
132
- <label for="breeze-wpjs-emoji">
133
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
134
- </label>
 
135
  </div>
 
136
  <div class="br-note">
137
  <p>
138
  <?php
128
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-wp-emoji'], '1', false ) : '';
129
  ?>
130
  <div class="on-off-checkbox">
131
+ <label class="br-switcher">
132
+ <input id="breeze-wpjs-emoji" name="breeze-wpjs-emoji" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
133
+ <div class="br-see-state">
134
+ </div>
135
+ </label><br>
136
  </div>
137
+
138
  <div class="br-note">
139
  <p>
140
  <?php
views/option-tabs/basic-tab.php CHANGED
@@ -53,11 +53,13 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/basic-active.png';
53
  $check_basic = ( isset( $basic_value ) && true === $basic_value ) ? checked( $basic['breeze-active'], '1', false ) : '';
54
  ?>
55
  <div class="on-off-checkbox">
56
- <input id="cache-system" name="cache-system" type="checkbox" class="br-box" value="1" <?php echo $check_basic; ?>>
57
- <label for="cache-system">
58
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
59
- </label>
 
60
  </div>
 
61
  <div class="br-note">
62
  <p>
63
  <?php _e( 'This is the basic cache that we recommend should be kept enabled in all cases. Basic cache will build the internal and static caches for the WordPress websites.', 'breeze' ); ?>
@@ -90,27 +92,35 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/basic-active.png';
90
  <!-- END OPTION -->
91
 
92
  <!-- START OPTION -->
93
- <div class="br-option-item">
 
 
 
 
 
 
 
 
 
 
 
 
94
  <div class="br-label">
95
  <div class="br-option-text">
96
  <?php _e( 'Gzip Compression', 'breeze' ); ?>
97
  </div>
98
  </div>
99
  <div class="br-option">
100
- <?php
101
- $supports_conditionals = breeze_is_supported( 'conditional_htaccess' );
102
 
103
- $is_disabled = is_multisite() && ! is_network_admin() && ! $supports_conditionals;
104
- $basic_value = isset( $basic['breeze-gzip-compression'] ) ? filter_var( $basic['breeze-gzip-compression'], FILTER_VALIDATE_BOOLEAN ) : false;
105
- $is_checked = isset( $basic['breeze-gzip-compression'] ) && true === $basic_value && ! $is_disabled;
106
- ?>
107
  <div class="on-off-checkbox">
108
- <input id="gzip-compression" type="checkbox" name="gzip-compression" class="br-box" value="1"
109
- <?php echo $is_disabled ? 'disabled="disabled"' : ''; ?> <?php checked( $is_checked, true ); ?>/>
110
- <label for="gzip-compression">
111
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
112
- </label>
 
113
  </div>
 
114
  <div class="br-note">
115
  <p>
116
  <?php _e( 'Enable this to compress your files making HTTP requests fewer and faster.', 'breeze' ); ?>
@@ -128,27 +138,35 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/basic-active.png';
128
  <!-- END OPTION -->
129
 
130
  <!-- START OPTION -->
131
- <div class="br-option-item">
 
 
 
 
 
 
 
 
 
 
 
 
132
  <div class="br-label">
133
  <div class="br-option-text">
134
  <?php _e( 'Browser Cache', 'breeze' ); ?>
135
  </div>
136
  </div>
137
  <div class="br-option">
138
- <?php
139
- $supports_conditionals = breeze_is_supported( 'conditional_htaccess' );
140
 
141
- $is_disabled = is_multisite() && ! is_network_admin() && ! $supports_conditionals;
142
- $basic_value = isset( $basic['breeze-browser-cache'] ) ? filter_var( $basic['breeze-browser-cache'], FILTER_VALIDATE_BOOLEAN ) : false;
143
- $is_checked = isset( $basic['breeze-browser-cache'] ) && true === $basic_value && ! $is_disabled;
144
- ?>
145
  <div class="on-off-checkbox">
146
- <input id="browser-cache" type="checkbox" name="browser-cache" class="br-box" value="1"
147
- <?php echo $is_disabled ? 'disabled="disabled"' : ''; ?> <?php checked( $is_checked, true ); ?>/>
148
- <label for="browser-cache">
149
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
150
- </label>
 
151
  </div>
 
152
  <div class="br-note">
153
  <p>
154
  <?php _e( 'Enable this to add expires headers to static files. This will ask browsers to either request a file from server or fetch from the browser’s cache.', 'breeze' ); ?>
@@ -184,11 +202,14 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/basic-active.png';
184
  $check_basic = ( isset( $basic_value ) && true === $basic_value ) ? checked( $basic['breeze-lazy-load'], '1', false ) : '';
185
  ?>
186
  <div class="on-off-checkbox">
187
- <input id="bz-lazy-load" type="checkbox" name="bz-lazy-load" class="br-box" value='1' <?php echo $disabled; ?> <?php echo $check_basic; ?>/>
188
- <label for="bz-lazy-load">
189
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
190
- </label>
 
191
  </div>
 
 
192
  <div class="br-note">
193
  <p><?php _e( 'Images will begin to load before being displayed on screen.', 'breeze' ); ?></p>
194
  <?php
@@ -221,12 +242,15 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/basic-active.png';
221
  ?>
222
 
223
  <span <?php echo $hide; ?> id="native-lazy-option-iframe">
224
- <div class="on-off-checkbox">
 
 
225
  <input id="bz-lazy-load-iframe" type="checkbox" name="bz-lazy-load-iframe" class="br-box" value='1' <?php echo $iframe_lazy_load; ?>>
226
- <label for="bz-lazy-load-iframe">
227
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
228
- </label>
229
  </div>
 
230
  <p>
231
  <?php _e( 'iFrame lazy load', 'breeze' ); ?><br/>
232
  </p>
@@ -241,12 +265,15 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/basic-active.png';
241
  </span>
242
 
243
  <span <?php echo $hide; ?> id="native-lazy-option">
244
- <div class="on-off-checkbox">
 
245
  <input id="bz-lazy-load-nat" type="checkbox" name="bz-lazy-load-nat" class="br-box" value='1' <?php echo $native_lazy_load; ?>>
246
- <label for="bz-lazy-load-nat">
247
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
248
- </label>
249
- </div>
 
 
250
  <p>
251
  <?php _e( 'Enable native browser lazy load', 'breeze' ); ?><br/>
252
  </p>
@@ -278,11 +305,13 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/basic-active.png';
278
  $check_basic = ( isset( $basic_value ) && true === $basic_value ) ? checked( $basic['breeze-cross-origin'], '1', false ) : '';
279
  ?>
280
  <div class="on-off-checkbox">
281
- <input id="safe-cross-origin" type="checkbox" name="safe-cross-origin" class="br-box" <?php echo $check_basic; ?> value='1'/>
282
- <label for="safe-cross-origin">
283
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
284
- </label>
 
285
  </div>
 
286
  <div class="br-note">
287
  <p><?php _e( 'Apply “noopener noreferrer” to links which have target”_blank” attribute and the anchor leads to external websites', 'breeze' ); ?></p>
288
  </div>
@@ -313,13 +342,15 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/basic-active.png';
313
  ?>
314
  <strong><?php echo esc_html( $user_role_data['name'] ); ?></strong>
315
  <div class="on-off-checkbox">
316
- <input id="breeze-admin-cache-<?php echo esc_attr( $user_role ); ?>" type="checkbox" name="breeze-admin-cache[<?php echo esc_attr( $user_role ); ?>]" class="br-box"
317
- value="1" <?php echo $check_role; ?>>
318
- <label for="breeze-admin-cache-<?php echo esc_attr( $user_role ); ?>">
319
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
320
- </label>
 
321
  </div>
322
 
 
323
  <br/>
324
  <?php
325
  }
53
  $check_basic = ( isset( $basic_value ) && true === $basic_value ) ? checked( $basic['breeze-active'], '1', false ) : '';
54
  ?>
55
  <div class="on-off-checkbox">
56
+ <label class="br-switcher">
57
+ <input id="cache-system" name="cache-system" type="checkbox" class="br-box" value="1" <?php echo $check_basic; ?>>
58
+ <div class="br-see-state">
59
+ </div>
60
+ </label><br>
61
  </div>
62
+
63
  <div class="br-note">
64
  <p>
65
  <?php _e( 'This is the basic cache that we recommend should be kept enabled in all cases. Basic cache will build the internal and static caches for the WordPress websites.', 'breeze' ); ?>
92
  <!-- END OPTION -->
93
 
94
  <!-- START OPTION -->
95
+ <?php
96
+ $supports_conditionals = breeze_is_supported( 'conditional_htaccess' );
97
+
98
+ $is_disabled = is_multisite() && ! is_network_admin() && ! $supports_conditionals;
99
+ $basic_value = isset( $basic['breeze-gzip-compression'] ) ? filter_var( $basic['breeze-gzip-compression'], FILTER_VALIDATE_BOOLEAN ) : false;
100
+ $is_checked = isset( $basic['breeze-gzip-compression'] ) && true === $basic_value && ! $is_disabled;
101
+
102
+ $disable_overlay = '';
103
+ if ( $is_disabled ) {
104
+ $disable_overlay = ' br-apply-disable';
105
+ }
106
+ ?>
107
+ <div class="br-option-item<?php echo $disable_overlay; ?>">
108
  <div class="br-label">
109
  <div class="br-option-text">
110
  <?php _e( 'Gzip Compression', 'breeze' ); ?>
111
  </div>
112
  </div>
113
  <div class="br-option">
 
 
114
 
 
 
 
 
115
  <div class="on-off-checkbox">
116
+ <label class="br-switcher">
117
+ <input id="gzip-compression" type="checkbox" name="gzip-compression" class="br-box" value="1"
118
+ <?php echo $is_disabled ? 'disabled="disabled"' : ''; ?> <?php checked( $is_checked, true ); ?>/>
119
+ <div class="br-see-state">
120
+ </div>
121
+ </label><br>
122
  </div>
123
+
124
  <div class="br-note">
125
  <p>
126
  <?php _e( 'Enable this to compress your files making HTTP requests fewer and faster.', 'breeze' ); ?>
138
  <!-- END OPTION -->
139
 
140
  <!-- START OPTION -->
141
+ <?php
142
+ $supports_conditionals = breeze_is_supported( 'conditional_htaccess' );
143
+
144
+ $is_disabled = is_multisite() && ! is_network_admin() && ! $supports_conditionals;
145
+ $basic_value = isset( $basic['breeze-browser-cache'] ) ? filter_var( $basic['breeze-browser-cache'], FILTER_VALIDATE_BOOLEAN ) : false;
146
+ $is_checked = isset( $basic['breeze-browser-cache'] ) && true === $basic_value && ! $is_disabled;
147
+
148
+ $disable_overlay = '';
149
+ if ( $is_disabled ) {
150
+ $disable_overlay = ' br-apply-disable';
151
+ }
152
+ ?>
153
+ <div class="br-option-item<?php echo $disable_overlay; ?>">
154
  <div class="br-label">
155
  <div class="br-option-text">
156
  <?php _e( 'Browser Cache', 'breeze' ); ?>
157
  </div>
158
  </div>
159
  <div class="br-option">
 
 
160
 
 
 
 
 
161
  <div class="on-off-checkbox">
162
+ <label class="br-switcher">
163
+ <input id="browser-cache" type="checkbox" name="browser-cache" class="br-box" value="1"
164
+ <?php echo $is_disabled ? 'disabled="disabled"' : ''; ?> <?php checked( $is_checked, true ); ?>/>
165
+ <div class="br-see-state">
166
+ </div>
167
+ </label><br>
168
  </div>
169
+
170
  <div class="br-note">
171
  <p>
172
  <?php _e( 'Enable this to add expires headers to static files. This will ask browsers to either request a file from server or fetch from the browser’s cache.', 'breeze' ); ?>
202
  $check_basic = ( isset( $basic_value ) && true === $basic_value ) ? checked( $basic['breeze-lazy-load'], '1', false ) : '';
203
  ?>
204
  <div class="on-off-checkbox">
205
+ <label class="br-switcher">
206
+ <input id="bz-lazy-load" type="checkbox" name="bz-lazy-load" class="br-box" value='1' <?php echo $disabled; ?> <?php echo $check_basic; ?>/>
207
+ <div class="br-see-state">
208
+ </div>
209
+ </label><br>
210
  </div>
211
+
212
+
213
  <div class="br-note">
214
  <p><?php _e( 'Images will begin to load before being displayed on screen.', 'breeze' ); ?></p>
215
  <?php
242
  ?>
243
 
244
  <span <?php echo $hide; ?> id="native-lazy-option-iframe">
245
+
246
+ <div class="on-off-checkbox">
247
+ <label class="br-switcher">
248
  <input id="bz-lazy-load-iframe" type="checkbox" name="bz-lazy-load-iframe" class="br-box" value='1' <?php echo $iframe_lazy_load; ?>>
249
+ <div class="br-see-state">
250
+ </div>
251
+ </label><br>
252
  </div>
253
+
254
  <p>
255
  <?php _e( 'iFrame lazy load', 'breeze' ); ?><br/>
256
  </p>
265
  </span>
266
 
267
  <span <?php echo $hide; ?> id="native-lazy-option">
268
+ <div class="on-off-checkbox">
269
+ <label class="br-switcher">
270
  <input id="bz-lazy-load-nat" type="checkbox" name="bz-lazy-load-nat" class="br-box" value='1' <?php echo $native_lazy_load; ?>>
271
+ <div class="br-see-state">
272
+ </div>
273
+ </label><br>
274
+ </div>
275
+
276
+
277
  <p>
278
  <?php _e( 'Enable native browser lazy load', 'breeze' ); ?><br/>
279
  </p>
305
  $check_basic = ( isset( $basic_value ) && true === $basic_value ) ? checked( $basic['breeze-cross-origin'], '1', false ) : '';
306
  ?>
307
  <div class="on-off-checkbox">
308
+ <label class="br-switcher">
309
+ <input id="safe-cross-origin" type="checkbox" name="safe-cross-origin" class="br-box" <?php echo $check_basic; ?> value='1'/>
310
+ <div class="br-see-state">
311
+ </div>
312
+ </label><br>
313
  </div>
314
+
315
  <div class="br-note">
316
  <p><?php _e( 'Apply “noopener noreferrer” to links which have target”_blank” attribute and the anchor leads to external websites', 'breeze' ); ?></p>
317
  </div>
342
  ?>
343
  <strong><?php echo esc_html( $user_role_data['name'] ); ?></strong>
344
  <div class="on-off-checkbox">
345
+ <label class="br-switcher">
346
+ <input id="breeze-admin-cache-<?php echo esc_attr( $user_role ); ?>" type="checkbox" name="breeze-admin-cache[<?php echo esc_attr( $user_role ); ?>]" class="br-box"
347
+ value="1" <?php echo $check_role; ?>>
348
+ <div class="br-see-state">
349
+ </div>
350
+ </label><br>
351
  </div>
352
 
353
+
354
  <br/>
355
  <?php
356
  }
views/option-tabs/cdn-tab.php CHANGED
@@ -50,11 +50,13 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/cdn-active.png';
50
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['cdn-active'], '1', false ) : '';
51
  ?>
52
  <div class="on-off-checkbox">
53
- <input id="activate-cdn" name="activate-cdn" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
54
- <label for="activate-cdn">
55
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
56
- </label>
 
57
  </div>
 
58
  <div class="br-note">
59
  <p>
60
  <?php _e( 'Enable to make CDN effective on your website.', 'breeze' ); ?>
@@ -173,11 +175,13 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/cdn-active.png';
173
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['cdn-relative-path'], '1', false ) : '';
174
  ?>
175
  <div class="on-off-checkbox">
176
- <input id="cdn-relative-path" name="cdn-relative-path" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
177
- <label for="cdn-relative-path">
178
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
179
- </label>
 
180
  </div>
 
181
  <div class="br-note">
182
  <p>
183
  <?php
50
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['cdn-active'], '1', false ) : '';
51
  ?>
52
  <div class="on-off-checkbox">
53
+ <label class="br-switcher">
54
+ <input id="activate-cdn" name="activate-cdn" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
55
+ <div class="br-see-state">
56
+ </div>
57
+ </label><br>
58
  </div>
59
+
60
  <div class="br-note">
61
  <p>
62
  <?php _e( 'Enable to make CDN effective on your website.', 'breeze' ); ?>
175
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['cdn-relative-path'], '1', false ) : '';
176
  ?>
177
  <div class="on-off-checkbox">
178
+ <label class="br-switcher">
179
+ <input id="cdn-relative-path" name="cdn-relative-path" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
180
+ <div class="br-see-state">
181
+ </div>
182
+ </label><br>
183
  </div>
184
+
185
  <div class="br-note">
186
  <p>
187
  <?php
views/option-tabs/database-tab.php CHANGED
@@ -117,7 +117,14 @@ $sections_actions = array(
117
  </div>
118
  <br/>
119
  <div class="cta-cleanall">
120
- <input type="checkbox" name="br-clean-all" id="br-clean-all"/>
 
 
 
 
 
 
 
121
  <label for="br-clean-all" class="br-clean-label"><?php _e( 'Clean All', 'breeze' ); ?> <span class="br-has">( <?php echo esc_html( $total_no ); ?> )</span></label>
122
  <p>
123
  <?php _e( 'Cleall the trashed posts and pages.', 'breeze' ); ?>
117
  </div>
118
  <br/>
119
  <div class="cta-cleanall">
120
+
121
+ <div class="on-off-checkbox brilbr">
122
+ <label class="br-switcher">
123
+ <input type="checkbox" name="br-clean-all" id="br-clean-all"/>
124
+ <div class="br-see-state">
125
+ </div>
126
+ </label><br>
127
+ </div>
128
  <label for="br-clean-all" class="br-clean-label"><?php _e( 'Clean All', 'breeze' ); ?> <span class="br-has">( <?php echo esc_html( $total_no ); ?> )</span></label>
129
  <p>
130
  <?php _e( 'Cleall the trashed posts and pages.', 'breeze' ); ?>
views/option-tabs/file-tab.php CHANGED
@@ -50,11 +50,13 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/file-active.png';
50
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-minify-html'], '1', false ) : '';
51
  ?>
52
  <div class="on-off-checkbox">
53
- <input id="minification-html" name="minification-html" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
54
- <label for="minification-html">
55
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
56
- </label>
 
57
  </div>
 
58
  <div class="br-note">
59
  <p>
60
  <?php
@@ -101,11 +103,13 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/file-active.png';
101
 
102
  ?>
103
  <div class="on-off-checkbox">
104
- <input id="minification-css" name="minification-css" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
105
- <label for="minification-css">
106
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
107
- </label>
 
108
  </div>
 
109
  <div class="br-note">
110
  <p>
111
  <?php _e( 'Minify CSS removes whitespace and comments to reduce the file size.', 'breeze' ); ?>
@@ -123,11 +127,13 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/file-active.png';
123
  ?>
124
  <div id="font-display-swap" <?php echo $is_font_display; ?>>
125
  <div class="on-off-checkbox">
126
- <input id="font-display" name="font-display" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
127
- <label for="font-display">
128
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
129
- </label>
 
130
  </div>
 
131
  <p>
132
  <?php _e( 'Font remain visible during load', 'breeze' ); ?><br/>
133
  </p>
@@ -148,33 +154,36 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/file-active.png';
148
  <!-- END OPTION -->
149
 
150
  <!-- START OPTION -->
151
- <div class="br-option-item">
 
 
 
 
 
 
 
 
 
 
 
152
  <div class="br-label">
153
  <div class="br-option-text">
154
  <?php _e( 'Include Inline CSS', 'breeze' ); ?>
155
  </div>
156
  </div>
157
  <div class="br-option">
158
- <?php
159
- $basic_value = isset( $options['breeze-include-inline-css'] ) ? filter_var( $options['breeze-include-inline-css'], FILTER_VALIDATE_BOOLEAN ) : false;
160
- $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-include-inline-css'], '1', false ) : '';
161
- $disable_inline_css = '';
162
 
163
- if ( false === $css_minify_state ) {
164
- $disable_inline_css = 'disabled="disabled"';
165
- }
166
- ?>
167
  <div class="on-off-checkbox">
168
- <input id="include-inline-css" name="include-inline-css" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?> <?php echo $disable_inline_css; ?>>
169
- <label for="include-inline-css">
170
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
171
- </label>
 
172
  </div>
 
173
  <div class="br-note">
174
  <p>
175
  <?php _e( 'Minify Inline CSS removes whitespace and create seprate cache file for inline CSS.', 'breeze' ); ?>
176
-
177
-
178
  </p>
179
  </div>
180
  </div>
@@ -182,29 +191,34 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/file-active.png';
182
  <!-- END OPTION -->
183
 
184
  <!-- START OPTION -->
185
- <div class="br-option-item">
 
 
 
 
 
 
 
 
 
 
 
 
186
  <div class="br-label">
187
  <div class="br-option-text">
188
  <?php _e( 'Combine CSS', 'breeze' ); ?>
189
  </div>
190
  </div>
191
  <div class="br-option">
192
- <?php
193
- $basic_value = isset( $options['breeze-group-css'] ) ? filter_var( $options['breeze-group-css'], FILTER_VALIDATE_BOOLEAN ) : false;
194
- $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-group-css'], '1', false ) : '';
195
-
196
- $disable_group_css = '';
197
 
198
- if ( false === $css_minify_state ) {
199
- $disable_group_css = 'disabled="disabled"';
200
- }
201
- ?>
202
  <div class="on-off-checkbox">
203
- <input id="group-css" name="group-css" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?> <?php echo $disable_group_css; ?>>
204
- <label for="group-css">
205
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
206
- </label>
 
207
  </div>
 
208
  <div class="br-note">
209
  <p>
210
  <?php _e( 'Combine CSS merges all your minified files into a single file, reducing HTTP requests.', 'breeze' ); ?>
@@ -215,28 +229,33 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/file-active.png';
215
  <!-- END OPTION -->
216
 
217
  <!-- START OPTION -->
218
- <div class="br-option-item">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219
  <div class="br-label">
220
  <div class="br-option-text">
221
  <?php _e( 'Exclude CSS', 'breeze' ); ?>
222
  </div>
223
  </div>
224
  <div class="br-option">
225
- <?php
226
-
227
- if ( isset( $options['breeze-exclude-css'] ) && ! empty( $options['breeze-exclude-css'] ) ) {
228
- $excluded_css_check = breeze_validate_urls( $options['breeze-exclude-css'] );
229
- if ( true === $excluded_css_check ) {
230
- $excluded_css_check_extension = breeze_validate_the_right_extension( $options['breeze-exclude-css'], 'css' );
231
- }
232
- }
233
 
234
- $css_output = '';
235
- if ( ! empty( $options['breeze-exclude-css'] ) ) {
236
- $output = implode( "\n", $options['breeze-exclude-css'] );
237
- $css_output = esc_textarea( $output );
238
- }
239
- ?>
240
  <textarea cols="100" rows="7" id="exclude-css" name="exclude-css"
241
  placeholder="Exclude CSS on the basis of the folder&#10;https://demo/wp-content/plugins/some-plugin/assets/css/demo(.*)&#10;&#10;Exclude CSS on the basis of the file name&#10;https://demo/wp-content/plugins/some-plugin/assets/css/demo_1/css_random_someplugin_(.*).css"><?php echo $css_output; ?></textarea>
242
  <div class="br-note">
@@ -281,11 +300,13 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/file-active.png';
281
  }
282
  ?>
283
  <div class="on-off-checkbox">
284
- <input id="minification-js" name="minification-js" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
285
- <label for="minification-js">
286
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
287
- </label>
 
288
  </div>
 
289
  <div class="br-note">
290
  <p>
291
  <?php _e( 'Minify JavaScript removes whitespace and comments to reduce the file size.', 'breeze' ); ?>
@@ -307,29 +328,32 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/file-active.png';
307
  <!-- END OPTION -->
308
 
309
  <!-- START OPTION -->
310
- <div class="br-option-item">
 
 
 
 
 
 
 
 
 
 
 
311
  <div class="br-label">
312
  <div class="br-option-text">
313
  <?php _e( 'Combine JS', 'breeze' ); ?>
314
  </div>
315
  </div>
316
  <div class="br-option">
317
- <?php
318
- $basic_value = isset( $options['breeze-group-js'] ) ? filter_var( $options['breeze-group-js'], FILTER_VALIDATE_BOOLEAN ) : false;
319
- $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-group-js'], '1', false ) : '';
320
-
321
- $disable_group_js = '';
322
-
323
- if ( false === $js_minify_state ) {
324
- $disable_group_js = 'disabled="disabled"';
325
- }
326
- ?>
327
  <div class="on-off-checkbox">
328
- <input id="group-js" name="group-js" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?> <?php echo $disable_group_js; ?>>
329
- <label for="group-js">
330
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
331
- </label>
 
332
  </div>
 
333
  <div class="br-note">
334
  <p>
335
  <?php _e( 'Combine JS merges all your minified files into a single file, reducing HTTP requests.', 'breeze' ); ?>
@@ -340,29 +364,33 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/file-active.png';
340
  <!-- END OPTION -->
341
 
342
  <!-- START OPTION -->
343
- <div class="br-option-item">
 
 
 
 
 
 
 
 
 
 
 
344
  <div class="br-label">
345
  <div class="br-option-text">
346
  <?php _e( 'Include Inline JS', 'breeze' ); ?>
347
  </div>
348
  </div>
349
  <div class="br-option">
350
- <?php
351
- $basic_value = isset( $options['breeze-include-inline-js'] ) ? filter_var( $options['breeze-include-inline-js'], FILTER_VALIDATE_BOOLEAN ) : false;
352
- $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-include-inline-js'], '1', false ) : '';
353
 
354
- $disable_inline_js = '';
355
-
356
- if ( false === $js_minify_state ) {
357
- $disable_inline_js = 'disabled="disabled"';
358
- }
359
- ?>
360
  <div class="on-off-checkbox">
361
- <input id="include-inline-js" name="include-inline-js" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?> <?php echo $disable_inline_js; ?>>
362
- <label for="include-inline-js">
363
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
364
- </label>
 
365
  </div>
 
366
  <div class="br-note">
367
  <p>
368
  <?php _e( 'Minify Inline JS removes whitespace and create seprate cache file for inline JS.', 'breeze' ); ?>
@@ -374,28 +402,33 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/file-active.png';
374
  <!-- END OPTION -->
375
 
376
  <!-- START OPTION -->
377
- <div class="br-option-item">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
378
  <div class="br-label">
379
  <div class="br-option-text">
380
  <?php _e( 'Exclude JS', 'breeze' ); ?>
381
  </div>
382
  </div>
383
  <div class="br-option">
384
- <?php
385
- if ( isset( $options['breeze-exclude-js'] ) && ! empty( $options['breeze-exclude-js'] ) ) {
386
- $excluded_js_check = breeze_validate_urls( $options['breeze-exclude-js'] );
387
- if ( true === $excluded_js_check ) {
388
- $excluded_js_check_extension = breeze_validate_the_right_extension( $options['breeze-exclude-js'], 'js' );
389
- }
390
- }
391
-
392
- $js_output = '';
393
- if ( ! empty( $options['breeze-exclude-js'] ) ) {
394
- $output = implode( "\n", $options['breeze-exclude-js'] );
395
- $js_output = esc_textarea( $output );
396
- }
397
-
398
- ?>
399
  <textarea cols="100" rows="7" id="exclude-js" name="exclude-js"
400
  placeholder="Exclude JS on the basis of the folder&#10;https://demo/wp-content/plugins/some-plugin/assets/js/demo(.*)&#10;&#10;Exclude JS on the basis of the file name&#10;https://demo/wp-content/plugins/some-plugin/assets/js/demo_1/js_random_someplugin_(.*).js"><?php echo $js_output; ?></textarea>
401
  <div class="br-note">
@@ -568,12 +601,13 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/file-active.png';
568
  $delay_inline_disabled = 'disabled="disabled"';
569
  }
570
  ?>
571
- <div class="on-off-checkbox">
572
- <input <?php echo $delay_inline_disabled; ?> id="enable-js-delay" name="enable-js-delay" type="checkbox" class="br-box" value="1" <?php echo $is_enabled_inlinejs; ?>>
573
- <label for="enable-js-delay">
574
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
575
- </label>
576
- </div>
 
577
  <?php
578
  $js_output = '';
579
  if ( ! empty( $options['breeze-delay-js-scripts'] ) ) {
@@ -637,12 +671,14 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/file-active.png';
637
  $delay_js_disabled = 'disabled="disabled"';
638
  }
639
  ?>
640
- <div class="on-off-checkbox">
641
- <input <?php echo $delay_js_disabled; ?> id="breeze-delay-all-js" name="breeze-delay-all-js" type="checkbox" class="br-box" value="1" <?php echo $is_enabled_all; ?>>
642
- <label for="breeze-delay-all-js">
643
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
644
- </label>
645
- </div>
 
 
646
  <div class="br-note">
647
  <p>
648
  <?php _e( 'Improve the page load by delaying JavaScript execution.', 'breeze' ); ?>
50
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-minify-html'], '1', false ) : '';
51
  ?>
52
  <div class="on-off-checkbox">
53
+ <label class="br-switcher">
54
+ <input id="minification-html" name="minification-html" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
55
+ <div class="br-see-state">
56
+ </div>
57
+ </label><br>
58
  </div>
59
+
60
  <div class="br-note">
61
  <p>
62
  <?php
103
 
104
  ?>
105
  <div class="on-off-checkbox">
106
+ <label class="br-switcher">
107
+ <input id="minification-css" name="minification-css" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
108
+ <div class="br-see-state">
109
+ </div>
110
+ </label><br>
111
  </div>
112
+
113
  <div class="br-note">
114
  <p>
115
  <?php _e( 'Minify CSS removes whitespace and comments to reduce the file size.', 'breeze' ); ?>
127
  ?>
128
  <div id="font-display-swap" <?php echo $is_font_display; ?>>
129
  <div class="on-off-checkbox">
130
+ <label class="br-switcher">
131
+ <input id="font-display" name="font-display" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
132
+ <div class="br-see-state">
133
+ </div>
134
+ </label><br>
135
  </div>
136
+
137
  <p>
138
  <?php _e( 'Font remain visible during load', 'breeze' ); ?><br/>
139
  </p>
154
  <!-- END OPTION -->
155
 
156
  <!-- START OPTION -->
157
+ <?php
158
+ $basic_value = isset( $options['breeze-include-inline-css'] ) ? filter_var( $options['breeze-include-inline-css'], FILTER_VALIDATE_BOOLEAN ) : false;
159
+ $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-include-inline-css'], '1', false ) : '';
160
+ $disable_inline_css = '';
161
+ $disable_overlay = '';
162
+
163
+ if ( false === $css_minify_state ) {
164
+ //$disable_inline_css = 'disabled="disabled"';
165
+ $disable_overlay = ' br-apply-disable';
166
+ }
167
+ ?>
168
+ <div class="br-option-item<?php echo $disable_overlay; ?>">
169
  <div class="br-label">
170
  <div class="br-option-text">
171
  <?php _e( 'Include Inline CSS', 'breeze' ); ?>
172
  </div>
173
  </div>
174
  <div class="br-option">
 
 
 
 
175
 
 
 
 
 
176
  <div class="on-off-checkbox">
177
+ <label class="br-switcher">
178
+ <input id="include-inline-css" name="include-inline-css" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?> <?php echo $disable_inline_css; ?>>
179
+ <div class="br-see-state">
180
+ </div>
181
+ </label><br>
182
  </div>
183
+
184
  <div class="br-note">
185
  <p>
186
  <?php _e( 'Minify Inline CSS removes whitespace and create seprate cache file for inline CSS.', 'breeze' ); ?>
 
 
187
  </p>
188
  </div>
189
  </div>
191
  <!-- END OPTION -->
192
 
193
  <!-- START OPTION -->
194
+ <?php
195
+ $basic_value = isset( $options['breeze-group-css'] ) ? filter_var( $options['breeze-group-css'], FILTER_VALIDATE_BOOLEAN ) : false;
196
+ $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-group-css'], '1', false ) : '';
197
+
198
+ $disable_group_css = '';
199
+ $disable_overlay = '';
200
+
201
+ if ( false === $css_minify_state ) {
202
+ //$disable_group_css = 'disabled="disabled"';
203
+ $disable_overlay = ' br-apply-disable';
204
+ }
205
+ ?>
206
+ <div class="br-option-item<?php echo $disable_overlay; ?>">
207
  <div class="br-label">
208
  <div class="br-option-text">
209
  <?php _e( 'Combine CSS', 'breeze' ); ?>
210
  </div>
211
  </div>
212
  <div class="br-option">
 
 
 
 
 
213
 
 
 
 
 
214
  <div class="on-off-checkbox">
215
+ <label class="br-switcher">
216
+ <input id="group-css" name="group-css" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?> <?php echo $disable_group_css; ?>>
217
+ <div class="br-see-state">
218
+ </div>
219
+ </label><br>
220
  </div>
221
+
222
  <div class="br-note">
223
  <p>
224
  <?php _e( 'Combine CSS merges all your minified files into a single file, reducing HTTP requests.', 'breeze' ); ?>
229
  <!-- END OPTION -->
230
 
231
  <!-- START OPTION -->
232
+ <?php
233
+
234
+ if ( isset( $options['breeze-exclude-css'] ) && ! empty( $options['breeze-exclude-css'] ) ) {
235
+ $excluded_css_check = breeze_validate_urls( $options['breeze-exclude-css'] );
236
+ if ( true === $excluded_css_check ) {
237
+ $excluded_css_check_extension = breeze_validate_the_right_extension( $options['breeze-exclude-css'], 'css' );
238
+ }
239
+ }
240
+
241
+ $css_output = '';
242
+ if ( ! empty( $options['breeze-exclude-css'] ) ) {
243
+ $output = implode( "\n", $options['breeze-exclude-css'] );
244
+ $css_output = esc_textarea( $output );
245
+ }
246
+ $disable_overlay = '';
247
+ if ( false === $css_minify_state ) {
248
+ $disable_overlay = ' br-apply-disable';
249
+ }
250
+ ?>
251
+ <div class="br-option-item<?php echo $disable_overlay; ?>">
252
  <div class="br-label">
253
  <div class="br-option-text">
254
  <?php _e( 'Exclude CSS', 'breeze' ); ?>
255
  </div>
256
  </div>
257
  <div class="br-option">
 
 
 
 
 
 
 
 
258
 
 
 
 
 
 
 
259
  <textarea cols="100" rows="7" id="exclude-css" name="exclude-css"
260
  placeholder="Exclude CSS on the basis of the folder&#10;https://demo/wp-content/plugins/some-plugin/assets/css/demo(.*)&#10;&#10;Exclude CSS on the basis of the file name&#10;https://demo/wp-content/plugins/some-plugin/assets/css/demo_1/css_random_someplugin_(.*).css"><?php echo $css_output; ?></textarea>
261
  <div class="br-note">
300
  }
301
  ?>
302
  <div class="on-off-checkbox">
303
+ <label class="br-switcher">
304
+ <input id="minification-js" name="minification-js" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
305
+ <div class="br-see-state">
306
+ </div>
307
+ </label><br>
308
  </div>
309
+
310
  <div class="br-note">
311
  <p>
312
  <?php _e( 'Minify JavaScript removes whitespace and comments to reduce the file size.', 'breeze' ); ?>
328
  <!-- END OPTION -->
329
 
330
  <!-- START OPTION -->
331
+ <?php
332
+ $basic_value = isset( $options['breeze-group-js'] ) ? filter_var( $options['breeze-group-js'], FILTER_VALIDATE_BOOLEAN ) : false;
333
+ $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-group-js'], '1', false ) : '';
334
+
335
+ $disable_group_js = '';
336
+ $disable_overlay = '';
337
+ if ( false === $js_minify_state ) {
338
+ //$disable_group_js = 'disabled="disabled"';
339
+ $disable_overlay = ' br-apply-disable';
340
+ }
341
+ ?>
342
+ <div class="br-option-item<?php echo $disable_overlay; ?>">
343
  <div class="br-label">
344
  <div class="br-option-text">
345
  <?php _e( 'Combine JS', 'breeze' ); ?>
346
  </div>
347
  </div>
348
  <div class="br-option">
 
 
 
 
 
 
 
 
 
 
349
  <div class="on-off-checkbox">
350
+ <label class="br-switcher">
351
+ <input id="group-js" name="group-js" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?> <?php echo $disable_group_js; ?>>
352
+ <div class="br-see-state">
353
+ </div>
354
+ </label><br>
355
  </div>
356
+
357
  <div class="br-note">
358
  <p>
359
  <?php _e( 'Combine JS merges all your minified files into a single file, reducing HTTP requests.', 'breeze' ); ?>
364
  <!-- END OPTION -->
365
 
366
  <!-- START OPTION -->
367
+ <?php
368
+ $basic_value = isset( $options['breeze-include-inline-js'] ) ? filter_var( $options['breeze-include-inline-js'], FILTER_VALIDATE_BOOLEAN ) : false;
369
+ $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-include-inline-js'], '1', false ) : '';
370
+
371
+ $disable_inline_js = '';
372
+ $disable_overlay = '';
373
+ if ( false === $js_minify_state ) {
374
+ //$disable_inline_js = 'disabled="disabled"';
375
+ $disable_overlay = ' br-apply-disable';
376
+ }
377
+ ?>
378
+ <div class="br-option-item<?php echo $disable_overlay; ?>">
379
  <div class="br-label">
380
  <div class="br-option-text">
381
  <?php _e( 'Include Inline JS', 'breeze' ); ?>
382
  </div>
383
  </div>
384
  <div class="br-option">
 
 
 
385
 
 
 
 
 
 
 
386
  <div class="on-off-checkbox">
387
+ <label class="br-switcher">
388
+ <input id="include-inline-js" name="include-inline-js" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?> <?php echo $disable_inline_js; ?>>
389
+ <div class="br-see-state">
390
+ </div>
391
+ </label><br>
392
  </div>
393
+
394
  <div class="br-note">
395
  <p>
396
  <?php _e( 'Minify Inline JS removes whitespace and create seprate cache file for inline JS.', 'breeze' ); ?>
402
  <!-- END OPTION -->
403
 
404
  <!-- START OPTION -->
405
+ <?php
406
+ if ( isset( $options['breeze-exclude-js'] ) && ! empty( $options['breeze-exclude-js'] ) ) {
407
+ $excluded_js_check = breeze_validate_urls( $options['breeze-exclude-js'] );
408
+ if ( true === $excluded_js_check ) {
409
+ $excluded_js_check_extension = breeze_validate_the_right_extension( $options['breeze-exclude-js'], 'js' );
410
+ }
411
+ }
412
+
413
+ $js_output = '';
414
+ if ( ! empty( $options['breeze-exclude-js'] ) ) {
415
+ $output = implode( "\n", $options['breeze-exclude-js'] );
416
+ $js_output = esc_textarea( $output );
417
+ }
418
+
419
+ $disable_overlay = '';
420
+ if ( false === $js_minify_state ) {
421
+ $disable_overlay = ' br-apply-disable';
422
+ }
423
+
424
+ ?>
425
+ <div class="br-option-item<?php echo $disable_overlay; ?>">
426
  <div class="br-label">
427
  <div class="br-option-text">
428
  <?php _e( 'Exclude JS', 'breeze' ); ?>
429
  </div>
430
  </div>
431
  <div class="br-option">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
432
  <textarea cols="100" rows="7" id="exclude-js" name="exclude-js"
433
  placeholder="Exclude JS on the basis of the folder&#10;https://demo/wp-content/plugins/some-plugin/assets/js/demo(.*)&#10;&#10;Exclude JS on the basis of the file name&#10;https://demo/wp-content/plugins/some-plugin/assets/js/demo_1/js_random_someplugin_(.*).js"><?php echo $js_output; ?></textarea>
434
  <div class="br-note">
601
  $delay_inline_disabled = 'disabled="disabled"';
602
  }
603
  ?>
604
+ <div class="on-off-checkbox">
605
+ <label class="br-switcher">
606
+ <input <?php echo $delay_inline_disabled; ?> id="enable-js-delay" name="enable-js-delay" type="checkbox" class="br-box" value="1" <?php echo $is_enabled_inlinejs; ?>>
607
+ <div class="br-see-state">
608
+ </div>
609
+ </label><br>
610
+ </div>
611
  <?php
612
  $js_output = '';
613
  if ( ! empty( $options['breeze-delay-js-scripts'] ) ) {
671
  $delay_js_disabled = 'disabled="disabled"';
672
  }
673
  ?>
674
+ <div class="on-off-checkbox">
675
+ <label class="br-switcher">
676
+ <input <?php echo $delay_js_disabled; ?> id="breeze-delay-all-js" name="breeze-delay-all-js" type="checkbox" class="br-box" value="1" <?php echo $is_enabled_all; ?>>
677
+ <div class="br-see-state">
678
+ </div>
679
+ </label><br>
680
+ </div>
681
+
682
  <div class="br-note">
683
  <p>
684
  <?php _e( 'Improve the page load by delaying JavaScript execution.', 'breeze' ); ?>
views/option-tabs/heartbeat-tab.php CHANGED
@@ -46,12 +46,15 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/heartbeat-active.png';
46
  $basic_value = isset( $options['breeze-control-heartbeat'] ) ? filter_var( $options['breeze-control-heartbeat'], FILTER_VALIDATE_BOOLEAN ) : false;
47
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-control-heartbeat'], '1', false ) : '';
48
  ?>
 
49
  <div class="on-off-checkbox">
50
- <input id="breeze-control-hb" name="breeze-control-hb" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
51
- <label for="breeze-control-hb">
52
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
53
- </label>
 
54
  </div>
 
55
  <div class="br-note">
56
  <p>
57
  <?php
46
  $basic_value = isset( $options['breeze-control-heartbeat'] ) ? filter_var( $options['breeze-control-heartbeat'], FILTER_VALIDATE_BOOLEAN ) : false;
47
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-control-heartbeat'], '1', false ) : '';
48
  ?>
49
+
50
  <div class="on-off-checkbox">
51
+ <label class="br-switcher">
52
+ <input id="breeze-control-hb" name="breeze-control-hb" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
53
+ <div class="br-see-state">
54
+ </div>
55
+ </label><br>
56
  </div>
57
+
58
  <div class="br-note">
59
  <p>
60
  <?php
views/option-tabs/preload-tab.php CHANGED
@@ -109,11 +109,13 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/preload-active.png';
109
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-preload-links'], '1', false ) : '';
110
  ?>
111
  <div class="on-off-checkbox">
112
- <input id="preload-links" name="preload-links" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
113
- <label for="preload-links">
114
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
115
- </label>
 
116
  </div>
 
117
  <div class="br-note">
118
  <p>
119
  <?php
109
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['breeze-preload-links'], '1', false ) : '';
110
  ?>
111
  <div class="on-off-checkbox">
112
+ <label class="br-switcher">
113
+ <input id="preload-links" name="preload-links" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
114
+ <div class="br-see-state">
115
+ </div>
116
+ </label><br>
117
  </div>
118
+
119
  <div class="br-note">
120
  <p>
121
  <?php
views/option-tabs/varnish-tab.php CHANGED
@@ -53,11 +53,13 @@ $icon = BREEZE_PLUGIN_URL . 'assets/images/varnish-active.png';
53
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['auto-purge-varnish'], '1', false ) : '';
54
  ?>
55
  <div class="on-off-checkbox">
56
- <input id="auto-purge-varnish" name="auto-purge-varnish" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
57
- <label for="auto-purge-varnish">
58
- <div class="status-switch" data-unchecked="OFF" data-checked="ON"></div>
59
- </label>
 
60
  </div>
 
61
  <div class="br-note">
62
  <p>
63
  <?php _e( 'Keep this option enabled to automatically purge Varnish cache on actions like publishing new blog posts, pages and comments.', 'breeze' ); ?>
53
  $is_enabled = ( isset( $basic_value ) && true === $basic_value ) ? checked( $options['auto-purge-varnish'], '1', false ) : '';
54
  ?>
55
  <div class="on-off-checkbox">
56
+ <label class="br-switcher">
57
+ <input id="auto-purge-varnish" name="auto-purge-varnish" type="checkbox" class="br-box" value="1" <?php echo $is_enabled; ?>>
58
+ <div class="br-see-state">
59
+ </div>
60
+ </label><br>
61
  </div>
62
+
63
  <div class="br-note">
64
  <p>
65
  <?php _e( 'Keep this option enabled to automatically purge Varnish cache on actions like publishing new blog posts, pages and comments.', 'breeze' ); ?>