Speed Booster Pack - Version 3.7.6

Version Description

  • Improved admin UI
  • Added "Disable Self Pingbacks" option
  • Added "Disable Dashicons" option
  • Added "Disable Google Maps" option
  • Added "Disable Heartbeat" option
  • Added "Heartbeat frequency" option
  • Added "Autosave interval" option
  • Added "Remove REST API Links" option
  • Added "Limit Post Revision" option
  • Added CDN options
  • Added Google Analytics options
  • Removed "Remove RSD(Really Simple Discovery) Link" option
  • Removed "Image compression level" option
Download this release

Release Info

Developer machothemes
Plugin Icon 128x128 Speed Booster Pack
Version 3.7.6
Comparing to
See all releases

Code changes from version 3.7.5 to 3.7.6

css/style.css CHANGED
@@ -160,9 +160,9 @@ p.description-link {
160
  border: 1px solid #e5e5e5;
161
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
162
  padding: 15px;
163
- margin-bottom: 15px;
164
  position: relative;
165
- overflow: hidden;
166
  }
167
 
168
  .wrap .sb-pack .sbp-box p {
@@ -253,254 +253,6 @@ p.description-link {
253
  vertical-align: top;
254
  }
255
 
256
- /* Jquery UI slider
257
- -------------------------------------------------------------- */
258
-
259
- .wrap .sb-pack.ui-state-default,
260
- .wrap .sb-pack .ui-widget-content .ui-state-default,
261
- .wrap .sb-pack .ui-widget-header .ui-state-default {
262
- border: 1px solid #1a9e51;
263
- background-color: #2dcb73;
264
- font-weight: 400;
265
- color: #555;
266
- outline: 0 none;
267
- cursor: pointer;
268
- }
269
-
270
- .wrap .sb-pack .ui-state-default:before,
271
- .wrap .sb-pack .ui-widget-content .ui-state-default:before,
272
- .wrap .sb-pack .ui-widget-header .ui-state-default:before {
273
- content: "\2630";
274
- display: inline-block;
275
- -webkit-font-smoothing: antialiased;
276
- color: #fff;
277
- font-weight: 700;
278
- text-shadow: 0 1px #1a9e51;
279
- line-height: 1.8em;
280
- }
281
-
282
- .wrap .sb-pack .ui-state-default a,
283
- .wrap .sb-pack .ui-state-default a:link,
284
- .wrap .sb-pack .ui-state-default a:visited {
285
- color: #fff;
286
- text-decoration: none;
287
- }
288
-
289
- .wrap .sb-pack .ui-state-focus,
290
- .wrap .sb-pack .ui-state-hover,
291
- .wrap .sb-pack .ui-widget-content .ui-state-focus,
292
- .wrap .sb-pack .ui-widget-content .ui-state-hover,
293
- .wrap .sb-pack .ui-widget-header .ui-state-focus,
294
- .wrap .sb-pack .ui-widget-header .ui-state-hover {
295
- background: #3ce281;
296
- }
297
-
298
- .wrap .sb-pack .ui-corner-all,
299
- .wrap .sb-pack .ui-corner-top,
300
- .wrap .sb-pack .ui-corner-left,
301
- .wrap .sb-pack .ui-corner-tl {
302
- border-top-left-radius: 0;
303
- }
304
-
305
- .wrap .sb-pack .ui-corner-all,
306
- .wrap .sb-pack .ui-corner-top,
307
- .wrap .sb-pack .ui-corner-right,
308
- .wrap .sb-pack .ui-corner-tr {
309
- border-top-right-radius: 0;
310
- }
311
-
312
- .wrap .sb-pack .ui-corner-bottom,
313
- .wrap .sb-pack .ui-corner-left,
314
- .wrap .sb-pack .ui-corner-bl {
315
- border-bottom-left-radius: 0;
316
- }
317
-
318
- .wrap .sb-pack .ui-corner-all,
319
- .wrap .sb-pack .ui-corner-bottom,
320
- .wrap .sb-pack .ui-corner-right,
321
- .wrap .sb-pack .ui-corner-br {
322
- border-bottom-right-radius: 0;
323
- }
324
-
325
- .wrap .sb-pack .ui-corner-all,
326
- .wrap .sb-pack .ui-corner-bottom,
327
- .wrap .sb-pack .ui-corner-left,
328
- .wrap .sb-pack .ui-corner-bl {
329
- border-bottom-left-radius: 0;
330
- }
331
-
332
- .wrap .sb-pack .ui-slider-horizontal {
333
- height: 1.3em;
334
- }
335
-
336
- .wrap .sb-pack .ui-slider .ui-slider-handle {
337
- width: 1.8em;
338
- height: 1.8em;
339
- cursor: pointer;
340
- text-align: center;
341
- }
342
-
343
- .wrap .sb-pack .ui-widget-content {
344
- -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
345
- -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
346
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
347
- border: 1px solid #b2bfca;
348
- background: #f1f2f7;
349
- color: #222
350
- }
351
-
352
- /* Progress Bars
353
- -------------------------------------------------------------- */
354
- .wrap .sb-pack .sbp-progress.time,
355
- .wrap .sb-pack .sbp-progress.queries {
356
- height: 30px;
357
- width: 77%;
358
- display: inline-block;
359
- position: relative;
360
- background-color: #f1f2f7;
361
- overflow: hidden;
362
- -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
363
- -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
364
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
365
- }
366
-
367
- .wrap .sbp-progress.time > span,
368
- .wrap .sbp-progress.queries > span {
369
- background-color: #7edba5;
370
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #7edba5), color-stop(1, #2dcb73));
371
- background-image: -webkit-linear-gradient(top, #7edba5, #2dcb73);
372
- background-image: -moz-linear-gradient(top, #7edba5, #2dcb73);
373
- background-image: -ms-linear-gradient(top, #7edba5, #2dcb73);
374
- background-image: -o-linear-gradient(top, #7edba5, #f36d0a);
375
- color: #fff;
376
- width: 0%;
377
- max-width: 98%;
378
- float: left;
379
- display: block;
380
- height: 100%;
381
- position: relative;
382
- overflow: hidden;
383
- }
384
-
385
- .wrap .sb-pack .sbp-progress.time > span {
386
- -webkit-animation: progress-bar-time 2s 1 forwards;
387
- -moz-animation: progress-bar-time 2s 1 forwards;
388
- -ms-animation: progress-bar-time 2s 1 forwards;
389
- -o-animation: progress-bar-time 2s 1 forwards;
390
- animation: progress-bar-time 2s 1 forwards;
391
- }
392
-
393
- .wrap .sb-pack .sbp-progress.queries > span {
394
- -webkit-animation: progress-bar-queries 2s 1 forwards;
395
- -moz-animation: progress-bar-queries 2s 1 forwards;
396
- -ms-animation: progress-bar-queries 2s 1 forwards;
397
- -o-animation: progress-bar-queries 2s 1 forwards;
398
- animation: progress-bar-queries 2s 1 forwards;
399
- }
400
-
401
- .wrap .sb-pack .sbp-values {
402
- float: right;
403
- padding: 0 5px;
404
- background-color: #1ab4ef;
405
- color: #fff;
406
- width: 18%;
407
- height: 30px;
408
- line-height: 30px;
409
- text-align: center;
410
- text-shadow: 0px -2px #1ab4ef;
411
- }
412
-
413
- .wrap .sb-pack .sbp-numbers {
414
- -webkit-animation: opacity 2s; /* Safari and Chrome */
415
- -moz-animation: opacity 2s; /* Firefox */
416
- -ms-animation: opacity 2s; /* Internet Explorer */
417
- -o-animation: opacity 2s; /* Opera */
418
- animation: opacity 2s;
419
- transition-delay: 2s;
420
- -moz-transition-delay: 2s; /* Firefox 4 */
421
- -webkit-transition-delay: 2s; /* Safari and Chrome */
422
- -o-transition-delay: 2s; /* Opera */
423
- }
424
-
425
- @keyframes opacity {
426
- from { opacity: 0; }
427
- to { opacity: 1; }
428
- }
429
-
430
- /* Firefox */
431
- @-moz-keyframes opacity {
432
- from { opacity: 0; }
433
- to { opacity: 1; }
434
- }
435
-
436
- /* Safari and Chrome */
437
- @-webkit-keyframes opacity {
438
- from { opacity: 0; }
439
- to { opacity: 1; }
440
- }
441
-
442
- /* Internet Explorer */
443
- @-ms-keyframes opacity {
444
- from { opacity: 0; }
445
- to { opacity: 1; }
446
- }
447
-
448
-
449
-
450
- /* Opera */
451
- @-o-keyframes opacity {
452
- from { opacity: 0; }
453
- to { opacity: 1; }
454
- }
455
-
456
-
457
-
458
- @media screen and (max-width: 783px) {
459
- .wrap .sb-pack input.regular-text {
460
- width: 14em;
461
- }
462
- }
463
-
464
- @media screen and (min-width: 784px) {
465
- .wrap .sb-pack input.regular-text {
466
- width: 45em;
467
- }
468
- }
469
-
470
- /* Feedback Box */
471
- .feedback-box {
472
- border: 1px dashed #555;
473
- background: #fff;
474
- width: 100%;
475
- padding: 40px;
476
- text-align: center;
477
- margin-top: 15px;
478
- box-sizing: border-box;
479
- }
480
-
481
- .feedback-box .button.button-feedback {
482
- padding: 10px 40px;
483
- height: initial;
484
- }
485
-
486
- #sbp-current-image img {
487
- max-width: 130px;
488
- height: auto;
489
- }
490
-
491
- .feedback-box h3 {
492
- font-weight: 700;
493
- }
494
-
495
- .feedback-box h3 > img {
496
- width: 30px;
497
- }
498
-
499
- .feedback-box > p {
500
- max-width: 720px;
501
- margin: 0 auto;
502
- }
503
-
504
  /* sbp-tooltips */
505
  /**
506
  * Tooltip Styles
@@ -709,58 +461,6 @@ p.description-link {
709
  margin-bottom: -16px;
710
  }
711
 
712
- /* ShortPixel Banner Styling */
713
- .sbp-recommended-plugins {
714
- border: 1px solid #e5e5e5;
715
- box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
716
- margin-top: 1em;
717
- }
718
-
719
- .sbp-recommended-plugins h3 {
720
- margin: 0 0 15px 0;
721
- }
722
-
723
- .sbp-recommended-plugins .sbp-recommended-plugin {
724
- background-color: #fff;
725
- display: flex;
726
- align-items: center;
727
- padding: 2em 1em;
728
- }
729
-
730
- .sbp-recommended-plugins .sbp-recommended-plugin:nth-child( even ) {
731
- background-color: #fcfcfc;
732
- border-top: 1px solid #e5e5e5;
733
- border-bottom: 1px solid #e5e5e5;
734
- }
735
-
736
- .sbp-recommended-plugins .sbp-recommended-plugin .plugin-image {
737
- width: 128px;
738
- }
739
-
740
- .sbp-recommended-plugins .sbp-recommended-plugin .plugin-information {
741
- padding-left: 30px;
742
- box-sizing: border-box;
743
- width: calc(100% - 128px);
744
- }
745
-
746
- .sbp-recommended-plugins .sbp-recommended-plugin .plugin-information .plugin-name,
747
- .sbp-recommended-plugins .sbp-recommended-plugin .plugin-information .plugin-description {
748
- margin: 0;
749
- }
750
-
751
- .sbp-recommended-plugins .sbp-recommended-plugin .plugin-information .plugin-description {
752
- margin-bottom: 10px;
753
- }
754
-
755
- .sbp-recommended-plugins .sbp-recommended-plugin .sbp-plugin-button.sbp-updating:before {
756
- font: normal 20px/1 dashicons;
757
- display: inline-block;
758
- content: "\f463";
759
- -webkit-animation: rotation 2s infinite linear;
760
- animation: rotation 2s infinite linear;
761
- margin: 3px 5px 0 -2px;
762
- vertical-align: top;
763
- }
764
 
765
  /* Welcome Logo*/
766
  .wp-badge.sbp-welcome-logo {
@@ -772,119 +472,153 @@ p.description-link {
772
  padding-top: 160px;
773
  }
774
 
775
- /* Support Page */
776
- .center-support {text-align: center;}
777
 
778
- /* Fast as a rabbit, slow as a snail box */
779
- .sbp-fast-as-a-rabbit {
780
- background-color: #fff;
781
- width: 100%;
782
- border-radius: 5px;
 
 
783
  position: relative;
784
- margin: 15px auto;
 
785
  }
786
 
787
- .sbp-fast-as-a-rabbit > div {
788
- display: inline-block;
789
- border-right: 1px solid #f3f3f3;
790
- padding: 10px 20px;
791
- text-align: center;
792
  vertical-align: middle;
 
 
793
  }
794
 
795
- .sbp-fast-as-a-rabbit > div > i {margin-right: 8px;}
796
-
797
- .sbp-fast-as-a-rabbit > div > span { font-weight: bold;}
798
-
799
- /*
800
- .sbp-fast-as-a-rabbit > div:last-of-type .button {border-radius: 5px;}
801
-
802
- .sbp-fast-as-a-rabbit > div:last-of-type .button-secondary { color: #9a9a9a;}
803
 
804
- .sbp-fast-as-a-rabbit > div:last-of-type .button-primary {padding-left: 20px; padding-right: 20px;}
 
 
 
 
 
 
 
 
805
 
806
- .sbp-fast-as-a-rabbit > div:last-of-type .dashicons {
 
 
 
807
  vertical-align: middle;
808
- height: 24px;
809
  }
810
 
811
- .sbp-fast-as-a-rabbit > div:last-of-type {
812
- text-align: right;
813
- position: absolute;
814
- right: 0;
815
- top: 50%;
816
- margin-top: -26px;
817
  }
818
 
819
- */
820
-
821
- .sbp-fast-as-a-rabbit > div:nth-of-type(4),
822
- .sbp-fast-as-a-rabbit > div:nth-of-type(5) {
823
- border-right: 0;
 
 
 
 
 
 
 
 
 
824
  }
825
 
826
- /* Progress bars */
827
- .sbp-fast-as-a-rabbit progress {
828
- margin-left: 8px;
 
 
 
 
 
 
829
  }
830
 
831
- .sbp-progress-bar {
832
- padding: 5px;
 
 
 
 
 
 
 
 
 
833
  }
834
 
835
- .sbp-progress-bar progress {
836
- background-color: #f3f3f3;
837
- border: 1px solid #ececec;
838
- border-radius: 9px;
839
- margin-right: 8px;
 
840
  }
841
 
842
- .sbp-progress-bar progress::-webkit-progress-bar {
843
- background-color: #f3f3f3;
844
- border-radius: 9px;
 
 
 
 
 
845
  }
846
 
847
- .sbp-progress-bar progress::-webkit-progress-value {
848
- background: green;
849
- border-radius: 9px;
 
 
850
  }
851
 
852
- .sbp-progress-bar progress::-moz-progress-bar {
853
- background: green;
854
- border-radius: 9px;
 
855
  }
856
 
857
- .sbp-progress-bar progress.sbp-progress-red::-webkit-progress-value {background: red;}
 
 
858
 
859
- .sbp-progress-bar progress.sbp-progress-red::-moz-progress-bar {background: red;}
 
 
860
 
861
- .sbp-progress-bar .progress-value {
862
- padding: 0px 5px;
863
- line-height: 20px;
864
- margin-left: 5px;
865
- font-size: .8em;
866
- color: #555;
867
- height: 18px;
868
  }
869
 
870
- /* Box */
871
  .sbp-box {
872
- height: 330px;
873
- margin-top: 15px;
874
- text-align: center;
875
- background: #FFF;
876
- position: relative;
877
- border: 1px solid rgba(0, 0, 0, .1);
878
- float: left;
879
  }
880
 
881
  .sbp-box img {
882
- width: 125px;
883
- height: 125px;
884
- margin: 0 auto;
885
- margin-bottom: 15px;
886
- display: block;
887
- border: none;
888
  }
889
 
890
  .sbp-box__name {
@@ -894,33 +628,28 @@ p.description-link {
894
  }
895
 
896
  .sbp-box__description {
897
- font-size: 0.9em;
 
 
898
  }
899
 
900
  .sbp-box__action-bar {
901
- position: absolute;
902
- bottom: 0;
903
- left: 0;
904
- right: 0;
905
- font-size: 15px;
906
- margin: 0;
907
- padding: 15px;
908
- -webkit-box-shadow: inset 0 1px 0 rgba(0, 0, 0, .1);
909
- box-shadow: inset 0 1px 0 rgba(0, 0, 0, .1);
910
- white-space: nowrap;
911
- text-overflow: ellipsis;
912
- background: rgba(255, 255, 255, .65);
913
- text-align: left;
914
  }
915
 
916
  .sbp-box__action-button {
917
- position: absolute;
918
- bottom: 0px;
919
- right: 0px;
920
- padding: 9px 10px 10px;
921
- background: #f6f6f6;
922
- border-top: 1px solid rgba(0, 0, 0, .1);
923
- text-align: center;
924
- width: 100%;
925
- }
926
-
160
  border: 1px solid #e5e5e5;
161
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
162
  padding: 15px;
163
+ margin: 15px 0;
164
  position: relative;
165
+ text-align: center;
166
  }
167
 
168
  .wrap .sb-pack .sbp-box p {
253
  vertical-align: top;
254
  }
255
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
256
  /* sbp-tooltips */
257
  /**
258
  * Tooltip Styles
461
  margin-bottom: -16px;
462
  }
463
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
464
 
465
  /* Welcome Logo*/
466
  .wp-badge.sbp-welcome-logo {
472
  padding-top: 160px;
473
  }
474
 
 
 
475
 
476
+ /* Update design */
477
+ .sb-pack .label-text {
478
+ display:inline-block;
479
+ min-width: 350px;
480
+ }
481
+
482
+ .sb-pack .onoffswitch-wrapper {
483
  position: relative;
484
+ width:100%;
485
+ margin-bottom:15px;
486
  }
487
 
488
+ .sb-pack .onoffswitch-wrapper span.chekbox-title {
 
 
 
 
489
  vertical-align: middle;
490
+ display:inline-block;
491
+ min-width: 350px;
492
  }
493
 
494
+ .sb-pack .onoffswitch_label {
495
+ display: inline-block;
496
+ vertical-align: top;
497
+ margin-right: 21px;
498
+ margin-top: -1px;
499
+ }
 
 
500
 
501
+ .sb-pack .onoffswitch {
502
+ position: relative;
503
+ width: 52px;
504
+ display: inline-block;
505
+ -webkit-user-select: none;
506
+ -moz-user-select: none;
507
+ -ms-user-select: none;
508
+ vertical-align:middle;
509
+ }
510
 
511
+ .epsilon-toggle {
512
+ position: relative;
513
+ user-select: none;
514
+ display:inline-block;
515
  vertical-align: middle;
 
516
  }
517
 
518
+ .epsilon-toggle__items {
519
+ box-sizing: border-box;
 
 
 
 
520
  }
521
 
522
+ .epsilon-toggle__input[type=checkbox] {
523
+ border-radius: 2px;
524
+ border: 2px solid #6c7781;
525
+ margin-right: 12px;
526
+ transition: none;
527
+ height: 100%;
528
+ left: 0;
529
+ top: 0;
530
+ margin: 0;
531
+ padding: 0;
532
+ opacity: 0;
533
+ position: absolute;
534
+ width: 100%;
535
+ z-index: 1;
536
  }
537
 
538
+ .epsilon-toggle__track {
539
+ background-color: #fff;
540
+ border: 2px solid #6c7781;
541
+ border-radius: 9px;
542
+ display: inline-block;
543
+ height: 18px;
544
+ width: 36px;
545
+ vertical-align: top;
546
+ transition: background .2s ease;
547
  }
548
 
549
+ .epsilon-toggle__thumb {
550
+ background-color: #6c7781;
551
+ border: 5px solid #6c7781;
552
+ border-radius: 50%;
553
+ display: block;
554
+ height: 10px;
555
+ width: 10px;
556
+ position: absolute;
557
+ left: 4px;
558
+ top: 4px;
559
+ transition: transform .2s ease;
560
  }
561
 
562
+ .epsilon-toggle__off {
563
+ position: absolute;
564
+ right: 6px;
565
+ top: 6px;
566
+ color: #6c7781;
567
+ fill: currentColor;
568
  }
569
 
570
+ .epsilon-toggle__on {
571
+ position: absolute;
572
+ top: 6px;
573
+ left: 8px;
574
+ border: 1px solid #fff;
575
+ outline: 1px solid transparent;
576
+ outline-offset: -1px;
577
+ display: none;
578
  }
579
 
580
+ /*.epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items {*/
581
+
582
+ .epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__track {
583
+ background-color: #11a0d2;
584
+ border: 9px solid transparent;
585
  }
586
 
587
+ .epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__thumb {
588
+ background-color: #fff;
589
+ border-width: 0;
590
+ transform: translateX(18px);
591
  }
592
 
593
+ .epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__off {
594
+ display: none;
595
+ }
596
 
597
+ .epsilon-toggle__input[type=checkbox]:checked + .epsilon-toggle__items .epsilon-toggle__on {
598
+ display: inline-block;
599
+ }
600
 
601
+ .sb-pack-tab .tooltip-right {
602
+ display:inline-block;
603
+ vertical-align: middle;
 
 
 
 
604
  }
605
 
606
+ +/* Box */
607
  .sbp-box {
608
+ margin-top: 15px;
609
+ text-align: center;
610
+ background: #FFF;
611
+ position: relative;
612
+ border: 1px solid rgba(0, 0, 0, .1);
 
 
613
  }
614
 
615
  .sbp-box img {
616
+ width: 125px;
617
+ height: 125px;
618
+ margin: 0 auto;
619
+ margin-bottom: 15px;
620
+ display: block;
621
+ border: none;
622
  }
623
 
624
  .sbp-box__name {
628
  }
629
 
630
  .sbp-box__description {
631
+ font-size: 0.875em;
632
+ margin-bottom: 15px;
633
+ font-style: italic;
634
  }
635
 
636
  .sbp-box__action-bar {
637
+ padding: 15px;
638
+ -webkit-box-shadow: inset 0 1px 0 rgba(0, 0, 0, .1);
639
+ box-shadow: inset 0 1px 0 rgba(0, 0, 0, .1);
640
+ white-space: nowrap;
641
+ text-overflow: ellipsis;
642
+ background: rgba(255, 255, 255, .65);
643
+ text-align: left;
 
 
 
 
 
 
644
  }
645
 
646
  .sbp-box__action-button {
647
+ position: absolute;
648
+ bottom: 0px;
649
+ right: 0px;
650
+ padding: 9px 10px 10px;
651
+ background: #f6f6f6;
652
+ border-top: 1px solid rgba(0, 0, 0, .1);
653
+ text-align: center;
654
+ width: 100%;
655
+ }
 
inc/class-sb-pack-review.php ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SB_Pack_Review {
4
+
5
+ private static $instance;
6
+ private $when = array( 5, 15, 30 );
7
+ private $value;
8
+ private $messages;
9
+ private $link = 'https://wordpress.org/support/plugin/%s/reviews/#new-post';
10
+ private $slug = '';
11
+ private $option_name = '';
12
+
13
+ function __construct( $args ) {
14
+
15
+ if ( isset( $args['slug'] ) ) {
16
+ $this->slug = $args['slug'];
17
+ }
18
+
19
+ $this->value = $this->value();
20
+
21
+ $this->messages = array(
22
+ 'notice' => __( "Hey, I noticed you have installed our plugin for %s day(s) - that's awesome! Could you please do me a BIG favor and give it a 5-star rating on WordPress? Just to help us spread the word and boost our motivation.", 'speed-booster-pack' ),
23
+ 'rate' => __( 'Ok, you deserve it', 'speed-booster-pack' ),
24
+ 'rated' => __( 'I already did', 'speed-booster-pack' ),
25
+ 'no_rate' => __( 'No, not good enough', 'speed-booster-pack' ),
26
+ );
27
+
28
+ if ( isset( $args['messages'] ) ) {
29
+ $this->messages = wp_parse_args( $args['messages'], $this->messages );
30
+ }
31
+
32
+ $this->init();
33
+
34
+ }
35
+
36
+ public static function get_instance( $args ) {
37
+ if ( null === static::$instance ) {
38
+ static::$instance = new static( $args );
39
+ }
40
+
41
+ return static::$instance;
42
+ }
43
+
44
+ private function init() {
45
+ if ( ! is_admin() ) {
46
+ return;
47
+ }
48
+
49
+ add_action( 'wp_ajax_epsilon_review', array( $this, 'ajax' ) );
50
+
51
+ if ( $this->check() ) {
52
+ add_action( 'admin_notices', array( $this, 'five_star_wp_rate_notice' ) );
53
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ) );
54
+ add_action( 'admin_print_footer_scripts', array( $this, 'ajax_script' ) );
55
+ }
56
+
57
+ }
58
+
59
+ private function check() {
60
+
61
+ $options = get_option( 'sbp_settings' );
62
+ $option = isset( $options['givemereview'] ) ? $options['givemereview'] : '';
63
+ $currDate = date( 'Y-m-d' );
64
+ if ( 'already-rated' == $option ) {
65
+ return false;
66
+ }
67
+
68
+ if ( $this->value == $option ) {
69
+ return false;
70
+ }
71
+
72
+ if ( is_array( $this->when ) ) {
73
+ foreach ( $this->when as $et ) {
74
+ if ( date( 'Y-m-d', strtotime( $currDate . ' +' . $et . ' days' ) ) == $this->value ) {
75
+ return true;
76
+ }
77
+
78
+ }
79
+ }
80
+
81
+ }
82
+
83
+ private function value() {
84
+
85
+ $value = get_transient( 'sb_pack_review' );
86
+
87
+ if ( $value ) {
88
+
89
+ $current_time = time(); // or your date as well
90
+ $trans_date = strtotime($value);
91
+ $date_diff = $current_time - $trans_date;
92
+
93
+ return round($date_diff / (60 * 60 * 24));
94
+ }
95
+
96
+ $date = date( 'Y-m-d' );
97
+ set_transient( 'sb_pack_review', $date, 24 * 30 * HOUR_IN_SECONDS );
98
+
99
+ }
100
+
101
+ public function five_star_wp_rate_notice() {
102
+
103
+ $url = sprintf( $this->link, $this->slug );
104
+
105
+ ?>
106
+ <div id="<?php echo $this->slug ?>-epsilon-review-notice" class="notice notice-success is-dismissible">
107
+ <p><?php echo sprintf( wp_kses_post( $this->messages['notice'] ), $this->value ); ?></p>
108
+ <p class="actions">
109
+ <a id="epsilon-rate" href="<?php echo esc_url( $url ) ?>"
110
+ class="button button-primary epsilon-review-button"><?php echo esc_html( $this->messages['rate'] ); ?></a>
111
+ <a id="epsilon-rated" href="#"
112
+ class="button button-secondary epsilon-review-button"><?php echo esc_html( $this->messages['rated'] ); ?></a>
113
+ <a id="epsilon-no-rate" href="#"
114
+ class="button button-secondary epsilon-review-button"><?php echo esc_html( $this->messages['no_rate'] ); ?></a>
115
+ </p>
116
+ </div>
117
+ <?php
118
+ }
119
+
120
+ public function ajax() {
121
+
122
+ check_ajax_referer( 'epsilon-review', 'security' );
123
+
124
+ $options = get_option( 'sbp_settings', array() );
125
+
126
+ if ( isset( $_POST['epsilon-review'] ) ) {
127
+ $options['givemereview'] = 'already-rated';
128
+ } else {
129
+ $options['givemereview'] = $this->value;
130
+ }
131
+
132
+ update_option( 'sbp_settings', $options );
133
+
134
+ wp_die( 'ok' );
135
+
136
+ }
137
+
138
+ public function enqueue() {
139
+ wp_enqueue_script( 'jquery' );
140
+ }
141
+
142
+ public function ajax_script() {
143
+
144
+ $ajax_nonce = wp_create_nonce( "epsilon-review" );
145
+
146
+ ?>
147
+
148
+ <script type="text/javascript">
149
+ jQuery(document).ready(function ($) {
150
+
151
+ $('.epsilon-review-button').click(function (evt) {
152
+ var href = $(this).attr('href'),
153
+ id = $(this).attr('id');
154
+
155
+ evt.preventDefault();
156
+
157
+ var data = {
158
+ action: 'epsilon_review',
159
+ security: '<?php echo $ajax_nonce; ?>',
160
+ };
161
+
162
+ if ('epsilon-rated' === id) {
163
+ data['epsilon-review'] = 1;
164
+ }
165
+
166
+ $.post('<?php echo admin_url( 'admin-ajax.php' ) ?>', data, function (response) {
167
+ $('#<?php echo $this->slug ?>-epsilon-review-notice').slideUp('fast', function () {
168
+ $(this).remove();
169
+ });
170
+
171
+ if ('epsilon-rate' === id) {
172
+ window.location.href = href;
173
+ }
174
+
175
+ });
176
+
177
+ });
178
+
179
+ });
180
+ </script>
181
+
182
+ <?php
183
+ }
184
+ }
inc/core.php CHANGED
@@ -14,15 +14,46 @@ if ( ! class_exists( 'Speed_Booster_Pack_Core' ) ) {
14
 
15
  add_action( 'wp_enqueue_scripts', array( $this, 'sbp_no_more_fontawesome' ), 9999 );
16
  add_action( 'wp_enqueue_scripts', array( $this, 'sbp_move_scripts_to_footer' ) );
17
- if ( ! is_admin() and isset( $sbp_options['jquery_to_footer'] ) ) {
18
  add_action( 'wp_head', array( $this, 'sbp_scripts_to_head' ) );
19
  }
20
  add_action( 'init', array( $this, 'sbp_show_page_load_stats' ), 999 );
21
  add_action( 'after_setup_theme', array( $this, 'sbp_junk_header_tags' ) );
22
  add_action( 'init', array( $this, 'sbp_init' ) );
23
-
24
-
25
- $this->sbp_css_optimizer(); // CSS Optimizer functions
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
 
28
  // Use Google Libraries
@@ -31,7 +62,6 @@ if ( ! class_exists( 'Speed_Booster_Pack_Core' ) ) {
31
  }
32
 
33
 
34
-
35
  // Minifier
36
  if ( ! is_admin() and isset( $sbp_options['minify_html_js'] ) ) {
37
  $this->sbp_minifier();
@@ -66,14 +96,121 @@ if ( ! class_exists( 'Speed_Booster_Pack_Core' ) ) {
66
  * @since 3.7
67
  */
68
  // Disable XML-RPC
69
- if ( ! isset( $sbp_options['disable_xmlrpc'] ) ) {
70
  add_filter( 'xmlrpc_enabled', '__return_false' );
71
  add_filter( 'wp_headers', array( $this, 'sbp_remove_x_pingback' ) );
72
  add_filter( 'pings_open', '__return_false', 9999 );
73
  }
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  } // END public public function __construct
76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
 
78
  /*--------------------------------------------------------------------------------------------------------
79
  Init the CSS Optimizer actions
@@ -144,7 +281,8 @@ if ( ! class_exists( 'Speed_Booster_Pack_Core' ) ) {
144
  if ( ! empty( $not_inlined ) ) {
145
  foreach ( $not_inlined as $style ) {
146
  ?>
147
- <link rel="stylesheet" href="<?php echo $style['src'] ?>" type="text/css" <?php echo $style['media'] ? "media=\"{$style['media']}\"" : '' ?> /><?php
 
148
  }
149
  }
150
  }
@@ -180,7 +318,8 @@ if ( ! class_exists( 'Speed_Booster_Pack_Core' ) ) {
180
  if ( ! empty( $not_inlined ) ) {
181
  foreach ( $not_inlined as $style ) {
182
  ?>
183
- <link rel="stylesheet" href="<?php echo $style['src'] ?>" type="text/css" <?php echo $style['media'] ? "media=\"{$style['media']}\"" : '' ?> /><?php
 
184
  }
185
  }
186
  }
@@ -420,8 +559,6 @@ if ( ! class_exists( 'Speed_Booster_Pack_Core' ) ) {
420
  } // End function sbp_use_google_libraries()
421
 
422
 
423
-
424
-
425
  /*--------------------------------------------------------------------------------------------------------
426
  Minify HTML and Javascripts
427
  ---------------------------------------------------------------------------------------------------------*/
@@ -542,6 +679,22 @@ if ( ! class_exists( 'Speed_Booster_Pack_Core' ) ) {
542
  return $headers;
543
  }
544
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
545
  /*--------------------------------------------------------------------------------------------------------
546
  Dequeue extra Font Awesome stylesheet
547
  ---------------------------------------------------------------------------------------------------------*/
@@ -607,5 +760,182 @@ if ( ! class_exists( 'Speed_Booster_Pack_Core' ) ) {
607
  }
608
 
609
  } // END public function sbp_junk_header_tags
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
610
  } // END class Speed_Booster_Pack_Core
611
  } // END if(!class_exists('Speed_Booster_Pack_Core'))
14
 
15
  add_action( 'wp_enqueue_scripts', array( $this, 'sbp_no_more_fontawesome' ), 9999 );
16
  add_action( 'wp_enqueue_scripts', array( $this, 'sbp_move_scripts_to_footer' ) );
17
+ if ( ! is_admin() and !isset( $sbp_options['jquery_to_footer'] ) ) {
18
  add_action( 'wp_head', array( $this, 'sbp_scripts_to_head' ) );
19
  }
20
  add_action( 'init', array( $this, 'sbp_show_page_load_stats' ), 999 );
21
  add_action( 'after_setup_theme', array( $this, 'sbp_junk_header_tags' ) );
22
  add_action( 'init', array( $this, 'sbp_init' ) );
23
+ //enable cdn rewrite
24
+ if(!empty($sbp_options['sbp_enable_cdn']) && $sbp_options['sbp_enable_cdn'] == "1" && !empty($sbp_options['sbp_cdn_url'])) {
25
+ add_action('template_redirect', array($this,'sbp_cdn_rewrite'));
26
+ }
27
+
28
+ // Start GA
29
+ if(!empty($sbp_options['sbp_enable_local_analytics']) && $sbp_options['sbp_enable_local_analytics'] == "1") {
30
+ if(!wp_next_scheduled('sbp_update_ga')) {
31
+ wp_schedule_event(time(), 'daily', 'sbp_update_ga');
32
+ }
33
+
34
+ if(!empty($sbp_options['sbp_monsterinsights']) && $sbp_options['sbp_monsterinsights'] == "1") {
35
+ add_filter('monsterinsights_frontend_output_analytics_src', array($this,'sbp_monster_ga'), 1000);
36
+ }
37
+ else {
38
+ if(!empty($sbp_options['sbp_tracking_position']) && $sbp_options['sbp_tracking_position'] == 'footer') {
39
+ $tracking_code_position = 'wp_footer';
40
+ }
41
+ else {
42
+ $tracking_code_position = 'wp_head';
43
+ }
44
+ add_action($tracking_code_position, array($this,'sbp_print_ga'), 0);
45
+ }
46
+ }
47
+ else {
48
+ if(wp_next_scheduled('sbp_update_ga')) {
49
+ wp_clear_scheduled_hook('sbp_update_ga');
50
+ }
51
+ }
52
+
53
+ add_action('sbp_update_ga', array($this,'sbp_update_ga'));
54
+ // End GA
55
+
56
+ $this->sbp_css_optimizer(); // CSS Optimizer functions
57
 
58
 
59
  // Use Google Libraries
62
  }
63
 
64
 
 
65
  // Minifier
66
  if ( ! is_admin() and isset( $sbp_options['minify_html_js'] ) ) {
67
  $this->sbp_minifier();
96
  * @since 3.7
97
  */
98
  // Disable XML-RPC
99
+ if ( isset( $sbp_options['disable_xmlrpc'] ) ) {
100
  add_filter( 'xmlrpc_enabled', '__return_false' );
101
  add_filter( 'wp_headers', array( $this, 'sbp_remove_x_pingback' ) );
102
  add_filter( 'pings_open', '__return_false', 9999 );
103
  }
104
 
105
+ // Disable Self Pingbacks
106
+ if ( isset( $sbp_options['disable_self_pingbacks'] ) ) {
107
+ add_action( 'pre_ping', array($this,'sbp_remove_self_ping' ));
108
+ }
109
+
110
+ // Remove REST API Links
111
+ if ( isset( $sbp_options['remove_rest_api_links'] ) ) {
112
+ remove_action( 'wp_head', 'rest_output_link_wp_head', 10 );
113
+ }
114
+
115
+ //Disable Dash icons
116
+ if ( isset( $sbp_options['disable_dashicons'] ) ) {
117
+ add_action( 'wp_enqueue_scripts', array( $this, 'sbp_disable_dash_icons' ) );
118
+ }
119
+
120
+ if ( isset( $sbp_options['disable_google_maps'] ) ) {
121
+ add_action( 'wp_loaded', array( $this, 'sbp_disable_google_maps' ) );
122
+ }
123
+
124
+ if ( isset( $sbp_options['disable_password_strength_meter'] ) ) {
125
+ add_action( 'wp_print_scripts', array( $this, 'sbp_disable_password_strength_meter' ), 100 );
126
+ }
127
+
128
+ if ( isset( $sbp_options['disable_heartbeat'] ) ) {
129
+ add_action( 'init', array( $this, 'sbp_disable_heartbeat' ), 1 );
130
+ }
131
+
132
+ if ( ! empty( $sbp_options['heartbeat_frequency'] ) ) {
133
+ add_filter( 'heartbeat_settings', array( $this, 'sbp_heartbeat_frequency' ), 1 );
134
+ }
135
+
136
+ if ( ! empty( $sbp_options['limit_post_revisions'] ) ) {
137
+ define( 'WP_POST_REVISIONS', $sbp_options['limit_post_revisions'] );
138
+ }
139
+
140
+ if ( ! empty( $sbp_options['autosave_interval'] ) ) {
141
+ define( 'AUTOSAVE_INTERVAL', $sbp_options['autosave_interval'] );
142
+ }
143
+
144
  } // END public public function __construct
145
 
146
+ /*--------------------------------------------------------------------------------------------------------
147
+ Disable Dash icons
148
+ ---------------------------------------------------------------------------------------------------------*/
149
+ function sbp_disable_dash_icons() {
150
+ if ( ! is_user_logged_in() ) {
151
+ wp_dequeue_style( 'dashicons' );
152
+ wp_deregister_style( 'dashicons' );
153
+ }
154
+ }
155
+
156
+ /*--------------------------------------------------------------------------------------------------------
157
+ Disable Heartbeat
158
+ ---------------------------------------------------------------------------------------------------------*/
159
+
160
+ function sbp_disable_heartbeat() {
161
+ wp_deregister_script( 'heartbeat' );
162
+ }
163
+
164
+ /*--------------------------------------------------------------------------------------------------------
165
+ Heartbeat Frequency
166
+ ---------------------------------------------------------------------------------------------------------*/
167
+
168
+ function sbp_heartbeat_frequency() {
169
+ global $sbp_options;
170
+ $settings['interval'] = $sbp_options['heartbeat_frequency']; //Anything between 15-120
171
+
172
+ return $settings;
173
+ }
174
+
175
+ /*--------------------------------------------------------------------------------------------------------
176
+ Disable Google Maps
177
+ ---------------------------------------------------------------------------------------------------------*/
178
+
179
+ function sbp_disable_google_maps() {
180
+ ob_start( array( $this, 'sbp_disable_google_maps_regex' ) );
181
+ }
182
+
183
+ function sbp_disable_google_maps_regex( $html ) {
184
+ $html = preg_replace( '/<script[^<>]*\/\/maps.(googleapis|google|gstatic).com\/[^<>]*><\/script>/i', '', $html );
185
+
186
+ return $html;
187
+ }
188
+
189
+ /*--------------------------------------------------------------------------------------------------------
190
+ Disable Password Strength Meter
191
+ ---------------------------------------------------------------------------------------------------------*/
192
+
193
+ function sbp_disable_password_strength_meter() {
194
+ global $wp;
195
+
196
+ $wp_check = isset( $wp->query_vars['lost-password'] ) || ( isset( $_GET['action'] ) && $_GET['action'] === 'lostpassword' ) || is_page( 'lost_password' );
197
+
198
+ $wc_check = ( class_exists( 'WooCommerce' ) && ( is_account_page() || is_checkout() ) );
199
+
200
+ if ( ! $wp_check && ! $wc_check ) {
201
+ if ( wp_script_is( 'zxcvbn-async', 'enqueued' ) ) {
202
+ wp_dequeue_script( 'zxcvbn-async' );
203
+ }
204
+
205
+ if ( wp_script_is( 'password-strength-meter', 'enqueued' ) ) {
206
+ wp_dequeue_script( 'password-strength-meter' );
207
+ }
208
+
209
+ if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) {
210
+ wp_dequeue_script( 'wc-password-strength-meter' );
211
+ }
212
+ }
213
+ }
214
 
