Version Description
Download this release
Release Info
Developer | DannyCooper |
Plugin | Google Fonts for WordPress |
Version | 1.7.0 |
Comparing to | |
See all releases |
Code changes from version 1.6.3 to 1.7.0
- assets/js/customize-controls.js +36 -4
- blocks/init.php +1 -1
- class-olympus-google-fonts.php +3 -1
- includes/class-ogf-deactivation.php +1 -1
- includes/class-ogf-fonts.php +1 -1
- includes/class-ogf-notifications.php +1 -1
- includes/class-ogf-welcome.php +1 -1
- includes/customizer/controls/class-ogf-customize-multiple-checkbox-control.php +1 -1
- includes/customizer/controls/class-ogf-customize-panel.php +1 -1
- includes/customizer/controls/class-ogf-customize-repeater-control.php +1 -1
- includes/customizer/controls/class-ogf-customize-typography-control.php +1 -1
- includes/customizer/controls/class-ogf-customize-upsell-control.php +1 -1
- includes/customizer/output-css.php +1 -1
- includes/customizer/panels.php +1 -1
- includes/customizer/settings.php +1 -1
- includes/functions.php +2 -2
- olympus-google-fonts.php +3 -3
- readme.txt +2 -2
assets/js/customize-controls.js
CHANGED
@@ -80,10 +80,6 @@
|
|
80 |
// Initialize chosen.js
|
81 |
jQuery( '.ogf-select' ).chosen( { width: '85%' } );
|
82 |
|
83 |
-
/**
|
84 |
-
* Slider Custom Control
|
85 |
-
*/
|
86 |
-
|
87 |
// Set our slider defaults and initialise the slider
|
88 |
jQuery( '.slider-custom-control' ).each( function() {
|
89 |
const sliderValue = jQuery( this ).find( '.customize-control-slider-value' ).val();
|
@@ -134,6 +130,42 @@
|
|
134 |
jQuery( this ).parent().find( '.slider' ).slider( 'value', resetValue );
|
135 |
} );
|
136 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
}
|
138 |
);
|
139 |
}( wp.customize ) );
|
80 |
// Initialize chosen.js
|
81 |
jQuery( '.ogf-select' ).chosen( { width: '85%' } );
|
82 |
|
|
|
|
|
|
|
|
|
83 |
// Set our slider defaults and initialise the slider
|
84 |
jQuery( '.slider-custom-control' ).each( function() {
|
85 |
const sliderValue = jQuery( this ).find( '.customize-control-slider-value' ).val();
|
130 |
jQuery( this ).parent().find( '.slider' ).slider( 'value', resetValue );
|
131 |
} );
|
132 |
},
|
133 |
+
/**
|
134 |
+
* Embed the control in the document.
|
135 |
+
*
|
136 |
+
* Override the embed() method to do nothing,
|
137 |
+
* so that the control isn't embedded on load,
|
138 |
+
* unless the containing section is already expanded.
|
139 |
+
*
|
140 |
+
*/
|
141 |
+
embed: function() {
|
142 |
+
const control = this;
|
143 |
+
const sectionId = control.section();
|
144 |
+
if ( ! sectionId ) {
|
145 |
+
return;
|
146 |
+
}
|
147 |
+
wp.customize.section( sectionId, function( section ) {
|
148 |
+
section.expanded.bind( function( expanded ) {
|
149 |
+
if ( expanded ) {
|
150 |
+
control.actuallyEmbed();
|
151 |
+
}
|
152 |
+
} );
|
153 |
+
} );
|
154 |
+
},
|
155 |
+
/**
|
156 |
+
* Deferred embedding of control when actually
|
157 |
+
*
|
158 |
+
* This function is called in Section.onChangeExpanded() so the control
|
159 |
+
* will only get embedded when the Section is first expanded.
|
160 |
+
*/
|
161 |
+
actuallyEmbed: function() {
|
162 |
+
const control = this;
|
163 |
+
if ( 'resolved' === control.deferred.embedded.state() ) {
|
164 |
+
return;
|
165 |
+
}
|
166 |
+
control.renderContent();
|
167 |
+
control.deferred.embedded.resolve(); // This triggers control.ready().
|
168 |
+
},
|
169 |
}
|
170 |
);
|
171 |
}( wp.customize ) );
|
blocks/init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Blocks Package
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
3 |
* Blocks Package
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
class-olympus-google-fonts.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Main Olympus_Google_Fonts Class
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
@@ -19,6 +19,8 @@ class Olympus_Google_Fonts {
|
|
19 |
|
20 |
$this->includes();
|
21 |
|
|
|
|
|
22 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue' ), 1000 ); // ensure our Google Font styles load last.
|
23 |
add_filter( 'wp_resource_hints', array( $this, 'resource_hints' ), 10, 2 );
|
24 |
add_action( 'customize_controls_enqueue_scripts', array( $this, 'customize_controls_enqueue' ) );
|
3 |
* Main Olympus_Google_Fonts Class
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
19 |
|
20 |
$this->includes();
|
21 |
|
22 |
+
add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
|
23 |
+
|
24 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue' ), 1000 ); // ensure our Google Font styles load last.
|
25 |
add_filter( 'wp_resource_hints', array( $this, 'resource_hints' ), 10, 2 );
|
26 |
add_action( 'customize_controls_enqueue_scripts', array( $this, 'customize_controls_enqueue' ) );
|
includes/class-ogf-deactivation.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Deactivation Feedback Class.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
3 |
* Deactivation Feedback Class.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
includes/class-ogf-fonts.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Build the URL to load the chosen Google Fonts.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
3 |
* Build the URL to load the chosen Google Fonts.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
includes/class-ogf-notifications.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Prompts users to give a review of the plugin on WordPress.org after a period of usage.
|
5 |
*
|
6 |
* @package olympus-google-fonts
|
7 |
-
* @copyright Copyright (c) 2019,
|
8 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
9 |
*/
|
10 |
|
4 |
* Prompts users to give a review of the plugin on WordPress.org after a period of usage.
|
5 |
*
|
6 |
* @package olympus-google-fonts
|
7 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
8 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
9 |
*/
|
10 |
|
includes/class-ogf-welcome.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Welcome Notice Class.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
3 |
* Welcome Notice Class.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
includes/customizer/controls/class-ogf-customize-multiple-checkbox-control.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Multiple Checkbox Custom Control
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
3 |
* Multiple Checkbox Custom Control
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
includes/customizer/controls/class-ogf-customize-panel.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Customize Repeater Custom Control
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
3 |
* Customize Repeater Custom Control
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
includes/customizer/controls/class-ogf-customize-repeater-control.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Customize Repeater Custom Control
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
3 |
* Customize Repeater Custom Control
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
includes/customizer/controls/class-ogf-customize-typography-control.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Typography Custom Control
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
3 |
* Typography Custom Control
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
includes/customizer/controls/class-ogf-customize-upsell-control.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Upsell Custom Control
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
3 |
* Upsell Custom Control
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
includes/customizer/output-css.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Output the Google Fonts CSS.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
3 |
* Output the Google Fonts CSS.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
includes/customizer/panels.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Add multi-level panel functionality.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
3 |
* Add multi-level panel functionality.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
includes/customizer/settings.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Register the customizer settings.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
3 |
* Register the customizer settings.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
includes/functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Helper functions.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
-
* @copyright Copyright (c) 2019,
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
@@ -122,7 +122,7 @@ function ogf_get_elements() {
|
|
122 |
'label' => esc_html__( 'Content Typography', 'olympus-google-fonts' ),
|
123 |
'description' => esc_html__( 'Select and configure the font for your sidebar content.', 'olympus-google-fonts' ),
|
124 |
'section' => 'ogf_advanced__sidebar',
|
125 |
-
'selectors' => '.widget-area',
|
126 |
),
|
127 |
'ogf_footer_headings' => array(
|
128 |
'label' => esc_html__( 'Headings Typography', 'olympus-google-fonts' ),
|
3 |
* Helper functions.
|
4 |
*
|
5 |
* @package olympus-google-fonts
|
6 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
*/
|
9 |
|
122 |
'label' => esc_html__( 'Content Typography', 'olympus-google-fonts' ),
|
123 |
'description' => esc_html__( 'Select and configure the font for your sidebar content.', 'olympus-google-fonts' ),
|
124 |
'section' => 'ogf_advanced__sidebar',
|
125 |
+
'selectors' => '.widget-area, .widget, .sidebar, #sidebar',
|
126 |
),
|
127 |
'ogf_footer_headings' => array(
|
128 |
'label' => esc_html__( 'Headings Typography', 'olympus-google-fonts' ),
|
olympus-google-fonts.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin Name: Google Fonts for WordPress
|
6 |
* Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
|
7 |
* Description: The easiest to use Google Fonts plugin. No coding required. 870+ font choices.
|
8 |
-
* Version: 1.
|
9 |
* Author: Fonts Plugin
|
10 |
* Author URI: https://fontsplugin.com/?utm_source=wporg&utm_campaign=heading
|
11 |
* Text Domain: olympus-google-fonts
|
@@ -14,11 +14,11 @@
|
|
14 |
* Domain Path: /languages
|
15 |
*
|
16 |
* @package olympus-google-fonts
|
17 |
-
* @copyright Copyright (c) 2019,
|
18 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
19 |
*/
|
20 |
|
21 |
-
define( 'OGF_VERSION', '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 for WordPress
|
6 |
* Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
|
7 |
* Description: The easiest to use Google Fonts plugin. No coding required. 870+ font choices.
|
8 |
+
* Version: 1.7.0
|
9 |
* Author: Fonts Plugin
|
10 |
* Author URI: https://fontsplugin.com/?utm_source=wporg&utm_campaign=heading
|
11 |
* Text Domain: olympus-google-fonts
|
14 |
* Domain Path: /languages
|
15 |
*
|
16 |
* @package olympus-google-fonts
|
17 |
+
* @copyright Copyright (c) 2019, Fonts Plugin
|
18 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
19 |
*/
|
20 |
|
21 |
+
define( 'OGF_VERSION', '1.7.0' );
|
22 |
define( 'OGF_DIR_PATH', plugin_dir_path( __FILE__ ) );
|
23 |
define( 'OGF_DIR_URL', plugin_dir_url( __FILE__ ) );
|
24 |
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: DannyCooper, googlefonts
|
|
3 |
Tags: google, fonts, google fonts, google fonts for wordpress, typography
|
4 |
Donate link: https://fontsplugin.com/#pricing
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 5.
|
7 |
License: GPLv2 or later
|
8 |
-
Stable tag: 1.
|
9 |
|
10 |
The easiest to use Google Fonts Plugin. No coding required. 870+ font choices.
|
11 |
|
3 |
Tags: google, fonts, google fonts, google fonts for wordpress, typography
|
4 |
Donate link: https://fontsplugin.com/#pricing
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 5.2
|
7 |
License: GPLv2 or later
|
8 |
+
Stable tag: 1.7.0
|
9 |
|
10 |
The easiest to use Google Fonts Plugin. No coding required. 870+ font choices.
|
11 |
|