Easy Modal - Version 1.1.9.1

Version Description

Download this release

Release Info

Developer danieliser
Plugin Icon 128x128 Easy Modal
Version 1.1.9.1
Comparing to
See all releases

Code changes from version 1.1.9 to 1.1.9.1

Files changed (2) hide show
  1. easy-modal.php +27 -22
  2. readme.txt +1 -1
easy-modal.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Easy Modal
4
  Plugin URI: http://wizardinternetsolutions.com/plugins/easy-modal/
5
  Description: Easy Modal allows you to easily add just about any shortcodes or other content into a modal window. This includes forms such as CF7.
6
  Author: Wizard Internet Solutions
7
- Version: 1.1.9
8
  Author URI: http://wizardinternetsolutions.com
9
  */
10
  if (is_admin() && ! function_exists( 'get_plugin_data' ) )
@@ -28,6 +28,7 @@ class Easy_Modal {
28
  var $api_url = 'http://wizardinternetsolutions.com/api/';
29
  public function __construct()
30
  {
 
31
  $this->Plugin['file'] = __FILE__;
32
  $this->Plugin['dir'] = PLUGINDIR.'/'. dirname( plugin_basename(__FILE__));
33
  $this->Plugin['url'] = trailingslashit (get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
@@ -78,6 +79,30 @@ class Easy_Modal {
78
  add_action('wp_print_scripts', array(&$this, '_scripts') );
79
  }
80
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  private function _migrate_EM()
82
  {
83
  $o_modal_list = get_option('EasyModal');
@@ -187,27 +212,7 @@ class Easy_Modal {
187
  }
188
  public function _activation()
189
  {
190
- global $wp;
191
- if(!get_option('EasyModal_Version'))
192
- {
193
- $this->resetOptions();
194
- }
195
- update_option('EasyModal_Version', $this->Plugin['info']['Version']);
196
- // detect EM Free
197
- if(get_option('eM_version'))
198
- {
199
- $this->_migrate_EM();
200
- }
201
- // detect EM Lite
202
- if(get_option('EasyModalLite_Version'))
203
- {
204
- $this->_migrate_EM_Lite();
205
- }
206
- // detect EM Lite
207
- if(get_option('EasyModalPro_Version'))
208
- {
209
- $this->_migrate_EM_Pro();
210
- }
211
  }
212
  public function _wpmu_activation($blog_id, $user_id, $domain, $path, $site_id, $meta)
213
  {
4
  Plugin URI: http://wizardinternetsolutions.com/plugins/easy-modal/
5
  Description: Easy Modal allows you to easily add just about any shortcodes or other content into a modal window. This includes forms such as CF7.
6
  Author: Wizard Internet Solutions
7
+ Version: 1.1.9.1
8
  Author URI: http://wizardinternetsolutions.com
9
  */
10
  if (is_admin() && ! function_exists( 'get_plugin_data' ) )
28
  var $api_url = 'http://wizardinternetsolutions.com/api/';
29
  public function __construct()
30
  {
31
+ $this->_migrate();
32
  $this->Plugin['file'] = __FILE__;
33
  $this->Plugin['dir'] = PLUGINDIR.'/'. dirname( plugin_basename(__FILE__));
34
  $this->Plugin['url'] = trailingslashit (get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
79
  add_action('wp_print_scripts', array(&$this, '_scripts') );
80
  }
81
  }
82
+ private function _migrate()
83
+ {
84
+ global $wp;
85
+ if(!get_option('EasyModal_Version'))
86
+ {
87
+ $this->resetOptions();
88
+ }
89
+ update_option('EasyModal_Version', $this->Plugin['info']['Version']);
90
+ // detect EM Free
91
+ if(get_option('eM_version'))
92
+ {
93
+ $this->_migrate_EM();
94
+ }
95
+ // detect EM Lite
96
+ if(get_option('EasyModalLite_Version'))
97
+ {
98
+ $this->_migrate_EM_Lite();
99
+ }
100
+ // detect EM Lite
101
+ if(get_option('EasyModalPro_Version'))
102
+ {
103
+ $this->_migrate_EM_Pro();
104
+ }
105
+ }
106
  private function _migrate_EM()
107
  {
108
  $o_modal_list = get_option('EasyModal');
212
  }
213
  public function _activation()
214
  {
215
+ $this->_migrate();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  }
217
  public function _wpmu_activation($blog_id, $user_id, $domain, $path, $site_id, $meta)
218
  {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: modal, contact form 7, ajax, gravity forms, ajax form
5
  Requires at least: 3.0.1
6
  Tested up to: 3.5.2
7
- Stable tag: 1.1.9
8
 
9
  This plugin allows you to easily add a Modal window with just about any content including Contact Form 7 using ajax submission.
10
 
4
  Tags: modal, contact form 7, ajax, gravity forms, ajax form
5
  Requires at least: 3.0.1
6
  Tested up to: 3.5.2
7
+ Stable tag: 1.1.9.1
8
 
9
  This plugin allows you to easily add a Modal window with just about any content including Contact Form 7 using ajax submission.
10