215
  /*--------------------------------------------------------------------------------------------------------
216
  Init the CSS Optimizer actions
281
  if ( ! empty( $not_inlined ) ) {
282
  foreach ( $not_inlined as $style ) {
283
  ?>
284
+ <link rel="stylesheet" href="<?php echo $style['src'] ?>"
285
+ type="text/css" <?php echo $style['media'] ? "media=\"{$style['media']}\"" : '' ?> /><?php
286
  }
287
  }
288
  }
318
  if ( ! empty( $not_inlined ) ) {
319
  foreach ( $not_inlined as $style ) {
320
  ?>
321
+ <link rel="stylesheet" href="<?php echo $style['src'] ?>"
322
+ type="text/css" <?php echo $style['media'] ? "media=\"{$style['media']}\"" : '' ?> /><?php
323
  }
324
  }
325
  }
559
  } // End function sbp_use_google_libraries()
560
 
561
 
 
 
562
  /*--------------------------------------------------------------------------------------------------------
563
  Minify HTML and Javascripts
564
  ---------------------------------------------------------------------------------------------------------*/
679
  return $headers;
680
  }
681
 
682
+ /*--------------------------------------------------------------------------------------------------------
683
+ Disable Self Pingbacks
684
+ ---------------------------------------------------------------------------------------------------------*/
685
+
686
+ function sbp_remove_self_ping( &$links ) {
687
+
688
+ $home = get_option( 'home' );
689
+ foreach ( $links as $l => $link ) {
690
+ if ( 0 === strpos( $link, $home ) ) {
691
+ unset( $links[ $l ] );
692
+ }
693
+ }
694
+
695
+ }
696
+
697
+
698
  /*--------------------------------------------------------------------------------------------------------
699
  Dequeue extra Font Awesome stylesheet
700
  ---------------------------------------------------------------------------------------------------------*/
760
  }
761
 
762
  } // END public function sbp_junk_header_tags
763
+
764
+
765
+ /*--------------------------------
766
+ CDN Rewrite URLs
767
+ ---------------------------------*/
768
+
769
+ function sbp_cdn_rewrite() {
770
+ ob_start(array($this,'sbp_cdn_rewriter'));
771
+ }
772
+
773
+ function sbp_cdn_rewriter($html) {
774
+ global $sbp_options;
775
+ $sbp_cdn_directories = $sbp_options['sbp_cdn_included_directories'];
776
+
777
+ //Prep Site URL
778
+ $escapedSiteURL = quotemeta(get_option('home'));
779
+ $regExURL = '(https?:|)' . substr($escapedSiteURL, strpos($escapedSiteURL, '//'));
780
+
781
+ //Prep Included Directories
782
+ $directories = 'wp\-content|wp\-includes';
783
+ if(!empty($sbp_cdn_directories)) {
784
+ $directoriesArray = array_map('trim', explode(',', $sbp_cdn_directories));
785
+ if(count($directoriesArray) > 0) {
786
+ $directories = implode('|', array_map('quotemeta', array_filter($directoriesArray)));
787
+ }
788
+ }
789
+
790
+ //Rewrite URLs + Return
791
+ $regEx = '#(?<=[(\"\'])(?:' . $regExURL . ')?/(?:((?:' . $directories . ')[^\"\')]+)|([^/\"\']+\.[^/\"\')]+))(?=[\"\')])#';
792
+ $cdnHTML = preg_replace_callback($regEx, array($this,'sbp_cdn_rewrite_url'), $html);
793
+ return $cdnHTML;
794
+ }
795
+
796
+ function sbp_cdn_rewrite_url($url) {
797
+ global $sbp_options;
798
+ $sbp_cdn_url = $sbp_options['sbp_cdn_url'];
799
+ $sbp_cdn_excluded = $sbp_options['sbp_cdn_exclusions'];
800
+
801
+ //Make Sure CDN URL is Set
802
+ if(!empty($sbp_cdn_url)) {
803
+
804
+ //Don't Rewrite if Excluded
805
+ if(!empty($sbp_cdn_excluded)) {
806
+ $exclusions = array_map('trim', explode(',', $sbp_cdn_excluded));
807
+ foreach($exclusions as $exclusion) {
808
+ if(!empty($exclusion) && stristr($url[0], $exclusion) != false) {
809
+ return $url[0];
810
+ }
811
+ }
812
+ }
813
+
814
+ //Don't Rewrite if Previewing
815
+ if(is_admin_bar_showing() && isset($_GET['preview']) && $_GET['preview'] == 'true') {
816
+ return $url[0];
817
+ }
818
+
819
+ //Prep Site URL
820
+ $siteURL = get_option('home');
821
+ $siteURL = substr($siteURL, strpos($siteURL, '//'));
822
+
823
+ //Replace URL w/ No HTTP/S Prefix
824
+ if(strpos($url[0], '//') === 0) {
825
+ return str_replace($siteURL, $sbp_cdn_url, $url[0]);
826
+ }
827
+
828
+ //Found Site URL, Replace Non Relative URL w/ HTTP/S Prefix
829
+ if(strstr($url[0], $siteURL)) {
830
+ return str_replace(array('http:' . $siteURL, 'https:' . $siteURL), $sbp_cdn_url, $url[0]);
831
+ }
832
+ //Replace Relative URL
833
+ return $sbp_cdn_url . $url[0];
834
+ }
835
+
836
+ //Return Original URL
837
+ return $url[0];
838
+ }
839
+
840
+ /*--------------------------------------------
841
+ Google Analytics
842
+ --------------------------------------------*/
843
+
844
+ //update analytics.js
845
+ function sbp_update_ga() {
846
+ //paths
847
+ $local_file = SPEED_BOOSTER_PACK_URL. 'inc/js/analytics.js';
848
+ $host = 'www.google-analytics.com';
849
+ $path = '/analytics.js';
850
+
851
+ //open connection
852
+ $fp = @fsockopen($host, '80', $errno, $errstr, 10);
853
+
854
+ if($fp){
855
+ //send headers
856
+ $header = "GET $path HTTP/1.0\r\n";
857
+ $header.= "Host: $host\r\n";
858
+ $header.= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6\r\n";
859
+ $header.= "Accept: */*\r\n";
860
+ $header.= "Accept-Language: en-us,en;q=0.5\r\n";
861
+ $header.= "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n";
862
+ $header.= "Keep-Alive: 300\r\n";
863
+ $header.= "Connection: keep-alive\r\n";
864
+ $header.= "Referer: https://$host\r\n\r\n";
865
+ fwrite($fp, $header);
866
+ $response = '';
867
+
868
+ //get response
869
+ while($line = fread($fp, 4096)) {
870
+ $response.= $line;
871
+ }
872
+
873
+ //close connection
874
+ fclose($fp);
875
+
876
+ //remove headers
877
+ $position = strpos($response, "\r\n\r\n");
878
+ $response = substr($response, $position + 4);
879
+
880
+ //create file if needed
881
+ if(!file_exists($local_file)) {
882
+ fopen($local_file, 'w');
883
+ }
884
+
885
+ //write response to file
886
+ if(is_writable($local_file)) {
887
+ if($fp = fopen($local_file, 'w')) {
888
+ fwrite($fp, $response);
889
+ fclose($fp);
890
+ }
891
+ }
892
+ }
893
+ }
894
+
895
+
896
+ //print analytics script
897
+ function sbp_print_ga() {
898
+ global $sbp_options;
899
+
900
+ //dont print for logged in admins
901
+ if(current_user_can('manage_options') && empty($sbp_options['sbp_track_loggedin_admins'])) {
902
+ return;
903
+ }
904
+
905
+ if(!empty($sbp_options['sbp_ga_tracking_id'])) {
906
+ echo "<!-- Local Analytics generated with speed booster pack. -->";
907
+ echo "<script>";
908
+ echo "(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
909
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
910
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
911
+ })(window,document,'script','" . SPEED_BOOSTER_PACK_URL . "inc/js/analytics.js','ga');";
912
+ echo "ga('create', '" . $sbp_options['sbp_ga_tracking_id'] . "', 'auto');";
913
+
914
+ //disable display features
915
+ if(!empty($sbp_options['sbp_disable_display_features']) && $sbp_options['sbp_disable_display_features'] == "1") {
916
+ echo "ga('set', 'allowAdFeatures', false);";
917
+ }
918
+
919
+ //anonymize ip
920
+ if(!empty($sbp_options['sbp_anonymize_ip']) && $sbp_options['sbp_anonymize_ip'] == "1") {
921
+ echo "ga('set', 'anonymizeIp', true);";
922
+ }
923
+
924
+ echo "ga('send', 'pageview');";
925
+
926
+ //adjusted bounce rate
927
+ if(!empty($sbp_options['sbp_bounce_rate'])) {
928
+ echo 'setTimeout("ga(' . "'send','event','adjusted bounce rate','" . $sbp_options['sbp_bounce_rate'] . " seconds')" . '"' . "," . $sbp_options['sbp_bounce_rate'] * 1000 . ");";
929
+ }
930
+ echo "</script>";
931
+ }
932
+ }
933
+
934
+ //return local anlytics url for Monster Insights
935
+ function sbp_monster_ga($url) {
936
+ return SPEED_BOOSTER_PACK_URL . "/inc/js/analytics.js";
937
+ }
938
+
939
+
940
  } // END class Speed_Booster_Pack_Core
941
  } // END if(!class_exists('Speed_Booster_Pack_Core'))
inc/images/hostinger-official.jpg ADDED
Binary file
inc/js/admin-scripts.js CHANGED
@@ -16,31 +16,7 @@
16
  $( '.postbox .hndle' ).css( 'cursor', 'pointer' );
17
  }
18
 
19
- /**
20
- * Function used for the image compression slider under "Image Optimization"
21
- */
22
- function admin_jquery_sliders() {
23
-
24
- var slider_selector = ".sbp-slider";
25
- var slider_amount = ".sbp-amount";
26
- var slider_integer = "#sbp_integer";
27
-
28
- if ( $( slider_selector ).length > 0 ) {
29
-
30
- $( slider_selector ).slider( {
31
- value: jpegCompression,
32
- min: 0,
33
- max: 100,
34
- step: 1,
35
- slide: function( event, ui ) {
36
- jQuery( slider_amount ).val( ui.value );
37
- jQuery( slider_integer ).val( ui.value );
38
- }
39
- } );
40
 
41
- $( slider_amount ).val( $( slider_selector ).slider( "value" ) );
42
- }
43
- }
44
 
