Google Fonts for WordPress - Version 2.0.0

Version Description

Download this release

Release Info

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

Code changes from version 1.9.99 to 2.0.0

changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 1.9.99 =
2
 
3
  * Add new fonts, including Inter.
1
+ = 2.0.0 =
2
+
3
+ * Add support for LyraThemes.
4
+
5
  = 1.9.99 =
6
 
7
  * Add new fonts, including Inter.
compatability/lyrathemes.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Compatability file for LyraThemes themes.
4
+ *
5
+ * @package olympus-google-fonts
6
+ * @copyright Copyright (c) 2020, Fonts Plugin
7
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
8
+ */
9
+
10
+ /**
11
+ * Modify the default element selectors to improve compatability with LyraThemes themes.
12
+ *
13
+ * @param array $elements The default elements.
14
+ */
15
+ function ogf_lyrathemes_elements( $elements ) {
16
+
17
+ $elements['ogf_body']['selectors'] = 'body, #content, .single-content, .entry-content, .post-content, .page-content, .post-excerpt, .entry-summary, .entry-excerpt, .widget-area, .widget, .sidebar, #sidebar, footer, .footer, #footer, .site-footer';
18
+ $elements['ogf_post_page_content']['selectors'] = '.single-content, .single-content p, .entry-content, .entry-content p, .post-content, .page-content, .post-excerpt, .entry-summary, .entry-excerpt, .excerpt, .excerpt p';
19
+ $elements['ogf_post_page_h2']['selectors'] = '.entry-content h2, .post-content h2, .page-content h2, #content h2, .single-content h2';
20
+ $elements['ogf_post_page_h3']['selectors'] = '.entry-content h3, .post-content h3, .page-content h3, #content h3, .single-content h3';
21
+ $elements['ogf_post_page_h4']['selectors'] = '.entry-content h4, .post-content h4, .page-content h4, #content h4, .single-content h4';
22
+ $elements['ogf_post_page_h5']['selectors'] = '.entry-content h5, .post-content h5, .page-content h5, #content h5, .single-content h5';
23
+ $elements['ogf_post_page_h6']['selectors'] = '.entry-content h6, .post-content h6, .page-content h6, #content h6, .single-content h6';
24
+ return $elements;
25
+
26
+ }
27
+
28
+ add_filter( 'ogf_elements', 'ogf_lyrathemes_elements' );
olympus-google-fonts.php CHANGED
@@ -4,8 +4,8 @@
4
  *
5
  * Plugin Name: 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. 870+ font choices.
8
- * Version: 1.9.99
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_campaign=heading
11
  * Text Domain: olympus-google-fonts
@@ -18,7 +18,7 @@
18
  * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
19
  */
20
 
21
- define( 'OGF_VERSION', '1.9.99' );
22
  define( 'OGF_DIR_PATH', plugin_dir_path( __FILE__ ) );
23
  define( 'OGF_DIR_URL', plugin_dir_url( __FILE__ ) );
24
 
4
  *
5
  * Plugin Name: 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.0.0
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_campaign=heading
11
  * Text Domain: olympus-google-fonts
18
  * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
19
  */
20
 
21
+ define( 'OGF_VERSION', '2.0.0' );
22
  define( 'OGF_DIR_PATH', plugin_dir_path( __FILE__ ) );
23
  define( 'OGF_DIR_URL', plugin_dir_url( __FILE__ ) );
24
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://fontsplugin.com/#pricing
5
  Requires at least: 4.0
6
  Tested up to: 5.4
7
  License: GPLv2 or later
8
- Stable tag: 1.9.99
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 900+ font choices.
11
 
@@ -30,11 +30,11 @@ The full Google Fonts library can be found here - [Google Fonts](https://fonts.g
30
  * SSL and HTTPS compatible.
31
  * Efficient Font Loading using a single request.
32
  * **SEO-Friendly** (Search Engine Optimization).
33
- * Tested with **PHP7**
34
- * Selective Font Loading
35
- * Preconnect Resource Hints
36
- * Host Google Fonts Locally
37
- * Font Size, Weight, Color and Line Height Typography Settings
38
 
39
  > Note: some features are Premium. Which means you need to upgrade to unlock those features. You can upgrade here: [Google Fonts Pro](https://fontsplugin.com/pro-upgrade/?utm_source=wporg&utm_campaign=upgrade)
40
 
@@ -42,12 +42,12 @@ The full Google Fonts library can be found here - [Google Fonts](https://fonts.g
42
 
43
  The Google Fonts for WordPress plugin will work with all WordPress themes and has been specifically tested with the following:
44
 
45
- * All OlympusThemes
46
  * All StudioPress and Genesis Themes
47
- * TwentyFifteen
48
- * TwentySixteen
49
- * TwentySeventeen
50
  * ThemeGrill
 
51
  * ThemeIsle
52
 
53
  ### Further Reading
@@ -67,8 +67,8 @@ If you find an issue with Google Fonts Typography, let us know [here](https://wo
67
  = Google Fonts Gutenberg Block =
68
  Add some flair to your content with our new Gutenberg block.
69
 
70
- * All 900+ fonts available in the editor
71
- * Font size, variant and line-height settings
72
  * Text-align: left, right or center.
73
 
74
  = Contributions =
5
  Requires at least: 4.0
6
  Tested up to: 5.4
7
  License: GPLv2 or later
8
+ Stable tag: 2.0.0
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 900+ font choices.
11
 
30
  * SSL and HTTPS compatible.
31
  * Efficient Font Loading using a single request.
32
  * **SEO-Friendly** (Search Engine Optimization).
33
+ * Tested with **PHP7**.
34
+ * Selective Font Loading.
35
+ * Preconnect Resource Hints.
36
+ * Host Google Fonts Locally.
37
+ * Font Size, Weight, Color and Line Height Typography Settings.
38
 
39
  > Note: some features are Premium. Which means you need to upgrade to unlock those features. You can upgrade here: [Google Fonts Pro](https://fontsplugin.com/pro-upgrade/?utm_source=wporg&utm_campaign=upgrade)
40
 
42
 
43
  The Google Fonts for WordPress plugin will work with all WordPress themes and has been specifically tested with the following:
44
 
 
45
  * All StudioPress and Genesis Themes
46
+ * Twenty Seventeen
47
+ * Twenty Nineteen
48
+ * Twenty Twenty
49
  * ThemeGrill
50
+ * LyraThemes
51
  * ThemeIsle
52
 
53
  ### Further Reading
67
  = Google Fonts Gutenberg Block =
68
  Add some flair to your content with our new Gutenberg block.
69
 
70
+ * All 900+ fonts available in the editor.
71
+ * Font size, variant and line-height settings.
72
  * Text-align: left, right or center.
73
 
74
  = Contributions =