Easy Modal - Version 2.0.17

Version Description

Download this release

Release Info

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

Code changes from version 2.0.16 to 2.0.17

classes/admin.php CHANGED
@@ -126,8 +126,8 @@
126
  if($file == plugin_basename(EMCORE))
127
  {
128
  foreach(apply_filters('emodal_action_links', array(
129
- 'settings' => '<a href="'.emodal_admin_url('settings') .'">'.__('Settings', EMCORE_SLUG).'</a>',
130
- 'gopro' => '<a href="https://easy-modal.com/pricing?utm_source=em-free&utm_medium=plugins+page&utm_campaign=go+pro" target="_blank">'.__('Go Pro', EMCORE_SLUG).'</a>',
131
  )) as $link)
132
  {
133
  array_unshift( $links, $link );
126
  if($file == plugin_basename(EMCORE))
127
  {
128
  foreach(apply_filters('emodal_action_links', array(
129
+ 'settings' => '<a href="'.emodal_admin_url('settings') .'">'.__('Settings', 'easy-modal' ).'</a>',
130
+ 'gopro' => '<a href="https://easy-modal.com/pricing?utm_source=em-free&utm_medium=plugins+page&utm_campaign=go+pro" target="_blank">'.__('Go Pro', 'easy-modal' ).'</a>',
131
  )) as $link)
132
  {
133
  array_unshift( $links, $link );
classes/admin/menu.php CHANGED
@@ -11,8 +11,8 @@
11
  public function admin_menus()
12
  {
13
  add_menu_page(
14
- apply_filters('emodal_admin_menu_page_title', __(EMCORE_NAME, EMCORE_SLUG)), // Page Title
15
- apply_filters('emodal_admin_menu_menu_title', __(EMCORE_NAME, EMCORE_SLUG)), // Menu Title
16
  apply_filters('emodal_admin_menu_capability', 'edit_posts'), // Menu Capabilities
17
  emodal_admin_slug(), // Menu Slug
18
  apply_filters('emodal_admin_menu_function',array('EModal_Controller_Admin_Modals', 'render')), // Menu Page Function
@@ -29,8 +29,8 @@
29
  {
30
 
31
  $submenu[] = array(
32
- 'page_title' => apply_filters('emodal_admin_submenu_modals_page_title', __('Modals', EMCORE_SLUG)),
33
- 'menu_title' => apply_filters('emodal_admin_submenu_modals_menu_title', __('Modals', EMCORE_SLUG)),
34
  'capability' => apply_filters('emodal_admin_submenu_modals_capability', 'edit_posts'),
35
  'menu_slug' => emodal_admin_slug(),
36
  'function' => apply_filters('emodal_admin_submenu_modals_function',array('EModal_Controller_Admin_Modals', 'render'))
@@ -40,8 +40,8 @@
40
  public function themes_page($submenu)
41
  {
42
  $submenu[] = array(
43
- 'page_title' => apply_filters('emodal_admin_submenu_themes_page_title', __('Theme', EMCORE_SLUG)),
44
- 'menu_title' => apply_filters('emodal_admin_submenu_themes_menu_title', __('Theme', EMCORE_SLUG)),
45
  'capability' => apply_filters('emodal_admin_submenu_themes_capability', 'edit_themes'),
46
  'menu_slug' => emodal_admin_slug('themes'),
47
  'function' => apply_filters('emodal_admin_submenu_themes_function',array('EModal_Controller_Admin_Theme', 'render'))
@@ -51,8 +51,8 @@
51
  public function settings_page($submenu)
52
  {
53
  $submenu[] = array(
54
- 'page_title' => apply_filters('emodal_admin_submenu_settings_page_title', __('Settings', EMCORE_SLUG)),
55
- 'menu_title' => apply_filters('emodal_admin_submenu_settings_menu_title', __('Settings', EMCORE_SLUG)),
56
  'capability' => apply_filters('emodal_admin_submenu_settings_capability', 'manage_options'),
57
  'menu_slug' => emodal_admin_slug('settings'),
58
  'function' => apply_filters('emodal_admin_submenu_settings_function',array('EModal_Controller_Admin_Settings', 'render'))
@@ -62,8 +62,8 @@
62
  public function addons_page($submenu)
63
  {
64
  $submenu[] = array(
65
- 'page_title' => apply_filters('emodal_admin_submenu_addons_page_title', __('Add Ons', EMCORE_SLUG)),
66
- 'menu_title' => apply_filters('emodal_admin_submenu_addons_menu_title', __('Add Ons', EMCORE_SLUG)),
67
  'capability' => apply_filters('emodal_admin_submenu_addons_capability', 'manage_options'),
68
  'menu_slug' => emodal_admin_slug('addons'),
69
  'function' => apply_filters('emodal_admin_submenu_addons_function',array('EModal_Controller_Admin_Addons', 'render'))
@@ -73,8 +73,8 @@
73
  public function help_page($submenu)
74
  {
75
  $submenu[] = array(
76
- 'page_title' => apply_filters('emodal_admin_submenu_help_page_title', __('Help', EMCORE_SLUG)),
77
- 'menu_title' => apply_filters('emodal_admin_submenu_help_menu_title', __('Help', EMCORE_SLUG)),
78
  'capability' => apply_filters('emodal_admin_submenu_help_capability', 'edit_posts'),
79
  'menu_slug' => emodal_admin_slug('help'),
80
  'function' => apply_filters('emodal_admin_submenu_help_function',array('EModal_Controller_Admin_Help', 'render'))
11
  public function admin_menus()
12
  {
13
  add_menu_page(
14
+ apply_filters('emodal_admin_menu_page_title', __(EMCORE_NAME, 'easy-modal' )), // Page Title
15
+ apply_filters('emodal_admin_menu_menu_title', __(EMCORE_NAME, 'easy-modal' )), // Menu Title
16
  apply_filters('emodal_admin_menu_capability', 'edit_posts'), // Menu Capabilities
17
  emodal_admin_slug(), // Menu Slug
18
  apply_filters('emodal_admin_menu_function',array('EModal_Controller_Admin_Modals', 'render')), // Menu Page Function
29
  {
30
 
31
  $submenu[] = array(
32
+ 'page_title' => apply_filters('emodal_admin_submenu_modals_page_title', __('Modals', 'easy-modal' )),
33
+ 'menu_title' => apply_filters('emodal_admin_submenu_modals_menu_title', __('Modals', 'easy-modal' )),
34
  'capability' => apply_filters('emodal_admin_submenu_modals_capability', 'edit_posts'),
35
  'menu_slug' => emodal_admin_slug(),
36
  'function' => apply_filters('emodal_admin_submenu_modals_function',array('EModal_Controller_Admin_Modals', 'render'))
40
  public function themes_page($submenu)
41
  {
42
  $submenu[] = array(
43
+ 'page_title' => apply_filters('emodal_admin_submenu_themes_page_title', __('Theme', 'easy-modal' )),
44
+ 'menu_title' => apply_filters('emodal_admin_submenu_themes_menu_title', __('Theme', 'easy-modal' )),
45
  'capability' => apply_filters('emodal_admin_submenu_themes_capability', 'edit_themes'),
46
  'menu_slug' => emodal_admin_slug('themes'),
47
  'function' => apply_filters('emodal_admin_submenu_themes_function',array('EModal_Controller_Admin_Theme', 'render'))
51
  public function settings_page($submenu)
52
  {
53
  $submenu[] = array(
54
+ 'page_title' => apply_filters('emodal_admin_submenu_settings_page_title', __('Settings', 'easy-modal' )),
55
+ 'menu_title' => apply_filters('emodal_admin_submenu_settings_menu_title', __('Settings', 'easy-modal' )),
56
  'capability' => apply_filters('emodal_admin_submenu_settings_capability', 'manage_options'),
57
  'menu_slug' => emodal_admin_slug('settings'),
58
  'function' => apply_filters('emodal_admin_submenu_settings_function',array('EModal_Controller_Admin_Settings', 'render'))
62
  public function addons_page($submenu)
63
  {
64
  $submenu[] = array(
65
+ 'page_title' => apply_filters('emodal_admin_submenu_addons_page_title', __('Add Ons', 'easy-modal' )),
66
+ 'menu_title' => apply_filters('emodal_admin_submenu_addons_menu_title', __('Add Ons', 'easy-modal' )),
67
  'capability' => apply_filters('emodal_admin_submenu_addons_capability', 'manage_options'),
68
  'menu_slug' => emodal_admin_slug('addons'),
69
  'function' => apply_filters('emodal_admin_submenu_addons_function',array('EModal_Controller_Admin_Addons', 'render'))
73
  public function help_page($submenu)
74
  {
75
  $submenu[] = array(
76
+ 'page_title' => apply_filters('emodal_admin_submenu_help_page_title', __('Help', 'easy-modal' )),
77
+ 'menu_title' => apply_filters('emodal_admin_submenu_help_menu_title', __('Help', 'easy-modal' )),
78
  'capability' => apply_filters('emodal_admin_submenu_help_capability', 'edit_posts'),
79
  'menu_slug' => emodal_admin_slug('help'),
80
  'function' => apply_filters('emodal_admin_submenu_help_function',array('EModal_Controller_Admin_Help', 'render'))
classes/admin/postmeta.php CHANGED
@@ -36,7 +36,7 @@
36
  {
37
  foreach(apply_filters('emodal_post_types', array('post','page')) as $post_types)
38
  {
39
- add_meta_box(EMCORE_SLUG, esc_html__(EMCORE_NAME, EMCORE_SLUG), array($this, 'post_meta_box'), $post_types);
40
  }
41
  }
42
  }
36
  {
37
  foreach(apply_filters('emodal_post_types', array('post','page')) as $post_types)
38
  {
39
+ add_meta_box(EMCORE_SLUG, esc_html__(EMCORE_NAME, 'easy-modal' ), array($this, 'post_meta_box'), $post_types);
40
  }
41
  }
42
  }
classes/controller/admin/addons.php CHANGED
@@ -25,7 +25,7 @@
25
  public function action_browse()
26
  {
27
  $view = new EModal_View_Admin_Addons;
28
- $view->set('title', __('Easy Modal Add Ons', EMCORE_SLUG));
29
  $view->set('tabs', apply_filters('emodal_admin_addons_tabs', array()));
30
  self::$instance->view = $view;
31
  }
25
  public function action_browse()
26
  {
27
  $view = new EModal_View_Admin_Addons;
28
+ $view->set('title', __('Easy Modal Add Ons', 'easy-modal' ));
29
  $view->set('tabs', apply_filters('emodal_admin_addons_tabs', array()));
30
  self::$instance->view = $view;
31
  }
classes/controller/admin/help.php CHANGED
@@ -11,7 +11,7 @@
11
  public function action_index()
12
  {
13
  $view = new EModal_View_Admin_Help;
14
- $view->set('title', __('Help', EMCORE_SLUG));
15
  $view->set('tabs', apply_filters('emodal_admin_help_tabs', array()));
16
  self::$instance->view = $view;
17
  }
11
  public function action_index()
12
  {
13
  $view = new EModal_View_Admin_Help;
14
+ $view->set('title', __('Help', 'easy-modal' ));
15
  $view->set('tabs', apply_filters('emodal_admin_help_tabs', array()));
16
  self::$instance->view = $view;
17
  }
classes/controller/admin/modals.php CHANGED
@@ -42,7 +42,7 @@
42
  public function action_index()
43
  {
44
  $view = new EModal_View_Admin_Modal_Index;
45
- $view->set('title', __('Modals', EMCORE_SLUG));
46
  $view->set('modal_new_url', $this->new_url());
47
  self::$instance->view = $view;
48
  }
@@ -59,11 +59,11 @@
59
  if(!$current_modal->id)
60
  do_action('emodal_modal_new', $current_modal);
61
  do_action('emodal_modal_save', $current_modal);
62
- EModal_Admin_Notice::add($current_modal->id ? __('Modal Updated.',EMCORE_SLUG) : __('Modal Created.',EMCORE_SLUG), 'updated');
63
  $this->redirect_to_edit();
64
  }
65
  $view = new EModal_View_Admin_Modal_Form;
66
- $view->set('title', $current_modal->id ? __('Edit Modal', EMCORE_SLUG) : __('Add New Modal', EMCORE_SLUG));
67
  $view->set('modal_new_url', $this->new_url());
68
  $view->set('tabs', apply_filters('emodal_admin_modal_form_tabs', array()));
69
  self::$instance->view = $view;
@@ -78,7 +78,7 @@
78
  $current_modal->meta->id = NULL;
79
  $current_modal->save();
80
  do_action('emodal_modal_clone', $current_modal);
81
- EModal_Admin_Notice::add(__('Modal cloned successfully',EMCORE_SLUG), 'updated');
82
  $this->redirect_to_edit();
83
  }
84
  wp_redirect($this->index_url(), 302);
@@ -102,14 +102,14 @@
102
  }
103
  if(empty($ids))
104
  {
105
- EModal_Admin_Notice::add(__('No modals selected for deletion.', EMCORE_SLUG), 'updated');
106
  wp_redirect($this->index_url(), 302);
107
  exit();
108
  }
109
  global $wpdb;
110
  $wpdb->query("UPDATE {$wpdb->prefix}em_modals SET is_trash = 1 WHERE id IN (".implode(',', $ids).")");
111
  do_action('emodal_modal_delete');
112
- EModal_Admin_Notice::add(count($ids) . __(' modals moved to the trash', EMCORE_SLUG), 'updated');
113
  }
114
  wp_redirect($this->index_url(), 302);
115
  exit();
@@ -132,13 +132,13 @@
132
  }
133
  if(empty($ids))
134
  {
135
- EModal_Admin_Notice::add(__('No modals selected for undeletion.', EMCORE_SLUG), 'updated');
136
  wp_redirect($this->index_url(), 302);
137
  exit();
138
  }
139
  global $wpdb;
140
  $wpdb->query("UPDATE {$wpdb->prefix}em_modals SET is_trash = 0 WHERE id IN ($ids)");
141
- EModal_Admin_Notice::add(count($ids) . __(' modal restored from trash.',EMCORE_SLUG), 'updated');
142
  do_action('emodal_modal_untrash');
143
  }
144
  wp_redirect($this->index_url(), 302);
@@ -150,7 +150,7 @@
150
  {
151
  global $wpdb;
152
  $wpdb->delete( $wpdb->prefix.'em_modals', array('is_trash' => 1));
153
- EModal_Admin_Notice::add(__('Modal trash has been permanantly removed.',EMCORE_SLUG), 'updated');
154
  do_action('emodal_modal_trash');
155
  }
156
  wp_redirect($this->index_url(), 302);
42
  public function action_index()
43
  {
44
  $view = new EModal_View_Admin_Modal_Index;
45
+ $view->set('title', __('Modals', 'easy-modal' ));
46
  $view->set('modal_new_url', $this->new_url());
47
  self::$instance->view = $view;
48
  }
59
  if(!$current_modal->id)
60
  do_action('emodal_modal_new', $current_modal);
61
  do_action('emodal_modal_save', $current_modal);
62
+ EModal_Admin_Notice::add($current_modal->id ? __('Modal Updated.', 'easy-modal' ) : __('Modal Created.', 'easy-modal' ), 'updated');
63
  $this->redirect_to_edit();
64
  }
65
  $view = new EModal_View_Admin_Modal_Form;
66
+ $view->set('title', $current_modal->id ? __('Edit Modal', 'easy-modal' ) : __('Add New Modal', 'easy-modal' ));
67
  $view->set('modal_new_url', $this->new_url());
68
  $view->set('tabs', apply_filters('emodal_admin_modal_form_tabs', array()));
69
  self::$instance->view = $view;
78
  $current_modal->meta->id = NULL;
79
  $current_modal->save();
80
  do_action('emodal_modal_clone', $current_modal);
81
+ EModal_Admin_Notice::add(__('Modal cloned successfully', 'easy-modal' ), 'updated');
82
  $this->redirect_to_edit();
83
  }
84
  wp_redirect($this->index_url(), 302);
102
  }
103
  if(empty($ids))
104
  {
105
+ EModal_Admin_Notice::add(__('No modals selected for deletion.', 'easy-modal' ), 'updated');
106
  wp_redirect($this->index_url(), 302);
107
  exit();
108
  }
109
  global $wpdb;
110
  $wpdb->query("UPDATE {$wpdb->prefix}em_modals SET is_trash = 1 WHERE id IN (".implode(',', $ids).")");
111
  do_action('emodal_modal_delete');
112
+ EModal_Admin_Notice::add(count($ids) . __(' modals moved to the trash', 'easy-modal' ), 'updated');
113
  }
114
  wp_redirect($this->index_url(), 302);
115
  exit();
132
  }
133
  if(empty($ids))
134
  {
135
+ EModal_Admin_Notice::add(__('No modals selected for undeletion.', 'easy-modal' ), 'updated');
136
  wp_redirect($this->index_url(), 302);
137
  exit();
138
  }
139
  global $wpdb;
140
  $wpdb->query("UPDATE {$wpdb->prefix}em_modals SET is_trash = 0 WHERE id IN ($ids)");
141
+ EModal_Admin_Notice::add(count($ids) . __(' modal restored from trash.', 'easy-modal' ), 'updated');
142
  do_action('emodal_modal_untrash');
143
  }
144
  wp_redirect($this->index_url(), 302);
150
  {
151
  global $wpdb;
152
  $wpdb->delete( $wpdb->prefix.'em_modals', array('is_trash' => 1));
153
+ EModal_Admin_Notice::add(__('Modal trash has been permanantly removed.', 'easy-modal' ), 'updated');
154
  do_action('emodal_modal_trash');
155
  }
156
  wp_redirect($this->index_url(), 302);
classes/controller/admin/settings.php CHANGED
@@ -54,12 +54,12 @@
54
  $new_values = apply_filters('emodal_settings_pre_save', emodal_get_option('emodal_settings'));
55
  emodal_update_option('emodal_settings', $new_values);
56
  do_action('emodal_settings_save', $new_values);
57
- EModal_Admin_Notice::add(__('Settings Updated.',EMCORE_SLUG), 'updated');
58
  //EModal_Admin::check_updates();
59
  $this->redirect_to_edit();
60
  }
61
  $view = new EModal_View_Admin_Settings_Form;
62
- $view->set('title', __('Easy Modal Settings', EMCORE_SLUG));
63
  $view->set('tabs', apply_filters('emodal_admin_settings_form_tabs', array()));
64
  self::$instance->view = $view;
65
  }
54
  $new_values = apply_filters('emodal_settings_pre_save', emodal_get_option('emodal_settings'));
55
  emodal_update_option('emodal_settings', $new_values);
56
  do_action('emodal_settings_save', $new_values);
57
+ EModal_Admin_Notice::add(__('Settings Updated.', 'easy-modal' ), 'updated');
58
  //EModal_Admin::check_updates();
59
  $this->redirect_to_edit();
60
  }
61
  $view = new EModal_View_Admin_Settings_Form;
62
+ $view->set('title', __('Easy Modal Settings', 'easy-modal' ));
63
  $view->set('tabs', apply_filters('emodal_admin_settings_form_tabs', array()));
64
  self::$instance->view = $view;
65
  }
classes/controller/admin/theme.php CHANGED
@@ -26,11 +26,11 @@
26
  $current_theme->set_fields(apply_filters("emodal_model_theme_meta_defaults", $new_values));
27
  $current_theme->save();
28
  do_action('emodal_theme_save', $current_theme);
29
- EModal_Admin_Notice::add(__('Theme Updated.',EMCORE_SLUG), 'updated');
30
  $this->redirect_to_edit();
31
  }
32
  $view = new EModal_View_Admin_Theme_Form;
33
- $view->set('title', __('Edit Theme', EMCORE_SLUG));
34
  $view->set('tabs', apply_filters('emodal_admin_theme_form_tabs', array()));
35
  self::$instance->view = $view;
36
  }
26
  $current_theme->set_fields(apply_filters("emodal_model_theme_meta_defaults", $new_values));
27
  $current_theme->save();
28
  do_action('emodal_theme_save', $current_theme);
29
+ EModal_Admin_Notice::add(__('Theme Updated.', 'easy-modal' ), 'updated');
30
  $this->redirect_to_edit();
31
  }
32
  $view = new EModal_View_Admin_Theme_Form;
33
+ $view->set('title', __('Edit Theme', 'easy-modal' ));
34
  $view->set('tabs', apply_filters('emodal_admin_theme_form_tabs', array()));
35
  self::$instance->view = $view;
36
  }
classes/view/admin/addons.php CHANGED
@@ -3,7 +3,7 @@
3
  {
4
  extract($this->values);?>
5
  <div class="wrap">
6
- <h2><?php esc_html_e(__($title, EMCORE_SLUG) );?></h2>
7
  <div id="poststuff">
8
  <div id="post-body" class="metabox-holder">
9
  <div id="post-body-content"><?php
3
  {
4
  extract($this->values);?>
5
  <div class="wrap">
6
+ <h2><?php esc_html_e(__($title, 'easy-modal' ) );?></h2>
7
  <div id="poststuff">
8
  <div id="post-body" class="metabox-holder">
9
  <div id="post-body-content"><?php
classes/view/admin/help.php CHANGED
@@ -3,7 +3,7 @@
3
  {
4
  extract($this->values);?>
5
  <div class="wrap">
6
- <h2><?php esc_html_e(__($title, EMCORE_SLUG) );?></h2>
7
  <h2 id="emodal-tabs" class="nav-tab-wrapper">
8
  <?php foreach($tabs as $tab){ ?>
9
  <a href="#<?php echo $tab['id']?>" id="<?php echo $tab['id']?>-tab" class="nav-tab emodal-tab"><?php echo $tab['label'];?></a>
3
  {
4
  extract($this->values);?>
5
  <div class="wrap">
6
+ <h2><?php esc_html_e(__($title, 'easy-modal' ) );?></h2>
7
  <h2 id="emodal-tabs" class="nav-tab-wrapper">
8
  <?php foreach($tabs as $tab){ ?>
9
  <a href="#<?php echo $tab['id']?>" id="<?php echo $tab['id']?>-tab" class="nav-tab emodal-tab"><?php echo $tab['label'];?></a>
classes/view/admin/modal/form.php CHANGED
@@ -6,7 +6,7 @@
6
  <h2><?php
7
  esc_html_e($title );
8
  if(!empty($modal_new_url))
9
- echo ' <a href="' . esc_url( $modal_new_url ) . '" class="add-new-h2">' . __('Add New', EMCORE_SLUG) . '</a>';
10
  ?></h2>
11
  <h2 id="emodal-tabs" class="nav-tab-wrapper">
12
  <?php foreach($tabs as $tab){ ?>
@@ -31,18 +31,18 @@
31
  <div class="meta-box-sortables ui-sortable" id="side-sortables">
32
  <div class="postbox " id="submitdiv">
33
  <div title="Click to toggle" class="handlediv"><br></div>
34
- <h3 class="hndle"><span><?php _e('Publish', EMCORE_SLUG);?></span></h3>
35
  <div class="inside">
36
  <div id="submitpost" class="submitbox">
37
  <div id="minor-publishing">
38
  <div id="minor-publishing-actions">
39
  <div id="save-action">
40
- <a id="save-post" href="<?php echo esc_url( emodal_admin_url() .'&action=clone&id='. get_current_modal_id() .'&'. EMCORE_NONCE .'='. wp_create_nonce(EMCORE_NONCE) )?>" class="button"><?php _e('Clone', EMCORE_SLUG);?></a>
41
  <span class="spinner"></span>
42
  </div>
43
  <!--
44
  <div id="preview-action">
45
- <a id="post-preview" href="#" class="preview button"><?php _e('Preview', EMCORE_SLUG);?></a>
46
  <input type="hidden" value="" id="wp-preview" name="wp-preview">
47
  </div>
48
  -->
@@ -52,12 +52,12 @@
52
  <br/>
53
  <div id="major-publishing-actions" class="submitbox">
54
  <div id="delete-action">
55
- <a href="<?php echo esc_url( emodal_admin_url() .'&action=delete&id[]='. get_current_modal_id() .'&'. EMCORE_NONCE .'='. wp_create_nonce(EMCORE_NONCE) )?>" class="submitdelete deletion"><?php _e('Move to Trash', EMCORE_SLUG);?></a>
56
  </div>
57
 
58
  <div id="publishing-action">
59
  <span class="spinner"></span>
60
- <input type="submit" accesskey="p" value="<?php _e('Publish', EMCORE_SLUG);?>" class="button button-primary button-large" id="publish" name="publish">
61
  </div>
62
  <div class="clear"></div>
63
  </div>
6
  <h2><?php
7
  esc_html_e($title );
8
  if(!empty($modal_new_url))
9
+ echo ' <a href="' . esc_url( $modal_new_url ) . '" class="add-new-h2">' . __('Add New', 'easy-modal' ) . '</a>';
10
  ?></h2>
11
  <h2 id="emodal-tabs" class="nav-tab-wrapper">
12
  <?php foreach($tabs as $tab){ ?>
31
  <div class="meta-box-sortables ui-sortable" id="side-sortables">
32
  <div class="postbox " id="submitdiv">
33
  <div title="Click to toggle" class="handlediv"><br></div>
34
+ <h3 class="hndle"><span><?php _e('Publish', 'easy-modal' );?></span></h3>
35
  <div class="inside">
36
  <div id="submitpost" class="submitbox">
37
  <div id="minor-publishing">
38
  <div id="minor-publishing-actions">
39
  <div id="save-action">
40
+ <a id="save-post" href="<?php echo esc_url( emodal_admin_url() .'&action=clone&id='. get_current_modal_id() .'&'. EMCORE_NONCE .'='. wp_create_nonce(EMCORE_NONCE) )?>" class="button"><?php _e('Clone', 'easy-modal' );?></a>
41
  <span class="spinner"></span>
42
  </div>
43
  <!--
44
  <div id="preview-action">
45
+ <a id="post-preview" href="#" class="preview button"><?php _e('Preview', 'easy-modal' );?></a>
46
  <input type="hidden" value="" id="wp-preview" name="wp-preview">
47
  </div>
48
  -->
52
  <br/>
53
  <div id="major-publishing-actions" class="submitbox">
54
  <div id="delete-action">
55
+ <a href="<?php echo esc_url( emodal_admin_url() .'&action=delete&id[]='. get_current_modal_id() .'&'. EMCORE_NONCE .'='. wp_create_nonce(EMCORE_NONCE) )?>" class="submitdelete deletion"><?php _e('Move to Trash', 'easy-modal' );?></a>
56
  </div>
57
 
58
  <div id="publishing-action">
59
  <span class="spinner"></span>
60
+ <input type="submit" accesskey="p" value="<?php _e('Publish', 'easy-modal' );?>" class="button button-primary button-large" id="publish" name="publish">
61
  </div>
62
  <div class="clear"></div>
63
  </div>
classes/view/admin/modal/index.php CHANGED
@@ -6,7 +6,7 @@
6
  <h2><?php
7
  esc_html_e($title );
8
  if(!empty($modal_new_url))
9
- echo ' <a href="' . esc_url( $modal_new_url ) . '" class="add-new-h2">' . __('Add New', EMCORE_SLUG) . '</a>';
10
  if(!count_all_modals())
11
  echo ' <div class="add-new-get-started">Add a new modal to get started!</div>';
12
  ?></h2>
@@ -169,11 +169,11 @@ class EModal_Modal_List_Table extends WP_List_Table {
169
  }
170
 
171
  function get_bulk_actions() {
172
- $actions = array('delete' => __('Delete', EMCORE_SLUG));
173
  if(!empty($_GET['status']) && $_GET['status'] == 'trash')
174
  $actions['untrash'] = __( 'Restore' );
175
  if(count_deleted_modals())
176
- $actions['empty_trash'] = __('Empty Trash', EMCORE_SLUG);
177
  return $actions;
178
  }
179
 
@@ -194,16 +194,16 @@ class EModal_Modal_List_Table extends WP_List_Table {
194
  $edit_link = esc_url( emodal_admin_url() .'&action=edit&id='. $item->id);
195
  $delete_link = esc_url( wp_nonce_url( emodal_admin_url() .'&action=delete&id[]='. $item->id, EMCORE_NONCE, EMCORE_NONCE));
196
 
197
- $out = '<strong><a class="row-title" href="' . $edit_link . '" title="' . esc_attr(sprintf( __( 'Edit &#8220;%s&#8221;', EMCORE_SLUG), $item->name)) . '">' . $item->name . '</a></strong><br />';
198
 
199
  $actions = array();
200
  //if ( current_user_can( $tax->cap->edit_terms ) ) {
201
- $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit', EMCORE_SLUG) . '</a>';
202
  //$actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __( 'Quick&nbsp;Edit' ) . '</a>';
203
  //}
204
- $actions['clone'] = '<a href="' . $clone_link . '">' . __('Clone', EMCORE_SLUG) . '</a>';
205
  //if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
206
- $actions['delete'] = "<a class='delete-tag' href='" . $delete_link . "'>" . __('Delete', EMCORE_SLUG) . "</a>";
207
  //if ( $tax->public )
208
 
209
  //$actions = apply_filters( 'tag_row_actions', $actions, $tag );
6
  <h2><?php
7
  esc_html_e($title );
8
  if(!empty($modal_new_url))
9
+ echo ' <a href="' . esc_url( $modal_new_url ) . '" class="add-new-h2">' . __('Add New', 'easy-modal' ) . '</a>';
10
  if(!count_all_modals())
11
  echo ' <div class="add-new-get-started">Add a new modal to get started!</div>';
12
  ?></h2>
169
  }
170
 
171
  function get_bulk_actions() {
172
+ $actions = array('delete' => __('Delete', 'easy-modal' ));
173
  if(!empty($_GET['status']) && $_GET['status'] == 'trash')
174
  $actions['untrash'] = __( 'Restore' );
175
  if(count_deleted_modals())
176
+ $actions['empty_trash'] = __('Empty Trash', 'easy-modal' );
177
  return $actions;
178
  }
179
 
194
  $edit_link = esc_url( emodal_admin_url() .'&action=edit&id='. $item->id);
195
  $delete_link = esc_url( wp_nonce_url( emodal_admin_url() .'&action=delete&id[]='. $item->id, EMCORE_NONCE, EMCORE_NONCE));
196
 
197
+ $out = '<strong><a class="row-title" href="' . $edit_link . '" title="' . esc_attr(sprintf( __( 'Edit &#8220;%s&#8221;', 'easy-modal' ), $item->name)) . '">' . $item->name . '</a></strong><br />';
198
 
199
  $actions = array();
200
  //if ( current_user_can( $tax->cap->edit_terms ) ) {
201
+ $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit', 'easy-modal' ) . '</a>';
202
  //$actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __( 'Quick&nbsp;Edit' ) . '</a>';
203
  //}
204
+ $actions['clone'] = '<a href="' . $clone_link . '">' . __('Clone', 'easy-modal' ) . '</a>';
205
  //if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
206
+ $actions['delete'] = "<a class='delete-tag' href='" . $delete_link . "'>" . __('Delete', 'easy-modal' ) . "</a>";
207
  //if ( $tax->public )
208
 
209
  //$actions = apply_filters( 'tag_row_actions', $actions, $tag );
classes/view/admin/settings/form.php CHANGED
@@ -27,13 +27,13 @@
27
  <div class="meta-box-sortables ui-sortable" id="side-sortables">
28
  <div class="postbox " id="submitdiv">
29
  <div title="Click to toggle" class="handlediv"><br></div>
30
- <h3 class="hndle"><span><?php _e('Save', EMCORE_SLUG);?></span></h3>
31
  <div class="inside">
32
  <div id="submitpost" class="submitbox">
33
  <div id="major-publishing-actions" class="submitbox">
34
  <div id="publishing-action">
35
  <span class="spinner"></span>
36
- <input type="submit" accesskey="p" value="<?php _e('Save', EMCORE_SLUG);?>" class="button button-primary button-large" id="publish" name="publish">
37
  </div>
38
  <div class="clear"></div>
39
  </div>
27
  <div class="meta-box-sortables ui-sortable" id="side-sortables">
28
  <div class="postbox " id="submitdiv">
29
  <div title="Click to toggle" class="handlediv"><br></div>
30
+ <h3 class="hndle"><span><?php _e('Save', 'easy-modal' );?></span></h3>
31
  <div class="inside">
32
  <div id="submitpost" class="submitbox">
33
  <div id="major-publishing-actions" class="submitbox">
34
  <div id="publishing-action">
35
  <span class="spinner"></span>
36
+ <input type="submit" accesskey="p" value="<?php _e('Save', 'easy-modal' );?>" class="button button-primary button-large" id="publish" name="publish">
37
  </div>
38
  <div class="clear"></div>
39
  </div>
classes/view/admin/theme/form.php CHANGED
@@ -4,9 +4,9 @@
4
  extract($this->values)
5
  ?><div class="wrap">
6
  <h2><?php
7
- esc_html_e(__($title, EMCORE_SLUG) );
8
  if(!empty($theme_new_url))
9
- echo ' <a href="' . esc_url( admin_url( $theme_new_url ) ) . '" class="add-new-h2">' . __('Add New', EMCORE_SLUG) . '</a>';
10
  ?></h2>
11
  <h2 id="emodal-tabs" class="nav-tab-wrapper">
12
  <?php foreach($tabs as $tab){ ?>
@@ -23,12 +23,12 @@
23
  <div id="EModal-Preview">
24
  <div class="example-modal-overlay"></div>
25
  <h2>
26
- <?php _e('Theme Preview', EMCORE_SLUG)?>
27
  </h2>
28
  <div class="example-modal">
29
- <div class="title"><?php _e('Title Text', EMCORE_SLUG);?></div>
30
  <div class="content"><?php do_action('emodal_example_modal_content');?></div>
31
- <a class="close-modal"><?php _e('&#215;', EMCORE_SLUG);?></a>
32
  </div>
33
  </div>
34
  </div>
@@ -44,7 +44,7 @@
44
  <div class="meta-box-sortables ui-sortable" id="side-sortables">
45
  <div class="postbox " id="submitdiv">
46
  <div title="Click to toggle" class="handlediv"><br></div>
47
- <h3 class="hndle"><span><?php _e('Publish', EMCORE_SLUG);?></span></h3>
48
  <div class="inside">
49
  <div id="submitpost" class="submitbox">
50
  <div id="minor-publishing">
@@ -52,7 +52,7 @@
52
  <?php do_action('emodal_theme_form_minor_actions');?>
53
  <!--
54
  <div id="preview-action">
55
- <a id="post-preview" href="#" class="preview button"><?php _e('Preview', EMCORE_SLUG);?></a>
56
  <input type="hidden" value="" id="wp-preview" name="wp-preview">
57
  </div>
58
  -->
@@ -63,7 +63,7 @@
63
  <div id="major-publishing-actions" class="submitbox">
64
  <div id="publishing-action">
65
  <span class="spinner"></span>
66
- <input type="submit" accesskey="p" value="<?php _e('Save', EMCORE_SLUG);?>" class="button button-primary button-large" id="publish" name="publish">
67
  </div>
68
  <div class="clear"></div>
69
  </div>
@@ -84,7 +84,7 @@
84
  {
85
  extract($this->values);
86
  $output = '<div class="wrap">'
87
- .'<h2>'. esc_html( __($title, EMCORE_SLUG) ) .'</h2>'
88
  .'<h2 id="emodal-tabs" class="nav-tab-wrapper">';
89
  foreach($tabs as $tab)
90
  {
@@ -100,12 +100,12 @@
100
  .'<div id="EModal-Preview">'
101
  .'<div class="example-modal-overlay"></div>'
102
  .'<h2>'
103
- .__('Theme Preview', EMCORE_SLUG)
104
  .'</h2>'
105
  .'<div class="example-modal">'
106
- .'<div class="title">'. __('Title Text', EMCORE_SLUG) .'</div>'
107
  .'<div class="content">'. apply_filters('emodal_example_modal_content', '') .'</div>'
108
- .'<a class="close-modal">'. __('&#215;', EMCORE_SLUG) .'</a>'
109
  .'</div>'
110
  .'</div>'
111
  .'</div>'
@@ -122,13 +122,13 @@
122
  .'<div class="meta-box-sortables ui-sortable" id="side-sortables">'
123
  .'<div class="postbox " id="submitdiv">'
124
  .'<div title="Click to toggle" class="handlediv"><br></div>'
125
- .'<h3 class="hndle"><span>'. __('Publish', EMCORE_SLUG). '</span></h3>'
126
  .'<div class="inside">'
127
  .'<div id="submitpost" class="submitbox">'
128
  .'<div id="minor-publishing">'
129
  .'<div id="minor-publishing-actions">'
130
  .'<div id="preview-action">'
131
- .'<a id="post-preview" href="#" class="preview button">'. __('Preview', EMCORE_SLUG) .'</a>'
132
  .'<input type="hidden" value="" id="wp-preview" name="wp-preview">'
133
  .'</div>'
134
  .'<div class="clear"></div>'
@@ -138,7 +138,7 @@
138
  .'<div id="major-publishing-actions" class="submitbox">'
139
  .'<div id="publishing-action">'
140
  .'<span class="spinner"></span>'
141
- .'<input type="submit" accesskey="p" value="'. __('Save', EMCORE_SLUG) .'" class="button button-primary button-large" id="publish" name="publish">'
142
  .'</div>'
143
  .'<div class="clear"></div>'
144
  .'</div>'
4
  extract($this->values)
5
  ?><div class="wrap">
6
  <h2><?php
7
+ esc_html_e(__($title, 'easy-modal' ) );
8
  if(!empty($theme_new_url))
9
+ echo ' <a href="' . esc_url( admin_url( $theme_new_url ) ) . '" class="add-new-h2">' . __('Add New', 'easy-modal' ) . '</a>';
10
  ?></h2>
11
  <h2 id="emodal-tabs" class="nav-tab-wrapper">
12
  <?php foreach($tabs as $tab){ ?>
23
  <div id="EModal-Preview">
24
  <div class="example-modal-overlay"></div>
25
  <h2>
26
+ <?php _e('Theme Preview', 'easy-modal' )?>
27
  </h2>
28
  <div class="example-modal">
29
+ <div class="title"><?php _e('Title Text', 'easy-modal' );?></div>
30
  <div class="content"><?php do_action('emodal_example_modal_content');?></div>
31
+ <a class="close-modal"><?php _e('&#215;', 'easy-modal' );?></a>
32
  </div>
33
  </div>
34
  </div>
44
  <div class="meta-box-sortables ui-sortable" id="side-sortables">
45
  <div class="postbox " id="submitdiv">
46
  <div title="Click to toggle" class="handlediv"><br></div>
47
+ <h3 class="hndle"><span><?php _e('Publish', 'easy-modal' );?></span></h3>
48
  <div class="inside">
49
  <div id="submitpost" class="submitbox">
50
  <div id="minor-publishing">
52
  <?php do_action('emodal_theme_form_minor_actions');?>
53
  <!--
54
  <div id="preview-action">
55
+ <a id="post-preview" href="#" class="preview button"><?php _e('Preview', 'easy-modal' );?></a>
56
  <input type="hidden" value="" id="wp-preview" name="wp-preview">
57
  </div>
58
  -->
63
  <div id="major-publishing-actions" class="submitbox">
64
  <div id="publishing-action">
65
  <span class="spinner"></span>
66
+ <input type="submit" accesskey="p" value="<?php _e('Save', 'easy-modal' );?>" class="button button-primary button-large" id="publish" name="publish">
67
  </div>
68
  <div class="clear"></div>
69
  </div>
84
  {
85
  extract($this->values);
86
  $output = '<div class="wrap">'
87
+ .'<h2>'. esc_html( __($title, 'easy-modal' ) ) .'</h2>'
88
  .'<h2 id="emodal-tabs" class="nav-tab-wrapper">';
89
  foreach($tabs as $tab)
90
  {
100
  .'<div id="EModal-Preview">'
101
  .'<div class="example-modal-overlay"></div>'
102
  .'<h2>'
103
+ .__('Theme Preview', 'easy-modal' )
104
  .'</h2>'
105
  .'<div class="example-modal">'
106
+ .'<div class="title">'. __('Title Text', 'easy-modal' ) .'</div>'
107
  .'<div class="content">'. apply_filters('emodal_example_modal_content', '') .'</div>'
108
+ .'<a class="close-modal">'. __('&#215;', 'easy-modal' ) .'</a>'
109
  .'</div>'
110
  .'</div>'
111
  .'</div>'
122
  .'<div class="meta-box-sortables ui-sortable" id="side-sortables">'
123
  .'<div class="postbox " id="submitdiv">'
124
  .'<div title="Click to toggle" class="handlediv"><br></div>'
125
+ .'<h3 class="hndle"><span>'. __('Publish', 'easy-modal' ). '</span></h3>'
126
  .'<div class="inside">'
127
  .'<div id="submitpost" class="submitbox">'
128
  .'<div id="minor-publishing">'
129
  .'<div id="minor-publishing-actions">'
130
  .'<div id="preview-action">'
131
+ .'<a id="post-preview" href="#" class="preview button">'. __('Preview', 'easy-modal' ) .'</a>'
132
  .'<input type="hidden" value="" id="wp-preview" name="wp-preview">'
133
  .'</div>'
134
  .'<div class="clear"></div>'
138
  .'<div id="major-publishing-actions" class="submitbox">'
139
  .'<div id="publishing-action">'
140
  .'<span class="spinner"></span>'
141
+ .'<input type="submit" accesskey="p" value="'. __('Save', 'easy-modal' ) .'" class="button button-primary button-large" id="publish" name="publish">'
142
  .'</div>'
143
  .'<div class="clear"></div>'
144
  .'</div>'
classes/view/modal.php CHANGED
@@ -75,7 +75,7 @@ add_filter('emodal_modal_inner', 'emodal_modal_inner_close', 15, 2);
75
  function emodal_modal_inner_close($output, $modal)
76
  {
77
  $output .= apply_filters('emodal_before_modal_close', '', $modal);
78
- $output .= '<a class="'. esc_attr( apply_filters('emodal_modal_close_class_attr', 'emodal-close', $modal) ) .'">'. apply_filters('emodal_modal_close', __("&#215;", EMCORE_SLUG), $modal) .'</a>';
79
  $output .= apply_filters('emodal_after_modal_close', '', $modal);
80
  return $output;
81
  }
75
  function emodal_modal_inner_close($output, $modal)
76
  {
77
  $output .= apply_filters('emodal_before_modal_close', '', $modal);
78
+ $output .= '<a class="'. esc_attr( apply_filters('emodal_modal_close_class_attr', 'emodal-close', $modal) ) .'">'. apply_filters('emodal_modal_close', __("&#215;", 'easy-modal' ), $modal) .'</a>';
79
  $output .= apply_filters('emodal_after_modal_close', '', $modal);
80
  return $output;
81
  }
easy-modal.php CHANGED
@@ -3,9 +3,9 @@
3
  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.16
8
- Author URI: http://wizardinternetsolutions.com
9
  Text Domain: easy-modal
10
  */
11
  if (!defined('EMCORE'))
@@ -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.16' );
25
  if (!defined('EMCORE_DB_VERSION'))
26
  define('EMCORE_DB_VERSION', '1.1' );
27
  if (!defined('EMCORE_API_URL'))
3
  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: Daniel Iser
7
+ Version: 2.0.17
8
+ Author URI: http://danieliser.com
9
  Text Domain: easy-modal
10
  */
11
  if (!defined('EMCORE'))
21
  if (!defined('EMCORE_NONCE'))
22
  define('EMCORE_NONCE', EMCORE_SLUG.'_nonce' );
23
  if (!defined('EMCORE_VERSION'))
24
+ define('EMCORE_VERSION', '2.0.17' );
25
  if (!defined('EMCORE_DB_VERSION'))
26
  define('EMCORE_DB_VERSION', '1.1' );
27
  if (!defined('EMCORE_API_URL'))
includes/admin/functions.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  if(!function_exists("is_emodal_admin_page")){
3
  function is_emodal_admin_page(){
4
- if(is_admin() && !empty($_GET['page']) && ( strpos($_GET['page'], EMCORE_SLUG) === 0 || in_array($_GET['page'], apply_filters('emodal_admin_pages', array()))))
5
  {
6
  return true;
7
  }
1
  <?php
2
  if(!function_exists("is_emodal_admin_page")){
3
  function is_emodal_admin_page(){
4
+ if(is_admin() && !empty($_GET['page']) && ( strpos($_GET['page'], 'easy-modal' ) === 0 || in_array($_GET['page'], apply_filters('emodal_admin_pages', array()))))
5
  {
6
  return true;
7
  }
includes/admin/help-general-tab.php CHANGED
@@ -2,26 +2,26 @@
2
  add_filter('emodal_admin_help_tabs', 'emodal_admin_help_general_tab', 10);
3
  function emodal_admin_help_general_tab($tabs)
4
  {
5
- $tabs[] = array( 'id' => 'general', 'label' => __('General Usage', EMCORE_SLUG) );
6
  return $tabs;
7
  }
8
 
9
  add_action('emodal_admin_help_tab_general', 'emodal_admin_help_general_tab_content', 10);
10
  function emodal_admin_help_general_tab_content()
11
  {?>
12
- <h4><?php _e('Copy the class to the link/button you want to open this modal.', EMCORE_SLUG);?><span class="desc"><?php _e('Will start with eModal- and end with a # of the modal you want to open.', EMCORE_SLUG);?></span></h4>
13
  <div class="tab-box">
14
- <h4><?php _e('Link Example', EMCORE_SLUG);?></h4>
15
- <a href="#" onclick="return false;" class="eModal-1"><?php _e('Open Modal', EMCORE_SLUG);?></a>
16
- <pre>&lt;a href="#" class="eModal-1"><?php _e('Open Modal', EMCORE_SLUG);?>&lt;/a></pre>
17
  </div>
18
  <div class="tab-box">
19
- <h4><?php _e('Button Example', EMCORE_SLUG);?></h4>
20
- <button onclick="return false;" class="eModal-1"><?php _e('Open Modal', EMCORE_SLUG);?></button>
21
- <pre>&lt;button class="eModal-1"><?php _e('Open Modal', EMCORE_SLUG);?>&lt;/button></pre>
22
  </div>
23
  <div class="tab-box">
24
- <h4><?php _e('Image Example', EMCORE_SLUG);?></h4>
25
  <img style="cursor:pointer;" src="<?php echo EMCORE_URL?>/assets/images/admin/easy-modal-icon.png" onclick="return false;" class="eModal-1" />
26
  <pre>&lt;img src="easy-modal-icon.png" class="eModal-1" /></pre>
27
  </div><?php
2
  add_filter('emodal_admin_help_tabs', 'emodal_admin_help_general_tab', 10);
3
  function emodal_admin_help_general_tab($tabs)
4
  {
5
+ $tabs[] = array( 'id' => 'general', 'label' => __('General Usage', 'easy-modal' ) );
6
  return $tabs;
7
  }
8
 
9
  add_action('emodal_admin_help_tab_general', 'emodal_admin_help_general_tab_content', 10);
10
  function emodal_admin_help_general_tab_content()
11
  {?>
12
+ <h4><?php _e('Copy the class to the link/button you want to open this modal.', 'easy-modal' );?><span class="desc"><?php _e('Will start with eModal- and end with a # of the modal you want to open.', 'easy-modal' );?></span></h4>
13
  <div class="tab-box">
14
+ <h4><?php _e('Link Example', 'easy-modal' );?></h4>
15
+ <a href="#" onclick="return false;" class="eModal-1"><?php _e('Open Modal', 'easy-modal' );?></a>
16
+ <pre>&lt;a href="#" class="eModal-1"><?php _e('Open Modal', 'easy-modal' );?>&lt;/a></pre>
17
  </div>
18
  <div class="tab-box">
19
+ <h4><?php _e('Button Example', 'easy-modal' );?></h4>
20
+ <button onclick="return false;" class="eModal-1"><?php _e('Open Modal', 'easy-modal' );?></button>
21
+ <pre>&lt;button class="eModal-1"><?php _e('Open Modal', 'easy-modal' );?>&lt;/button></pre>
22
  </div>
23
  <div class="tab-box">
24
+ <h4><?php _e('Image Example', 'easy-modal' );?></h4>
25
  <img style="cursor:pointer;" src="<?php echo EMCORE_URL?>/assets/images/admin/easy-modal-icon.png" onclick="return false;" class="eModal-1" />
26
  <pre>&lt;img src="easy-modal-icon.png" class="eModal-1" /></pre>
27
  </div><?php
includes/admin/modal-form-close-tab.php CHANGED
@@ -2,7 +2,7 @@
2
  add_filter('emodal_admin_modal_form_tabs', 'emodal_admin_modal_form_close_tab', 30);
3
  function emodal_admin_modal_form_close_tab($tabs)
4
  {
5
- $tabs[] = array( 'id' => 'close', 'label' => __('Close Options', EMCORE_SLUG) );
6
  return $tabs;
7
  }
8
 
@@ -22,10 +22,10 @@ add_action('emodal_admin_modal_form_tab_close_settings', 'emodal_admin_modal_for
22
  function emodal_admin_modal_form_tab_close_settings_overlay_click()
23
  {
24
  ?><tr>
25
- <th scope="row"><?php _e('Click Overlay to Close', EMCORE_SLUG);?></th>
26
  <td>
27
  <input type="checkbox" value="true" name="modal[meta][close][overlay_click]" id="close_overlay_click" <?php echo get_current_modal('meta.close.overlay_click') ? 'checked="checked" ' : '';?>/>
28
- <label for="close_overlay_click" class="description"><?php _e('Checking this will cause modal to close when user clicks on overlay.', EMCORE_SLUG);?></label>
29
  </td>
30
  </tr><?php
31
  }
@@ -35,10 +35,10 @@ add_action('emodal_admin_modal_form_tab_close_settings', 'emodal_admin_modal_for
35
  function emodal_admin_modal_form_tab_close_settings_esc_press()
36
  {
37
  ?><tr>
38
- <th scope="row"><?php _e('Press ESC to Close', EMCORE_SLUG);?></th>
39
  <td>
40
  <input type="checkbox" value="true" name="modal[meta][close][esc_press]" id="close_esc_press" <?php echo get_current_modal('meta.close.esc_press') ? 'checked="checked" ' : '';?>/>
41
- <label for="close_esc_press" class="description"><?php _e('Checking this will cause modal to close when user presses ESC key.', EMCORE_SLUG);?></label>
42
  </td>
43
  </tr><?php
44
  }
2
  add_filter('emodal_admin_modal_form_tabs', 'emodal_admin_modal_form_close_tab', 30);
3
  function emodal_admin_modal_form_close_tab($tabs)
4
  {
5
+ $tabs[] = array( 'id' => 'close', 'label' => __('Close Options', 'easy-modal' ) );
6
  return $tabs;
7
  }
8
 
22
  function emodal_admin_modal_form_tab_close_settings_overlay_click()
23
  {
24
  ?><tr>
25
+ <th scope="row"><?php _e('Click Overlay to Close', 'easy-modal' );?></th>
26
  <td>
27
  <input type="checkbox" value="true" name="modal[meta][close][overlay_click]" id="close_overlay_click" <?php echo get_current_modal('meta.close.overlay_click') ? 'checked="checked" ' : '';?>/>
28
+ <label for="close_overlay_click" class="description"><?php _e('Checking this will cause modal to close when user clicks on overlay.', 'easy-modal' );?></label>
29
  </td>
30
  </tr><?php
31
  }
35
  function emodal_admin_modal_form_tab_close_settings_esc_press()
36
  {
37
  ?><tr>
38
+ <th scope="row"><?php _e('Press ESC to Close', 'easy-modal' );?></th>
39
  <td>
40
  <input type="checkbox" value="true" name="modal[meta][close][esc_press]" id="close_esc_press" <?php echo get_current_modal('meta.close.esc_press') ? 'checked="checked" ' : '';?>/>
41
+ <label for="close_esc_press" class="description"><?php _e('Checking this will cause modal to close when user presses ESC key.', 'easy-modal' );?></label>
42
  </td>
43
  </tr><?php
44
  }
includes/admin/modal-form-display-tab.php CHANGED
@@ -2,7 +2,7 @@
2
  add_filter('emodal_admin_modal_form_tabs', 'emodal_admin_modal_form_display_tab', 20);
3
  function emodal_admin_modal_form_display_tab($tabs)
4
  {
5
- $tabs[] = array( 'id' => 'display', 'label' => __('Display Options', EMCORE_SLUG) );
6
  return $tabs;
7
  }
8
 
@@ -24,7 +24,7 @@ function emodal_admin_modal_form_tab_display_settings_size()
24
  ?><tr>
25
  <th scope="row">
26
  <label for="size">
27
- <?php _e('Size', EMCORE_SLUG);?>
28
  </label>
29
  </th>
30
  <td>
@@ -37,7 +37,7 @@ function emodal_admin_modal_form_tab_display_settings_size()
37
  ><?php echo $option;?></option>
38
  <?php endforeach ?>
39
  </select>
40
- <p class="description"><?php _e('Select the size of the modal.', EMCORE_SLUG)?></p>
41
  </td>
42
  </tr><?php
43
  }
@@ -48,7 +48,7 @@ function emodal_admin_modal_form_tab_display_settings_custom_sizes()
48
  {
49
  ?><tr class="custom-size-only">
50
  <th scope="row">
51
- <label for="custom_width"><?php _e('Width', EMCORE_SLUG);?></label>
52
  </th>
53
  <td>
54
  <input type="text" value="<?php esc_html_e(get_current_modal('meta.display.custom_width'));?>" size="5" name="modal[meta][display][custom_width]" id="custom_width"/>
@@ -61,23 +61,23 @@ function emodal_admin_modal_form_tab_display_settings_custom_sizes()
61
  ><?php echo $option;?></option>
62
  <?php endforeach ?>
63
  </select>
64
- <p class="description"><?php _e('Set a custom width for the modal.', EMCORE_SLUG);?></p>
65
  </td>
66
  </tr>
67
 
68
 
69
  <tr class="custom-size-only">
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
 
77
 
78
  <tr class="custom-size-only custom-size-height-only"<?php echo get_current_modal('meta.display.custom_height_auto') ? ' style="display:none"' : '';?>>
79
  <th scope="row">
80
- <?php _e('Height', EMCORE_SLUG);?>
81
  </th>
82
  <td>
83
  <input type="text" value="<?php esc_html_e(get_current_modal('meta.display.custom_height'));?>" size="5" name="modal[meta][display][custom_height]" id="custom_height"/>
@@ -90,7 +90,7 @@ function emodal_admin_modal_form_tab_display_settings_custom_sizes()
90
  ><?php echo $option;?></option>
91
  <?php endforeach ?>
92
  </select>
93
- <p class="description"><?php _e('Set a custom height for the modal.', EMCORE_SLUG);?></p>
94
  </td>
95
  </tr>
96
  <?php
@@ -100,10 +100,10 @@ add_action('emodal_admin_modal_form_tab_display_settings', 'emodal_admin_modal_f
100
  function emodal_admin_modal_form_tab_display_settings_overlay_disabled()
101
  {
102
  ?><tr>
103
- <th scope="row"><?php _e('Disable Overlay', EMCORE_SLUG);?></th>
104
  <td>
105
  <input type="checkbox" value="true" name="modal[meta][display][overlay_disabled]" id="overlay_disabled" <?php echo get_current_modal('meta.display.overlay_disabled') ? 'checked="checked" ' : '';?>/>
106
- <label for="overlay_disabled" class="description"><?php _e('Checking this will disable and hide the overlay for this modal.', EMCORE_SLUG);?></label>
107
  </td>
108
  </tr><?php
109
  }
@@ -112,12 +112,12 @@ add_action('emodal_admin_modal_form_tab_display_settings', 'emodal_admin_modal_f
112
  function emodal_admin_modal_form_tab_display_settings_animation()
113
  {
114
  ?><tr class="title-divider">
115
- <th colspan="2"><h3 class="title"><?php _e('Animation', EMCORE_SLUG);?></h3></th>
116
  </tr>
117
  <tr>
118
  <th scope="row">
119
  <label for="animation_type">
120
- <?php _e('Animation Type', EMCORE_SLUG);?>
121
  </label>
122
  </th>
123
  <td>
@@ -129,25 +129,25 @@ function emodal_admin_modal_form_tab_display_settings_animation()
129
  ><?php echo $option;?></option>
130
  <?php endforeach ?>
131
  </select>
132
- <p class="description"><?php _e('Select an animation type for your modal.', EMCORE_SLUG)?></p>
133
  </td>
134
  </tr>
135
  <tr class="animation-speed">
136
  <th scope="row">
137
  <label for="animation_speed">
138
- <?php _e('Animation Speed', EMCORE_SLUG);?>
139
  </label>
140
  </th>
141
  <td>
142
  <input type="range" name="modal[meta][display][animation][speed]" id="animation_speed" step="10" value="<?php esc_attr_e(get_current_modal('meta.display.animation.speed'))?>" min="<?php esc_html_e(apply_filters('emodal_admin_modal_min_animation_speed', 50));?>" max="<?php esc_html_e(apply_filters('emodal_admin_modal_max_animation_speed', 1000));?>"/>
143
  <span class="range-value regular-text"><?php esc_html_e(get_current_modal('meta.display.animation.speed'));?>ms</span>
144
- <p class="description"><?php _e('Set the animation speed for the modal.', EMCORE_SLUG)?></p>
145
  </td>
146
  </tr>
147
  <tr class="animation-origin">
148
  <th scope="row">
149
  <label for="animation_origin">
150
- <?php _e('Animation Origin', EMCORE_SLUG);?>
151
  </label>
152
  </th>
153
  <td>
@@ -159,7 +159,7 @@ function emodal_admin_modal_form_tab_display_settings_animation()
159
  ><?php echo $option;?></option>
160
  <?php endforeach ?>
161
  </select>
162
- <p class="description"><?php _e('Choose where the animation will begin.', EMCORE_SLUG)?></p>
163
  </td>
164
  </tr>
165
  <?php
@@ -170,11 +170,11 @@ add_action('emodal_admin_modal_form_tab_display_settings', 'emodal_admin_modal_f
170
  function emodal_admin_modal_form_display_tab_settings_position()
171
  {
172
  ?><tr class="title-divider">
173
- <th colspan="2"><h3 class="title"><?php _e('Position', EMCORE_SLUG);?></h3></th>
174
  </tr>
175
  <tr>
176
  <th scope="row">
177
- <label for="display_location"><?php _e('Location', EMCORE_SLUG);?></label>
178
  </th>
179
  <td>
180
  <select name="modal[meta][display][location]" id="display_location">
@@ -185,54 +185,54 @@ function emodal_admin_modal_form_display_tab_settings_position()
185
  ><?php echo $option;?></option>
186
  <?php endforeach ?>
187
  </select>
188
- <p class="description"><?php _e('Choose which corner the close button will be positioned.', EMCORE_SLUG)?></p>
189
  </td>
190
  </tr>
191
  <tr>
192
- <th scope="row"><?php _e('Fixed Postioning', EMCORE_SLUG);?></th>
193
  <td>
194
  <input type="checkbox" value="true" name="modal[meta][display][position][fixed]" id="display_position_fixed" <?php echo get_current_modal('meta.display.position.fixed') ? 'checked="checked" ' : '';?>/>
195
- <label for="display_position_fixed" class="description"><?php _e('Checking this sets the positioning of the modal to fixed.', EMCORE_SLUG);?></label>
196
  </td>
197
  </tr>
198
  <tr class="top">
199
  <th scope="row">
200
- <label for="display_position_top"><?php _e('Top', EMCORE_SLUG);?></label>
201
  </th>
202
  <td>
203
  <input type="range" name="modal[meta][display][position][top]" id="display_position_top" min="0" max="500" step="1" value="<?php esc_attr_e(get_current_modal('meta.display.position.top'))?>" />
204
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal('meta.display.position.top'));?></span>px</span>
205
- <p class="description"><?php _e('Distance from the top edge of the screen.',EMCORE_SLUG)?></p>
206
  </td>
207
  </tr>
208
  <tr class="bottom">
209
  <th scope="row">
210
- <label for="display_position_bottom"><?php _e('Bottom', EMCORE_SLUG);?></label>
211
  </th>
212
  <td>
213
  <input type="range" name="modal[meta][display][position][bottom]" id="display_position_bottom" min="0" max="500" step="1" value="<?php esc_attr_e(get_current_modal('meta.display.position.bottom'))?>" />
214
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal('meta.display.position.bottom'));?></span>px</span>
215
- <p class="description"><?php _e('Distance from the bottom edge of the screen.',EMCORE_SLUG)?></p>
216
  </td>
217
  </tr>
218
  <tr class="left">
219
  <th scope="row">
220
- <label for="display_position_left"><?php _e('Left', EMCORE_SLUG);?></label>
221
  </th>
222
  <td>
223
  <input type="range" name="modal[meta][display][position][left]" id="display_position_left" min="0" max="500" step="1" value="<?php esc_attr_e(get_current_modal('meta.display.position.left'))?>" />
224
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal('meta.display.position.left'));?></span>px</span>
225
- <p class="description"><?php _e('Distance from the left edge of the screen.',EMCORE_SLUG)?></p>
226
  </td>
227
  </tr>
228
  <tr class="right">
229
  <th scope="row">
230
- <label for="display_position_right"><?php _e('Right', EMCORE_SLUG);?></label>
231
  </th>
232
  <td>
233
  <input type="range" name="modal[meta][display][position][right]" id="display_position_right" min="0" max="500" step="1" value="<?php esc_attr_e(get_current_modal('meta.display.position.right'))?>" />
234
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal('meta.display.position.right'));?></span>px</span>
235
- <p class="description"><?php _e('Distance from the right edge of the screen.',EMCORE_SLUG)?></p>
236
  </td>
237
  </tr><?php
238
  }
2
  add_filter('emodal_admin_modal_form_tabs', 'emodal_admin_modal_form_display_tab', 20);
3
  function emodal_admin_modal_form_display_tab($tabs)
4
  {
5
+ $tabs[] = array( 'id' => 'display', 'label' => __('Display Options', 'easy-modal' ) );
6
  return $tabs;
7
  }
8
 
24
  ?><tr>
25
  <th scope="row">
26
  <label for="size">
27
+ <?php _e('Size', 'easy-modal' );?>
28
  </label>
29
  </th>
30
  <td>
37
  ><?php echo $option;?></option>
38
  <?php endforeach ?>
39
  </select>
40
+ <p class="description"><?php _e('Select the size of the modal.', 'easy-modal' )?></p>
41
  </td>
42
  </tr><?php
43
  }
48
  {
49
  ?><tr class="custom-size-only">
50
  <th scope="row">
51
+ <label for="custom_width"><?php _e('Width', 'easy-modal' );?></label>
52
  </th>
53
  <td>
54
  <input type="text" value="<?php esc_html_e(get_current_modal('meta.display.custom_width'));?>" size="5" name="modal[meta][display][custom_width]" id="custom_width"/>
61
  ><?php echo $option;?></option>
62
  <?php endforeach ?>
63
  </select>
64
+ <p class="description"><?php _e('Set a custom width for the modal.', 'easy-modal' );?></p>
65
  </td>
66
  </tr>
67
 
68
 
69
  <tr class="custom-size-only">
70
+ <th scope="row"><?php _e('Auto Adjusted Height', 'easy-modal' );?></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.', 'easy-modal' );?></label>
74
  </td>
75
  </tr>
76
 
77
 
78
  <tr class="custom-size-only custom-size-height-only"<?php echo get_current_modal('meta.display.custom_height_auto') ? ' style="display:none"' : '';?>>
79
  <th scope="row">
80
+ <?php _e('Height', 'easy-modal' );?>
81
  </th>
82
  <td>
83
  <input type="text" value="<?php esc_html_e(get_current_modal('meta.display.custom_height'));?>" size="5" name="modal[meta][display][custom_height]" id="custom_height"/>
90
  ><?php echo $option;?></option>
91
  <?php endforeach ?>
92
  </select>
93
+ <p class="description"><?php _e('Set a custom height for the modal.', 'easy-modal' );?></p>
94
  </td>
95
  </tr>
96
  <?php
100
  function emodal_admin_modal_form_tab_display_settings_overlay_disabled()
101
  {
102
  ?><tr>
103
+ <th scope="row"><?php _e('Disable Overlay', 'easy-modal' );?></th>
104
  <td>
105
  <input type="checkbox" value="true" name="modal[meta][display][overlay_disabled]" id="overlay_disabled" <?php echo get_current_modal('meta.display.overlay_disabled') ? 'checked="checked" ' : '';?>/>
106
+ <label for="overlay_disabled" class="description"><?php _e('Checking this will disable and hide the overlay for this modal.', 'easy-modal' );?></label>
107
  </td>
108
  </tr><?php
109
  }
112
  function emodal_admin_modal_form_tab_display_settings_animation()
113
  {
114
  ?><tr class="title-divider">
115
+ <th colspan="2"><h3 class="title"><?php _e('Animation', 'easy-modal' );?></h3></th>
116
  </tr>
117
  <tr>
118
  <th scope="row">
119
  <label for="animation_type">
120
+ <?php _e('Animation Type', 'easy-modal' );?>
121
  </label>
122
  </th>
123
  <td>
129
  ><?php echo $option;?></option>
130
  <?php endforeach ?>
131
  </select>
132
+ <p class="description"><?php _e('Select an animation type for your modal.', 'easy-modal' )?></p>
133
  </td>
134
  </tr>
135
  <tr class="animation-speed">
136
  <th scope="row">
137
  <label for="animation_speed">
138
+ <?php _e('Animation Speed', 'easy-modal' );?>
139
  </label>
140
  </th>
141
  <td>
142
  <input type="range" name="modal[meta][display][animation][speed]" id="animation_speed" step="10" value="<?php esc_attr_e(get_current_modal('meta.display.animation.speed'))?>" min="<?php esc_html_e(apply_filters('emodal_admin_modal_min_animation_speed', 50));?>" max="<?php esc_html_e(apply_filters('emodal_admin_modal_max_animation_speed', 1000));?>"/>
143
  <span class="range-value regular-text"><?php esc_html_e(get_current_modal('meta.display.animation.speed'));?>ms</span>
144
+ <p class="description"><?php _e('Set the animation speed for the modal.', 'easy-modal' )?></p>
145
  </td>
146
  </tr>
147
  <tr class="animation-origin">
148
  <th scope="row">
149
  <label for="animation_origin">
150
+ <?php _e('Animation Origin', 'easy-modal' );?>
151
  </label>
152
  </th>
153
  <td>
159
  ><?php echo $option;?></option>
160
  <?php endforeach ?>
161
  </select>
162
+ <p class="description"><?php _e('Choose where the animation will begin.', 'easy-modal' )?></p>
163
  </td>
164
  </tr>
165
  <?php
170
  function emodal_admin_modal_form_display_tab_settings_position()
171
  {
172
  ?><tr class="title-divider">
173
+ <th colspan="2"><h3 class="title"><?php _e('Position', 'easy-modal' );?></h3></th>
174
  </tr>
175
  <tr>
176
  <th scope="row">
177
+ <label for="display_location"><?php _e('Location', 'easy-modal' );?></label>
178
  </th>
179
  <td>
180
  <select name="modal[meta][display][location]" id="display_location">
185
  ><?php echo $option;?></option>
186
  <?php endforeach ?>
187
  </select>
188
+ <p class="description"><?php _e('Choose which corner the close button will be positioned.', 'easy-modal' )?></p>
189
  </td>
190
  </tr>
191
  <tr>
192
+ <th scope="row"><?php _e('Fixed Postioning', 'easy-modal' );?></th>
193
  <td>
194
  <input type="checkbox" value="true" name="modal[meta][display][position][fixed]" id="display_position_fixed" <?php echo get_current_modal('meta.display.position.fixed') ? 'checked="checked" ' : '';?>/>
195
+ <label for="display_position_fixed" class="description"><?php _e('Checking this sets the positioning of the modal to fixed.', 'easy-modal' );?></label>
196
  </td>
197
  </tr>
198
  <tr class="top">
199
  <th scope="row">
200
+ <label for="display_position_top"><?php _e('Top', 'easy-modal' );?></label>
201
  </th>
202
  <td>
203
  <input type="range" name="modal[meta][display][position][top]" id="display_position_top" min="0" max="500" step="1" value="<?php esc_attr_e(get_current_modal('meta.display.position.top'))?>" />
204
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal('meta.display.position.top'));?></span>px</span>
205
+ <p class="description"><?php _e('Distance from the top edge of the screen.', 'easy-modal' )?></p>
206
  </td>
207
  </tr>
208
  <tr class="bottom">
209
  <th scope="row">
210
+ <label for="display_position_bottom"><?php _e('Bottom', 'easy-modal' );?></label>
211
  </th>
212
  <td>
213
  <input type="range" name="modal[meta][display][position][bottom]" id="display_position_bottom" min="0" max="500" step="1" value="<?php esc_attr_e(get_current_modal('meta.display.position.bottom'))?>" />
214
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal('meta.display.position.bottom'));?></span>px</span>
215
+ <p class="description"><?php _e('Distance from the bottom edge of the screen.', 'easy-modal' )?></p>
216
  </td>
217
  </tr>
218
  <tr class="left">
219
  <th scope="row">
220
+ <label for="display_position_left"><?php _e('Left', 'easy-modal' );?></label>
221
  </th>
222
  <td>
223
  <input type="range" name="modal[meta][display][position][left]" id="display_position_left" min="0" max="500" step="1" value="<?php esc_attr_e(get_current_modal('meta.display.position.left'))?>" />
224
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal('meta.display.position.left'));?></span>px</span>
225
+ <p class="description"><?php _e('Distance from the left edge of the screen.', 'easy-modal' )?></p>
226
  </td>
227
  </tr>
228
  <tr class="right">
229
  <th scope="row">
230
+ <label for="display_position_right"><?php _e('Right', 'easy-modal' );?></label>
231
  </th>
232
  <td>
233
  <input type="range" name="modal[meta][display][position][right]" id="display_position_right" min="0" max="500" step="1" value="<?php esc_attr_e(get_current_modal('meta.display.position.right'))?>" />
234
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal('meta.display.position.right'));?></span>px</span>
235
+ <p class="description"><?php _e('Distance from the right edge of the screen.', 'easy-modal' )?></p>
236
  </td>
237
  </tr><?php
238
  }
includes/admin/modal-form-example-tab.php CHANGED
@@ -2,7 +2,7 @@
2
  add_filter('emodal_admin_modal_form_tabs', 'emodal_admin_modal_form_examples_tab', 100);
3
  function emodal_admin_modal_form_examples_tab($tabs)
4
  {
5
- $tabs[] = array( 'id' => 'examples', 'label' => __('Examples', EMCORE_SLUG) );
6
  return $tabs;
7
  }
8
 
@@ -11,21 +11,21 @@ function emodal_admin_modal_form_examples_tab_settings()
11
  {
12
  $modal = get_current_modal();
13
  ?><h4>
14
- <?php _e('Copy this class to the link/button you want to open this modal.', EMCORE_SLUG)?>
15
  <span class="desc">eModal-<?php esc_html_e($modal->id)?></span>
16
  </h4>
17
  <div class="tab-box">
18
- <h4><?php _e('Link Example', EMCORE_SLUG)?></h4>
19
- <a href="#" onclick="return false;" class="eModal-<?php esc_html_e($modal->id)?>"><?php _e('Open Modal', EMCORE_SLUG)?></a>
20
- <pre>&lt;a href="#" class="eModal-<?php esc_html_e($modal->id)?>"><?php _e('Open Modal', EMCORE_SLUG)?>&lt;/a></pre>
21
  </div>
22
  <div class="tab-box">
23
- <h4><?php _e('Button Example', EMCORE_SLUG)?></h4>
24
- <button onclick="return false;" class="eModal-<?php esc_html_e($modal->id)?>"><?php _e('Open Modal', EMCORE_SLUG)?></button>
25
- <pre>&lt;button class="eModal-<?php esc_html_e($modal->id)?>"><?php _e('Open Modal', EMCORE_SLUG)?>&lt;/button></pre>
26
  </div>
27
  <div class="tab-box">
28
- <h4><?php _e('Image Example', EMCORE_SLUG)?></h4>
29
  <img style="cursor:pointer;" src="<?php echo EMCORE_URL?>/assets/images/admin/easy-modal-icon.png" onclick="return false;" class="eModal-<?php esc_html_e($modal->id)?>" />
30
  <pre>&lt;img src="easy-modal-icon.png" class="eModal-<?php esc_html_e($modal->id)?>" /></pre>
31
  </div><?php
2
  add_filter('emodal_admin_modal_form_tabs', 'emodal_admin_modal_form_examples_tab', 100);
3
  function emodal_admin_modal_form_examples_tab($tabs)
4
  {
5
+ $tabs[] = array( 'id' => 'examples', 'label' => __('Examples', 'easy-modal' ) );
6
  return $tabs;
7
  }
8
 
11
  {
12
  $modal = get_current_modal();
13
  ?><h4>
14
+ <?php _e('Copy this class to the link/button you want to open this modal.', 'easy-modal' )?>
15
  <span class="desc">eModal-<?php esc_html_e($modal->id)?></span>
16
  </h4>
17
  <div class="tab-box">
18
+ <h4><?php _e('Link Example', 'easy-modal' )?></h4>
19
+ <a href="#" onclick="return false;" class="eModal-<?php esc_html_e($modal->id)?>"><?php _e('Open Modal', 'easy-modal' )?></a>
20
+ <pre>&lt;a href="#" class="eModal-<?php esc_html_e($modal->id)?>"><?php _e('Open Modal', 'easy-modal' )?>&lt;/a></pre>
21
  </div>
22
  <div class="tab-box">
23
+ <h4><?php _e('Button Example', 'easy-modal' )?></h4>
24
+ <button onclick="return false;" class="eModal-<?php esc_html_e($modal->id)?>"><?php _e('Open Modal', 'easy-modal' )?></button>
25
+ <pre>&lt;button class="eModal-<?php esc_html_e($modal->id)?>"><?php _e('Open Modal', 'easy-modal' )?>&lt;/button></pre>
26
  </div>
27
  <div class="tab-box">
28
+ <h4><?php _e('Image Example', 'easy-modal' )?></h4>
29
  <img style="cursor:pointer;" src="<?php echo EMCORE_URL?>/assets/images/admin/easy-modal-icon.png" onclick="return false;" class="eModal-<?php esc_html_e($modal->id)?>" />
30
  <pre>&lt;img src="easy-modal-icon.png" class="eModal-<?php esc_html_e($modal->id)?>" /></pre>
31
  </div><?php
includes/admin/modal-form-general-tab.php CHANGED
@@ -2,7 +2,7 @@
2
  add_filter('emodal_admin_modal_form_tabs', 'emodal_admin_modal_form_general_tab', 10);
3
  function emodal_admin_modal_form_general_tab($tabs)
4
  {
5
- $tabs[] = array( 'id' => 'general', 'label' => __('General', EMCORE_SLUG) );
6
  return $tabs;
7
  }
8
 
@@ -22,7 +22,7 @@ function emodal_admin_modal_form_general_tab_settings_name()
22
  ?><tr>
23
  <th scope="row">
24
  <label for="name">
25
- <?php _e('Name', EMCORE_SLUG);?>
26
  <span class="description">(required)</span>
27
  </label>
28
  </th>
@@ -39,7 +39,7 @@ function emodal_admin_modal_form_general_tab_settings_load_type()
39
  ?><tr>
40
  <th scope="row">
41
  <label for="load_type">
42
- <?php _e('Load Type', EMCORE_SLUG);?>
43
  </label>
44
  </th>
45
  <td>
@@ -47,7 +47,7 @@ function emodal_admin_modal_form_general_tab_settings_load_type()
47
  <option value="per-page-post"<?php echo !get_current_modal('is_sitewide') ? ' selected="selected"' : '';?>><?php _e('Per Page/Post');?></option>
48
  <option value="sitewide"<?php echo get_current_modal('is_sitewide') ? ' selected="selected"' : '';?>><?php _e('Load Sitewide');?></option>
49
  </select>
50
- <p class="description"><?php _e('Load this modal per page or sitewide. If per page or post, select the modal on the edit page.', EMCORE_SLUG)?></p>
51
  </td>
52
  </tr><?php
53
  }
@@ -59,12 +59,12 @@ function emodal_admin_modal_form_general_tab_settings_title()
59
  ?><tr>
60
  <th scope="row">
61
  <label for="title">
62
- <?php _e('Title', EMCORE_SLUG);?>
63
  </label>
64
  </th>
65
  <td>
66
  <input type="text" class="regular-text" name="modal[title]" id="title" value="<?php esc_attr_e(get_current_modal('title'))?>"/>
67
- <p class="description"><?php _e(' The title that appears in the modal window. If you leave this blank, the title will be disabled.', EMCORE_SLUG)?></p>
68
  </td>
69
  </tr><?php
70
  }
@@ -75,7 +75,7 @@ function emodal_admin_modal_form_general_tab_settings_content()
75
  ?><tr>
76
  <th scope="row">
77
  <label for="content">
78
- <?php _e('Content', EMCORE_SLUG);?>
79
  </label>
80
  </th>
81
  <td>
@@ -89,7 +89,7 @@ function emodal_admin_modal_form_general_tab_settings_content()
89
  } else {
90
  wp_editor(get_current_modal('content'), "content", $settings);
91
  }?>
92
- <p class="description"><?php _e('Modal content. Can contain shortcodes.', EMCORE_SLUG)?></p>
93
  </td>
94
  </tr><?php
95
  }
2
  add_filter('emodal_admin_modal_form_tabs', 'emodal_admin_modal_form_general_tab', 10);
3
  function emodal_admin_modal_form_general_tab($tabs)
4
  {
5
+ $tabs[] = array( 'id' => 'general', 'label' => __('General', 'easy-modal' ) );
6
  return $tabs;
7
  }
8
 
22
  ?><tr>
23
  <th scope="row">
24
  <label for="name">
25
+ <?php _e('Name', 'easy-modal' );?>
26
  <span class="description">(required)</span>
27
  </label>
28
  </th>
39
  ?><tr>
40
  <th scope="row">
41
  <label for="load_type">
42
+ <?php _e('Load Type', 'easy-modal' );?>
43
  </label>
44
  </th>
45
  <td>
47
  <option value="per-page-post"<?php echo !get_current_modal('is_sitewide') ? ' selected="selected"' : '';?>><?php _e('Per Page/Post');?></option>
48
  <option value="sitewide"<?php echo get_current_modal('is_sitewide') ? ' selected="selected"' : '';?>><?php _e('Load Sitewide');?></option>
49
  </select>
50
+ <p class="description"><?php _e('Load this modal per page or sitewide. If per page or post, select the modal on the edit page.', 'easy-modal' )?></p>
51
  </td>
52
  </tr><?php
53
  }
59
  ?><tr>
60
  <th scope="row">
61
  <label for="title">
62
+ <?php _e('Title', 'easy-modal' );?>
63
  </label>
64
  </th>
65
  <td>
66
  <input type="text" class="regular-text" name="modal[title]" id="title" value="<?php esc_attr_e(get_current_modal('title'))?>"/>
67
+ <p class="description"><?php _e(' The title that appears in the modal window. If you leave this blank, the title will be disabled.', 'easy-modal' )?></p>
68
  </td>
69
  </tr><?php
70
  }
75
  ?><tr>
76
  <th scope="row">
77
  <label for="content">
78
+ <?php _e('Content', 'easy-modal' );?>
79
  </label>
80
  </th>
81
  <td>
89
  } else {
90
  wp_editor(get_current_modal('content'), "content", $settings);
91
  }?>
92
+ <p class="description"><?php _e('Modal content. Can contain shortcodes.', 'easy-modal' )?></p>
93
  </td>
94
  </tr><?php
95
  }
includes/admin/options.php CHANGED
@@ -80,7 +80,7 @@ function emodal_model_theme_meta_core_defaults($options){
80
  if(empty($options['content']['font']['color'])) $options['content']['font']['color'] = '#8c8c8c';
81
  if(empty($options['content']['font']['family'])) $options['content']['font']['family'] = 'Times New Roman';
82
 
83
- if(empty($options['close']['text'])) $options['close']['text'] = __('CLOSE', EMCORE_SLUG);
84
  if(empty($options['close']['location'])) $options['close']['location'] = 'topright';
85
  if(empty($options['close']['position']['top'])) $options['close']['position']['top'] = 0;
86
  if(empty($options['close']['position']['left'])) $options['close']['position']['left'] = 0;
@@ -116,10 +116,10 @@ add_filter('emodal_size_unit_options', 'emodal_core_size_unit_options',10);
116
  function emodal_core_size_unit_options($options){
117
  return array_merge($options, array(
118
  // option => value
119
- __('PX', EMCORE_SLUG) => 'px',
120
- __('%', EMCORE_SLUG) => '%',
121
- __('EM', EMCORE_SLUG) => 'em',
122
- __('REM', EMCORE_SLUG) => 'rem',
123
  ));
124
  }
125
 
@@ -127,15 +127,15 @@ add_filter('emodal_border_style_options', 'emodal_core_border_style_options',10)
127
  function emodal_core_border_style_options($options){
128
  return array_merge($options, array(
129
  // option => value
130
- __('None', EMCORE_SLUG) => 'none',
131
- __('Solid', EMCORE_SLUG) => 'solid',
132
- __('Dotted', EMCORE_SLUG) => 'dotted',
133
- __('Dashed', EMCORE_SLUG) => 'dashed',
134
- __('Double', EMCORE_SLUG) => 'double',
135
- __('Groove', EMCORE_SLUG) => 'groove',
136
- __('Inset', EMCORE_SLUG) => 'inset',
137
- __('Outset', EMCORE_SLUG) => 'outset',
138
- __('Ridge', EMCORE_SLUG) => 'ridge',
139
  ));
140
  }
141
 
@@ -143,13 +143,13 @@ add_filter('emodal_font_family_options', 'emodal_core_font_family_options',10);
143
  function emodal_core_font_family_options($options){
144
  return array_merge($options, array(
145
  // option => value
146
- __('Sans-Serif', EMCORE_SLUG) => 'Sans-Serif',
147
- __('Tahoma', EMCORE_SLUG) => 'Tahoma',
148
- __('Georgia', EMCORE_SLUG) => 'Georgia',
149
- __('Comic Sans MS', EMCORE_SLUG) => 'Comic Sans MS',
150
- __('Arial', EMCORE_SLUG) => 'Arial',
151
- __('Lucida Grande', EMCORE_SLUG) => 'Lucida Grande',
152
- __('Times New Roman', EMCORE_SLUG) => 'Times New Roman',
153
  ));
154
  }
155
 
@@ -157,9 +157,9 @@ add_filter('emodal_text_align_options', 'emodal_core_text_align_options',10);
157
  function emodal_core_text_align_options($options){
158
  return array_merge($options, array(
159
  // option => value
160
- __('Left', EMCORE_SLUG) => 'left',
161
- __('Center', EMCORE_SLUG) => 'center',
162
- __('Right', EMCORE_SLUG) => 'right'
163
  ));
164
  }
165
 
@@ -176,15 +176,15 @@ add_filter('emodal_modal_display_size_options', 'emodal_modal_display_size_optio
176
  function emodal_modal_display_size_options_responsive($options){
177
  return array_merge($options, array(
178
  // option => value
179
- __('Auto', EMCORE_SLUG) => 'auto',
180
- __('Responsive', EMCORE_SLUG) => '',
181
- __('Normal', EMCORE_SLUG) => 'normal',
182
- __('Nano', EMCORE_SLUG) => 'nano',
183
- __('Tiny', EMCORE_SLUG) => 'tiny',
184
- __('Small', EMCORE_SLUG) => 'small',
185
- __('Medium', EMCORE_SLUG) => 'medium',
186
- __('Large', EMCORE_SLUG) => 'large',
187
- __('X Large', EMCORE_SLUG) => 'x-large'
188
  ));
189
  }
190
 
@@ -192,8 +192,8 @@ add_filter('emodal_modal_display_size_options', 'emodal_modal_display_size_optio
192
  function emodal_modal_display_size_options_nonresponsive($options){
193
  return array_merge($options, array(
194
  // value => option
195
- '<strong>' . __('Non-Responsive', EMCORE_SLUG) . '</strong>' => '',
196
- __('Custom', EMCORE_SLUG) => 'custom',
197
  ));
198
  }
199
 
@@ -202,12 +202,12 @@ add_filter('emodal_modal_display_animation_type_options', 'emodal_core_modal_dis
202
  function emodal_core_modal_display_animation_type_options($options){
203
  return array_merge($options, array(
204
  // option => value
205
- __('None', EMCORE_SLUG) => 'none',
206
- __('Slide', EMCORE_SLUG) => 'slide',
207
- __('Fade', EMCORE_SLUG) => 'fade',
208
- __('Fade and Slide', EMCORE_SLUG) => 'fadeAndSlide',
209
- __('Grow', EMCORE_SLUG) => 'grow',
210
- __('Grow and Slide', EMCORE_SLUG) => 'growAndSlide',
211
  ));
212
  }
213
 
@@ -216,20 +216,20 @@ add_filter('emodal_modal_display_animation_origin_options', 'emodal_core_modal_d
216
  function emodal_core_modal_display_animation_origins_options($options){
217
  return array_merge($options, array(
218
  // option => value
219
- __('Top', EMCORE_SLUG) => 'top',
220
- __('Left', EMCORE_SLUG) => 'left',
221
- __('Bottom', EMCORE_SLUG) => 'bottom',
222
- __('Right', EMCORE_SLUG) => 'right',
223
- __('Top Left', EMCORE_SLUG) => 'left top',
224
- __('Top Center', EMCORE_SLUG) => 'center top',
225
- __('Top Right', EMCORE_SLUG) => 'right top',
226
- __('Middle Left', EMCORE_SLUG) => 'left center',
227
- __('Middle Center', EMCORE_SLUG) => 'center center',
228
- __('Middle Right', EMCORE_SLUG) => 'right center',
229
- __('Bottom Left', EMCORE_SLUG) => 'left bottom',
230
- __('Bottom Center', EMCORE_SLUG) => 'center bottom',
231
- __('Bottom Right', EMCORE_SLUG) => 'right bottom',
232
- //__('Mouse', EMCORE_SLUG) => 'mouse',
233
  ));
234
  }
235
 
@@ -237,15 +237,15 @@ add_filter('emodal_modal_display_location_options', 'emodal_core_modal_display_l
237
  function emodal_core_modal_display_location_options($options){
238
  return array_merge($options, array(
239
  // option => value
240
- __('Top Left', EMCORE_SLUG) => 'left top',
241
- __('Top Center', EMCORE_SLUG) => 'center top',
242
- __('Top Right', EMCORE_SLUG) => 'right top',
243
- __('Middle Left', EMCORE_SLUG) => 'left center',
244
- __('Middle Center', EMCORE_SLUG) => 'center ',
245
- __('Middle Right', EMCORE_SLUG) => 'right center',
246
- __('Bottom Left', EMCORE_SLUG) => 'left bottom',
247
- __('Bottom Center', EMCORE_SLUG) => 'center bottom',
248
- __('Bottom Right', EMCORE_SLUG) => 'right bottom',
249
  ));
250
  }
251
 
@@ -253,9 +253,9 @@ add_filter('emodal_theme_close_location_options', 'emodal_core_theme_close_locat
253
  function emodal_core_theme_close_location_options($options){
254
  return array_merge($options, array(
255
  // option => value
256
- __('Top Left', EMCORE_SLUG) => 'topleft',
257
- __('Top Right', EMCORE_SLUG) => 'topright',
258
- __('Bottom Left', EMCORE_SLUG) => 'bottomleft',
259
- __('Bottom Right', EMCORE_SLUG) => 'bottomright',
260
  ));
261
  }
80
  if(empty($options['content']['font']['color'])) $options['content']['font']['color'] = '#8c8c8c';
81
  if(empty($options['content']['font']['family'])) $options['content']['font']['family'] = 'Times New Roman';
82
 
83
+ if(empty($options['close']['text'])) $options['close']['text'] = __('CLOSE', 'easy-modal' );
84
  if(empty($options['close']['location'])) $options['close']['location'] = 'topright';
85
  if(empty($options['close']['position']['top'])) $options['close']['position']['top'] = 0;
86
  if(empty($options['close']['position']['left'])) $options['close']['position']['left'] = 0;
116
  function emodal_core_size_unit_options($options){
117
  return array_merge($options, array(
118
  // option => value
119
+ __('PX', 'easy-modal' ) => 'px',
120
+ __('%', 'easy-modal' ) => '%',
121
+ __('EM', 'easy-modal' ) => 'em',
122
+ __('REM', 'easy-modal' ) => 'rem',
123
  ));
124
  }
125
 
127
  function emodal_core_border_style_options($options){
128
  return array_merge($options, array(
129
  // option => value
130
+ __('None', 'easy-modal' ) => 'none',
131
+ __('Solid', 'easy-modal' ) => 'solid',
132
+ __('Dotted', 'easy-modal' ) => 'dotted',
133
+ __('Dashed', 'easy-modal' ) => 'dashed',
134
+ __('Double', 'easy-modal' ) => 'double',
135
+ __('Groove', 'easy-modal' ) => 'groove',
136
+ __('Inset', 'easy-modal' ) => 'inset',
137
+ __('Outset', 'easy-modal' ) => 'outset',
138
+ __('Ridge', 'easy-modal' ) => 'ridge',
139
  ));
140
  }
141
 
143
  function emodal_core_font_family_options($options){
144
  return array_merge($options, array(
145
  // option => value
146
+ __('Sans-Serif', 'easy-modal' ) => 'Sans-Serif',
147
+ __('Tahoma', 'easy-modal' ) => 'Tahoma',
148
+ __('Georgia', 'easy-modal' ) => 'Georgia',
149
+ __('Comic Sans MS', 'easy-modal' ) => 'Comic Sans MS',
150
+ __('Arial', 'easy-modal' ) => 'Arial',
151
+ __('Lucida Grande', 'easy-modal' ) => 'Lucida Grande',
152
+ __('Times New Roman', 'easy-modal' ) => 'Times New Roman',
153
  ));
154
  }
155
 
157
  function emodal_core_text_align_options($options){
158
  return array_merge($options, array(
159
  // option => value
160
+ __('Left', 'easy-modal' ) => 'left',
161
+ __('Center', 'easy-modal' ) => 'center',
162
+ __('Right', 'easy-modal' ) => 'right'
163
  ));
164
  }
165
 
176
  function emodal_modal_display_size_options_responsive($options){
177
  return array_merge($options, array(
178
  // option => value
179
+ __('Auto', 'easy-modal' ) => 'auto',
180
+ __('Responsive', 'easy-modal' ) => '',
181
+ __('Normal', 'easy-modal' ) => 'normal',
182
+ __('Nano', 'easy-modal' ) => 'nano',
183
+ __('Tiny', 'easy-modal' ) => 'tiny',
184
+ __('Small', 'easy-modal' ) => 'small',
185
+ __('Medium', 'easy-modal' ) => 'medium',
186
+ __('Large', 'easy-modal' ) => 'large',
187
+ __('X Large', 'easy-modal' ) => 'x-large'
188
  ));
189
  }
190
 
192
  function emodal_modal_display_size_options_nonresponsive($options){
193
  return array_merge($options, array(
194
  // value => option
195
+ '<strong>' . __('Non-Responsive', 'easy-modal' ) . '</strong>' => '',
196
+ __('Custom', 'easy-modal' ) => 'custom',
197
  ));
198
  }
199
 
202
  function emodal_core_modal_display_animation_type_options($options){
203
  return array_merge($options, array(
204
  // option => value
205
+ __('None', 'easy-modal' ) => 'none',
206
+ __('Slide', 'easy-modal' ) => 'slide',
207
+ __('Fade', 'easy-modal' ) => 'fade',
208
+ __('Fade and Slide', 'easy-modal' ) => 'fadeAndSlide',
209
+ __('Grow', 'easy-modal' ) => 'grow',
210
+ __('Grow and Slide', 'easy-modal' ) => 'growAndSlide',
211
  ));
212
  }
213
 
216
  function emodal_core_modal_display_animation_origins_options($options){
217
  return array_merge($options, array(
218
  // option => value
219
+ __('Top', 'easy-modal' ) => 'top',
220
+ __('Left', 'easy-modal' ) => 'left',
221
+ __('Bottom', 'easy-modal' ) => 'bottom',
222
+ __('Right', 'easy-modal' ) => 'right',
223
+ __('Top Left', 'easy-modal' ) => 'left top',
224
+ __('Top Center', 'easy-modal' ) => 'center top',
225
+ __('Top Right', 'easy-modal' ) => 'right top',
226
+ __('Middle Left', 'easy-modal' ) => 'left center',
227
+ __('Middle Center', 'easy-modal' ) => 'center center',
228
+ __('Middle Right', 'easy-modal' ) => 'right center',
229
+ __('Bottom Left', 'easy-modal' ) => 'left bottom',
230
+ __('Bottom Center', 'easy-modal' ) => 'center bottom',
231
+ __('Bottom Right', 'easy-modal' ) => 'right bottom',
232
+ //__('Mouse', 'easy-modal' ) => 'mouse',
233
  ));
234
  }
235
 
237
  function emodal_core_modal_display_location_options($options){
238
  return array_merge($options, array(
239
  // option => value
240
+ __('Top Left', 'easy-modal' ) => 'left top',
241
+ __('Top Center', 'easy-modal' ) => 'center top',
242
+ __('Top Right', 'easy-modal' ) => 'right top',
243
+ __('Middle Left', 'easy-modal' ) => 'left center',
244
+ __('Middle Center', 'easy-modal' ) => 'center ',
245
+ __('Middle Right', 'easy-modal' ) => 'right center',
246
+ __('Bottom Left', 'easy-modal' ) => 'left bottom',
247
+ __('Bottom Center', 'easy-modal' ) => 'center bottom',
248
+ __('Bottom Right', 'easy-modal' ) => 'right bottom',
249
  ));
250
  }
251
 
253
  function emodal_core_theme_close_location_options($options){
254
  return array_merge($options, array(
255
  // option => value
256
+ __('Top Left', 'easy-modal' ) => 'topleft',
257
+ __('Top Right', 'easy-modal' ) => 'topright',
258
+ __('Bottom Left', 'easy-modal' ) => 'bottomleft',
259
+ __('Bottom Right', 'easy-modal' ) => 'bottomright',
260
  ));
261
  }
includes/admin/postmeta.php CHANGED
@@ -15,7 +15,7 @@ function emodal_post_meta_box_setting_load($object)
15
  <?php if(count($modals)):?>
16
  <tr>
17
  <th scope="row">
18
- <label><?php _e('Select which modals to load', EMCORE_SLUG);?></label>
19
  </th>
20
  <td>
21
  <div class="scrollable-checkboxes" style="padding:5px 10px;border:1px solid #eee;max-height:200px;overflow-y:scroll;">
@@ -23,7 +23,7 @@ function emodal_post_meta_box_setting_load($object)
23
  <label class="selectit"><input type="checkbox" name="emodal_post_modals[]" value="<?php esc_attr_e($modal->id);?>"<?php esc_attr_e(is_array($current_modals) && in_array($modal->id,$current_modals) ? ' checked="checked"' : '');?>> <?php esc_html_e($modal->name);?></label><br/>
24
  <?php endforeach;?>
25
  </div>
26
- <p class="description"><?php _e('Choose witch modal will be loaded on this page.', EMCORE_SLUG)?></p>
27
  </td>
28
  </tr>
29
  <?php endif;
15
  <?php if(count($modals)):?>
16
  <tr>
17
  <th scope="row">
18
+ <label><?php _e('Select which modals to load', 'easy-modal' );?></label>
19
  </th>
20
  <td>
21
  <div class="scrollable-checkboxes" style="padding:5px 10px;border:1px solid #eee;max-height:200px;overflow-y:scroll;">
23
  <label class="selectit"><input type="checkbox" name="emodal_post_modals[]" value="<?php esc_attr_e($modal->id);?>"<?php esc_attr_e(is_array($current_modals) && in_array($modal->id,$current_modals) ? ' checked="checked"' : '');?>> <?php esc_html_e($modal->name);?></label><br/>
24
  <?php endforeach;?>
25
  </div>
26
+ <p class="description"><?php _e('Choose witch modal will be loaded on this page.', 'easy-modal' )?></p>
27
  </td>
28
  </tr>
29
  <?php endif;
includes/admin/settings-form-general-tab.php CHANGED
@@ -2,7 +2,7 @@
2
  add_filter('emodal_admin_settings_form_tabs', 'emodal_admin_settings_general_tab', 10);
3
  function emodal_admin_settings_general_tab($tabs)
4
  {
5
- $tabs[] = array( 'id' => 'general', 'label' => __('General', EMCORE_SLUG) );
6
  return $tabs;
7
  }
8
 
@@ -23,14 +23,14 @@ function emodal_admin_settings_form_general_tab_license()
23
  <!--
24
  <tr class="form-field">
25
  <th scope="row">
26
- <label for="license_key"><?php _e('License Key', EMCORE_SLUG);?></label>
27
  </th>
28
  <td>
29
  <input type="<?php echo emodal_get_license('key') ? 'password' : 'text'?>" id="license_key" name="license[key]" value="<?php esc_attr_e(emodal_get_license('key'))?>" class="regular-text"/>
30
- <p class="description"><?php _e( emodal_get_license('status.message') ? emodal_get_license('status.message') : 'Enter a key to unlock Easy Modal Pro.',EMCORE_SLUG)?></p>
31
  <?php if(emodal_get_license('status.valid')){?>
32
- <p class="description expires"><?php echo '<strong>'.__('Expiration Date: ' , EMCORE_SLUG) .'</strong>'. emodal_get_license('status.expires');?></p>
33
- <p class="description domains"><?php echo '<strong>'.__('Domains Using this License: ' , EMCORE_SLUG) .'</strong>'. emodal_get_license('status.domains');?></p>
34
  <?php }?>
35
  </td>
36
  </tr>
@@ -55,39 +55,39 @@ function emodal_admin_settings_form_general_tab_license()
55
  <?php if(1==0 && emodal_get_option(EMCORE_SLUG.'_migration_approval')) : ?>
56
  <tr class="form-field">
57
  <th scope="row">
58
- <label><?php _e('Approve Migration', EMCORE_SLUG);?></label>
59
  </th>
60
  <td>
61
  <button type="submit" name="remove_old_emodal_data">Aprove</button>
62
- <p class="description"><?php _e('Click this if you are sure your modals, themes and settings imported successfully.' , EMCORE_SLUG)?></p>
63
  </td>
64
  </tr>
65
  <?php endif; ?>
66
  <tr class="form-field">
67
  <th scope="row">
68
- <label><?php _e('Reset Easy Modal Database', EMCORE_SLUG);?></label>
69
  </th>
70
  <td>
71
  <button type="submit" name="reset_emodal_db">Reset</button>
72
- <p class="description"><?php _e('Use this to reset the database and remove all modals.' , EMCORE_SLUG)?></p>
73
  </td>
74
  </tr>
75
  <tr class="form-field">
76
  <th scope="row">
77
- <label><?php _e('Import Old Easy Modal Settings', EMCORE_SLUG);?></label>
78
  </th>
79
  <td>
80
  <button type="submit" name="migrate_emodal_db">Import</button>
81
- <p class="description"><?php _e('Use this to import your modals and themes from your older version of easy modal.' , EMCORE_SLUG)?></p>
82
  </td>
83
  </tr>
84
  <tr class="form-field">
85
  <th scope="row">
86
- <label><?php _e('Uninstall Easy Modal Settings', EMCORE_SLUG);?></label>
87
  </th>
88
  <td>
89
  <button type="submit" name="uninstall_emodal_db">Uninstall</button>
90
- <p class="description"><?php _e('Use this to reset the database and remove all modals, themes and database tables.' , EMCORE_SLUG)?></p>
91
  </td>
92
  </tr><?php
93
  }
2
  add_filter('emodal_admin_settings_form_tabs', 'emodal_admin_settings_general_tab', 10);
3
  function emodal_admin_settings_general_tab($tabs)
4
  {
5
+ $tabs[] = array( 'id' => 'general', 'label' => __('General', 'easy-modal' ) );
6
  return $tabs;
7
  }
8
 
23
  <!--
24
  <tr class="form-field">
25
  <th scope="row">
26
+ <label for="license_key"><?php _e('License Key', 'easy-modal' );?></label>
27
  </th>
28
  <td>
29
  <input type="<?php echo emodal_get_license('key') ? 'password' : 'text'?>" id="license_key" name="license[key]" value="<?php esc_attr_e(emodal_get_license('key'))?>" class="regular-text"/>
30
+ <p class="description"><?php _e( emodal_get_license('status.message') ? emodal_get_license('status.message') : 'Enter a key to unlock Easy Modal Pro.', 'easy-modal' )?></p>
31
  <?php if(emodal_get_license('status.valid')){?>
32
+ <p class="description expires"><?php echo '<strong>'.__('Expiration Date: ' , 'easy-modal' ) .'</strong>'. emodal_get_license('status.expires');?></p>
33
+ <p class="description domains"><?php echo '<strong>'.__('Domains Using this License: ' , 'easy-modal' ) .'</strong>'. emodal_get_license('status.domains');?></p>
34
  <?php }?>
35
  </td>
36
  </tr>
55
  <?php if(1==0 && emodal_get_option(EMCORE_SLUG.'_migration_approval')) : ?>
56
  <tr class="form-field">
57
  <th scope="row">
58
+ <label><?php _e('Approve Migration', 'easy-modal' );?></label>
59
  </th>
60
  <td>
61
  <button type="submit" name="remove_old_emodal_data">Aprove</button>
62
+ <p class="description"><?php _e('Click this if you are sure your modals, themes and settings imported successfully.' , 'easy-modal' )?></p>
63
  </td>
64
  </tr>
65
  <?php endif; ?>
66
  <tr class="form-field">
67
  <th scope="row">
68
+ <label><?php _e('Reset Easy Modal Database', 'easy-modal' );?></label>
69
  </th>
70
  <td>
71
  <button type="submit" name="reset_emodal_db">Reset</button>
72
+ <p class="description"><?php _e('Use this to reset the database and remove all modals.' , 'easy-modal' )?></p>
73
  </td>
74
  </tr>
75
  <tr class="form-field">
76
  <th scope="row">
77
+ <label><?php _e('Import Old Easy Modal Settings', 'easy-modal' );?></label>
78
  </th>
79
  <td>
80
  <button type="submit" name="migrate_emodal_db">Import</button>
81
+ <p class="description"><?php _e('Use this to import your modals and themes from your older version of easy modal.' , 'easy-modal' )?></p>
82
  </td>
83
  </tr>
84
  <tr class="form-field">
85
  <th scope="row">
86
+ <label><?php _e('Uninstall Easy Modal Settings', 'easy-modal' );?></label>
87
  </th>
88
  <td>
89
  <button type="submit" name="uninstall_emodal_db">Uninstall</button>
90
+ <p class="description"><?php _e('Use this to reset the database and remove all modals, themes and database tables.' , 'easy-modal' )?></p>
91
  </td>
92
  </tr><?php
93
  }
includes/admin/settings-form-licenses-tab.php CHANGED
@@ -2,7 +2,7 @@
2
  add_filter('emodal_admin_settings_form_tabs', 'emodal_admin_settings_licenses_tab', 10);
3
  function emodal_admin_settings_licenses_tab($tabs)
4
  {
5
- $tabs[] = array( 'id' => 'licenses', 'label' => __('Licenses', EMCORE_SLUG) );
6
  return $tabs;
7
  }
8
 
@@ -22,7 +22,7 @@ function emodal_admin_settings_form_glicenses_tab_no_licensed_products()
22
  {?>
23
  <tr class="form-field">
24
  <th colspan="2" scope="row">
25
- <p><?php _e( 'No licensed addons detected.',EMCORE_SLUG)?></p>
26
  </td>
27
  </tr><?php
28
  }
@@ -32,11 +32,11 @@ function emodal_admin_settings_form_glicenses_tab_access_key()
32
  {?>
33
  <tr class="form-field">
34
  <th scope="row">
35
- <label for="access_key"><?php _e('Access Key', EMCORE_SLUG);?></label>
36
  </th>
37
  <td>
38
  <input type="<?php echo emodal_get_option('access_key') ? 'password' : 'text'?>" id="access_key" name="access_key" value="<?php esc_attr_e(emodal_get_option('access_key'))?>" class="regular-text"/>
39
- <p class="description"><?php _e( 'Enter your access key to unlock addons.',EMCORE_SLUG)?></p>
40
  </td>
41
  </tr><?php
42
  }
2
  add_filter('emodal_admin_settings_form_tabs', 'emodal_admin_settings_licenses_tab', 10);
3
  function emodal_admin_settings_licenses_tab($tabs)
4
  {
5
+ $tabs[] = array( 'id' => 'licenses', 'label' => __('Licenses', 'easy-modal' ) );
6
  return $tabs;
7
  }
8
 
22
  {?>
23
  <tr class="form-field">
24
  <th colspan="2" scope="row">
25
+ <p><?php _e( 'No licensed addons detected.', 'easy-modal' )?></p>
26
  </td>
27
  </tr><?php
28
  }
32
  {?>
33
  <tr class="form-field">
34
  <th scope="row">
35
+ <label for="access_key"><?php _e('Access Key', 'easy-modal' );?></label>
36
  </th>
37
  <td>
38
  <input type="<?php echo emodal_get_option('access_key') ? 'password' : 'text'?>" id="access_key" name="access_key" value="<?php esc_attr_e(emodal_get_option('access_key'))?>" class="regular-text"/>
39
+ <p class="description"><?php _e( 'Enter your access key to unlock addons.', 'easy-modal' )?></p>
40
  </td>
41
  </tr><?php
42
  }
includes/admin/theme-form-close-tab.php CHANGED
@@ -2,7 +2,7 @@
2
  add_filter('emodal_admin_theme_form_tabs', 'emodal_admin_theme_form_close_tab', 70);
3
  function emodal_admin_theme_form_close_tab($tabs)
4
  {
5
- $tabs[] = array( 'id' => 'close', 'label' => __('Close', EMCORE_SLUG) );
6
  return $tabs;
7
  }
8
 
@@ -21,11 +21,11 @@ function emodal_admin_theme_form_close_tab_settings_text()
21
  {
22
  ?><tr>
23
  <th scope="row">
24
- <label for="close_text"><?php _e('Text', EMCORE_SLUG);?></label>
25
  </th>
26
  <td>
27
  <input type="text" name="theme[meta][close][text]" id="close_text" value="<?php esc_attr_e(get_current_modal_theme('meta.close.text'))?>" />
28
- <p class="description"><?php _e('Enter the close button text.', EMCORE_SLUG)?></p>
29
  </td>
30
  </tr><?php
31
  }
@@ -36,7 +36,7 @@ function emodal_admin_theme_form_close_tab_settings_padding()
36
  {
37
  ?><tr>
38
  <th scope="row">
39
- <label for="close_padding"><?php _e('Padding', EMCORE_SLUG);?></label>
40
  </th>
41
  <td>
42
  <input type="range" name="theme[meta][close][padding]" id="close_padding" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.padding'))?>" />
@@ -51,7 +51,7 @@ function emodal_admin_theme_form_close_tab_settings_location()
51
  {
52
  ?><tr>
53
  <th scope="row">
54
- <label for="close_location"><?php _e('Location', EMCORE_SLUG);?></label>
55
  </th>
56
  <td>
57
  <select name="theme[meta][close][location]" id="close_location">
@@ -62,15 +62,15 @@ function emodal_admin_theme_form_close_tab_settings_location()
62
  ><?php echo $option;?></option>
63
  <?php endforeach ?>
64
  </select>
65
- <p class="description"><?php _e('Choose which corner the close button will be positioned.', EMCORE_SLUG)?></p>
66
  </td>
67
  </tr>
68
  <tr class="title-divider">
69
- <th colspan="2"><h3 class="title"><?php _e('Position', EMCORE_SLUG);?></h3></th>
70
  </tr>
71
  <tr class="topright topleft">
72
  <th scope="row">
73
- <label for="close_position_top"><?php _e('Top', EMCORE_SLUG);?></label>
74
  </th>
75
  <td>
76
  <input type="range" name="theme[meta][close][position][top]" id="close_position_top" min="-100" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.position.top'))?>" />
@@ -79,7 +79,7 @@ function emodal_admin_theme_form_close_tab_settings_location()
79
  </tr>
80
  <tr class="topleft bottomleft">
81
  <th scope="row">
82
- <label for="close_position_left"><?php _e('Left', EMCORE_SLUG);?></label>
83
  </th>
84
  <td>
85
  <input type="range" name="theme[meta][close][position][left]" id="close_position_left" min="-100" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.position.left'))?>" />
@@ -88,7 +88,7 @@ function emodal_admin_theme_form_close_tab_settings_location()
88
  </tr>
89
  <tr class="bottomleft bottomright">
90
  <th scope="row">
91
- <label for="close_position_bottom"><?php _e('Bottom', EMCORE_SLUG);?></label>
92
  </th>
93
  <td>
94
  <input type="range" name="theme[meta][close][position][bottom]" id="close_position_bottom" min="-100" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.position.bottom'))?>" />
@@ -97,7 +97,7 @@ function emodal_admin_theme_form_close_tab_settings_location()
97
  </tr>
98
  <tr class="topright bottomright">
99
  <th scope="row">
100
- <label for="close_position_right"><?php _e('Right', EMCORE_SLUG);?></label>
101
  </th>
102
  <td>
103
  <input type="range" name="theme[meta][close][position][right]" id="close_position_right" min="-100" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.position.right'))?>" />
@@ -112,11 +112,11 @@ add_action('emodal_admin_theme_form_tab_close_settings', 'emodal_admin_theme_for
112
  function emodal_admin_theme_form_close_tab_settings_font()
113
  {
114
  ?><tr class="title-divider">
115
- <th colspan="2"><h3 class="title"><?php _e('Font', EMCORE_SLUG);?></h3></th>
116
  </tr>
117
  <tr>
118
  <th scope="row">
119
- <label for="close_font_color"><?php _e('Color', EMCORE_SLUG);?></label>
120
  </th>
121
  <td>
122
  <input type="text" name="theme[meta][close][font][color]" id="close_font_color" value="<?php esc_attr_e(get_current_modal_theme('meta.close.font.color'))?>" class="color-picker" />
@@ -125,7 +125,7 @@ function emodal_admin_theme_form_close_tab_settings_font()
125
 
126
  <tr>
127
  <th scope="row">
128
- <label for="close_font_size"><?php _e('Size', EMCORE_SLUG);?></label>
129
  </th>
130
  <td>
131
  <input type="range" name="theme[meta][close][font][size]" id="close_font_size" min="8" max="32" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.font.size'))?>" />
@@ -134,7 +134,7 @@ function emodal_admin_theme_form_close_tab_settings_font()
134
  </tr>
135
  <tr>
136
  <th scope="row">
137
- <label for="close_font_family"><?php _e('Family', EMCORE_SLUG);?></label>
138
  </th>
139
  <td>
140
  <select name="theme[meta][close][font][family]" id="close_font_family">
@@ -154,11 +154,11 @@ add_action('emodal_admin_theme_form_tab_close_settings', 'emodal_admin_theme_for
154
  function emodal_admin_theme_form_close_tab_settings_background()
155
  {
156
  ?><tr class="title-divider">
157
- <th colspan="2"><h3 class="title"><?php _e('Background', EMCORE_SLUG);?></ h3></th>
158
  </tr>
159
  <tr>
160
  <th scope="row">
161
- <label for="close_background_color"><?php _e('Color', EMCORE_SLUG);?></label>
162
  </th>
163
  <td>
164
  <input type="text" name="theme[meta][close][background][color]" id="close_background_color" value="<?php esc_attr_e(get_current_modal_theme('meta.close.background.color'))?>" class="color-picker background-color" />
@@ -166,7 +166,7 @@ function emodal_admin_theme_form_close_tab_settings_background()
166
  </tr>
167
  <tr class="background-opacity">
168
  <th scope="row">
169
- <label for="close_background_opacity"><?php _e('Opacity', EMCORE_SLUG);?></label>
170
  </th>
171
  <td>
172
  <input type="range" name="theme[meta][close][background][opacity]" id="close_background_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.background.opacity'))?>" />
@@ -188,21 +188,21 @@ add_action('emodal_admin_theme_form_tab_close_settings', 'emodal_admin_theme_for
188
  function emodal_admin_theme_form_close_tab_settings_border()
189
  {
190
  ?><tr class="title-divider">
191
- <th colspan="2"><h3 class="title"><?php _e('Border', EMCORE_SLUG);?></h3></th>
192
  </tr>
193
  <tr>
194
  <th scope="row">
195
- <label for="close_border_radius"><?php _e('Radius', EMCORE_SLUG);?></label>
196
  </th>
197
  <td>
198
  <input type="range" name="theme[meta][close][border][radius]" id="close_border_radius" min="0" max="28" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.border.radius'))?>" />
199
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal_theme('meta.close.border.radius'));?></span>px</span>
200
- <p class="description"><?php _e('Choose a corner radius for your close button.',EMCORE_SLUG)?></p>
201
  </td>
202
  </tr>
203
  <tr>
204
  <th scope="row">
205
- <label for="close_border_style"><?php _e('Style', EMCORE_SLUG);?></label>
206
  </th>
207
  <td>
208
  <select name="theme[meta][close][border][style]" id="close_border_style" class="border-style">
@@ -213,12 +213,12 @@ function emodal_admin_theme_form_close_tab_settings_border()
213
  ><?php echo $option;?></option>
214
  <?php endforeach ?>
215
  </select>
216
- <p class="description"><?php _e('Choose a border style for your close button.', EMCORE_SLUG)?></p>
217
  </td>
218
  </tr>
219
  <tr class="border-options">
220
  <th scope="row">
221
- <label for="close_border_color"><?php _e('Color', EMCORE_SLUG);?></label>
222
  </th>
223
  <td>
224
  <input type="text" name="theme[meta][close][border][color]" id="close_border_color" value="<?php esc_attr_e(get_current_modal_theme('meta.close.border.color'))?>" class="color-picker" />
@@ -226,7 +226,7 @@ function emodal_admin_theme_form_close_tab_settings_border()
226
  </tr>
227
  <tr class="border-options">
228
  <th scope="row">
229
- <label for="close_border_width"><?php _e('Thickness', EMCORE_SLUG);?></label>
230
  </th>
231
  <td>
232
  <input type="range" name="theme[meta][close][border][width]" id="close_border_width" min="0" max="5" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.border.width'))?>" />
@@ -240,17 +240,17 @@ add_action('emodal_admin_theme_form_tab_close_settings', 'emodal_admin_theme_for
240
  function emodal_admin_theme_form_close_tab_settings_boxshadow()
241
  {
242
  ?><tr class="title-divider">
243
- <th colspan="2"><h3 class="title"><?php _e('Drop Shadow', EMCORE_SLUG);?></h3></th>
244
  </tr>
245
  <tr>
246
  <th scope="row">
247
- <label for="close_boxshadow_inset"><?php _e('Inset', EMCORE_SLUG);?></label>
248
  </th>
249
  <td>
250
  <select name="theme[meta][close][boxshadow][inset]" id="close_boxshadow_inset">
251
  <?php foreach(array(
252
- __('No', EMCORE_SLUG) => 'no',
253
- __('Yes', EMCORE_SLUG) => 'yes'
254
  ) as $option => $value) : ?>
255
  <option
256
  value="<?php echo $value;?>"
@@ -258,12 +258,12 @@ function emodal_admin_theme_form_close_tab_settings_boxshadow()
258
  ><?php echo $option;?></option>
259
  <?php endforeach ?>
260
  </select>
261
- <p class="description"><?php _e('Set the box shadow to inset (inner shadow).', EMCORE_SLUG)?></p>
262
  </td>
263
  </tr>
264
  <tr>
265
  <th scope="row">
266
- <label for="close_boxshadow_horizontal"><?php _e('Horizontal Position', EMCORE_SLUG);?></label>
267
  </th>
268
  <td>
269
  <input type="range" name="theme[meta][close][boxshadow][horizontal]" id="close_boxshadow_horizontal" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.boxshadow.horizontal'))?>" />
@@ -272,7 +272,7 @@ function emodal_admin_theme_form_close_tab_settings_boxshadow()
272
  </tr>
273
  <tr>
274
  <th scope="row">
275
- <label for="close_boxshadow_vertical"><?php _e('Vertical Position', EMCORE_SLUG);?></label>
276
  </th>
277
  <td>
278
  <input type="range" name="theme[meta][close][boxshadow][vertical]" id="close_boxshadow_vertical" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.boxshadow.vertical'))?>" />
@@ -281,7 +281,7 @@ function emodal_admin_theme_form_close_tab_settings_boxshadow()
281
  </tr>
282
  <tr>
283
  <th scope="row">
284
- <label for="close_boxshadow_blur"><?php _e('Blur Radius', EMCORE_SLUG);?></label>
285
  </th>
286
  <td>
287
  <input type="range" name="theme[meta][close][boxshadow][blur]" id="close_boxshadow_blur" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.boxshadow.blur'))?>" />
@@ -290,7 +290,7 @@ function emodal_admin_theme_form_close_tab_settings_boxshadow()
290
  </tr>
291
  <tr>
292
  <th scope="row">
293
- <label for="close_boxshadow_spread"><?php _e('Spread', EMCORE_SLUG);?></label>
294
  </th>
295
  <td>
296
  <input type="range" name="theme[meta][close][boxshadow][spread]" id="close_boxshadow_spread" min="-100" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.boxshadow.spread'))?>" />
@@ -299,7 +299,7 @@ function emodal_admin_theme_form_close_tab_settings_boxshadow()
299
  </tr>
300
  <tr>
301
  <th scope="row">
302
- <label for="close_boxshadow_color"><?php _e('Color', EMCORE_SLUG);?></label>
303
  </th>
304
  <td>
305
  <input type="text" name="theme[meta][close][boxshadow][color]" id="close_boxshadow_color" value="<?php esc_attr_e(get_current_modal_theme('meta.close.boxshadow.color'))?>" class="color-picker boxshadow-color" />
@@ -307,7 +307,7 @@ function emodal_admin_theme_form_close_tab_settings_boxshadow()
307
  </tr>
308
  <tr>
309
  <th scope="row">
310
- <label for="close_boxshadow_opacity"><?php _e('Opacity', EMCORE_SLUG);?></label>
311
  </th>
312
  <td>
313
  <input type="range" name="theme[meta][close][boxshadow][opacity]" id="close_boxshadow_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.boxshadow.opacity'))?>" />
@@ -320,11 +320,11 @@ add_action('emodal_admin_theme_form_tab_close_settings', 'emodal_admin_theme_for
320
  function emodal_admin_theme_form_close_tab_settings_textshadow()
321
  {
322
  ?><tr class="title-divider">
323
- <th colspan="2"><h3 class="title"><?php _e('Text Shadow', EMCORE_SLUG);?></h3></th>
324
  </tr>
325
  <tr>
326
  <th scope="row">
327
- <label for="close_textshadow_horizontal"><?php _e('Horizontal Position', EMCORE_SLUG);?></label>
328
  </th>
329
  <td>
330
  <input type="range" name="theme[meta][close][textshadow][horizontal]" id="close_textshadow_horizontal" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.textshadow.horizontal'))?>" />
@@ -333,7 +333,7 @@ function emodal_admin_theme_form_close_tab_settings_textshadow()
333
  </tr>
334
  <tr>
335
  <th scope="row">
336
- <label for="close_textshadow_vertical"><?php _e('Vertical Position', EMCORE_SLUG);?></label>
337
  </th>
338
  <td>
339
  <input type="range" name="theme[meta][close][textshadow][vertical]" id="close_textshadow_vertical" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.textshadow.vertical'))?>" />
@@ -342,7 +342,7 @@ function emodal_admin_theme_form_close_tab_settings_textshadow()
342
  </tr>
343
  <tr>
344
  <th scope="row">
345
- <label for="close_textshadow_blur"><?php _e('Blur Radius', EMCORE_SLUG);?></label>
346
  </th>
347
  <td>
348
  <input type="range" name="theme[meta][close][textshadow][blur]" id="close_textshadow_blur" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.textshadow.blur'))?>" />
@@ -351,7 +351,7 @@ function emodal_admin_theme_form_close_tab_settings_textshadow()
351
  </tr>
352
  <tr>
353
  <th scope="row">
354
- <label for="close_textshadow_color"><?php _e('Color', EMCORE_SLUG);?></label>
355
  </th>
356
  <td>
357
  <input type="text" name="theme[meta][close][textshadow][color]" id="close_textshadow_color" value="<?php esc_attr_e(get_current_modal_theme('meta.close.textshadow.color'))?>" class="color-picker textshadow-color" />
@@ -359,7 +359,7 @@ function emodal_admin_theme_form_close_tab_settings_textshadow()
359
  </tr>
360
  <tr>
361
  <th scope="row">
362
- <label for="close_textshadow_opacity"><?php _e('Opacity', EMCORE_SLUG);?></label>
363
  </th>
364
  <td>
365
  <input type="range" name="theme[meta][close][textshadow][opacity]" id="close_textshadow_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.textshadow.opacity'))?>" />
2
  add_filter('emodal_admin_theme_form_tabs', 'emodal_admin_theme_form_close_tab', 70);
3
  function emodal_admin_theme_form_close_tab($tabs)
4
  {
5
+ $tabs[] = array( 'id' => 'close', 'label' => __('Close', 'easy-modal' ) );
6
  return $tabs;
7
  }
8
 
21
  {
22
  ?><tr>
23
  <th scope="row">
24
+ <label for="close_text"><?php _e('Text', 'easy-modal' );?></label>
25
  </th>
26
  <td>
27
  <input type="text" name="theme[meta][close][text]" id="close_text" value="<?php esc_attr_e(get_current_modal_theme('meta.close.text'))?>" />
28
+ <p class="description"><?php _e('Enter the close button text.', 'easy-modal' )?></p>
29
  </td>
30
  </tr><?php
31
  }
36
  {
37
  ?><tr>
38
  <th scope="row">
39
+ <label for="close_padding"><?php _e('Padding', 'easy-modal' );?></label>
40
  </th>
41
  <td>
42
  <input type="range" name="theme[meta][close][padding]" id="close_padding" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.padding'))?>" />
51
  {
52
  ?><tr>
53
  <th scope="row">
54
+ <label for="close_location"><?php _e('Location', 'easy-modal' );?></label>
55
  </th>
56
  <td>
57
  <select name="theme[meta][close][location]" id="close_location">
62
  ><?php echo $option;?></option>
63
  <?php endforeach ?>
64
  </select>
65
+ <p class="description"><?php _e('Choose which corner the close button will be positioned.', 'easy-modal' )?></p>
66
  </td>
67
  </tr>
68
  <tr class="title-divider">
69
+ <th colspan="2"><h3 class="title"><?php _e('Position', 'easy-modal' );?></h3></th>
70
  </tr>
71
  <tr class="topright topleft">
72
  <th scope="row">
73
+ <label for="close_position_top"><?php _e('Top', 'easy-modal' );?></label>
74
  </th>
75
  <td>
76
  <input type="range" name="theme[meta][close][position][top]" id="close_position_top" min="-100" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.position.top'))?>" />
79
  </tr>
80
  <tr class="topleft bottomleft">
81
  <th scope="row">
82
+ <label for="close_position_left"><?php _e('Left', 'easy-modal' );?></label>
83
  </th>
84
  <td>
85
  <input type="range" name="theme[meta][close][position][left]" id="close_position_left" min="-100" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.position.left'))?>" />
88
  </tr>
89
  <tr class="bottomleft bottomright">
90
  <th scope="row">
91
+ <label for="close_position_bottom"><?php _e('Bottom', 'easy-modal' );?></label>
92
  </th>
93
  <td>
94
  <input type="range" name="theme[meta][close][position][bottom]" id="close_position_bottom" min="-100" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.position.bottom'))?>" />
97
  </tr>
98
  <tr class="topright bottomright">
99
  <th scope="row">
100
+ <label for="close_position_right"><?php _e('Right', 'easy-modal' );?></label>
101
  </th>
102
  <td>
103
  <input type="range" name="theme[meta][close][position][right]" id="close_position_right" min="-100" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.position.right'))?>" />
112
  function emodal_admin_theme_form_close_tab_settings_font()
113
  {
114
  ?><tr class="title-divider">
115
+ <th colspan="2"><h3 class="title"><?php _e('Font', 'easy-modal' );?></h3></th>
116
  </tr>
117
  <tr>
118
  <th scope="row">
119
+ <label for="close_font_color"><?php _e('Color', 'easy-modal' );?></label>
120
  </th>
121
  <td>
122
  <input type="text" name="theme[meta][close][font][color]" id="close_font_color" value="<?php esc_attr_e(get_current_modal_theme('meta.close.font.color'))?>" class="color-picker" />
125
 
126
  <tr>
127
  <th scope="row">
128
+ <label for="close_font_size"><?php _e('Size', 'easy-modal' );?></label>
129
  </th>
130
  <td>
131
  <input type="range" name="theme[meta][close][font][size]" id="close_font_size" min="8" max="32" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.font.size'))?>" />
134
  </tr>
135
  <tr>
136
  <th scope="row">
137
+ <label for="close_font_family"><?php _e('Family', 'easy-modal' );?></label>
138
  </th>
139
  <td>
140
  <select name="theme[meta][close][font][family]" id="close_font_family">
154
  function emodal_admin_theme_form_close_tab_settings_background()
155
  {
156
  ?><tr class="title-divider">
157
+ <th colspan="2"><h3 class="title"><?php _e('Background', 'easy-modal' );?></ h3></th>
158
  </tr>
159
  <tr>
160
  <th scope="row">
161
+ <label for="close_background_color"><?php _e('Color', 'easy-modal' );?></label>
162
  </th>
163
  <td>
164
  <input type="text" name="theme[meta][close][background][color]" id="close_background_color" value="<?php esc_attr_e(get_current_modal_theme('meta.close.background.color'))?>" class="color-picker background-color" />
166
  </tr>
167
  <tr class="background-opacity">
168
  <th scope="row">
169
+ <label for="close_background_opacity"><?php _e('Opacity', 'easy-modal' );?></label>
170
  </th>
171
  <td>
172
  <input type="range" name="theme[meta][close][background][opacity]" id="close_background_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.background.opacity'))?>" />
188
  function emodal_admin_theme_form_close_tab_settings_border()
189
  {
190
  ?><tr class="title-divider">
191
+ <th colspan="2"><h3 class="title"><?php _e('Border', 'easy-modal' );?></h3></th>
192
  </tr>
193
  <tr>
194
  <th scope="row">
195
+ <label for="close_border_radius"><?php _e('Radius', 'easy-modal' );?></label>
196
  </th>
197
  <td>
198
  <input type="range" name="theme[meta][close][border][radius]" id="close_border_radius" min="0" max="28" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.border.radius'))?>" />
199
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal_theme('meta.close.border.radius'));?></span>px</span>
200
+ <p class="description"><?php _e('Choose a corner radius for your close button.', 'easy-modal' )?></p>
201
  </td>
202
  </tr>
203
  <tr>
204
  <th scope="row">
205
+ <label for="close_border_style"><?php _e('Style', 'easy-modal' );?></label>
206
  </th>
207
  <td>
208
  <select name="theme[meta][close][border][style]" id="close_border_style" class="border-style">
213
  ><?php echo $option;?></option>
214
  <?php endforeach ?>
215
  </select>
216
+ <p class="description"><?php _e('Choose a border style for your close button.', 'easy-modal' )?></p>
217
  </td>
218
  </tr>
219
  <tr class="border-options">
220
  <th scope="row">
221
+ <label for="close_border_color"><?php _e('Color', 'easy-modal' );?></label>
222
  </th>
223
  <td>
224
  <input type="text" name="theme[meta][close][border][color]" id="close_border_color" value="<?php esc_attr_e(get_current_modal_theme('meta.close.border.color'))?>" class="color-picker" />
226
  </tr>
227
  <tr class="border-options">
228
  <th scope="row">
229
+ <label for="close_border_width"><?php _e('Thickness', 'easy-modal' );?></label>
230
  </th>
231
  <td>
232
  <input type="range" name="theme[meta][close][border][width]" id="close_border_width" min="0" max="5" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.border.width'))?>" />
240
  function emodal_admin_theme_form_close_tab_settings_boxshadow()
241
  {
242
  ?><tr class="title-divider">
243
+ <th colspan="2"><h3 class="title"><?php _e('Drop Shadow', 'easy-modal' );?></h3></th>
244
  </tr>
245
  <tr>
246
  <th scope="row">
247
+ <label for="close_boxshadow_inset"><?php _e('Inset', 'easy-modal' );?></label>
248
  </th>
249
  <td>
250
  <select name="theme[meta][close][boxshadow][inset]" id="close_boxshadow_inset">
251
  <?php foreach(array(
252
+ __('No', 'easy-modal' ) => 'no',
253
+ __('Yes', 'easy-modal' ) => 'yes'
254
  ) as $option => $value) : ?>
255
  <option
256
  value="<?php echo $value;?>"
258
  ><?php echo $option;?></option>
259
  <?php endforeach ?>
260
  </select>
261
+ <p class="description"><?php _e('Set the box shadow to inset (inner shadow).', 'easy-modal' )?></p>
262
  </td>
263
  </tr>
264
  <tr>
265
  <th scope="row">
266
+ <label for="close_boxshadow_horizontal"><?php _e('Horizontal Position', 'easy-modal' );?></label>
267
  </th>
268
  <td>
269
  <input type="range" name="theme[meta][close][boxshadow][horizontal]" id="close_boxshadow_horizontal" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.boxshadow.horizontal'))?>" />
272
  </tr>
273
  <tr>
274
  <th scope="row">
275
+ <label for="close_boxshadow_vertical"><?php _e('Vertical Position', 'easy-modal' );?></label>
276
  </th>
277
  <td>
278
  <input type="range" name="theme[meta][close][boxshadow][vertical]" id="close_boxshadow_vertical" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.boxshadow.vertical'))?>" />
281
  </tr>
282
  <tr>
283
  <th scope="row">
284
+ <label for="close_boxshadow_blur"><?php _e('Blur Radius', 'easy-modal' );?></label>
285
  </th>
286
  <td>
287
  <input type="range" name="theme[meta][close][boxshadow][blur]" id="close_boxshadow_blur" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.boxshadow.blur'))?>" />
290
  </tr>
291
  <tr>
292
  <th scope="row">
293
+ <label for="close_boxshadow_spread"><?php _e('Spread', 'easy-modal' );?></label>
294
  </th>
295
  <td>
296
  <input type="range" name="theme[meta][close][boxshadow][spread]" id="close_boxshadow_spread" min="-100" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.boxshadow.spread'))?>" />
299
  </tr>
300
  <tr>
301
  <th scope="row">
302
+ <label for="close_boxshadow_color"><?php _e('Color', 'easy-modal' );?></label>
303
  </th>
304
  <td>
305
  <input type="text" name="theme[meta][close][boxshadow][color]" id="close_boxshadow_color" value="<?php esc_attr_e(get_current_modal_theme('meta.close.boxshadow.color'))?>" class="color-picker boxshadow-color" />
307
  </tr>
308
  <tr>
309
  <th scope="row">
310
+ <label for="close_boxshadow_opacity"><?php _e('Opacity', 'easy-modal' );?></label>
311
  </th>
312
  <td>
313
  <input type="range" name="theme[meta][close][boxshadow][opacity]" id="close_boxshadow_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.boxshadow.opacity'))?>" />
320
  function emodal_admin_theme_form_close_tab_settings_textshadow()
321
  {
322
  ?><tr class="title-divider">
323
+ <th colspan="2"><h3 class="title"><?php _e('Text Shadow', 'easy-modal' );?></h3></th>
324
  </tr>
325
  <tr>
326
  <th scope="row">
327
+ <label for="close_textshadow_horizontal"><?php _e('Horizontal Position', 'easy-modal' );?></label>
328
  </th>
329
  <td>
330
  <input type="range" name="theme[meta][close][textshadow][horizontal]" id="close_textshadow_horizontal" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.textshadow.horizontal'))?>" />
333
  </tr>
334
  <tr>
335
  <th scope="row">
336
+ <label for="close_textshadow_vertical"><?php _e('Vertical Position', 'easy-modal' );?></label>
337
  </th>
338
  <td>
339
  <input type="range" name="theme[meta][close][textshadow][vertical]" id="close_textshadow_vertical" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.textshadow.vertical'))?>" />
342
  </tr>
343
  <tr>
344
  <th scope="row">
345
+ <label for="close_textshadow_blur"><?php _e('Blur Radius', 'easy-modal' );?></label>
346
  </th>
347
  <td>
348
  <input type="range" name="theme[meta][close][textshadow][blur]" id="close_textshadow_blur" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.textshadow.blur'))?>" />
351
  </tr>
352
  <tr>
353
  <th scope="row">
354
+ <label for="close_textshadow_color"><?php _e('Color', 'easy-modal' );?></label>
355
  </th>
356
  <td>
357
  <input type="text" name="theme[meta][close][textshadow][color]" id="close_textshadow_color" value="<?php esc_attr_e(get_current_modal_theme('meta.close.textshadow.color'))?>" class="color-picker textshadow-color" />
359
  </tr>
360
  <tr>
361
  <th scope="row">
362
+ <label for="close_textshadow_opacity"><?php _e('Opacity', 'easy-modal' );?></label>
363
  </th>
364
  <td>
365
  <input type="range" name="theme[meta][close][textshadow][opacity]" id="close_textshadow_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.close.textshadow.opacity'))?>" />
includes/admin/theme-form-container-tab.php CHANGED
@@ -2,7 +2,7 @@
2
  add_filter('emodal_admin_theme_form_tabs', 'emodal_admin_theme_form_container_tab', 40);
3
  function emodal_admin_theme_form_container_tab($tabs)
4
  {
5
- $tabs[] = array( 'id' => 'container', 'label' => __('Container', EMCORE_SLUG) );
6
  return $tabs;
7
  }
8
 
@@ -22,7 +22,7 @@ function emodal_admin_theme_form_container_tab_settings_padding()
22
  {
23
  ?><tr>
24
  <th scope="row">
25
- <label for="container_padding"><?php _e('Padding', EMCORE_SLUG);?></label>
26
  </th>
27
  <td>
28
  <input type="range" name="theme[meta][container][padding]" id="container_padding" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.padding'))?>" />
@@ -36,11 +36,11 @@ add_action('emodal_admin_theme_form_tab_container_settings', 'emodal_admin_theme
36
  function emodal_admin_theme_form_container_tab_settings_background()
37
  {
38
  ?><tr class="title-divider">
39
- <th colspan="2"><h3 class="title"><?php _e('Background', EMCORE_SLUG);?></ h3></th>
40
  </tr>
41
  <tr>
42
  <th scope="row">
43
- <label for="container_background_color"><?php _e('Color', EMCORE_SLUG);?></label>
44
  </th>
45
  <td>
46
  <input type="text" name="theme[meta][container][background][color]" id="container_background_color" value="<?php esc_attr_e(get_current_modal_theme('meta.container.background.color'))?>" class="color-picker background-color" />
@@ -48,7 +48,7 @@ function emodal_admin_theme_form_container_tab_settings_background()
48
  </tr>
49
  <tr class="background-opacity">
50
  <th scope="row">
51
- <label for="container_background_opacity"><?php _e('Opacity', EMCORE_SLUG);?></label>
52
  </th>
53
  <td>
54
  <input type="range" name="theme[meta][container][background][opacity]" id="container_background_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.background.opacity'))?>" />
@@ -68,21 +68,21 @@ add_action('emodal_admin_theme_form_tab_container_settings', 'emodal_admin_theme
68
  function emodal_admin_theme_form_container_tab_settings_border()
69
  {
70
  ?><tr class="title-divider">
71
- <th colspan="2"><h3 class="title"><?php _e('Border', EMCORE_SLUG);?></h3></th>
72
  </tr>
73
  <tr>
74
  <th scope="row">
75
- <label for="container_border_radius"><?php _e('Radius', EMCORE_SLUG);?></label>
76
  </th>
77
  <td>
78
  <input type="range" name="theme[meta][container][border][radius]" id="container_border_radius" min="0" max="80" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.border.radius'))?>" />
79
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal_theme('meta.container.border.radius'));?></span>px</span>
80
- <p class="description"><?php _e('Choose a corner radius for your container button.',EMCORE_SLUG)?></p>
81
  </td>
82
  </tr>
83
  <tr>
84
  <th scope="row">
85
- <label for="container_border_style"><?php _e('Style', EMCORE_SLUG);?></label>
86
  </th>
87
  <td>
88
  <select name="theme[meta][container][border][style]" id="container_border_style" class="border-style">
@@ -93,12 +93,12 @@ function emodal_admin_theme_form_container_tab_settings_border()
93
  ><?php echo $option;?></option>
94
  <?php endforeach ?>
95
  </select>
96
- <p class="description"><?php _e('Choose a border style for your container button.', EMCORE_SLUG)?></p>
97
  </td>
98
  </tr>
99
  <tr class="border-options">
100
  <th scope="row">
101
- <label for="container_border_color"><?php _e('Color', EMCORE_SLUG);?></label>
102
  </th>
103
  <td>
104
  <input type="text" name="theme[meta][container][border][color]" id="container_border_color" value="<?php esc_attr_e(get_current_modal_theme('meta.container.border.color'))?>" class="color-picker" />
@@ -106,7 +106,7 @@ function emodal_admin_theme_form_container_tab_settings_border()
106
  </tr>
107
  <tr class="border-options">
108
  <th scope="row">
109
- <label for="container_border_width"><?php _e('Thickness', EMCORE_SLUG);?></label>
110
  </th>
111
  <td>
112
  <input type="range" name="theme[meta][container][border][width]" id="container_border_width" min="0" max="5" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.border.width'))?>" />
@@ -119,17 +119,17 @@ add_action('emodal_admin_theme_form_tab_container_settings', 'emodal_admin_theme
119
  function emodal_admin_theme_form_container_tab_settings_boxshadow()
120
  {
121
  ?><tr class="title-divider">
122
- <th colspan="2"><h3 class="title"><?php _e('Drop Shadow', EMCORE_SLUG);?></h3></th>
123
  </tr>
124
  <tr>
125
  <th scope="row">
126
- <label for="container_boxshadow_inset"><?php _e('Inset', EMCORE_SLUG);?></label>
127
  </th>
128
  <td>
129
  <select name="theme[meta][container][boxshadow][inset]" id="container_boxshadow_inset">
130
  <?php foreach(array(
131
- __('No', EMCORE_SLUG) => 'no',
132
- __('Yes', EMCORE_SLUG) => 'yes'
133
  ) as $option => $value) : ?>
134
  <option
135
  value="<?php echo $value;?>"
@@ -137,12 +137,12 @@ function emodal_admin_theme_form_container_tab_settings_boxshadow()
137
  ><?php echo $option;?></option>
138
  <?php endforeach ?>
139
  </select>
140
- <p class="description"><?php _e('Set the box shadow to inset (inner shadow).', EMCORE_SLUG)?></p>
141
  </td>
142
  </tr>
143
  <tr>
144
  <th scope="row">
145
- <label for="container_boxshadow_horizontal"><?php _e('Horizontal Position', EMCORE_SLUG);?></label>
146
  </th>
147
  <td>
148
  <input type="range" name="theme[meta][container][boxshadow][horizontal]" id="container_boxshadow_horizontal" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.boxshadow.horizontal'))?>" />
@@ -151,7 +151,7 @@ function emodal_admin_theme_form_container_tab_settings_boxshadow()
151
  </tr>
152
  <tr>
153
  <th scope="row">
154
- <label for="container_boxshadow_vertical"><?php _e('Vertical Position', EMCORE_SLUG);?></label>
155
  </th>
156
  <td>
157
  <input type="range" name="theme[meta][container][boxshadow][vertical]" id="container_boxshadow_vertical" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.boxshadow.vertical'))?>" />
@@ -160,7 +160,7 @@ function emodal_admin_theme_form_container_tab_settings_boxshadow()
160
  </tr>
161
  <tr>
162
  <th scope="row">
163
- <label for="container_boxshadow_blur"><?php _e('Blur Radius', EMCORE_SLUG);?></label>
164
  </th>
165
  <td>
166
  <input type="range" name="theme[meta][container][boxshadow][blur]" id="container_boxshadow_blur" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.boxshadow.blur'))?>" />
@@ -169,7 +169,7 @@ function emodal_admin_theme_form_container_tab_settings_boxshadow()
169
  </tr>
170
  <tr>
171
  <th scope="row">
172
- <label for="container_boxshadow_spread"><?php _e('Spread', EMCORE_SLUG);?></label>
173
  </th>
174
  <td>
175
  <input type="range" name="theme[meta][container][boxshadow][spread]" id="container_boxshadow_spread" min="-100" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.boxshadow.spread'))?>" />
@@ -178,7 +178,7 @@ function emodal_admin_theme_form_container_tab_settings_boxshadow()
178
  </tr>
179
  <tr>
180
  <th scope="row">
181
- <label for="container_boxshadow_color"><?php _e('Color', EMCORE_SLUG);?></label>
182
  </th>
183
  <td>
184
  <input type="text" name="theme[meta][container][boxshadow][color]" id="container_boxshadow_color" value="<?php esc_attr_e(get_current_modal_theme('meta.container.boxshadow.color'))?>" class="color-picker boxshadow-color" />
@@ -186,7 +186,7 @@ function emodal_admin_theme_form_container_tab_settings_boxshadow()
186
  </tr>
187
  <tr>
188
  <th scope="row">
189
- <label for="container_boxshadow_opacity"><?php _e('Opacity', EMCORE_SLUG);?></label>
190
  </th>
191
  <td>
192
  <input type="range" name="theme[meta][container][boxshadow][opacity]" id="container_boxshadow_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.boxshadow.opacity'))?>" />
2
  add_filter('emodal_admin_theme_form_tabs', 'emodal_admin_theme_form_container_tab', 40);
3
  function emodal_admin_theme_form_container_tab($tabs)
4
  {
5
+ $tabs[] = array( 'id' => 'container', 'label' => __('Container', 'easy-modal' ) );
6
  return $tabs;
7
  }
8
 
22
  {
23
  ?><tr>
24
  <th scope="row">
25
+ <label for="container_padding"><?php _e('Padding', 'easy-modal' );?></label>
26
  </th>
27
  <td>
28
  <input type="range" name="theme[meta][container][padding]" id="container_padding" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.padding'))?>" />
36
  function emodal_admin_theme_form_container_tab_settings_background()
37
  {
38
  ?><tr class="title-divider">
39
+ <th colspan="2"><h3 class="title"><?php _e('Background', 'easy-modal' );?></ h3></th>
40
  </tr>
41
  <tr>
42
  <th scope="row">
43
+ <label for="container_background_color"><?php _e('Color', 'easy-modal' );?></label>
44
  </th>
45
  <td>
46
  <input type="text" name="theme[meta][container][background][color]" id="container_background_color" value="<?php esc_attr_e(get_current_modal_theme('meta.container.background.color'))?>" class="color-picker background-color" />
48
  </tr>
49
  <tr class="background-opacity">
50
  <th scope="row">
51
+ <label for="container_background_opacity"><?php _e('Opacity', 'easy-modal' );?></label>
52
  </th>
53
  <td>
54
  <input type="range" name="theme[meta][container][background][opacity]" id="container_background_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.background.opacity'))?>" />
68
  function emodal_admin_theme_form_container_tab_settings_border()
69
  {
70
  ?><tr class="title-divider">
71
+ <th colspan="2"><h3 class="title"><?php _e('Border', 'easy-modal' );?></h3></th>
72
  </tr>
73
  <tr>
74
  <th scope="row">
75
+ <label for="container_border_radius"><?php _e('Radius', 'easy-modal' );?></label>
76
  </th>
77
  <td>
78
  <input type="range" name="theme[meta][container][border][radius]" id="container_border_radius" min="0" max="80" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.border.radius'))?>" />
79
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal_theme('meta.container.border.radius'));?></span>px</span>
80
+ <p class="description"><?php _e('Choose a corner radius for your container button.', 'easy-modal' )?></p>
81
  </td>
82
  </tr>
83
  <tr>
84
  <th scope="row">
85
+ <label for="container_border_style"><?php _e('Style', 'easy-modal' );?></label>
86
  </th>
87
  <td>
88
  <select name="theme[meta][container][border][style]" id="container_border_style" class="border-style">
93
  ><?php echo $option;?></option>
94
  <?php endforeach ?>
95
  </select>
96
+ <p class="description"><?php _e('Choose a border style for your container button.', 'easy-modal' )?></p>
97
  </td>
98
  </tr>
99
  <tr class="border-options">
100
  <th scope="row">
101
+ <label for="container_border_color"><?php _e('Color', 'easy-modal' );?></label>
102
  </th>
103
  <td>
104
  <input type="text" name="theme[meta][container][border][color]" id="container_border_color" value="<?php esc_attr_e(get_current_modal_theme('meta.container.border.color'))?>" class="color-picker" />
106
  </tr>
107
  <tr class="border-options">
108
  <th scope="row">
109
+ <label for="container_border_width"><?php _e('Thickness', 'easy-modal' );?></label>
110
  </th>
111
  <td>
112
  <input type="range" name="theme[meta][container][border][width]" id="container_border_width" min="0" max="5" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.border.width'))?>" />
119
  function emodal_admin_theme_form_container_tab_settings_boxshadow()
120
  {
121
  ?><tr class="title-divider">
122
+ <th colspan="2"><h3 class="title"><?php _e('Drop Shadow', 'easy-modal' );?></h3></th>
123
  </tr>
124
  <tr>
125
  <th scope="row">
126
+ <label for="container_boxshadow_inset"><?php _e('Inset', 'easy-modal' );?></label>
127
  </th>
128
  <td>
129
  <select name="theme[meta][container][boxshadow][inset]" id="container_boxshadow_inset">
130
  <?php foreach(array(
131
+ __('No', 'easy-modal' ) => 'no',
132
+ __('Yes', 'easy-modal' ) => 'yes'
133
  ) as $option => $value) : ?>
134
  <option
135
  value="<?php echo $value;?>"
137
  ><?php echo $option;?></option>
138
  <?php endforeach ?>
139
  </select>
140
+ <p class="description"><?php _e('Set the box shadow to inset (inner shadow).', 'easy-modal' )?></p>
141
  </td>
142
  </tr>
143
  <tr>
144
  <th scope="row">
145
+ <label for="container_boxshadow_horizontal"><?php _e('Horizontal Position', 'easy-modal' );?></label>
146
  </th>
147
  <td>
148
  <input type="range" name="theme[meta][container][boxshadow][horizontal]" id="container_boxshadow_horizontal" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.boxshadow.horizontal'))?>" />
151
  </tr>
152
  <tr>
153
  <th scope="row">
154
+ <label for="container_boxshadow_vertical"><?php _e('Vertical Position', 'easy-modal' );?></label>
155
  </th>
156
  <td>
157
  <input type="range" name="theme[meta][container][boxshadow][vertical]" id="container_boxshadow_vertical" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.boxshadow.vertical'))?>" />
160
  </tr>
161
  <tr>
162
  <th scope="row">
163
+ <label for="container_boxshadow_blur"><?php _e('Blur Radius', 'easy-modal' );?></label>
164
  </th>
165
  <td>
166
  <input type="range" name="theme[meta][container][boxshadow][blur]" id="container_boxshadow_blur" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.boxshadow.blur'))?>" />
169
  </tr>
170
  <tr>
171
  <th scope="row">
172
+ <label for="container_boxshadow_spread"><?php _e('Spread', 'easy-modal' );?></label>
173
  </th>
174
  <td>
175
  <input type="range" name="theme[meta][container][boxshadow][spread]" id="container_boxshadow_spread" min="-100" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.boxshadow.spread'))?>" />
178
  </tr>
179
  <tr>
180
  <th scope="row">
181
+ <label for="container_boxshadow_color"><?php _e('Color', 'easy-modal' );?></label>
182
  </th>
183
  <td>
184
  <input type="text" name="theme[meta][container][boxshadow][color]" id="container_boxshadow_color" value="<?php esc_attr_e(get_current_modal_theme('meta.container.boxshadow.color'))?>" class="color-picker boxshadow-color" />
186
  </tr>
187
  <tr>
188
  <th scope="row">
189
+ <label for="container_boxshadow_opacity"><?php _e('Opacity', 'easy-modal' );?></label>
190
  </th>
191
  <td>
192
  <input type="range" name="theme[meta][container][boxshadow][opacity]" id="container_boxshadow_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.container.boxshadow.opacity'))?>" />
includes/admin/theme-form-content-tab.php CHANGED
@@ -2,7 +2,7 @@
2
  add_filter('emodal_admin_theme_form_tabs', 'emodal_admin_theme_form_content_tab', 60);
3
  function emodal_admin_theme_form_content_tab($tabs)
4
  {
5
- $tabs[] = array( 'id' => 'content', 'label' => __('Content', EMCORE_SLUG) );
6
  return $tabs;
7
  }
8
 
@@ -21,11 +21,11 @@ add_action('emodal_admin_theme_form_tab_content_settings', 'emodal_admin_theme_f
21
  function emodal_admin_theme_form_content_tab_settings_font()
22
  {
23
  ?><tr class="title-divider">
24
- <th colspan="2"><h3 class="title"><?php _e('Font', EMCORE_SLUG);?></h3></th>
25
  </tr>
26
  <tr>
27
  <th scope="row">
28
- <label for="content_font_color"><?php _e('Color', EMCORE_SLUG);?></label>
29
  </th>
30
  <td>
31
  <input type="text" name="theme[meta][content][font][color]" id="content_font_color" value="<?php esc_attr_e(get_current_modal_theme('meta.content.font.color'))?>" class="color-picker" />
@@ -34,18 +34,18 @@ function emodal_admin_theme_form_content_tab_settings_font()
34
  <?php /*
35
  <tr>
36
  <th scope="row">
37
- <label for="content_font_size"><?php _e('Size', EMCORE_SLUG);?></label>
38
  </th>
39
  <td>
40
  <input type="range" name="theme[meta][content][font][size]" id="content_font_size" min="8" max="32" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.content.font.size'))?>" />
41
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal_theme('meta.content.font.size'));?></span>px</span>
42
- <p class="description"><?php _e('Font size.',EMCORE_SLUG)?></p>
43
  </td>
44
  </tr>
45
  */?>
46
  <tr>
47
  <th scope="row">
48
- <label for="content_font_family"><?php _e('Family', EMCORE_SLUG);?></label>
49
  </th>
50
  <td>
51
  <select name="theme[meta][content][font][family]" id="content_font_family">
2
  add_filter('emodal_admin_theme_form_tabs', 'emodal_admin_theme_form_content_tab', 60);
3
  function emodal_admin_theme_form_content_tab($tabs)
4
  {
5
+ $tabs[] = array( 'id' => 'content', 'label' => __('Content', 'easy-modal' ) );
6
  return $tabs;
7
  }
8
 
21
  function emodal_admin_theme_form_content_tab_settings_font()
22
  {
23
  ?><tr class="title-divider">
24
+ <th colspan="2"><h3 class="title"><?php _e('Font', 'easy-modal' );?></h3></th>
25
  </tr>
26
  <tr>
27
  <th scope="row">
28
+ <label for="content_font_color"><?php _e('Color', 'easy-modal' );?></label>
29
  </th>
30
  <td>
31
  <input type="text" name="theme[meta][content][font][color]" id="content_font_color" value="<?php esc_attr_e(get_current_modal_theme('meta.content.font.color'))?>" class="color-picker" />
34
  <?php /*
35
  <tr>
36
  <th scope="row">
37
+ <label for="content_font_size"><?php _e('Size', 'easy-modal' );?></label>
38
  </th>
39
  <td>
40
  <input type="range" name="theme[meta][content][font][size]" id="content_font_size" min="8" max="32" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.content.font.size'))?>" />
41
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal_theme('meta.content.font.size'));?></span>px</span>
42
+ <p class="description"><?php _e('Font size.', 'easy-modal' )?></p>
43
  </td>
44
  </tr>
45
  */?>
46
  <tr>
47
  <th scope="row">
48
+ <label for="content_font_family"><?php _e('Family', 'easy-modal' );?></label>
49
  </th>
50
  <td>
51
  <select name="theme[meta][content][font][family]" id="content_font_family">
includes/admin/theme-form-general-tab.php CHANGED
@@ -2,7 +2,7 @@
2
  add_filter('emodal_admin_theme_form_tabs', 'emodal_admin_theme_form_general_tab', 10);
3
  function emodal_admin_theme_form_general_tab($tabs)
4
  {
5
- $tabs[] = array( 'id' => 'general', 'label' => __('General', EMCORE_SLUG) );
6
  return $tabs;
7
  }
8
 
@@ -22,7 +22,7 @@ function emodal_admin_theme_form_general_tab_settings_name()
22
  ?><tr>
23
  <th scope="row">
24
  <label for="name">
25
- <?php _e('Name', EMCORE_SLUG);?>
26
  <span class="description">(required)</span>
27
  </label>
28
  </th>
2
  add_filter('emodal_admin_theme_form_tabs', 'emodal_admin_theme_form_general_tab', 10);
3
  function emodal_admin_theme_form_general_tab($tabs)
4
  {
5
+ $tabs[] = array( 'id' => 'general', 'label' => __('General', 'easy-modal' ) );
6
  return $tabs;
7
  }
8
 
22
  ?><tr>
23
  <th scope="row">
24
  <label for="name">
25
+ <?php _e('Name', 'easy-modal' );?>
26
  <span class="description">(required)</span>
27
  </label>
28
  </th>
includes/admin/theme-form-overlay-tab.php CHANGED
@@ -2,7 +2,7 @@
2
  add_filter('emodal_admin_theme_form_tabs', 'emodal_admin_theme_form_overlay_tab', 20);
3
  function emodal_admin_theme_form_overlay_tab($tabs)
4
  {
5
- $tabs[] = array( 'id' => 'overlay', 'label' => __('Overlay', EMCORE_SLUG) );
6
  return $tabs;
7
  }
8
 
@@ -21,21 +21,21 @@ function emodal_admin_theme_form_overlay_tab_settings_background()
21
  {
22
  ?><tr>
23
  <th scope="row">
24
- <label for="overlay_background_color"><?php _e('Color', EMCORE_SLUG);?></label>
25
  </th>
26
  <td>
27
  <input type="text" name="theme[meta][overlay][background][color]" id="overlay_background_color" value="<?php esc_attr_e(get_current_modal_theme('meta.overlay.background.color'))?>" class="color-picker background-color" />
28
- <p class="description"><?php _e('Choose the overlay color.', EMCORE_SLUG)?></p>
29
  </td>
30
  </tr>
31
  <tr class="background-opacity">
32
  <th scope="row">
33
- <label for="overlay_background_opacity"><?php _e('Opacity', EMCORE_SLUG);?></label>
34
  </th>
35
  <td>
36
  <input type="range" name="theme[meta][overlay][background][opacity]" id="overlay_background_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.overlay.background.opacity'))?>" />
37
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal_theme('meta.overlay.background.opacity'));?></span>%</span>
38
- <p class="description"><?php _e('The opacity value for the overlay.',EMCORE_SLUG)?></p>
39
  </td>
40
  </tr><?php
41
  if(!class_exists('EMAdvancedThemeEditor')){?>
2
  add_filter('emodal_admin_theme_form_tabs', 'emodal_admin_theme_form_overlay_tab', 20);
3
  function emodal_admin_theme_form_overlay_tab($tabs)
4
  {
5
+ $tabs[] = array( 'id' => 'overlay', 'label' => __('Overlay', 'easy-modal' ) );
6
  return $tabs;
7
  }
8
 
21
  {
22
  ?><tr>
23
  <th scope="row">
24
+ <label for="overlay_background_color"><?php _e('Color', 'easy-modal' );?></label>
25
  </th>
26
  <td>
27
  <input type="text" name="theme[meta][overlay][background][color]" id="overlay_background_color" value="<?php esc_attr_e(get_current_modal_theme('meta.overlay.background.color'))?>" class="color-picker background-color" />
28
+ <p class="description"><?php _e('Choose the overlay color.', 'easy-modal' )?></p>
29
  </td>
30
  </tr>
31
  <tr class="background-opacity">
32
  <th scope="row">
33
+ <label for="overlay_background_opacity"><?php _e('Opacity', 'easy-modal' );?></label>
34
  </th>
35
  <td>
36
  <input type="range" name="theme[meta][overlay][background][opacity]" id="overlay_background_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.overlay.background.opacity'))?>" />
37
  <span class="range-value regular-text"><span class="value"><?php esc_html_e(get_current_modal_theme('meta.overlay.background.opacity'));?></span>%</span>
38
+ <p class="description"><?php _e('The opacity value for the overlay.', 'easy-modal' )?></p>
39
  </td>
40
  </tr><?php
41
  if(!class_exists('EMAdvancedThemeEditor')){?>
includes/admin/theme-form-title-tab.php CHANGED
@@ -2,7 +2,7 @@
2
  add_filter('emodal_admin_theme_form_tabs', 'emodal_admin_theme_form_title_tab', 50);
3
  function emodal_admin_theme_form_title_tab($tabs)
4
  {
5
- $tabs[] = array( 'id' => 'title', 'label' => __('Title', EMCORE_SLUG) );
6
  return $tabs;
7
  }
8
 
@@ -21,11 +21,11 @@ add_action('emodal_admin_theme_form_tab_title_settings', 'emodal_admin_theme_for
21
  function emodal_admin_theme_form_title_tab_settings_font()
22
  {
23
  ?><tr class="title-divider">
24
- <th colspan="2"><h3 class="title"><?php _e('Font', EMCORE_SLUG);?></h3></th>
25
  </tr>
26
  <tr>
27
  <th scope="row">
28
- <label for="title_font_color"><?php _e('Color', EMCORE_SLUG);?></label>
29
  </th>
30
  <td>
31
  <input type="text" name="theme[meta][title][font][color]" id="title_font_color" value="<?php esc_attr_e(get_current_modal_theme('meta.title.font.color'))?>" class="color-picker" />
@@ -34,7 +34,7 @@ function emodal_admin_theme_form_title_tab_settings_font()
34
 
35
  <tr>
36
  <th scope="row">
37
- <label for="title_font_size"><?php _e('Size', EMCORE_SLUG);?></label>
38
  </th>
39
  <td>
40
  <input type="range" name="theme[meta][title][font][size]" id="title_font_size" min="8" max="32" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.title.font.size'))?>" />
@@ -43,7 +43,7 @@ function emodal_admin_theme_form_title_tab_settings_font()
43
  </tr>
44
  <tr>
45
  <th scope="row">
46
- <label for="title_font_family"><?php _e('Family', EMCORE_SLUG);?></label>
47
  </th>
48
  <td>
49
  <select name="theme[meta][title][font][family]" id="title_font_family">
@@ -58,7 +58,7 @@ function emodal_admin_theme_form_title_tab_settings_font()
58
  </tr>
59
  <tr>
60
  <th scope="row">
61
- <label for="title_text_align"><?php _e('Align', EMCORE_SLUG);?></label>
62
  </th>
63
  <td>
64
  <select name="theme[meta][title][text][align]" id="title_text_align">
@@ -77,11 +77,11 @@ add_action('emodal_admin_theme_form_tab_title_settings', 'emodal_admin_theme_for
77
  function emodal_admin_theme_form_title_tab_settings_textshadow()
78
  {
79
  ?><tr class="title-divider">
80
- <th colspan="2"><h3 class="title"><?php _e('Text Shadow', EMCORE_SLUG);?></h3></th>
81
  </tr>
82
  <tr>
83
  <th scope="row">
84
- <label for="title_textshadow_horizontal"><?php _e('Horizontal Position', EMCORE_SLUG);?></label>
85
  </th>
86
  <td>
87
  <input type="range" name="theme[meta][title][textshadow][horizontal]" id="title_textshadow_horizontal" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.title.textshadow.horizontal'))?>" />
@@ -90,7 +90,7 @@ function emodal_admin_theme_form_title_tab_settings_textshadow()
90
  </tr>
91
  <tr>
92
  <th scope="row">
93
- <label for="title_textshadow_vertical"><?php _e('Vertical Position', EMCORE_SLUG);?></label>
94
  </th>
95
  <td>
96
  <input type="range" name="theme[meta][title][textshadow][vertical]" id="title_textshadow_vertical" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.title.textshadow.vertical'))?>" />
@@ -99,7 +99,7 @@ function emodal_admin_theme_form_title_tab_settings_textshadow()
99
  </tr>
100
  <tr>
101
  <th scope="row">
102
- <label for="title_textshadow_blur"><?php _e('Blur Radius', EMCORE_SLUG);?></label>
103
  </th>
104
  <td>
105
  <input type="range" name="theme[meta][title][textshadow][blur]" id="title_textshadow_blur" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.title.textshadow.blur'))?>" />
@@ -108,7 +108,7 @@ function emodal_admin_theme_form_title_tab_settings_textshadow()
108
  </tr>
109
  <tr>
110
  <th scope="row">
111
- <label for="title_textshadow_color"><?php _e('Color', EMCORE_SLUG);?></label>
112
  </th>
113
  <td>
114
  <input type="text" name="theme[meta][title][textshadow][color]" id="title_textshadow_color" value="<?php esc_attr_e(get_current_modal_theme('meta.title.textshadow.color'))?>" class="color-picker textshadow-color" />
@@ -116,7 +116,7 @@ function emodal_admin_theme_form_title_tab_settings_textshadow()
116
  </tr>
117
  <tr>
118
  <th scope="row">
119
- <label for="title_textshadow_opacity"><?php _e('Opacity', EMCORE_SLUG);?></label>
120
  </th>
121
  <td>
122
  <input type="range" name="theme[meta][title][textshadow][opacity]" id="title_textshadow_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.title.textshadow.opacity'))?>" />
2
  add_filter('emodal_admin_theme_form_tabs', 'emodal_admin_theme_form_title_tab', 50);
3
  function emodal_admin_theme_form_title_tab($tabs)
4
  {
5
+ $tabs[] = array( 'id' => 'title', 'label' => __('Title', 'easy-modal' ) );
6
  return $tabs;
7
  }
8
 
21
  function emodal_admin_theme_form_title_tab_settings_font()
22
  {
23
  ?><tr class="title-divider">
24
+ <th colspan="2"><h3 class="title"><?php _e('Font', 'easy-modal' );?></h3></th>
25
  </tr>
26
  <tr>
27
  <th scope="row">
28
+ <label for="title_font_color"><?php _e('Color', 'easy-modal' );?></label>
29
  </th>
30
  <td>
31
  <input type="text" name="theme[meta][title][font][color]" id="title_font_color" value="<?php esc_attr_e(get_current_modal_theme('meta.title.font.color'))?>" class="color-picker" />
34
 
35
  <tr>
36
  <th scope="row">
37
+ <label for="title_font_size"><?php _e('Size', 'easy-modal' );?></label>
38
  </th>
39
  <td>
40
  <input type="range" name="theme[meta][title][font][size]" id="title_font_size" min="8" max="32" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.title.font.size'))?>" />
43
  </tr>
44
  <tr>
45
  <th scope="row">
46
+ <label for="title_font_family"><?php _e('Family', 'easy-modal' );?></label>
47
  </th>
48
  <td>
49
  <select name="theme[meta][title][font][family]" id="title_font_family">
58
  </tr>
59
  <tr>
60
  <th scope="row">
61
+ <label for="title_text_align"><?php _e('Align', 'easy-modal' );?></label>
62
  </th>
63
  <td>
64
  <select name="theme[meta][title][text][align]" id="title_text_align">
77
  function emodal_admin_theme_form_title_tab_settings_textshadow()
78
  {
79
  ?><tr class="title-divider">
80
+ <th colspan="2"><h3 class="title"><?php _e('Text Shadow', 'easy-modal' );?></h3></th>
81
  </tr>
82
  <tr>
83
  <th scope="row">
84
+ <label for="title_textshadow_horizontal"><?php _e('Horizontal Position', 'easy-modal' );?></label>
85
  </th>
86
  <td>
87
  <input type="range" name="theme[meta][title][textshadow][horizontal]" id="title_textshadow_horizontal" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.title.textshadow.horizontal'))?>" />
90
  </tr>
91
  <tr>
92
  <th scope="row">
93
+ <label for="title_textshadow_vertical"><?php _e('Vertical Position', 'easy-modal' );?></label>
94
  </th>
95
  <td>
96
  <input type="range" name="theme[meta][title][textshadow][vertical]" id="title_textshadow_vertical" min="-50" max="50" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.title.textshadow.vertical'))?>" />
99
  </tr>
100
  <tr>
101
  <th scope="row">
102
+ <label for="title_textshadow_blur"><?php _e('Blur Radius', 'easy-modal' );?></label>
103
  </th>
104
  <td>
105
  <input type="range" name="theme[meta][title][textshadow][blur]" id="title_textshadow_blur" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.title.textshadow.blur'))?>" />
108
  </tr>
109
  <tr>
110
  <th scope="row">
111
+ <label for="title_textshadow_color"><?php _e('Color', 'easy-modal' );?></label>
112
  </th>
113
  <td>
114
  <input type="text" name="theme[meta][title][textshadow][color]" id="title_textshadow_color" value="<?php esc_attr_e(get_current_modal_theme('meta.title.textshadow.color'))?>" class="color-picker textshadow-color" />
116
  </tr>
117
  <tr>
118
  <th scope="row">
119
+ <label for="title_textshadow_opacity"><?php _e('Opacity', 'easy-modal' );?></label>
120
  </th>
121
  <td>
122
  <input type="range" name="theme[meta][title][textshadow][opacity]" id="title_textshadow_opacity" min="0" max="100" step="1" value="<?php esc_attr_e(get_current_modal_theme('meta.title.textshadow.opacity'))?>" />
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, lightbox
7
  Requires at least: 3.4
8
  Tested up to: 4.0
9
- Stable tag: 2.0.16
10
  The #1 WordPress Popup Plugin! Make glorious & powerful popups and market your content like never before - all in minutes!
11
 
12
  == Description ==
@@ -16,13 +16,10 @@ We hope you enjoy using Popup Maker to destroy your old conversion rates!
16
 
17
  [Continue to Popup Maker](https://wppopupmaker.com "Popup Maker Website")
18
 
19
-
20
  If you're an existing Easy Modal user, transitioning from Easy Modal to Popup Maker is a snap with our custom Importer! [See How!](https://wppopupmaker.com/kb/upgrading-easy-modal-popup-maker "Upgrade from Easy Modal to Popup Maker")
21
 
22
- If you own Easy Modal Addons, you can upgrade to Popup Maker for free:
23
-
24
  * [Yes, I want to upgrade for free!](https://wppopupmaker.com/easy-modal-customer-upgrade "Upgrade Your Easy Modal Product for Free") (recommended)
25
-
26
  * No thanks! I just [need support on my Easy Modal product](https://easy-modal.com/support "Get Support on Your Easy Modal Product").
27
 
28
  == Installation ==
@@ -31,6 +28,10 @@ If you own Easy Modal Addons, you can upgrade to Popup Maker for free:
31
  4. Theme, customize, and make a popup in minutes.
32
 
33
  == Changelog ==
 
 
 
 
34
  = v2.0.16 =
35
  * Bug
36
  * Added backward compatibiilty fix for deprecated JS function.
6
  Tags: modal,modal box,modal form,modal window,popup,popup box,popup form,popup window,ajax forms, lightbox
7
  Requires at least: 3.4
8
  Tested up to: 4.0
9
+ Stable tag: 2.0.17
10
  The #1 WordPress Popup Plugin! Make glorious & powerful popups and market your content like never before - all in minutes!
11
 
12
  == Description ==
16
 
17
  [Continue to Popup Maker](https://wppopupmaker.com "Popup Maker Website")
18
 
 
19
  If you're an existing Easy Modal user, transitioning from Easy Modal to Popup Maker is a snap with our custom Importer! [See How!](https://wppopupmaker.com/kb/upgrading-easy-modal-popup-maker "Upgrade from Easy Modal to Popup Maker")
20
 
21
+ If you own Easy Modal Addons, you can upgrade to Popup Maker for free.
 
22
  * [Yes, I want to upgrade for free!](https://wppopupmaker.com/easy-modal-customer-upgrade "Upgrade Your Easy Modal Product for Free") (recommended)
 
23
  * No thanks! I just [need support on my Easy Modal product](https://easy-modal.com/support "Get Support on Your Easy Modal Product").
24
 
25
  == Installation ==
28
  4. Theme, customize, and make a popup in minutes.
29
 
30
  == Changelog ==
31
+
32
+ = v2.0.17 =
33
+ * Tweak: Updated language domain information for upcoming translation by glotpress.
34
+
35
  = v2.0.16 =
36
  * Bug
37
  * Added backward compatibiilty fix for deprecated JS function.