45
  /**
46
  * Handle UI tab switching via jQuery instead of relying on CSS only
@@ -93,7 +69,6 @@
93
 
94
  $( document ).ready( function() {
95
  admin_postboxes();
96
- admin_jquery_sliders();
97
  admin_tab_switching();
98
  } );
99
 
16
  $( '.postbox .hndle' ).css( 'cursor', 'pointer' );
17
  }
18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
 
 
 
20
 
21
  /**
22
  * Handle UI tab switching via jQuery instead of relying on CSS only
69
 
70
  $( document ).ready( function() {
71
  admin_postboxes();
 
72
  admin_tab_switching();
73
  } );
74
 
inc/js/analytics.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function(){var k=this,l=function(a,b){a=a.split(".");var c=k;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b};var m=function(a){var b=[];if(Array.prototype.indexOf)return a=b.indexOf(a),"number"==typeof a?a:-1;for(var c=0;c<b.length;c++)if(b[c]===a)return c;return-1},n=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},q=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};var r=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;var t=window,u=document,v=function(a,b){u.addEventListener?u.addEventListener(a,b,!1):u.attachEvent&&u.attachEvent("on"+a,b)};var w=/:[0-9]+$/,y=function(a,b){var c=function(a){return a?a.replace(":","").toLowerCase():""};c=c(a.protocol)||c(t.location.protocol);b&&(b=String(b).toLowerCase());switch(b){case "url_no_fragment":a=x(a);break;case "protocol":a=c;break;case "host":a=(a.hostname||t.location.hostname).replace(w,"").toLowerCase();break;case "port":a=String(Number(a.hostname?a.port:t.location.port)||("http"==c?80:"https"==c?443:""));break;case "path":a="/"==a.pathname.substr(0,1)?a.pathname:"/"+a.pathname;a=a.split("/");
2
+ 0<=m(a[a.length-1])&&(a[a.length-1]="");a=a.join("/");break;case "query":a=a.search.replace("?","");break;case "extension":a=a.pathname.split(".");a=1<a.length?a[a.length-1]:"";a=a.split("/")[0];break;case "fragment":a=a.hash.replace("#","");break;default:a=a&&a.href}return a},x=function(a){var b="";a&&a.href&&(b=a.hash?a.href.replace(a.hash,""):a.href);return b},z=function(a){var b=document.createElement("a");a&&(r.test(a),b.href=a);a=b.pathname;"/"!==a[0]&&(a="/"+a);var c=b.hostname.replace(w,"");
3
+ return{href:b.href,protocol:b.protocol,host:b.host,hostname:c,pathname:a,search:b.search,hash:b.hash,port:b.port}};function A(){for(var a=B,b={},c=0;c<a.length;++c)b[a[c]]=c;return b}function C(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZ";a+=a.toLowerCase()+"0123456789-_";return a+"."}
4
+ var B,D,E=function(a){B=B||C();D=D||A();for(var b=[],c=0;c<a.length;c+=3){var d=c+1<a.length,e=c+2<a.length,g=a.charCodeAt(c),f=d?a.charCodeAt(c+1):0,h=e?a.charCodeAt(c+2):0,p=g>>2;g=(g&3)<<4|f>>4;f=(f&15)<<2|h>>6;h&=63;e||(h=64,d||(f=64));b.push(B[p],B[g],B[f],B[h])}return b.join("")},F=function(a){function b(b){for(;d<a.length;){var c=a.charAt(d++),e=D[c];if(null!=e)return e;if(!/^[\s\xa0]*$/.test(c))throw Error("Unknown base64 encoding at char: "+c);}return b}B=B||C();D=D||A();for(var c="",d=0;;){var e=
5
+ b(-1),g=b(0),f=b(64),h=b(64);if(64===h&&-1===e)return c;c+=String.fromCharCode(e<<2|g>>4);64!=f&&(c+=String.fromCharCode(g<<4&240|f>>2),64!=h&&(c+=String.fromCharCode(f<<6&192|h)))}};var G;function H(a,b){if(!a||b===u.location.hostname)return!1;for(var c=0;c<a.length;c++)if(a[c]instanceof RegExp){if(a[c].test(b))return!0}else if(0<=b.indexOf(a[c]))return!0;return!1}var I=function(){var a={};var b=t.google_tag_data;t.google_tag_data=void 0===b?a:b;a=t.google_tag_data;b=a.gl;b&&b.decorators||(b={decorators:[]},a.gl=b);return b};var J=/(.*?)\*(.*?)\*(.*)/,K=/([^?#]+)(\?[^#]*)?(#.*)?/,L=/(.*?)(^|&)_gl=([^&]*)&?(.*)/,N=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];void 0!==d&&d===d&&null!==d&&"[object Object]"!==d.toString()&&(b.push(c),b.push(E(String(d))))}a=b.join("*");return["1",M(a),a].join("*")},M=function(a,b){a=[window.navigator.userAgent,(new Date).getTimezoneOffset(),window.navigator.userLanguage||window.navigator.language,Math.floor((new Date).getTime()/60/1E3)-(void 0===b?0:b),a].join("*");
6
+ if(!(b=G)){b=Array(256);for(var c=0;256>c;c++){for(var d=c,e=0;8>e;e++)d=d&1?d>>>1^3988292384:d>>>1;b[c]=d}}G=b;b=4294967295;for(c=0;c<a.length;c++)b=b>>>8^G[(b^a.charCodeAt(c))&255];return((b^-1)>>>0).toString(36)},Q=function(a){return function(b){var c=z(t.location.href),d=c.search.replace("?","");a:{var e=d.split("&");for(var g=0;g<e.length;g++){var f=e[g].split("=");if("_gl"==decodeURIComponent(f[0]).replace(/\+/g," ")){e=f.slice(1).join("=");break a}}e=void 0}b.query=O(e||"")||{};e=y(c,"fragment");
7
+ g=e.match(L);b.fragment=O(g&&g[3]||"")||{};a&&P(c,d,e)}};function R(a){var b=L.exec(a);if(b){var c=b[2],d=b[4];a=b[1];d&&(a=a+c+d)}return a}
8
+ var P=function(a,b,c){function d(a,b){a=R(a);a.length&&(a=b+a);return a}t.history&&t.history.replaceState&&(L.test(b)||L.test(c))&&(a=y(a,"path"),b=d(b,"?"),c=d(c,"#"),t.history.replaceState({},void 0,""+a+b+c))},O=function(a){var b=void 0===b?3:b;try{if(a){a:{for(var c=0;3>c;++c){var d=J.exec(a);if(d){var e=d;break a}a=decodeURIComponent(a)}e=void 0}if(e&&"1"===e[1]){var g=e[2],f=e[3];a:{for(e=0;e<b;++e)if(g===M(f,e)){var h=!0;break a}h=!1}if(h){b={};var p=f?f.split("*"):[];for(f=0;f<p.length;f+=
9
+ 2)b[p[f]]=F(p[f+1]);return b}}}}catch(Y){}};function S(a,b,c){function d(a){a=R(a);var b=a.charAt(a.length-1);a&&"&"!==b&&(a+="&");return a+f}c=void 0===c?!1:c;var e=K.exec(b);if(!e)return"";b=e[1];var g=e[2]||"";e=e[3]||"";var f="_gl="+a;c?e="#"+d(e.substring(1)):g="?"+d(g.substring(1));return""+b+g+e}
10
+ function T(a,b,c){for(var d={},e={},g=I().decorators,f=0;f<g.length;++f){var h=g[f];(!c||h.forms)&&H(h.domains,b)&&(h.fragment?n(e,h.callback()):n(d,h.callback()))}q(d)&&(b=N(d),c?U(b,a):V(b,a,!1));!c&&q(e)&&(c=N(e),V(c,a,!0))}function V(a,b,c){b.href&&(a=S(a,b.href,void 0===c?!1:c),r.test(a)&&(b.href=a))}
11
+ function U(a,b){if(b&&b.action){var c=(b.method||"").toLowerCase();if("get"===c){c=b.childNodes||[];for(var d=!1,e=0;e<c.length;e++){var g=c[e];if("_gl"===g.name){g.setAttribute("value",a);d=!0;break}}d||(c=u.createElement("input"),c.setAttribute("type","hidden"),c.setAttribute("name","_gl"),c.setAttribute("value",a),b.appendChild(c))}else"post"===c&&(a=S(a,b.action),r.test(a)&&(b.action=a))}}
12
+ var W=function(a){try{a:{var b=a.target||a.srcElement||{};for(a=100;b&&0<a;){if(b.href&&b.nodeName.match(/^a(?:rea)?$/i)){var c=b;break a}b=b.parentNode;a--}c=null}if(c){var d=c.protocol;"http:"!==d&&"https:"!==d||T(c,c.hostname,!1)}}catch(e){}},X=function(a){try{var b=a.target||a.srcElement||{};if(b.action){var c=y(z(b.action),"host");T(b,c,!0)}}catch(d){}};l("google_tag_data.glBridge.auto",function(a,b,c,d){var e=I();e.init||(v("mousedown",W),v("keyup",W),v("submit",X),e.init=!0);a={callback:a,domains:b,fragment:"fragment"===c,forms:!!d};I().decorators.push(a)});l("google_tag_data.glBridge.decorate",function(a,b,c){c=!!c;a=N(a);if(b.tagName){if("a"==b.tagName.toLowerCase())return V(a,b,c);if("form"==b.tagName.toLowerCase())return U(a,b)}if("string"==typeof b)return S(a,b,c)});l("google_tag_data.glBridge.generate",N);
13
+ l("google_tag_data.glBridge.get",function(a,b){var c=Q(!!b);b=I();b.data||(b.data={query:{},fragment:{}},c(b.data));c={};if(b=b.data)n(c,b.query),a&&n(c,b.fragment);return c});})(window);
14
+ (function(){function La(a){var b=1,c;if(a)for(b=0,c=a.length-1;0<=c;c--){var d=a.charCodeAt(c);b=(b<<6&268435455)+d+(d<<14);d=b&266338304;b=0!=d?b^d>>21:b}return b};var $c=function(a){this.w=a||[]};$c.prototype.set=function(a){this.w[a]=!0};$c.prototype.encode=function(){for(var a=[],b=0;b<this.w.length;b++)this.w[b]&&(a[Math.floor(b/6)]^=1<<b%6);for(b=0;b<a.length;b++)a[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[b]||0);return a.join("")+"~"};var vd=new $c;function J(a){vd.set(a)}var Td=function(a){a=Dd(a);a=new $c(a);for(var b=vd.w.slice(),c=0;c<a.w.length;c++)b[c]=b[c]||a.w[c];return(new $c(b)).encode()},Dd=function(a){a=a.get(Gd);ka(a)||(a=[]);return a};var ea=function(a){return"function"==typeof a},ka=function(a){return"[object Array]"==Object.prototype.toString.call(Object(a))},qa=function(a){return void 0!=a&&-1<(a.constructor+"").indexOf("String")},D=function(a,b){return 0==a.indexOf(b)},sa=function(a){return a?a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""):""},ra=function(){for(var a=O.navigator.userAgent+(M.cookie?M.cookie:"")+(M.referrer?M.referrer:""),b=a.length,c=O.history.length;0<c;)a+=c--^b++;return[hd()^La(a)&2147483647,Math.round((new Date).getTime()/
15
+ 1E3)].join(".")},ta=function(a){var b=M.createElement("img");b.width=1;b.height=1;b.src=a;return b},ua=function(){},K=function(a){if(encodeURIComponent instanceof Function)return encodeURIComponent(a);J(28);return a},L=function(a,b,c,d){try{a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)}catch(e){J(27)}},f=/^[\w\-:/.?=&%!\[\]]+$/,wa=function(a,b,c){a&&(c?(c="",b&&f.test(b)&&(c=' id="'+b+'"'),f.test(a)&&M.write("<script"+c+' src="'+a+'">\x3c/script>')):(c=M.createElement("script"),
16
+ c.type="text/javascript",c.async=!0,c.src=a,b&&(c.id=b),a=M.getElementsByTagName("script")[0],a.parentNode.insertBefore(c,a)))},be=function(a,b){return E(M.location[b?"href":"search"],a)},E=function(a,b){return(a=a.match("(?:&|#|\\?)"+K(b).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)"))&&2==a.length?a[1]:""},xa=function(){var a=""+M.location.hostname;return 0==a.indexOf("www.")?a.substring(4):a},de=function(a,b){var c=a.indexOf(b);if(5==c||6==c)if(a=a.charAt(c+b.length),"/"==a||"?"==a||
17
+ ""==a||":"==a)return!0;return!1},ya=function(a,b){var c=M.referrer;if(/^(https?|android-app):\/\//i.test(c)){if(a)return c;a="//"+M.location.hostname;if(!de(c,a))return b&&(b=a.replace(/\./g,"-")+".cdn.ampproject.org",de(c,b))?void 0:c}},za=function(a,b){if(1==b.length&&null!=b[0]&&"object"===typeof b[0])return b[0];for(var c={},d=Math.min(a.length+1,b.length),e=0;e<d;e++)if("object"===typeof b[e]){for(var g in b[e])b[e].hasOwnProperty(g)&&(c[g]=b[e][g]);break}else e<a.length&&(c[a[e]]=b[e]);return c};var ee=function(){this.keys=[];this.values={};this.m={}};ee.prototype.set=function(a,b,c){this.keys.push(a);c?this.m[":"+a]=b:this.values[":"+a]=b};ee.prototype.get=function(a){return this.m.hasOwnProperty(":"+a)?this.m[":"+a]:this.values[":"+a]};ee.prototype.map=function(a){for(var b=0;b<this.keys.length;b++){var c=this.keys[b],d=this.get(c);d&&a(c,d)}};var O=window,M=document,va=function(a,b){return setTimeout(a,b)};var F=window,Ea=document,G=function(a){var b=F._gaUserPrefs;if(b&&b.ioo&&b.ioo()||a&&!0===F["ga-disable-"+a])return!0;try{var c=F.external;if(c&&c._gaUserPrefs&&"oo"==c._gaUserPrefs)return!0}catch(g){}a=[];b=String(Ea.cookie||document.cookie).split(";");for(c=0;c<b.length;c++){var d=b[c].split("="),e=d[0].replace(/^\s*|\s*$/g,"");e&&"AMP_TOKEN"==e&&((d=d.slice(1).join("=").replace(/^\s*|\s*$/g,""))&&(d=decodeURIComponent(d)),a.push(d))}for(b=0;b<a.length;b++)if("$OPT_OUT"==a[b])return!0;return!1};var Ca=function(a){var b=[],c=M.cookie.split(";");a=new RegExp("^\\s*"+a+"=\\s*(.*?)\\s*$");for(var d=0;d<c.length;d++){var e=c[d].match(a);e&&b.push(e[1])}return b},zc=function(a,b,c,d,e,g){e=G(e)?!1:eb.test(M.location.hostname)||"/"==c&&vc.test(d)?!1:!0;if(!e)return!1;b&&1200<b.length&&(b=b.substring(0,1200));c=a+"="+b+"; path="+c+"; ";g&&(c+="expires="+(new Date((new Date).getTime()+g)).toGMTString()+"; ");d&&"none"!==d&&(c+="domain="+d+";");d=M.cookie;M.cookie=c;if(!(d=d!=M.cookie))a:{a=Ca(a);
18
+ for(d=0;d<a.length;d++)if(b==a[d]){d=!0;break a}d=!1}return d},Cc=function(a){return encodeURIComponent?encodeURIComponent(a).replace(/\(/g,"%28").replace(/\)/g,"%29"):a},vc=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,eb=/(^|\.)doubleclick\.net$/i;var oc,Id=/^.*Version\/?(\d+)[^\d].*$/i,ne=function(){if(void 0!==O.__ga4__)return O.__ga4__;if(void 0===oc){var a=O.navigator.userAgent;if(a){var b=a;try{b=decodeURIComponent(a)}catch(c){}if(a=!(0<=b.indexOf("Chrome"))&&!(0<=b.indexOf("CriOS"))&&(0<=b.indexOf("Safari/")||0<=b.indexOf("Safari,")))b=Id.exec(b),a=11<=(b?Number(b[1]):-1);oc=a}else oc=!1}return oc};var Fa,Ga,fb,Ab,ja=/^https?:\/\/[^/]*cdn\.ampproject\.org\//,Ue=/^(?:www\.|m\.|amp\.)+/,Ub=[],da=function(a){a:{if(ja.test(M.referrer)){var b=M.location.hostname.replace(Ue,"");b:{var c=M.referrer;c=c.replace(/^https?:\/\//,"");var d=c.replace(/^[^/]+/,"").split("/"),e=d[2];d=(d="s"==e?d[3]:e)?decodeURIComponent(d):d;if(!d){if(0==c.indexOf("xn--")){c="";break b}(c=c.match(/(.*)\.cdn\.ampproject\.org\/?$/))&&2==c.length&&(d=c[1].replace(/-/g,".").replace(/\.\./g,"-"))}c=d?d.replace(Ue,""):""}if(b==
19
+ c){b=!0;break a}else J(78)}b=!1}if(b&&!1!==a[Kd]&&(void 0===Ab&&(b=(b=De.get())&&b._ga||void 0)&&(Ab=b,J(81)),void 0!==Ab))return a[Q]||(a[Q]=Ab),!1;if(a[Kd]){J(67);if(a[ac]&&"cookie"!=a[ac])return!1;if(void 0!==Ab)a[Q]||(a[Q]=Ab);else{a:if(b=String(a[W]||xa()),c=String(a[Yb]||"/"),d=Ca(String(a[U]||"_ga")),b=na(d,b,c),!b||jd.test(b))b=!0;else if(b=Ca("AMP_TOKEN"),0==b.length)b=!0;else{if(1==b.length&&(b=decodeURIComponent(b[0]),"$RETRIEVING"==b||"$OPT_OUT"==b||"$ERROR"==b||"$NOT_FOUND"==b)){b=!0;
20
+ break a}b=!1}if(b&&tc(ic,String(a[Na])))return!0}}return!1},ic=function(){Z.D([ua])},tc=function(a,b){var c=Ca("AMP_TOKEN");if(1<c.length)return J(55),!1;c=decodeURIComponent(c[0]||"");if("$OPT_OUT"==c||"$ERROR"==c||G(b))return J(62),!1;if(!ja.test(M.referrer)&&"$NOT_FOUND"==c)return J(68),!1;if(void 0!==Ab)return J(56),va(function(){a(Ab)},0),!0;if(Fa)return Ub.push(a),!0;if("$RETRIEVING"==c)return J(57),va(function(){tc(a,b)},1E4),!0;Fa=!0;c&&"$"!=c[0]||(xc("$RETRIEVING",3E4),setTimeout(Mc,3E4),
21
+ c="");return Pc(c,b)?(Ub.push(a),!0):!1},Pc=function(a,b,c){if(!window.JSON)return J(58),!1;var d=O.XMLHttpRequest;if(!d)return J(59),!1;var e=new d;if(!("withCredentials"in e))return J(60),!1;e.open("POST",(c||"https://ampcid.google.com/v1/publisher:getClientId")+"?key=AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM",!0);e.withCredentials=!0;e.setRequestHeader("Content-Type","text/plain");e.onload=function(){Fa=!1;if(4==e.readyState){try{200!=e.status&&(J(61),Qc("","$ERROR",3E4));var d=JSON.parse(e.responseText);
22
+ d.optOut?(J(63),Qc("","$OPT_OUT",31536E6)):d.clientId?Qc(d.clientId,d.securityToken,31536E6):!c&&d.alternateUrl?(Ga&&clearTimeout(Ga),Fa=!0,Pc(a,b,d.alternateUrl)):(J(64),Qc("","$NOT_FOUND",36E5))}catch(ca){J(65),Qc("","$ERROR",3E4)}e=null}};d={originScope:"AMP_ECID_GOOGLE"};a&&(d.securityToken=a);e.send(JSON.stringify(d));Ga=va(function(){J(66);Qc("","$ERROR",3E4)},1E4);return!0},Mc=function(){Fa=!1},xc=function(a,b){if(void 0===fb){fb="";for(var c=id(),d=0;d<c.length;d++){var e=c[d];if(zc("AMP_TOKEN",
23
+ encodeURIComponent(a),"/",e,"",b)){fb=e;return}}}zc("AMP_TOKEN",encodeURIComponent(a),"/",fb,"",b)},Qc=function(a,b,c){Ga&&clearTimeout(Ga);b&&xc(b,c);Ab=a;b=Ub;Ub=[];for(c=0;c<b.length;c++)b[c](a)};var oe=function(){return(Ba||"https:"==M.location.protocol?"https:":"http:")+"//www.google-analytics.com"},Da=function(a){this.name="len";this.message=a+"-8192"},ba=function(a,b,c){c=c||ua;if(2036>=b.length)wc(a,b,c);else if(8192>=b.length)x(a,b,c)||wd(a,b,c)||wc(a,b,c);else throw ge("len",b.length),new Da(b.length);},pe=function(a,b,c,d){d=d||ua;wd(a+"?"+b,"",d,c)},wc=function(a,b,c){var d=ta(a+"?"+b);d.onload=d.onerror=function(){d.onload=null;d.onerror=null;c()}},wd=function(a,b,c,d){var e=O.XMLHttpRequest;
24
+ if(!e)return!1;var g=new e;if(!("withCredentials"in g))return!1;a=a.replace(/^http:/,"https:");g.open("POST",a,!0);g.withCredentials=!0;g.setRequestHeader("Content-Type","text/plain");g.onreadystatechange=function(){if(4==g.readyState){if(d)try{var a=g.responseText;if(1>a.length)ge("xhr","ver","0"),c();else if("1"!=a.charAt(0))ge("xhr","ver",String(a.length)),c();else if(3<d.count++)ge("xhr","tmr",""+d.count),c();else if(1==a.length)c();else{var b=a.charAt(1);if("d"==b)pe("https://stats.g.doubleclick.net/j/collect",
25
+ d.U,d,c);else if("g"==b){var e="https://www.google.%/ads/ga-audiences".replace("%","com");wc(e,d.google,c);var w=a.substring(2);if(w)if(/^[a-z.]{1,6}$/.test(w)){var ha="https://www.google.%/ads/ga-audiences".replace("%",w);wc(ha,d.google,ua)}else ge("tld","bcc",w)}else ge("xhr","brc",b),c()}}catch(ue){ge("xhr","rsp"),c()}else c();g=null}};g.send(b);return!0},x=function(a,b,c){return O.navigator.sendBeacon?O.navigator.sendBeacon(a,b)?(c(),!0):!1:!1},ge=function(a,b,c){1<=100*Math.random()||G("?")||
26
+ (a=["t=error","_e="+a,"_v=j72","sr=1"],b&&a.push("_f="+b),c&&a.push("_m="+K(c.substring(0,100))),a.push("aip=1"),a.push("z="+hd()),wc("https://www.google-analytics.com/u/d",a.join("&"),ua))};var h=function(a){var b=O.gaData=O.gaData||{};return b[a]=b[a]||{}};var Ha=function(){this.M=[]};Ha.prototype.add=function(a){this.M.push(a)};Ha.prototype.D=function(a){try{for(var b=0;b<this.M.length;b++){var c=a.get(this.M[b]);c&&ea(c)&&c.call(O,a)}}catch(d){}b=a.get(Ia);b!=ua&&ea(b)&&(a.set(Ia,ua,!0),setTimeout(b,10))};function Ja(a){if(100!=a.get(Ka)&&La(P(a,Q))%1E4>=100*R(a,Ka))throw"abort";}function Ma(a){if(G(P(a,Na)))throw"abort";}function Oa(){var a=M.location.protocol;if("http:"!=a&&"https:"!=a)throw"abort";}
27
+ function Pa(a){try{O.navigator.sendBeacon?J(42):O.XMLHttpRequest&&"withCredentials"in new O.XMLHttpRequest&&J(40)}catch(c){}a.set(ld,Td(a),!0);a.set(Ac,R(a,Ac)+1);var b=[];Qa.map(function(c,d){d.F&&(c=a.get(c),void 0!=c&&c!=d.defaultValue&&("boolean"==typeof c&&(c*=1),b.push(d.F+"="+K(""+c))))});b.push("z="+Bd());a.set(Ra,b.join("&"),!0)}
28
+ function Sa(a){var b=P(a,gd)||oe()+"/collect",c=a.get(qe),d=P(a,fa);!d&&a.get(Vd)&&(d="beacon");if(c)pe(b,P(a,Ra),c,a.get(Ia));else if(d){c=d;d=P(a,Ra);var e=a.get(Ia);e=e||ua;"image"==c?wc(b,d,e):"xhr"==c&&wd(b,d,e)||"beacon"==c&&x(b,d,e)||ba(b,d,e)}else ba(b,P(a,Ra),a.get(Ia));b=a.get(Na);b=h(b);c=b.hitcount;b.hitcount=c?c+1:1;b=a.get(Na);delete h(b).pending_experiments;a.set(Ia,ua,!0)}
29
+ function Hc(a){(O.gaData=O.gaData||{}).expId&&a.set(Nc,(O.gaData=O.gaData||{}).expId);(O.gaData=O.gaData||{}).expVar&&a.set(Oc,(O.gaData=O.gaData||{}).expVar);var b=a.get(Na);if(b=h(b).pending_experiments){var c=[];for(d in b)b.hasOwnProperty(d)&&b[d]&&c.push(encodeURIComponent(d)+"."+encodeURIComponent(b[d]));var d=c.join("!")}else d=void 0;d&&a.set(m,d,!0)}function cd(){if(O.navigator&&"preview"==O.navigator.loadPurpose)throw"abort";}
30
+ function yd(a){var b=O.gaDevIds;ka(b)&&0!=b.length&&a.set("&did",b.join(","),!0)}function vb(a){if(!a.get(Na))throw"abort";};var hd=function(){return Math.round(2147483647*Math.random())},Bd=function(){try{var a=new Uint32Array(1);O.crypto.getRandomValues(a);return a[0]&2147483647}catch(b){return hd()}};function Ta(a){var b=R(a,Ua);500<=b&&J(15);var c=P(a,Va);if("transaction"!=c&&"item"!=c){c=R(a,Wa);var d=(new Date).getTime(),e=R(a,Xa);0==e&&a.set(Xa,d);e=Math.round(2*(d-e)/1E3);0<e&&(c=Math.min(c+e,20),a.set(Xa,d));if(0>=c)throw"abort";a.set(Wa,--c)}a.set(Ua,++b)};var Ya=function(){this.data=new ee},Qa=new ee,Za=[];Ya.prototype.get=function(a){var b=$a(a),c=this.data.get(a);b&&void 0==c&&(c=ea(b.defaultValue)?b.defaultValue():b.defaultValue);return b&&b.Z?b.Z(this,a,c):c};var P=function(a,b){a=a.get(b);return void 0==a?"":""+a},R=function(a,b){a=a.get(b);return void 0==a||""===a?0:1*a};Ya.prototype.set=function(a,b,c){if(a)if("object"==typeof a)for(var d in a)a.hasOwnProperty(d)&&ab(this,d,a[d],c);else ab(this,a,b,c)};
31
+ var ab=function(a,b,c,d){if(void 0!=c)switch(b){case Na:wb.test(c)}var e=$a(b);e&&e.o?e.o(a,b,c,d):a.data.set(b,c,d)},bb=function(a,b,c,d,e){this.name=a;this.F=b;this.Z=d;this.o=e;this.defaultValue=c},$a=function(a){var b=Qa.get(a);if(!b)for(var c=0;c<Za.length;c++){var d=Za[c],e=d[0].exec(a);if(e){b=d[1](e);Qa.set(b.name,b);break}}return b},yc=function(a){var b;Qa.map(function(c,d){d.F==a&&(b=d)});return b&&b.name},S=function(a,b,c,d,e){a=new bb(a,b,c,d,e);Qa.set(a.name,a);return a.name},cb=function(a,
32
+ b){Za.push([new RegExp("^"+a+"$"),b])},T=function(a,b,c){return S(a,b,c,void 0,db)},db=function(){};var gb=qa(window.GoogleAnalyticsObject)&&sa(window.GoogleAnalyticsObject)||"ga",jd=/^(?:utma\.)?\d+\.\d+$/,kd=/^amp-[\w.-]{22,64}$/,Ba=!1,hb=T("apiVersion","v"),ib=T("clientVersion","_v");S("anonymizeIp","aip");var jb=S("adSenseId","a"),Va=S("hitType","t"),Ia=S("hitCallback"),Ra=S("hitPayload");S("nonInteraction","ni");S("currencyCode","cu");S("dataSource","ds");var Vd=S("useBeacon",void 0,!1),fa=S("transport");S("sessionControl","sc","");S("sessionGroup","sg");S("queueTime","qt");var Ac=S("_s","_s");
33
+ S("screenName","cd");var kb=S("location","dl",""),lb=S("referrer","dr"),mb=S("page","dp","");S("hostname","dh");var nb=S("language","ul"),ob=S("encoding","de");S("title","dt",function(){return M.title||void 0});cb("contentGroup([0-9]+)",function(a){return new bb(a[0],"cg"+a[1])});var pb=S("screenColors","sd"),qb=S("screenResolution","sr"),rb=S("viewportSize","vp"),sb=S("javaEnabled","je"),tb=S("flashVersion","fl");S("campaignId","ci");S("campaignName","cn");S("campaignSource","cs");
34
+ S("campaignMedium","cm");S("campaignKeyword","ck");S("campaignContent","cc");
35
+ var ub=S("eventCategory","ec"),xb=S("eventAction","ea"),yb=S("eventLabel","el"),zb=S("eventValue","ev"),Bb=S("socialNetwork","sn"),Cb=S("socialAction","sa"),Db=S("socialTarget","st"),Eb=S("l1","plt"),Fb=S("l2","pdt"),Gb=S("l3","dns"),Hb=S("l4","rrt"),Ib=S("l5","srt"),Jb=S("l6","tcp"),Kb=S("l7","dit"),Lb=S("l8","clt"),Ve=S("l9","_gst"),We=S("l10","_gbt"),Xe=S("l11","_cst"),Ye=S("l12","_cbt"),Mb=S("timingCategory","utc"),Nb=S("timingVar","utv"),Ob=S("timingLabel","utl"),Pb=S("timingValue","utt");
36
+ S("appName","an");S("appVersion","av","");S("appId","aid","");S("appInstallerId","aiid","");S("exDescription","exd");S("exFatal","exf");var Nc=S("expId","xid"),Oc=S("expVar","xvar"),m=S("exp","exp"),Rc=S("_utma","_utma"),Sc=S("_utmz","_utmz"),Tc=S("_utmht","_utmht"),Ua=S("_hc",void 0,0),Xa=S("_ti",void 0,0),Wa=S("_to",void 0,20);cb("dimension([0-9]+)",function(a){return new bb(a[0],"cd"+a[1])});cb("metric([0-9]+)",function(a){return new bb(a[0],"cm"+a[1])});S("linkerParam",void 0,void 0,Bc,db);
37
+ var Ze=T("_cd2l",void 0,!1),ld=S("usage","_u"),Gd=S("_um");S("forceSSL",void 0,void 0,function(){return Ba},function(a,b,c){J(34);Ba=!!c});var ed=S("_j1","jid"),ia=S("_j2","gjid");cb("\\&(.*)",function(a){var b=new bb(a[0],a[1]),c=yc(a[0].substring(1));c&&(b.Z=function(a){return a.get(c)},b.o=function(a,b,g,ca){a.set(c,g,ca)},b.F=void 0);return b});
38
+ var Qb=T("_oot"),dd=S("previewTask"),Rb=S("checkProtocolTask"),md=S("validationTask"),Sb=S("checkStorageTask"),Uc=S("historyImportTask"),Tb=S("samplerTask"),Vb=S("_rlt"),Wb=S("buildHitTask"),Xb=S("sendHitTask"),Vc=S("ceTask"),zd=S("devIdTask"),Cd=S("timingTask"),Ld=S("displayFeaturesTask"),oa=S("customTask"),V=T("name"),Q=T("clientId","cid"),n=T("clientIdTime"),xd=T("storedClientId"),Ad=S("userId","uid"),Na=T("trackingId","tid"),U=T("cookieName",void 0,"_ga"),W=T("cookieDomain"),Yb=T("cookiePath",
39
+ void 0,"/"),Zb=T("cookieExpires",void 0,63072E3),Hd=T("cookieUpdate",void 0,!0),$b=T("legacyCookieDomain"),Wc=T("legacyHistoryImport",void 0,!0),ac=T("storage",void 0,"cookie"),bc=T("allowLinker",void 0,!1),cc=T("allowAnchor",void 0,!0),Ka=T("sampleRate","sf",100),dc=T("siteSpeedSampleRate",void 0,1),ec=T("alwaysSendReferrer",void 0,!1),I=T("_gid","_gid"),la=T("_gcn"),Kd=T("useAmpClientId"),ce=T("_gclid"),fe=T("_gt"),he=T("_ge",void 0,7776E6),ie=T("_gclsrc"),je=T("storeGac",void 0,!0),gd=S("transportUrl"),
40
+ Md=S("_r","_r"),qe=S("_dp"),Ud=S("allowAdFeatures",void 0,!0);function X(a,b,c,d){b[a]=function(){try{return d&&J(d),c.apply(this,arguments)}catch(e){throw ge("exc",a,e&&e.name),e;}}};var Od=function(){this.V=100;this.$=this.fa=!1;this.oa="detourexp";this.groups=1},Ed=function(a){var b=new Od,c;if(b.fa&&b.$)return 0;b.$=!0;if(a){if(b.oa&&void 0!==a.get(b.oa))return R(a,b.oa);if(0==a.get(dc))return 0}if(0==b.V)return 0;void 0===c&&(c=Bd());return 0==c%b.V?Math.floor(c/b.V)%b.groups+1:0};function fc(){var a,b;if((b=(b=O.navigator)?b.plugins:null)&&b.length)for(var c=0;c<b.length&&!a;c++){var d=b[c];-1<d.name.indexOf("Shockwave Flash")&&(a=d.description)}if(!a)try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=e.GetVariable("$version")}catch(g){}if(!a)try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),a="WIN 6,0,21,0",e.AllowScriptAccess="always",a=e.GetVariable("$version")}catch(g){}if(!a)try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),a=e.GetVariable("$version")}catch(g){}a&&
41
+ (e=a.match(/[\d]+/g))&&3<=e.length&&(a=e[0]+"."+e[1]+" r"+e[2]);return a||void 0};var aa=function(a){var b=Math.min(R(a,dc),100);return La(P(a,Q))%100>=b?!1:!0},gc=function(a){var b={};if(Ec(b)||Fc(b)){var c=b[Eb];void 0==c||Infinity==c||isNaN(c)||(0<c?(Y(b,Gb),Y(b,Jb),Y(b,Ib),Y(b,Fb),Y(b,Hb),Y(b,Kb),Y(b,Lb),Y(b,Ve),Y(b,We),Y(b,Xe),Y(b,Ye),va(function(){a(b)},10)):L(O,"load",function(){gc(a)},!1))}},Ec=function(a){var b=O.performance||O.webkitPerformance;b=b&&b.timing;if(!b)return!1;var c=b.navigationStart;if(0==c)return!1;a[Eb]=b.loadEventStart-c;a[Gb]=b.domainLookupEnd-b.domainLookupStart;
42
+ a[Jb]=b.connectEnd-b.connectStart;a[Ib]=b.responseStart-b.requestStart;a[Fb]=b.responseEnd-b.responseStart;a[Hb]=b.fetchStart-c;a[Kb]=b.domInteractive-c;a[Lb]=b.domContentLoadedEventStart-c;a[Ve]=N.L-c;a[We]=N.ya-c;O.google_tag_manager&&O.google_tag_manager._li&&(b=O.google_tag_manager._li,a[Xe]=b.cst,a[Ye]=b.cbt);return!0},Fc=function(a){if(O.top!=O)return!1;var b=O.external,c=b&&b.onloadT;b&&!b.isValidLoadTime&&(c=void 0);2147483648<c&&(c=void 0);0<c&&b.setPageReadyTime();if(void 0==c)return!1;
43
+ a[Eb]=c;return!0},Y=function(a,b){var c=a[b];if(isNaN(c)||Infinity==c||0>c)a[b]=void 0},Fd=function(a){return function(b){if("pageview"==b.get(Va)&&!a.I){a.I=!0;var c=aa(b),d=0<E(b.get(kb),"gclid").length;(c||d)&&gc(function(b){c&&a.send("timing",b);d&&a.send("adtiming",b)})}}};var hc=!1,mc=function(a){if("cookie"==P(a,ac)){if(a.get(Hd)||P(a,xd)!=P(a,Q)){var b=1E3*R(a,Zb);ma(a,Q,U,b)}ma(a,I,la,864E5);if(a.get(je)){var c=a.get(ce);if(c){var d=Math.min(R(a,he),1E3*R(a,Zb));d=Math.min(d,1E3*R(a,fe)+d-(new Date).getTime());a.data.set(he,d);b={};var e=a.get(fe),g=a.get(ie),ca=kc(P(a,Yb)),l=lc(P(a,W));a=P(a,Na);g&&"aw.ds"!=g?b&&(b.ua=!0):(c=["1",e,Cc(c)].join("."),0<d&&(b&&(b.ta=!0),zc("_gac_"+Cc(a),c,ca,l,a,d)));le(b)}}else J(75)}},ma=function(a,b,c,d){var e=nd(a,b);if(e){c=
44
+ P(a,c);var g=kc(P(a,Yb)),ca=lc(P(a,W)),l=P(a,Na);if("auto"!=ca)zc(c,e,g,ca,l,d)&&(hc=!0);else{J(32);for(var k=id(),w=0;w<k.length;w++)if(ca=k[w],a.data.set(W,ca),e=nd(a,b),zc(c,e,g,ca,l,d)){hc=!0;return}a.data.set(W,"auto")}}},nc=function(a){if("cookie"==P(a,ac)&&!hc&&(mc(a),!hc))throw"abort";},Yc=function(a){if(a.get(Wc)){var b=P(a,W),c=P(a,$b)||xa(),d=Xc("__utma",c,b);d&&(J(19),a.set(Tc,(new Date).getTime(),!0),a.set(Rc,d.R),(b=Xc("__utmz",c,b))&&d.hash==b.hash&&a.set(Sc,b.R))}},nd=function(a,b){b=
45
+ Cc(P(a,b));var c=lc(P(a,W)).split(".").length;a=jc(P(a,Yb));1<a&&(c+="-"+a);return b?["GA1",c,b].join("."):""},Xd=function(a,b){return na(b,P(a,W),P(a,Yb))},na=function(a,b,c){if(!a||1>a.length)J(12);else{for(var d=[],e=0;e<a.length;e++){var g=a[e];var ca=g.split(".");var l=ca.shift();("GA1"==l||"1"==l)&&1<ca.length?(g=ca.shift().split("-"),1==g.length&&(g[1]="1"),g[0]*=1,g[1]*=1,ca={H:g,s:ca.join(".")}):ca=kd.test(g)?{H:[0,0],s:g}:void 0;ca&&d.push(ca)}if(1==d.length)return J(13),d[0].s;if(0==d.length)J(12);
46
+ else{J(14);d=Gc(d,lc(b).split(".").length,0);if(1==d.length)return d[0].s;d=Gc(d,jc(c),1);1<d.length&&J(41);return d[0]&&d[0].s}}},Gc=function(a,b,c){for(var d=[],e=[],g,ca=0;ca<a.length;ca++){var l=a[ca];l.H[c]==b?d.push(l):void 0==g||l.H[c]<g?(e=[l],g=l.H[c]):l.H[c]==g&&e.push(l)}return 0<d.length?d:e},lc=function(a){return 0==a.indexOf(".")?a.substr(1):a},id=function(){var a=[],b=xa().split(".");if(4==b.length){var c=b[b.length-1];if(parseInt(c,10)==c)return["none"]}for(c=b.length-2;0<=c;c--)a.push(b.slice(c).join("."));
47
+ b=M.location.hostname;eb.test(b)||vc.test(b)||a.push("none");return a},kc=function(a){if(!a)return"/";1<a.length&&a.lastIndexOf("/")==a.length-1&&(a=a.substr(0,a.length-1));0!=a.indexOf("/")&&(a="/"+a);return a},jc=function(a){a=kc(a);return"/"==a?1:a.split("/").length},le=function(a){a.ta&&J(77);a.na&&J(74);a.pa&&J(73);a.ua&&J(69)};function Xc(a,b,c){"none"==b&&(b="");var d=[],e=Ca(a);a="__utma"==a?6:2;for(var g=0;g<e.length;g++){var ca=(""+e[g]).split(".");ca.length>=a&&d.push({hash:ca[0],R:e[g],O:ca})}if(0!=d.length)return 1==d.length?d[0]:Zc(b,d)||Zc(c,d)||Zc(null,d)||d[0]}function Zc(a,b){if(null==a)var c=a=1;else c=La(a),a=La(D(a,".")?a.substring(1):"."+a);for(var d=0;d<b.length;d++)if(b[d].hash==c||b[d].hash==a)return b[d]};var od=new RegExp(/^https?:\/\/([^\/:]+)/),De=O.google_tag_data.glBridge,pd=/(.*)([?&#])(?:_ga=[^&#]*)(?:&?)(.*)/,me=/(.*)([?&#])(?:_gac=[^&#]*)(?:&?)(.*)/;function Bc(a){if(a.get(Ze))return J(35),De.generate($e(a));var b=a.get(Q),c=a.get(I)||"";b="_ga=2."+K(pa(c+b,0)+"."+c+"-"+b);(a=af(a))?(J(44),a="&_gac=1."+K([pa(a.qa,0),a.timestamp,a.qa].join("."))):a="";return b+a}
48
+ function Ic(a,b){var c=new Date,d=O.navigator,e=d.plugins||[];a=[a,d.userAgent,c.getTimezoneOffset(),c.getYear(),c.getDate(),c.getHours(),c.getMinutes()+b];for(b=0;b<e.length;++b)a.push(e[b].description);return La(a.join("."))}function pa(a,b){var c=new Date,d=O.navigator,e=c.getHours()+Math.floor((c.getMinutes()+b)/60);return La([a,d.userAgent,d.language||"",c.getTimezoneOffset(),c.getYear(),c.getDate()+Math.floor(e/24),(24+e)%24,(60+c.getMinutes()+b)%60].join("."))}
49
+ var Dc=function(a){J(48);this.target=a;this.T=!1};Dc.prototype.ca=function(a,b){if(a){if(this.target.get(Ze))return De.decorate($e(this.target),a,b);if(a.tagName){if("a"==a.tagName.toLowerCase()){a.href&&(a.href=qd(this,a.href,b));return}if("form"==a.tagName.toLowerCase())return rd(this,a)}if("string"==typeof a)return qd(this,a,b)}};
50
+ var qd=function(a,b,c){var d=pd.exec(b);d&&3<=d.length&&(b=d[1]+(d[3]?d[2]+d[3]:""));(d=me.exec(b))&&3<=d.length&&(b=d[1]+(d[3]?d[2]+d[3]:""));a=a.target.get("linkerParam");var e=b.indexOf("?");d=b.indexOf("#");c?b+=(-1==d?"#":"&")+a:(c=-1==e?"?":"&",b=-1==d?b+(c+a):b.substring(0,d)+c+a+b.substring(d));b=b.replace(/&+_ga=/,"&_ga=");return b=b.replace(/&+_gac=/,"&_gac=")},rd=function(a,b){if(b&&b.action)if("get"==b.method.toLowerCase()){a=a.target.get("linkerParam").split("&");for(var c=0;c<a.length;c++){var d=
51
+ a[c].split("="),e=d[1];d=d[0];for(var g=b.childNodes||[],ca=!1,l=0;l<g.length;l++)if(g[l].name==d){g[l].setAttribute("value",e);ca=!0;break}ca||(g=M.createElement("input"),g.setAttribute("type","hidden"),g.setAttribute("name",d),g.setAttribute("value",e),b.appendChild(g))}}else"post"==b.method.toLowerCase()&&(b.action=qd(a,b.action))};
52
+ Dc.prototype.S=function(a,b,c){function d(c){try{c=c||O.event;a:{var d=c.target||c.srcElement;for(c=100;d&&0<c;){if(d.href&&d.nodeName.match(/^a(?:rea)?$/i)){var g=d;break a}d=d.parentNode;c--}g={}}("http:"==g.protocol||"https:"==g.protocol)&&sd(a,g.hostname||"")&&g.href&&(g.href=qd(e,g.href,b))}catch(k){J(26)}}var e=this;this.target.get(Ze)?De.auto(function(){return $e(e.target)},a,b?"fragment":"",c):(this.T||(this.T=!0,L(M,"mousedown",d,!1),L(M,"keyup",d,!1)),c&&L(M,"submit",function(b){b=b||O.event;
53
+ if((b=b.target||b.srcElement)&&b.action){var c=b.action.match(od);c&&sd(a,c[1])&&rd(e,b)}}))};function sd(a,b){if(b==M.location.hostname)return!1;for(var c=0;c<a.length;c++)if(a[c]instanceof RegExp){if(a[c].test(b))return!0}else if(0<=b.indexOf(a[c]))return!0;return!1}function ke(a,b){return b!=Ic(a,0)&&b!=Ic(a,-1)&&b!=Ic(a,-2)&&b!=pa(a,0)&&b!=pa(a,-1)&&b!=pa(a,-2)}function $e(a){var b=af(a);return{_ga:a.get(Q),_gid:a.get(I)||void 0,_gac:b?[b.qa,b.timestamp].join("."):void 0}}
54
+ function af(a){function b(a){return void 0==a||""===a?0:Number(a)}var c=a.get(ce);if(c&&a.get(je)){var d=b(a.get(fe));if(1E3*d+b(a.get(he))<=(new Date).getTime())J(76);else return{timestamp:d,qa:c}}};var p=/^(GTM|OPT)-[A-Z0-9]+$/,q=/;_gaexp=[^;]*/g,r=/;((__utma=)|([^;=]+=GAX?\d+\.))[^;]*/g,Aa=/^https?:\/\/[\w\-.]+\.google.com(:\d+)?\/optimize\/opt-launch\.html\?.*$/,t=function(a){function b(a,b){b&&(c+="&"+a+"="+K(b))}var c="https://www.google-analytics.com/gtm/js?id="+K(a.id);"dataLayer"!=a.B&&b("l",a.B);b("t",a.target);b("cid",a.clientId);b("cidt",a.ka);b("gac",a.la);b("aip",a.ia);a.sync&&b("m","sync");b("cycle",a.G);a.qa&&b("gclid",a.qa);Aa.test(M.referrer)&&b("cb",String(hd()));return c};var Jd=function(a,b,c){this.aa=b;(b=c)||(b=(b=P(a,V))&&"t0"!=b?Wd.test(b)?"_gat_"+Cc(P(a,Na)):"_gat_"+Cc(b):"_gat");this.Y=b;this.ra=null},Rd=function(a,b){var c=b.get(Wb);b.set(Wb,function(b){Pd(a,b,ed);Pd(a,b,ia);var d=c(b);Qd(a,b);return d});var d=b.get(Xb);b.set(Xb,function(b){var c=d(b);if(se(b)){if(ne()!==H(a,b)){J(80);var e={U:re(a,b,1),google:re(a,b,2),count:0};pe("https://stats.g.doubleclick.net/j/collect",e.U,e)}else ta(re(a,b,0));b.set(ed,"",!0)}return c})},Pd=function(a,b,c){!1===b.get(Ud)||
55
+ b.get(c)||("1"==Ca(a.Y)[0]?b.set(c,"",!0):b.set(c,""+hd(),!0))},Qd=function(a,b){se(b)&&zc(a.Y,"1",b.get(Yb),b.get(W),b.get(Na),6E4)},se=function(a){return!!a.get(ed)&&a.get(Ud)},re=function(a,b,c){var d=new ee,e=function(a){$a(a).F&&d.set($a(a).F,b.get(a))};e(hb);e(ib);e(Na);e(Q);e(ed);if(0==c||1==c)e(Ad),e(ia),e(I);d.set($a(ld).F,Td(b));var g="";d.map(function(a,b){g+=K(a)+"=";g+=K(""+b)+"&"});g+="z="+hd();0==c?g=a.aa+g:1==c?g="t=dc&aip=1&_r=3&"+g:2==c&&(g="t=sr&aip=1&_r=4&slf_rd=1&"+g);return g},
56
+ H=function(a,b){null===a.ra&&(a.ra=1===Ed(b),a.ra&&J(33));return a.ra},Wd=/^gtm\d+$/;var fd=function(a,b){a=a.b;if(!a.get("dcLoaded")){var c=new $c(Dd(a));c.set(29);a.set(Gd,c.w);b=b||{};var d;b[U]&&(d=Cc(b[U]));b=new Jd(a,"https://stats.g.doubleclick.net/r/collect?t=dc&aip=1&_r=3&",d);Rd(b,a);a.set("dcLoaded",!0)}};var Sd=function(a){if(!a.get("dcLoaded")&&"cookie"==a.get(ac)){var b=new Jd(a);Pd(b,a,ed);Pd(b,a,ia);Qd(b,a);if(se(a)){var c=ne()!==H(b,a);a.set(Md,1,!0);c?(J(79),a.set(gd,oe()+"/j/collect",!0),a.set(qe,{U:re(b,a,1),google:re(b,a,2),count:0},!0)):a.set(gd,oe()+"/r/collect",!0)}}};var Lc=function(){var a=O.gaGlobal=O.gaGlobal||{};return a.hid=a.hid||hd()};var ad,bd=function(a,b,c){if(!ad){var d=M.location.hash;var e=O.name,g=/^#?gaso=([^&]*)/;if(e=(d=(d=d&&d.match(g)||e&&e.match(g))?d[1]:Ca("GASO")[0]||"")&&d.match(/^(?:!([-0-9a-z.]{1,40})!)?([-.\w]{10,1200})$/i))zc("GASO",""+d,c,b,a,0),window._udo||(window._udo=b),window._utcp||(window._utcp=c),a=e[1],wa("https://www.google.com/analytics/web/inpage/pub/inpage.js?"+(a?"prefix="+a+"&":"")+hd(),"_gasojs");ad=!0}};var wb=/^(UA|YT|MO|GP)-(\d+)-(\d+)$/,pc=function(a){function b(a,b){d.b.data.set(a,b)}function c(a,c){b(a,c);d.filters.add(a)}var d=this;this.b=new Ya;this.filters=new Ha;b(V,a[V]);b(Na,sa(a[Na]));b(U,a[U]);b(W,a[W]||xa());b(Yb,a[Yb]);b(Zb,a[Zb]);b(Hd,a[Hd]);b($b,a[$b]);b(Wc,a[Wc]);b(bc,a[bc]);b(cc,a[cc]);b(Ka,a[Ka]);b(dc,a[dc]);b(ec,a[ec]);b(ac,a[ac]);b(Ad,a[Ad]);b(n,a[n]);b(Kd,a[Kd]);b(je,a[je]);b(Ze,a[Ze]);b(hb,1);b(ib,"j72");c(Qb,Ma);c(oa,ua);c(dd,cd);c(Rb,Oa);c(md,vb);c(Sb,nc);c(Uc,Yc);c(Tb,
57
+ Ja);c(Vb,Ta);c(Vc,Hc);c(zd,yd);c(Ld,Sd);c(Wb,Pa);c(Xb,Sa);c(Cd,Fd(this));Kc(this.b);Jc(this.b,a[Q]);this.b.set(jb,Lc());bd(this.b.get(Na),this.b.get(W),this.b.get(Yb))},Jc=function(a,b){var c=P(a,U);a.data.set(la,"_ga"==c?"_gid":c+"_gid");if("cookie"==P(a,ac)){hc=!1;c=Ca(P(a,U));c=Xd(a,c);if(!c){c=P(a,W);var d=P(a,$b)||xa();c=Xc("__utma",d,c);void 0!=c?(J(10),c=c.O[1]+"."+c.O[2]):c=void 0}c&&(hc=!0);if(d=c&&!a.get(Hd))if(d=c.split("."),2!=d.length)d=!1;else if(d=Number(d[1])){var e=R(a,Zb);d=d+e<
58
+ (new Date).getTime()/1E3}else d=!1;d&&(c=void 0);c&&(a.data.set(xd,c),a.data.set(Q,c),c=Ca(P(a,la)),(c=Xd(a,c))&&a.data.set(I,c));if(a.get(je)&&(c=a.get(ce),d=a.get(ie),!c||d&&"aw.ds"!=d)){c={};if(M){d=[];e=M.cookie.split(";");for(var g=/^\s*_gac_(UA-\d+-\d+)=\s*(.+?)\s*$/,ca=0;ca<e.length;ca++){var l=e[ca].match(g);l&&d.push({ja:l[1],value:l[2]})}e={};if(d&&d.length)for(g=0;g<d.length;g++)(ca=d[g].value.split("."),"1"!=ca[0]||3!=ca.length)?c&&(c.na=!0):ca[1]&&(e[d[g].ja]?c&&(c.pa=!0):e[d[g].ja]=
59
+ [],e[d[g].ja].push({timestamp:ca[1],qa:ca[2]}));d=e}else d={};d=d[P(a,Na)];le(c);d&&0!=d.length&&(c=d[0],a.data.set(fe,c.timestamp),a.data.set(ce,c.qa))}}if(a.get(Hd)&&(c=be("_ga",a.get(cc)),d=be("_gl",a.get(cc)),e=De.get(a.get(cc)),g=e._ga,d&&0<d.indexOf("_ga")&&!g&&J(30),c||g))if(c&&g&&J(36),a.get(bc)){if(g&&(J(38),a.data.set(Q,g),e._gid&&(J(51),a.data.set(I,e._gid)),e._gac&&(d=e._gac.split("."))&&2==d.length&&(J(37),a.data.set(ce,d[0]),a.data.set(fe,d[1]))),c)b:if(d=c.indexOf("."),-1==d)J(22);
60
+ else{e=c.substring(0,d);g=c.substring(d+1);d=g.indexOf(".");c=g.substring(0,d);g=g.substring(d+1);if("1"==e){if(d=g,ke(d,c)){J(23);break b}}else if("2"==e){d=g.indexOf("-");e="";0<d?(e=g.substring(0,d),d=g.substring(d+1)):d=g.substring(1);if(ke(e+d,c)){J(53);break b}e&&(J(2),a.data.set(I,e))}else{J(22);break b}J(11);a.data.set(Q,d);if(c=be("_gac",a.get(cc)))c=c.split("."),"1"!=c[0]||4!=c.length?J(72):ke(c[3],c[1])?J(71):(a.data.set(ce,c[3]),a.data.set(fe,c[2]),J(70))}}else J(21);b&&(J(9),a.data.set(Q,
61
+ K(b)));a.get(Q)||((b=(b=O.gaGlobal&&O.gaGlobal.vid)&&-1!=b.search(jd)?b:void 0)?(J(17),a.data.set(Q,b)):(J(8),a.data.set(Q,ra())));a.get(I)||(J(3),a.data.set(I,ra()));mc(a)},Kc=function(a){var b=O.navigator,c=O.screen,d=M.location;a.set(lb,ya(a.get(ec),a.get(Kd)));if(d){var e=d.pathname||"";"/"!=e.charAt(0)&&(J(31),e="/"+e);a.set(kb,d.protocol+"//"+d.hostname+e+d.search)}c&&a.set(qb,c.width+"x"+c.height);c&&a.set(pb,c.colorDepth+"-bit");c=M.documentElement;var g=(e=M.body)&&e.clientWidth&&e.clientHeight,
62
+ ca=[];c&&c.clientWidth&&c.clientHeight&&("CSS1Compat"===M.compatMode||!g)?ca=[c.clientWidth,c.clientHeight]:g&&(ca=[e.clientWidth,e.clientHeight]);c=0>=ca[0]||0>=ca[1]?"":ca.join("x");a.set(rb,c);a.set(tb,fc());a.set(ob,M.characterSet||M.charset);a.set(sb,b&&"function"===typeof b.javaEnabled&&b.javaEnabled()||!1);a.set(nb,(b&&(b.language||b.browserLanguage)||"").toLowerCase());a.data.set(ce,be("gclid",!0));a.data.set(ie,be("gclsrc",!0));a.data.set(fe,Math.round((new Date).getTime()/1E3));if(d&&a.get(cc)&&
63
+ (b=M.location.hash)){b=b.split(/[?&#]+/);d=[];for(c=0;c<b.length;++c)(D(b[c],"utm_id")||D(b[c],"utm_campaign")||D(b[c],"utm_source")||D(b[c],"utm_medium")||D(b[c],"utm_term")||D(b[c],"utm_content")||D(b[c],"gclid")||D(b[c],"dclid")||D(b[c],"gclsrc"))&&d.push(b[c]);0<d.length&&(b="#"+d.join("&"),a.set(kb,a.get(kb)+b))}};pc.prototype.get=function(a){return this.b.get(a)};pc.prototype.set=function(a,b){this.b.set(a,b)};var qc={pageview:[mb],event:[ub,xb,yb,zb],social:[Bb,Cb,Db],timing:[Mb,Nb,Pb,Ob]};
64
+ pc.prototype.send=function(a){if(!(1>arguments.length)){if("string"===typeof arguments[0]){var b=arguments[0];var c=[].slice.call(arguments,1)}else b=arguments[0]&&arguments[0][Va],c=arguments;b&&(c=za(qc[b]||[],c),c[Va]=b,this.b.set(c,void 0,!0),this.filters.D(this.b),this.b.data.m={})}};pc.prototype.ma=function(a,b){var c=this;u(a,c,b)||(v(a,function(){u(a,c,b)}),y(String(c.get(V)),a,void 0,b,!0))};var rc=function(a){if("prerender"==M.visibilityState)return!1;a();return!0},z=function(a){if(!rc(a)){J(16);var b=!1,c=function(){if(!b&&rc(a)){b=!0;var d=c,e=M;e.removeEventListener?e.removeEventListener("visibilitychange",d,!1):e.detachEvent&&e.detachEvent("onvisibilitychange",d)}};L(M,"visibilitychange",c)}};var td=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/,sc=function(a){if(ea(a[0]))this.u=a[0];else{var b=td.exec(a[0]);null!=b&&4==b.length&&(this.c=b[1]||"t0",this.K=b[2]||"",this.C=b[3],this.a=[].slice.call(a,1),this.K||(this.A="create"==this.C,this.i="require"==this.C,this.g="provide"==this.C,this.ba="remove"==this.C),this.i&&(3<=this.a.length?(this.X=this.a[1],this.W=this.a[2]):this.a[1]&&(qa(this.a[1])?this.X=this.a[1]:this.W=this.a[1])));b=a[1];a=a[2];if(!this.C)throw"abort";if(this.i&&(!qa(b)||""==b))throw"abort";
65
+ if(this.g&&(!qa(b)||""==b||!ea(a)))throw"abort";if(ud(this.c)||ud(this.K))throw"abort";if(this.g&&"t0"!=this.c)throw"abort";}};function ud(a){return 0<=a.indexOf(".")||0<=a.indexOf(":")};var Yd,Zd,$d,A;Yd=new ee;$d=new ee;A=new ee;Zd={ec:45,ecommerce:46,linkid:47};
66
+ var u=function(a,b,c){b==N||b.get(V);var d=Yd.get(a);if(!ea(d))return!1;b.plugins_=b.plugins_||new ee;if(b.plugins_.get(a))return!0;b.plugins_.set(a,new d(b,c||{}));return!0},y=function(a,b,c,d,e){if(!ea(Yd.get(b))&&!$d.get(b)){Zd.hasOwnProperty(b)&&J(Zd[b]);if(p.test(b)){J(52);a=N.j(a);if(!a)return!0;c=d||{};d={id:b,B:c.dataLayer||"dataLayer",ia:!!a.get("anonymizeIp"),sync:e,G:!1};a.get("&gtm")==b&&(d.G=!0);var g=String(a.get("name"));"t0"!=g&&(d.target=g);G(String(a.get("trackingId")))||(d.clientId=
67
+ String(a.get(Q)),d.ka=Number(a.get(n)),c=c.palindrome?r:q,c=(c=M.cookie.replace(/^|(; +)/g,";").match(c))?c.sort().join("").substring(1):void 0,d.la=c,d.qa=E(a.b.get(kb)||"","gclid"));a=d.B;c=(new Date).getTime();O[a]=O[a]||[];c={"gtm.start":c};e||(c.event="gtm.js");O[a].push(c);c=t(d)}!c&&Zd.hasOwnProperty(b)?(J(39),c=b+".js"):J(43);c&&(c&&0<=c.indexOf("/")||(c=(Ba||"https:"==M.location.protocol?"https:":"http:")+"//www.google-analytics.com/plugins/ua/"+c),d=ae(c),a=d.protocol,c=M.location.protocol,
68
+ ("https:"==a||a==c||("http:"!=a?0:"http:"==c))&&B(d)&&(wa(d.url,void 0,e),$d.set(b,!0)))}},v=function(a,b){var c=A.get(a)||[];c.push(b);A.set(a,c)},C=function(a,b){Yd.set(a,b);b=A.get(a)||[];for(var c=0;c<b.length;c++)b[c]();A.set(a,[])},B=function(a){var b=ae(M.location.href);if(D(a.url,"https://www.google-analytics.com/gtm/js?id="))return!0;if(a.query||0<=a.url.indexOf("?")||0<=a.path.indexOf("://"))return!1;if(a.host==b.host&&a.port==b.port)return!0;b="http:"==a.protocol?80:443;return"www.google-analytics.com"==
69
+ a.host&&(a.port||b)==b&&D(a.path,"/plugins/")?!0:!1},ae=function(a){function b(a){var b=a.hostname||"",c=0<=b.indexOf("]");b=b.split(c?"]":":")[0].toLowerCase();c&&(b+="]");c=(a.protocol||"").toLowerCase();c=1*a.port||("http:"==c?80:"https:"==c?443:"");a=a.pathname||"";D(a,"/")||(a="/"+a);return[b,""+c,a]}var c=M.createElement("a");c.href=M.location.href;var d=(c.protocol||"").toLowerCase(),e=b(c),g=c.search||"",ca=d+"//"+e[0]+(e[1]?":"+e[1]:"");D(a,"//")?a=d+a:D(a,"/")?a=ca+a:!a||D(a,"?")?a=ca+e[2]+
70
+ (a||g):0>a.split("/")[0].indexOf(":")&&(a=ca+e[2].substring(0,e[2].lastIndexOf("/"))+"/"+a);c.href=a;d=b(c);return{protocol:(c.protocol||"").toLowerCase(),host:d[0],port:d[1],path:d[2],query:c.search||"",url:a||""}};var Z={ga:function(){Z.f=[]}};Z.ga();Z.D=function(a){var b=Z.J.apply(Z,arguments);b=Z.f.concat(b);for(Z.f=[];0<b.length&&!Z.v(b[0])&&!(b.shift(),0<Z.f.length););Z.f=Z.f.concat(b)};Z.J=function(a){for(var b=[],c=0;c<arguments.length;c++)try{var d=new sc(arguments[c]);d.g?C(d.a[0],d.a[1]):(d.i&&(d.ha=y(d.c,d.a[0],d.X,d.W)),b.push(d))}catch(e){}return b};
71
+ Z.v=function(a){try{if(a.u)a.u.call(O,N.j("t0"));else{var b=a.c==gb?N:N.j(a.c);if(a.A){if("t0"==a.c&&(b=N.create.apply(N,a.a),null===b))return!0}else if(a.ba)N.remove(a.c);else if(b)if(a.i){if(a.ha&&(a.ha=y(a.c,a.a[0],a.X,a.W)),!u(a.a[0],b,a.W))return!0}else if(a.K){var c=a.C,d=a.a,e=b.plugins_.get(a.K);e[c].apply(e,d)}else b[a.C].apply(b,a.a)}}catch(g){}};var N=function(a){J(1);Z.D.apply(Z,[arguments])};N.h={};N.P=[];N.L=0;N.ya=0;N.answer=42;var uc=[Na,W,V];N.create=function(a){var b=za(uc,[].slice.call(arguments));b[V]||(b[V]="t0");var c=""+b[V];if(N.h[c])return N.h[c];if(da(b))return null;b=new pc(b);N.h[c]=b;N.P.push(b);return b};N.remove=function(a){for(var b=0;b<N.P.length;b++)if(N.P[b].get(V)==a){N.P.splice(b,1);N.h[a]=null;break}};N.j=function(a){return N.h[a]};N.getAll=function(){return N.P.slice(0)};
72
+ N.N=function(){"ga"!=gb&&J(49);var a=O[gb];if(!a||42!=a.answer){N.L=a&&a.l;N.ya=1*new Date;N.loaded=!0;var b=O[gb]=N;X("create",b,b.create);X("remove",b,b.remove);X("getByName",b,b.j,5);X("getAll",b,b.getAll,6);b=pc.prototype;X("get",b,b.get,7);X("set",b,b.set,4);X("send",b,b.send);X("requireSync",b,b.ma);b=Ya.prototype;X("get",b,b.get);X("set",b,b.set);if("https:"!=M.location.protocol&&!Ba){a:{b=M.getElementsByTagName("script");for(var c=0;c<b.length&&100>c;c++){var d=b[c].src;if(d&&0==d.indexOf("https://www.google-analytics.com/analytics")){b=
73
+ !0;break a}}b=!1}b&&(Ba=!0)}(O.gaplugins=O.gaplugins||{}).Linker=Dc;b=Dc.prototype;C("linker",Dc);X("decorate",b,b.ca,20);X("autoLink",b,b.S,25);C("displayfeatures",fd);C("adfeatures",fd);a=a&&a.q;ka(a)?Z.D.apply(N,a):J(50)}};N.da=function(){for(var a=N.getAll(),b=0;b<a.length;b++)a[b].get(V)};var Nd=N.N,te=O[gb];te&&te.r?Nd():z(Nd);z(function(){Z.D(["provide","render",ua])});})(window);
inc/settings.php CHANGED
@@ -176,7 +176,7 @@ if ( ! class_exists( 'Speed_Booster_Pack_Options' ) ) {
176
  public function sbp_add_menu() {
177
 
178
  global $sbp_settings_page;
179
- $sbp_settings_page = add_menu_page( __( 'Speed Booster Options', 'sb-pack' ), __( 'Speed Booster', 'sb-pack' ), 'manage_options', 'sbp-options', array(
180
  $this,
181
  'sbp_plugin_settings_page',
182
  ), plugin_dir_url( __FILE__ ) . 'images/icon-16x16.png' );
@@ -198,10 +198,6 @@ if ( ! class_exists( 'Speed_Booster_Pack_Options' ) ) {
198
  global $sbp_options;
199
 
200
  // Global variables used in plugin options page
201
- $url = get_site_url();
202
- $response = wp_remote_get( $url, array() );
203
- $page_time = get_option( 'sbp_page_time' );
204
- $page_queries = get_option( 'sbp_page_queries' );
205
  $get_enqueued_scripts_handle = get_option( 'all_theme_scripts_handle' );
206
  $get_enqueued_scripts_src = get_option( 'all_theme_scripts_src' );
207
  $get_enqueued_styles_handle = get_option( 'all_theme_styles_handle' );
176
  public function sbp_add_menu() {
177
 
178
  global $sbp_settings_page;
179
+ $sbp_settings_page = add_menu_page( __( 'Speed Booster Options', 'speed-booster-pack' ), __( 'Speed Booster', 'speed-booster-pack' ), 'manage_options', 'sbp-options', array(
180
  $this,
181
  'sbp_plugin_settings_page',
182
  ), plugin_dir_url( __FILE__ ) . 'images/icon-16x16.png' );
198
  global $sbp_options;
199
 
200
  // Global variables used in plugin options page
 
 
 
 
201
  $get_enqueued_scripts_handle = get_option( 'all_theme_scripts_handle' );
202
  $get_enqueued_scripts_src = get_option( 'all_theme_scripts_src' );
203
  $get_enqueued_styles_handle = get_option( 'all_theme_styles_handle' );
inc/template/notice.php CHANGED
@@ -1,35 +1,33 @@
1
  <div class="notice sbp-notice" id="sbp-notice">
2
- <img src="<?php echo esc_url( plugins_url( 'images/logo.png', dirname( __FILE__ ) ) ); ?>" width="80">
3
-
4
- <h1><?php esc_html_e( 'Welcome to Speed Booster Pack', 'sb-pack' ); ?></h1>
5
-
6
- <p><?php printf( esc_html__( 'Welcome! Thank you for installing Speed Booster Pack! Check out the %sPlugin settings%s for new features that can make your site load faster.', 'sb-pack' ), '<a href="admin.php?page=sbp-options">', '</a>' ); ?></p>
7
-
8
- <p><a href="admin.php?page=sbp-options" class="button button-primary button-hero"><?php esc_html_e( 'Get started with Speed Booster Pack', 'sb-pack' ); ?></a></p>
9
-
10
- <button type="button" onclick="sbp_dismissNotice();" class="notice-dismiss"><span class="screen-reader-text"><?php esc_html_e( 'Dismiss this notice.', 'sb-pack' ); ?></span></button>
11
  </div>
12
-
13
  <style>
14
- .sbp-notice {
15
- background: #e9eff3;
16
- border: 10px solid #fff;
17
- color: #608299;
18
- padding: 30px;
19
- text-align: center;
20
- position: relative;
21
- }
22
  </style>
23
-
24
  <script>
25
- function sbp_dismissNotice() {
26
- jQuery("#sbp-notice").hide();
27
- var data = { action : 'sbp_dismiss_notices'};
28
- jQuery.get('<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>', data, function(response) {
29
- data = JSON.parse(response);
30
- if(data["Status"] == 0) {
31
- console.log("dismissed");
32
- }
33
- });
34
- }
35
  </script>
1
  <div class="notice sbp-notice" id="sbp-notice">
2
+ <img src="<?php echo esc_url(plugins_url('images/logo.png', dirname(__FILE__))); ?>" width="80">
3
+ <h1><?php esc_html_e('Welcome to Speed Booster Pack', 'speed-booster-pack'); ?></h1>
4
+ <p><?php printf(esc_html__('Welcome! Thank you for installing Speed Booster Pack! Check out the %sPlugin settings%s for new features that can make your site load faster.', 'speed-booster-pack'), '<a href="admin.php?page=sbp-options">', '</a>'); ?></p>
5
+ <p><a href="admin.php?page=sbp-options"
6
+ class="button button-primary button-hero"><?php esc_html_e('Get started with Speed Booster Pack', 'speed-booster-pack'); ?></a>
7
+ </p>
8
+ <button type="button" onclick="sbp_dismissNotice();" class="notice-dismiss"><span
9
+ class="screen-reader-text"><?php esc_html_e('Dismiss this notice.', 'speed-booster-pack'); ?></span>
10
+ </button>
11
  </div>
 
12
  <style>
13
+ .sbp-notice {
14
+ background: #e9eff3;
15
+ border: 10px solid #fff;
16
+ color: #608299;
17
+ padding: 30px;
18
+ text-align: center;
19
+ position: relative;
20
+ }
21
  </style>
 
22
  <script>
23
+ function sbp_dismissNotice() {
24
+ jQuery("#sbp-notice").hide();
25
+ var data = { action : 'sbp_dismiss_notices'};
26
+ jQuery.get('<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>', data, function(response) {
27
+ data = JSON.parse(response);
28
+ if(data["Status"] == 0) {
29
+ console.log("dismissed");
30
+ }
31
+ });
32
+ }
33
  </script>
inc/template/options.php CHANGED
@@ -25,69 +25,17 @@ if ( is_array( $option_arr ) && in_array( 'defer-from-footer', $option_arr ) ) {
25
  <div class="about-text">
26
  <?php
27
  /* Translators: Welcome Screen Description. */
28
- echo esc_html__( 'Speed Booster Pack is a lightweight, frequently updated, easy to use and well supported plugin which allows you to improve your website’s loading speed. Visitors usually close a website if it doesn’t load in a few seconds and the slower a site loads the greater the chances are that the visitors will leave. And you don’t want that to happen, do you?
29
- ', 'sb-pack' );
30
  ?>
31
  </div>
32
  <div class="wp-badge sbp-welcome-logo"></div>
33
- <div class="sbp-fast-as-a-rabbit">
34
- <div class="sbp-speed-page-load">
35
- <?php _e( 'Page load: ', 'sb-pack' ); ?>
36
- <span><?php echo esc_html( $page_time ) . __( ' sec', 'sb-pack' ); ?></span>
37
- <span class="sbp-progress-bar">
38
- <?php if ( $page_time < 10 ) { ?>
39
- <progress max="100" value="<?php echo $page_time * 10; ?>">
40
- <?php } else { ?>
41
- <progress max="100" value="100" class="sbp-progress-red">
42
- <?php } ?>
43
- </progress>
44
-
45
- <?php if ( ( $page_time ) > 10 ) { ?>
46
- <img draggable="false" class="emoji" title="Your page loading time just made us cry" alt="😥" src="https://s.w.org/images/core/emoji/2.4/svg/1f625.svg">
47
- <?php } else if ( ( $page_time ) > 8 && ( $page_time ) < 10 ) { ?>
48
- <img draggable="false" class="emoji" title="Your page loading time just made us cry" alt="😥" src="https://s.w.org/images/core/emoji/2.4/svg/1f625.svg">
49
- <?php } else if ( ( $page_time ) > 6 && ( $page_time ) < 8 ) { ?>
50
- <img draggable="false" class="emoji" title="I'm not gonna lie, things aren't looking to good" alt="😮" src="https://s.w.org/images/core/emoji/2.4/svg/1f62e.svg">
51
- <?php } else if ( ( $page_time ) > 4 && ( $page_time ) < 6 ) { ?>
52
- <img draggable="false" class="emoji" title="Could be better" alt="🙄" src="https://s.w.org/images/core/emoji/2.4/svg/1f644.svg">
53
- <?php } else if ( ( $page_time ) > 2 && ( $page_time ) < 4 ) { ?>
54
- <img draggable="false" class="emoji" title="Going strong" alt="😥" src="https://s.w.org/images/core/emoji/2.4/svg/1f625.svg">
55
- <?php } else if ( ( $page_time ) < 2 ) { ?>
56
- <img draggable="false" title="You're a star" class="emoji" alt="⭐" src="https://s.w.org/images/core/emoji/2.4/svg/2b50.svg">
57
- <?php } ?>
58
- </span>
59
-
60
- </div>
61
- <div class="sbp-speed-db-queries">
62
- <i class="dashicons dashicons-dashboard"></i><span><?php echo esc_html( $page_queries ); ?></span> <?php _e( 'DB Queries', 'sb-pack' ); ?>
63
- </div>
64
-
65
- <div class="sbp-speed-memory-usage">
66
- <i class="dashicons dashicons-chart-pie"></i>
67
- <?php _e( 'Memory: ', 'sb-pack' ); ?>
68
- <span><?php echo number_format( ( memory_get_peak_usage() / 1024 / 1024 ), 1, ',', '' ) . ' / ' . ini_get( 'memory_limit' ), '<br />'; ?></span>
69
-
70
- </div>
71
-
72
- <div class="sbp-speed-plugin-number">
73
- <i class="dashicons dashicons-admin-plugins"></i>
74
- <?php _e( 'Plugins: ', 'sb-pack' ); ?>
75
- <span><?php echo count( get_option( 'active_plugins' ) ); ?></span>
76
- </div>
77
-
78
- <div class="sbp-speed-info-analyze-container">
79
- <!-- <a href="#" class="button button-secondary"><i class="dashicons dashicons-info"></i></a> -->
80
- <!-- <a href="#" class="button button-primary"><i class="dashicons dashicons-search"></i><?php _e( 'Analyse', 'sb-pack' ); ?> -->
81
- </a>
82
- </div>
83
- </div>
84
 
85
  <h2 class="nav-tab-wrapper wp-clearfix">
86
- <a class="nav-tab" href="#general-options"><?php esc_html_e( 'General', 'sb-pack' ); ?></a>
87
- <a class="nav-tab" href="#advanced-options"><?php esc_html_e( 'Advanced', 'sb-pack' ); ?></a>
88
- <a class="nav-tab" href="#image-options"><?php esc_html_e( 'Image Optimization', 'sb-pack' ); ?></a>
89
- <a class="nav-tab" href="#support"><?php esc_html_e( 'Support', 'sb-pack' ); ?></a>
90
- <a class="nav-tab" href="#optimize-more"><?php esc_html_e( 'Optimize More', 'sb-pack' ); ?></a>
91
  </h2>
92
 
93
  <form method="post" action="options.php">
@@ -96,481 +44,659 @@ if ( is_array( $option_arr ) && in_array( 'defer-from-footer', $option_arr ) ) {
96
  <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
97
  <?php settings_fields( 'speed_booster_settings_group' ); ?>
98
 
99
- <div id="general-options" class="sb-pack-tab">
100
-
101
- <h3><?php _e( 'General', 'sb-pack' ); ?></h3>
102
-
103
- <p>
104
- <input id="sbp_settings[jquery_to_footer]" name="sbp_settings[jquery_to_footer]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['jquery_to_footer'] ) ); ?> />
105
- <label for="sbp_settings[jquery_to_footer]"><?php _e( 'Move scripts to the footer', 'sb-pack' ); ?></label>
106
- <span class="tooltip-right"
107
- data-tooltip="<?php echo __( 'This option move all scripts to the footer while keeping stylesheets in the header to improve page loading speed and get a higher score on the major speed testing sites such as GTmetrix or other website speed testing tools.', 'sb-pack' ); ?>">
108
- <i class="dashicons dashicons-editor-help"></i>
109
- </span>
110
-
111
- </p>
112
-
113
- <p>
114
- <input id="sbp_settings[use_google_libs]" name="sbp_settings[use_google_libs]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['use_google_libs'] ) ); ?> />
115
- <label for="sbp_settings[use_google_libs]"><?php _e( 'Load JS from Google Libraries', 'sb-pack' ); ?></label>
116
- <span class="tooltip-right"
117
- data-tooltip="<?php echo __( 'Loading WordPress javascript files from Google’s Libraries rather than serving it from your WordPress install directly, will reduce latency, increase parallelism and improve caching.', 'sb-pack' ); ?>">
118
- <i class="dashicons dashicons-editor-help"></i>
119
- </span>
120
- </p>
121
-
122
- <p>
123
- <input id="sbp_settings[minify_html_js]" name="sbp_settings[minify_html_js]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['minify_html_js'] ) ); ?> />
124
- <label for="sbp_settings[minify_html_js]"><?php _e( 'Minify HTML', 'sb-pack' ); ?></label>
125
- <span class="tooltip-right"
126
- data-tooltip="<?php echo __( 'Activate this option only if you don’t want to use other minify plugins or other speed optimization plugin that has minify option included. If something goes wrong, simply uncheck this option and save the settings.', 'sb-pack' ); ?>">
127
- <i class="dashicons dashicons-editor-help"></i>
128
- </span>
129
- </p>
130
-
131
- <p>
132
- <input id="sbp_settings[defer_parsing]" name="sbp_settings[defer_parsing]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['defer_parsing'] ) ); ?> />
133
- <label for="sbp_settings[defer_parsing]"><?php _e( 'Defer parsing of javascript files', 'sb-pack' ); ?></label>
134
- <span class="tooltip-right"
135
- data-tooltip="<?php echo __( '!!!Note: This will be disabled IF Move Scripts to Footer is enabled. By deferring parsing of unneeded JavaScript until it needs to be executed, you can reduce the initial load time of your page. Please note that this option will not defer the main WordPress jQuery script if Load JS from Google Libraries option is not checked.', 'sb-pack' ); ?>">
136
- <i class="dashicons dashicons-editor-help"></i>
137
- </span>
138
- </p>
139
-
140
- <p>
141
- <input id="sbp_settings[query_strings]" name="sbp_settings[query_strings]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['query_strings'] ) ); ?> />
142
- <label for="sbp_settings[query_strings]"><?php _e( 'Remove query strings', 'sb-pack' ); ?></label>
143
- <span class="tooltip-right"
144
- data-tooltip="<?php echo __( 'Since most proxies do not cache resources with a ? in their URL, this option allows you to remove any query strings (version numbers) from static resources like CSS & JS files, thus improving your speed scores in services like GTmetrix, PageSpeed, YSlow and Pingdoom.', 'sb-pack' ); ?>">
145
- <i class="dashicons dashicons-editor-help"></i>
146
- </span>
147
- </p>
148
-
149
- <p>
150
- <input id="sbp_settings[font_awesome]" name="sbp_settings[font_awesome]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['font_awesome'] ) ); ?> />
151
- <label for="sbp_settings[font_awesome]"><?php _e( 'Removes extra Font Awesome styles', 'sb-pack' ); ?></label>
152
- <span class="tooltip-right"
153
- data-tooltip="<?php echo __( 'Use this option only if your theme uses Font Awesome, to prevent other plugins that uses Font Awesome, to add their stylesheets to your theme. In other words, this option removes extra Font Awesome stylesheets added to your theme by certain plugins.', 'sb-pack' ); ?>">
154
- <i class="dashicons dashicons-editor-help"></i>
155
- </span>
156
- </p>
157
-
158
- <h3> <?php _e( 'More settings', 'sb-pack' ); ?></h3>
159
-
160
- <p>
161
- <input id="sbp_settings[remove_emojis]" name="sbp_settings[remove_emojis]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['remove_emojis'] ) ); ?> />
162
- <label for="sbp_settings[remove_emojis]"><?php _e( 'Remove WordPress Emoji scripts', 'sb-pack' ); ?></label>
163
- <span class="tooltip-right"
164
- data-tooltip="<?php echo __( 'Emojis are fun and all, but if you are aren’t using them they actually load a JavaScript file (wp-emoji-release.min.js) on every page of your website. For a lot of businesses, this is not needed and simply adds load time to your site. So we recommend disabling this.', 'sb-pack' ); ?>">
165
- <i class="dashicons dashicons-editor-help"></i>
166
- </span>
167
- </p>
168
-
169
- <p>
170
- <input id="sbp_settings[remove_wsl]" name="sbp_settings[remove_wsl]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['remove_wsl'] ) ); ?> />
171
- <label for="sbp_settings[remove_wsl]"><?php _e( 'Remove WordPress Shortlink', 'sb-pack' ); ?></label>
172
- <span class="tooltip-right"
173
- data-tooltip="<?php echo __( 'WordPress URL shortening is sometimes useful, but it automatically adds an ugly code in your header, so you can remove it.', 'sb-pack' ); ?>">
174
- <i class="dashicons dashicons-editor-help"></i>
175
- </span>
176
- </p>
177
-
178
- <p>
179
- <input id="sbp_settings[remove_adjacent]" name="sbp_settings[remove_adjacent]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['remove_adjacent'] ) ); ?> />
180
- <label for="sbp_settings[remove_adjacent]"><?php _e( 'Remove Adjacent Posts Links', 'sb-pack' ); ?></label>
181
- <span class="tooltip-right"
182
- data-tooltip="<?php echo __( 'WordPress incorrectly implements this feature that supposedly should fix a pagination issues but it messes up, so there is no reason to keep these around. However, some browsers may use Adjacent Posts Links to navigate your site, although you can remove it if you run a well designed theme.', 'sb-pack' ); ?>">
183
- <i class="dashicons dashicons-editor-help"></i>
184
- </span>
185
- </p>
186
-
187
- <p>
188
- <input id="sbp_settings[wml_link]" name="sbp_settings[wml_link]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['wml_link'] ) ); ?> />
189
- <label for="sbp_settings[wml_link]"><?php _e( 'Remove Windows Manifest', 'sb-pack' ); ?></label>
190
- <span class="tooltip-right"
191
- data-tooltip="<?php echo __( 'Windows Live Writer (WLW) is a Microsoft application for composing and managing blog posts offline and publish them later. If you are not using Windows Live Writer application, you can remove it from the WP head.', 'sb-pack' ); ?>">
192
- <i class="dashicons dashicons-editor-help"></i>
193
- </span>
194
- </p>
195
-
196
- <p>
197
- <input id="sbp_settings[rsd_link]" name="sbp_settings[rsd_link]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['rsd_link'] ) ); ?> />
198
- <label for="sbp_settings[rsd_link]"><?php _e( 'Remove RSD(Really Simple Discovery) Link', 'sb-pack' ); ?></label>
199
- <span class="tooltip-right"
200
- data-tooltip="<?php echo __( 'This type of link is used by blog clients. If you edit your site from your browser then you don’t need this. It is also used by some 3rd party applications that utilize XML-RPC requests. In most cases, this is just unnecessary code.', 'sb-pack' ); ?>">
201
- <i class="dashicons dashicons-editor-help"></i>
202
- </span>
203
- </p>
204
-
205
- <p>
206
- <input id="sbp_settings[wp_generator]" name="sbp_settings[wp_generator]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['wp_generator'] ) ); ?> />
207
- <label for="sbp_settings[wp_generator]"><?php _e( 'Remove the WordPress Version', 'sb-pack' ); ?></label>
208
- <span class="tooltip-right"
209
- data-tooltip="<?php echo __( 'This option is added for security reasons and cleaning the header.', 'sb-pack' ); ?>">
210
- <i class="dashicons dashicons-editor-help"></i>
211
- </span>
212
- </p>
213
-
214
- <p>
215
- <input id="sbp_settings[remove_all_feeds]" name="sbp_settings[remove_all_feeds]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['remove_all_feeds'] ) ); ?> />
216
- <label for="sbp_settings[remove_all_feeds]"><?php _e( 'Remove all rss feed links', 'sb-pack' ); ?></label>
217
- <span class="tooltip-right"
218
- data-tooltip="<?php echo __( 'This option wil remove all rss feed links to cleanup your WordPress header. It is also useful on Unicorn – The W3C Markup Validation Service to get rid out the “feed does not validate” error.', 'sb-pack' ); ?>">
219
- <i class="dashicons dashicons-editor-help"></i>
220
- </span>
221
- </p>
222
-
223
- <p>
224
- <input id="sbp_settings[disable_xmlrpc]" name="sbp_settings[disable_xmlrpc]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['disable_xmlrpc'] ) ); ?> />
225
- <label for="sbp_settings[disable_xmlrpc]"><?php _e( 'Disable XML-RPC', 'sb-pack' ); ?></label>
226
- <span class="tooltip-right"
227
- data-tooltip="<?php echo __( 'XML-RPC was added in WordPress 3.5 and allows for remote connections, and unless you are using your mobile device to post to WordPress it does more bad than good. In fact, it can open your site up to a bunch of security risks. There are a few plugins that utilize this such as JetPack, but we don’t recommend using JetPack for performance reasons.', 'sb-pack' ); ?>">
228
- <i class="dashicons dashicons-editor-help"></i>
229
- </span>
230
- </p>
231
-
232
- <h3><?php _e( 'Need even more speed?', 'sb-pack' ); ?></h3>
233
-
234
- <p>
235
- <input id="sbp_css_async" name="sbp_settings[sbp_css_async]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['sbp_css_async'] ) ); ?> />
236
- <label for="sbp_css_async"><?php _e( 'Inline all CSS styles', 'sb-pack' ); ?></label>
237
- <span class="tooltip-right"
238
- data-tooltip="<?php echo __( 'Checking this option will inline the contents of all your stylesheets. This helps with the annoying render blocking error Google Page Speed Insights displays.', 'sb-pack' ); ?>">
239
- <i class="dashicons dashicons-editor-help"></i>
240
- </span>
241
- </p>
242
-
243
- <p>
244
- <input id="sbp_settings[sbp_css_minify]" name="sbp_settings[sbp_css_minify]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['sbp_css_minify'] ) ); ?> />
245
- <label for="sbp_settings[sbp_css_minify]"><?php _e( 'Minify all (previously) inlined CSS styles', 'sb-pack' ); ?></label>
246
- <span class="tooltip-right"
247
- data-tooltip="<?php echo __( 'Minifying all inlined CSS styles will optimize the CSS delivery and will eliminate the annoying message on Google Page Speed regarding to render-blocking css.', 'sb-pack' ); ?>">
248
- <i class="dashicons dashicons-editor-help"></i>
249
- </span>
250
- </p>
251
-
252
- <p>
253
- <input id="sbp_settings[sbp_footer_css]" name="sbp_settings[sbp_footer_css]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['sbp_footer_css'] ) ); ?> />
254
- <label for="sbp_settings[sbp_footer_css]"><?php _e( 'Move all inlined CSS into the footer', 'sb-pack' ); ?></label>
255
- <span class="tooltip-right"
256
- data-tooltip="<?php echo __( 'Inserting all CSS styles inline to the footer is a sensitive option that will eliminate render-blocking CSS warning in Google Page Speed test. If there is something broken after activation, you need to disable this option. Please note that before enabling this sensitive option, it is strongly recommended that you also enable the “ Move scripts to the footer” option.', 'sb-pack' ); ?>">
257
- <i class="dashicons dashicons-editor-help"></i>
258
- </span>
259
- </p>
260
-
261
- <p>
262
- <input id="sbp_settings[sbp_is_mobile]" name="sbp_settings[sbp_is_mobile]" type="checkbox" value="1" <?php checked( 1, isset( $sbp_options['sbp_is_mobile'] ) ); ?> />
263
- <label for="sbp_settings[sbp_is_mobile]"><?php _e( 'Disable all above CSS options on mobile devices', 'sb-pack' ); ?></label>
264
- <span class="tooltip-right"
265
- data-tooltip="<?php echo __( 'Disable all above CSS options on mobile devices: this option was added to avoid some appearance issues on mobile devices.', 'sb-pack' ); ?>">
266
- <i class="dashicons dashicons-editor-help"></i>
267
- </span>
268
- </p>
269
-
270
- <div class="td-border-last"></div>
271
-
272
- <h4><?php _e( 'Exclude styles from being inlined and/or minified option: ', 'sb-pack' ); ?></h4>
273
- <p>
274
- <textarea cols="50" rows="3" name="sbp_css_exceptions" id="sbp_css_exceptions" value="<?php echo esc_attr( $css_exceptions ); ?>" /><?php echo wp_kses_post( $css_exceptions ); ?></textarea>
275
- </p>
276
- <p class="description">
277
- <?php _e( 'Enter one by line, the handles of css files or the final part of the style URL. For example: <code>font-awesome</code> or <code>font-awesome.min.css</code>', 'sb-pack' ); ?>
278
- </p>
279
-
280
- <div class="td-border-last"></div>
281
-
282
- <p>
283
- <h4><?php _e( 'As a guidance, here is a list of css handles of each enqueued style detected by our plugin:', 'sb-pack' ); ?></h4>
284
- </p>
285
-
286
- <div class="sbp-all-enqueued">
287
-
288
- <div class="sbp-div-head">
289
- <div class="sbp-title-scripts"><?php _e( 'CSS Handle', 'sb-pack' ); ?></div>
290
- </div>
291
-
292
- <div class="sbp-inline-wrap">
293
- <div class="sbp-columns1 sbp-width">
294
- <?php print_r( get_option( 'all_theme_styles_handle' ) ); ?>
295
- </div>
296
- </div>
297
- </div>
298
-
299
- </div><!--#general-options-->
300
- <div id="advanced-options" class="sb-pack-tab">
301
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
  <div id="poststuff">
303
- <div id="postbox-container-exclude-footer-scripts" class="postbox-container">
304
- <div class="meta-box-sortables" id="normal-sortables">
305
- <?php if ( isset( $closed ) && $closed == true ) { ?>
306
- <div class="postbox closed" id="exclude-from-footer">
307
- <?php } else { ?>
308
- <div class="postbox" id="exclude-from-footer">
309
- <?Php } ?>
310
- <button type="button" class="handlediv" aria-expanded="true">
311
- <span class="screen-reader-text"><?php _e( 'Exclude scripts from being moved to the footer', 'sb-pack' ); ?></span>
312
- <span class="toggle-indicator" aria-hidden="true"></span>
313
- </button>
314
- <h3 class="hndle ui-sortable-handle">
315
- <span><?php _e( 'Exclude scripts from being moved to the footer', 'sb-pack' ); ?></span>
316
- </h3>
317
- <div class="inside">
318
- <div class="sbp-inline-wrap">
319
-
320
- <h4><?php _e( 'Script Handle', 'sb-pack' ); ?></h4>
321
- <i>
322
- <?php _e( 'Enter one js handle per text field.', 'sb-pack' ); ?> <?php _e( 'Read more', 'sb-pack' ); ?>
323
- <a href="https://docs.machothemes.com/article/119-plugin-options-explained#exclude-scripts-from-being-moved-to-the-footer-50" target="_blank" title="Documentation"><?php _e( 'detailed instructions', 'sb-pack' ); ?></a> <?php _e( 'on this option on plugin documentation.', 'sb-pack' ); ?>
324
-
325
- </i>
326
-
327
- <p>
328
- <input type="text" name="sbp_js_footer_exceptions1" id="sbp_js_footer_exceptions1" value="<?php echo esc_attr( $js_footer_exceptions1 ); ?>" />
329
- </p>
330
-
331
- <p>
332
- <input type="text" name="sbp_js_footer_exceptions2" id="sbp_js_footer_exceptions2" value="<?php echo esc_attr( $js_footer_exceptions2 ); ?>" />
333
- </p>
334
-
335
- <p>
336
- <input type="text" name="sbp_js_footer_exceptions3" id="sbp_js_footer_exceptions3" value="<?php echo esc_attr( $js_footer_exceptions3 ); ?>" />
337
- </p>
338
-
339
- <p>
340
- <input type="text" name="sbp_js_footer_exceptions4" id="sbp_js_footer_exceptions4" value="<?php echo esc_attr( $js_footer_exceptions4 ); ?>" />
341
- </p>
342
-
343
- <div class="td-border-last"></div>
344
-
345
- <p>
346
- <h4><?php _e( 'As a guidance, here is a list of script handles and script paths of each enqueued script detected by our plugin:', 'sb-pack' ); ?></h4>
347
- </p>
348
-
349
- <div class="sbp-all-enqueued">
350
-
351
- <div class="sbp-div-head">
352
- <div class="sbp-title-scripts"><?php _e( 'Script Handle', 'sb-pack' ); ?></div>
353
- <div class="sbp-title-scripts"><?php _e( 'Script Path', 'sb-pack' ); ?></div>
354
- </div>
355
 
356
- <div class="sbp-inline-wrap">
357
-
358
- <div class="sbp-columns1 sbp-width">
359
- <?php
360
- $all_script_handles = get_option( 'all_theme_scripts_handle' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
361
 
362
- $all_script_handles = explode( '<br />', $all_script_handles );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
363
 
364
- foreach ( $all_script_handles as $key => $value ) {
365
- if ( ! empty( $value ) ) {
366
- echo '<p>' . esc_html( $value ) . '</p>';
367
- }
368
- }
369
- ?>
370
- </div>
 
 
 
 
 
371
 
372
- <div class="sbp-columns2 sbp-width">
373
- <?php
374
- $all_scripts_src = get_option( 'all_theme_scripts_src' );
 
 
375
 
376
- $all_scripts_src = explode( '<br />', $all_scripts_src );
 
 
377
 
378
- foreach ( $all_scripts_src as $key => $value ) {
379
- if ( ! empty( $value ) ) {
380
- $value = parse_url( $value );
381
- echo '<p>' . esc_html( str_replace( '/wp-content', '', $value['path'] ) ) . '</p>';
382
- }
383
 
384
- }
385
- ?>
386
- </div>
387
 
 
 
 
388
  </div>
389
-
390
  </div>
391
-
392
- </div><!--/.sbp-inline-wrap-->
393
-
394
- </div>
395
- </div>
396
- </div>
397
- </div>
398
-
399
- <div id="postbox-container-defer-scripts" class="postbox-container">
400
-
401
- <?php if ( isset( $closed_defer ) && $closed_defer == true ) { ?>
402
- <div class="postbox closed" id="defer-from-footer">
403
- <?php } else { ?>
404
- <div class="postbox" id="defer-from-footer">
405
- <?Php } ?>
406
-
407
- <button type="button" class="handlediv" aria-expanded="true">
408
- <span class="screen-reader-text"><?php _e( 'Exclude scripts from being deferred', 'sb-pack' ); ?></span>
409
- <span class="toggle-indicator" aria-hidden="true"></span>
410
- </button>
411
- <h3 class="hndle ui-sortable-handle">
412
- <span><?php _e( 'Exclude scripts from being deferred', 'sb-pack' ); ?></span>
413
- </h3>
414
- <div class="inside">
415
-
416
- <div class="sbp-inline-wrap">
417
- <p>
418
- <input type="text" class="sbp-more-width" name="sbp_defer_exceptions1" id="sbp_defer_exceptions1" value="<?php echo $defer_exceptions1; ?>" />
419
- </p>
420
-
421
- <p>
422
- <input type="text" class="sbp-more-width" name="sbp_defer_exceptions2" id="sbp_defer_exceptions2" value="<?php echo $defer_exceptions2; ?>" />
423
- </p>
424
-
425
- <p>
426
- <input type="text" class="sbp-more-width" name="sbp_defer_exceptions3" id="sbp_defer_exceptions3" value="<?php echo $defer_exceptions3; ?>" />
427
- </p>
428
-
429
- <p>
430
- <input type="text" class="sbp-more-width" name="sbp_defer_exceptions4" id="sbp_defer_exceptions4" value="<?php echo $defer_exceptions4; ?>" />
431
- </p>
432
  </div>
433
- <p class="description">
434
- <?php _e( 'Enter one by text field, the handle part of the js files that you want to be excluded from defer parsing option. For example: <code>jquery-core</code> If you want to exclude more than 4 scripts, you can use the following filter: <code>sbp_exclude_defer_scripts</code> which takes an array of script handles as params. If you don\'t know how to handle this, feel free to post on our support forums.', 'sb-pack' ); ?>
435
- </p>
436
-
437
- </div>
438
- </div>
439
- </div>
440
- </div>
441
- </div>
 
 
 
442
 
443
- <div id="image-options" class="sb-pack-tab">
444
- <h3><?php _e( 'Change the default image compression level', 'sb-pack' ); ?></h3>
 
445
 
446
- <script type='text/javascript'>
447
- var jpegCompression = '<?php echo $this->image_compression; ?>';
448
- </script>
449
 
450
- <p class="sbp-amount">
451
- <?php _e( 'Compression level:', 'sb-pack' ); ?>
452
- <input type="text" class="sbp-amount" id="sbp-amount" />
453
- </p>
 
 
 
454
 
455
- <p>
456
- <div class="sbp-slider" id="sbp-slider"></div>
457
- <input type="hidden" name="sbp_integer" id="sbp_integer" value="<?php echo $this->image_compression; ?>" />
458
- </p>
459
 
460
- <p class="description">
461
- <?php _e( 'The default image compression setting in WordPress is 90%. Compressing your images further than the default will make your file sizes even smaller and will boost your site performance. As a reference, a lower level of compression means more performance but might induce quality loss. We recommend you choose a compression level between 50 and 75.', 'sb-pack' ); ?>
462
- <br />
463
- </p>
464
- <p class="description"><strong>
465
- <?php _e( 'Note that any changes you make will only affect new images uploaded to your site. A specialized plugin can optimize all your present images and will also optimize new ones as they are added. ', 'sb-pack' ); ?>
466
- </strong></p>
467
- <br>
468
 
469
- </div><!--#image-options-->
470
- <div id="support" class="sb-pack-tab">
 
 
 
471
 
472
- <?php
473
- if ( ! defined( 'WPINC' ) ) {
474
- die;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
475
  }
476
  ?>
477
- <div class="feature-section sbp-support">
478
- <div class="row two-col center-support">
 
479
 
480
- <h3>
481
- <i class="dashicons dashicons-sos" style="display: inline-block;vertical-align: middle;margin-right: 5px"></i><?php esc_html_e( 'Contact Support', 'sb-pack' ); ?>
482
- </h3>
483
- <p>
484
- <i><?php esc_html_e( 'We offer support through WordPress.org\'s support forums.', 'sb-pack' ); ?></i>
485
- </p>
486
- <p>
487
- <a target="_blank" class="button button-hero button-primary" href="<?php echo esc_url( 'https://wordpress.org/support/plugin/speed-booster-pack#new-post' ); ?>"><?php esc_html_e( 'Post on our support forums', 'sb-pack' ); ?></a>
488
- </p>
489
-
490
- </div>
491
- <div class="row">
492
- <h2 class="sbp-title">Looking for better WP hosting ?</h2>
493
- </div>
494
- <div class="row sbp-blog three-col">
495
- <div class="col">
496
- <h3>
497
- <i class="dashicons dashicons-performance" style="display: inline-block;vertical-align: middle;margin-right: 5px"></i><?php esc_html_e( 'Our Bluehost Hosting Review', 'sb-pack' ); ?>
498
- </h3>
499
- <p>
500
- <i><?php esc_html_e( 'Despite its popularity, though, Bluehost often carries a negative perception among WordPress professionals. So as we dig into this Bluehost review, we\'ll be looking to figure out whether Bluehost\'s performance and features actually justify that reputation.', 'sb-pack' ); ?></i>
501
- </p>
502
- <p>
503
- <a target="_blank" href="<?php echo esc_url( 'https://www.machothemes.com/blog/bluehost-review/?utm_source=sbp&utm_medium=about-page&utm_campaign=blog-links' ); ?>"><?php esc_html_e( 'Read more', 'sb-pack' ); ?></a>
504
- </p>
505
- </div><!--/.col-->
506
 
507
- <div class="col">
508
- <h3>
509
- <i class="dashicons dashicons-performance" style="display: inline-block;vertical-align: middle;margin-right: 5px"></i><?php esc_html_e( 'Our InMotion Hosting Review', 'sb-pack' ); ?>
510
- </h3>
511
- <p>
512
- <i><?php esc_html_e( 'InMotion Hosting is a popular independent web host that serves over 300,000 customers. They\'re notably not a part of the EIG behemoth (the parent company behind Bluehost, HostGator, and more), which is a plus in my book.', 'sb-pack' ); ?></i>
513
- </p>
514
- <p>
515
- <a target="_blank" href="<?php echo esc_url( 'https://www.machothemes.com/blog/inmotion-hosting-review/?utm_source=sbp&utm_medium=about-page&utm_campaign=blog-links' ); ?>"><?php esc_html_e( 'Read more', 'sb-pack' ); ?></a>
516
- </p>
517
- </div><!--/.col-->
518
 
519
- <div class="col">
520
- <h3>
521
- <i class="dashicons dashicons-performance" style="display: inline-block;vertical-align: middle;margin-right: 5px"></i><?php esc_html_e( 'Our A2 Hosting Review', 'sb-pack' ); ?>
522
- </h3>
523
- <p>
524
- <i><?php esc_html_e( 'When it comes to affordable WordPress hosting, A2 Hosting is a name that often comes up in various WordPress groups for offering quick-loading performance that belies its low price tag.', 'sb-pack' ); ?></i>
525
- </p>
526
- <p>
527
- <a target="_blank" href="<?php echo esc_url( 'https://www.machothemes.com/blog/a2-hosting-review/?utm_source=sbp&utm_medium=about-page&utm_campaign=blog-links' ); ?>"><?php esc_html_e( 'Read more', 'sb-pack' ); ?></a>
528
- </p>
529
- </div><!--/.col-->
530
- </div>
531
- </div><!--/.feature-section-->
532
-
533
- <div class="col-fulwidth feedback-box">
534
- <h3>
535
- <?php esc_html_e( 'Lend a hand & share your thoughts', 'sb-pack' ); ?>
536
- <img src="<?php echo $this->plugin_url . "inc/images/handshake.png"; ?>">
537
- </h3>
538
- <p>
539
- <?php
540
- echo vsprintf( // Translators: 1 is Theme Name, 2 is opening Anchor, 3 is closing.
541
- __( 'We\'ve been working hard on making %1$s the best one out there. We\'re interested in hearing your thoughts about %1$s and what we could do to <u>make it even better</u>.<br/> <br/> %2$sHave your say%3$s', 'sb-pack' ), array(
542
- 'Speed Booster Pack',
543
- '<a class="button button-feedback" target="_blank" href="http://bit.ly/feedback-speed-booster-pack">',
544
- '</a>',
545
- ) );
546
- ?>
547
- </p>
548
  </div>
549
- </div><!--#support-->
550
 
551
- <div id="optimize-more" class="sb-pack-tab three-col">
 
 
 
 
 
552
 
553
- <div class="col sbp-box">
554
- <img src="https://ps.w.org/shortpixel-image-optimiser/assets/icon-128x128.png?rev=1038819">
555
- <div class="sbp-box__name"><?php esc_html_e( 'ShortPixel Image Optimizer', 'sb-pack' ); ?></div>
 
 
 
556
 
557
- <div class="sbp-box__description">
558
- <?php esc_html_e( 'Increase your website’s SEO ranking, number of visitors and ultimately your sales by optimizing any image or PDF document on your website. ', 'sb-pack' ); ?>
559
- </div>
 
 
 
 
 
 
 
 
560
 
561
- <div class="sbp-box__action-bar">
562
- <span class="sbp-box__action-button">
563
- <a class="button" href="<?php echo esc_url( 'https://shortpixel.com/h/af/IVAKFSX31472' ); ?>" target="_blank"><?php esc_html_e( 'Test your site for free', 'sb-pack' ); ?></a>
564
- </span>
565
- </div>
566
  </div>
567
 
568
- </div><!--#optimize-more-->
 
 
 
 
 
569
 
570
- <div class="textright">
571
- <hr />
572
- <?php submit_button( '', 'button button-primary button-hero' ); ?>
573
  </div>
 
 
 
 
 
 
574
 
575
  </form>
576
 
25
  <div class="about-text">
26
  <?php
27
  /* Translators: Welcome Screen Description. */
28
+ echo esc_html__( 'Speed Booster Pack is a lightweight, frequently updated, easy to use and well supported plugin which allows you to improve your website’s loading speed. Visitors usually close a website if it doesn’t load in a few seconds and the slower a site loads the greater the chances are that the visitors will leave. And you don’t want that to happen, do you?', 'speed-booster-pack' );
 
29
  ?>
30
  </div>
31
  <div class="wp-badge sbp-welcome-logo"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
  <h2 class="nav-tab-wrapper wp-clearfix">
34
+ <a class="nav-tab" href="#general-options"><?php esc_html_e( 'General', 'speed-booster-pack' ); ?></a>
35
+ <a class="nav-tab" href="#advanced-options"><?php esc_html_e( 'Advanced', 'speed-booster-pack' ); ?></a>
36
+ <a class="nav-tab" href="#cdn-options"><?php esc_html_e( 'CDN', 'speed-booster-pack' ); ?></a>
37
+ <a class="nav-tab" href="#google-analytics"><?php esc_html_e( 'Google Analytics', 'speed-booster-pack' ); ?></a>
38
+ <a class="nav-tab" href="#optimize-more"><?php esc_html_e( 'Optimize More', 'speed-booster-pack' ); ?></a>
39
  </h2>
40
 
41
  <form method="post" action="options.php">
44
  <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
45
  <?php settings_fields( 'speed_booster_settings_group' ); ?>
46
 
47
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
 
49
+ $sbp_options_array = array(
50
+ //general options panel
51
+ 'general-options' => array(
52
+ //General section
53
+ 'sections' => array(
54
+ array(
55
+ 'type' => 'section',
56
+ 'label' => __( 'General', 'speed-booster-pack' ),
57
+ 'items' => array(
58
+ 'jquery_to_footer' => array(
59
+ 'type' => 'checkbox',
60
+ 'label' => __( 'Move scripts to footer', 'speed-booster-pack' ),
61
+ 'tooltip' => __( 'This option move all scripts to the footer while keeping stylesheets in the header to improve page loading speed and get a higher score on the major speed testing sites such as GTmetrix or other website speed testing tools', 'speed-booster-pack' ),
62
+ 'options_group' => 'sbp_settings',
63
+ ),
64
+ 'use_google_libs' => array(
65
+ 'type' => 'checkbox',
66
+ 'label' => __( 'Load JS from Google Libraries', 'speed-booster-pack' ),
67
+ 'tooltip' => __( 'Loading WordPress javascript files from Google’s Libraries rather than serving it from your WordPress install directly, will reduce latency, increase parallelism and improve caching.', 'speed-booster-pack' ),
68
+ 'options_group' => 'sbp_settings',
69
+ ),
70
+ 'minify_html_js' => array(
71
+ 'type' => 'checkbox',
72
+ 'label' => __( 'Minify HTML', 'speed-booster-pack' ),
73
+ 'tooltip' => __( 'Activate this option only if you don’t want to use other minify plugins or other speed optimization plugin that has minify option included. If something goes wrong, simply uncheck this option and save the settings.', 'speed-booster-pack' ),
74
+ 'options_group' => 'sbp_settings',
75
+ ),
76
+ 'defer_parsing' => array(
77
+ 'type' => 'checkbox',
78
+ 'label' => __( 'Defer parsing of javascript files', 'speed-booster-pack' ),
79
+ 'tooltip' => __( '!!!Note: This will be disabled IF Move Scripts to Footer is enabled. By deferring parsing of unneeded JavaScript until it needs to be executed, you can reduce the initial load time of your page. Please note that this option will not defer the main WordPress jQuery script if Load JS from Google Libraries option is not checked.', 'speed-booster-pack' ),
80
+ 'options_group' => 'sbp_settings',
81
+ ),
82
+ 'query_strings' => array(
83
+ 'type' => 'checkbox',
84
+ 'label' => __( 'Remove query strings', 'speed-booster-pack' ),
85
+ 'tooltip' => __( 'Since most proxies do not cache resources with a ? in their URL, this option allows you to remove any query strings (version numbers) from static resources like CSS & JS files, thus improving your speed scores in services like GTmetrix, PageSpeed, YSlow and Pingdoom.', 'speed-booster-pack' ),
86
+ 'options_group' => 'sbp_settings',
87
+ ),
88
+ 'font_awesome' => array(
89
+ 'type' => 'checkbox',
90
+ 'label' => __( 'Removes extra Font Awesome styles', 'speed-booster-pack' ),
91
+ 'tooltip' => __( 'Use this option only if your theme uses Font Awesome, to prevent other plugins that uses Font Awesome, to add their stylesheets to your theme. In other words, this option removes extra Font Awesome stylesheets added to your theme by certain plugins.', 'speed-booster-pack' ),
92
+ 'options_group' => 'sbp_settings',
93
+ ),
94
+ ),
95
+ ),
96
+ //more settings section
97
+ array(
98
+ 'type' => 'section',
99
+ 'label' => __( 'More settings', 'speed-booster-pack' ),
100
+ 'items' => array(
101
+ 'remove_emojis' => array(
102
+ 'type' => 'checkbox',
103
+ 'label' => __( 'Remove WordPress Emoji scripts', 'speed-booster-pack' ),
104
+ 'tooltip' => __( 'Emojis are fun and all, but if you are aren’t using them they actually load a JavaScript file (wp-emoji-release.min.js) on every page of your website. For a lot of businesses, this is not needed and simply adds load time to your site. So we recommend disabling this.', 'speed-booster-pack' ),
105
+ 'options_group' => 'sbp_settings',
106
+ ),
107
+ 'remove_wsl' => array(
108
+ 'type' => 'checkbox',
109
+ 'label' => __( 'Remove WordPress Shortlink', 'speed-booster-pack' ),
110
+ 'tooltip' => __( 'WordPress URL shortening is sometimes useful, but it automatically adds an ugly code in your header, so you can remove it.', 'speed-booster-pack' ),
111
+ 'options_group' => 'sbp_settings',
112
+ ),
113
+ 'remove_adjacent' => array(
114
+ 'type' => 'checkbox',
115
+ 'label' => __( 'Remove Adjacent Posts Links', 'speed-booster-pack' ),
116
+ 'tooltip' => __( 'WordPress incorrectly implements this feature that supposedly should fix a pagination issues but it messes up, so there is no reason to keep these around. However, some browsers may use Adjacent Posts Links to navigate your site, although you can remove it if you run a well designed theme.', 'speed-booster-pack' ),
117
+ 'options_group' => 'sbp_settings',
118
+ ),
119
+ 'wml_link' => array(
120
+ 'type' => 'checkbox',
121
+ 'label' => __( 'Remove Windows Manifest', 'speed-booster-pack' ),
122
+ 'tooltip' => __( 'Windows Live Writer (WLW) is a Microsoft application for composing and managing blog posts offline and publish them later. If you are not using Windows Live Writer application, you can remove it from the WP head.', 'speed-booster-pack' ),
123
+ 'options_group' => 'sbp_settings',
124
+ ),
125
+ 'wp_generator' => array(
126
+ 'type' => 'checkbox',
127
+ 'label' => __( 'Remove the WordPress Version', 'speed-booster-pack' ),
128
+ 'tooltip' => __( 'Windows Live Writer (WLW) is a Microsoft application for composing and managing blog posts offline and publish them later. If you are not using Windows Live Writer application, you can remove it from the WP head.', 'speed-booster-pack' ),
129
+ 'options_group' => 'sbp_settings',
130
+ ),
131
+ 'remove_all_feeds' => array(
132
+ 'type' => 'checkbox',
133
+ 'label' => __( 'Remove all rss feed links', 'speed-booster-pack' ),
134
+ 'tooltip' => __( 'This option wil remove all rss feed links to cleanup your WordPress header. It is also useful on Unicorn – The W3C Markup Validation Service to get rid out the “feed does not validate” error.', 'speed-booster-pack' ),
135
+ 'options_group' => 'sbp_settings',
136
+ ),
137
+ 'disable_xmlrpc' => array(
138
+ 'type' => 'checkbox',
139
+ 'label' => __( 'Disable XML-RPC', 'speed-booster-pack' ),
140
+ 'tooltip' => __( 'XML-RPC was added in WordPress 3.5 and allows for remote connections, and unless you are using your mobile device to post to WordPress it does more bad than good. In fact, it can open your site up to a bunch of security risks. There are a few plugins that utilize this such as JetPack, but we don’t recommend using JetPack for performance reasons.', 'speed-booster-pack' ),
141
+ 'options_group' => 'sbp_settings',
142
+ ),
143
+ 'disable_self_pingbacks' => array(
144
+ 'type' => 'checkbox',
145
+ 'label' => __( 'Disable Self Pingbacks', 'speed-booster-pack' ),
146
+ 'tooltip' => __( 'A pingback is a special type of comment that’s created when you link to another blog post, as long as the other blog is set to accept pingbacks.', 'speed-booster-pack' ),
147
+ 'options_group' => 'sbp_settings',
148
+ ),
149
+ 'disable_dashicons' => array(
150
+ 'type' => 'checkbox',
151
+ 'label' => __( 'Disable Dashicons', 'speed-booster-pack' ),
152
+ 'tooltip' => __( 'Disable dashicons from front end.', 'speed-booster-pack' ),
153
+ 'options_group' => 'sbp_settings',
154
+ ),
155
+ 'disable_google_maps' => array(
156
+ 'type' => 'checkbox',
157
+ 'label' => __( 'Disable Google Maps', 'speed-booster-pack' ),
158
+ 'tooltip' => __( 'Disable Google Maps from front end. ', 'speed-booster-pack' ),
159
+ 'options_group' => 'sbp_settings',
160
+ ),
161
+ 'disable_heartbeat' => array(
162
+ 'type' => 'checkbox',
163
+ 'label' => __( 'Disable Heartbeat', 'speed-booster-pack' ),
164
+ 'tooltip' => __( 'Disable heartbeat everywhere ( used for autosaving and revision tracking ).', 'speed-booster-pack' ),
165
+ 'options_group' => 'sbp_settings',
166
+ ),
167
+ 'heartbeat_frequency' => array(
168
+ 'type' => 'select',
169
+ 'label' => __( 'Heartbeat frequency', 'speed-booster-pack' ),
170
+ 'tooltip' => __( 'Controls how often the Wordpress Heartbeat API is allowed to run. ', 'speed-booster-pack' ),
171
+ 'options' => array(
172
+ '15' => '15',
173
+ '30' => '30',
174
+ '45' => '45',
175
+ '60' => '60',
176
+ ),
177
+ 'options_group' => 'sbp_settings',
178
+ ),
179
+ 'limit_post_revisions' => array(
180
+ 'type' => 'select',
181
+ 'label' => __( 'Limit Post Revision', 'speed-booster-pack' ),
182
+ 'tooltip' => __( 'Controls how many Revisions Wordpress will save ', 'speed-booster-pack' ),
183
+ 'options' => array(
184
+ '1' => '1',
185
+ '2' => '2',
186
+ '3' => '3',
187
+ '4' => '4',
188
+ '5' => '5',
189
+ '10' => '10',
190
+ '15' => '15',
191
+ '20' => '20',
192
+ '25' => '25',
193
+ '30' => '30',
194
+ 'false' => 'Disable',
195
+ ),
196
+ 'options_group' => 'sbp_settings',
197
+ ),
198
+ 'autosave_interval' => array(
199
+ 'type' => 'select',
200
+ 'label' => __( 'Autosave interval', 'speed-booster-pack' ),
201
+ 'tooltip' => __( 'Controls how wordpress will autosave posts and pages while editing.', 'speed-booster-pack' ),
202
+ 'options' => array(
203
+ '1' => __( '1 minute ( default )', 'speed-booster-pack' ),
204
+ '2' => __( '2 minutes', 'speed-booster-pack' ),
205
+ '3' => __( '3 minutes', 'speed-booster-pack' ),
206
+ '4' => __( '4 minutes', 'speed-booster-pack' ),
207
+ '5' => __( '5 minutes', 'speed-booster-pack' ),
208
+ ),
209
+ 'options_group' => 'sbp_settings',
210
+ ),
211
+ 'remove_rest_api_links' => array(
212
+ 'type' => 'checkbox',
213
+ 'label' => __( 'Remove REST API Links', 'speed-booster-pack' ),
214
+ 'tooltip' => __( 'The WordPress REST API provides API endpoints for WordPress data types that allow developers to interact with sites remotely by sending and receiving JSON (JavaScript Object Notation) objects.', 'speed-booster-pack' ),
215
+ 'options_group' => 'sbp_settings',
216
+ ),
217
+ ),
218
+ ),
219
+ //need even more speed section
220
+ array(
221
+ 'type' => 'section',
222
+ 'label' => __( 'Need even more speed?', 'speed-booster-pack' ),
223
+ 'items' => array(
224
+ 'sbp_css_async' => array(
225
+ 'type' => 'checkbox',
226
+ 'label' => __( 'Inline all CSS styles', 'speed-booster-pack' ),
227
+ 'tooltip' => __( 'Checking this option will inline the contents of all your stylesheets. This helps with the annoying render blocking error Google Page Speed Insights displays.', 'speed-booster-pack' ),
228
+ 'options_group' => 'sbp_settings',
229
+ ),
230
+ 'sbp_css_minify' => array(
231
+ 'type' => 'checkbox',
232
+ 'label' => __( 'Minify all (previously) inlined CSS styles', 'speed-booster-pack' ),
233
+ 'tooltip' => __( 'Minifying all inlined CSS styles will optimize the CSS delivery and will eliminate the annoying message on Google Page Speed regarding to render-blocking css.', 'speed-booster-pack' ),
234
+ 'options_group' => 'sbp_settings',
235
+ ),
236
+ 'sbp_footer_css' => array(
237
+ 'type' => 'checkbox',
238
+ 'label' => __( 'Move all inlined CSS into the footer', 'speed-booster-pack' ),
239
+ 'tooltip' => __( 'Inserting all CSS styles inline to the footer is a sensitive option that will eliminate render-blocking CSS warning in Google Page Speed test. If there is something broken after activation, you need to disable this option. Please note that before enabling this sensitive option, it is strongly recommended that you also enable the “ Move scripts to the footer” option.', 'speed-booster-pack' ),
240
+ 'options_group' => 'sbp_settings',
241
+ ),
242
+ 'sbp_is_mobile' => array(
243
+ 'type' => 'checkbox',
244
+ 'label' => __( 'Disable all above CSS options on mobile devices', 'speed-booster-pack' ),
245
+ 'tooltip' => __( 'Disable all above CSS options on mobile devices: this option was added to avoid some appearance issues on mobile devices.', 'speed-booster-pack' ),
246
+ 'options_group' => 'sbp_settings',
247
+ ),
248
+ ),
249
+ ),
250
+ //other options section
251
+ array(
252
+ 'type' => 'section',
253
+ 'items' => array(
254
+ 'sbp_css_exceptions' => array(
255
+ 'type' => 'textarea',
256
+ 'label' => __( 'Exclude styles from being inlined and/or minified option: ', 'speed-booster-pack' ),
257
+ 'description' => __( 'Enter one by line, the handles of css files or the final part of the style URL.', 'speed-booster-pack' ),
258
+ ),
259
+ //CSS handle guidance
260
+ 'guidance_options_css' => array(
261
+ 'type' => 'guidance',
262
+ 'label' => __( 'As a guidance, here is a list of css handles of each enqueued style detected by our plugin:', 'speed-booster-pack' ),
263
+ ),
264
+ ),
265
+ ),
266
+ ),
267
+ ),
268
+ //advanced options panel
269
+ 'advanced-options' => array(
270
+ //Exclude scripts fro being moved to the footer
271
+ 'sections' => array(
272
+ array(
273
+ 'type' => 'section',
274
+ 'label' => __( 'Exclude scripts from being moved to the footer', 'speed-booster-pack' ),
275
+ 'description' => __( 'Enter one js handle per text field. Read more <a href="https://docs.machothemes.com/article/119-plugin-options-explained#exclude-scripts-from-being-moved-to-the-footer-50">detailed instructions</a> on this option on plugin documentation.', 'speed-booster-pack' ),
276
+ 'items' => array(
277
+ 'sbp_js_footer_exceptions1' => array(
278
+ 'type' => 'text',
279
+ ),
280
+ 'sbp_js_footer_exceptions2' => array(
281
+ 'type' => 'text',
282
+ ),
283
+ 'sbp_js_footer_exceptions3' => array(
284
+ 'type' => 'text',
285
+ ),
286
+ 'sbp_js_footer_exceptions4' => array(
287
+ 'type' => 'text',
288
+ ),
289
+ //guidance
290
+ 'guidance_options_js' => array(
291
+ 'type' => 'guidance',
292
+ 'label' => __( 'As a guidance, here is a list of script handles and script paths of each enqueued script detected by our plugin:', 'speed-booster-pack' ),
293
+ ),
294
+ ),
295
+ ),
296
+ //Exclude scripts from being deferred
297
+ array(
298
+ 'type' => 'section',
299
+ 'label' => __( 'Exclude scripts from being deferred', 'speed-booster-pack' ),
300
+ 'items' => array(
301
+ 'sbp_defer_exceptions1' => array(
302
+ 'type' => 'text',
303
+ ),
304
+ 'sbp_defer_exceptions2' => array(
305
+ 'type' => 'text',
306
+ ),
307
+ 'sbp_defer_exceptions3' => array(
308
+ 'type' => 'text',
309
+ ),
310
+ 'sbp_defer_exceptions4' => array(
311
+ 'type' => 'text',
312
+ ),
313
+ 'info' => array(
314
+ 'type' => 'guidance',
315
+ 'description_only' => true,
316
+ 'description' => __( 'Enter one by text field, the handle part of the js files that you want to be excluded from defer parsing option. For example: <code>jquery-core</code> If you want to exclude more than 4 scripts, you can use the following filter: <code>sbp_exclude_defer_scripts</code> which takes an array of script handles as params. If you don\'t know how to handle this, feel free to post on our support forums.', 'speed-booster-pack' ),
317
+ ),
318
+ ),
319
+ ),
320
+ ),
321
+ ),
322
+ 'cdn-options' => array(
323
+ 'sections' => array(
324
+ array(
325
+ 'type' => 'section',
326
+ 'label' => __( 'CDN', 'speed-booster-pack' ),
327
+ 'description' => __( 'CDN options that allow you to rewrite your site URLs with your CDN URLs.', 'speed-booster-pack' ),
328
+ 'items' => array(
329
+ 'sbp_enable_cdn' => array(
330
+ 'type' => 'checkbox',
331
+ 'label' => __( 'Enable CDN Rewrite', 'speed-booster-pack' ),
332
+ 'tooltip' => __( 'Enables rewriting of your site URLs with your CDN URLs', 'speed-booster-pack' ),
333
+ 'options_group' => 'sbp_settings',
334
+ ),
335
+ 'sbp_cdn_url' => array(
336
+ 'type' => 'text',
337
+ 'label' => __( 'CDN URL', 'speed-booster-pack' ),
338
+ 'tooltip' => __( 'Enter your CDN URL without the trailing backslash. Example: https://cdn.example.com', 'speed-booster-pack' ),
339
+ 'options_group' => 'sbp_settings',
340
+ ),
341
+ 'sbp_cdn_included_directories' => array(
342
+ 'type' => 'text',
343
+ 'label' => __( 'Included Directories', 'speed-booster-pack' ),
344
+ 'tooltip' => __( 'Enter any directories you would like to be included in CDN rewriting, separated by commas (,). Default: wp-content,wp-includes', 'speed-booster-pack' ),
345
+ 'options_group' => 'sbp_settings',
346
+ 'default' => 'wp-content,wp-includes',
347
+ ),
348
+ 'sbp_cdn_exclusions' => array(
349
+ 'type' => 'text',
350
+ 'label' => __( 'CDN Exclusions', 'speed-booster-pack' ),
351
+ 'tooltip' => __( 'Enter any directories or file extensions you would like to be excluded from CDN rewriting, separated by commas (,). Default: .php', 'speed-booster-pack' ),
352
+ 'options_group' => 'sbp_settings',
353
+ 'default' => '.php',
354
+ ),
355
+ ),
356
+ ),
357
+ ),
358
+ ),
359
+ 'google-analytics' => array(
360
+ 'sections' => array(
361
+ array(
362
+ 'type' => 'section',
363
+ 'label' => __( 'Google Analytics', 'speed-booster-pack' ),
364
+ 'description' => __( 'Optimization options for Google Analytics.', 'speed-booster-pack' ),
365
+ 'items' => array(
366
+ 'sbp_enable_local_analytics' => array(
367
+ 'type' => 'checkbox',
368
+ 'label' => __( 'Enable Local Analytics', 'speed-booster-pack' ),
369
+ 'tooltip' => __( 'Enable syncing og the Google Analytics script to your own server.', 'speed-booster-pack' ),
370
+ 'options_group' => 'sbp_settings',
371
+ ),
372
+ 'sbp_ga_tracking_id' => array(
373
+ 'type' => 'text',
374
+ 'label' => __( 'Tracking ID', 'speed-booster-pack' ),
375
+ 'tooltip' => __( 'Enter your Google Analytics tracking ID', 'speed-booster-pack' ),
376
+ 'options_group' => 'sbp_settings',
377
+ ),
378
+ 'sbp_tracking_position' => array(
379
+ 'type' => 'select',
380
+ 'label' => __( 'Tracking code position', 'speed-booster-pack' ),
381
+ 'tooltip' => __( 'Load your analytics script in the header or footer of the site. Default - header', 'speed-booster-pack' ),
382
+ 'options_group' => 'sbp_settings',
383
+ 'options' => array(
384
+ 'header' => 'Header ( default )',
385
+ 'footer' => 'Footer',
386
+ ),
387
+ ),
388
+ 'sbp_disable_display_features' => array(
389
+ 'type' => 'checkbox',
390
+ 'label' => __( 'Disable Display Features', 'speed-booster-pack' ),
391
+ 'tooltip' => __( 'Disable marketing and advertising which generates a 2nd HTTP request', 'speed-booster-pack' ),
392
+ 'options_group' => 'sbp_settings',
393
+ ),
394
+ 'sbp_anonymize_ip' => array(
395
+ 'type' => 'checkbox',
396
+ 'label' => __( 'Anonymize IP', 'speed-booster-pack' ),
397
+ 'tooltip' => __( 'Shorten visitor IP to comply with privacy restrictions in some countries.', 'speed-booster-pack' ),
398
+ 'options_group' => 'sbp_settings',
399
+ ),
400
+ 'sbp_track_loggedin_admins' => array(
401
+ 'type' => 'checkbox',
402
+ 'label' => __( 'Track Logged In Admins', 'speed-booster-pack' ),
403
+ 'tooltip' => __( 'Include logged in Wordpress admins in your GA report.', 'speed-booster-pack' ),
404
+ 'options_group' => 'sbp_settings',
405
+ ),
406
+ 'sbp_bounce_rate' => array(
407
+ 'type' => 'text',
408
+ 'label' => __( 'Adjusted Bounce Rate', 'speed-booster-pack' ),
409
+ 'tooltip' => __( 'Set a timeout limit in seconds to better evaluate the quality of your traffic ( 1 - 100 )', 'speed-booster-pack' ),
410
+ 'options_group' => 'sbp_settings',
411
+ ),
412
+ 'sbp_monsterinsights' => array(
413
+ 'type' => 'checkbox',
414
+ 'label' => __( 'User MonsterInsights', 'speed-booster-pack' ),
415
+ 'tooltip' => __( 'Allows MonsterInsights to manage your Google Analaytics while still using the locally hosted analytics.js generated by Speed Booster Pack', 'speed-booster-pack' ),
416
+ 'options_group' => 'sbp_settings',
417
+ ),
418
+ ),
419
+ ),
420
+ ),
421
+ ),
422
+ );
423
+
424
+ //Start the tabs
425
+ foreach ( $sbp_options_array as $k => $values ) { ?>
426
+ <!-- Tab sections -->
427
+ <div id="<?php echo $k; ?>" class="sb-pack-tab">
428
+
429
+ <?php
430
+ if ( $k == 'advanced-options' ) {
431
+ ?>
432
+ <!-- Advanced Options sections -->
433
+ <h3><?php _e('Advanced', 'speed-bosoter-pack'); ?></h3>
434
  <div id="poststuff">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
435
 
436
+ <?php
437
+ } else {
438
+ ?>
439
+ <!-- Sections For General Options -->
440
+ <div class="sb-pack">
441
+ <?php
442
+ if ( isset( $values['label'] ) ) {
443
+ ?>
444
+ <h3><?php echo $values['label']; ?></h3>
445
+ <?php
446
+ }
447
+ }
448
+ //Start the sections
449
+ foreach ( $values['sections'] as $section => $section_value ) {
450
+ if ( 'advanced-options' != $k ) {
451
+ ?>
452
+ <h3><?php echo ( isset( $section_value['label'] ) ) ? $section_value['label'] : ""; ?></h3><?php
453
+ } else {
454
+ ?>
455
+ <div class="meta-box-sortables ui-sortable" id="normal-sortables">
456
+ <div class="postbox" id="<?php echo $section; ?>">
457
+ <button type="button" class="handlediv" aria-expanded="true">
458
+ <span class="screen-reader-text"><?php echo ( isset( $section_value['label'] ) ) ? $section_value['label'] : ""; ?></span>
459
+ <span class="toggle-indicator" aria-hidden="true"></span>
460
+ </button>
461
+ <h3 class="hndle ui-sortable-handle" style="cursor: pointer;">
462
+ <span><?php echo ( isset( $section_value['label'] ) ) ? $section_value['label'] : ""; ?></span>
463
+ </h3>
464
+ <div class="inside">
465
+ <?php
466
+ }
467
+ //Start the options
468
+ foreach ( $section_value['items'] as $item => $item_value ) {
469
+
470
+ if ( 'checkbox' == $item_value['type'] ) { ?>
471
+ <div class="onoffswitch-wrapper">
472
+ <?php if ( isset( $item_value['tooltip'] ) ) { ?>
473
+ <span class="tooltip-right"
474
+ data-tooltip="<?php echo $item_value['tooltip']; ?>">
475
+ <i class="dashicons dashicons-editor-help"></i>
476
+ </span>
477
+ <?php } ?>
478
+ <span class="chekbox-title"><?php echo ( isset( $item_value['label'] ) ) ? $item_value['label'] : ''; ?></span>
479
+
480
+ <div class="onoffswitch">
481
+ <div class="epsilon-toggle">
482
+ <input class="epsilon-toggle__input" type="checkbox" id="<?php echo ( isset( $item_value['options_group'] ) ) ? $item_value['options_group'] . '[' . $item . ']' : $item; ?>" name="<?php echo ( isset( $item_value['options_group'] ) ) ? $item_value['options_group'] . '[' . $item . ']' : $item; ?>" value="1" <?php checked( 1, isset( $sbp_options[ $item ] ) ); ?> >
483
+ <div class="epsilon-toggle__items">
484
+ <span class="epsilon-toggle__track"></span>
485
+ <span class="epsilon-toggle__thumb"></span>
486
+ <svg class="epsilon-toggle__off" width="6" height="6" aria-hidden="true" role="img" focusable="false" viewBox="0 0 6 6">
487
+ <path d="M3 1.5c.8 0 1.5.7 1.5 1.5S3.8 4.5 3 4.5 1.5 3.8 1.5 3 2.2 1.5 3 1.5M3 0C1.3 0 0 1.3 0 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3z"></path>
488
+ </svg>
489
+ <svg class="epsilon-toggle__on" width="2" height="6" aria-hidden="true" role="img" focusable="false" viewBox="0 0 2 6">
490
+ <path d="M0 0h2v6H0z"></path>
491
+ </svg>
492
+ </div>
493
+ </div>
494
+ <label for="<?php echo ( isset( $item_value['options_group'] ) ) ? $item_value['options_group'] . '[' . $item . ']' : $item; ?>"></label>
495
+ </div>
496
+ </div>
497
+ <?php }
498
+ if ( 'select' == $item_value['type'] ) { ?>
499
+ <p>
500
+ <?php if ( isset( $item_value['tooltip'] ) ) { ?>
501
+ <span class="tooltip-right"
502
+ data-tooltip="<?php echo $item_value['tooltip']; ?>">
503
+ <i class="dashicons dashicons-editor-help"></i>
504
+ </span>
505
+ <?php } ?>
506
+ <label for="<?php echo ( isset( $item_value['options_group'] ) ) ? $item_value['options_group'] . '[' . $item . ']' : $item; ?>" class="<?php echo ( isset( $item_value['label'] ) ) ? 'label-text' : ''; ?>"><?php echo ( isset( $item_value['label'] ) ) ? $item_value['label'] : ''; ?></label>
507
+ <select id="<?php echo ( isset( $item_value['options_group'] ) ) ? $item_value['options_group'] . '[' . $item . ']' : $item; ?>"
508
+ name="<?php echo ( isset( $item_value['options_group'] ) ) ? $item_value['options_group'] . '[' . $item . ']' : $item; ?>">
509
+ <?php
510
+ foreach ( $item_value['options'] as $option_k => $op_v ) {
511
+ ?>
512
+ <option value="<?php echo $option_k; ?>" <?php selected( $option_k, $sbp_options[ $item ], true ); ?> ><?php echo $op_v; ?></option>
513
+ <?php
514
+ }
515
+ ?>
516
+ </select>
517
+ </p>
518
+ <?php }
519
 
520
+ if ( 'text' == $item_value['type'] ) { ?>
521
+ <p>
522
+ <?php
523
+ $default_value = ( isset( $item_value['default'] ) ) ? $item_value['default'] : "";
524
+ if ( isset( $item_value['options_group'] ) ) {
525
+ $op_text = ( isset( $sbp_options[ $item ] ) && "" != $sbp_options[ $item ] ) ? $sbp_options[ $item ] : $default_value;
526
+ } else {
527
+ $op_text = ( get_option( $item ) ) ? get_option( $item ) : $default_value;
528
+ }
529
+
530
+ ?>
531
+ <?php if ( isset( $item_value['tooltip'] ) ) { ?>
532
+ <span class="tooltip-right"
533
+ data-tooltip="<?php echo $item_value['tooltip']; ?>">
534
+ <i class="dashicons dashicons-editor-help"></i>
535
+ </span>
536
+ <?php } ?>
537
+ <label for="<?php echo ( isset( $item_value['options_group'] ) ) ? $item_value['options_group'] . '[' . $item . ']' : $item; ?>" class="<?php echo ( isset( $item_value['label'] ) ) ? 'label-text' : ''; ?>"><?php echo ( isset( $item_value['label'] ) ) ? $item_value['label'] : ''; ?></label>
538
+
539
+ <input id="<?php echo ( isset( $item_value['options_group'] ) ) ? $item_value['options_group'] . '[' . $item . ']' : $item; ?>"
540
+ name="<?php echo ( isset( $item_value['options_group'] ) ) ? $item_value['options_group'] . '[' . $item . ']' : $item; ?>" type="text" value="<?php echo esc_attr( $op_text ); ?>" />
541
+ </p>
542
+ <?php }
543
 
544
+ if ( 'textarea' == $item_value['type'] ) { ?>
545
+ <div class="td-border-last"></div>
546
+ <h4><?php echo ( isset( $item_value['label'] ) ) ? $item_value['label'] : ''; ?></h4>
547
+ <p>
548
+ <textarea cols="50" rows="3" name="<?php echo ( isset( $item_value['options_group'] ) ) ? $item_value['options_group'] . '[' . $item . ']' : $item; ?>"
549
+ id="<?php echo $item; ?>"
550
+ value="<?php echo esc_attr( $css_exceptions ); ?>"><?php echo wp_kses_post( $css_exceptions ); ?></textarea>
551
+ </p>
552
+ <p class="description">
553
+ <?php echo isset( $item_value['description'] ) ? $item_value['description'] : ''; ?>
554
+ </p>
555
+ <?php }
556
 
557
+ if ( 'guidance' == $item_value['type'] ) {
558
+ //guidance for General options
559
+ if ( $item == 'guidance_options_css' ) {
560
+ ?>
561
+ <div class="td-border-last"></div>
562
 
563
+ <p>
564
+ <h4><?php $item_value['label']; ?></h4>
565
+ </p>
566
 
567
+ <div class="sbp-all-enqueued">
 
 
 
 
568
 
569
+ <div class="sbp-div-head">
570
+ <div class="sbp-title-scripts"><?php _e( 'CSS Handle', 'speed-booster-pack' ); ?></div>
571
+ </div>
572
 
573
+ <div class="sbp-inline-wrap">
574
+ <div class="sbp-columns1 sbp-width">
575
+ <?php print_r( get_option( 'all_theme_styles_handle' ) ); ?>
576
  </div>
 
577
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
578
  </div>
579
+ <?php
580
+ }
581
+ if ( 'guidance_options_js' == $item ) {
582
+ ?>
583
+ <div class="td-border-last"></div>
584
+ <h4><?php echo $item_value['label']; ?></h4>
585
+ <div class="sbp-all-enqueued">
586
+ <div class="sbp-div-head">
587
+ <div class="sbp-title-scripts"><?php _e( 'Script Handle', 'speed-booster-pack' ); ?></div>
588
+ <div class="sbp-title-scripts"><?php _e( 'Script Path', 'speed-booster-pack' ); ?></div>
589
+ </div>
590
+ <div class="sbp-inline-wrap">
591
 
592
+ <div class="sbp-columns1 sbp-width">
593
+ <?php
594
+ $all_script_handles = get_option( 'all_theme_scripts_handle' );
595
 
596
+ $all_script_handles = explode( '<br />', $all_script_handles );
 
 
597
 
598
+ foreach ( $all_script_handles as $key => $value ) {
599
+ if ( ! empty( $value ) ) {
600
+ echo '<p>' . esc_html( $value ) . '</p>';
601
+ }
602
+ }
603
+ ?>
604
+ </div>
605
 
606
+ <div class="sbp-columns2 sbp-width">
607
+ <?php
608
+ $all_scripts_src = get_option( 'all_theme_scripts_src' );
 
609
 
610
+ $all_scripts_src = explode( '<br />', $all_scripts_src );
 
 
 
 
 
 
 
611
 
612
+ foreach ( $all_scripts_src as $key => $value ) {
613
+ if ( ! empty( $value ) ) {
614
+ $value = parse_url( $value );
615
+ echo '<p>' . esc_html( str_replace( '/wp-content', '', $value['path'] ) ) . '</p>';
616
+ }
617
 
618
+ }
619
+ ?>
620
+ </div>
621
+ </div>
622
+ </div>
623
+ <?php
624
+ }
625
+ if ( isset( $item_value['description_only'] ) && $item_value['description_only'] ) {
626
+ ?>
627
+ <p class="description"><?php echo $item_value['description']; ?></p>
628
+ <?php
629
+ }
630
+
631
+ }
632
+
633
+ }
634
+ if ( 'advanced-options' == $k ) {
635
+ ?> </div>
636
+ </div>
637
+ </div>
638
+ <?php }
639
  }
640
  ?>
641
+ </div><!-- Advanced Options sections || Sections For General Options -->
642
+ </div> <!-- Tab sections -->
643
+ <?php } ?>
644
 
645
+ <div id="optimize-more" class="sb-pack-tab">
646
+ <div class="feature-section three-col">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
647
 
648
+ <div class="col sbp-box">
649
+ <img src="https://ps.w.org/shortpixel-image-optimiser/assets/icon-128x128.png?rev=1038819">
650
+ <div class="sbp-box__name"><?php esc_html_e( 'ShortPixel Image Optimizer', 'speed-booster-pack' ); ?></div>
 
 
 
 
 
 
 
 
651
 
652
+ <div class="sbp-box__description">
653
+ <?php esc_html_e( 'Increase your website’s SEO ranking, number of visitors and ultimately your sales by optimizing any image. ', 'speed-booster-pack' ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
654
  </div>
 
655
 
656
+ <div class="sbp-box__action-bar">
657
+ <span class="sbp-box__action-button">
658
+ <a class="button" href="<?php echo esc_url( 'https://shortpixel.com/h/af/IVAKFSX31472' ); ?>" target="_blank"><?php esc_html_e( 'Test your site for free', 'speed-booster-pack' ); ?></a>
659
+ </span>
660
+ </div>
661
+ </div>
662
 
663
+ <div class="col sbp-box">
664
+ <img src="https://ps.w.org/optimole-wp/assets/icon-128x128.png?rev=1975706">
665
+ <div class="sbp-box__name"><?php esc_html_e( 'Optimole', 'speed-booster-pack' ); ?></div>
666
+ <div class="sbp-box__description">
667
+ <?php esc_html_e( 'Image optimization & resizing. Image acceleration through CDN. On-the-fly image handling. ', 'speed-booster-pack' ); ?>
668
+ </div>
669
 
670
+ <div class="sbp-box__action-bar">
671
+ <span class="sbp-box__action-button">
672
+ <a class="button" href="<?php echo esc_url( 'https://optimole.com' ); ?>" target="_blank"><?php esc_html_e( 'Check it out for free', 'speed-booster-pack' ); ?></a>
673
+ </span>
674
+ </div>
675
+ </div>
676
+
677
+
678
+ <div class="col sbp-box">
679
+ <img src="<?php echo SPEED_BOOSTER_PACK_URL ?>/inc/images/hostinger-official.jpg">
680
+ <div class="sbp-box__name"><?php esc_html_e( 'Hostinger', 'speed-booster-pack' ); ?></div>
681
 
682
+ <div class="sbp-box__description">
683
+ <?php esc_html_e( 'They are offering the best cheap WordPress hosting on the market right now at 1.45$ / month', 'speed-booster-pack' ); ?>
 
 
 
684
  </div>
685
 
686
+ <div class="sbp-box__action-bar">
687
+ <span class="sbp-box__action-button">
688
+ <a class="button button-primary" href="<?php echo esc_url( 'https://www.hostg.xyz/SHA' ); ?>" target="_blank"><?php esc_html_e( 'Get a faster host now', 'speed-booster-pack' ); ?></a>
689
+ </span>
690
+ </div>
691
+ </div>
692
 
 
 
 
693
  </div>
694
+ </div><!--#optimize-more-->
695
+
696
+ <div class="textright">
697
+ <hr />
698
+ <?php submit_button( '', 'button button-primary button-hero' ); ?>
699
+ </div>
700
 
701
  </form>
702
 
lang/{sb-pack.pot → speed-booster-pack.pot} RENAMED
@@ -3,8 +3,8 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Speed Booster Pack\n"
6
- "POT-Creation-Date: 2018-12-03 17:01+0200\n"
7
- "PO-Revision-Date: 2018-12-03 17:01+0200\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
@@ -21,71 +21,24 @@ msgstr ""
21
  "X-Poedit-SearchPath-0: .\n"
22
  "X-Poedit-SearchPathExcluded-0: *.js\n"
23
 
24
- #: feedback/class-epsilon-feedback.php:63
25
- msgid "Allow us to get more information in order to improve our plugin"
26
- msgstr ""
27
-
28
- #: feedback/class-epsilon-feedback.php:67
29
- msgid "Submitting form"
30
- msgstr ""
31
-
32
- #: feedback/class-epsilon-feedback.php:68
33
- msgid "Just Deactivate"
34
- msgstr ""
35
-
36
- #: feedback/class-epsilon-feedback.php:68
37
- msgid "Submit and Deactivate"
38
- msgstr ""
39
-
40
- #: feedback/class-epsilon-feedback.php:158
41
- msgid "What was the dificult part ?"
42
- msgstr ""
43
-
44
- #: feedback/class-epsilon-feedback.php:159
45
- msgid "What can we describe more ?"
46
- msgstr ""
47
-
48
- #: feedback/class-epsilon-feedback.php:160
49
- #: feedback/class-epsilon-feedback.php:235
50
- msgid "How could we improve ?"
51
- msgstr ""
52
-
53
- #: feedback/class-epsilon-feedback.php:161
54
- msgid "Can you mention it ?"
55
- msgstr ""
56
-
57
- #: feedback/class-epsilon-feedback.php:162
58
- msgid "With what plugin or theme is incompatible ?"
59
- msgstr ""
60
-
61
- #: feedback/class-epsilon-feedback.php:226
62
- msgid "Sorry to see you go"
63
- msgstr ""
64
-
65
- #: feedback/class-epsilon-feedback.php:227
66
  msgid ""
67
- "Before you deactivate the plugin, would you quickly give us your reason for "
68
- "doing so?"
 
69
  msgstr ""
70
 
71
- #: feedback/class-epsilon-feedback.php:229
72
- msgid "Set up is too difficult"
73
  msgstr ""
74
 
75
- #: feedback/class-epsilon-feedback.php:230
76
- msgid "Lack of documentation"
77
  msgstr ""
78
 
79
- #: feedback/class-epsilon-feedback.php:231
80
- msgid "Not the features I wanted"
81
- msgstr ""
82
-
83
- #: feedback/class-epsilon-feedback.php:232
84
- msgid "Found a better plugin"
85
- msgstr ""
86
-
87
- #: feedback/class-epsilon-feedback.php:233
88
- msgid "Incompatible with theme or plugin"
89
  msgstr ""
90
 
91
  #: inc/settings.php:179
@@ -100,22 +53,22 @@ msgstr ""
100
  msgid "You do not have sufficient permissions to access this page."
101
  msgstr ""
102
 
103
- #: inc/template/notice.php:4
104
  msgid "Welcome to Speed Booster Pack"
105
  msgstr ""
106
 
107
- #: inc/template/notice.php:6
108
  #, php-format
109
  msgid ""
110
  "Welcome! Thank you for installing Speed Booster Pack! Check out the %sPlugin "
111
  "settings%s for new features that can make your site load faster."
112
  msgstr ""
113
 
114
- #: inc/template/notice.php:8
115
  msgid "Get started with Speed Booster Pack"
116
  msgstr ""
117
 
118
- #: inc/template/notice.php:10
119
  msgid "Dismiss this notice."
120
  msgstr ""
121
 
@@ -125,91 +78,67 @@ msgid ""
125
  "well supported plugin which allows you to improve your website’s loading "
126
  "speed. Visitors usually close a website if it doesn’t load in a few seconds "
127
  "and the slower a site loads the greater the chances are that the visitors "
128
- "will leave. And you don’t want that to happen, do you?\n"
129
- msgstr ""
130
-
131
- #: inc/template/options.php:35
132
- msgid "Page load: "
133
- msgstr ""
134
-
135
- #: inc/template/options.php:36
136
- msgid " sec"
137
  msgstr ""
138
 
139
- #: inc/template/options.php:62
140
- msgid "DB Queries"
141
- msgstr ""
142
-
143
- #: inc/template/options.php:67
144
- msgid "Memory: "
145
- msgstr ""
146
-
147
- #: inc/template/options.php:74
148
- msgid "Plugins: "
149
- msgstr ""
150
-
151
- #: inc/template/options.php:80
152
- msgid "Analyse"
153
- msgstr ""
154
-
155
- #: inc/template/options.php:86 inc/template/options.php:101
156
  msgid "General"
157
  msgstr ""
158
 
159
- #: inc/template/options.php:87
160
  msgid "Advanced"
161
  msgstr ""
162
 
163
- #: inc/template/options.php:88
164
- msgid "Image Optimization"
165
  msgstr ""
166
 
167
- #: inc/template/options.php:89
168
- msgid "Support"
169
  msgstr ""
170
 
171
- #: inc/template/options.php:90
172
  msgid "Optimize More"
173
  msgstr ""
174
 
175
- #: inc/template/options.php:105
176
- msgid "Move scripts to the footer"
177
  msgstr ""
178
 
179
- #: inc/template/options.php:107
180
  msgid ""
181
  "This option move all scripts to the footer while keeping stylesheets in the "
182
  "header to improve page loading speed and get a higher score on the major "
183
- "speed testing sites such as GTmetrix or other website speed testing tools."
184
  msgstr ""
185
 
186
- #: inc/template/options.php:115
187
  msgid "Load JS from Google Libraries"
188
  msgstr ""
189
 
190
- #: inc/template/options.php:117
191
  msgid ""
192
  "Loading WordPress javascript files from Google’s Libraries rather than "
193
  "serving it from your WordPress install directly, will reduce latency, "
194
  "increase parallelism and improve caching."
195
  msgstr ""
196
 
197
- #: inc/template/options.php:124
198
  msgid "Minify HTML"
199
  msgstr ""
200
 
201
- #: inc/template/options.php:126
202
  msgid ""
203
  "Activate this option only if you don’t want to use other minify plugins or "
204
  "other speed optimization plugin that has minify option included. If "
205
  "something goes wrong, simply uncheck this option and save the settings."
206
  msgstr ""
207
 
208
- #: inc/template/options.php:133
209
  msgid "Defer parsing of javascript files"
210
  msgstr ""
211
 
212
- #: inc/template/options.php:135
213
  msgid ""
214
  "!!!Note: This will be disabled IF Move Scripts to Footer is enabled. By "
215
  "deferring parsing of unneeded JavaScript until it needs to be executed, you "
@@ -218,11 +147,11 @@ msgid ""
218
  "Libraries option is not checked."
219
  msgstr ""
220
 
221
- #: inc/template/options.php:142
222
  msgid "Remove query strings"
223
  msgstr ""
224
 
225
- #: inc/template/options.php:144
226
  msgid ""
227
  "Since most proxies do not cache resources with a ? in their URL, this option "
228
  "allows you to remove any query strings (version numbers) from static "
@@ -230,11 +159,11 @@ msgid ""
230
  "like GTmetrix, PageSpeed, YSlow and Pingdoom."
231
  msgstr ""
232
 
233
- #: inc/template/options.php:151
234
  msgid "Removes extra Font Awesome styles"
235
  msgstr ""
236
 
237
- #: inc/template/options.php:153
238
  msgid ""
239
  "Use this option only if your theme uses Font Awesome, to prevent other "
240
  "plugins that uses Font Awesome, to add their stylesheets to your theme. In "
@@ -242,15 +171,15 @@ msgid ""
242
  "your theme by certain plugins."
243
  msgstr ""
244
 
245
- #: inc/template/options.php:158
246
  msgid "More settings"
247
  msgstr ""
248
 
249
- #: inc/template/options.php:162
250
  msgid "Remove WordPress Emoji scripts"
251
  msgstr ""
252
 
253
- #: inc/template/options.php:164
254
  msgid ""
255
  "Emojis are fun and all, but if you are aren’t using them they actually load "
256
  "a JavaScript file (wp-emoji-release.min.js) on every page of your website. "
@@ -258,21 +187,21 @@ msgid ""
258
  "your site. So we recommend disabling this."
259
  msgstr ""
260
 
261
- #: inc/template/options.php:171
262
  msgid "Remove WordPress Shortlink"
263
  msgstr ""
264
 
265
- #: inc/template/options.php:173
266
  msgid ""
267
  "WordPress URL shortening is sometimes useful, but it automatically adds an "
268
  "ugly code in your header, so you can remove it."
269
  msgstr ""
270
 
271
- #: inc/template/options.php:180
272
  msgid "Remove Adjacent Posts Links"
273
  msgstr ""
274
 
275
- #: inc/template/options.php:182
276
  msgid ""
277
  "WordPress incorrectly implements this feature that supposedly should fix a "
278
  "pagination issues but it messes up, so there is no reason to keep these "
@@ -280,53 +209,37 @@ msgid ""
280
  "site, although you can remove it if you run a well designed theme."
281
  msgstr ""
282
 
283
- #: inc/template/options.php:189
284
  msgid "Remove Windows Manifest"
285
  msgstr ""
286
 
287
- #: inc/template/options.php:191
288
  msgid ""
289
  "Windows Live Writer (WLW) is a Microsoft application for composing and "
290
  "managing blog posts offline and publish them later. If you are not using "
291
  "Windows Live Writer application, you can remove it from the WP head."
292
  msgstr ""
293
 
294
- #: inc/template/options.php:198
295
- msgid "Remove RSD(Really Simple Discovery) Link"
296
- msgstr ""
297
-
298
- #: inc/template/options.php:200
299
- msgid ""
300
- "This type of link is used by blog clients. If you edit your site from your "
301
- "browser then you don’t need this. It is also used by some 3rd party "
302
- "applications that utilize XML-RPC requests. In most cases, this is just "
303
- "unnecessary code."
304
- msgstr ""
305
-
306
- #: inc/template/options.php:207
307
  msgid "Remove the WordPress Version"
308
  msgstr ""
309
 
310
- #: inc/template/options.php:209
311
- msgid "This option is added for security reasons and cleaning the header."
312
- msgstr ""
313
-
314
- #: inc/template/options.php:216
315
  msgid "Remove all rss feed links"
316
  msgstr ""
317
 
318
- #: inc/template/options.php:218
319
  msgid ""
320
  "This option wil remove all rss feed links to cleanup your WordPress header. "
321
  "It is also useful on Unicorn – The W3C Markup Validation Service to get rid "
322
  "out the “feed does not validate” error."
323
  msgstr ""
324
 
325
- #: inc/template/options.php:225
326
  msgid "Disable XML-RPC"
327
  msgstr ""
328
 
329
- #: inc/template/options.php:227
330
  msgid ""
331
  "XML-RPC was added in WordPress 3.5 and allows for remote connections, and "
332
  "unless you are using your mobile device to post to WordPress it does more "
@@ -335,37 +248,127 @@ msgid ""
335
  "don’t recommend using JetPack for performance reasons."
336
  msgstr ""
337
 
338
- #: inc/template/options.php:232
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
339
  msgid "Need even more speed?"
340
  msgstr ""
341
 
342
- #: inc/template/options.php:236
343
  msgid "Inline all CSS styles"
344
  msgstr ""
345
 
346
- #: inc/template/options.php:238
347
  msgid ""
348
  "Checking this option will inline the contents of all your stylesheets. This "
349
  "helps with the annoying render blocking error Google Page Speed Insights "
350
  "displays."
351
  msgstr ""
352
 
353
- #: inc/template/options.php:245
354
  msgid "Minify all (previously) inlined CSS styles"
355
  msgstr ""
356
 
357
- #: inc/template/options.php:247
358
  msgid ""
359
  "Minifying all inlined CSS styles will optimize the CSS delivery and will "
360
  "eliminate the annoying message on Google Page Speed regarding to render-"
361
  "blocking css."
362
  msgstr ""
363
 
364
- #: inc/template/options.php:254
365
  msgid "Move all inlined CSS into the footer"
366
  msgstr ""
367
 
368
- #: inc/template/options.php:256
369
  msgid ""
370
  "Inserting all CSS styles inline to the footer is a sensitive option that "
371
  "will eliminate render-blocking CSS warning in Google Page Speed test. If "
@@ -374,77 +377,55 @@ msgid ""
374
  "recommended that you also enable the “ Move scripts to the footer” option."
375
  msgstr ""
376
 
377
- #: inc/template/options.php:263
378
  msgid "Disable all above CSS options on mobile devices"
379
  msgstr ""
380
 
381
- #: inc/template/options.php:265
382
  msgid ""
383
  "Disable all above CSS options on mobile devices: this option was added to "
384
  "avoid some appearance issues on mobile devices."
385
  msgstr ""
386
 
387
- #: inc/template/options.php:272
388
  msgid "Exclude styles from being inlined and/or minified option: "
389
  msgstr ""
390
 
391
- #: inc/template/options.php:277
392
  msgid ""
393
  "Enter one by line, the handles of css files or the final part of the style "
394
- "URL. For example: <code>font-awesome</code> or <code>font-awesome.min.css</"
395
- "code>"
396
  msgstr ""
397
 
398
- #: inc/template/options.php:283
399
  msgid ""
400
  "As a guidance, here is a list of css handles of each enqueued style detected "
401
  "by our plugin:"
402
  msgstr ""
403
 
404
- #: inc/template/options.php:289
405
- msgid "CSS Handle"
406
- msgstr ""
407
-
408
- #: inc/template/options.php:311 inc/template/options.php:315
409
  msgid "Exclude scripts from being moved to the footer"
410
  msgstr ""
411
 
412
- #: inc/template/options.php:320 inc/template/options.php:352
413
- msgid "Script Handle"
414
- msgstr ""
415
-
416
- #: inc/template/options.php:322
417
- msgid "Enter one js handle per text field."
418
- msgstr ""
419
-
420
- #: inc/template/options.php:322 inc/template/options.php:503
421
- #: inc/template/options.php:515 inc/template/options.php:527
422
- msgid "Read more"
423
- msgstr ""
424
-
425
- #: inc/template/options.php:323
426
- msgid "detailed instructions"
427
- msgstr ""
428
-
429
- #: inc/template/options.php:323
430
- msgid "on this option on plugin documentation."
431
  msgstr ""
432
 
433
- #: inc/template/options.php:346
434
  msgid ""
435
  "As a guidance, here is a list of script handles and script paths of each "
436
  "enqueued script detected by our plugin:"
437
  msgstr ""
438
 
439
- #: inc/template/options.php:353
440
- msgid "Script Path"
441
- msgstr ""
442
-
443
- #: inc/template/options.php:408 inc/template/options.php:412
444
  msgid "Exclude scripts from being deferred"
445
  msgstr ""
446
 
447
- #: inc/template/options.php:434
448
  msgid ""
449
  "Enter one by text field, the handle part of the js files that you want to be "
450
  "excluded from defer parsing option. For example: <code>jquery-core</code> If "
@@ -454,102 +435,178 @@ msgid ""
454
  "on our support forums."
455
  msgstr ""
456
 
457
- #: inc/template/options.php:444
458
- msgid "Change the default image compression level"
 
459
  msgstr ""
460
 
461
- #: inc/template/options.php:451
462
- msgid "Compression level:"
463
  msgstr ""
464
 
465
- #: inc/template/options.php:461
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466
  msgid ""
467
- "The default image compression setting in WordPress is 90%. Compressing your "
468
- "images further than the default will make your file sizes even smaller and "
469
- "will boost your site performance. As a reference, a lower level of "
470
- "compression means more performance but might induce quality loss. We "
471
- "recommend you choose a compression level between 50 and 75."
 
472
  msgstr ""
473
 
474
- #: inc/template/options.php:465
475
  msgid ""
476
- "Note that any changes you make will only affect new images uploaded to your "
477
- "site. A specialized plugin can optimize all your present images and will "
478
- "also optimize new ones as they are added. "
 
 
 
479
  msgstr ""
480
 
481
- #: inc/template/options.php:481
482
- msgid "Contact Support"
483
  msgstr ""
484
 
485
- #: inc/template/options.php:484
486
- msgid "We offer support through WordPress.org's support forums."
487
  msgstr ""
488
 
489
- #: inc/template/options.php:487
490
- msgid "Post on our support forums"
491
  msgstr ""
492
 
493
- #: inc/template/options.php:497
494
- msgid "Our Bluehost Hosting Review"
495
  msgstr ""
496
 
497
- #: inc/template/options.php:500
 
 
 
 
498
  msgid ""
499
- "Despite its popularity, though, Bluehost often carries a negative perception "
500
- "among WordPress professionals. So as we dig into this Bluehost review, we'll "
501
- "be looking to figure out whether Bluehost's performance and features "
502
- "actually justify that reputation."
 
 
 
 
 
 
503
  msgstr ""
504
 
505
- #: inc/template/options.php:509
506
- msgid "Our InMotion Hosting Review"
507
  msgstr ""
508
 
509
- #: inc/template/options.php:512
510
  msgid ""
511
- "InMotion Hosting is a popular independent web host that serves over 300,000 "
512
- "customers. They're notably not a part of the EIG behemoth (the parent "
513
- "company behind Bluehost, HostGator, and more), which is a plus in my book."
514
  msgstr ""
515
 
516
- #: inc/template/options.php:521
517
- msgid "Our A2 Hosting Review"
518
  msgstr ""
519
 
520
- #: inc/template/options.php:524
 
 
 
 
 
 
 
 
521
  msgid ""
522
- "When it comes to affordable WordPress hosting, A2 Hosting is a name that "
523
- "often comes up in various WordPress groups for offering quick-loading "
524
- "performance that belies its low price tag."
525
  msgstr ""
526
 
527
- #: inc/template/options.php:535
528
- msgid "Lend a hand & share your thoughts"
529
  msgstr ""
530
 
531
- #: inc/template/options.php:541
532
- #, php-format
533
  msgid ""
534
- "We've been working hard on making %1$s the best one out there. We're "
535
- "interested in hearing your thoughts about %1$s and what we could do to "
536
- "<u>make it even better</u>.<br/> <br/> %2$sHave your say%3$s"
537
  msgstr ""
538
 
539
- #: inc/template/options.php:555
 
 
 
 
 
 
 
 
 
 
 
 
540
  msgid "ShortPixel Image Optimizer"
541
  msgstr ""
542
 
543
- #: inc/template/options.php:558
544
  msgid ""
545
  "Increase your website’s SEO ranking, number of visitors and ultimately your "
546
- "sales by optimizing any image or PDF document on your website. "
547
  msgstr ""
548
 
549
- #: inc/template/options.php:563
550
  msgid "Test your site for free"
551
  msgstr ""
552
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
553
  #: widgets/dashboard-widget.php:4 widgets/dashboard-widget.php:44
554
  msgid "Speed Booster Pack Overview"
555
  msgstr ""
@@ -574,7 +631,9 @@ msgstr ""
574
  #. Description of the plugin/theme
575
  msgid ""
576
  "Speed Booster Pack allows you to improve your page loading speed and get a "
577
- "higher score on the major"
 
 
578
  msgstr ""
579
 
580
  #. Author of the plugin/theme
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Speed Booster Pack\n"
6
+ "POT-Creation-Date: 2019-01-04 15:59+0200\n"
7
+ "PO-Revision-Date: 2019-01-04 15:59+0200\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
21
  "X-Poedit-SearchPath-0: .\n"
22
  "X-Poedit-SearchPathExcluded-0: *.js\n"
23
 
24
+ #: inc/class-sb-pack-review.php:22
25
+ #, php-format
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  msgid ""
27
+ "Hey, I noticed you have installed our plugin for %s day(s) - that's awesome! "
28
+ "Could you please do me a BIG favor and give it a 5-star rating on WordPress? "
29
+ "Just to help us spread the word and boost our motivation."
30
  msgstr ""
31
 
32
+ #: inc/class-sb-pack-review.php:23
33
+ msgid "Ok, you deserve it"
34
  msgstr ""
35
 
36
+ #: inc/class-sb-pack-review.php:24
37
+ msgid "I already did"
38
  msgstr ""
39
 
40
+ #: inc/class-sb-pack-review.php:25
41
+ msgid "No, not good enough"
 
 
 
 
 
 
 
 
42
  msgstr ""
43
 
44
  #: inc/settings.php:179
53
  msgid "You do not have sufficient permissions to access this page."
54
  msgstr ""
55
 
56
+ #: inc/template/notice.php:3
57
  msgid "Welcome to Speed Booster Pack"
58
  msgstr ""
59
 
60
+ #: inc/template/notice.php:4
61
  #, php-format
62
  msgid ""
63
  "Welcome! Thank you for installing Speed Booster Pack! Check out the %sPlugin "
64
  "settings%s for new features that can make your site load faster."
65
  msgstr ""
66
 
67
+ #: inc/template/notice.php:6
68
  msgid "Get started with Speed Booster Pack"
69
  msgstr ""
70
 
71
+ #: inc/template/notice.php:9
72
  msgid "Dismiss this notice."
73
  msgstr ""
74
 
78
  "well supported plugin which allows you to improve your website’s loading "
79
  "speed. Visitors usually close a website if it doesn’t load in a few seconds "
80
  "and the slower a site loads the greater the chances are that the visitors "
81
+ "will leave. And you don’t want that to happen, do you?"
 
 
 
 
 
 
 
 
82
  msgstr ""
83
 
84
+ #: inc/template/options.php:34 inc/template/options.php:56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  msgid "General"
86
  msgstr ""
87
 
88
+ #: inc/template/options.php:35 inc/template/options.php:433
89
  msgid "Advanced"
90
  msgstr ""
91
 
92
+ #: inc/template/options.php:36 inc/template/options.php:326
93
+ msgid "CDN"
94
  msgstr ""
95
 
96
+ #: inc/template/options.php:37 inc/template/options.php:363
97
+ msgid "Google Analytics"
98
  msgstr ""
99
 
100
+ #: inc/template/options.php:38
101
  msgid "Optimize More"
102
  msgstr ""
103
 
104
+ #: inc/template/options.php:60
105
+ msgid "Move scripts to footer"
106
  msgstr ""
107
 
108
+ #: inc/template/options.php:61
109
  msgid ""
110
  "This option move all scripts to the footer while keeping stylesheets in the "
111
  "header to improve page loading speed and get a higher score on the major "
112
+ "speed testing sites such as GTmetrix or other website speed testing tools"
113
  msgstr ""
114
 
115
+ #: inc/template/options.php:66
116
  msgid "Load JS from Google Libraries"
117
  msgstr ""
118
 
119
+ #: inc/template/options.php:67
120
  msgid ""
121
  "Loading WordPress javascript files from Google’s Libraries rather than "
122
  "serving it from your WordPress install directly, will reduce latency, "
123
  "increase parallelism and improve caching."
124
  msgstr ""
125
 
126
+ #: inc/template/options.php:72
127
  msgid "Minify HTML"
128
  msgstr ""
129
 
130
+ #: inc/template/options.php:73
131
  msgid ""
132
  "Activate this option only if you don’t want to use other minify plugins or "
133
  "other speed optimization plugin that has minify option included. If "
134
  "something goes wrong, simply uncheck this option and save the settings."
135
  msgstr ""
136
 
137
+ #: inc/template/options.php:78
138
  msgid "Defer parsing of javascript files"
139
  msgstr ""
140
 
141
+ #: inc/template/options.php:79
142
  msgid ""
143
  "!!!Note: This will be disabled IF Move Scripts to Footer is enabled. By "
144
  "deferring parsing of unneeded JavaScript until it needs to be executed, you "
147
  "Libraries option is not checked."
148
  msgstr ""
149
 
150
+ #: inc/template/options.php:84
151
  msgid "Remove query strings"
152
  msgstr ""
153
 
154
+ #: inc/template/options.php:85
155
  msgid ""
156
  "Since most proxies do not cache resources with a ? in their URL, this option "
157
  "allows you to remove any query strings (version numbers) from static "
159
  "like GTmetrix, PageSpeed, YSlow and Pingdoom."
160
  msgstr ""
161
 
162
+ #: inc/template/options.php:90
163
  msgid "Removes extra Font Awesome styles"
164
  msgstr ""
165
 
166
+ #: inc/template/options.php:91
167
  msgid ""
168
  "Use this option only if your theme uses Font Awesome, to prevent other "
169
  "plugins that uses Font Awesome, to add their stylesheets to your theme. In "
171
  "your theme by certain plugins."
172
  msgstr ""
173
 
174
+ #: inc/template/options.php:99
175
  msgid "More settings"
176
  msgstr ""
177
 
178
+ #: inc/template/options.php:103
179
  msgid "Remove WordPress Emoji scripts"
180
  msgstr ""
181
 
182
+ #: inc/template/options.php:104
183
  msgid ""
184
  "Emojis are fun and all, but if you are aren’t using them they actually load "
185
  "a JavaScript file (wp-emoji-release.min.js) on every page of your website. "
187
  "your site. So we recommend disabling this."
188
  msgstr ""
189
 
190
+ #: inc/template/options.php:109
191
  msgid "Remove WordPress Shortlink"
192
  msgstr ""
193
 
194
+ #: inc/template/options.php:110
195
  msgid ""
196
  "WordPress URL shortening is sometimes useful, but it automatically adds an "
197
  "ugly code in your header, so you can remove it."
198
  msgstr ""
199
 
200
+ #: inc/template/options.php:115
201
  msgid "Remove Adjacent Posts Links"
202
  msgstr ""
203
 
204
+ #: inc/template/options.php:116
205
  msgid ""
206
  "WordPress incorrectly implements this feature that supposedly should fix a "
207
  "pagination issues but it messes up, so there is no reason to keep these "
209
  "site, although you can remove it if you run a well designed theme."
210
  msgstr ""
211
 
212
+ #: inc/template/options.php:121
213
  msgid "Remove Windows Manifest"
214
  msgstr ""
215
 
216
+ #: inc/template/options.php:122 inc/template/options.php:128
217
  msgid ""
218
  "Windows Live Writer (WLW) is a Microsoft application for composing and "
219
  "managing blog posts offline and publish them later. If you are not using "
220
  "Windows Live Writer application, you can remove it from the WP head."
221
  msgstr ""
222
 
223
+ #: inc/template/options.php:127
 
 
 
 
 
 
 
 
 
 
 
 
224
  msgid "Remove the WordPress Version"
225
  msgstr ""
226
 
227
+ #: inc/template/options.php:133
 
 
 
 
228
  msgid "Remove all rss feed links"
229
  msgstr ""
230
 
231
+ #: inc/template/options.php:134
232
  msgid ""
233
  "This option wil remove all rss feed links to cleanup your WordPress header. "
234
  "It is also useful on Unicorn – The W3C Markup Validation Service to get rid "
235
  "out the “feed does not validate” error."
236
  msgstr ""
237
 
238
+ #: inc/template/options.php:139
239
  msgid "Disable XML-RPC"
240
  msgstr ""
241
 
242
+ #: inc/template/options.php:140
243
  msgid ""
244
  "XML-RPC was added in WordPress 3.5 and allows for remote connections, and "
245
  "unless you are using your mobile device to post to WordPress it does more "
248
  "don’t recommend using JetPack for performance reasons."
249
  msgstr ""
250
 
251
+ #: inc/template/options.php:145
252
+ msgid "Disable Self Pingbacks"
253
+ msgstr ""
254
+
255
+ #: inc/template/options.php:146
256
+ msgid ""
257
+ "A pingback is a special type of comment that’s created when you link to "
258
+ "another blog post, as long as the other blog is set to accept pingbacks."
259
+ msgstr ""
260
+
261
+ #: inc/template/options.php:151
262
+ msgid "Disable Dashicons"
263
+ msgstr ""
264
+
265
+ #: inc/template/options.php:152
266
+ msgid "Disable dashicons from front end."
267
+ msgstr ""
268
+
269
+ #: inc/template/options.php:157
270
+ msgid "Disable Google Maps"
271
+ msgstr ""
272
+
273
+ #: inc/template/options.php:158
274
+ msgid "Disable Google Maps from front end. "
275
+ msgstr ""
276
+
277
+ #: inc/template/options.php:163
278
+ msgid "Disable Heartbeat"
279
+ msgstr ""
280
+
281
+ #: inc/template/options.php:164
282
+ msgid ""
283
+ "Disable heartbeat everywhere ( used for autosaving and revision tracking )."
284
+ msgstr ""
285
+
286
+ #: inc/template/options.php:169
287
+ msgid "Heartbeat frequency"
288
+ msgstr ""
289
+
290
+ #: inc/template/options.php:170
291
+ msgid "Controls how often the Wordpress Heartbeat API is allowed to run. "
292
+ msgstr ""
293
+
294
+ #: inc/template/options.php:181
295
+ msgid "Limit Post Revision"
296
+ msgstr ""
297
+
298
+ #: inc/template/options.php:182
299
+ msgid "Controls how many Revisions Wordpress will save "
300
+ msgstr ""
301
+
302
+ #: inc/template/options.php:200
303
+ msgid "Autosave interval"
304
+ msgstr ""
305
+
306
+ #: inc/template/options.php:201
307
+ msgid "Controls how wordpress will autosave posts and pages while editing."
308
+ msgstr ""
309
+
310
+ #: inc/template/options.php:203
311
+ msgid "1 minute ( default )"
312
+ msgstr ""
313
+
314
+ #: inc/template/options.php:204
315
+ msgid "2 minutes"
316
+ msgstr ""
317
+
318
+ #: inc/template/options.php:205
319
+ msgid "3 minutes"
320
+ msgstr ""
321
+
322
+ #: inc/template/options.php:206
323
+ msgid "4 minutes"
324
+ msgstr ""
325
+
326
+ #: inc/template/options.php:207
327
+ msgid "5 minutes"
328
+ msgstr ""
329
+
330
+ #: inc/template/options.php:213
331
+ msgid "Remove REST API Links"
332
+ msgstr ""
333
+
334
+ #: inc/template/options.php:214
335
+ msgid ""
336
+ "The WordPress REST API provides API endpoints for WordPress data types that "
337
+ "allow developers to interact with sites remotely by sending and receiving "
338
+ "JSON (JavaScript Object Notation) objects."
339
+ msgstr ""
340
+
341
+ #: inc/template/options.php:222
342
  msgid "Need even more speed?"
343
  msgstr ""
344
 
345
+ #: inc/template/options.php:226
346
  msgid "Inline all CSS styles"
347
  msgstr ""
348
 
349
+ #: inc/template/options.php:227
350
  msgid ""
351
  "Checking this option will inline the contents of all your stylesheets. This "
352
  "helps with the annoying render blocking error Google Page Speed Insights "
353
  "displays."
354
  msgstr ""
355
 
356
+ #: inc/template/options.php:232
357
  msgid "Minify all (previously) inlined CSS styles"
358
  msgstr ""
359
 
360
+ #: inc/template/options.php:233
361
  msgid ""
362
  "Minifying all inlined CSS styles will optimize the CSS delivery and will "
363
  "eliminate the annoying message on Google Page Speed regarding to render-"
364
  "blocking css."
365
  msgstr ""
366
 
367
+ #: inc/template/options.php:238
368
  msgid "Move all inlined CSS into the footer"
369
  msgstr ""
370
 
371
+ #: inc/template/options.php:239
372
  msgid ""
373
  "Inserting all CSS styles inline to the footer is a sensitive option that "
374
  "will eliminate render-blocking CSS warning in Google Page Speed test. If "
377
  "recommended that you also enable the “ Move scripts to the footer” option."
378
  msgstr ""
379
 
380
+ #: inc/template/options.php:244
381
  msgid "Disable all above CSS options on mobile devices"
382
  msgstr ""
383
 
384
+ #: inc/template/options.php:245
385
  msgid ""
386
  "Disable all above CSS options on mobile devices: this option was added to "
387
  "avoid some appearance issues on mobile devices."
388
  msgstr ""
389
 
390
+ #: inc/template/options.php:256
391
  msgid "Exclude styles from being inlined and/or minified option: "
392
  msgstr ""
393
 
394
+ #: inc/template/options.php:257
395
  msgid ""
396
  "Enter one by line, the handles of css files or the final part of the style "
397
+ "URL."
 
398
  msgstr ""
399
 
400
+ #: inc/template/options.php:262
401
  msgid ""
402
  "As a guidance, here is a list of css handles of each enqueued style detected "
403
  "by our plugin:"
404
  msgstr ""
405
 
406
+ #: inc/template/options.php:274
 
 
 
 
407
  msgid "Exclude scripts from being moved to the footer"
408
  msgstr ""
409
 
410
+ #: inc/template/options.php:275
411
+ msgid ""
412
+ "Enter one js handle per text field. Read more <a href=\"https://docs."
413
+ "machothemes.com/article/119-plugin-options-explained#exclude-scripts-from-"
414
+ "being-moved-to-the-footer-50\">detailed instructions</a> on this option on "
415
+ "plugin documentation."
 
 
 
 
 
 
 
 
 
 
 
 
 
416
  msgstr ""
417
 
418
+ #: inc/template/options.php:292
419
  msgid ""
420
  "As a guidance, here is a list of script handles and script paths of each "
421
  "enqueued script detected by our plugin:"
422
  msgstr ""
423
 
424
+ #: inc/template/options.php:299
 
 
 
 
425
  msgid "Exclude scripts from being deferred"
426
  msgstr ""
427
 
428
+ #: inc/template/options.php:316
429
  msgid ""
430
  "Enter one by text field, the handle part of the js files that you want to be "
431
  "excluded from defer parsing option. For example: <code>jquery-core</code> If "
435
  "on our support forums."
436
  msgstr ""
437
 
438
+ #: inc/template/options.php:327
439
+ msgid ""
440
+ "CDN options that allow you to rewrite your site URLs with your CDN URLs."
441
  msgstr ""
442
 
443
+ #: inc/template/options.php:331
444
+ msgid "Enable CDN Rewrite"
445
  msgstr ""
446
 
447
+ #: inc/template/options.php:332
448
+ msgid "Enables rewriting of your site URLs with your CDN URLs"
449
+ msgstr ""
450
+
451
+ #: inc/template/options.php:337
452
+ msgid "CDN URL"
453
+ msgstr ""
454
+
455
+ #: inc/template/options.php:338
456
+ msgid ""
457
+ "Enter your CDN URL without the trailing backslash. Example: https://cdn."
458
+ "example.com"
459
+ msgstr ""
460
+
461
+ #: inc/template/options.php:343
462
+ msgid "Included Directories"
463
+ msgstr ""
464
+
465
+ #: inc/template/options.php:344
466
  msgid ""
467
+ "Enter any directories you would like to be included in CDN rewriting, "
468
+ "separated by commas (,). Default: wp-content,wp-includes"
469
+ msgstr ""
470
+
471
+ #: inc/template/options.php:350
472
+ msgid "CDN Exclusions"
473
  msgstr ""
474
 
475
+ #: inc/template/options.php:351
476
  msgid ""
477
+ "Enter any directories or file extensions you would like to be excluded from "
478
+ "CDN rewriting, separated by commas (,). Default: .php"
479
+ msgstr ""
480
+
481
+ #: inc/template/options.php:364
482
+ msgid "Optimization options for Google Analytics."
483
  msgstr ""
484
 
485
+ #: inc/template/options.php:368
486
+ msgid "Enable Local Analytics"
487
  msgstr ""
488
 
489
+ #: inc/template/options.php:369
490
+ msgid "Enable syncing og the Google Analytics script to your own server."
491
  msgstr ""
492
 
493
+ #: inc/template/options.php:374
494
+ msgid "Tracking ID"
495
  msgstr ""
496
 
497
+ #: inc/template/options.php:375
498
+ msgid "Enter your Google Analytics tracking ID"
499
  msgstr ""
500
 
501
+ #: inc/template/options.php:380
502
+ msgid "Tracking code position"
503
+ msgstr ""
504
+
505
+ #: inc/template/options.php:381
506
  msgid ""
507
+ "Load your analytics script in the header or footer of the site. Default - "
508
+ "header"
509
+ msgstr ""
510
+
511
+ #: inc/template/options.php:390
512
+ msgid "Disable Display Features"
513
+ msgstr ""
514
+
515
+ #: inc/template/options.php:391
516
+ msgid "Disable marketing and advertising which generates a 2nd HTTP request"
517
  msgstr ""
518
 
519
+ #: inc/template/options.php:396
520
+ msgid "Anonymize IP"
521
  msgstr ""
522
 
523
+ #: inc/template/options.php:397
524
  msgid ""
525
+ "Shorten visitor IP to comply with privacy restrictions in some countries."
 
 
526
  msgstr ""
527
 
528
+ #: inc/template/options.php:402
529
+ msgid "Track Logged In Admins"
530
  msgstr ""
531
 
532
+ #: inc/template/options.php:403
533
+ msgid "Include logged in Wordpress admins in your GA report."
534
+ msgstr ""
535
+
536
+ #: inc/template/options.php:408
537
+ msgid "Adjusted Bounce Rate"
538
+ msgstr ""
539
+
540
+ #: inc/template/options.php:409
541
  msgid ""
542
+ "Set a timeout limit in seconds to better evaluate the quality of your "
543
+ "traffic ( 1 - 100 )"
 
544
  msgstr ""
545
 
546
+ #: inc/template/options.php:414
547
+ msgid "User MonsterInsights"
548
  msgstr ""
549
 
550
+ #: inc/template/options.php:415
 
551
  msgid ""
552
+ "Allows MonsterInsights to manage your Google Analaytics while still using "
553
+ "the locally hosted analytics.js generated by Speed Booster Pack"
 
554
  msgstr ""
555
 
556
+ #: inc/template/options.php:570
557
+ msgid "CSS Handle"
558
+ msgstr ""
559
+
560
+ #: inc/template/options.php:587
561
+ msgid "Script Handle"
562
+ msgstr ""
563
+
564
+ #: inc/template/options.php:588
565
+ msgid "Script Path"
566
+ msgstr ""
567
+
568
+ #: inc/template/options.php:650
569
  msgid "ShortPixel Image Optimizer"
570
  msgstr ""
571
 
572
+ #: inc/template/options.php:653
573
  msgid ""
574
  "Increase your website’s SEO ranking, number of visitors and ultimately your "
575
+ "sales by optimizing any image. "
576
  msgstr ""
577
 
578
+ #: inc/template/options.php:658
579
  msgid "Test your site for free"
580
  msgstr ""
581
 
582
+ #: inc/template/options.php:665
583
+ msgid "Optimole"
584
+ msgstr ""
585
+
586
+ #: inc/template/options.php:667
587
+ msgid ""
588
+ "Image optimization & resizing. Image acceleration through CDN. On-the-fly "
589
+ "image handling. "
590
+ msgstr ""
591
+
592
+ #: inc/template/options.php:672
593
+ msgid "Check it out for free"
594
+ msgstr ""
595
+
596
+ #: inc/template/options.php:680
597
+ msgid "Hostinger"
598
+ msgstr ""
599
+
600
+ #: inc/template/options.php:683
601
+ msgid ""
602
+ "They are offering the best cheap WordPress hosting on the market right now "
603
+ "at 1.45$ / month"
604
+ msgstr ""
605
+
606
+ #: inc/template/options.php:688
607
+ msgid "Get a faster host now"
608
+ msgstr ""
609
+
610
  #: widgets/dashboard-widget.php:4 widgets/dashboard-widget.php:44
611
  msgid "Speed Booster Pack Overview"
612
  msgstr ""
631
  #. Description of the plugin/theme
632
  msgid ""
633
  "Speed Booster Pack allows you to improve your page loading speed and get a "
634
+ "higher score on the major speed testing services such as <a href=\"http://"
635
+ "gtmetrix.com/\">GTmetrix</a>, <a href=\"http://developers.google.com/speed/"
636
+ "pagespeed/insights/\">Google PageSpeed</a> or other speed testing tools."
637
  msgstr ""
638
 
639
  #. Author of the plugin/theme
license.txt ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
+
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the work (except to the
107
+ extent that warranties are provided), that licensees may convey the
108
+ work under this License, and how to view a copy of this License. If
109
+ the interface presents a list of user commands or options, such as a
110
+ menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work
115
+ for making modifications to it. "Object code" means any non-source
116
+ form of a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that
121
+ is widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that
127
+ Major Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system
131
+ (if any) on which the executable work runs, or a compiler used to
132
+ produce the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users
148
+ can regenerate automatically from other parts of the Corresponding
149
+ Source.
150
+
151
+ The Corresponding Source for a work in source code form is that
152
+ same work.
153
+
154
+ 2. Basic Permissions.
155
+
156
+ All rights granted under this License are granted for the term of
157
+ copyright on the Program, and are irrevocable provided the stated
158
+ conditions are met. This License explicitly affirms your unlimited
159
+ permission to run the unmodified Program. The output from running a
160
+ covered work is covered by this License only if the output, given its
161
+ content, constitutes a covered work. This License acknowledges your
162
+ rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction
172
+ and control, on terms that prohibit them from making any copies of
173
+ your copyrighted material outside their relationship with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under
176
+ the conditions stated below. Sublicensing is not allowed; section 10
177
+ makes it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+ similar laws prohibiting or restricting circumvention of such
185
+ measures.
186
+
187
+ When you convey a covered work, you waive any legal power to forbid
188
+ circumvention of technological measures to the extent such circumvention
189
+ is effected by exercising rights under this License with respect to
190
+ the covered work, and you disclaim any intention to limit operation or
191
+ modification of the work as a means of enforcing, against the work's
192
+ users, your or third parties' legal rights to forbid circumvention of
193
+ technological measures.
194
+
195
+ 4. Conveying Verbatim Copies.
196
+
197
+ You may convey verbatim copies of the Program's source code as you
198
+ receive it, in any medium, provided that you conspicuously and
199
+ appropriately publish on each copy an appropriate copyright notice;
200
+ keep intact all notices stating that this License and any
201
+ non-permissive terms added in accord with section 7 apply to the code;
202
+ keep intact all notices of the absence of any warranty; and give all
203
+ recipients a copy of this License along with the Program.
204
+
205
+ You may charge any price or no price for each copy that you convey,
206
+ and you may offer support or warranty protection for a fee.
207
+
208
+ 5. Conveying Modified Source Versions.
209
+
210
+ You may convey a work based on the Program, or the modifications to
211
+ produce it from the Program, in the form of source code under the
212
+ terms of section 4, provided that you also meet all of these conditions:
213
+
214
+ a) The work must carry prominent notices stating that you modified
215
+ it, and giving a relevant date.
216
+
217
+ b) The work must carry prominent notices stating that it is
218
+ released under this License and any conditions added under section
219
+ 7. This requirement modifies the requirement in section 4 to
220
+ "keep intact all notices".
221
+
222
+ c) You must license the entire work, as a whole, under this
223
+ License to anyone who comes into possession of a copy. This
224
+ License will therefore apply, along with any applicable section 7
225
+ additional terms, to the whole of the work, and all its parts,
226
+ regardless of how they are packaged. This License gives no
227
+ permission to license the work in any other way, but it does not
228
+ invalidate such permission if you have separately received it.
229
+
230
+ d) If the work has interactive user interfaces, each must display
231
+ Appropriate Legal Notices; however, if the Program has interactive
232
+ interfaces that do not display Appropriate Legal Notices, your
233
+ work need not make them do so.
234
+
235
+ A compilation of a covered work with other separate and independent
236
+ works, which are not by their nature extensions of the covered work,
237
+ and which are not combined with it such as to form a larger program,
238
+ in or on a volume of a storage or distribution medium, is called an
239
+ "aggregate" if the compilation and its resulting copyright are not
240
+ used to limit the access or legal rights of the compilation's users
241
+ beyond what the individual works permit. Inclusion of a covered work
242
+ in an aggregate does not cause this License to apply to the other
243
+ parts of the aggregate.
244
+
245
+ 6. Conveying Non-Source Forms.
246
+
247
+ You may convey a covered work in object code form under the terms
248
+ of sections 4 and 5, provided that you also convey the
249
+ machine-readable Corresponding Source under the terms of this License,
250
+ in one of these ways:
251
+
252
+ a) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by the
254
+ Corresponding Source fixed on a durable physical medium
255
+ customarily used for software interchange.
256
+
257
+ b) Convey the object code in, or embodied in, a physical product
258
+ (including a physical distribution medium), accompanied by a
259
+ written offer, valid for at least three years and valid for as
260
+ long as you offer spare parts or customer support for that product
261
+ model, to give anyone who possesses the object code either (1) a
262
+ copy of the Corresponding Source for all the software in the
263
+ product that is covered by this License, on a durable physical
264
+ medium customarily used for software interchange, for a price no
265
+ more than your reasonable cost of physically performing this
266
+ conveying of source, or (2) access to copy the
267
+ Corresponding Source from a network server at no charge.
268
+
269
+ c) Convey individual copies of the object code with a copy of the
270
+ written offer to provide the Corresponding Source. This
271
+ alternative is allowed only occasionally and noncommercially, and
272
+ only if you received the object code with such an offer, in accord
273
+ with subsection 6b.
274
+
275
+ d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+
288
+ e) Convey the object code using peer-to-peer transmission, provided
289
+ you inform other peers where the object code and Corresponding
290
+ Source of the work are being offered to the general public at no
291
+ charge under subsection 6d.
292
+
293
+ A separable portion of the object code, whose source code is excluded
294
+ from the Corresponding Source as a System Library, need not be
295
+ included in conveying the object code work.
296
+
297
+ A "User Product" is either (1) a "consumer product", which means any
298
+ tangible personal property which is normally used for personal, family,
299
+ or household purposes, or (2) anything designed or sold for incorporation
300
+ into a dwelling. In determining whether a product is a consumer product,
301
+ doubtful cases shall be resolved in favor of coverage. For a particular
302
+ product received by a particular user, "normally used" refers to a
303
+ typical or common use of that class of product, regardless of the status
304
+ of the particular user or of the way in which the particular user
305
+ actually uses, or expects or is expected to use, the product. A product
306
+ is a consumer product regardless of whether the product has substantial
307
+ commercial, industrial or non-consumer uses, unless such uses represent
308
+ the only significant mode of use of the product.
309
+
310
+ "Installation Information" for a User Product means any methods,
311
+ procedures, authorization keys, or other information required to install
312
+ and execute modified versions of a covered work in that User Product from
313
+ a modified version of its Corresponding Source. The information must
314
+ suffice to ensure that the continued functioning of the modified object
315
+ code is in no case prevented or interfered with solely because
316
+ modification has been made.
317
+
318
+ If you convey an object code work under this section in, or with, or
319
+ specifically for use in, a User Product, and the conveying occurs as
320
+ part of a transaction in which the right of possession and use of the
321
+ User Product is transferred to the recipient in perpetuity or for a
322
+ fixed term (regardless of how the transaction is characterized), the
323
+ Corresponding Source conveyed under this section must be accompanied
324
+ by the Installation Information. But this requirement does not apply
325
+ if neither you nor any third party retains the ability to install
326
+ modified object code on the User Product (for example, the work has
327
+ been installed in ROM).
328
+
329
+ The requirement to provide Installation Information does not include a
330
+ requirement to continue to provide support service, warranty, or updates
331
+ for a work that has been modified or installed by the recipient, or for
332
+ the User Product in which it has been modified or installed. Access to a
333
+ network may be denied when the modification itself materially and
334
+ adversely affects the operation of the network or violates the rules and
335
+ protocols for communication across the network.
336
+
337
+ Corresponding Source conveyed, and Installation Information provided,
338
+ in accord with this section must be in a format that is publicly
339
+ documented (and with an implementation available to the public in
340
+ source code form), and must require no special password or key for
341
+ unpacking, reading or copying.
342
+
343
+ 7. Additional Terms.
344
+
345
+ "Additional permissions" are terms that supplement the terms of this
346
+ License by making exceptions from one or more of its conditions.
347
+ Additional permissions that are applicable to the entire Program shall
348
+ be treated as though they were included in this License, to the extent
349
+ that they are valid under applicable law. If additional permissions
350
+ apply only to part of the Program, that part may be used separately
351
+ under those permissions, but the entire Program remains governed by
352
+ this License without regard to the additional permissions.
353
+
354
+ When you convey a copy of a covered work, you may at your option
355
+ remove any additional permissions from that copy, or from any part of
356
+ it. (Additional permissions may be written to require their own
357
+ removal in certain cases when you modify the work.) You may place
358
+ additional permissions on material, added by you to a covered work,
359
+ for which you have or can give appropriate copyright permission.
360
+
361
+ Notwithstanding any other provision of this License, for material you
362
+ add to a covered work, you may (if authorized by the copyright holders of
363
+ that material) supplement the terms of this License with terms:
364
+
365
+ a) Disclaiming warranty or limiting liability differently from the
366
+ terms of sections 15 and 16 of this License; or
367
+
368
+ b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+
372
+ c) Prohibiting misrepresentation of the origin of that material, or
373
+ requiring that modified versions of such material be marked in
374
+ reasonable ways as different from the original version; or
375
+
376
+ d) Limiting the use for publicity purposes of names of licensors or
377
+ authors of the material; or
378
+
379
+ e) Declining to grant rights under trademark law for use of some
380
+ trade names, trademarks, or service marks; or
381
+
382
+ f) Requiring indemnification of licensors and authors of that
383
+ material by anyone who conveys the material (or modified versions of
384
+ it) with contractual assumptions of liability to the recipient, for
385
+ any liability that these contractual assumptions directly impose on
386
+ those licensors and authors.
387
+
388
+ All other non-permissive additional terms are considered "further
389
+ restrictions" within the meaning of section 10. If the Program as you
390
+ received it, or any part of it, contains a notice stating that it is
391
+ governed by this License along with a term that is a further
392
+ restriction, you may remove that term. If a license document contains
393
+ a further restriction but permits relicensing or conveying under this
394
+ License, you may add to a covered work material governed by the terms
395
+ of that license document, provided that the further restriction does
396
+ not survive such relicensing or conveying.
397
+
398
+ If you add terms to a covered work in accord with this section, you
399
+ must place, in the relevant source files, a statement of the
400
+ additional terms that apply to those files, or a notice indicating
401
+ where to find the applicable terms.
402
+
403
+ Additional terms, permissive or non-permissive, may be stated in the
404
+ form of a separately written license, or stated as exceptions;
405
+ the above requirements apply either way.
406
+
407
+ 8. Termination.
408
+
409
+ You may not propagate or modify a covered work except as expressly
410
+ provided under this License. Any attempt otherwise to propagate or
411
+ modify it is void, and will automatically terminate your rights under
412
+ this License (including any patent licenses granted under the third
413
+ paragraph of section 11).
414
+
415
+ However, if you cease all violation of this License, then your
416
+ license from a particular copyright holder is reinstated (a)
417
+ provisionally, unless and until the copyright holder explicitly and
418
+ finally terminates your license, and (b) permanently, if the copyright
419
+ holder fails to notify you of the violation by some reasonable means
420
+ prior to 60 days after the cessation.
421
+
422
+ Moreover, your license from a particular copyright holder is
423
+ reinstated permanently if the copyright holder notifies you of the
424
+ violation by some reasonable means, this is the first time you have
425
+ received notice of violation of this License (for any work) from that
426
+ copyright holder, and you cure the violation prior to 30 days after
427
+ your receipt of the notice.
428
+
429
+ Termination of your rights under this section does not terminate the
430
+ licenses of parties who have received copies or rights from you under
431
+ this License. If your rights have been terminated and not permanently
432
+ reinstated, you do not qualify to receive new licenses for the same
433
+ material under section 10.
434
+
435
+ 9. Acceptance Not Required for Having Copies.
436
+
437
+ You are not required to accept this License in order to receive or
438
+ run a copy of the Program. Ancillary propagation of a covered work
439
+ occurring solely as a consequence of using peer-to-peer transmission
440
+ to receive a copy likewise does not require acceptance. However,
441
+ nothing other than this License grants you permission to propagate or
442
+ modify any covered work. These actions infringe copyright if you do
443
+ not accept this License. Therefore, by modifying or propagating a
444
+ covered work, you indicate your acceptance of this License to do so.
445
+
446
+ 10. Automatic Licensing of Downstream Recipients.
447
+
448
+ Each time you convey a covered work, the recipient automatically
449
+ receives a license from the original licensors, to run, modify and
450
+ propagate that work, subject to this License. You are not responsible
451
+ for enforcing compliance by third parties with this License.
452
+
453
+ An "entity transaction" is a transaction transferring control of an
454
+ organization, or substantially all assets of one, or subdividing an
455
+ organization, or merging organizations. If propagation of a covered
456
+ work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate litigation
467
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
468
+ any patent claim is infringed by making, using, selling, offering for
469
+ sale, or importing the Program or any portion of it.
470
+
471
+ 11. Patents.
472
+
473
+ A "contributor" is a copyright holder who authorizes use under this
474
+ License of the Program or a work on which the Program is based. The
475
+ work thus licensed is called the contributor's "contributor version".
476
+
477
+ A contributor's "essential patent claims" are all patent claims
478
+ owned or controlled by the contributor, whether already acquired or
479
+ hereafter acquired, that would be infringed by some manner, permitted
480
+ by this License, of making, using, or selling its contributor version,
481
+ but do not include claims that would be infringed only as a
482
+ consequence of further modification of the contributor version. For
483
+ purposes of this definition, "control" includes the right to grant
484
+ patent sublicenses in a manner consistent with the requirements of
485
+ this License.
486
+
487
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+ patent license under the contributor's essential patent claims, to
489
+ make, use, sell, offer for sale, import and otherwise run, modify and
490
+ propagate the contents of its contributor version.
491
+
492
+ In the following three paragraphs, a "patent license" is any express
493
+ agreement or commitment, however denominated, not to enforce a patent
494
+ (such as an express permission to practice a patent or covenant not to
495
+ sue for patent infringement). To "grant" such a patent license to a
496
+ party means to make such an agreement or commitment not to enforce a
497
+ patent against the party.
498
+
499
+ If you convey a covered work, knowingly relying on a patent license,
500
+ and the Corresponding Source of the work is not available for anyone
501
+ to copy, free of charge and under the terms of this License, through a
502
+ publicly available network server or other readily accessible means,
503
+ then you must either (1) cause the Corresponding Source to be so
504
+ available, or (2) arrange to deprive yourself of the benefit of the
505
+ patent license for this particular work, or (3) arrange, in a manner
506
+ consistent with the requirements of this License, to extend the patent
507
+ license to downstream recipients. "Knowingly relying" means you have
508
+ actual knowledge that, but for the patent license, your conveying the
509
+ covered work in a country, or your recipient's use of the covered work
510
+ in a country, would infringe one or more identifiable patents in that
511
+ country that you have reason to believe are valid.
512
+
513
+ If, pursuant to or in connection with a single transaction or
514
+ arrangement, you convey, or propagate by procuring conveyance of, a
515
+ covered work, and grant a patent license to some of the parties
516
+ receiving the covered work authorizing them to use, propagate, modify
517
+ or convey a specific copy of the covered work, then the patent license
518
+ you grant is automatically extended to all recipients of the covered
519
+ work and works based on it.
520
+
521
+ A patent license is "discriminatory" if it does not include within
522
+ the scope of its coverage, prohibits the exercise of, or is
523
+ conditioned on the non-exercise of one or more of the rights that are
524
+ specifically granted under this License. You may not convey a covered
525
+ work if you are a party to an arrangement with a third party that is
526
+ in the business of distributing software, under which you make payment
527
+ to the third party based on the extent of your activity of conveying
528
+ the work, and under which the third party grants, to any of the
529
+ parties who would receive the covered work from you, a discriminatory
530
+ patent license (a) in connection with copies of the covered work
531
+ conveyed by you (or copies made from those copies), or (b) primarily
532
+ for and in connection with specific products or compilations that
533
+ contain the covered work, unless you entered into that arrangement,
534
+ or that patent license was granted, prior to 28 March 2007.
535
+
536
+ Nothing in this License shall be construed as excluding or limiting
537
+ any implied license or other defenses to infringement that may
538
+ otherwise be available to you under applicable patent law.
539
+
540
+ 12. No Surrender of Others' Freedom.
541
+
542
+ If conditions are imposed on you (whether by court order, agreement or
543
+ otherwise) that contradict the conditions of this License, they do not
544
+ excuse you from the conditions of this License. If you cannot convey a
545
+ covered work so as to satisfy simultaneously your obligations under this
546
+ License and any other pertinent obligations, then as a consequence you may
547
+ not convey it at all. For example, if you agree to terms that obligate you
548
+ to collect a royalty for further conveying from those to whom you convey
549
+ the Program, the only way you could satisfy both those terms and this
550
+ License would be to refrain entirely from conveying the Program.
551
+
552
+ 13. Use with the GNU Affero General Public License.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU Affero General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the special requirements of the GNU Affero General Public License,
560
+ section 13, concerning interaction through a network will apply to the
561
+ combination as such.
562
+
563
+ 14. Revised Versions of this License.
564
+
565
+ The Free Software Foundation may publish revised and/or new versions of
566
+ the GNU General Public License from time to time. Such new versions will
567
+ be similar in spirit to the present version, but may differ in detail to
568
+ address new problems or concerns.
569
+
570
+ Each version is given a distinguishing version number. If the
571
+ Program specifies that a certain numbered version of the GNU General
572
+ Public License "or any later version" applies to it, you have the
573
+ option of following the terms and conditions either of that numbered
574
+ version or of any later version published by the Free Software
575
+ Foundation. If the Program does not specify a version number of the
576
+ GNU General Public License, you may choose any version ever published
577
+ by the Free Software Foundation.
578
+
579
+ If the Program specifies that a proxy can decide which future
580
+ versions of the GNU General Public License can be used, that proxy's
581
+ public statement of acceptance of a version permanently authorizes you
582
+ to choose that version for the Program.
583
+
584
+ Later license versions may give you additional or different
585
+ permissions. However, no additional obligations are imposed on any
586
+ author or copyright holder as a result of your choosing to follow a
587
+ later version.
588
+
589
+ 15. Disclaimer of Warranty.
590
+
591
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+ 16. Limitation of Liability.
601
+
602
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+ SUCH DAMAGES.
611
+
612
+ 17. Interpretation of Sections 15 and 16.
613
+
614
+ If the disclaimer of warranty and limitation of liability provided
615
+ above cannot be given local legal effect according to their terms,
616
+ reviewing courts shall apply local law that most closely approximates
617
+ an absolute waiver of all civil liability in connection with the
618
+ Program, unless a warranty or assumption of liability accompanies a
619
+ copy of the Program in return for a fee.
620
+
621
+ END OF TERMS AND CONDITIONS
622
+
623
+ How to Apply These Terms to Your New Programs
624
+
625
+ If you develop a new program, and you want it to be of the greatest
626
+ possible use to the public, the best way to achieve this is to make it
627
+ free software which everyone can redistribute and change under these terms.
628
+
629
+ To do so, attach the following notices to the program. It is safest
630
+ to attach them to the start of each source file to most effectively
631
+ state the exclusion of warranty; and each file should have at least
632
+ the "copyright" line and a pointer to where the full notice is found.
633
+
634
+ <one line to give the program's name and a brief idea of what it does.>
635
+ Copyright (C) <year> <name of author>
636
+
637
+ This program is free software: you can redistribute it and/or modify
638
+ it under the terms of the GNU General Public License as published by
639
+ the Free Software Foundation, either version 3 of the License, or
640
+ (at your option) any later version.
641
+
642
+ This program is distributed in the hope that it will be useful,
643
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
+ GNU General Public License for more details.
646
+
647
+ You should have received a copy of the GNU General Public License
648
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
649
+
650
+ Also add information on how to contact you by electronic and paper mail.
651
+
652
+ If the program does terminal interaction, make it output a short
653
+ notice like this when it starts in an interactive mode:
654
+
655
+ <program> Copyright (C) <year> <name of author>
656
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+ This is free software, and you are welcome to redistribute it
658
+ under certain conditions; type `show c' for details.
659
+
660
+ The hypothetical commands `show w' and `show c' should show the appropriate
661
+ parts of the General Public License. Of course, your program's commands
662
+ might be different; for a GUI interface, you would use an "about box".
663
+
664
+ You should also get your employer (if you work as a programmer) or school,
665
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+ For more information on this, and how to apply and follow the GNU GPL, see
667
+ <http://www.gnu.org/licenses/>.
668
+
669
+ The GNU General Public License does not permit incorporating your program
670
+ into proprietary programs. If your program is a subroutine library, you
671
+ may consider it more useful to permit linking proprietary applications with
672
+ the library. If this is what you want to do, use the GNU Lesser General
673
+ Public License instead of this License. But first, please read
674
+ <http://www.gnu.org/philosophy/why-not-lgpl.html>.
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Speed Booster Pack ===
2
  Contributors: machothemes, silkalns
