Version Description
| January 26th, 2022 = * Tested with WP 5.9 - Fix: WP 5.9 welcome banner displayed in Optimized Fonts Manager section.
Download this release
Release Info
Developer | DaanvandenBergh |
Plugin | OMGF | GDPR/DSVGO Compliant, Faster Google Fonts. Easy. |
Version | 4.5.15 |
Comparing to | |
See all releases |
Code changes from version 4.5.13 to 4.5.15
- assets/css/omgf-admin.css +37 -1
- assets/css/omgf-admin.min.css +1 -1
- host-webfonts-local.php +1 -1
- includes/admin/class-settings.php +0 -2
- includes/admin/settings/class-optimize.php +6 -4
- readme.txt +9 -2
assets/css/omgf-admin.css
CHANGED
@@ -25,25 +25,30 @@
|
|
25 |
white-space: nowrap;
|
26 |
padding: 1px 10px !important;
|
27 |
}
|
|
|
28 |
.omgf .button-cancel:hover {
|
29 |
cursor: pointer;
|
30 |
background: #d54e21;
|
31 |
color: #fff;
|
32 |
border-color: #d54e21;
|
33 |
}
|
|
|
34 |
/**
|
35 |
* Navigation
|
36 |
*/
|
37 |
.omgf-nav {
|
38 |
padding: 1em 0 1.5em;
|
39 |
}
|
|
|
40 |
.omgf-nav a {
|
41 |
cursor: pointer;
|
42 |
}
|
|
|
43 |
.omgf-nav .dashicons-before:before {
|
44 |
margin-right: 0.25em;
|
45 |
line-height: 1.15em;
|
46 |
}
|
|
|
47 |
.omgf-optimize-fonts-container {
|
48 |
text-align: center;
|
49 |
padding: 25px 50px;
|
@@ -52,6 +57,7 @@
|
|
52 |
overflow: visible;
|
53 |
position: relative;
|
54 |
}
|
|
|
55 |
.omgf-optimize-fonts-container .option-title {
|
56 |
position: absolute;
|
57 |
left: -220px;
|
@@ -60,22 +66,27 @@
|
|
60 |
font-size: 14px;
|
61 |
color: #1d2327;
|
62 |
}
|
|
|
63 |
.omgf-optimize-fonts-container h3 {
|
64 |
font-size: 1.3em;
|
65 |
margin-top: 0;
|
66 |
}
|
|
|
67 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage {
|
68 |
text-align: left;
|
69 |
}
|
|
|
70 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table {
|
71 |
width: 100%;
|
72 |
border-collapse: collapse;
|
73 |
}
|
|
|
74 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table .tooltip {
|
75 |
position: relative;
|
76 |
font-size: 16px;
|
77 |
line-height: 25px;
|
78 |
}
|
|
|
79 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table .tooltip .tooltip-text {
|
80 |
visibility: hidden;
|
81 |
position: absolute;
|
@@ -92,39 +103,50 @@
|
|
92 |
margin-left: -125px;
|
93 |
border-radius: 3px;
|
94 |
}
|
|
|
95 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table .tooltip .tooltip-text .illustration {
|
96 |
margin-top: 10px;
|
97 |
}
|
|
|
98 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table .tooltip:hover .tooltip-text {
|
99 |
visibility: visible;
|
100 |
}
|
|
|
101 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table thead th {
|
102 |
width: 13%;
|
103 |
}
|
|
|
104 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody {
|
105 |
border: 1px solid #ccd0d4;
|
106 |
}
|
|
|
107 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody th {
|
108 |
padding: 5px 0 0 10px;
|
109 |
width: 40%;
|
110 |
}
|
|
|
111 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody td {
|
112 |
padding-bottom: 5px;
|
113 |
width: 13%;
|
114 |
}
|
|
|
115 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody td .unload-mass-action {
|
116 |
font-size: 0.9em;
|
117 |
}
|
|
|
118 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody td .family {
|
119 |
padding: 0 10px 0;
|
120 |
font-weight: 600;
|
121 |
}
|
|
|
122 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody tr:last-child td {
|
123 |
padding-bottom: 10px;
|
124 |
}
|
|
|
125 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-pros {
|
126 |
margin-right: 10px;
|
127 |
}
|
|
|
128 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-pros,
|
129 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-cons {
|
130 |
text-align: left;
|
@@ -132,36 +154,44 @@
|
|
132 |
display: inline-block;
|
133 |
vertical-align: top;
|
134 |
}
|
|
|
135 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-pros span:before,
|
136 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-cons span:before {
|
137 |
vertical-align: -4px;
|
138 |
}
|
|
|
139 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description label {
|
140 |
font-size: 18px;
|
141 |
font-weight: bold;
|
142 |
}
|
|
|
143 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description #omgf_manual_optimize_url {
|
144 |
font-size: 18px;
|
145 |
padding: 0 15px;
|
146 |
margin-left: 10px;
|
147 |
}
|
|
|
148 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-tooltip {
|
149 |
padding: 0 15px 5px;
|
150 |
}
|
|
|
151 |
.omgf-optimize-fonts-container p,
|
152 |
.omgf-optimize-fonts-container ul {
|
153 |
text-align: justify;
|
154 |
}
|
|
|
155 |
@media only screen and (max-width: 782px) {
|
156 |
.omgf-optimize-fonts-container {
|
157 |
margin: 20px 0;
|
158 |
}
|
|
|
159 |
.omgf-optimize-fonts-container .option-title {
|
160 |
position: relative;
|
161 |
left: initial;
|
162 |
top: initial;
|
163 |
}
|
164 |
}
|
|
|
165 |
/**
|
166 |
* Loader
|
167 |
*/
|
@@ -173,6 +203,7 @@
|
|
173 |
top: 0;
|
174 |
text-align: center;
|
175 |
}
|
|
|
176 |
.omgf-loading .spinner {
|
177 |
top: 50%;
|
178 |
left: 50%;
|
@@ -180,19 +211,24 @@
|
|
180 |
-ms-transform: translate(0, -70%);
|
181 |
transform: translate(0, -70%);
|
182 |
}
|
|
|
183 |
/**
|
184 |
* Welcome Block
|
185 |
*/
|
186 |
#footer-thankyou a {
|
187 |
vertical-align: -0.65em;
|
188 |
}
|
|
|
189 |
#footer-thankyou .dashicons.ffwp-heart {
|
190 |
vertical-align: middle;
|
191 |
}
|
|
|
192 |
#footer-thankyou .dashicons.ffwp-heart:before {
|
193 |
color: #FF4136;
|
194 |
}
|
|
|
195 |
#footer-thankyou .signature-image {
|
196 |
width: 96px;
|
197 |
}
|
198 |
-
|
|
25 |
white-space: nowrap;
|
26 |
padding: 1px 10px !important;
|
27 |
}
|
28 |
+
|
29 |
.omgf .button-cancel:hover {
|
30 |
cursor: pointer;
|
31 |
background: #d54e21;
|
32 |
color: #fff;
|
33 |
border-color: #d54e21;
|
34 |
}
|
35 |
+
|
36 |
/**
|
37 |
* Navigation
|
38 |
*/
|
39 |
.omgf-nav {
|
40 |
padding: 1em 0 1.5em;
|
41 |
}
|
42 |
+
|
43 |
.omgf-nav a {
|
44 |
cursor: pointer;
|
45 |
}
|
46 |
+
|
47 |
.omgf-nav .dashicons-before:before {
|
48 |
margin-right: 0.25em;
|
49 |
line-height: 1.15em;
|
50 |
}
|
51 |
+
|
52 |
.omgf-optimize-fonts-container {
|
53 |
text-align: center;
|
54 |
padding: 25px 50px;
|
57 |
overflow: visible;
|
58 |
position: relative;
|
59 |
}
|
60 |
+
|
61 |
.omgf-optimize-fonts-container .option-title {
|
62 |
position: absolute;
|
63 |
left: -220px;
|
66 |
font-size: 14px;
|
67 |
color: #1d2327;
|
68 |
}
|
69 |
+
|
70 |
.omgf-optimize-fonts-container h3 {
|
71 |
font-size: 1.3em;
|
72 |
margin-top: 0;
|
73 |
}
|
74 |
+
|
75 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage {
|
76 |
text-align: left;
|
77 |
}
|
78 |
+
|
79 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table {
|
80 |
width: 100%;
|
81 |
border-collapse: collapse;
|
82 |
}
|
83 |
+
|
84 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table .tooltip {
|
85 |
position: relative;
|
86 |
font-size: 16px;
|
87 |
line-height: 25px;
|
88 |
}
|
89 |
+
|
90 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table .tooltip .tooltip-text {
|
91 |
visibility: hidden;
|
92 |
position: absolute;
|
103 |
margin-left: -125px;
|
104 |
border-radius: 3px;
|
105 |
}
|
106 |
+
|
107 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table .tooltip .tooltip-text .illustration {
|
108 |
margin-top: 10px;
|
109 |
}
|
110 |
+
|
111 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table .tooltip:hover .tooltip-text {
|
112 |
visibility: visible;
|
113 |
}
|
114 |
+
|
115 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table thead th {
|
116 |
width: 13%;
|
117 |
}
|
118 |
+
|
119 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody {
|
120 |
border: 1px solid #ccd0d4;
|
121 |
}
|
122 |
+
|
123 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody th {
|
124 |
padding: 5px 0 0 10px;
|
125 |
width: 40%;
|
126 |
}
|
127 |
+
|
128 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody td {
|
129 |
padding-bottom: 5px;
|
130 |
width: 13%;
|
131 |
}
|
132 |
+
|
133 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody td .unload-mass-action {
|
134 |
font-size: 0.9em;
|
135 |
}
|
136 |
+
|
137 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody td .family {
|
138 |
padding: 0 10px 0;
|
139 |
font-weight: 600;
|
140 |
}
|
141 |
+
|
142 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody tr:last-child td {
|
143 |
padding-bottom: 10px;
|
144 |
}
|
145 |
+
|
146 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-pros {
|
147 |
margin-right: 10px;
|
148 |
}
|
149 |
+
|
150 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-pros,
|
151 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-cons {
|
152 |
text-align: left;
|
154 |
display: inline-block;
|
155 |
vertical-align: top;
|
156 |
}
|
157 |
+
|
158 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-pros span:before,
|
159 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-cons span:before {
|
160 |
vertical-align: -4px;
|
161 |
}
|
162 |
+
|
163 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description label {
|
164 |
font-size: 18px;
|
165 |
font-weight: bold;
|
166 |
}
|
167 |
+
|
168 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-description #omgf_manual_optimize_url {
|
169 |
font-size: 18px;
|
170 |
padding: 0 15px;
|
171 |
margin-left: 10px;
|
172 |
}
|
173 |
+
|
174 |
.omgf-optimize-fonts-container .omgf-optimize-fonts-tooltip {
|
175 |
padding: 0 15px 5px;
|
176 |
}
|
177 |
+
|
178 |
.omgf-optimize-fonts-container p,
|
179 |
.omgf-optimize-fonts-container ul {
|
180 |
text-align: justify;
|
181 |
}
|
182 |
+
|
183 |
@media only screen and (max-width: 782px) {
|
184 |
.omgf-optimize-fonts-container {
|
185 |
margin: 20px 0;
|
186 |
}
|
187 |
+
|
188 |
.omgf-optimize-fonts-container .option-title {
|
189 |
position: relative;
|
190 |
left: initial;
|
191 |
top: initial;
|
192 |
}
|
193 |
}
|
194 |
+
|
195 |
/**
|
196 |
* Loader
|
197 |
*/
|
203 |
top: 0;
|
204 |
text-align: center;
|
205 |
}
|
206 |
+
|
207 |
.omgf-loading .spinner {
|
208 |
top: 50%;
|
209 |
left: 50%;
|
211 |
-ms-transform: translate(0, -70%);
|
212 |
transform: translate(0, -70%);
|
213 |
}
|
214 |
+
|
215 |
/**
|
216 |
* Welcome Block
|
217 |
*/
|
218 |
#footer-thankyou a {
|
219 |
vertical-align: -0.65em;
|
220 |
}
|
221 |
+
|
222 |
#footer-thankyou .dashicons.ffwp-heart {
|
223 |
vertical-align: middle;
|
224 |
}
|
225 |
+
|
226 |
#footer-thankyou .dashicons.ffwp-heart:before {
|
227 |
color: #FF4136;
|
228 |
}
|
229 |
+
|
230 |
#footer-thankyou .signature-image {
|
231 |
width: 96px;
|
232 |
}
|
233 |
+
|
234 |
+
/*# sourceMappingURL=/wp-content/plugins/host-webfonts-local/assets/css/omgf-admin.css.map */
|
assets/css/omgf-admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.omgf .button-cancel{color:#a00;text-decoration:none;border-color:transparent;box-shadow:none;background:0 0;border-radius:3px;white-space:nowrap;padding:1px 10px!important}.omgf .button-cancel:hover{cursor:pointer;background:#d54e21;color:#fff;border-color:#d54e21}.omgf-nav{padding:1em 0 1.5em}.omgf-nav a{cursor:pointer}.omgf-nav .dashicons-before:before{margin-right:.25em;line-height:1.15em}.
|
1 |
+
.omgf .button-cancel{color:#a00;text-decoration:none;border-color:transparent;box-shadow:none;background:0 0;border-radius:3px;white-space:nowrap;padding:1px 10px!important}.omgf .button-cancel:hover{cursor:pointer;background:#d54e21;color:#fff;border-color:#d54e21}.omgf-nav{padding:1em 0 1.5em}.omgf-nav a{cursor:pointer}.omgf-nav .dashicons-before:before{margin-right:.25em;line-height:1.15em}.omgf-optimize-fonts-container{text-align:center;padding:25px 50px;max-width:1024px;margin:20px auto 0 220px;overflow:visible;position:relative}.omgf-optimize-fonts-container .option-title{position:absolute;left:-220px;top:0;font-weight:600;font-size:14px;color:#1d2327}.omgf-optimize-fonts-container h3{font-size:1.3em;margin-top:0}.omgf-optimize-fonts-container .omgf-optimize-fonts-manage{text-align:left}.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table{width:100%;border-collapse:collapse}.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table .tooltip{position:relative;font-size:16px;line-height:25px}.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table .tooltip .tooltip-text{visibility:hidden;position:absolute;top:100%;left:100%;z-index:10000;background-color:rgba(0,0,0,.75);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:.8em;color:#fff;line-height:1.5;width:250px;padding:10px;margin-left:-125px;border-radius:3px}.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table .tooltip .tooltip-text .illustration{margin-top:10px}.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table .tooltip:hover .tooltip-text{visibility:visible}.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table thead th{width:13%}.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody{border:1px solid #ccd0d4}.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody th{padding:5px 0 0 10px;width:40%}.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody td{padding-bottom:5px;width:13%}.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody td .unload-mass-action{font-size:.9em}.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody td .family{padding:0 10px 0;font-weight:600}.omgf-optimize-fonts-container .omgf-optimize-fonts-manage table tbody tr:last-child td{padding-bottom:10px}.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-pros{margin-right:10px}.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-cons,.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-pros{text-align:left;width:48%;display:inline-block;vertical-align:top}.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-cons span:before,.omgf-optimize-fonts-container .omgf-optimize-fonts-description .omgf-optimize-fonts-pros span:before{vertical-align:-4px}.omgf-optimize-fonts-container .omgf-optimize-fonts-description label{font-size:18px;font-weight:700}.omgf-optimize-fonts-container .omgf-optimize-fonts-description #omgf_manual_optimize_url{font-size:18px;padding:0 15px;margin-left:10px}.omgf-optimize-fonts-container .omgf-optimize-fonts-tooltip{padding:0 15px 5px}.omgf-optimize-fonts-container p,.omgf-optimize-fonts-container ul{text-align:justify}@media only screen and (max-width:782px){.omgf-optimize-fonts-container{margin:20px 0}.omgf-optimize-fonts-container .option-title{position:relative;left:initial;top:initial}}.omgf-loading{position:fixed;background-color:rgba(255,255,255,.6);width:100%;height:100%;top:0;text-align:center}.omgf-loading .spinner{top:50%;left:50%;position:absolute;-ms-transform:translate(0,-70%);transform:translate(0,-70%)}#footer-thankyou a{vertical-align:-.65em}#footer-thankyou .dashicons.ffwp-heart{vertical-align:middle}#footer-thankyou .dashicons.ffwp-heart:before{color:#ff4136}#footer-thankyou .signature-image{width:96px}
|
host-webfonts-local.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: OMGF
|
5 |
* Plugin URI: https://daan.dev/wordpress-plugins/host-google-fonts-locally
|
6 |
* Description: Minimize DNS requests, leverage browser cache and speed up WordPress by saving Google Fonts to your server and removing external Google Fonts requests.
|
7 |
-
* Version: 4.5.
|
8 |
* Author: Daan from FFW.Press
|
9 |
* Author URI: https://ffw.press
|
10 |
* License: GPL2v2 or later
|
4 |
* Plugin Name: OMGF
|
5 |
* Plugin URI: https://daan.dev/wordpress-plugins/host-google-fonts-locally
|
6 |
* Description: Minimize DNS requests, leverage browser cache and speed up WordPress by saving Google Fonts to your server and removing external Google Fonts requests.
|
7 |
+
* Version: 4.5.15
|
8 |
* Author: Daan from FFW.Press
|
9 |
* Author URI: https://ffw.press
|
10 |
* License: GPL2v2 or later
|
includes/admin/class-settings.php
CHANGED
@@ -148,9 +148,7 @@ class OMGF_Admin_Settings extends OMGF_Admin
|
|
148 |
/**
|
149 |
* Advanced Settings
|
150 |
*/
|
151 |
-
const OMGF_ADV_SETTING_AMP_HANDLING = 'omgf_amp_handling';
|
152 |
const OMGF_ADV_SETTING_CACHE_PATH = 'omgf_cache_dir';
|
153 |
-
const OMGF_ADV_SETTING_SOURCE_URL = 'omgf_fonts_url';
|
154 |
const OMGF_ADV_SETTING_UNINSTALL = 'omgf_uninstall';
|
155 |
|
156 |
/**
|
148 |
/**
|
149 |
* Advanced Settings
|
150 |
*/
|
|
|
151 |
const OMGF_ADV_SETTING_CACHE_PATH = 'omgf_cache_dir';
|
|
|
152 |
const OMGF_ADV_SETTING_UNINSTALL = 'omgf_uninstall';
|
153 |
|
154 |
/**
|
includes/admin/settings/class-optimize.php
CHANGED
@@ -21,7 +21,7 @@ class OMGF_Admin_Settings_Optimize extends OMGF_Admin_Settings_Builder
|
|
21 |
const FFW_PRESS_OMGF_AF_URL = 'https://ffw.press/wordpress/omgf-additional-fonts/';
|
22 |
|
23 |
/** @var array $optimized_fonts */
|
24 |
-
private $optimized_fonts;
|
25 |
|
26 |
/**
|
27 |
* OMGF_Admin_Settings_Optimize constructor.
|
@@ -165,7 +165,7 @@ class OMGF_Admin_Settings_Optimize extends OMGF_Admin_Settings_Builder
|
|
165 |
public function do_optimize_fonts_container()
|
166 |
{
|
167 |
?>
|
168 |
-
<div class="omgf-optimize-fonts-container
|
169 |
<?php
|
170 |
}
|
171 |
|
@@ -174,10 +174,13 @@ class OMGF_Admin_Settings_Optimize extends OMGF_Admin_Settings_Builder
|
|
174 |
*/
|
175 |
public function do_optimize_fonts_contents()
|
176 |
{
|
|
|
|
|
|
|
177 |
$this->optimized_fonts = OMGF::optimized_fonts();
|
178 |
?>
|
179 |
<span class="option-title"><?= __('Manage Optimized Fonts', $this->plugin_text_domain); ?></span>
|
180 |
-
<?php if ($this->optimized_fonts) : ?>
|
181 |
<?= $this->do_optimized_fonts_manager(); ?>
|
182 |
<?php else : ?>
|
183 |
<div class="omgf-optimize-fonts-description">
|
@@ -297,7 +300,6 @@ class OMGF_Admin_Settings_Optimize extends OMGF_Admin_Settings_Builder
|
|
297 |
<span class="dashicons-before dashicons-yes"></span> <?= __('Pros:', $this->plugin_text_domain); ?>
|
298 |
</h3>
|
299 |
<ul>
|
300 |
-
<li><?= __('A small initial performance boost, because no calls to OMGF\'s Download API are made in the frontend.', $this->plugin_text_domain); ?></li>
|
301 |
<li><?= __('Force one stylesheet to be used throughout the site.', $this->plugin_text_domain); ?></li>
|
302 |
</ul>
|
303 |
</div>
|
21 |
const FFW_PRESS_OMGF_AF_URL = 'https://ffw.press/wordpress/omgf-additional-fonts/';
|
22 |
|
23 |
/** @var array $optimized_fonts */
|
24 |
+
private $optimized_fonts = [];
|
25 |
|
26 |
/**
|
27 |
* OMGF_Admin_Settings_Optimize constructor.
|
165 |
public function do_optimize_fonts_container()
|
166 |
{
|
167 |
?>
|
168 |
+
<div class="omgf-optimize-fonts-container postbox">
|
169 |
<?php
|
170 |
}
|
171 |
|
174 |
*/
|
175 |
public function do_optimize_fonts_contents()
|
176 |
{
|
177 |
+
/**
|
178 |
+
* Note: moving this to the constructor doesn't get it properly refreshed after a page reload.
|
179 |
+
*/
|
180 |
$this->optimized_fonts = OMGF::optimized_fonts();
|
181 |
?>
|
182 |
<span class="option-title"><?= __('Manage Optimized Fonts', $this->plugin_text_domain); ?></span>
|
183 |
+
<?php if (!empty($this->optimized_fonts)) : ?>
|
184 |
<?= $this->do_optimized_fonts_manager(); ?>
|
185 |
<?php else : ?>
|
186 |
<div class="omgf-optimize-fonts-description">
|
300 |
<span class="dashicons-before dashicons-yes"></span> <?= __('Pros:', $this->plugin_text_domain); ?>
|
301 |
</h3>
|
302 |
<ul>
|
|
|
303 |
<li><?= __('Force one stylesheet to be used throughout the site.', $this->plugin_text_domain); ?></li>
|
304 |
</ul>
|
305 |
</div>
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: DaanvandenBergh
|
3 |
Tags: google, fonts, gdpr, cache, speed, preload, font-display, webfonts, subsets, remove, minimize, external, requests
|
4 |
Requires at least: 4.6
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 4.5.
|
7 |
Requires PHP: 7.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -83,6 +83,13 @@ For the FAQ, [click here](https://docs.ffw.press/category/76-omgf-pro---faq).
|
|
83 |
|
84 |
== Changelog ==
|
85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
= 4.5.13 | January 4th, 2022 =
|
87 |
* Sec: Properly check permissions when Download API is accessed.
|
88 |
|
2 |
Contributors: DaanvandenBergh
|
3 |
Tags: google, fonts, gdpr, cache, speed, preload, font-display, webfonts, subsets, remove, minimize, external, requests
|
4 |
Requires at least: 4.6
|
5 |
+
Tested up to: 5.9
|
6 |
+
Stable tag: 4.5.15
|
7 |
Requires PHP: 7.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
83 |
|
84 |
== Changelog ==
|
85 |
|
86 |
+
= 4.5.15 | January 26th, 2022 =
|
87 |
+
* Tested with WP 5.9
|
88 |
+
- Fix: WP 5.9 welcome banner displayed in Optimized Fonts Manager section.
|
89 |
+
|
90 |
+
= 4.5.14 | January 18th, 2022 =
|
91 |
+
* Fix: Pro options Google Fonts Source URL and AMP handling couldn't be saved.
|
92 |
+
|
93 |
= 4.5.13 | January 4th, 2022 =
|
94 |
* Sec: Properly check permissions when Download API is accessed.
|
95 |
|