Local Google Fonts - Version 0.11

Version Description

Download this release

Release Info

Developer everpress
Plugin Icon 128x128 Local Google Fonts
Version 0.11
Comparing to
See all releases

Code changes from version 0.10 to 0.11

README.md CHANGED
@@ -4,7 +4,7 @@ Contributors: everpress, xaverb
4
  Tags: googlefonts, google, fonts, gdpr, lgf, font, speed
5
  Requires at least: 4.6
6
  Tested up to: 6.0
7
- Stable tag: 0.10
8
  Requires PHP: 5.6+
9
  License: GPLv2 or later
10
  Author: EverPress
@@ -64,6 +64,12 @@ The Divi theme has a custom implementation of Google Fonts. To use LGF with Divi
64
 
65
  ## Changelog
66
 
 
 
 
 
 
 
67
  ### 0.10
68
 
69
  - fixed: rending issue on some fonts (please reload fonts if you use one of these: "exo-2", "inter", "jost" or "montserrat")
4
  Tags: googlefonts, google, fonts, gdpr, lgf, font, speed
5
  Requires at least: 4.6
6
  Tested up to: 6.0
7
+ Stable tag: 0.11
8
  Requires PHP: 5.6+
9
  License: GPLv2 or later
10
  Author: EverPress
64
 
65
  ## Changelog
66
 
67
+ ### 0.11
68
+
69
+ - fixed: problem on customizer in Neve theme
70
+ - fixed wrong domain on translations
71
+ - update F.A.Q. for DIVI theme
72
+
73
  ### 0.10
74
 
75
  - fixed: rending issue on some fonts (please reload fonts if you use one of these: "exo-2", "inter", "jost" or "montserrat")
includes/class-local-google-fonts-admin.php CHANGED
@@ -57,6 +57,8 @@ class LGF_Admin {
57
  wp_enqueue_script( 'local-google-fonts-admin', $url . '/admin.js', array( 'jquery' ), filemtime( $path . '/admin.js' ), true );
58
  wp_enqueue_style( 'local-google-fonts-admin', $url . '/admin.css', array(), filemtime( $path . '/admin.css' ) );
59
 
 
 
60
  }
61
 
62
  public function local_google_fonts_validate( $options ) {
@@ -135,7 +137,7 @@ class LGF_Admin {
135
  <?php submit_button(); ?>
136
 
137
  <hr>
138
- <h2><?php printf( esc_html__( _n( '%d Google font source found on your site.', '%d Google font sources found on your site.', $count, 'local-google-font' ) ), $count ); ?></h2>
139
 
140
  <p><?php esc_html_e( 'This page shows all discovered Google Fonts over time. If you miss a font start browsing your front end so they end up showing here.', 'local-google-fonts' ); ?></p>
141
 
@@ -392,4 +394,7 @@ class LGF_Admin {
392
 
393
  }
394
 
 
 
 
395
  }
57
  wp_enqueue_script( 'local-google-fonts-admin', $url . '/admin.js', array( 'jquery' ), filemtime( $path . '/admin.js' ), true );
58
  wp_enqueue_style( 'local-google-fonts-admin', $url . '/admin.css', array(), filemtime( $path . '/admin.css' ) );
59
 
60
+ add_action( 'admin_footer_text', array( $this, 'admin_footer_text' ) );
61
+
62
  }
63
 
64
  public function local_google_fonts_validate( $options ) {
137
  <?php submit_button(); ?>
138
 
139
  <hr>
140
+ <h2><?php printf( esc_html__( _n( '%d Google font source found on your site.', '%d Google font sources found on your site.', $count, 'local-google-fonts' ) ), $count ); ?></h2>
141
 
142
  <p><?php esc_html_e( 'This page shows all discovered Google Fonts over time. If you miss a font start browsing your front end so they end up showing here.', 'local-google-fonts' ); ?></p>
143
 
394
 
395
  }
396
 
397
+ public function admin_footer_text( $default ) {
398
+ return sprintf( esc_html__( 'If you like %1$s please leave a %2$s&#9733;&#9733;&#9733;&#9733;&#9733;%3$s rating. Thanks in advance!', 'local-google-fonts' ), '<strong>Local Google Fonts</strong>', '<a href="https://wordpress.org/support/view/plugin-reviews/local-google-fonts?filter=5#new-post" target="_blank" rel="noopener noreferrer">', '</a>' );
399
+ }
400
  }
includes/class-local-google-fonts.php CHANGED
@@ -182,6 +182,11 @@ class LGF {
182
  $src = add_query_arg( 'v', filemtime( $stylesheet ), $stylesheet_url );
183
  } else {
184
 
 
 
 
 
 
185
  if ( is_null( $handle ) ) {
186
  $handle = $id;
187
  }
182
  $src = add_query_arg( 'v', filemtime( $stylesheet ), $stylesheet_url );
183
  } else {
184
 
185
+ // special case for neve theme (https://wordpress.org/support/topic/problems-with-neve-theme-costomizer/)
186
+ if ( false !== strpos( $handle, 'neve-fonts-control-google-fonts-' ) ) {
187
+ return $src;
188
+ }
189
+
190
  if ( is_null( $handle ) ) {
191
  $handle = $id;
192
  }
local-google-fonts.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Local Google Fonts
4
  Description: Host your used Google fonts on your server and make your site GDPR compliant.
5
- Version: 0.10
6
  Author: EverPress
7
  Author URI: https://everpress.co
8
  License: GPLv2 or later
2
  /*
3
  Plugin Name: Local Google Fonts
4
  Description: Host your used Google fonts on your server and make your site GDPR compliant.
5
+ Version: 0.11
6
  Author: EverPress
7
  Author URI: https://everpress.co
8
  License: GPLv2 or later