3
- Tags: speed, optimization, performance, scripts to the footer, google libraries, font awesome cdn, defer parsing of javascript, remove query strings, gtmetrix, google pageSpeed, yslow, compression, render-blocking css
4
  Requires at least: 3.6
5
  Tested up to: 5.0
6
  Requires PHP: 5.6
7
- Stable tag: 3.7.5
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -12,9 +12,7 @@ A light, frequently updated and easy to use plugin to make your site load faster
12
 
13
  == Description ==
14
 
15
- A short video about how Speed Booster pack can help actually increase a website's score in Google PageSpeed Insights:
16
-
17
- https://www.youtube.com/watch?v=u0G6pk2mX4M
18
 
19
  **Speed Booster Pack is a lightweight, frequently updated, easy to use and well supported plugin which allows you to improve your website's loading speed.**
20
 
@@ -62,7 +60,7 @@ Future Development:
62
  * [Simple Author Box](http://wordpress.org/plugins/simple-author-box/) - A simple but cool author box with social icons.
63
 
64
  **About us:**
65
- We are a young team of WordPress aficionados who love building WordPress plugins & <a href="https://www.machothemes.com/" target="_blank" title="Premium WordPress themes">Premium WordPress themes</a> over on our theme shop. We’re also blogging and wish to help our users find the <a href="https://www.machothemes.com/blog/best-cheap-wordpress-hosting/" target="_blank" title="Best Cheap WordPress Hosting">Best Cheap WordPress Hosting</a> available on the market. Check out our blog.
66
 
67
 
68
  == Installation ==
@@ -78,6 +76,21 @@ We are a young team of WordPress aficionados who love building WordPress plugins
78
 
79
  == Changelog ==
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  = 3.7.5 =
82
  * removed uninstall feedback
83
 
1
  === Speed Booster Pack ===
2
  Contributors: machothemes, silkalns
3
+ Tags: speed, optimization, performance, scripts to the footer, google libraries, font awesome cdn, defer parsing of javascript, remove query strings, gtmetrix, google pageSpeed, yslow, compression
4
  Requires at least: 3.6
5
  Tested up to: 5.0
6
  Requires PHP: 5.6
7
+ Stable tag: 3.7.6
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ **Speed Booster Pack** is a standalone plugin built, maintained & operated by the friendly folks over at [MachoThemes](https://www.machothemes.com/)
 
 
16
 
17
  **Speed Booster Pack is a lightweight, frequently updated, easy to use and well supported plugin which allows you to improve your website's loading speed.**
18
 
60
  * [Simple Author Box](http://wordpress.org/plugins/simple-author-box/) - A simple but cool author box with social icons.
61
 
62
  **About us:**
63
+ We are a young team of WordPress aficionados who love building WordPress plugins & <a href="https://www.machothemes.com/" target="_blank" title="Premium WordPress themes">Premium WordPress themes</a> over on our theme shop. We’re also blogging and wish to help our users find the <a href="https://www.machothemes.com/blog/cheapest-wordpress-hosting/" target="_blank" title="Best Cheap WordPress Hosting">Best Cheap WordPress Hosting</a> available on the market. Check out our blog.
64
 
65
 
66
  == Installation ==
76
 
77
  == Changelog ==
78
 
79
+ = 3.7.6 =
80
+ * Improved admin UI
81
+ * Added "Disable Self Pingbacks" option
82
+ * Added "Disable Dashicons" option
83
+ * Added "Disable Google Maps" option
84
+ * Added "Disable Heartbeat" option
85
+ * Added "Heartbeat frequency" option
86
+ * Added "Autosave interval" option
87
+ * Added "Remove REST API Links" option
88
+ * Added "Limit Post Revision" option
89
+ * Added CDN options
90
+ * Added Google Analytics options
91
+ * Removed "Remove RSD(Really Simple Discovery) Link" option
92
+ * Removed "Image compression level" option
93
+
94
  = 3.7.5 =
95
  * removed uninstall feedback
96
 
speed-booster-pack.php CHANGED
@@ -1,42 +1,45 @@
1
  <?php
2
  /**
3
- * Plugin Name: Speed Booster Pack
4
- * Plugin URI: http://wordpress.org/plugins/speed-booster-pack/
5
- * Description: Speed Booster Pack allows you to improve your page loading speed and get a higher score on the major
6
- * speed testing services such as <a href="http://gtmetrix.com/">GTmetrix</a>, <a
7
- * href="http://developers.google.com/speed/pagespeed/insights/">Google PageSpeed</a> or other speed testing tools.
8
- * Version: 3.7.5
9
- * Author: Macho Themes
10
- * Author URI: https://www.machothemes.com/
11
- * License: GPLv3
12
- * Text Domain : sb-pack
13
- * Domain Path: /lang
14
- */
15
-
16
- /* Copyright 2018 Macho Themes (email : support [at] machothemes [dot] com)
17
-
18
- THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
19
- IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
20
- THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
21
- (AT YOUR OPTION) ANY LATER VERSION.
22
-
23
- THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
24
- BUT WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
25
- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE
26
- GNU GENERAL PUBLIC LICENSE FOR MORE DETAILS.
27
-
28
- YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
29
- ALONG WITH THIS PROGRAM; IF NOT, WRITE TO THE FREE SOFTWARE
30
- FOUNDATION, INC., 51 FRANKLIN ST, FIFTH FLOOR, BOSTON, MA 02110-1301 USA
 
 
 
 
 
 
 
 
 
 
31
  */
32
 
33
-
34
- //@todo: rework the CSS Async functionality
35
- //@todo: fix lazyLoad with WooCommerce <- it actually works flawlessly, it doesn't seem to work with AO and/or Cloudflare hosted CSS
36
- //@todo: add system info menu page
37
- //@todo: automatically collapse accordeons on "advanced" tab
38
-
39
-
40
  /*----------------------------------------------------------------------------------------------------------
41
  Global Variables
42
  -----------------------------------------------------------------------------------------------------------*/
@@ -47,17 +50,21 @@
47
  * @since 3.7
48
  */
49
  $sbp_defaults = array(
50
- 'remove_emojis' => 1, // remove emoji scripts
51
- 'remove_wsl' => 1, // remove WSL link in header
52
- 'remove_adjacent' => 1, // remove post adjacent links
53
- 'wml_link' => 1, // remove Windows Manifest Live link
54
- 'rsd_link' => 1, // remove really simple discovery
55
- 'wp_generator' => 1, // remove WP version
56
- 'remove_all_feeds' => 1, // remove all WP feeds
57
- 'disable_xmlrpc' => 1, // disable XML-RPC pingbacks
58
- 'font_awesome' => 1, // remove extra font awesome styles
59
- 'query_strings' => 1, // remove query strings
60
- 'use_google_libs' => 1, // serve JS assets (when possible) from Google CDN
 
 
 
 
61
  );
62
 
63
  $sbp_options = get_option( 'sbp_settings', (array) $sbp_defaults ); // retrieve the plugin settings from the options table
@@ -66,8 +73,9 @@ $sbp_options = get_option( 'sbp_settings', (array) $sbp_defaults ); // retrie
66
  Define some useful plugin constants
67
  -----------------------------------------------------------------------------------------------------------*/
68
 
69
- define( 'SPEED_BOOSTER_PACK_PATH', plugin_dir_path( __FILE__ ) ); // Defining plugin dir path
70
- define( 'SPEED_BOOSTER_PACK_VERSION', '3.7.5' ); // Defining plugin version
 
71
  define( 'SBP_FOOTER', 10 ); // Defining css position
72
  define( 'SBP_FOOTER_LAST', 99999 ); // Defining css last position
73
 
@@ -120,6 +128,7 @@ if ( ! class_exists( 'Speed_Booster_Pack' ) ) {
120
  $this->path = plugin_basename( __FILE__ );
121
  add_filter( "plugin_action_links_$this->path", array( $this, 'sbp_settings_link' ) );
122
 
 
123
  } // END public function __construct
124
 
125
 
@@ -134,7 +143,7 @@ if ( ! class_exists( 'Speed_Booster_Pack' ) ) {
134
  -----------------------------------------------------------------------------------------------------------*/
135
 
136
  function sbp_load_translation() {
137
- load_plugin_textdomain( 'sb-pack', false, SPEED_BOOSTER_PACK_PATH . '/lang/' );
138
  }
139
 
140
 
@@ -276,4 +285,18 @@ if ( class_exists( 'Speed_Booster_Pack' ) ) {
276
 
277
  } // End if (!class_exists("Speed_Booster_Pack")) (2)
278
 
279
- // make sure to update the path to where you cloned the projects to!
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
  /**
3
+ * Plugin Name: Speed Booster Pack
4
+ * Plugin URI: http://wordpress.org/plugins/speed-booster-pack/
5
+ * Description: Speed Booster Pack allows you to improve your page loading speed and get a higher score on the major speed testing services such as <a href="http://gtmetrix.com/">GTmetrix</a>, <a href="http://developers.google.com/speed/pagespeed/insights/">Google PageSpeed</a> or other speed testing tools.
6
+ * Author: MachoThemes
7
+ * Version: 3.7.6
8
+ * Author URI: https://www.machothemes.com/
9
+ * License: GPLv3 or later
10
+ * License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
+ * Requires PHP: 5.6
12
+ * Text Domain : speed-booster-pack
13
+ * Domain Path: /lang
14
+ *
15
+ * Copyright 2015-2017 Tiguan office@tiguandesign.com
16
+ * Copyright 05/05/2017 - 10/04/2017 ShortPixel alex@shortpixel.com
17
+ * Copyright 2017-2019 MachoThemes office@machothemes.com
18
+ *
19
+ * Original Plugin URI: https://tiguan.com/speed-booster-pack/
20
+ * Original Author URI: https://tiguan.com
21
+ * Original Author: https://profiles.wordpress.org/tiguan/
22
+ *
23
+ * NOTE:
24
+ * Tiguan transferred ownership rights on: 05/05/2017 09:39:05 AM when ownership was handed over to ShortPixel
25
+ * ShortPixel transffered ownership rights on: 10/04/2017 09:17:55 AM when ownership was handed over to MachoThemes
26
+ * The MachoThemes ownership period started on: 10/04/2017 09:17:56 AM
27
+ * SVN commit proof of ownership transferral: https://plugins.trac.wordpress.org/changeset/1740755/speed-booster-pack/trunk/readme.txt
28
+ *
29
+ * This program is free software; you can redistribute it and/or modify
30
+ * it under the terms of the GNU General Public License, version 3, as
31
+ * published by the Free Software Foundation.
32
+ *
33
+ * This program is distributed in the hope that it will be useful,
34
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
35
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36
+ * GNU General Public License for more details.
37
+ *
38
+ * You should have received a copy of the GNU General Public License
39
+ * along with this program; if not, write to the Free software
40
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
41
  */
42
 
 
 
 
 
 
 
 
43
  /*----------------------------------------------------------------------------------------------------------
44
  Global Variables
45
  -----------------------------------------------------------------------------------------------------------*/
50
  * @since 3.7
51
  */
52
  $sbp_defaults = array(
53
+ 'remove_emojis' => 1, // remove emoji scripts
54
+ 'remove_wsl' => 1, // remove WSL link in header
55
+ 'remove_adjacent' => 1, // remove post adjacent links
56
+ 'wml_link' => 1, // remove Windows Manifest Live link
57
+ 'rsd_link' => 1, // remove really simple discovery
58
+ 'wp_generator' => 1, // remove WP version
59
+ 'remove_all_feeds' => 1, // remove all WP feeds
60
+ 'disable_xmlrpc' => 1, // disable XML-RPC pingbacks
61
+ 'font_awesome' => 1, // remove extra font awesome styles
62
+ 'query_strings' => 1, // remove query strings
63
+ 'use_google_libs' => 0, // serve JS assets (when possible) from Google CDN
64
+ 'heartbeat_frequency' => 15,
65
+ 'autosave_interval' => 1,
66
+ 'limit_post_revisions' => 30,
67
+ 'sbp_tracking_position' => 'header'
68
  );
69
 
70
  $sbp_options = get_option( 'sbp_settings', (array) $sbp_defaults ); // retrieve the plugin settings from the options table
73
  Define some useful plugin constants
74
  -----------------------------------------------------------------------------------------------------------*/
75
 
76
+ define( 'SPEED_BOOSTER_PACK_PATH', plugin_dir_path( __FILE__ ) );
77
+ define( 'SPEED_BOOSTER_PACK_URL', plugin_dir_url( __FILE__ ) );// Defining plugin dir path
78
+ define( 'SPEED_BOOSTER_PACK_VERSION', '3.7.6' ); // Defining plugin version
79
  define( 'SBP_FOOTER', 10 ); // Defining css position
80
  define( 'SBP_FOOTER_LAST', 99999 ); // Defining css last position
81
 
128
  $this->path = plugin_basename( __FILE__ );
129
  add_filter( "plugin_action_links_$this->path", array( $this, 'sbp_settings_link' ) );
130
 
131
+
132
  } // END public function __construct
133
 
134
 
143
  -----------------------------------------------------------------------------------------------------------*/
144
 
145
  function sbp_load_translation() {
146
+ load_plugin_textdomain( 'speed-booster-pack', false, SPEED_BOOSTER_PACK_PATH . '/lang/' );
147
  }
148
 
149
 
285
 
286
  } // End if (!class_exists("Speed_Booster_Pack")) (2)
287
 
288
+ // make sure to update the path to where you cloned the projects to!
289
+
290
+ //review function
291
+ function sb_pack_check_for_review() {
292
+ if ( ! is_admin() ) {
293
+ return;
294
+ }
295
+ require_once SPEED_BOOSTER_PACK_PATH . 'inc/class-sb-pack-review.php';
296
+
297
+ SB_Pack_Review::get_instance( array(
298
+ 'slug' => 'speed-booster-pack',
299
+ ) );
300
+ }
301
+
302
+ sb_pack_check_for_review();