Google Fonts for WordPress - Version 2.3.9

Version Description

Download this release

Release Info

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

Code changes from version 2.3.8 to 2.3.9

admin/class-ogf-welcome-screen.php CHANGED
@@ -68,13 +68,6 @@ class OGF_Admin_Welcome_Screen {
68
  * Options page callback
69
  */
70
  public function render_welcome_page() {
71
-
72
- if ( get_option( 'ogf_dismiss_guide', false ) !== false ) {
73
- return;
74
- }
75
-
76
- $current_user = wp_get_current_user();
77
- $email = ( string ) $current_user->user_email;
78
  ?>
79
  <div class="eb-wrap">
80
  <div class="eb-content">
@@ -91,13 +84,20 @@ class OGF_Admin_Welcome_Screen {
91
  <li>How to use Google Fonts without <strong>slowing down</strong> your website.</li>
92
  </ul>
93
  <p>Download your free copy today.</p>
94
- <!-- Begin Mailchimp Signup Form -->
95
- <form action="https://fontsplugin.us9.list-manage.com/subscribe/post?u=1ed15f4383eb532a1a1034fb9&amp;id=2ed49283a0" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
96
- <input type="email" value="<?php echo sanitize_email( $email ); ?>" placeholder="Your email address..." name="EMAIL" class="required email" id="mce-EMAIL">
97
- <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_1ed15f4383eb532a1a1034fb9_2ed49283a0" tabindex="-1" value=""></div>
98
- <input type="submit" value="Send My Guide!" name="subscribe" id="mc-embedded-subscribe" class="ogf-send-guide-button button">
99
- </form>
100
- <!--End mc_embed_signup-->
 
 
 
 
 
 
 
101
  </div>
102
  </div>
103
  </div>
68
  * Options page callback
69
  */
70
  public function render_welcome_page() {
 
 
 
 
 
 
 
71
  ?>
72
  <div class="eb-wrap">
73
  <div class="eb-content">
84
  <li>How to use Google Fonts without <strong>slowing down</strong> your website.</li>
85
  </ul>
86
  <p>Download your free copy today.</p>
87
+
88
+ <?php if ( get_option( 'ogf_dismiss_guide', false ) === false ) : ?>
89
+ <form action="https://fontsplugin.email/subscribe" method="post" class="validate" target="_blank" novalidate>
90
+ <input type="email" value="" placeholder="Your email address..." name="email" class="required email" id="mce-EMAIL">
91
+ <input type="hidden" name="list" value="2guyf8U56tOENOh6892lBQ6w"/>
92
+ <input type="hidden" name="subform" value="yes"/>
93
+ <input type="submit" value="Send My Guide!" name="submit" class="ogf-send-guide-button button">
94
+ </form>
95
+ <?php else : ?>
96
+
97
+ <a class="ogf-send-guide-button button" href="https://fontsplugin.com/wp-content/uploads/qs-guide.pdf" target="_blank">Read Guide</a>
98
+
99
+ <?php endif; ?>
100
+
101
  </div>
102
  </div>
103
  </div>
assets/js/admin.js CHANGED
@@ -19,6 +19,9 @@ jQuery( document ).ready( function() {
19
  data: {
20
  action: 'ogf_dismiss_guide',
21
  },
 
 
 
22
  }
23
  );
24
  }
19
  data: {
20
  action: 'ogf_dismiss_guide',
21
  },
22
+ complete: function(){
23
+ location.reload();
24
+ }
25
  }
26
  );
27
  }
changelog.txt CHANGED
@@ -1,5 +1,9 @@
1
  = 2.3.8 =
2
 
 
 
 
 
3
  * Administrators can now disable the editor-level font controls
4
 
5
  = 2.3.7 =
1
  = 2.3.8 =
2
 
3
+ * Improve QS Guide page
4
+
5
+ = 2.3.8 =
6
+
7
  * Administrators can now disable the editor-level font controls
8
 
9
  = 2.3.7 =
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.3.8
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.3.8' );
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.3.9
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.3.9' );
23
  }
24
 
25
  if ( ! defined( 'OGF_DIR_PATH' ) ) {
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: DannyCooper, googlefonts, fontsplugin
3
  Tags: google, fonts, google fonts, typography, elementor
4
  Donate link: https://fontsplugin.com/#pricing
5
  Requires at least: 4.0
6
- Tested up to: 5.5
7
  License: GPLv2 or later
8
- Stable tag: 2.3.8
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 900+ font choices.
11
 
3
  Tags: google, fonts, google fonts, typography, elementor
4
  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.3.9
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 900+ font choices.
11