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

Version Description

Download this release

Release Info

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

Code changes from version 1.8.13 to 1.8.14

CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  ### v1.8.13 - 10/11/2019
2
  * Tweak: Added cap check to ensure only authorized users can access support debug text file. @Credit goes to Ilias Dimopoulos from Neurosoft S.A , RedyOps Team.
3
 
1
+ ### Unreleased Changes
2
+
3
+ ### v1.8.14 - 10/24/2019
4
+ * Improvement: Updated nav menu editor walker class for adding custom fields to further improve compatibility.
5
+ * Fix: Ninja Forms popup actions missing.
6
+
7
  ### v1.8.13 - 10/11/2019
8
  * Tweak: Added cap check to ensure only authorized users can access support debug text file. @Credit goes to Ilias Dimopoulos from Neurosoft S.A , RedyOps Team.
9
 
includes/integrations/class-pum-ninja-forms.php CHANGED
@@ -46,46 +46,31 @@ final class NF_PUM {
46
  */
47
  public static function instance() {
48
  if ( ! isset( self::$instance ) && ! ( self::$instance instanceof NF_PUM ) ) {
 
 
49
  self::$instance = new NF_PUM();
50
 
51
  self::$dir = plugin_dir_path( __FILE__ );
52
 
53
  self::$url = plugin_dir_url( __FILE__ );
54
-
55
- /*
56
- * Register our autoloader
57
- */
58
- spl_autoload_register( array( self::$instance, 'autoloader' ) );
59
  }
60
 
61
  return self::$instance;
62
  }
63
 
64
  public function __construct() {
65
- add_filter( 'ninja_forms_register_fields', array( $this, 'register_fields' ) );
66
-
67
- add_filter( 'ninja_forms_register_actions', array( $this, 'register_actions' ) );
68
-
69
  add_filter( 'pum_registered_cookies', array( $this, 'register_cookies' ) );
70
  }
71
 
72
  /**
73
- * Optional. If your extension creates a new field interaction or display template...
74
- */
75
- public function register_fields( $actions ) {
76
- //$actions['popup-maker'] = new NF_PUM_Fields_PUMExample();
77
-
78
- return $actions;
79
- }
80
-
81
- /**
82
- * Optional. If your extension processes or alters form submission data on a per form basis...
83
  */
84
- public function register_actions( $actions ) {
85
- $actions['closepopup'] = new NF_PUM_Actions_ClosePopup();
86
- $actions['openpopup'] = new NF_PUM_Actions_OpenPopup();
87
-
88
- return $actions;
89
  }
90
 
91
 
@@ -109,7 +94,7 @@ final class NF_PUM {
109
  * Optional methods for convenience.
110
  */
111
 
112
- public function autoloader( $class_name ) {
113
  if ( class_exists( $class_name ) ) {
114
  return;
115
  }
@@ -170,7 +155,7 @@ function NF_PUM() {
170
  }
171
 
172
  /**
173
- *
174
  */
175
  function pum_nf_should_init() {
176
  if ( ! class_exists( 'Ninja_Forms' ) ) {
46
  */
47
  public static function instance() {
48
  if ( ! isset( self::$instance ) && ! ( self::$instance instanceof NF_PUM ) ) {
49
+ spl_autoload_register( array( __CLASS__, 'autoloader' ) );
50
+
51
  self::$instance = new NF_PUM();
52
 
53
  self::$dir = plugin_dir_path( __FILE__ );
54
 
55
  self::$url = plugin_dir_url( __FILE__ );
 
 
 
 
 
56
  }
57
 
58
  return self::$instance;
59
  }
60
 
61
  public function __construct() {
62
+ $this->register_actions();
 
 
 
63
  add_filter( 'pum_registered_cookies', array( $this, 'register_cookies' ) );
64
  }
65
 
66
  /**
67
+ * Register Actions
68
+ *
69
+ * Register custom form actions to integrate with popups.
 
 
 
 
 
 
 
70
  */
71
+ public function register_actions() {
72
+ Ninja_Forms()->actions['closepopup'] = new NF_PUM_Actions_ClosePopup();
73
+ Ninja_Forms()->actions['openpopup'] = new NF_PUM_Actions_OpenPopup();
 
 
74
  }
75
 
76
 
94
  * Optional methods for convenience.
95
  */
96
 
97
+ public static function autoloader( $class_name ) {
98
  if ( class_exists( $class_name ) ) {
99
  return;
100
  }
155
  }
156
 
157
  /**
158
+ *
159
  */
160
  function pum_nf_should_init() {
161
  if ( ! class_exists( 'Ninja_Forms' ) ) {
includes/integrations/ninja-forms/Actions/OpenPopup.php CHANGED
@@ -42,7 +42,7 @@ final class NF_PUM_Actions_OpenPopup extends NF_Abstracts_Action
42
  'label' => __( 'Popup ID', 'popup-maker' ),
43
  'placeholder' => '',
44
  'width' => 'full',
45
- 'options' => $this->get_popup_list(),
46
  ),
47
  );
48
 
42
  'label' => __( 'Popup ID', 'popup-maker' ),
43
  'placeholder' => '',
44
  'width' => 'full',
45
+ 'options' => isset( $_GET['page'] ) && 'ninja-forms' === $_GET['page'] && ! empty( $_GET['form_id'] ) ? $this->get_popup_list() : array(),
46
  ),
47
  );
48
 
includes/modules/menus/class-nav-menu-edit-custom-fields.php CHANGED
@@ -38,8 +38,9 @@ class Walker_Nav_Menu_Edit_Custom_Fields extends Walker_Nav_Menu_Edit {
38
  */
39
  public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
40
  $item_output = '';
41
- parent::start_el( $item_output, $item, $depth, $args, $id = 0 );
42
- $output .= preg_replace( '/(<p[^>]+class="[^"]*field-description(?:.|\n)*?<\/p>)/', "$1 \r\n " . $this->get_custom_fields( $item, $depth, $args ), $item_output, 1 );
 
43
  }
44
 
45
 
38
  */
39
  public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
40
  $item_output = '';
41
+ $output .= parent::start_el( $item_output, $item, $depth, $args, $id );
42
+ // NOTE: Check this regex on major WP version updates!
43
+ $output .= preg_replace( '/(?=<fieldset[^>]+class="[^"]*field-move)/', $this->get_custom_fields( $item, $depth, $args ), $item_output );
44
  }
45
 
46
 
languages/popup-maker.pot CHANGED
@@ -2707,7 +2707,7 @@ msgstr ""
2707
  msgid "Gravity Form Success"
2708
  msgstr ""
2709
 
2710
- #: includes/integrations/class-pum-ninja-forms.php:98
2711
  msgid "Ninja Form Success"
2712
  msgstr ""
2713
 
2707
  msgid "Gravity Form Success"
2708
  msgstr ""
2709
 
2710
+ #: includes/integrations/class-pum-ninja-forms.php:83
2711
  msgid "Ninja Form Success"
2712
  msgstr ""
2713
 
popup-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Popup Maker
4
  * Plugin URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=plugin-uri
5
  * Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
6
- * Version: 1.8.13
7
  * Author: Popup Maker
8
  * Author URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=author-uri
9
  * License: GPL2 or later
@@ -93,7 +93,7 @@ class Popup_Maker {
93
  /**
94
  * @var string Plugin Version
95
  */
96
- public static $VER = '1.8.13';
97
 
98
  /**
99
  * @var int DB Version
3
  * Plugin Name: Popup Maker
4
  * Plugin URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=plugin-uri
5
  * Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
6
+ * Version: 1.8.14
7
  * Author: Popup Maker
8
  * Author URI: https://wppopupmaker.com/?utm_campaign=PluginInfo&utm_source=plugin-header&utm_medium=author-uri
9
  * License: GPL2 or later
93
  /**
94
  * @var string Plugin Version
95
  */
96
+ public static $VER = '1.8.14';
97
 
98
  /**
99
  * @var int DB Version
readme.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Popup Maker
2
+ Everything you need to create unique popup user experiences. Insert forms & other content from your favorite plugins to create custom responsive popups.
3
+
4
+ Feel free to browse the code and make suggestions/requests. Thanks!
5
+
6
+ ## Getting Started
7
+
8
+ ### Downloading And Using As A Plugin
9
+ To use this plugin, this repo can be downloaded as a zip and installed as-is as a WordPress plugin. Once installed and activated, Go to wp-admin > Popup Maker > Add Popup to create your first popup.
10
+
11
+ ### Getting Set Up For Development
12
+ #### Prerequisites
13
+ In order to run our Gulp tasks, you will need Node.js and NPM installed. To do so, you can [follow the NPM documentation's guide](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).
14
+ If you have not used NPM before, you can [refer to this beginner's guide to NPM](https://www.sitepoint.com/beginners-guide-node-package-manager/).
15
+
16
+ This plugin uses a series of [Gulp](https://gulpjs.com) tasks to clean and prepare builds. To get started, run `npm install` to get the necessary gulp dependencies.
17
+
18
+ #### Gulp Tasks
19
+ As normal, we have our gulp tasks in the gulpfile.js file.
20
+
21
+ Task info coming soon....
22
+
23
+ ## Built With
24
+ * [SASS](https://sass-lang.com) - The CSS pre-processor we use. We use the SCSS syntax.
25
+ * [jQuery](https://jquery.com) - A fast, small, and feature-rich JavaScript library
26
+ * [JSON for JS](https://github.com/douglascrockford/JSON-js) - Creates a JSON property in the global object, if there isn't already one
27
+ * [iFrame Resizer](https://github.com/davidjbradshaw/iframe-resizer) - Force cross domain iframes to size to content
28
+ * [mobile-detect.js](https://github.com/hgoebl/mobile-detect.js) - Detect the device by comparing patterns against a given User-Agent string
29
+
30
+ ## Deployment
31
+ This is a WordPress plugin that is hosted on the WordPress.org SVN repo.
32
+ There is not currently any automated deployment. Instead, once a release is published on GitHub, that release is manually uploaded to the SVN.
33
+
34
+ ## Contributing
35
+ Community made feature requests, patches, localizations, bug reports, and contributions are always welcome and are crucial to ensure Popup Maker continues to grow.
36
+
37
+ When contributing please ensure you follow the guidelines below so that we can keep on top of things.
38
+
39
+ Please Note: GitHub is not intended for support based questions. For those, please use the [support forums](https://wordpress.org/support/plugin/popup-maker/).
40
+
41
+ ### Creating Issues
42
+ * If you have any bugs or feature requests, please [create an issue](https://github.com/PopupMaker/Popup-Maker/issues/new)
43
+ * For bug reports, please clearly describe the bug/issue and include steps on how to reproduce it
44
+ * For feature requests, please clearly describe what you would like, how it would be used, and example screenshots (if possible)
45
+
46
+ ### Pull Requests
47
+ * Ensure you stick to the [WordPress Coding Standards](https://codex.wordpress.org/WordPress_Coding_Standards)
48
+ * When committing, reference your issue (if present) and include a note about the fix
49
+ * Push the changes to your fork and submit a pull request to the 'master' branch of this repository
50
+ * We are trying to ensure that every function is documented well and follows the standards set by phpDoc going forward
51
+
52
+ ## Versioning
53
+ We use [SemVer](http://semver.org/) for versioning. For the versions available, see [the releases in this repository](https://github.com/PopupMaker/Popup-Maker/releases).
54
+
55
+ ## Developers
56
+ * Daniel Iser - Lead Developer
57
+
58
+ See also [the list of contributors](https://github.com/PopupMaker/Popup-Maker/graphs/contributors) who participated in this project.
59
+
60
+ ## License
61
+ This project is licensed under the GPLv2 License.
62
+
63
+ ## Support
64
+ This is a developer's portal for Popup Maker and **should not** be used for support. Please [create a support ticket here](https://wordpress.org/support/plugin/popup-maker/).
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tags: marketing, popup, popups, optin, advertising, conversion, responsive popu
7
  Requires at least: 4.1
8
  Tested up to: 5.3
9
  Requires PHP: 5.2.17
10
- Stable tag: 1.8.13
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -16,18 +16,20 @@ Everything you need to create unique popup user experiences. Insert forms & othe
16
  == Description ==
17
 
18
  = Create Effective Popups For WordPress =
19
- [Popup Maker](https://wppopupmaker.com) is the **best popup plugin WordPress** has to offer. It is incredibly versatile & flexible. Bend it to create any type of popup, modal, or content overlay for your WordPress website.
20
 
21
  Easily create email opt-in popups, contact form popups, announcements, [EU cookie notices](https://ninjaforms.com/eu-cookie-notices-ninja-forms/), slide-ins, & more. Check out some examples in our video below:
22
 
23
  https://www.youtube.com/watch?v=PomnMganMVM
24
 
 
 
25
  Create unlimited popups of every type you need and customize every facet of each of your popups from theme and position, to targeting and cookies.
26
 
27
  = Trusted by many people just like you! =
28
- Popup Maker is used on over 400,000 websites and has received over 3,000 5-star reviews just like this one:
29
 
30
- > = Great product – best I’ve used! =
31
  > "I’ve tried many different popup programs, but I must say I find this one the best!" ~[@jessefjosserand](https://wordpress.org/support/topic/great-product-best-ive-used/)
32
 
33
  = What's Included for Free: =
@@ -44,7 +46,7 @@ Create unlimited popups of every type you need and customize every facet of each
44
  * **Auto Open Triggers** allows you to set a **timed delay**, then the popup will display according to your preference.
45
  * Trove of options to customize the look of your popup using our unique **Theme Editor**. Change colors, shadows, fonts, paddings, and much, much more.
46
 
47
- > = Great plugin, everything I needed =
48
  > "Really nice plugin, simple to use, responsive, a good catch !" ~[@lemmmy](https://wordpress.org/support/topic/great-plugin-everything-i-needed/)
49
 
50
  = Enhance Your WordPress Popups Using Our Premium Features =
@@ -56,8 +58,6 @@ Create unlimited popups of every type you need and customize every facet of each
56
  * [Advanced Targeting Conditions](https://wppopupmaker.com/extensions/advanced-targeting-conditions/?utm_source=readme-description&utm_medium=text-link&utm_campaign=Upsell&utm_content=advanced-targeting-conditions "Advanced Targeting Conditions")
57
  * And [many more](https://wppopupmaker.com/extensions/)!
58
 
59
- Learn popup tips and tricks, and create cool popups using guides found on our [Blog](https://wppopupmaker.com/blog/?utm_campaign=Readme&utm_source=readme-description&utm_medium=text-link)!
60
-
61
  Follow this plugin on [GitHub](https://github.com/PopupMaker/Popup-Maker) and [Twitter](https://twitter.com/wppopupmaker)!
62
 
63
  Would you like to help translate the **best WordPress popup plugin** into more languages? [Join our WP-Translations Community](https://translate.wordpress.org/projects/wp-plugins/popup-maker).
@@ -125,6 +125,10 @@ There are several common causes for this, check [this guide for help](https://do
125
 
126
  View our [complete changelog](https://github.com/PopupMaker/Popup-Maker/blob/master/CHANGELOG.md) for up-to-date information on what has been going on with the development of Popup Maker.
127
 
 
 
 
 
128
  = v1.8.13 - 10/10/2019 =
129
  * Tweak: Added cap check to ensure only authorized users can access support debug text file. @Credit goes to Ilias Dimopoulos from Neurosoft S.A , RedyOps Team.
130
 
7
  Requires at least: 4.1
8
  Tested up to: 5.3
9
  Requires PHP: 5.2.17
10
+ Stable tag: 1.8.14
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
16
  == Description ==
17
 
18
  = Create Effective Popups For WordPress =
19
+ [Popup Maker](https://wppopupmaker.com) is the **best popup plugin WordPress** has to offer. It is incredibly versatile & flexible. Bend it to create any type of popup, modal, or content overlay for your WordPress website.
20
 
21
  Easily create email opt-in popups, contact form popups, announcements, [EU cookie notices](https://ninjaforms.com/eu-cookie-notices-ninja-forms/), slide-ins, & more. Check out some examples in our video below:
22
 
23
  https://www.youtube.com/watch?v=PomnMganMVM
24
 
25
+ [Stunning examples of what you can create in Popup Maker **(View Video)**](https://www.youtube.com/watch?v=PomnMganMVM)
26
+
27
  Create unlimited popups of every type you need and customize every facet of each of your popups from theme and position, to targeting and cookies.
28
 
29
  = Trusted by many people just like you! =
30
+ Popup Maker is used on over 400,000 websites and has received over 3,100 5-star reviews just like this one:
31
 
32
+ > **Great product – best I’ve used!**
33
  > "I’ve tried many different popup programs, but I must say I find this one the best!" ~[@jessefjosserand](https://wordpress.org/support/topic/great-product-best-ive-used/)
34
 
35
  = What's Included for Free: =
46
  * **Auto Open Triggers** allows you to set a **timed delay**, then the popup will display according to your preference.
47
  * Trove of options to customize the look of your popup using our unique **Theme Editor**. Change colors, shadows, fonts, paddings, and much, much more.
48
 
49
+ > **Great plugin, everything I needed**
50
  > "Really nice plugin, simple to use, responsive, a good catch !" ~[@lemmmy](https://wordpress.org/support/topic/great-plugin-everything-i-needed/)
51
 
52
  = Enhance Your WordPress Popups Using Our Premium Features =
58
  * [Advanced Targeting Conditions](https://wppopupmaker.com/extensions/advanced-targeting-conditions/?utm_source=readme-description&utm_medium=text-link&utm_campaign=Upsell&utm_content=advanced-targeting-conditions "Advanced Targeting Conditions")
59
  * And [many more](https://wppopupmaker.com/extensions/)!
60
 
 
 
61
  Follow this plugin on [GitHub](https://github.com/PopupMaker/Popup-Maker) and [Twitter](https://twitter.com/wppopupmaker)!
62
 
63
  Would you like to help translate the **best WordPress popup plugin** into more languages? [Join our WP-Translations Community](https://translate.wordpress.org/projects/wp-plugins/popup-maker).
125
 
126
  View our [complete changelog](https://github.com/PopupMaker/Popup-Maker/blob/master/CHANGELOG.md) for up-to-date information on what has been going on with the development of Popup Maker.
127
 
128
+ = v1.8.14 - 10/24/2019 =
129
+ * Improvement: Updated nav menu editor walker class for adding custom fields to further improve compatibility.
130
+ * Fix: Ninja Forms popup actions missing.
131
+
132
  = v1.8.13 - 10/10/2019 =
133
  * Tweak: Added cap check to ensure only authorized users can access support debug text file. @Credit goes to Ilias Dimopoulos from Neurosoft S.A , RedyOps Team.
134