Optin Forms - Version 1.2.8.2

Version Description

  • Fixes issue with Google Fonts console error for form design 06
Download this release

Release Info

Developer FancyThemes
Plugin Icon 128x128 Optin Forms
Version 1.2.8.2
Comparing to
See all releases

Code changes from version 1.2.8.1 to 1.2.8.2

Files changed (3) hide show
  1. includes/functions.php +6 -0
  2. optin-forms.php +4 -2
  3. readme.txt +5 -2
includes/functions.php CHANGED
@@ -616,6 +616,12 @@ function optinforms_get_used_fonts() {
616
 
617
  // Now include only these fonts to optimize load time
618
  function optinforms_used_fonts() {
 
 
 
 
 
 
619
  $optinforms_google_url = "//fonts.googleapis.com/css?family=";
620
  return $optinforms_google_url.optinforms_get_used_fonts();
621
 
616
 
617
  // Now include only these fonts to optimize load time
618
  function optinforms_used_fonts() {
619
+
620
+ // if no font needed return false
621
+ if ( ! optinforms_get_used_fonts() ) {
622
+ return false;
623
+ }
624
+
625
  $optinforms_google_url = "//fonts.googleapis.com/css?family=";
626
  return $optinforms_google_url.optinforms_get_used_fonts();
627
 
optin-forms.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Optin Forms
4
  Plugin URI: http://fancythemes.com/plugins/optin-forms/
5
  Description: Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.
6
  Author: FancyThemes
7
- Version: 1.2.8.1
8
  Author URI: http://www.fancythemes.com
9
  Text Domain: optin-forms
10
  Domain Path: /languages/
@@ -118,7 +118,9 @@ class Optin_Forms {
118
  wp_enqueue_script('jquery');
119
  wp_enqueue_style('optinforms-stylesheet', plugins_url('/css/optinforms.css', __FILE__ ), array('optinforms-googleFont'));
120
  wp_enqueue_script('placeholder', plugins_url('/js/placeholder.js', __FILE__ ));
121
- wp_register_style('optinforms-googleFont', optinforms_used_fonts());
 
 
122
 
123
  global $optinforms_forms;
124
 
4
  Plugin URI: http://fancythemes.com/plugins/optin-forms/
5
  Description: Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.
6
  Author: FancyThemes
7
+ Version: 1.2.8.2
8
  Author URI: http://www.fancythemes.com
9
  Text Domain: optin-forms
10
  Domain Path: /languages/
118
  wp_enqueue_script('jquery');
119
  wp_enqueue_style('optinforms-stylesheet', plugins_url('/css/optinforms.css', __FILE__ ), array('optinforms-googleFont'));
120
  wp_enqueue_script('placeholder', plugins_url('/js/placeholder.js', __FILE__ ));
121
+ if ( optinforms_used_fonts() ) {
122
+ wp_register_style('optinforms-googleFont', optinforms_used_fonts());
123
+ }
124
 
125
  global $optinforms_forms;
126
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: wpkube, FancyThemes
3
  Tags: optin, form, forms, aweber, email subscriber, icontact, mailchimp, getresponse, mad mimi, newsletter, mailchimp forms, mailchimp integrations, mailchimp plugin, getresponse forms, subscribe, aweber forms, after post optin form, after post optin form plugin, lead generation, mobile optin forms, mobile optins, sidebar form, sidebar optin form, wordpress after post optin form, wordpress lead generation, wordpress popups, optin locker, social locker, enter email to download, interspire, email marketer, email marketing, email, e-mail, list, list building, opt-in, newsletter, email list, autoresponder, popup, pop-up, mailing, mailing list, mail, webform, newsletter plugin, optin plugin, opt-in plugin, conversion, design, convertkit, convert, kit
4
  Requires at least: 3.2
5
- Tested up to: 4.7.2
6
- Stable tag: 1.2.8.1
7
 
8
  Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.
9
 
@@ -54,6 +54,9 @@ Having trouble with the plugin? Simply post your question to the [support forum]
54
  3. Add your form to your website with a simple mouse-click.
55
 
56
  == Changelog ==
 
 
 
57
  = 1.2.8.1 =
58
  * Fixes issue with form design 06 on mobile devices
59
 
2
  Contributors: wpkube, FancyThemes
3
  Tags: optin, form, forms, aweber, email subscriber, icontact, mailchimp, getresponse, mad mimi, newsletter, mailchimp forms, mailchimp integrations, mailchimp plugin, getresponse forms, subscribe, aweber forms, after post optin form, after post optin form plugin, lead generation, mobile optin forms, mobile optins, sidebar form, sidebar optin form, wordpress after post optin form, wordpress lead generation, wordpress popups, optin locker, social locker, enter email to download, interspire, email marketer, email marketing, email, e-mail, list, list building, opt-in, newsletter, email list, autoresponder, popup, pop-up, mailing, mailing list, mail, webform, newsletter plugin, optin plugin, opt-in plugin, conversion, design, convertkit, convert, kit
4
  Requires at least: 3.2
5
+ Tested up to: 4.8
6
+ Stable tag: 1.2.8.2
7
 
8
  Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.
9
 
54
  3. Add your form to your website with a simple mouse-click.
55
 
56
  == Changelog ==
57
+ = 1.2.8.2 =
58
+ * Fixes issue with Google Fonts console error for form design 06
59
+
60
  = 1.2.8.1 =
61
  * Fixes issue with form design 06 on mobile devices
62