Popups – WordPress Popup - Version 1.9.3.4

Version Description

  • Update for new contact form 7
Download this release

Release Info

Developer timersys
Plugin Icon 128x128 Popups – WordPress Popup
Version 1.9.3.4
Comparing to
See all releases

Code changes from version 1.9.3.3 to 1.9.3.4

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: popup,twitter,google+,facebook,Popups,twitter follow,facebook like,mailchimp,Activecampaign,Mailpoet,Postmatic,Infusionsoft,mailerlite,constant contact,aweber,google plus,social boost,social splash,postmatic,mailpoet,facebook popup,scroll popups,popups,wordpress popup,wp popups,cf7,gf,gravity forms,contact form 7,ifs,infusion soft,subscribe,login popup,ajax login popups,popupmaker
5
  Requires at least: 3.6
6
  Tested up to: 4.9.8
7
- Stable tag: 1.9.3.3
8
  Requires PHP: 5.3
9
  Text Domain: popups
10
  License: GPLv2 or later
@@ -184,6 +184,9 @@ If you have cache be sure to enable AJAX mode in the plugin settings page
184
 
185
  == Changelog ==
186
 
 
 
 
187
  = 1.9.3.3 =
188
  * Fixed page/post parent rule issue
189
  * More forms compatibility
4
  Tags: popup,twitter,google+,facebook,Popups,twitter follow,facebook like,mailchimp,Activecampaign,Mailpoet,Postmatic,Infusionsoft,mailerlite,constant contact,aweber,google plus,social boost,social splash,postmatic,mailpoet,facebook popup,scroll popups,popups,wordpress popup,wp popups,cf7,gf,gravity forms,contact form 7,ifs,infusion soft,subscribe,login popup,ajax login popups,popupmaker
5
  Requires at least: 3.6
6
  Tested up to: 4.9.8
7
+ Stable tag: 1.9.3.4
8
  Requires PHP: 5.3
9
  Text Domain: popups
10
  License: GPLv2 or later
184
 
185
  == Changelog ==
186
 
187
+ = 1.9.3.4 =
188
+ * Update for new contact form 7
189
+
190
  = 1.9.3.3 =
191
  * Fixed page/post parent rule issue
192
  * More forms compatibility
languages/{popups-fr_FR .po → popups-fr_FR%20.po} RENAMED
File without changes
popups.php CHANGED
@@ -11,7 +11,7 @@
11
  * @socialpopup
12
  * Plugin Name: Popups - WordPress Popup
13
  * Plugin URI: http://www.timersys.com/free-plugins/social-popup/
14
- * Version: 1.9.3.3
15
  * Description: Most complete free Popups plugin, scroll triggered popups, compatible with social networks, Gravity Forms, Ninja Forms, Contact form 7, Mailpoet, Mailchimp for WP, Postmatic, etc
16
  * Author: timersys
17
  * Author URI: https://timersys.com
@@ -30,7 +30,7 @@ if ( ! defined( 'WPINC' ) ) {
30
  * Public-Facing Functionality
31
  *----------------------------------------------------------------------------*/
32
 
33
- define( 'SPU_VERSION' , '1.9.3.3' );
34
  define( 'SPU_PLUGIN_DIR' , plugin_dir_path(__FILE__) );
35
  define( 'SPU_PLUGIN_URL' , plugin_dir_url(__FILE__) );
36
  define( 'SPU_PLUGIN_HOOK' , basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
11
  * @socialpopup
12
  * Plugin Name: Popups - WordPress Popup
13
  * Plugin URI: http://www.timersys.com/free-plugins/social-popup/
14
+ * Version: 1.9.3.4
15
  * Description: Most complete free Popups plugin, scroll triggered popups, compatible with social networks, Gravity Forms, Ninja Forms, Contact form 7, Mailpoet, Mailchimp for WP, Postmatic, etc
16
  * Author: timersys
17
  * Author URI: https://timersys.com
30
  * Public-Facing Functionality
31
  *----------------------------------------------------------------------------*/
32
 
33
+ define( 'SPU_VERSION' , '1.9.3.4' );
34
  define( 'SPU_PLUGIN_DIR' , plugin_dir_path(__FILE__) );
35
  define( 'SPU_PLUGIN_URL' , plugin_dir_url(__FILE__) );
36
  define( 'SPU_PLUGIN_HOOK' , basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
public/assets/js/public.js CHANGED
@@ -786,6 +786,20 @@ function SPU_reload_forms(){
786
  $(this).attr('action' , action.replace('?spu_action=spu_load',''));
787
  }
788
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
789
  if ($.fn.wpcf7InitForm) {
790
  $('.spu-box div.wpcf7 > form').wpcf7InitForm();
791
  }
786
  $(this).attr('action' , action.replace('?spu_action=spu_load',''));
787
  }
788
  });
789
+
790
+ // CF7 > 4.8
791
+ if ( typeof wpcf7 !== 'undefined' && wpcf7 !== null && wpcf7.initForm ) {
792
+
793
+ $('.spu-box div.wpcf7 > form').each(function () {
794
+ wpcf7.initForm( $(this) );
795
+
796
+ if ( wpcf7.cached ) {
797
+ wpcf7.refill( $(this) );
798
+ }
799
+ });
800
+ }
801
+
802
+ // Old Version CF7
803
  if ($.fn.wpcf7InitForm) {
804
  $('.spu-box div.wpcf7 > form').wpcf7InitForm();
805
  }
public/class-social-popup.php CHANGED
@@ -492,6 +492,11 @@ class SocialPopup {
492
 
493
  $opts = $this->spu_settings;
494
 
 
 
 
 
 
495
  wp_enqueue_script($handle);
496
  wp_enqueue_style('spu-public-css');
497
  wp_localize_script( $handle, 'spuvar',
@@ -500,7 +505,7 @@ class SocialPopup {
500
  'disable_style' => isset( $this->spu_settings['shortcodes_style'] ) ? esc_attr( $this->spu_settings['shortcodes_style'] ) : '',
501
  'ajax_mode' => isset( $this->spu_settings['ajax_mode'] ) ? esc_attr( $this->spu_settings['ajax_mode'] ) :'',
502
  'ajax_url' => admin_url('admin-ajax.php'),
503
- 'ajax_mode_url' => site_url('/?spu_action=spu_load&lang='.$this->info['wpml_lang']),
504
  'pid' => get_queried_object_id(),
505
  'is_front_page' => is_front_page(),
506
  'is_category' => is_category(),
492
 
493
  $opts = $this->spu_settings;
494
 
495
+ if( isset($this->info['wpml_lang']) && !empty($this->info['wpml_lang']) )
496
+ $ajax_url = '/?spu_action=spu_load&lang='.$this->info['wpml_lang'];
497
+ else
498
+ $ajax_url = '/?spu_action=spu_load';
499
+
500
  wp_enqueue_script($handle);
501
  wp_enqueue_style('spu-public-css');
502
  wp_localize_script( $handle, 'spuvar',
505
  'disable_style' => isset( $this->spu_settings['shortcodes_style'] ) ? esc_attr( $this->spu_settings['shortcodes_style'] ) : '',
506
  'ajax_mode' => isset( $this->spu_settings['ajax_mode'] ) ? esc_attr( $this->spu_settings['ajax_mode'] ) :'',
507
  'ajax_url' => admin_url('admin-ajax.php'),
508
+ 'ajax_mode_url' => site_url($ajax_url),
509
  'pid' => get_queried_object_id(),
510
  'is_front_page' => is_front_page(),
511
  'is_category' => is_category(),