Easy Modal - Version 2.0.7

Version Description

Download this release

Release Info

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

Code changes from version 2.0.6 to 2.0.7

assets/scripts/easy-modal-admin.js CHANGED
@@ -98,11 +98,11 @@ var EModalAdmin = {
98
  jQuery('.custom-size-only').hide();
99
  } else {
100
  jQuery('.custom-size-only').show();
101
- }
102
- if (jQuery('#custom_height_auto').is(':checked')) {
103
- jQuery('.custom-size-height-only').hide();
104
- } else {
105
- jQuery('.custom-size-height-only').show();
106
  }
107
  },
108
  update_animation = function () {
98
  jQuery('.custom-size-only').hide();
99
  } else {
100
  jQuery('.custom-size-only').show();
101
+ if (jQuery('#custom_height_auto').is(':checked')) {
102
+ jQuery('.custom-size-height-only').hide();
103
+ } else {
104
+ jQuery('.custom-size-height-only').show();
105
+ }
106
  }
107
  },
108
  update_animation = function () {
classes/view/modal.php CHANGED
@@ -2,7 +2,7 @@
2
  public function output()
3
  {
4
  extract($this->values);
5
- $classes = implode(' ', apply_filters('emodal_modal_class_attr', array('modal', 'emodal', 'theme-'.$modal['theme_id']), $modal));
6
  $data = apply_filters('emodal_modal_data_attr', $modal);
7
  $output =
8
  '<div '
@@ -24,7 +24,7 @@
24
  add_filter('emodal_modal_class_attr', 'emodal_modal_class_attr', 5, 2);
25
  function emodal_modal_class_attr($classes, $modal)
26
  {
27
- if(!in_array($modal['meta']['display']['size'], array('auto', 'custom')))
28
  {
29
  $classes[] = 'responsive';
30
  $classes[] = $modal['meta']['display']['size'];
2
  public function output()
3
  {
4
  extract($this->values);
5
+ $classes = implode(' ', apply_filters('emodal_modal_class_attr', array(/*'modal',*/ 'emodal', 'theme-'.$modal['theme_id']), $modal));
6
  $data = apply_filters('emodal_modal_data_attr', $modal);
7
  $output =
8
  '<div '
24
  add_filter('emodal_modal_class_attr', 'emodal_modal_class_attr', 5, 2);
25
  function emodal_modal_class_attr($classes, $modal)
26
  {
27
+ if(in_array($modal['meta']['display']['size'], array('normal','nano','tiny','small','medium','large','x-large')))
28
  {
29
  $classes[] = 'responsive';
30
  $classes[] = $modal['meta']['display']['size'];
easy-modal.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Easy Modal
4
  Plugin URI: http://easy-modal.com
5
  Description: Easily create & style modals with any content. Theme editor to quickly style your modals. Add forms, social media boxes, videos & more.
6
  Author: Wizard Internet Solutions
7
- Version: 2.0.6
8
  Author URI: http://wizardinternetsolutions.com
9
  Text Domain: easy-modal
10
  */
@@ -21,7 +21,7 @@ if (!defined('EMCORE_URL'))
21
  if (!defined('EMCORE_NONCE'))
22
  define('EMCORE_NONCE', EMCORE_SLUG.'_nonce' );
23
  if (!defined('EMCORE_VERSION'))
24
- define('EMCORE_VERSION', '2.0.6' );
25
  if (!defined('EMCORE_DB_VERSION'))
26
  define('EMCORE_DB_VERSION', '1' );
27
  if (!defined('EMCORE_API_URL'))
4
  Plugin URI: http://easy-modal.com
5
  Description: Easily create & style modals with any content. Theme editor to quickly style your modals. Add forms, social media boxes, videos & more.
6
  Author: Wizard Internet Solutions
7
+ Version: 2.0.7
8
  Author URI: http://wizardinternetsolutions.com
9
  Text Domain: easy-modal
10
  */
21
  if (!defined('EMCORE_NONCE'))
22
  define('EMCORE_NONCE', EMCORE_SLUG.'_nonce' );
23
  if (!defined('EMCORE_VERSION'))
24
+ define('EMCORE_VERSION', '2.0.7' );
25
  if (!defined('EMCORE_DB_VERSION'))
26
  define('EMCORE_DB_VERSION', '1' );
27
  if (!defined('EMCORE_API_URL'))
includes/admin/modal-form-display-tab.php CHANGED
@@ -70,7 +70,7 @@ function emodal_admin_modal_form_tab_display_settings_custom_sizes()
70
  <th scope="row"><?php _e('Auto Adjusted Height', EMCORE_SLUG);?></th>
71
  <td>
72
  <input type="checkbox" value="true" name="modal[meta][display][custom_height_auto]" id="custom_height_auto" <?php echo get_current_modal('meta.display.custom_height_auto') ? 'checked="checked" ' : '';?>/>
73
- <label for="custom_height_auto" class="description"><?php _e('Checking this option will set height to fix the content.', EMCORE_SLUG);?></label>
74
  </td>
75
  </tr>
76
 
70
  <th scope="row"><?php _e('Auto Adjusted Height', EMCORE_SLUG);?></th>
71
  <td>
72
  <input type="checkbox" value="true" name="modal[meta][display][custom_height_auto]" id="custom_height_auto" <?php echo get_current_modal('meta.display.custom_height_auto') ? 'checked="checked" ' : '';?>/>
73
+ <label for="custom_height_auto" class="description"><?php _e('Checking this option will set height to fit the content.', EMCORE_SLUG);?></label>
74
  </td>
75
  </tr>
76
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
6
  Tags: modal,modal box,modal form,modal window,popup,popup box,popup form,popup window,ajax forms
7
  Requires at least: 3.4
8
  Tested up to: 3.9.2
9
- Stable tag: 2.0.6
10
  Make a pop up - any pop up. Logins, Auto Exits, Scroll Pops, Age Verification Pops. Theme, customize, make a glorious pop up!
11
  == Description ==
12
  Make a pop up - any pop up - Logins, Auto Exits, Scroll Pops, Age Verification Pops - use EasyModal's ultimate theme capabilities and customization options to make glorious pop ups that increase your site's usability and conversion rates.
6
  Tags: modal,modal box,modal form,modal window,popup,popup box,popup form,popup window,ajax forms
7
  Requires at least: 3.4
8
  Tested up to: 3.9.2
9
+ Stable tag: 2.0.7
10
  Make a pop up - any pop up. Logins, Auto Exits, Scroll Pops, Age Verification Pops. Theme, customize, make a glorious pop up!
11
  == Description ==
12
  Make a pop up - any pop up - Logins, Auto Exits, Scroll Pops, Age Verification Pops - use EasyModal's ultimate theme capabilities and customization options to make glorious pop ups that increase your site's usability and conversion rates.