Popup Maker – Popup Forms, Optins & More - Version 1.0.4

Version Description

Download this release

Release Info

Developer danieliser
Plugin Icon 128x128 Popup Maker – Popup Forms, Optins & More
Version 1.0.4
Comparing to
See all releases

Code changes from version 1.0.3 to 1.0.4

assets/styles/popup-maker-admin.css CHANGED
@@ -24,6 +24,7 @@ h3.title {
24
  }
25
  #titlediv #title {
26
  margin: 0 0 1em;
 
27
  }
28
  .posttypediv, .taxonomydiv {
29
  margin-bottom:10px;
@@ -31,6 +32,75 @@ h3.title {
31
  overflow:auto;
32
  }
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  option.bold {
35
  font-weight:bold;
36
  font-size: 1.125em;
24
  }
25
  #titlediv #title {
26
  margin: 0 0 1em;
27
+ height:40px!important;
28
  }
29
  .posttypediv, .taxonomydiv {
30
  margin-bottom:10px;
32
  overflow:auto;
33
  }
34
 
35
+ .wp-core-ui .button-primary, .button-primary {
36
+ background-color:#9aba27;
37
+ color:#fff;
38
+ border-color:#000;
39
+ text-shadow: 1px 1px 0px rgba(0,0,0,1);
40
+ }
41
+
42
+ .wp-core-ui .button-primary.focus, .wp-core-ui .button-primary.hover, .wp-core-ui .button-primary:focus, .wp-core-ui .button-primary:hover {
43
+ background-color:rgba(154, 186, 39, .95);
44
+ }
45
+ .wp-core-ui .button-primary-disabled, .wp-core-ui .button-primary.disabled, .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary[disabled] {
46
+ background-color:rgba(154, 186, 39, .95)!important;
47
+ color:#000!important;
48
+ }
49
+ .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover, .wp-core-ui .button-primary:active {
50
+ background-color:rgba(154, 186, 39, .95);
51
+ }
52
+ input[type="text"], select {
53
+ font-size: 13px;
54
+ margin: 0;
55
+ height: 30px!important;
56
+ line-height: 28px!important;
57
+ padding: 0 6px 2px!important;
58
+ box-shadow: 0 1px 0 rgb(255, 255, 255) inset, 0 1px 0 rgba(0, 0, 0, 0.08);
59
+ }
60
+ input[type="range"] {
61
+ vertical-align: middle;
62
+ }
63
+ input.popmake-range-manual {
64
+ padding-right:25px!important;
65
+ }
66
+ /*
67
+ input[type="text"], select {
68
+ border-radius: 3px;
69
+ border-style: solid;
70
+ border-width: 1px;
71
+ box-sizing: border-box;
72
+ cursor: pointer;
73
+ display: inline-block;
74
+ font-size: 13px;
75
+ margin: 0;
76
+ text-decoration: none;
77
+ white-space: nowrap;
78
+ height: 30px!important;
79
+ line-height: 28px!important;
80
+ padding: 0 12px 2px!important;
81
+ background: none repeat scroll 0 0 rgb(247, 247, 247)!important;
82
+ border-color: rgb(204, 204, 204);
83
+ box-shadow: 0 1px 0 rgb(255, 255, 255) inset, 0 1px 0 rgba(0, 0, 0, 0.08);
84
+ color: rgb(85, 85, 85);
85
+ vertical-align: top!important;
86
+ }
87
+ input[type="text"] {
88
+ background-color: rgb(247, 247, 247)!important;
89
+ }
90
+ input[type="range"] {
91
+ background: transparent!important;
92
+ border:none!important;
93
+ outline:0;
94
+ box-shadow:none;
95
+ }
96
+
97
+ button.popmake-range-minus, button.popmake-range-plus {
98
+ height:30px;
99
+ width:30px;
100
+ text-align: center;
101
+ }
102
+
103
+ */
104
  option.bold {
105
  font-weight:bold;
106
  font-size: 1.125em;
assets/styles/popup-maker-admin.min.css CHANGED
@@ -1 +1 @@
1
- h3.title{color:#9aba27}#popuptitlediv #popuptitle{background-color:#fff;font-size:1.5em;height:1.8em;line-height:100%;margin:0;outline:medium none;padding:2px 8px;width:100%}#popuptitlediv #popuptitle input{color:#777;font-size:1.7em;padding:11px 10px;position:absolute}#popuptitlediv #popuptitle-prompt-text{font-size:1.4em;padding:8px 10px}#titlediv #title{margin:0 0 1em}.posttypediv,.taxonomydiv{margin-bottom:10px;clear:both;overflow:auto}option.bold{font-weight:700;font-size:1.125em}.popmake-range-manual{padding-right:25px;text-align:right;width:80px}.range-value-unit{position:relative;display:inline-block;margin-left:-30px;margin-right:10px;width:20px;text-align:left}.title-divider th{border-top:1px solid #ccc;padding:0}.form-table td,.form-table tr{padding-top:10px}.title-divider .title{font-size:1.125em;padding-left:0!important;padding-top:20px!important;padding-bottom:0!important}#menu-posts-popup ul.wp-submenu li:nth-child(0n+8) a{color:#9ABA27}.popmake-upgrade-tip{color:#333;line-height:2em!important}div.popmake-upgrade-tip{margin-bottom:15px;display:block;font-weight:700}.popmake-upgrade-tip img{float:left;margin-right:15px}.popmake-newsletter-optin{display:none;position:relative;width:100%;margin-bottom:10px}.popmake-newsletter-optin img{max-width:100%;width:100%}.popmake-newsletter-optin .popmake-optin-dismiss{display:inline-block;position:absolute;right:5px;bottom:5px;cursor:pointer;color:#6B8129;font-family:"Open Sans",sans-serif;text-transform:uppercase;font-size:.875em}.popmake-newsletter-optin .popmake-optin-dismiss:hover{color:#9ABA27}#popmake_popup_theme_preview{z-index:100}#popmake_popup_theme_preview .inside{margin-top:0;background:url(http://s.wordpress.com/mshots/v1/http://www.wordpress.org) no-repeat center top}#popmake_popup_theme_preview .empreview{padding-top:25px}.example-popup,.example-popup:before,.example-popup:after{-moz-box-sizing:border-box}.empreview .example-popup-overlay{position:absolute;display:block;width:100%;height:100%;top:0;left:0}.empreview .example-popup{display:block;position:relative;width:95%;max-width:400px;margin:0 auto 25px;font-size:16px;position:relative;z-index:99}.empreview .example-popup .close-popup{text-decoration:none;text-align:center;line-height:1;position:absolute;font-weight:700;cursor:pointer;min-width:1em}.popmake-support-links{list-style:none}.popmake-support-links li{margin-bottom:10px}.popmake-support-links a{color:#20252b;font-family:"Montserrat";font-size:1.25em;text-transform:uppercase;text-decoration:none}.popmake-support-links a span{margin-left:10px}.popmake-support-links a img{top:6px;position:relative;min-width:24px;max-width:24px;min-height:24px;max-height:24px}.button.rounded{box-shadow:none;border:0;border-radius:2px;background:#9aba27;color:#fff;padding-left:18px;padding-right:18px;transition:transform .5s;margin-bottom:10px}.button.rounded:hover,.button.rounded:focus{color:#fff;background:#20252b;transform:scale(1.125)}#popmake_popup_support{margin-bottom:10px}#popmake_popup_share .handlediv{display:none}#popmake_popup_share .hndle{display:none}#popmake_popup_share .inside{margin:0 0 20px}.loveit-shareit{font-weight:700!important;font-size:28px!important;color:#333;text-transform:uppercase}.loveit-shareit span{color:#9ABA27}.follow-box{text-align:center;padding:14px 36px;background:#fff;border:1px solid #e5e5e5}.share-buttons{margin:0 auto;width:68%;display:block;clear:both}.share-buttons li{text-align:center;width:32%;display:inline-block;float:left;margin-right:1%;margin-bottom:0}.share-buttons li:last-child{margin-right:0}.popmake-badge{padding-top:150px;height:52px;width:185px;color:#666;font-weight:700;font-size:14px;text-align:center;text-shadow:0 1px 0 rgba(255,255,255,.8);margin:0 -5px;background:url(../images/welcome/logo.png) no-repeat center center}.about-wrap .popmake-badge{position:absolute;top:0;right:0}.popmake-welcome-screenshots{float:right;margin-left:10px!important;padding:0 7.5em}.popmake-wrap .feature-section{margin-top:20px}.tab-box{margin-top:40px;position:relative;border:1px solid #ccc;max-width:500px;padding:20px 10px 5px}.tab-box h4{font:13px/30px "Open Sans",​sans-serif;font-weight:700;position:absolute;background:#ccc;display:inline-block;padding:0 10px;top:-48px;left:-1px}.tab-box a{font:300 18px/1.125 "Oswald";color:#9ABA27}.tab-box button{font:300 18px/1.125 "Oswald";color:#fff;background:#9ABA27;box-shadow:none;border:0;padding:5px 10px 7px;cursor:pointer;transition:transform .5s}.tab-box button:hover{transform:scale(1.125)}.extensions-available{display:block}.extensions-available img{width:100%;display:block;height:auto;max-width:100%}.extensions-available li{box-sizing:border-box;border:1px solid #ccc;padding:0 0 4px;background:#fff;vertical-align:top;width:280px;margin:0 10px 20px;display:inline;float:left;-webkit-box-shadow:1px 1px 4px rgba(0,0,0,.25);-moz-box-shadow:1px 1px 4px rgba(0,0,0,.25);box-shadow:1px 1px 4px rgba(0,0,0,.25)}.extensions-available h3{font:16px/1.5 "Montserrat" !important;text-align:center;text-transform:uppercase}.extensions-available h3 a{color:inherit}.extensions-available li>.action-links{margin:0 10px;text-align:center;display:block}.extensions-available .action-links .button{display:inline-block;margin-bottom:10px;margin-top:8px;background:#9ABA27;color:#fff;border-radius:0;border:0;box-shadow:none;font-weight:700;padding:7px 30px;height:auto;text-transform:uppercase;transition:transform .5s}.extensions-available .action-links .button.install{background:#00a651}.extensions-available .action-links .button:hover{transform:scale(1.125)}.extensions-available p{margin:10px;color:#717171;font-size:14px;text-align:center;font-style:italic;min-height:7.5em}.extensions-available a{display:block;text-align:center;text-decoration:none}@media only screen and (max-width:360px){.extensions-available li{display:block;margin:0 0 10px;width:100%}}@media only screen and (min-width:361px) and (max-width:768px){.extensions-available li{width:320px}}@media only screen and (min-width:769px) and (max-width:980px){.extensions-available li{width:240px}}
1
+ h3.title{color:#9aba27}#popuptitlediv #popuptitle{background-color:#fff;font-size:1.5em;height:1.8em;line-height:100%;margin:0;outline:medium none;padding:2px 8px;width:100%}#popuptitlediv #popuptitle input{color:#777;font-size:1.7em;padding:11px 10px;position:absolute}#popuptitlediv #popuptitle-prompt-text{font-size:1.4em;padding:8px 10px}#titlediv #title{margin:0 0 1em;height:40px!important}.posttypediv,.taxonomydiv{margin-bottom:10px;clear:both;overflow:auto}.wp-core-ui .button-primary,.button-primary{background-color:#9aba27;color:#fff;border-color:#000;text-shadow:1px 1px 0 rgba(0,0,0,1)}.wp-core-ui .button-primary.focus,.wp-core-ui .button-primary.hover,.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background-color:rgba(154,186,39,.95)}.wp-core-ui .button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{background-color:rgba(154,186,39,.95)!important;color:#000!important}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover,.wp-core-ui .button-primary:active{background-color:rgba(154,186,39,.95)}input[type="text"],select{font-size:13px;margin:0;height:30px!important;line-height:28px!important;padding:0 6px 2px!important;box-shadow:0 1px 0 #FFF inset,0 1px 0 rgba(0,0,0,.08)}input[type="range"]{vertical-align:middle}input.popmake-range-manual{padding-right:25px!important}option.bold{font-weight:700;font-size:1.125em}.popmake-range-manual{padding-right:25px;text-align:right;width:80px}.range-value-unit{position:relative;display:inline-block;margin-left:-30px;margin-right:10px;width:20px;text-align:left}.title-divider th{border-top:1px solid #ccc;padding:0}.form-table td,.form-table tr{padding-top:10px}.title-divider .title{font-size:1.125em;padding-left:0!important;padding-top:20px!important;padding-bottom:0!important}#menu-posts-popup ul.wp-submenu li:nth-child(0n+8) a{color:#9ABA27}.popmake-upgrade-tip{color:#333;line-height:2em!important}div.popmake-upgrade-tip{margin-bottom:15px;display:block;font-weight:700}.popmake-upgrade-tip img{float:left;margin-right:15px}.popmake-newsletter-optin{display:none;position:relative;width:100%;margin-bottom:10px}.popmake-newsletter-optin img{max-width:100%;width:100%}.popmake-newsletter-optin .popmake-optin-dismiss{display:inline-block;position:absolute;right:5px;bottom:5px;cursor:pointer;color:#6B8129;font-family:"Open Sans",sans-serif;text-transform:uppercase;font-size:.875em}.popmake-newsletter-optin .popmake-optin-dismiss:hover{color:#9ABA27}#popmake_popup_theme_preview{z-index:100}#popmake_popup_theme_preview .inside{margin-top:0;background:url(http://s.wordpress.com/mshots/v1/http://www.wordpress.org) no-repeat center top}#popmake_popup_theme_preview .empreview{padding-top:25px}.example-popup,.example-popup:before,.example-popup:after{-moz-box-sizing:border-box}.empreview .example-popup-overlay{position:absolute;display:block;width:100%;height:100%;top:0;left:0}.empreview .example-popup{display:block;position:relative;width:95%;max-width:400px;margin:0 auto 25px;font-size:16px;position:relative;z-index:99}.empreview .example-popup .close-popup{text-decoration:none;text-align:center;line-height:1;position:absolute;font-weight:700;cursor:pointer;min-width:1em}.popmake-support-links{list-style:none}.popmake-support-links li{margin-bottom:10px}.popmake-support-links a{color:#20252b;font-family:"Montserrat";font-size:1.25em;text-transform:uppercase;text-decoration:none}.popmake-support-links a span{margin-left:10px}.popmake-support-links a img{top:6px;position:relative;min-width:24px;max-width:24px;min-height:24px;max-height:24px}.button.rounded{box-shadow:none;border:0;border-radius:2px;background:#9aba27;color:#fff;padding-left:18px;padding-right:18px;transition:transform .5s;margin-bottom:10px}.button.rounded:hover,.button.rounded:focus{color:#fff;background:#20252b;transform:scale(1.125)}#popmake_popup_support{margin-bottom:10px}#popmake_popup_share .handlediv{display:none}#popmake_popup_share .hndle{display:none}#popmake_popup_share .inside{margin:0 0 20px}.loveit-shareit{font-weight:700!important;font-size:28px!important;color:#333;text-transform:uppercase}.loveit-shareit span{color:#9ABA27}.follow-box{text-align:center;padding:14px 36px;background:#fff;border:1px solid #e5e5e5}.share-buttons{margin:0 auto;width:68%;display:block;clear:both}.share-buttons li{text-align:center;width:32%;display:inline-block;float:left;margin-right:1%;margin-bottom:0}.share-buttons li:last-child{margin-right:0}.popmake-badge{padding-top:150px;height:52px;width:185px;color:#666;font-weight:700;font-size:14px;text-align:center;text-shadow:0 1px 0 rgba(255,255,255,.8);margin:0 -5px;background:url(../images/welcome/logo.png) no-repeat center center}.about-wrap .popmake-badge{position:absolute;top:0;right:0}.popmake-welcome-screenshots{float:right;margin-left:10px!important;padding:0 7.5em}.popmake-wrap .feature-section{margin-top:20px}.tab-box{margin-top:40px;position:relative;border:1px solid #ccc;max-width:500px;padding:20px 10px 5px}.tab-box h4{font:13px/30px "Open Sans",​sans-serif;font-weight:700;position:absolute;background:#ccc;display:inline-block;padding:0 10px;top:-48px;left:-1px}.tab-box a{font:300 18px/1.125 "Oswald";color:#9ABA27}.tab-box button{font:300 18px/1.125 "Oswald";color:#fff;background:#9ABA27;box-shadow:none;border:0;padding:5px 10px 7px;cursor:pointer;transition:transform .5s}.tab-box button:hover{transform:scale(1.125)}.extensions-available{display:block}.extensions-available img{width:100%;display:block;height:auto;max-width:100%}.extensions-available li{box-sizing:border-box;border:1px solid #ccc;padding:0 0 4px;background:#fff;vertical-align:top;width:280px;margin:0 10px 20px;display:inline;float:left;-webkit-box-shadow:1px 1px 4px rgba(0,0,0,.25);-moz-box-shadow:1px 1px 4px rgba(0,0,0,.25);box-shadow:1px 1px 4px rgba(0,0,0,.25)}.extensions-available h3{font:16px/1.5 "Montserrat" !important;text-align:center;text-transform:uppercase}.extensions-available h3 a{color:inherit}.extensions-available li>.action-links{margin:0 10px;text-align:center;display:block}.extensions-available .action-links .button{display:inline-block;margin-bottom:10px;margin-top:8px;background:#9ABA27;color:#fff;border-radius:0;border:0;box-shadow:none;font-weight:700;padding:7px 30px;height:auto;text-transform:uppercase;transition:transform .5s}.extensions-available .action-links .button.install{background:#00a651}.extensions-available .action-links .button:hover{transform:scale(1.125)}.extensions-available p{margin:10px;color:#717171;font-size:14px;text-align:center;font-style:italic;min-height:7.5em}.extensions-available a{display:block;text-align:center;text-decoration:none}@media only screen and (max-width:360px){.extensions-available li{display:block;margin:0 0 10px;width:100%}}@media only screen and (min-width:361px) and (max-width:768px){.extensions-available li{width:320px}}@media only screen and (min-width:769px) and (max-width:980px){.extensions-available li{width:240px}}
includes/admin/popups/metabox-display-fields.php CHANGED
@@ -5,8 +5,7 @@
5
  * @param $post_id
6
  */
7
  add_action('popmake_popup_display_meta_box_fields', 'popmake_popup_display_meta_box_field_size', 10);
8
- function popmake_popup_display_meta_box_field_size( $popup_id )
9
- {
10
  ?><tr>
11
  <th scope="row">
12
  <label for="popup_display_size">
@@ -133,8 +132,7 @@ function popmake_popup_display_meta_box_field_custom_sizes( $popup_id ) {
133
  }
134
 
135
  add_action('popmake_popup_display_meta_box_fields', 'popmake_popup_display_meta_box_field_overlay_disabled', 40);
136
- function popmake_popup_display_meta_box_field_overlay_disabled( $popup_id )
137
- {
138
  ?><tr class="title-divider">
139
  <th colspan="2"><h3 class="title"><?php _e( 'Overlay', 'popup-maker' );?></h3></th>
140
  </tr>
@@ -148,8 +146,7 @@ function popmake_popup_display_meta_box_field_overlay_disabled( $popup_id )
148
  }
149
 
150
  add_action('popmake_popup_display_meta_box_fields', 'popmake_popup_display_meta_box_field_animation', 50);
151
- function popmake_popup_display_meta_box_field_animation( $popup_id )
152
- {
153
  ?><tr class="title-divider">
154
  <th colspan="2"><h3 class="title"><?php _e( 'Animation', 'popup-maker' );?></h3></th>
155
  </tr>
@@ -215,8 +212,7 @@ function popmake_popup_display_meta_box_field_animation( $popup_id )
215
 
216
 
217
  add_action('popmake_popup_display_meta_box_fields', 'popmake_admin_popup_form_display_tab_settings_position', 60);
218
- function popmake_admin_popup_form_display_tab_settings_position( $popup_id )
219
- {
220
  ?><tr class="title-divider">
221
  <th colspan="2"><h3 class="title"><?php _e( 'Position', 'popup-maker' );?></h3></th>
222
  </tr>
5
  * @param $post_id
6
  */
7
  add_action('popmake_popup_display_meta_box_fields', 'popmake_popup_display_meta_box_field_size', 10);
8
+ function popmake_popup_display_meta_box_field_size( $popup_id ) {
 
9
  ?><tr>
10
  <th scope="row">
11
  <label for="popup_display_size">
132
  }
133
 
134
  add_action('popmake_popup_display_meta_box_fields', 'popmake_popup_display_meta_box_field_overlay_disabled', 40);
135
+ function popmake_popup_display_meta_box_field_overlay_disabled( $popup_id ) {
 
136
  ?><tr class="title-divider">
137
  <th colspan="2"><h3 class="title"><?php _e( 'Overlay', 'popup-maker' );?></h3></th>
138
  </tr>
146
  }
147
 
148
  add_action('popmake_popup_display_meta_box_fields', 'popmake_popup_display_meta_box_field_animation', 50);
149
+ function popmake_popup_display_meta_box_field_animation( $popup_id ) {
 
150
  ?><tr class="title-divider">
151
  <th colspan="2"><h3 class="title"><?php _e( 'Animation', 'popup-maker' );?></h3></th>
152
  </tr>
212
 
213
 
214
  add_action('popmake_popup_display_meta_box_fields', 'popmake_admin_popup_form_display_tab_settings_position', 60);
215
+ function popmake_admin_popup_form_display_tab_settings_position( $popup_id ) {
 
216
  ?><tr class="title-divider">
217
  <th colspan="2"><h3 class="title"><?php _e( 'Position', 'popup-maker' );?></h3></th>
218
  </tr>
includes/popup-functions.php CHANGED
@@ -245,7 +245,6 @@ add_filter('the_content', 'popmake_popup_content_container', 10000);
245
  function popmake_popup_is_loadable( $popup_id ) {
246
  global $post, $wp_query;
247
 
248
- $popmake_enqueued_popups = get_enqueued_popups();
249
  $conditions = popmake_get_popup_targeting_condition( $popup_id );
250
 
251
  $return = false;
@@ -287,7 +286,7 @@ function popmake_popup_is_loadable( $popup_id ) {
287
  $return = true;
288
  }
289
  // Load on specific pages
290
- if( array_key_exists('on_specific_pages', $conditions) && array_key_exists('on_page_' . $post->ID, $conditions) ) {
291
  $return = true;
292
  }
293
  // Load on entire site not excluding all pages.
@@ -295,7 +294,7 @@ function popmake_popup_is_loadable( $popup_id ) {
295
  $return = true;
296
  }
297
  // Load on entire site not excluding specific pages.
298
- if( array_key_exists('on_entire_site', $conditions) && array_key_exists('exclude_on_specific_pages', $conditions) && !array_key_exists('exclude_on_page_' . $post->ID, $conditions) ) {
299
  $return = true;
300
  }
301
 
@@ -348,7 +347,7 @@ function popmake_popup_is_loadable( $popup_id ) {
348
  $return = true;
349
  }
350
  // Load on specific pages
351
- if( array_key_exists('on_specific_posts', $conditions) && array_key_exists('on_post_' . $post->ID, $conditions) ) {
352
  $return = true;
353
  }
354
  // Load on entire site not excluding all pages.
@@ -356,7 +355,7 @@ function popmake_popup_is_loadable( $popup_id ) {
356
  $return = true;
357
  }
358
  // Load on entire site not excluding specific pages.
359
- if( array_key_exists('on_entire_site', $conditions) && array_key_exists('exclude_on_specific_posts', $conditions) && !array_key_exists('exclude_on_post_' . $post->ID, $conditions) ) {
360
  $return = true;
361
  }
362
 
@@ -369,7 +368,7 @@ function popmake_popup_is_loadable( $popup_id ) {
369
  $return = true;
370
  }
371
  // Load on specific pages
372
- if( array_key_exists("on_specific_{$pt}s", $conditions) && array_key_exists("on_{$pt}_" . $post->ID, $conditions) ) {
373
  $return = true;
374
  }
375
  // Load on entire site not excluding all pages.
@@ -377,7 +376,7 @@ function popmake_popup_is_loadable( $popup_id ) {
377
  $return = true;
378
  }
379
  // Load on entire site not excluding specific pages.
380
- if( array_key_exists("on_entire_site", $conditions) && array_key_exists("exclude_on_specific_{$pt}s", $conditions) && !array_key_exists("exclude_on_{$pt}_" . $post->ID, $conditions) ) {
381
  $return = true;
382
  }
383
 
@@ -388,8 +387,8 @@ function popmake_popup_is_loadable( $popup_id ) {
388
 
389
  // An Archive is a Category, Tag, Author or a Date based pages.
390
  elseif( is_archive() ) {}
391
-
392
- return apply_filters('popmake_popup_is_loadable', $return, $post->ID);
393
  }
394
 
395
 
245
  function popmake_popup_is_loadable( $popup_id ) {
246
  global $post, $wp_query;
247
 
 
248
  $conditions = popmake_get_popup_targeting_condition( $popup_id );
249
 
250
  $return = false;
286
  $return = true;
287
  }
288
  // Load on specific pages
289
+ if( array_key_exists('on_specific_pages', $conditions) && array_key_exists('on_page_' . $popup_id, $conditions) ) {
290
  $return = true;
291
  }
292
  // Load on entire site not excluding all pages.
294
  $return = true;
295
  }
296
  // Load on entire site not excluding specific pages.
297
+ if( array_key_exists('on_entire_site', $conditions) && array_key_exists('exclude_on_specific_pages', $conditions) && !array_key_exists('exclude_on_page_' . $popup_id, $conditions) ) {
298
  $return = true;
299
  }
300
 
347
  $return = true;
348
  }
349
  // Load on specific pages
350
+ if( array_key_exists('on_specific_posts', $conditions) && array_key_exists('on_post_' . $popup_id, $conditions) ) {
351
  $return = true;
352
  }
353
  // Load on entire site not excluding all pages.
355
  $return = true;
356
  }
357
  // Load on entire site not excluding specific pages.
358
+ if( array_key_exists('on_entire_site', $conditions) && array_key_exists('exclude_on_specific_posts', $conditions) && !array_key_exists('exclude_on_post_' . $popup_id, $conditions) ) {
359
  $return = true;
360
  }
361
 
368
  $return = true;
369
  }
370
  // Load on specific pages
371
+ if( array_key_exists("on_specific_{$pt}s", $conditions) && array_key_exists("on_{$pt}_" . $popup_id, $conditions) ) {
372
  $return = true;
373
  }
374
  // Load on entire site not excluding all pages.
376
  $return = true;
377
  }
378
  // Load on entire site not excluding specific pages.
379
+ if( array_key_exists("on_entire_site", $conditions) && array_key_exists("exclude_on_specific_{$pt}s", $conditions) && !array_key_exists("exclude_on_{$pt}_" . $popup_id, $conditions) ) {
380
  $return = true;
381
  }
382
 
387
 
388
  // An Archive is a Category, Tag, Author or a Date based pages.
389
  elseif( is_archive() ) {}
390
+
391
+ return apply_filters('popmake_popup_is_loadable', $return, $popup_id);
392
  }
393
 
394
 
popup-maker.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://wppopupmaker.com
5
  * Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
6
  * Author: Wizard Internet Solutions
7
- * Version: 1.0.3
8
  * Author URI: http://wizardinternetsolutions.com
9
  * Text Domain: popup-maker
10
  *
@@ -144,7 +144,7 @@ final class Popup_Maker {
144
  }
145
 
146
  if ( !defined('POPMAKE_VERSION') ) {
147
- define('POPMAKE_VERSION', '1.0.3' );
148
  }
149
 
150
  if ( !defined('POPMAKE_DB_VERSION') ) {
4
  * Plugin URI: https://wppopupmaker.com
5
  * Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
6
  * Author: Wizard Internet Solutions
7
+ * Version: 1.0.4
8
  * Author URI: http://wizardinternetsolutions.com
9
  * Text Domain: popup-maker
10
  *
144
  }
145
 
146
  if ( !defined('POPMAKE_VERSION') ) {
147
+ define('POPMAKE_VERSION', '1.0.4' );
148
  }
149
 
150
  if ( !defined('POPMAKE_DB_VERSION') ) {
readme.txt CHANGED
@@ -6,8 +6,8 @@ Donate link:
6
  Tags: popup,popups,modal,modals,popup form,form modal,conversion,conversions,dialog box
7
  Requires at least: 3.4
8
  Tested up to: 4.0.1
9
- Stable tag: 1.0.3
10
-
11
  License: GNU Version 2 or Any Later Version
12
  Easily turn users into cash using Popup Maker - the most versatile & expansive popup plugin for WordPress!
13
 
@@ -32,11 +32,11 @@ Use any of your forms from the most popular form plugins, out-of-the-box, inside
32
  * Use Popups Conditionally
33
  * Target specific users for your popups! Our Targeting Conditions feature allows you to tailor your popups to specific users by giving you the ability to use popups exactly where you want. Use [Auto Open](https://wppopupmaker.com/extensions/auto-open-popups?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Auto+Open "Auto Open Popups"), [Scroll Triggered](https://wppopupmaker.com/extensions/scroll-triggered-popups?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Scroll+Triggered "Scroll Triggered Popups") & [Exit Intent](https://wppopupmaker.com/extensions/exit-intent-popups?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Exit+Intent "Exit Intent Popups") Popup Extensions to enhance your popups' effectiveness.
34
  * One (1) Customizable Popup Theme
35
- * Customize every aspect of our default theme to match your needs from colors to Google Fonts. To differentiate your popup themes on your popups, you can create unlimited themes by upgrading to the [Unlimited Themes Extension](https://wppopupmaker.com/extensions/unlimited-themes?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Unlimited+Themes "Unlimited Popup Themes").
36
  * Popup Opening Animations
37
  * Our WordPress Popup Plugin gives your popup more power and allows you to customize how it pops up by choosing from several opening animations.
38
  * Complete Positioning and Size Control
39
- * Popup Maker offers you pixel perfect positioning settings to match your needs and fit your website perfectly from centered popups to anchored popups. Plus, choose from a grab bag full of responsive sizes ready to go, out-of-the-box, or customize your own popup size using 4 units of measurement: pixels, %, EM, and REM.
40
  * Theme Builder
41
  * Theme every element of your popups to blend perfectly into your site: Background Overlay, Popup Container, Close Button, Google Fonts & much more. All in all, customize your popup theme with over 60 options! Plus, don't be worried to go with the flow, you can easily revert to old saves with Revision History! Want more options? Get our [Advanced Theme Builder](https://wppopupmaker.com/extensions/advanced-theme-builder?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Advanced+Theme+Builder "Advanced Theme Builder")!
42
  * Scrollable Content
@@ -50,12 +50,14 @@ Use any of your forms from the most popular form plugins, out-of-the-box, inside
50
  * Exit Intent Popups (coming soon)
51
  * Auto Open Popups (coming soon)
52
  * Analytics (coming soon)
 
53
  * Forced Interaction (coming soon)
54
  * AJAX Login Modals (coming soon)
55
  * Scroll Triggered Popups (coming soon)
56
  * Age Verification Modals (coming soon)
57
  * Advanced Theme Builder (coming soon)
58
  * Unlimited Themes (coming soon)
 
59
 
60
  For more information, visit [Popup Maker](https://wppopupmaker.com?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Home+Page "WordPress Popup Maker")!
61
 
@@ -71,6 +73,13 @@ For more information, visit [Popup Maker](https://wppopupmaker.com?utm_source=Wo
71
 
72
  == Changelog ==
73
 
 
 
 
 
 
 
 
74
  = v1.0.3 =
75
  * Fixed bug with recursive filter.
76
  * Fixed bug caused by typo.
6
  Tags: popup,popups,modal,modals,popup form,form modal,conversion,conversions,dialog box
7
  Requires at least: 3.4
8
  Tested up to: 4.0.1
9
+ Stable tag: 1.0.4
10
+
11
  License: GNU Version 2 or Any Later Version
12
  Easily turn users into cash using Popup Maker - the most versatile & expansive popup plugin for WordPress!
13
 
32
  * Use Popups Conditionally
33
  * Target specific users for your popups! Our Targeting Conditions feature allows you to tailor your popups to specific users by giving you the ability to use popups exactly where you want. Use [Auto Open](https://wppopupmaker.com/extensions/auto-open-popups?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Auto+Open "Auto Open Popups"), [Scroll Triggered](https://wppopupmaker.com/extensions/scroll-triggered-popups?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Scroll+Triggered "Scroll Triggered Popups") & [Exit Intent](https://wppopupmaker.com/extensions/exit-intent-popups?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Exit+Intent "Exit Intent Popups") Popup Extensions to enhance your popups' effectiveness.
34
  * One (1) Customizable Popup Theme
35
+ * Customize every aspect of our default theme to match your needs - from colors to Google Fonts. To differentiate your popup themes on your popups, you can create unlimited themes by upgrading to the [Unlimited Themes Extension](https://wppopupmaker.com/extensions/unlimited-themes?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Unlimited+Themes "Unlimited Popup Themes").
36
  * Popup Opening Animations
37
  * Our WordPress Popup Plugin gives your popup more power and allows you to customize how it pops up by choosing from several opening animations.
38
  * Complete Positioning and Size Control
39
+ * Popup Maker offers you pixel perfect positioning settings to match your needs and fit your website perfectly - from centered popups to anchored popups. Plus, choose from a grab bag full of responsive sizes ready to go, out-of-the-box, or customize your own popup size using 4 units of measurement: pixels, %, EM, and REM.
40
  * Theme Builder
41
  * Theme every element of your popups to blend perfectly into your site: Background Overlay, Popup Container, Close Button, Google Fonts & much more. All in all, customize your popup theme with over 60 options! Plus, don't be worried to go with the flow, you can easily revert to old saves with Revision History! Want more options? Get our [Advanced Theme Builder](https://wppopupmaker.com/extensions/advanced-theme-builder?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Advanced+Theme+Builder "Advanced Theme Builder")!
42
  * Scrollable Content
50
  * Exit Intent Popups (coming soon)
51
  * Auto Open Popups (coming soon)
52
  * Analytics (coming soon)
53
+ * Advanced Targeting Conditions (coming soon)
54
  * Forced Interaction (coming soon)
55
  * AJAX Login Modals (coming soon)
56
  * Scroll Triggered Popups (coming soon)
57
  * Age Verification Modals (coming soon)
58
  * Advanced Theme Builder (coming soon)
59
  * Unlimited Themes (coming soon)
60
+ * Secure Idle User Logout (coming soon)
61
 
62
  For more information, visit [Popup Maker](https://wppopupmaker.com?utm_source=WordPress+Page&utm_medium=Text+Link&utm_campaign=Home+Page "WordPress Popup Maker")!
63
 
73
 
74
  == Changelog ==
75
 
76
+ = v1.0.4 =
77
+ * Admin UI Adjustments & Tweaks.
78
+ * Fixed bug in removing specific post types.
79
+ * Reformatted Code.
80
+ * Fixed incorrect variable.
81
+
82
+
83
  = v1.0.3 =
84
  * Fixed bug with recursive filter.
85
  * Fixed bug caused by typo.