Google Fonts for WordPress - Version 1.2.5

Version Description

Release Date - October 5 2018

  • Improve theme compatibility.
Download this release

Release Info

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

Code changes from version 1.2.2 to 1.2.5

assets/css/customize-controls.css CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  .customize-control-typography li.typography-font-family select {
2
  width: 85%;
3
  }
1
+ #customize-theme-controls #sub-accordion-section-olympus-google-fonts {
2
+ overflow: visible;
3
+ }
4
+
5
  .customize-control-typography li.typography-font-family select {
6
  width: 85%;
7
  }
assets/js/color-picker.js CHANGED
@@ -1,8 +1,8 @@
1
- (function( $ ) {
2
 
3
  // Add Color Picker to all inputs that have 'color-field' class
4
- $(function() {
5
- $('.color-picker-hex').wpColorPicker();
6
  });
7
 
8
  })( jQuery );
1
+ (function( jQuery ) {
2
 
3
  // Add Color Picker to all inputs that have 'color-field' class
4
+ jQuery(function() {
5
+ jQuery('.color-picker-hex').wpColorPicker();
6
  });
7
 
8
  })( jQuery );
assets/js/customize-controls.js CHANGED
@@ -6,7 +6,7 @@
6
 
7
  function addGoogleFont(fontName) {
8
  var font = control.params.ogf_fonts[fontName];
9
- var weights = $.map(font.variants, function(value, key) {
10
  return key;
11
  });
12
  var weightsURL = weights.join(',');
@@ -25,8 +25,8 @@
25
  var weightsSelect = jQuery( '.typography-font-weight select' );
26
  var newWeights = font.variants;
27
  weightsSelect.empty();
28
- $.each( newWeights, function( key, val ) {
29
- weightsSelect.append( $( "<option></option>" )
30
  .attr( "value", key ).text( val ) );
31
  });
32
  }
@@ -50,7 +50,7 @@
50
  },
51
  });
52
 
53
- $('.ogf-select').chosen({width: "85%"});
54
 
55
  }
56
  } );
6
 
7
  function addGoogleFont(fontName) {
8
  var font = control.params.ogf_fonts[fontName];
9
+ var weights = jQuery.map(font.variants, function(value, key) {
10
  return key;
11
  });
12
  var weightsURL = weights.join(',');
25
  var weightsSelect = jQuery( '.typography-font-weight select' );
26
  var newWeights = font.variants;
27
  weightsSelect.empty();
28
+ jQuery.each( newWeights, function( key, val ) {
29
+ weightsSelect.append( jQuery( "<option></option>" )
30
  .attr( "value", key ).text( val ) );
31
  });
32
  }
50
  },
51
  });
52
 
53
+ jQuery('.ogf-select').chosen({width: "85%"});
54
 
55
  }
56
  } );
