Version Description
Download this release
Release Info
Developer | danieliser |
Plugin | Easy Modal |
Version | 1.1.9.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.9.3 to 1.1.9.4
- easy-modal.php +12 -10
- 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' ) )
|
@@ -32,8 +32,8 @@ class Easy_Modal {
|
|
32 |
$this->Plugin['dir'] = PLUGINDIR.'/'. dirname( plugin_basename(__FILE__));
|
33 |
$this->Plugin['url'] = trailingslashit (get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
|
34 |
|
35 |
-
|
36 |
$this->_migrate();
|
|
|
37 |
// Add WPMU Support
|
38 |
// Add default options on new site creation.
|
39 |
add_action('wpmu_new_blog', array(&$this, '_wpmu_activation'));
|
@@ -82,6 +82,7 @@ class Easy_Modal {
|
|
82 |
}
|
83 |
private function _migrate_EM()
|
84 |
{
|
|
|
85 |
$o_modal_list = get_option('EasyModal');
|
86 |
if(!is_array($o_modal_list))
|
87 |
{
|
@@ -103,6 +104,7 @@ class Easy_Modal {
|
|
103 |
}
|
104 |
private function _migrate_EM_Lite()
|
105 |
{
|
|
|
106 |
$o_modal_list = get_option('EasyModalLite_ModalList');
|
107 |
if(!is_array($o_modal_list))
|
108 |
{
|
@@ -138,6 +140,7 @@ class Easy_Modal {
|
|
138 |
}
|
139 |
private function _migrate_EM_Pro()
|
140 |
{
|
|
|
141 |
$o_theme_list = get_option('EasyModalPro_ModalList');
|
142 |
if(!is_array($o_theme_list))
|
143 |
{
|
@@ -189,16 +192,15 @@ class Easy_Modal {
|
|
189 |
}
|
190 |
public function _activation()
|
191 |
{
|
192 |
-
$this->_migrate();
|
193 |
-
}
|
194 |
-
public function _migrate()
|
195 |
-
{
|
196 |
-
global $wp;
|
197 |
if(!get_option('EasyModal_Version'))
|
198 |
{
|
199 |
$this->resetOptions();
|
200 |
}
|
201 |
update_option('EasyModal_Version', $this->Plugin['info']['Version']);
|
|
|
|
|
|
|
|
|
202 |
// detect EM Free
|
203 |
if(get_option('eM_version'))
|
204 |
{
|
@@ -428,7 +430,7 @@ class Easy_Modal {
|
|
428 |
}
|
429 |
public function getModalList()
|
430 |
{
|
431 |
-
return get_option('EasyModal_ModalList');
|
432 |
}
|
433 |
public function getModalSettings($modal_id)
|
434 |
{
|
@@ -454,7 +456,7 @@ class Easy_Modal {
|
|
454 |
public function updateModalSettings( $modal_id, $post = NULL )
|
455 |
{
|
456 |
global $wp;
|
457 |
-
$modals = get_option('EasyModal_ModalList');
|
458 |
if($modal_id == 'new')
|
459 |
{
|
460 |
$highest = 0;
|
@@ -536,7 +538,7 @@ class Easy_Modal {
|
|
536 |
}
|
537 |
public function deleteModal( $modal_id )
|
538 |
{
|
539 |
-
$modals = get_option('EasyModal_ModalList');
|
540 |
unset($modals[$modal_id]);
|
541 |
update_option('EasyModal_ModalList', $modals);
|
542 |
delete_option('EasyModal_Modal-'.$modal_id);
|
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.4
|
8 |
Author URI: http://wizardinternetsolutions.com
|
9 |
*/
|
10 |
if (is_admin() && ! function_exists( 'get_plugin_data' ) )
|
32 |
$this->Plugin['dir'] = PLUGINDIR.'/'. dirname( plugin_basename(__FILE__));
|
33 |
$this->Plugin['url'] = trailingslashit (get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
|
34 |
|
|
|
35 |
$this->_migrate();
|
36 |
+
|
37 |
// Add WPMU Support
|
38 |
// Add default options on new site creation.
|
39 |
add_action('wpmu_new_blog', array(&$this, '_wpmu_activation'));
|
82 |
}
|
83 |
private function _migrate_EM()
|
84 |
{
|
85 |
+
global $wp;
|
86 |
$o_modal_list = get_option('EasyModal');
|
87 |
if(!is_array($o_modal_list))
|
88 |
{
|
104 |
}
|
105 |
private function _migrate_EM_Lite()
|
106 |
{
|
107 |
+
global $wp;
|
108 |
$o_modal_list = get_option('EasyModalLite_ModalList');
|
109 |
if(!is_array($o_modal_list))
|
110 |
{
|
140 |
}
|
141 |
private function _migrate_EM_Pro()
|
142 |
{
|
143 |
+
global $wp;
|
144 |
$o_theme_list = get_option('EasyModalPro_ModalList');
|
145 |
if(!is_array($o_theme_list))
|
146 |
{
|
192 |
}
|
193 |
public function _activation()
|
194 |
{
|
|
|
|
|
|
|
|
|
|
|
195 |
if(!get_option('EasyModal_Version'))
|
196 |
{
|
197 |
$this->resetOptions();
|
198 |
}
|
199 |
update_option('EasyModal_Version', $this->Plugin['info']['Version']);
|
200 |
+
$this->_migrate();
|
201 |
+
}
|
202 |
+
public function _migrate()
|
203 |
+
{
|
204 |
// detect EM Free
|
205 |
if(get_option('eM_version'))
|
206 |
{
|
430 |
}
|
431 |
public function getModalList()
|
432 |
{
|
433 |
+
return get_option('EasyModal_ModalList',array());
|
434 |
}
|
435 |
public function getModalSettings($modal_id)
|
436 |
{
|
456 |
public function updateModalSettings( $modal_id, $post = NULL )
|
457 |
{
|
458 |
global $wp;
|
459 |
+
$modals = get_option('EasyModal_ModalList',array());
|
460 |
if($modal_id == 'new')
|
461 |
{
|
462 |
$highest = 0;
|
538 |
}
|
539 |
public function deleteModal( $modal_id )
|
540 |
{
|
541 |
+
$modals = get_option('EasyModal_ModalList',array());
|
542 |
unset($modals[$modal_id]);
|
543 |
update_option('EasyModal_ModalList', $modals);
|
544 |
delete_option('EasyModal_Modal-'.$modal_id);
|
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.4
|
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 |
|