Google Fonts for WordPress - Version 2.5.3

Version Description

Download this release

Release Info

Developer DannyCooper
Plugin Icon 128x128 Google Fonts for WordPress
Version 2.5.3
Comparing to
See all releases

Code changes from version 2.5.2 to 2.5.3

changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 2.5.1 =
2
 
3
  * Hotfix for API error
1
+ = 2.5.3 =
2
+
3
+ * Update localization
4
+
5
  = 2.5.1 =
6
 
7
  * Hotfix for API error
includes/class-ogf-typekit.php CHANGED
@@ -43,7 +43,7 @@ class OGF_Typekit {
43
  register_setting( 'fonts-plugin', 'fp-typekit' );
44
 
45
  add_settings_section( 'section-1', __( 'Configuration', 'olympus-google-fonts' ), array( $this, 'render_config_section' ), 'fonts-plugin-typekit' );
46
- add_settings_section( 'section-2', __( 'Results', 'fonts-plugin-typekit' ), array( $this, 'render_results_section' ), 'fonts-plugin-typekit' );
47
  add_settings_field( 'api_key', __( 'API Key', 'olympus-google-fonts' ), array( $this, 'render_settings' ), 'fonts-plugin-typekit', 'section-1' );
48
  }
49
 
@@ -76,14 +76,7 @@ class OGF_Typekit {
76
  * Render the Typekit settings.
77
  */
78
  public function render_settings() {
79
- $settings = get_option( 'fp-typekit', array() );
80
- $value = '';
81
-
82
- if ( array_key_exists( 'api_key', $settings ) ) {
83
- $value = $settings['api_key'];
84
- }
85
-
86
- echo '<input type="text" name="fp-typekit[api_key]" value="' . esc_attr( $value ) . '" />';
87
  echo '<input name="submit" class="button button-primary" type="submit" value="' . esc_attr__( 'Save', 'olympus-google-fonts' ) . '" />';
88
  }
89
 
@@ -91,14 +84,21 @@ class OGF_Typekit {
91
  * Render the results section of the admin page.
92
  */
93
  public function render_results_section() {
94
- echo '<p>' . esc_html__( 'The following data was retrieved from the Typekit API:', 'olympus-google-fonts' ) . '</p>';
95
- echo '<ul class="fp-typekit-results">';
96
  $kits = get_option( 'fp-typekit-data' );
97
 
98
  if ( ! is_array( $kits ) ) {
 
 
 
 
 
99
  return;
100
  }
101
 
 
 
 
102
  foreach ( $kits as $id => $kit ) {
103
  echo '<li><strong>' . esc_html__( 'Kit: ', 'olympus-google-fonts' ) . '</strong>' . esc_attr( $id ) . '</li><ul>';
104
  foreach ( $kit['families'] as $family ) {
@@ -109,6 +109,19 @@ class OGF_Typekit {
109
  echo '</ul>';
110
  }
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  /**
113
  * Quickly add inline CSS styles.
114
  */
@@ -124,28 +137,28 @@ class OGF_Typekit {
124
  */
125
  public function get_kits() {
126
 
 
127
  if ( isset( $_GET['action'] ) && $_GET['action'] === 'reset' ) {
128
  update_option( 'fp-typekit-data', false );
129
  }
130
 
 
131
  if ( get_current_screen()->id !== 'fonts-plugin_page_fonts-plugin-typekit' ) {
132
  return;
133
  }
134
 
 
135
  if ( get_option( 'fp-typekit-data', false ) ) {
136
  return;
137
  }
138
 
139
- $settings = get_option( 'fp-typekit', array() );
140
-
141
- if ( ! array_key_exists( 'api_key', $settings ) ) {
142
  return;
143
  }
144
 
145
- $api_key = $settings['api_key'];
146
  $url = 'https://typekit.com/api/v1/json/kits/';
147
  $curl_args = array();
148
- $response = wp_remote_request( $url . '?token=' . esc_attr( $api_key ), $curl_args );
149
 
150
  if ( wp_remote_retrieve_response_code( $response ) != '200' ) {
151
  return;
@@ -158,7 +171,7 @@ class OGF_Typekit {
158
  // loop through the kits object.
159
  foreach ( $response_body->kits as $kit ) {
160
  // perform an API request for the individual kit.
161
- $data = $this->get_kit_from_api( $api_key, $kit->id );
162
 
163
  if ( $data ) {
164
  // Enable kits by default.
@@ -185,8 +198,8 @@ class OGF_Typekit {
185
  * @param string $api_key The API key.
186
  * @param string $kit_id The Kit ID we are looking for.
187
  */
188
- public function get_kit_from_api( $api_key, $kit_id ) {
189
- $url = 'https://typekit.com/api/v1/json/kits/' . esc_attr( $kit_id ) . '?token=' . esc_attr( $api_key );
190
  $curl_args = array();
191
  $response = wp_remote_request( $url, $curl_args );
192
 
43
  register_setting( 'fonts-plugin', 'fp-typekit' );
44
 
45
  add_settings_section( 'section-1', __( 'Configuration', 'olympus-google-fonts' ), array( $this, 'render_config_section' ), 'fonts-plugin-typekit' );
46
+ add_settings_section( 'section-2', __( 'Results', 'olympus-google-fonts' ), array( $this, 'render_results_section' ), 'fonts-plugin-typekit' );
47
  add_settings_field( 'api_key', __( 'API Key', 'olympus-google-fonts' ), array( $this, 'render_settings' ), 'fonts-plugin-typekit', 'section-1' );
48
  }
49
 
76
  * Render the Typekit settings.
77
  */
78
  public function render_settings() {
79
+ echo '<input type="text" name="fp-typekit[api_key]" value="' . esc_attr( $this->get_api_key() ) . '" />';
 
 
 
 
 
 
 
80
  echo '<input name="submit" class="button button-primary" type="submit" value="' . esc_attr__( 'Save', 'olympus-google-fonts' ) . '" />';
81
  }
82
 
84
  * Render the results section of the admin page.
85
  */
86
  public function render_results_section() {
87
+
 
88
  $kits = get_option( 'fp-typekit-data' );
89
 
90
  if ( ! is_array( $kits ) ) {
91
+ if ( $this->get_api_key() ) {
92
+ esc_html_e( 'There is a problem connecting to the API. Please check your API Key.', 'olympus-google-fonts' );
93
+ } else {
94
+ esc_html_e( 'Enter your Adobe Fonts API Key to retrieve the fonts.', 'olympus-google-fonts' );
95
+ }
96
  return;
97
  }
98
 
99
+ echo '<p>' . esc_html__( 'The following data was retrieved from the Typekit API:', 'olympus-google-fonts' ) . '</p>';
100
+ echo '<ul class="fp-typekit-results">';
101
+
102
  foreach ( $kits as $id => $kit ) {
103
  echo '<li><strong>' . esc_html__( 'Kit: ', 'olympus-google-fonts' ) . '</strong>' . esc_attr( $id ) . '</li><ul>';
104
  foreach ( $kit['families'] as $family ) {
109
  echo '</ul>';
110
  }
111
 
112
+ /**
113
+ *
114
+ */
115
+ public function get_api_key() {
116
+ $settings = get_option( 'fp-typekit', array() );
117
+
118
+ if ( ! array_key_exists( 'api_key', $settings ) ) {
119
+ return false;
120
+ }
121
+
122
+ return $settings['api_key'];
123
+ }
124
+
125
  /**
126
  * Quickly add inline CSS styles.
127
  */
137
  */
138
  public function get_kits() {
139
 
140
+ // Reset the data if the user has clicked the button.
141
  if ( isset( $_GET['action'] ) && $_GET['action'] === 'reset' ) {
142
  update_option( 'fp-typekit-data', false );
143
  }
144
 
145
+ // Only perform action on the Fonts Plugin Typekit Page.
146
  if ( get_current_screen()->id !== 'fonts-plugin_page_fonts-plugin-typekit' ) {
147
  return;
148
  }
149
 
150
+ // If data exists we don't need to query the API.
151
  if ( get_option( 'fp-typekit-data', false ) ) {
152
  return;
153
  }
154
 
155
+ if ( ! $this->get_api_key() ) {
 
 
156
  return;
157
  }
158
 
 
159
  $url = 'https://typekit.com/api/v1/json/kits/';
160
  $curl_args = array();
161
+ $response = wp_remote_request( $url . '?token=' . esc_attr( $this->get_api_key() ), $curl_args );
162
 
163
  if ( wp_remote_retrieve_response_code( $response ) != '200' ) {
164
  return;
171
  // loop through the kits object.
172
  foreach ( $response_body->kits as $kit ) {
173
  // perform an API request for the individual kit.
174
+ $data = $this->get_kit_from_api( $kit->id );
175
 
176
  if ( $data ) {
177
  // Enable kits by default.
198
  * @param string $api_key The API key.
199
  * @param string $kit_id The Kit ID we are looking for.
200
  */
201
+ public function get_kit_from_api( $kit_id ) {
202
+ $url = 'https://typekit.com/api/v1/json/kits/' . esc_attr( $kit_id ) . '?token=' . esc_attr( $this->get_api_key() );
203
  $curl_args = array();
204
  $response = wp_remote_request( $url, $curl_args );
205
 
languages/olympus-google-fonts.pot CHANGED
@@ -1,21 +1,21 @@
1
- # Copyright (C) 2020 Fonts Plugin
2
- # This file is distributed under the same license as the Google Fonts Typography plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Google Fonts Typography 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/olympus-google-fonts\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2020-06-30T11:51:23+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.1.0\n"
15
  "X-Domain: olympus-google-fonts\n"
16
 
17
  #. Plugin Name of the plugin
18
- msgid "Google Fonts Typography"
19
  msgstr ""
20
 
21
  #. Plugin URI of the plugin
@@ -27,18 +27,19 @@ msgid "The easiest to use Google Fonts typography plugin. No coding required. 90
27
  msgstr ""
28
 
29
  #. Author of the plugin
 
30
  msgid "Fonts Plugin"
31
  msgstr ""
32
 
33
  #. Author URI of the plugin
34
- msgid "https://fontsplugin.com/?utm_source=wporg&utm_campaign=heading"
35
  msgstr ""
36
 
37
- #: class-olympus-google-fonts.php:153
38
  msgid "Settings"
39
  msgstr ""
40
 
41
- #: class-olympus-google-fonts.php:158
42
  msgid "Upgrade to Pro"
43
  msgstr ""
44
 
@@ -166,174 +167,176 @@ msgstr ""
166
  msgid "Select and configure the font for your footer content."
167
  msgstr ""
168
 
169
- #: includes/functions.php:200
170
  msgid "Arial"
171
  msgstr ""
172
 
173
- #: includes/functions.php:205
174
  msgid "Calibri"
175
  msgstr ""
176
 
177
- #: includes/functions.php:210
178
  msgid "Century Gothic"
179
  msgstr ""
180
 
181
- #: includes/functions.php:215
182
  msgid "Consolas"
183
  msgstr ""
184
 
185
- #: includes/functions.php:220
186
  msgid "Courier New"
187
  msgstr ""
188
 
189
- #: includes/functions.php:225
190
  msgid "Helvetica Neue"
191
  msgstr ""
192
 
193
- #: includes/functions.php:230
194
  msgid "Georgia"
195
  msgstr ""
196
 
197
- #: includes/functions.php:235
198
  msgid "Futura"
199
  msgstr ""
200
 
201
- #: includes/functions.php:240
202
  msgid "Lucida Grande"
203
  msgstr ""
204
 
205
- #: includes/functions.php:245
206
  msgid "Segoe UI"
207
  msgstr ""
208
 
209
- #: includes/functions.php:250
210
  msgid "Tahoma"
211
  msgstr ""
212
 
213
- #: includes/functions.php:255
214
  msgid "Times New Roman"
215
  msgstr ""
216
 
217
- #: includes/functions.php:260
218
  msgid "Trebuchet MS"
219
  msgstr ""
220
 
221
- #: includes/functions.php:265
222
  msgid "Palatino"
223
  msgstr ""
224
 
225
- #: includes/functions.php:270
226
  msgid "Verdana"
227
  msgstr ""
228
 
229
- #: includes/functions.php:286
230
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:263
231
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:273
232
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:287
233
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:299
234
  #: blocks/dist/blocks.build.js:1
235
- #: blocks/src/google-fonts/edit.js:92
236
  msgid "- Default -"
237
  msgstr ""
238
 
239
- #: includes/functions.php:287
240
  #: blocks/dist/blocks.build.js:1
241
- #: blocks/src/google-fonts/edit.js:93
242
  msgid "Thin"
243
  msgstr ""
244
 
245
- #: includes/functions.php:288
246
  #: blocks/dist/blocks.build.js:1
247
- #: blocks/src/google-fonts/edit.js:94
248
  msgid "Extra Light"
249
  msgstr ""
250
 
251
- #: includes/functions.php:289
252
  #: blocks/dist/blocks.build.js:1
253
- #: blocks/src/google-fonts/edit.js:95
254
  msgid "Light"
255
  msgstr ""
256
 
257
- #: includes/functions.php:290
258
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:264
259
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:288
260
  #: blocks/dist/blocks.build.js:1
261
- #: blocks/src/google-fonts/edit.js:96
262
  msgid "Normal"
263
  msgstr ""
264
 
265
- #: includes/functions.php:291
266
  #: blocks/dist/blocks.build.js:1
267
- #: blocks/src/google-fonts/edit.js:97
268
  msgid "Medium"
269
  msgstr ""
270
 
271
- #: includes/functions.php:292
272
  #: blocks/dist/blocks.build.js:1
273
- #: blocks/src/google-fonts/edit.js:98
274
  msgid "Semi Bold"
275
  msgstr ""
276
 
277
- #: includes/functions.php:293
278
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:265
279
  #: blocks/dist/blocks.build.js:1
280
- #: blocks/src/google-fonts/edit.js:99
281
  msgid "Bold"
282
  msgstr ""
283
 
284
- #: includes/functions.php:294
285
  #: blocks/dist/blocks.build.js:1
286
- #: blocks/src/google-fonts/edit.js:100
287
  msgid "Extra Bold"
288
  msgstr ""
289
 
290
- #: includes/functions.php:295
291
  #: blocks/dist/blocks.build.js:1
292
- #: blocks/src/google-fonts/edit.js:101
293
  msgid "Ultra Bold"
294
  msgstr ""
295
 
296
- #: includes/functions.php:296
297
  msgid "Thin Italic"
298
  msgstr ""
299
 
300
- #: includes/functions.php:297
301
  msgid "Extra Light Italic"
302
  msgstr ""
303
 
304
- #: includes/functions.php:298
305
  msgid "Light Italic"
306
  msgstr ""
307
 
308
- #: includes/functions.php:299
309
  msgid "Normal Italic"
310
  msgstr ""
311
 
312
- #: includes/functions.php:300
313
  msgid "Medium Italic"
314
  msgstr ""
315
 
316
- #: includes/functions.php:301
317
  msgid "Semi Bold Italic"
318
  msgstr ""
319
 
320
- #: includes/functions.php:302
321
  msgid "Bold Italic"
322
  msgstr ""
323
 
324
- #: includes/functions.php:303
325
  msgid "Extra Bold Italic"
326
  msgstr ""
327
 
328
- #: includes/functions.php:304
329
  msgid "Ultra Bold Italic"
330
  msgstr ""
331
 
332
  #: includes/class-ogf-reset.php:41
 
333
  msgid "This will reset all fonts set by this plugin to their defaults. This action can not be reversed."
334
  msgstr ""
335
 
336
- #: includes/class-ogf-reset.php:63
 
337
  msgid "Reset All Fonts"
338
  msgstr ""
339
 
@@ -342,6 +345,57 @@ msgstr ""
342
  msgid "Thank you for installing <strong>Google Fonts for WordPress</strong>! Configure your fonts here: <a href=\"%s\">WordPress Customizer</a>"
343
  msgstr ""
344
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
345
  #. translators: Number of years
346
  #: includes/class-ogf-notifications.php:82
347
  msgid "a year"
@@ -401,9 +455,31 @@ msgstr ""
401
  msgid "If your choices are not displaying correctly, check this box."
402
  msgstr ""
403
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
404
  #: includes/customizer/panels.php:32
405
- #: admin/welcome.php:28
406
- #: admin/welcome.php:29
407
  #: blocks/dist/blocks.build.js:1
408
  #: blocks/src/google-fonts/index.js:12
409
  msgid "Google Fonts"
@@ -511,7 +587,7 @@ msgstr ""
511
 
512
  #: includes/customizer/controls/class-ogf-customize-typography-control.php:52
513
  #: blocks/dist/blocks.build.js:1
514
- #: blocks/src/google-fonts/edit.js:221
515
  msgid "Line Height"
516
  msgstr ""
517
 
@@ -532,41 +608,57 @@ msgid "Default Font"
532
  msgstr ""
533
 
534
  #: includes/customizer/controls/class-ogf-customize-typography-control.php:132
 
 
535
  msgid "- Custom Fonts -"
536
  msgstr ""
537
 
538
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:137
 
 
 
 
 
 
 
 
539
  msgid "- System Fonts -"
540
  msgstr ""
541
 
542
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:141
 
 
543
  msgid "- Google Fonts -"
544
  msgstr ""
545
 
546
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:147
547
  msgid "Advanced"
548
  msgstr ""
549
 
550
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:289
551
  msgid "Italic"
552
  msgstr ""
553
 
554
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:290
555
  msgid "Oblique"
556
  msgstr ""
557
 
558
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:300
559
  msgid "Capitalize"
560
  msgstr ""
561
 
562
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:301
563
  msgid "Uppercase"
564
  msgstr ""
565
 
566
- #: includes/customizer/controls/class-ogf-customize-typography-control.php:302
567
  msgid "Lowercase"
568
  msgstr ""
569
 
 
 
 
 
570
  #: includes/class-ogf-dashboard-widget.php:30
571
  msgid "Typography News"
572
  msgstr ""
@@ -576,6 +668,134 @@ msgstr ""
576
  msgid "Temporarily unable to load feed."
577
  msgstr ""
578
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
579
  #: blocks/dist/blocks.build.js:1
580
  #: blocks/src/google-fonts/index.js:16
581
  msgid "Fonts"
@@ -587,41 +807,36 @@ msgid "Heading"
587
  msgstr ""
588
 
589
  #: blocks/dist/blocks.build.js:1
590
- #: blocks/src/google-fonts/edit.js:181
591
  msgid "Font Settings"
592
  msgstr ""
593
 
594
  #: blocks/dist/blocks.build.js:1
595
- #: blocks/src/google-fonts/edit.js:183
596
  msgid "Block Type"
597
  msgstr ""
598
 
599
  #: blocks/dist/blocks.build.js:1
600
- #: blocks/src/google-fonts/edit.js:199
601
- msgid "Font"
602
- msgstr ""
603
-
604
- #: blocks/dist/blocks.build.js:1
605
- #: blocks/src/google-fonts/edit.js:206
606
  msgid "Font Variant"
607
  msgstr ""
608
 
609
  #: blocks/dist/blocks.build.js:1
610
- #: blocks/src/google-fonts/edit.js:213
611
  msgid "Font Size"
612
  msgstr ""
613
 
614
  #: blocks/dist/blocks.build.js:1
615
- #: blocks/src/google-fonts/edit.js:230
616
  msgid "Color Settings"
617
  msgstr ""
618
 
619
  #: blocks/dist/blocks.build.js:1
620
- #: blocks/src/google-fonts/edit.js:235
621
  msgid "Text Color"
622
  msgstr ""
623
 
624
  #: blocks/dist/blocks.build.js:1
625
- #: blocks/src/google-fonts/edit.js:265
626
  msgid "Add some content..."
627
  msgstr ""
1
+ # Copyright (C) 2021 Fonts Plugin
2
+ # This file is distributed under the same license as the Fonts Plugin | Google Fonts Typography plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Fonts Plugin | Google Fonts Typography 2.5.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/olympus-google-fonts\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2021-02-10T11:08:38+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.1.0\n"
15
  "X-Domain: olympus-google-fonts\n"
16
 
17
  #. Plugin Name of the plugin
18
+ msgid "Fonts Plugin | Google Fonts Typography"
19
  msgstr ""
20
 
21
  #. Plugin URI of the plugin
27
  msgstr ""
28
 
29
  #. Author of the plugin
30
+ #: admin/class-ogf-welcome-screen.php:28
31
  msgid "Fonts Plugin"
32
  msgstr ""
33
 
34
  #. Author URI of the plugin
35
+ msgid "https://fontsplugin.com/?utm_source=wporg&utm_medium=readme&utm_campaign=description"
36
  msgstr ""
37
 
38
+ #: class-olympus-google-fonts.php:164
39
  msgid "Settings"
40
  msgstr ""
41
 
42
+ #: class-olympus-google-fonts.php:171
43
  msgid "Upgrade to Pro"
44
  msgstr ""
45
 
167
  msgid "Select and configure the font for your footer content."
168
  msgstr ""
169
 
170
+ #: includes/functions.php:228
171
  msgid "Arial"
172
  msgstr ""
173
 
174
+ #: includes/functions.php:233
175
  msgid "Calibri"
176
  msgstr ""
177
 
178
+ #: includes/functions.php:238
179
  msgid "Century Gothic"
180
  msgstr ""
181
 
182
+ #: includes/functions.php:243
183
  msgid "Consolas"
184
  msgstr ""
185
 
186
+ #: includes/functions.php:248
187
  msgid "Courier New"
188
  msgstr ""
189
 
190
+ #: includes/functions.php:253
191
  msgid "Helvetica Neue"
192
  msgstr ""
193
 
194
+ #: includes/functions.php:258
195
  msgid "Georgia"
196
  msgstr ""
197
 
198
+ #: includes/functions.php:263
199
  msgid "Futura"
200
  msgstr ""
201
 
202
+ #: includes/functions.php:268
203
  msgid "Lucida Grande"
204
  msgstr ""
205
 
206
+ #: includes/functions.php:273
207
  msgid "Segoe UI"
208
  msgstr ""
209
 
210
+ #: includes/functions.php:278
211
  msgid "Tahoma"
212
  msgstr ""
213
 
214
+ #: includes/functions.php:283
215
  msgid "Times New Roman"
216
  msgstr ""
217
 
218
+ #: includes/functions.php:288
219
  msgid "Trebuchet MS"
220
  msgstr ""
221
 
222
+ #: includes/functions.php:293
223
  msgid "Palatino"
224
  msgstr ""
225
 
226
+ #: includes/functions.php:298
227
  msgid "Verdana"
228
  msgstr ""
229
 
230
+ #: includes/functions.php:314
231
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:269
232
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:279
233
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:293
234
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:305
235
  #: blocks/dist/blocks.build.js:1
236
+ #: blocks/src/google-fonts/edit.js:148
237
  msgid "- Default -"
238
  msgstr ""
239
 
240
+ #: includes/functions.php:315
241
  #: blocks/dist/blocks.build.js:1
242
+ #: blocks/src/google-fonts/edit.js:149
243
  msgid "Thin"
244
  msgstr ""
245
 
246
+ #: includes/functions.php:316
247
  #: blocks/dist/blocks.build.js:1
248
+ #: blocks/src/google-fonts/edit.js:150
249
  msgid "Extra Light"
250
  msgstr ""
251
 
252
+ #: includes/functions.php:317
253
  #: blocks/dist/blocks.build.js:1
254
+ #: blocks/src/google-fonts/edit.js:151
255
  msgid "Light"
256
  msgstr ""
257
 
258
+ #: includes/functions.php:318
259
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:270
260
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:294
261
  #: blocks/dist/blocks.build.js:1
262
+ #: blocks/src/google-fonts/edit.js:152
263
  msgid "Normal"
264
  msgstr ""
265
 
266
+ #: includes/functions.php:319
267
  #: blocks/dist/blocks.build.js:1
268
+ #: blocks/src/google-fonts/edit.js:153
269
  msgid "Medium"
270
  msgstr ""
271
 
272
+ #: includes/functions.php:320
273
  #: blocks/dist/blocks.build.js:1
274
+ #: blocks/src/google-fonts/edit.js:154
275
  msgid "Semi Bold"
276
  msgstr ""
277
 
278
+ #: includes/functions.php:321
279
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:271
280
  #: blocks/dist/blocks.build.js:1
281
+ #: blocks/src/google-fonts/edit.js:155
282
  msgid "Bold"
283
  msgstr ""
284
 
285
+ #: includes/functions.php:322
286
  #: blocks/dist/blocks.build.js:1
287
+ #: blocks/src/google-fonts/edit.js:156
288
  msgid "Extra Bold"
289
  msgstr ""
290
 
291
+ #: includes/functions.php:323
292
  #: blocks/dist/blocks.build.js:1
293
+ #: blocks/src/google-fonts/edit.js:157
294
  msgid "Ultra Bold"
295
  msgstr ""
296
 
297
+ #: includes/functions.php:324
298
  msgid "Thin Italic"
299
  msgstr ""
300
 
301
+ #: includes/functions.php:325
302
  msgid "Extra Light Italic"
303
  msgstr ""
304
 
305
+ #: includes/functions.php:326
306
  msgid "Light Italic"
307
  msgstr ""
308
 
309
+ #: includes/functions.php:327
310
  msgid "Normal Italic"
311
  msgstr ""
312
 
313
+ #: includes/functions.php:328
314
  msgid "Medium Italic"
315
  msgstr ""
316
 
317
+ #: includes/functions.php:329
318
  msgid "Semi Bold Italic"
319
  msgstr ""
320
 
321
+ #: includes/functions.php:330
322
  msgid "Bold Italic"
323
  msgstr ""
324
 
325
+ #: includes/functions.php:331
326
  msgid "Extra Bold Italic"
327
  msgstr ""
328
 
329
+ #: includes/functions.php:332
330
  msgid "Ultra Bold Italic"
331
  msgstr ""
332
 
333
  #: includes/class-ogf-reset.php:41
334
+ #: includes/class-ogf-reset.php:60
335
  msgid "This will reset all fonts set by this plugin to their defaults. This action can not be reversed."
336
  msgstr ""
337
 
338
+ #: includes/class-ogf-reset.php:59
339
+ #: includes/class-ogf-reset.php:65
340
  msgid "Reset All Fonts"
341
  msgstr ""
342
 
345
  msgid "Thank you for installing <strong>Google Fonts for WordPress</strong>! Configure your fonts here: <a href=\"%s\">WordPress Customizer</a>"
346
  msgstr ""
347
 
348
+ #: includes/class-ogf-fonts-taxonomy.php:65
349
+ msgid "Custom Fonts"
350
+ msgstr ""
351
+
352
+ #: includes/class-ogf-fonts-taxonomy.php:66
353
+ #: blocks/dist/blocks.build.js:1
354
+ #: blocks/src/google-fonts/edit.js:261
355
+ msgid "Font"
356
+ msgstr ""
357
+
358
+ #: includes/class-ogf-fonts-taxonomy.php:67
359
+ msgctxt "Admin menu name"
360
+ msgid "Custom Fonts"
361
+ msgstr ""
362
+
363
+ #: includes/class-ogf-fonts-taxonomy.php:68
364
+ msgid "Search Fonts"
365
+ msgstr ""
366
+
367
+ #: includes/class-ogf-fonts-taxonomy.php:69
368
+ msgid "All Fonts"
369
+ msgstr ""
370
+
371
+ #: includes/class-ogf-fonts-taxonomy.php:70
372
+ msgid "Parent Font"
373
+ msgstr ""
374
+
375
+ #: includes/class-ogf-fonts-taxonomy.php:71
376
+ msgid "Parent Font:"
377
+ msgstr ""
378
+
379
+ #: includes/class-ogf-fonts-taxonomy.php:72
380
+ msgid "Edit Font"
381
+ msgstr ""
382
+
383
+ #: includes/class-ogf-fonts-taxonomy.php:73
384
+ msgid "Update Font"
385
+ msgstr ""
386
+
387
+ #: includes/class-ogf-fonts-taxonomy.php:74
388
+ msgid "Add New Font"
389
+ msgstr ""
390
+
391
+ #: includes/class-ogf-fonts-taxonomy.php:75
392
+ msgid "New Font Name"
393
+ msgstr ""
394
+
395
+ #: includes/class-ogf-fonts-taxonomy.php:76
396
+ msgid "No fonts found"
397
+ msgstr ""
398
+
399
  #. translators: Number of years
400
  #: includes/class-ogf-notifications.php:82
401
  msgid "a year"
455
  msgid "If your choices are not displaying correctly, check this box."
456
  msgstr ""
457
 
458
+ #: includes/customizer/settings.php:193
459
+ msgid "Disable Editor Controls"
460
+ msgstr ""
461
+
462
+ #: includes/customizer/settings.php:197
463
+ msgid "Remove font controls from the individual post editor screen (Gutenberg and Classic)."
464
+ msgstr ""
465
+
466
+ #: includes/customizer/settings.php:216
467
+ msgid "Swap"
468
+ msgstr ""
469
+
470
+ #: includes/customizer/settings.php:217
471
+ msgid "Block"
472
+ msgstr ""
473
+
474
+ #: includes/customizer/settings.php:218
475
+ msgid "Fallback"
476
+ msgstr ""
477
+
478
+ #: includes/customizer/settings.php:219
479
+ msgid "Optional"
480
+ msgstr ""
481
+
482
  #: includes/customizer/panels.php:32
 
 
483
  #: blocks/dist/blocks.build.js:1
484
  #: blocks/src/google-fonts/index.js:12
485
  msgid "Google Fonts"
587
 
588
  #: includes/customizer/controls/class-ogf-customize-typography-control.php:52
589
  #: blocks/dist/blocks.build.js:1
590
+ #: blocks/src/google-fonts/edit.js:283
591
  msgid "Line Height"
592
  msgstr ""
593
 
608
  msgstr ""
609
 
610
  #: includes/customizer/controls/class-ogf-customize-typography-control.php:132
611
+ #: blocks/dist/blocks.build.js:1
612
+ #: blocks/src/google-fonts/edit.js:35
613
  msgid "- Custom Fonts -"
614
  msgstr ""
615
 
616
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:138
617
+ #: blocks/dist/blocks.build.js:1
618
+ #: blocks/src/google-fonts/edit.js:48
619
+ msgid "- Typekit Fonts -"
620
+ msgstr ""
621
+
622
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:143
623
+ #: blocks/dist/blocks.build.js:1
624
+ #: blocks/src/google-fonts/edit.js:64
625
  msgid "- System Fonts -"
626
  msgstr ""
627
 
628
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:147
629
+ #: blocks/dist/blocks.build.js:1
630
+ #: blocks/src/google-fonts/edit.js:80
631
  msgid "- Google Fonts -"
632
  msgstr ""
633
 
634
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:153
635
  msgid "Advanced"
636
  msgstr ""
637
 
638
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:295
639
  msgid "Italic"
640
  msgstr ""
641
 
642
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:296
643
  msgid "Oblique"
644
  msgstr ""
645
 
646
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:306
647
  msgid "Capitalize"
648
  msgstr ""
649
 
650
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:307
651
  msgid "Uppercase"
652
  msgstr ""
653
 
654
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:308
655
  msgid "Lowercase"
656
  msgstr ""
657
 
658
+ #: includes/customizer/controls/class-ogf-customize-typography-control.php:309
659
+ msgid "None"
660
+ msgstr ""
661
+
662
  #: includes/class-ogf-dashboard-widget.php:30
663
  msgid "Typography News"
664
  msgstr ""
668
  msgid "Temporarily unable to load feed."
669
  msgstr ""
670
 
671
+ #: includes/class-ogf-typekit.php:31
672
+ #: includes/class-ogf-typekit.php:32
673
+ msgid "Adobe Fonts"
674
+ msgstr ""
675
+
676
+ #: includes/class-ogf-typekit.php:45
677
+ msgid "Configuration"
678
+ msgstr ""
679
+
680
+ #: includes/class-ogf-typekit.php:46
681
+ msgid "Results"
682
+ msgstr ""
683
+
684
+ #: includes/class-ogf-typekit.php:47
685
+ msgid "API Key"
686
+ msgstr ""
687
+
688
+ #: includes/class-ogf-typekit.php:55
689
+ msgid "Adobe Fonts (Typekit) Configuration"
690
+ msgstr ""
691
+
692
+ #: includes/class-ogf-typekit.php:61
693
+ msgid "Refresh Fonts"
694
+ msgstr ""
695
+
696
+ #: includes/class-ogf-typekit.php:72
697
+ msgid "<p>You can retrieve your Adobe Fonts API Key here: <a target=\"_blank\" href=\"https://fonts.adobe.com/account/tokens\">https://fonts.adobe.com/account/tokens</a></p>"
698
+ msgstr ""
699
+
700
+ #: includes/class-ogf-typekit.php:80
701
+ msgid "Save"
702
+ msgstr ""
703
+
704
+ #: includes/class-ogf-typekit.php:92
705
+ msgid "There is a problem connecting to the API. Please check your API Key."
706
+ msgstr ""
707
+
708
+ #: includes/class-ogf-typekit.php:94
709
+ msgid "Enter your Adobe Fonts API Key to retrieve the fonts."
710
+ msgstr ""
711
+
712
+ #: includes/class-ogf-typekit.php:99
713
+ msgid "The following data was retrieved from the Typekit API:"
714
+ msgstr ""
715
+
716
+ #: includes/class-ogf-typekit.php:103
717
+ msgid "Kit: "
718
+ msgstr ""
719
+
720
+ #: includes/class-ogf-typekit.php:105
721
+ msgid "Font Family: "
722
+ msgstr ""
723
+
724
+ #: includes/class-ogf-fonts.php:114
725
+ msgid "Font Missing"
726
+ msgstr ""
727
+
728
+ #: admin/class-ogf-welcome-screen.php:39
729
+ #: admin/class-ogf-welcome-screen.php:40
730
+ msgid "Customize Fonts"
731
+ msgstr ""
732
+
733
+ #: admin/class-ogf-welcome-screen.php:49
734
+ #: admin/class-ogf-welcome-screen.php:50
735
+ msgid "Documentation"
736
+ msgstr ""
737
+
738
+ #: admin/class-ogf-upload-fonts-screen.php:78
739
+ msgid "Upload Fonts"
740
+ msgstr ""
741
+
742
+ #: admin/class-ogf-upload-fonts-screen.php:105
743
+ msgid "The name of the font as it appears in the customizer options."
744
+ msgstr ""
745
+
746
+ #: admin/class-ogf-upload-fonts-screen.php:136
747
+ msgid "WOFF Font File"
748
+ msgstr ""
749
+
750
+ #: admin/class-ogf-upload-fonts-screen.php:137
751
+ msgid "WOFF2 Font File"
752
+ msgstr ""
753
+
754
+ #: admin/class-ogf-upload-fonts-screen.php:138
755
+ msgid "OpenType (.otf) Font File"
756
+ msgstr ""
757
+
758
+ #: admin/class-ogf-upload-fonts-screen.php:139
759
+ msgid "TrueType (.ttf) Font File"
760
+ msgstr ""
761
+
762
+ #: admin/class-ogf-upload-fonts-screen.php:149
763
+ msgid "Font .woff"
764
+ msgstr ""
765
+
766
+ #: admin/class-ogf-upload-fonts-screen.php:149
767
+ msgid "Upload the font's .woff file or enter the URL."
768
+ msgstr ""
769
+
770
+ #: admin/class-ogf-upload-fonts-screen.php:150
771
+ msgid "Font .woff2"
772
+ msgstr ""
773
+
774
+ #: admin/class-ogf-upload-fonts-screen.php:150
775
+ msgid "Upload the font's .woff2 file or enter the URL."
776
+ msgstr ""
777
+
778
+ #: admin/class-ogf-upload-fonts-screen.php:151
779
+ msgid "Font .ttf"
780
+ msgstr ""
781
+
782
+ #: admin/class-ogf-upload-fonts-screen.php:151
783
+ msgid "Upload the font's .ttf file or enter the URL."
784
+ msgstr ""
785
+
786
+ #: admin/class-ogf-upload-fonts-screen.php:152
787
+ msgid "Font .otf"
788
+ msgstr ""
789
+
790
+ #: admin/class-ogf-upload-fonts-screen.php:152
791
+ msgid "Upload the font's .otf file or enter the URL."
792
+ msgstr ""
793
+
794
+ #: admin/class-ogf-upload-fonts-screen.php:170
795
+ #: admin/class-ogf-upload-fonts-screen.php:194
796
+ msgid "Upload"
797
+ msgstr ""
798
+
799
  #: blocks/dist/blocks.build.js:1
800
  #: blocks/src/google-fonts/index.js:16
801
  msgid "Fonts"
807
  msgstr ""
808
 
809
  #: blocks/dist/blocks.build.js:1
810
+ #: blocks/src/google-fonts/edit.js:243
811
  msgid "Font Settings"
812
  msgstr ""
813
 
814
  #: blocks/dist/blocks.build.js:1
815
+ #: blocks/src/google-fonts/edit.js:245
816
  msgid "Block Type"
817
  msgstr ""
818
 
819
  #: blocks/dist/blocks.build.js:1
820
+ #: blocks/src/google-fonts/edit.js:268
 
 
 
 
 
821
  msgid "Font Variant"
822
  msgstr ""
823
 
824
  #: blocks/dist/blocks.build.js:1
825
+ #: blocks/src/google-fonts/edit.js:275
826
  msgid "Font Size"
827
  msgstr ""
828
 
829
  #: blocks/dist/blocks.build.js:1
830
+ #: blocks/src/google-fonts/edit.js:292
831
  msgid "Color Settings"
832
  msgstr ""
833
 
834
  #: blocks/dist/blocks.build.js:1
835
+ #: blocks/src/google-fonts/edit.js:297
836
  msgid "Text Color"
837
  msgstr ""
838
 
839
  #: blocks/dist/blocks.build.js:1
840
+ #: blocks/src/google-fonts/edit.js:327
841
  msgid "Add some content..."
842
  msgstr ""
olympus-google-fonts.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin Name: Fonts Plugin | Google Fonts Typography
6
  * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
7
  * Description: The easiest to use Google Fonts typography plugin. No coding required. 900+ font choices.
8
- * Version: 2.5.2
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_medium=readme&utm_campaign=description
11
  * Text Domain: olympus-google-fonts
@@ -19,7 +19,7 @@
19
  */
20
 
21
  if ( ! defined( 'OGF_VERSION' ) ) {
22
- define( 'OGF_VERSION', '2.5.2' );
23
  }
24
 
25
  if ( ! defined( 'OGF_DIR_PATH' ) ) {
5
  * Plugin Name: Fonts Plugin | Google Fonts Typography
6
  * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
7
  * Description: The easiest to use Google Fonts typography plugin. No coding required. 900+ font choices.
8
+ * Version: 2.5.3
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_medium=readme&utm_campaign=description
11
  * Text Domain: olympus-google-fonts
19
  */
20
 
21
  if ( ! defined( 'OGF_VERSION' ) ) {
22
+ define( 'OGF_VERSION', '2.5.3' );
23
  }
24
 
25
  if ( ! defined( 'OGF_DIR_PATH' ) ) {
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://fontsplugin.com/#pricing
5
  Requires at least: 4.0
6
  Tested up to: 5.6
7
  License: GPLv2 or later
8
- Stable tag: 2.5.2
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 900+ font choices.
11
 
5
  Requires at least: 4.0
6
  Tested up to: 5.6
7
  License: GPLv2 or later
8
+ Stable tag: 2.5.3
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 900+ font choices.
11