Version Description
Download this release
Release Info
Developer | DannyCooper |
Plugin | Google Fonts for WordPress |
Version | 2.1.5 |
Comparing to | |
See all releases |
Code changes from version 2.1.4 to 2.1.5
- changelog.txt +4 -0
- compatibility/automatticc.php +23 -0
- includes/customizer/output-css.php +2 -2
- olympus-google-fonts.php +2 -2
- readme.txt +1 -1
changelog.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
= 2.1.4 =
|
2 |
|
3 |
* Expand sidebar CSS selectors.
|
1 |
+
= 2.1.5 =
|
2 |
+
|
3 |
+
* Rewrite CSS vars to use Automattic's theme format.
|
4 |
+
|
5 |
= 2.1.4 =
|
6 |
|
7 |
* Expand sidebar CSS selectors.
|
compatibility/automatticc.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Compatibility file for Automattic 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 compatibility with LyraThemes themes.
|
12 |
+
*
|
13 |
+
* @param array $elements The default elements.
|
14 |
+
*/
|
15 |
+
function ogf_automattic_elements( $elements ) {
|
16 |
+
|
17 |
+
$elements['ogf_body']['selectors'] = 'body, .entry-content, .widget, .sidebar, #sidebar, footer, .footer, #footer, .site-footer, ul, ol';
|
18 |
+
$elements['ogf_post_page_content']['selectors'] = '.entry-content, .entry-content p, .entry-content ul, .entry-content ol';
|
19 |
+
return $elements;
|
20 |
+
|
21 |
+
}
|
22 |
+
|
23 |
+
add_filter( 'ogf_elements', 'ogf_automattic_elements' );
|
includes/customizer/output-css.php
CHANGED
@@ -205,8 +205,8 @@ function ogf_generate_css_variables() {
|
|
205 |
$css =
|
206 |
'
|
207 |
:root {
|
208 |
-
--font-
|
209 |
-
--font-
|
210 |
--font-input: ' . esc_attr( $inputs_font_stack ) . ';
|
211 |
}
|
212 |
';
|
205 |
$css =
|
206 |
'
|
207 |
:root {
|
208 |
+
--font-base: ' . esc_attr( $body_font_stack ) . ';
|
209 |
+
--font-headings: ' . esc_attr( $headings_font_stack ) . ';
|
210 |
--font-input: ' . esc_attr( $inputs_font_stack ) . ';
|
211 |
}
|
212 |
';
|
olympus-google-fonts.php
CHANGED
@@ -5,7 +5,7 @@
|
|
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.1.
|
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
|
@@ -18,7 +18,7 @@
|
|
18 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
19 |
*/
|
20 |
|
21 |
-
define( 'OGF_VERSION', '2.1.
|
22 |
define( 'OGF_DIR_PATH', plugin_dir_path( __FILE__ ) );
|
23 |
define( 'OGF_DIR_URL', plugin_dir_url( __FILE__ ) );
|
24 |
|
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.1.5
|
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
|
18 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
19 |
*/
|
20 |
|
21 |
+
define( 'OGF_VERSION', '2.1.5' );
|
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: 2.1.
|
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.4
|
7 |
License: GPLv2 or later
|
8 |
+
Stable tag: 2.1.5
|
9 |
|
10 |
The easiest to use Google Fonts Typography Plugin. No coding required. 900+ font choices.
|
11 |
|