Version Description
Download this release
Release Info
Developer | danieliser |
Plugin | Popup Maker – Popup Forms, Optins & More |
Version | 1.4.5 |
Comparing to | |
See all releases |
Code changes from version 1.4.4 to 1.4.5
- includes/admin/popups/class-metabox-conditions.php +1 -1
- includes/admin/popups/class-metabox-cookies.php +2 -2
- includes/admin/popups/class-metabox-triggers.php +2 -2
- includes/admin/upgrades/class-pum-admin-upgrade-routine-2.php +3 -3
- includes/admin/upgrades/class-pum-admin-upgrade-routine-3.php +2 -2
- includes/admin/upgrades/class-pum-admin-upgrade-routine-4.php +8 -8
- includes/admin/upgrades/class-pum-admin-upgrade-routine-5.php +3 -3
- includes/admin/upgrades/class-pum-admin-upgrade-routine-6.php +14 -14
- includes/admin/upgrades/class-pum-admin-upgrade-routine.php +1 -1
- includes/class-pum-activator.php +2 -2
- includes/class-pum-condition-callbacks.php +4 -4
- includes/class-pum.php +1 -1
- includes/scripts.php +11 -2
- languages/popup-maker.pot +10 -10
- popup-maker.php +2 -2
- readme.txt +18 -13
includes/admin/popups/class-metabox-conditions.php
CHANGED
@@ -50,7 +50,7 @@ class PUM_Popup_Conditions_Metabox {
|
|
50 |
<?php do_action( 'pum_popup_conditions_metabox_before', $post->ID ); ?>
|
51 |
|
52 |
<div id="pum-popup-conditions" class="pum-popup-conditions">
|
53 |
-
<?php
|
54 |
</div>
|
55 |
|
56 |
<?php do_action( 'pum_popup_conditions_metabox_after', $post->ID ); ?>
|
50 |
<?php do_action( 'pum_popup_conditions_metabox_before', $post->ID ); ?>
|
51 |
|
52 |
<div id="pum-popup-conditions" class="pum-popup-conditions">
|
53 |
+
<?php self::render_builder(); ?>
|
54 |
</div>
|
55 |
|
56 |
<?php do_action( 'pum_popup_conditions_metabox_after', $post->ID ); ?>
|
includes/admin/popups/class-metabox-cookies.php
CHANGED
@@ -69,7 +69,7 @@ class PUM_Popup_Cookies_Metabox {
|
|
69 |
continue;
|
70 |
}
|
71 |
$cookie = $cookies[ $values['event'] ];
|
72 |
-
|
73 |
'index' => esc_attr( $key ),
|
74 |
'event' => esc_attr( $values['event'] ),
|
75 |
'columns' => array(
|
@@ -126,7 +126,7 @@ class PUM_Popup_Cookies_Metabox {
|
|
126 |
return;
|
127 |
} ?>
|
128 |
<script type="text/template" id="pum_cookie_row_templ">
|
129 |
-
<?php
|
130 |
'index' => '<%= index %>',
|
131 |
'event' => '<%= event %>',
|
132 |
'columns' => array(
|
69 |
continue;
|
70 |
}
|
71 |
$cookie = $cookies[ $values['event'] ];
|
72 |
+
self::render_row( array(
|
73 |
'index' => esc_attr( $key ),
|
74 |
'event' => esc_attr( $values['event'] ),
|
75 |
'columns' => array(
|
126 |
return;
|
127 |
} ?>
|
128 |
<script type="text/template" id="pum_cookie_row_templ">
|
129 |
+
<?php self::render_row( array(
|
130 |
'index' => '<%= index %>',
|
131 |
'event' => '<%= event %>',
|
132 |
'columns' => array(
|
includes/admin/popups/class-metabox-triggers.php
CHANGED
@@ -70,7 +70,7 @@ class PUM_Popup_Triggers_Metabox {
|
|
70 |
continue;
|
71 |
}
|
72 |
$trigger = $triggers[ $values['type'] ];
|
73 |
-
|
74 |
'index' => esc_attr( $key ),
|
75 |
'type' => esc_attr( $values['type'] ),
|
76 |
'columns' => array(
|
@@ -127,7 +127,7 @@ class PUM_Popup_Triggers_Metabox {
|
|
127 |
return;
|
128 |
} ?>
|
129 |
<script type="text/template" id="pum_trigger_row_templ">
|
130 |
-
<?php
|
131 |
'index' => '<%= index %>',
|
132 |
'type' => '<%= type %>',
|
133 |
'columns' => array(
|
70 |
continue;
|
71 |
}
|
72 |
$trigger = $triggers[ $values['type'] ];
|
73 |
+
self::render_row( array(
|
74 |
'index' => esc_attr( $key ),
|
75 |
'type' => esc_attr( $values['type'] ),
|
76 |
'columns' => array(
|
127 |
return;
|
128 |
} ?>
|
129 |
<script type="text/template" id="pum_trigger_row_templ">
|
130 |
+
<?php self::render_row( array(
|
131 |
'index' => '<%= index %>',
|
132 |
'type' => '<%= type %>',
|
133 |
'columns' => array(
|
includes/admin/upgrades/class-pum-admin-upgrade-routine-2.php
CHANGED
@@ -38,9 +38,9 @@ final class PUM_Admin_Upgrade_Routine_2 extends PUM_Admin_Upgrade_Routine {
|
|
38 |
@set_time_limit( 0 );
|
39 |
}
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
}
|
45 |
|
46 |
public static function process_popups() {
|
38 |
@set_time_limit( 0 );
|
39 |
}
|
40 |
|
41 |
+
PUM_Admin_Upgrade_Routine_2::process_popups();
|
42 |
+
PUM_Admin_Upgrade_Routine_2::process_popup_themes();
|
43 |
+
PUM_Admin_Upgrade_Routine_2::cleanup_old_data();
|
44 |
}
|
45 |
|
46 |
public static function process_popups() {
|
includes/admin/upgrades/class-pum-admin-upgrade-routine-3.php
CHANGED
@@ -172,12 +172,12 @@ final class PUM_Admin_Upgrade_Routine_3 extends PUM_Admin_Upgrade_Routine {
|
|
172 |
|
173 |
if ( $completed < $total ) {
|
174 |
$upgrades->set_arg( 'completed', $completed );
|
175 |
-
|
176 |
}
|
177 |
|
178 |
}
|
179 |
|
180 |
-
|
181 |
|
182 |
}
|
183 |
}
|
172 |
|
173 |
if ( $completed < $total ) {
|
174 |
$upgrades->set_arg( 'completed', $completed );
|
175 |
+
PUM_Admin_Upgrade_Routine_3::next_step();
|
176 |
}
|
177 |
|
178 |
}
|
179 |
|
180 |
+
PUM_Admin_Upgrade_Routine_3::done();
|
181 |
|
182 |
}
|
183 |
}
|
includes/admin/upgrades/class-pum-admin-upgrade-routine-4.php
CHANGED
@@ -83,7 +83,7 @@ final class PUM_Admin_Upgrade_Routine_4 extends PUM_Admin_Upgrade_Routine {
|
|
83 |
if ( empty( $targeting_conditions ) ) {
|
84 |
if ( $popup->post_status == 'publish' ) {
|
85 |
// Default popups with no conditions to draft
|
86 |
-
|
87 |
}
|
88 |
update_post_meta( $popup->ID, 'popup_conditions', $conditions );
|
89 |
$completed ++;
|
@@ -95,12 +95,12 @@ final class PUM_Admin_Upgrade_Routine_4 extends PUM_Admin_Upgrade_Routine {
|
|
95 |
|
96 |
if ( array_key_exists( 'on_entire_site', $targeting_conditions ) ) {
|
97 |
$sitewide = true;
|
98 |
-
$targeting_conditions =
|
99 |
} else {
|
100 |
-
$targeting_conditions =
|
101 |
}
|
102 |
|
103 |
-
$targeting_conditions =
|
104 |
|
105 |
$_group = array();
|
106 |
|
@@ -139,12 +139,12 @@ final class PUM_Admin_Upgrade_Routine_4 extends PUM_Admin_Upgrade_Routine {
|
|
139 |
|
140 |
if ( $completed < $total ) {
|
141 |
$upgrades->set_arg( 'completed', $completed );
|
142 |
-
|
143 |
}
|
144 |
|
145 |
}
|
146 |
|
147 |
-
|
148 |
}
|
149 |
|
150 |
/**
|
@@ -203,7 +203,7 @@ final class PUM_Admin_Upgrade_Routine_4 extends PUM_Admin_Upgrade_Routine {
|
|
203 |
}
|
204 |
|
205 |
foreach ( get_post_types( array( 'public' => true ), 'objects' ) as $name => $post_type ) {
|
206 |
-
$pt_conditions =
|
207 |
|
208 |
if ( empty( $pt_conditions ) ) {
|
209 |
continue;
|
@@ -239,7 +239,7 @@ final class PUM_Admin_Upgrade_Routine_4 extends PUM_Admin_Upgrade_Routine {
|
|
239 |
|
240 |
foreach ( get_taxonomies( array( 'public' => true ), 'objects' ) as $tax_name => $taxonomy ) {
|
241 |
|
242 |
-
$tax_conditions =
|
243 |
|
244 |
if ( empty( $tax_conditions ) ) {
|
245 |
continue;
|
83 |
if ( empty( $targeting_conditions ) ) {
|
84 |
if ( $popup->post_status == 'publish' ) {
|
85 |
// Default popups with no conditions to draft
|
86 |
+
PUM_Admin_Upgrade_Routine_4::change_post_status( $popup->ID, 'draft' );
|
87 |
}
|
88 |
update_post_meta( $popup->ID, 'popup_conditions', $conditions );
|
89 |
$completed ++;
|
95 |
|
96 |
if ( array_key_exists( 'on_entire_site', $targeting_conditions ) ) {
|
97 |
$sitewide = true;
|
98 |
+
$targeting_conditions = PUM_Admin_Upgrade_Routine_4::filter_excludes( $targeting_conditions );
|
99 |
} else {
|
100 |
+
$targeting_conditions = PUM_Admin_Upgrade_Routine_4::filter_includes( $targeting_conditions );
|
101 |
}
|
102 |
|
103 |
+
$targeting_conditions = PUM_Admin_Upgrade_Routine_4::parse_conditions( $targeting_conditions );
|
104 |
|
105 |
$_group = array();
|
106 |
|
139 |
|
140 |
if ( $completed < $total ) {
|
141 |
$upgrades->set_arg( 'completed', $completed );
|
142 |
+
PUM_Admin_Upgrade_Routine_4::next_step();
|
143 |
}
|
144 |
|
145 |
}
|
146 |
|
147 |
+
PUM_Admin_Upgrade_Routine_4::done();
|
148 |
}
|
149 |
|
150 |
/**
|
203 |
}
|
204 |
|
205 |
foreach ( get_post_types( array( 'public' => true ), 'objects' ) as $name => $post_type ) {
|
206 |
+
$pt_conditions = PUM_Admin_Upgrade_Routine_4::filter_conditions( $targeting_conditions, '_' . $name );
|
207 |
|
208 |
if ( empty( $pt_conditions ) ) {
|
209 |
continue;
|
239 |
|
240 |
foreach ( get_taxonomies( array( 'public' => true ), 'objects' ) as $tax_name => $taxonomy ) {
|
241 |
|
242 |
+
$tax_conditions = PUM_Admin_Upgrade_Routine_4::filter_conditions( $targeting_conditions, '_' . $tax_name );
|
243 |
|
244 |
if ( empty( $tax_conditions ) ) {
|
245 |
continue;
|
includes/admin/upgrades/class-pum-admin-upgrade-routine-5.php
CHANGED
@@ -73,14 +73,14 @@ final class PUM_Admin_Upgrade_Routine_5 extends PUM_Admin_Upgrade_Routine {
|
|
73 |
/**
|
74 |
* Initialize the popup meta values for core analytics.
|
75 |
*/
|
76 |
-
|
77 |
|
78 |
$completed ++;
|
79 |
}
|
80 |
|
81 |
if ( $completed < $total ) {
|
82 |
$upgrades->set_arg( 'completed', $completed );
|
83 |
-
|
84 |
}
|
85 |
|
86 |
}
|
@@ -108,7 +108,7 @@ final class PUM_Admin_Upgrade_Routine_5 extends PUM_Admin_Upgrade_Routine {
|
|
108 |
update_site_option( 'pum_total_conversion_count', $total_conversion_count );
|
109 |
*/
|
110 |
|
111 |
-
|
112 |
}
|
113 |
|
114 |
/**
|
73 |
/**
|
74 |
* Initialize the popup meta values for core analytics.
|
75 |
*/
|
76 |
+
PUM_Admin_Upgrade_Routine_5::initialize_analytics( $popup->ID );
|
77 |
|
78 |
$completed ++;
|
79 |
}
|
80 |
|
81 |
if ( $completed < $total ) {
|
82 |
$upgrades->set_arg( 'completed', $completed );
|
83 |
+
PUM_Admin_Upgrade_Routine_5::next_step();
|
84 |
}
|
85 |
|
86 |
}
|
108 |
update_site_option( 'pum_total_conversion_count', $total_conversion_count );
|
109 |
*/
|
110 |
|
111 |
+
PUM_Admin_Upgrade_Routine_5::done();
|
112 |
}
|
113 |
|
114 |
/**
|
includes/admin/upgrades/class-pum-admin-upgrade-routine-6.php
CHANGED
@@ -84,24 +84,24 @@ final class PUM_Admin_Upgrade_Routine_6 extends PUM_Admin_Upgrade_Routine {
|
|
84 |
) );
|
85 |
$popups = $popups->get_popups();
|
86 |
|
87 |
-
|
88 |
|
89 |
// Delete All old meta keys.
|
90 |
-
|
91 |
|
92 |
// Delete All orphaned meta keys.
|
93 |
-
|
94 |
|
95 |
-
|
96 |
|
97 |
if ( $popups ) {
|
98 |
|
99 |
foreach ( $popups as $popup ) {
|
100 |
|
101 |
// Check that each popup has a valid theme id
|
102 |
-
if ( ! array_key_exists( $popup->get_theme_id(),
|
103 |
// Set a valid theme.
|
104 |
-
update_post_meta( $popup->ID, 'popup_theme',
|
105 |
}
|
106 |
|
107 |
$completed ++;
|
@@ -109,31 +109,31 @@ final class PUM_Admin_Upgrade_Routine_6 extends PUM_Admin_Upgrade_Routine {
|
|
109 |
|
110 |
if ( $completed < $total ) {
|
111 |
$upgrades->set_arg( 'completed', $completed );
|
112 |
-
|
113 |
}
|
114 |
|
115 |
}
|
116 |
|
117 |
-
|
118 |
}
|
119 |
|
120 |
/**
|
121 |
* Create a list of valid popup themes.
|
122 |
*/
|
123 |
public static function setup_valid_themes() {
|
124 |
-
|
125 |
|
126 |
foreach ( popmake_get_all_popup_themes() as $theme ) {
|
127 |
-
|
128 |
if ( popmake_get_default_popup_theme() == $theme->ID ) {
|
129 |
-
|
130 |
}
|
131 |
}
|
132 |
|
133 |
|
134 |
-
if ( !
|
135 |
-
reset(
|
136 |
-
|
137 |
}
|
138 |
}
|
139 |
|
84 |
) );
|
85 |
$popups = $popups->get_popups();
|
86 |
|
87 |
+
PUM_Admin_Upgrade_Routine_6::setup_valid_themes();
|
88 |
|
89 |
// Delete All old meta keys.
|
90 |
+
PUM_Admin_Upgrade_Routine_6::delete_all_old_meta_keys();
|
91 |
|
92 |
// Delete All orphaned meta keys.
|
93 |
+
PUM_Admin_Upgrade_Routine_6::delete_all_orphaned_meta_keys();
|
94 |
|
95 |
+
PUM_Admin_Upgrade_Routine_6::process_popup_cats_tags();
|
96 |
|
97 |
if ( $popups ) {
|
98 |
|
99 |
foreach ( $popups as $popup ) {
|
100 |
|
101 |
// Check that each popup has a valid theme id
|
102 |
+
if ( ! array_key_exists( $popup->get_theme_id(), PUM_Admin_Upgrade_Routine_6::$valid_themes ) ) {
|
103 |
// Set a valid theme.
|
104 |
+
update_post_meta( $popup->ID, 'popup_theme', PUM_Admin_Upgrade_Routine_6::$default_theme );
|
105 |
}
|
106 |
|
107 |
$completed ++;
|
109 |
|
110 |
if ( $completed < $total ) {
|
111 |
$upgrades->set_arg( 'completed', $completed );
|
112 |
+
PUM_Admin_Upgrade_Routine_6::next_step();
|
113 |
}
|
114 |
|
115 |
}
|
116 |
|
117 |
+
PUM_Admin_Upgrade_Routine_6::done();
|
118 |
}
|
119 |
|
120 |
/**
|
121 |
* Create a list of valid popup themes.
|
122 |
*/
|
123 |
public static function setup_valid_themes() {
|
124 |
+
PUM_Admin_Upgrade_Routine_6::$valid_themes = array();
|
125 |
|
126 |
foreach ( popmake_get_all_popup_themes() as $theme ) {
|
127 |
+
PUM_Admin_Upgrade_Routine_6::$valid_themes[ $theme->ID ] = $theme;
|
128 |
if ( popmake_get_default_popup_theme() == $theme->ID ) {
|
129 |
+
PUM_Admin_Upgrade_Routine_6::$default_theme = $theme->ID;
|
130 |
}
|
131 |
}
|
132 |
|
133 |
|
134 |
+
if ( ! PUM_Admin_Upgrade_Routine_6::$default_theme ) {
|
135 |
+
reset( PUM_Admin_Upgrade_Routine_6::$valid_themes );
|
136 |
+
PUM_Admin_Upgrade_Routine_6::$default_theme = PUM_Admin_Upgrade_Routine_6::$valid_themes[ key( PUM_Admin_Upgrade_Routine_6::$valid_themes ) ]->ID;
|
137 |
}
|
138 |
}
|
139 |
|
includes/admin/upgrades/class-pum-admin-upgrade-routine.php
CHANGED
@@ -63,7 +63,7 @@ class PUM_Admin_Upgrade_Routine {
|
|
63 |
exit;
|
64 |
} else {
|
65 |
$redirect = add_query_arg( $upgrades->get_args(), admin_url() );
|
66 |
-
|
67 |
}
|
68 |
|
69 |
}
|
63 |
exit;
|
64 |
} else {
|
65 |
$redirect = add_query_arg( $upgrades->get_args(), admin_url() );
|
66 |
+
PUM_Admin_Upgrade_Routine::redirect( $redirect );
|
67 |
}
|
68 |
|
69 |
}
|
includes/class-pum-activator.php
CHANGED
@@ -57,7 +57,7 @@ class PUM_Activator {
|
|
57 |
foreach ( $blog_ids as $blog_id ) {
|
58 |
switch_to_blog( $blog_id );
|
59 |
|
60 |
-
|
61 |
|
62 |
$activated[] = $blog_id;
|
63 |
}
|
@@ -78,7 +78,7 @@ class PUM_Activator {
|
|
78 |
|
79 |
// Running on a single blog
|
80 |
|
81 |
-
|
82 |
|
83 |
// Bail if activating from network, or bulk
|
84 |
if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) {
|
57 |
foreach ( $blog_ids as $blog_id ) {
|
58 |
switch_to_blog( $blog_id );
|
59 |
|
60 |
+
self::activate_site();
|
61 |
|
62 |
$activated[] = $blog_id;
|
63 |
}
|
78 |
|
79 |
// Running on a single blog
|
80 |
|
81 |
+
self::activate_site();
|
82 |
|
83 |
// Bail if activating from network, or bulk
|
84 |
if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) {
|
includes/class-pum-condition-callbacks.php
CHANGED
@@ -44,9 +44,9 @@ class PUM_Condition_Callbacks {
|
|
44 |
public static function taxonomy( $settings = array() ) {
|
45 |
|
46 |
if ( strpos( $settings['target'], 'tax_category' ) !== false ) {
|
47 |
-
return
|
48 |
} elseif ( strpos( $settings['target'], 'tax_post_tag' ) !== false ) {
|
49 |
-
return
|
50 |
}
|
51 |
|
52 |
$taxonomy = str_replace( array( 'tax_', '_all', '_selected' ), array( '', '', '' ), $settings['target'] );
|
@@ -130,9 +130,9 @@ class PUM_Condition_Callbacks {
|
|
130 |
public static function post_type_tax( $settings = array() ) {
|
131 |
|
132 |
if ( strpos( $settings['target'], '_w_category' ) !== false || strpos( $settings['target'], '_wp_category' ) !== false ) {
|
133 |
-
return
|
134 |
} elseif ( strpos( $settings['target'], '_w_post_tag' ) !== false || strpos( $settings['target'], '_wp_post_tag' ) !== false ) {
|
135 |
-
return
|
136 |
}
|
137 |
|
138 |
if ( strpos( $settings['target'], '_w_' ) ) {
|
44 |
public static function taxonomy( $settings = array() ) {
|
45 |
|
46 |
if ( strpos( $settings['target'], 'tax_category' ) !== false ) {
|
47 |
+
return self::category( $settings );
|
48 |
} elseif ( strpos( $settings['target'], 'tax_post_tag' ) !== false ) {
|
49 |
+
return self::post_tag( $settings );
|
50 |
}
|
51 |
|
52 |
$taxonomy = str_replace( array( 'tax_', '_all', '_selected' ), array( '', '', '' ), $settings['target'] );
|
130 |
public static function post_type_tax( $settings = array() ) {
|
131 |
|
132 |
if ( strpos( $settings['target'], '_w_category' ) !== false || strpos( $settings['target'], '_wp_category' ) !== false ) {
|
133 |
+
return self::post_type_category( $settings );
|
134 |
} elseif ( strpos( $settings['target'], '_w_post_tag' ) !== false || strpos( $settings['target'], '_wp_post_tag' ) !== false ) {
|
135 |
+
return self::post_type_tag( $settings );
|
136 |
}
|
137 |
|
138 |
if ( strpos( $settings['target'], '_w_' ) ) {
|
includes/class-pum.php
CHANGED
@@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
7 |
|
8 |
class PUM {
|
9 |
|
10 |
-
const VER = '1.4.
|
11 |
|
12 |
const DB_VER = 6;
|
13 |
|
7 |
|
8 |
class PUM {
|
9 |
|
10 |
+
const VER = '1.4.5';
|
11 |
|
12 |
const DB_VER = 6;
|
13 |
|
includes/scripts.php
CHANGED
@@ -178,7 +178,12 @@ function popmake_load_admin_scripts( $hook ) {
|
|
178 |
|
179 |
if ( popmake_is_admin_page() || in_array( $hook, array( 'post.php', 'edit.php' ) ) || ( defined( "PUM_FORCE_ADMIN_SCRIPTS_LOAD" ) && PUM_FORCE_ADMIN_SCRIPTS_LOAD ) ) {
|
180 |
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
182 |
|
183 |
wp_enqueue_script( 'popup-maker-admin', $dep_js_dir . 'admin' . $suffix, array(
|
184 |
'jquery',
|
@@ -255,7 +260,11 @@ function popmake_load_admin_styles( $hook ) {
|
|
255 |
if ( popmake_is_admin_page() || in_array( $hook, array( 'post.php', 'edit.php' ) ) || ( defined( "PUM_FORCE_ADMIN_SCRIPTS_LOAD" ) && PUM_FORCE_ADMIN_SCRIPTS_LOAD ) ) {
|
256 |
|
257 |
|
258 |
-
|
|
|
|
|
|
|
|
|
259 |
|
260 |
wp_enqueue_style( 'wp-color-picker' );
|
261 |
wp_enqueue_style( 'popup-maker-admin', $dep_css_dir . 'admin' . $suffix, false, POPMAKE_VERSION );
|
178 |
|
179 |
if ( popmake_is_admin_page() || in_array( $hook, array( 'post.php', 'edit.php' ) ) || ( defined( "PUM_FORCE_ADMIN_SCRIPTS_LOAD" ) && PUM_FORCE_ADMIN_SCRIPTS_LOAD ) ) {
|
180 |
|
181 |
+
// Deregister older versions, loaded by Types, Advanced Custom Fields etc.
|
182 |
+
if ( wp_script_is( 'select2', 'registered' ) ) {
|
183 |
+
wp_deregister_script( 'select2' );
|
184 |
+
}
|
185 |
+
|
186 |
+
wp_register_script( 'select2', $js_dir . 'select2.full' . $suffix, array( 'jquery' ), '4.0.1' );
|
187 |
|
188 |
wp_enqueue_script( 'popup-maker-admin', $dep_js_dir . 'admin' . $suffix, array(
|
189 |
'jquery',
|
260 |
if ( popmake_is_admin_page() || in_array( $hook, array( 'post.php', 'edit.php' ) ) || ( defined( "PUM_FORCE_ADMIN_SCRIPTS_LOAD" ) && PUM_FORCE_ADMIN_SCRIPTS_LOAD ) ) {
|
261 |
|
262 |
|
263 |
+
if ( wp_style_is( 'select2', 'registered' ) ) {
|
264 |
+
wp_deregister_style( 'select2' );
|
265 |
+
}
|
266 |
+
|
267 |
+
wp_enqueue_style( 'select2', $css_dir . 'select2' . $suffix, array(), '4.0.1' );
|
268 |
|
269 |
wp_enqueue_style( 'wp-color-picker' );
|
270 |
wp_enqueue_style( 'popup-maker-admin', $dep_css_dir . 'admin' . $suffix, false, POPMAKE_VERSION );
|
languages/popup-maker.pot
CHANGED
@@ -76,11 +76,11 @@ msgstr ""
|
|
76 |
msgid "A Popup Preview"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: includes/admin/class-pum-admin-helpers.php:14, includes/scripts.php:
|
80 |
msgid "Cancel"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: includes/admin/class-pum-admin-helpers.php:16, includes/scripts.php:
|
84 |
msgid "Add"
|
85 |
msgstr ""
|
86 |
|
@@ -794,7 +794,7 @@ msgstr ""
|
|
794 |
msgid "Popup Maker Settings"
|
795 |
msgstr ""
|
796 |
|
797 |
-
#: includes/admin/settings/settings-page.php:52, includes/admin/settings/settings-page.php:58, includes/admin/tools/tools-page.php:54, includes/admin/tools/tools-page.php:61, includes/scripts.php:
|
798 |
msgid "Save"
|
799 |
msgstr ""
|
800 |
|
@@ -1562,7 +1562,7 @@ msgstr ""
|
|
1562 |
msgid "REM"
|
1563 |
msgstr ""
|
1564 |
|
1565 |
-
#: includes/input-options.php:26, includes/input-options.php:115, includes/scripts.php:
|
1566 |
msgid "None"
|
1567 |
msgstr ""
|
1568 |
|
@@ -2162,27 +2162,27 @@ msgstr ""
|
|
2162 |
msgid "Powered By Popup Maker"
|
2163 |
msgstr ""
|
2164 |
|
2165 |
-
#: includes/scripts.php:
|
2166 |
msgid "Update"
|
2167 |
msgstr ""
|
2168 |
|
2169 |
-
#: includes/scripts.php:
|
2170 |
msgid "Insert"
|
2171 |
msgstr ""
|
2172 |
|
2173 |
-
#: includes/scripts.php:
|
2174 |
msgid "Popup Maker Shortcodes"
|
2175 |
msgstr ""
|
2176 |
|
2177 |
-
#: includes/scripts.php:
|
2178 |
msgid "Are you sure you want to delete this trigger?"
|
2179 |
msgstr ""
|
2180 |
|
2181 |
-
#: includes/scripts.php:
|
2182 |
msgid "Are you sure you want to delete this cookie?"
|
2183 |
msgstr ""
|
2184 |
|
2185 |
-
#: includes/scripts.php:
|
2186 |
msgid "Are you sure you want to reset the open count?"
|
2187 |
msgstr ""
|
2188 |
|
76 |
msgid "A Popup Preview"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: includes/admin/class-pum-admin-helpers.php:14, includes/scripts.php:206
|
80 |
msgid "Cancel"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: includes/admin/class-pum-admin-helpers.php:16, includes/scripts.php:202
|
84 |
msgid "Add"
|
85 |
msgstr ""
|
86 |
|
794 |
msgid "Popup Maker Settings"
|
795 |
msgstr ""
|
796 |
|
797 |
+
#: includes/admin/settings/settings-page.php:52, includes/admin/settings/settings-page.php:58, includes/admin/tools/tools-page.php:54, includes/admin/tools/tools-page.php:61, includes/scripts.php:203
|
798 |
msgid "Save"
|
799 |
msgstr ""
|
800 |
|
1562 |
msgid "REM"
|
1563 |
msgstr ""
|
1564 |
|
1565 |
+
#: includes/input-options.php:26, includes/input-options.php:115, includes/scripts.php:214
|
1566 |
msgid "None"
|
1567 |
msgstr ""
|
1568 |
|
2162 |
msgid "Powered By Popup Maker"
|
2163 |
msgstr ""
|
2164 |
|
2165 |
+
#: includes/scripts.php:204
|
2166 |
msgid "Update"
|
2167 |
msgstr ""
|
2168 |
|
2169 |
+
#: includes/scripts.php:205
|
2170 |
msgid "Insert"
|
2171 |
msgstr ""
|
2172 |
|
2173 |
+
#: includes/scripts.php:207
|
2174 |
msgid "Popup Maker Shortcodes"
|
2175 |
msgstr ""
|
2176 |
|
2177 |
+
#: includes/scripts.php:208
|
2178 |
msgid "Are you sure you want to delete this trigger?"
|
2179 |
msgstr ""
|
2180 |
|
2181 |
+
#: includes/scripts.php:209
|
2182 |
msgid "Are you sure you want to delete this cookie?"
|
2183 |
msgstr ""
|
2184 |
|
2185 |
+
#: includes/scripts.php:215
|
2186 |
msgid "Are you sure you want to reset the open count?"
|
2187 |
msgstr ""
|
2188 |
|
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: WP Popup Maker
|
7 |
-
* Version: 1.4.
|
8 |
* Author URI: https://wppopupmaker.com/
|
9 |
* Text Domain: popup-maker
|
10 |
*
|
@@ -144,7 +144,7 @@ if ( ! class_exists( 'Popup_Maker' ) ) :
|
|
144 |
}
|
145 |
|
146 |
if ( ! defined( 'POPMAKE_VERSION' ) ) {
|
147 |
-
define( 'POPMAKE_VERSION', '1.4.
|
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: WP Popup Maker
|
7 |
+
* Version: 1.4.5
|
8 |
* Author URI: https://wppopupmaker.com/
|
9 |
* Text Domain: popup-maker
|
10 |
*
|
144 |
}
|
145 |
|
146 |
if ( ! defined( 'POPMAKE_VERSION' ) ) {
|
147 |
+
define( 'POPMAKE_VERSION', '1.4.5' );
|
148 |
}
|
149 |
|
150 |
if ( ! defined( 'POPMAKE_DB_VERSION' ) ) {
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Donate link:
|
|
6 |
Tags: responsive popup, promotion, popover, pop-up, pop over, marketing, lightbox, advertising, conversion, modal, popup, popups
|
7 |
Requires at least: 3.4
|
8 |
Tested up to: 4.5
|
9 |
-
Stable tag: 1.4.
|
10 |
License: GNU Version 3 or Any Later Version
|
11 |
|
12 |
Easily create attractive popups with no coding skills. Customize nearly every aspect of your popups, from theme & position, to targeting & cookies.
|
@@ -22,30 +22,31 @@ It is both a complete popup solution and a powerful, extendable framework.
|
|
22 |
Follow this plugin on [GitHub](https://github.com/PopupMaker/Popup-Maker).
|
23 |
|
24 |
Features of Popup Maker include:
|
|
|
25 |
* Unlimited Popups & Popup Themes
|
26 |
* Add shortcodes, HTML optin forms or any other content you can think of.
|
27 |
* Targeting conditions allow you to show a popup on one page or all pages of your site for precise targeting, others available as extensions.
|
28 |
* Customize the look of your popups with no coding required.
|
29 |
-
|
30 |
-
|
31 |
* Triggers allow you to open your popups in various ways.
|
32 |
-
|
33 |
-
|
34 |
* Click triggers allow you to open popups from your anything on the page that the user can click.
|
35 |
-
|
36 |
* Cookies can be set up to trigger on many types of events.
|
37 |
-
|
38 |
* Customize how & where your popup is displayed.
|
39 |
-
|
40 |
-
|
41 |
* Responsive popup sizes will make your popups resize automatically with users screen size.
|
42 |
-
|
43 |
* Easy Shortcode builder with visual previews in the editor.
|
44 |
* Additional functionality available via growing library of extensions.
|
45 |
* Developer friendly with dozens of actions and filters.
|
46 |
-
|
47 |
* Too many features to list here. Limitless potential.
|
48 |
-
|
49 |
|
50 |
If you like the plugin and/or support [please rate & review](https://wppopupmaker.com/rate-us?utm_source=WordPress+Page&utm_medium=Review+Link&utm_campaign=Review+It) it!
|
51 |
|
@@ -115,8 +116,12 @@ There are several common causes for this which include:
|
|
115 |
|
116 |
== Changelog ==
|
117 |
|
|
|
|
|
|
|
|
|
118 |
= v1.4.4 - 4/20/2016 =
|
119 |
-
* Version Bump to fix upgrade issues.
|
120 |
|
121 |
= v1.4.3 - 4/20/2016 =
|
122 |
* Fix: Removed extra whitespace before opening php tags.
|
6 |
Tags: responsive popup, promotion, popover, pop-up, pop over, marketing, lightbox, advertising, conversion, modal, popup, popups
|
7 |
Requires at least: 3.4
|
8 |
Tested up to: 4.5
|
9 |
+
Stable tag: 1.4.5
|
10 |
License: GNU Version 3 or Any Later Version
|
11 |
|
12 |
Easily create attractive popups with no coding skills. Customize nearly every aspect of your popups, from theme & position, to targeting & cookies.
|
22 |
Follow this plugin on [GitHub](https://github.com/PopupMaker/Popup-Maker).
|
23 |
|
24 |
Features of Popup Maker include:
|
25 |
+
|
26 |
* Unlimited Popups & Popup Themes
|
27 |
* Add shortcodes, HTML optin forms or any other content you can think of.
|
28 |
* Targeting conditions allow you to show a popup on one page or all pages of your site for precise targeting, others available as extensions.
|
29 |
* Customize the look of your popups with no coding required.
|
30 |
+
- Use Google Fonts, color pickers & sliders to customize every aspect of the popup, overlay & close buttons.
|
31 |
+
- Over 60 settings available.
|
32 |
* Triggers allow you to open your popups in various ways.
|
33 |
+
- Click triggers & Auto Open / Time Delay are included.
|
34 |
+
- [Exit Intent](https://wppopupmaker.com/extensions/exit-intent-popups/?utm_source=WordPress+Page&utm_medium=Features+Link&utm_campaign=Exit+Intent "Exit Intent Popups"), Scroll & others available as [extensions](https://wppopupmaker.com/extensions/?utm_source=WordPress+Page&utm_medium=Features+Link&utm_campaign=Other+Triggers+Available).
|
35 |
* Click triggers allow you to open popups from your anything on the page that the user can click.
|
36 |
+
- Trigger popups from menus, sidebars, text content, buttons, images or any other element using CSS selectors.
|
37 |
* Cookies can be set up to trigger on many types of events.
|
38 |
+
- Set your cookies when the popup opens, when the user closes it or even using JS.
|
39 |
* Customize how & where your popup is displayed.
|
40 |
+
- Size, position & animation are easily customized to suite your needs.
|
41 |
+
- Easily make slide outs in the bottom corner or top banner bars.
|
42 |
* Responsive popup sizes will make your popups resize automatically with users screen size.
|
43 |
+
- Great for use with content & themes that are responsive.
|
44 |
* Easy Shortcode builder with visual previews in the editor.
|
45 |
* Additional functionality available via growing library of extensions.
|
46 |
* Developer friendly with dozens of actions and filters.
|
47 |
+
- Hooks, filters and a full JavaScript events API you can take basic popups to a new level.
|
48 |
* Too many features to list here. Limitless potential.
|
49 |
+
- If you can't figure out how to get the functionality your after, ask us we will be glad to help.
|
50 |
|
51 |
If you like the plugin and/or support [please rate & review](https://wppopupmaker.com/rate-us?utm_source=WordPress+Page&utm_medium=Review+Link&utm_campaign=Review+It) it!
|
52 |
|
116 |
|
117 |
== Changelog ==
|
118 |
|
119 |
+
= v1.4.5 - 4/21/2016 =
|
120 |
+
* Fix: Replaced all usage of static:: for PHP 5.2 compatiblity.
|
121 |
+
* Fix: Forced the latest version of Select2 to load on Popup Maker admin pages in the case that an older version was enqueued.
|
122 |
+
|
123 |
= v1.4.4 - 4/20/2016 =
|
124 |
+
* Fix: Version Bump to fix upgrade issues.
|
125 |
|
126 |
= v1.4.3 - 4/20/2016 =
|
127 |
* Fix: Removed extra whitespace before opening php tags.
|