assets/js/customize-preview.js CHANGED
@@ -6,7 +6,7 @@ jQuery( document ).ready( function() {
6
  wp.customize.bind( 'preview-ready', function() {
7
 
8
  wp.customize.preview.bind( 'olympusFontURL', function( url ) {
9
- $("head").append( url );
10
  } );
11
  } );
12
 
6
  wp.customize.bind( 'preview-ready', function() {
7
 
8
  wp.customize.preview.bind( 'olympusFontURL', function( url ) {
9
+ jQuery("head").append( url );
10
  } );
11
  } );
12
 
includes/customizer/output-css.php CHANGED
@@ -12,20 +12,20 @@
12
  */
13
  function ogf_output_css() {
14
  ?>
15
- <!-- Olympus Google Fonts CSS -->
16
  <style>
17
  <?php ogf_generate_css( 'body', 'ogf_body_font' ); ?>
18
- <?php ogf_generate_css( '.site-title, h1, h2, h3, h4, h5, h6', 'ogf_headings_font' ); ?>
19
  <?php ogf_generate_css( 'button, input, select, textarea', 'ogf_inputs_font' ); ?>
20
 
21
  /* Advanced Settings */
22
 
23
- <?php ogf_generate_css( '.site-title', 'ogf_site_title_font' ); ?>
24
- <?php ogf_generate_css( '.site-description', 'ogf_site_description_font' ); ?>
25
  <?php ogf_generate_css( '.menu, .page_item, .menu-item', 'ogf_navigation_font' ); ?>
26
- <?php ogf_generate_css( 'article h1, article h2, article h3, article h4, article h5, article h6', 'ogf_post_page_headings_font' ); ?>
27
- <?php ogf_generate_css( 'article', 'ogf_post_page_content_font' ); ?>
28
- <?php ogf_generate_css( '.widget-area h1, .widget-area h2, .widget-area h3, .widget-area h4, .widgets-area h5, .widget-area h6', 'ogf_sidebar_headings_font' ); ?>
29
  <?php ogf_generate_css( '.widget-area', 'ogf_sidebar_content_font' ); ?>
30
  <?php ogf_generate_css( 'footer h1, footer h2, footer h3, footer h4, .widgets-area h5, footer h6', 'ogf_footer_headings_font' ); ?>
31
  <?php ogf_generate_css( 'footer', 'ogf_footer_content_font' ); ?>
12
  */
13
  function ogf_output_css() {
14
  ?>
15
+ <!-- Olympus Google Fonts CSS - https://wordpress.org/plugins/olympus-google-fonts/ -->
16
  <style>
17
  <?php ogf_generate_css( 'body', 'ogf_body_font' ); ?>
18
+ <?php ogf_generate_css( '#site-title, .site-title, h1, h2, h3, h4, h5, h6', 'ogf_headings_font' ); ?>
19
  <?php ogf_generate_css( 'button, input, select, textarea', 'ogf_inputs_font' ); ?>
20
 
21
  /* Advanced Settings */
22
 
23
+ <?php ogf_generate_css( '#site-title, .site-title', 'ogf_site_title_font' ); ?>
24
+ <?php ogf_generate_css( '#site-description, .site-description', 'ogf_site_description_font' ); ?>
25
  <?php ogf_generate_css( '.menu, .page_item, .menu-item', 'ogf_navigation_font' ); ?>
26
+ <?php ogf_generate_css( '.entry-title, .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6', 'ogf_post_page_headings_font' ); ?>
27
+ <?php ogf_generate_css( '.entry-content', 'ogf_post_page_content_font' ); ?>
28
+ <?php ogf_generate_css( '.widget-area h1, .widget-area h2, .widget-area h3, .widget-area h4, .widgets-area h5, .widget-area h6, .widget-title', 'ogf_sidebar_headings_font' ); ?>
29
  <?php ogf_generate_css( '.widget-area', 'ogf_sidebar_content_font' ); ?>
30
  <?php ogf_generate_css( 'footer h1, footer h2, footer h3, footer h4, .widgets-area h5, footer h6', 'ogf_footer_headings_font' ); ?>
31
  <?php ogf_generate_css( 'footer', 'ogf_footer_content_font' ); ?>
includes/customizer/settings.php CHANGED
@@ -436,6 +436,20 @@ function ogf_customize_register( $wp_customize ) {
436
  )
437
  );
438
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
439
  }
440
  add_action( 'customize_register', 'ogf_customize_register' );
441
 
436
  )
437
  );
438
 
439
+ $wp_customize->add_setting( 'ogf_force_styles', array(
440
+ 'default' => '',
441
+ 'transport' => 'refresh',
442
+ 'sanitize_callback' => 'ogf_sanitize_checkbox',
443
+ ) );
444
+
445
+ $wp_customize->add_control( 'force_styles', array(
446
+ 'label' => esc_html__( 'Force Styles?', 'olympus-google-fonts' ),
447
+ 'section' => 'olympus-google-fonts',
448
+ 'settings' => 'ogf_force_styles',
449
+ 'type' => 'checkbox',
450
+ 'description' => esc_html__( 'If your choices are not displaying correctly, check this box.', 'olympus-google-fonts' ),
451
+ ) );
452
+
453
  }
454
  add_action( 'customize_register', 'ogf_customize_register' );
455
 
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.2.2
9
  * Author: Danny Cooper
10
  * Author URI: https://olympusthemes.com/
11
  * Text Domain: olympus-google-fonts
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.2.5
9
  * Author: Danny Cooper
10
  * Author URI: https://olympusthemes.com/
11
  * Text Domain: olympus-google-fonts
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: DannyCooper, googlefonts
3
  Tags: google fonts, google fonts for wordpress, fonts, live preview, google-fonts
4
  Requires at least: 4.0
5
- Tested up to: 4.9.7
6
  License: GPLv2 or later
7
  Stable tag: trunk
8
 
@@ -73,6 +73,22 @@ We are 99.99% certain it will, if it doesn't then please create a [support ticke
73
 
74
  == Changelog ==
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  = 1.2.2 =
77
  *Release Date - July 12 2018*
78
 
2
  Contributors: DannyCooper, googlefonts
3
  Tags: google fonts, google fonts for wordpress, fonts, live preview, google-fonts
4
  Requires at least: 4.0
5
+ Tested up to: 4.9.8
6
  License: GPLv2 or later
7
  Stable tag: trunk
8
 
73
 
74
  == Changelog ==
75
 
76
+ = 1.2.5 =
77
+ *Release Date - October 5 2018*
78
+
79
+ * Improve theme compatibility.
80
+
81
+ = 1.2.4 =
82
+ *Release Date - August 14 2018*
83
+
84
+ * Improve customizer CSS.
85
+ * Improve Javascript code.
86
+
87
+ = 1.2.3 =
88
+ *Release Date - August 6 2018*
89
+
90
+ * Improve CSS for post/page headings and content.
91
+
92
  = 1.2.2 =
93
  *Release Date - July 12 2018*
94