Popups by OptinMonster – Best WordPress Lead Generation Plugin - Version 1.1.5.3

Version Description

  • Fixed issue with notices appearing oddly on OM screens.
  • Updated support video.
Download this release

Release Info

Developer griffinjt
Plugin Icon 128x128 Popups by OptinMonster – Best WordPress Lead Generation Plugin
Version 1.1.5.3
Comparing to
See all releases

Code changes from version 1.1.5.2 to 1.1.5.3

OMAPI/Menu.php CHANGED
@@ -71,6 +71,7 @@ class OMAPI_Menu {
71
  add_action( 'admin_menu', array( $this, 'menu' ) );
72
  // Load helper body classes
73
  add_filter( 'admin_body_class', array( $this, 'admin_body_classes' ) );
 
74
  }
75
 
76
  }
@@ -95,11 +96,13 @@ class OMAPI_Menu {
95
  */
96
  public function menu() {
97
 
 
 
98
  $this->hook = add_menu_page(
99
  __( 'OptinMonster', 'optin-monster-api' ),
100
  __( 'OptinMonster', 'optin-monster-api' ),
101
  apply_filters( 'optin_monster_api_menu_cap', 'manage_options' ),
102
- 'optin-monster-api-settings',
103
  array( $this, 'page' ),
104
  'none',
105
  579
@@ -123,7 +126,7 @@ class OMAPI_Menu {
123
  public function icon() {
124
 
125
  ?>
126
- <style type="text/css">@font-face{font-family: 'archie';src:url('<?php echo plugins_url( '/assets/fonts/archie.eot?velzrt', OMAPI_FILE ); ?>');src:url('<?php echo plugins_url( '/assets/fonts/archie.eot?#iefixvelzrt', OMAPI_FILE ); ?>') format('embedded-opentype'),url('<?php echo plugins_url( '/assets/fonts/archie.woff?velzrt', OMAPI_FILE ); ?>') format('woff'),url('<?php echo plugins_url( '/assets/fonts/archie.ttf?velzrt', OMAPI_FILE ); ?>') format('truetype'),url('<?php echo plugins_url( '/assets/fonts/archie.svg?velzrt#archie', OMAPI_FILE ); ?>') format('svg');font-weight: normal;font-style: normal;}#toplevel_page_optin-monster-api-settings .dashicons-before,#toplevel_page_optin-monster-api-settings .dashicons-before:before {font-family: 'archie';speak: none;font-style: normal;font-weight: normal;font-variant: normal;text-transform: none;line-height: 1;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}#toplevel_page_optin-monster-api-settings .dashicons-before:before {content: "\e600";font-size: 38px;margin-top: -9px;margin-left: -8px;}</style>
127
  <?php
128
 
129
  }
@@ -150,6 +153,7 @@ class OMAPI_Menu {
150
  add_action( 'admin_enqueue_scripts', array( $this, 'styles' ) );
151
  add_action( 'admin_enqueue_scripts', array( $this, 'scripts' ) );
152
  add_filter( 'admin_footer_text', array( $this, 'footer' ) );
 
153
 
154
  }
155
 
@@ -328,10 +332,10 @@ class OMAPI_Menu {
328
  */
329
  public function page() {
330
 
331
- echo $this->get_plugin_screen_banner();
332
-
333
  ?>
 
334
  <div class="wrap omapi-page">
 
335
  <div class="omapi-ui">
336
  <div class="omapi-tabs">
337
  <ul class="omapi-panels">
@@ -438,7 +442,7 @@ class OMAPI_Menu {
438
  case 'support' :
439
  switch ( $setting ) {
440
  case 'video' :
441
- $ret = '<div class="omapi-half-column"><div class="omapi-video-container"><iframe width="640" height="360" src="https://www.youtube.com/embed/QweP8BHMNRw?rel=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe></div></div>';
442
  break 2;
443
 
444
  case 'links' :
@@ -1192,8 +1196,10 @@ class OMAPI_Menu {
1192
  </svg>';
1193
  }
1194
 
1195
- /*
1196
- * Return HTML of static menu page banner
 
 
1197
  */
1198
  public function get_plugin_screen_banner() {
1199
 
@@ -1218,6 +1224,15 @@ class OMAPI_Menu {
1218
 
1219
  }
1220
 
 
 
 
 
 
 
 
 
 
1221
  /**
1222
  * Called whenever a signup link is displayed, this function will
1223
  * check if there's a trial ID specified.
71
  add_action( 'admin_menu', array( $this, 'menu' ) );
72
  // Load helper body classes
73
  add_filter( 'admin_body_class', array( $this, 'admin_body_classes' ) );
74
+
75
  }
76
 
77
  }
96
  */
97
  public function menu() {
98
 
99
+ $options = $this->base->get_option();
100
+ $slug = isset( $options['welcome']['status'] ) && 'none' === $options['welcome']['status'] ? 'optin-monster-api-welcome' : 'optin-monster-api-settings';
101
  $this->hook = add_menu_page(
102
  __( 'OptinMonster', 'optin-monster-api' ),
103
  __( 'OptinMonster', 'optin-monster-api' ),
104
  apply_filters( 'optin_monster_api_menu_cap', 'manage_options' ),
105
+ $slug,
106
  array( $this, 'page' ),
107
  'none',
108
  579
126
  public function icon() {
127
 
128
  ?>
129
+ <style type="text/css">@font-face{font-family: 'archie';src:url('<?php echo plugins_url( '/assets/fonts/archie.eot?velzrt', OMAPI_FILE ); ?>');src:url('<?php echo plugins_url( '/assets/fonts/archie.eot?#iefixvelzrt', OMAPI_FILE ); ?>') format('embedded-opentype'),url('<?php echo plugins_url( '/assets/fonts/archie.woff?velzrt', OMAPI_FILE ); ?>') format('woff'),url('<?php echo plugins_url( '/assets/fonts/archie.ttf?velzrt', OMAPI_FILE ); ?>') format('truetype'),url('<?php echo plugins_url( '/assets/fonts/archie.svg?velzrt#archie', OMAPI_FILE ); ?>') format('svg');font-weight: normal;font-style: normal;}#toplevel_page_optin-monster-api-settings .dashicons-before,#toplevel_page_optin-monster-api-settings .dashicons-before:before,#toplevel_page_optin-monster-api-welcome .dashicons-before,#toplevel_page_optin-monster-api-welcome .dashicons-before:before{font-family: 'archie';speak: none;font-style: normal;font-weight: normal;font-variant: normal;text-transform: none;line-height: 1;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}#toplevel_page_optin-monster-api-settings .dashicons-before:before,#toplevel_page_optin-monster-api-welcome .dashicons-before:before{content: "\e600";font-size: 38px;margin-top: -9px;margin-left: -8px;}</style>
130
  <?php
131
 
132
  }
153
  add_action( 'admin_enqueue_scripts', array( $this, 'styles' ) );
154
  add_action( 'admin_enqueue_scripts', array( $this, 'scripts' ) );
155
  add_filter( 'admin_footer_text', array( $this, 'footer' ) );
156
+ add_action( 'in_admin_header', array( $this, 'output_plugin_screen_banner') );
157
 
158
  }
159
 
332
  */
333
  public function page() {
334
 
 
 
335
  ?>
336
+
337
  <div class="wrap omapi-page">
338
+ <h2></h2>
339
  <div class="omapi-ui">
340
  <div class="omapi-tabs">
341
  <ul class="omapi-panels">
442
  case 'support' :
443
  switch ( $setting ) {
444
  case 'video' :
445
+ $ret = '<div class="omapi-half-column"><div class="omapi-video-container"><iframe width="640" height="360" src="https://www.youtube.com/embed/tUoJcp5Z9H0?rel=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe></div></div>';
446
  break 2;
447
 
448
  case 'links' :
1196
  </svg>';
1197
  }
1198
 
1199
+ /**
1200
+ * Return html of header banner
1201
+ *
1202
+ * @return string
1203
  */
1204
  public function get_plugin_screen_banner() {
1205
 
1224
 
1225
  }
1226
 
1227
+ /**
1228
+ * Echo out plugin header banner
1229
+ *
1230
+ * @since 1.1.5.2
1231
+ */
1232
+ public function output_plugin_screen_banner() {
1233
+ echo $this->get_plugin_screen_banner();
1234
+ }
1235
+
1236
  /**
1237
  * Called whenever a signup link is displayed, this function will
1238
  * check if there's a trial ID specified.
OMAPI/Review.php CHANGED
@@ -143,6 +143,8 @@ class OMAPI_Review {
143
 
144
  add_action( 'admin_enqueue_scripts', array( $this, 'styles' ) );
145
  add_filter( 'admin_footer_text', array( $this, 'footer' ) );
 
 
146
 
147
  }
148
 
@@ -197,11 +199,8 @@ class OMAPI_Review {
197
  $user_review = isset ( $review_meta['user-review'] ) ? $review_meta['user-review'] : '';
198
  $review_status = isset ( $review_meta['status'] ) ? $review_meta['status'] : 'unfinished';
199
 
200
-
201
- echo $this->base->menu->get_plugin_screen_banner();
202
-
203
  ?>
204
-
205
  <div class="wrap omapi-page">
206
  <h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
207
  <div class="review-container">
@@ -396,6 +395,17 @@ class OMAPI_Review {
396
 
397
  // Check if our pointer is not among dismissed ones and that the user should see this
398
  if( !in_array( 'omapi_review_pointer', $dismissed_pointers ) && current_user_can('activate_plugins') ) {
 
 
 
 
 
 
 
 
 
 
 
399
  $enqueue_pointer_script_style = true;
400
 
401
  // Add footer scripts using callback function
143
 
144
  add_action( 'admin_enqueue_scripts', array( $this, 'styles' ) );
145
  add_filter( 'admin_footer_text', array( $this, 'footer' ) );
146
+ add_action( 'in_admin_header', array( $this->base->menu, 'output_plugin_screen_banner') );
147
+
148
 
149
  }
150
 
199
  $user_review = isset ( $review_meta['user-review'] ) ? $review_meta['user-review'] : '';
200
  $review_status = isset ( $review_meta['status'] ) ? $review_meta['status'] : 'unfinished';
201
 
 
 
 
202
  ?>
203
+
204
  <div class="wrap omapi-page">
205
  <h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
206
  <div class="review-container">
395
 
396
  // Check if our pointer is not among dismissed ones and that the user should see this
397
  if( !in_array( 'omapi_review_pointer', $dismissed_pointers ) && current_user_can('activate_plugins') ) {
398
+ $time = get_user_meta( get_current_user_id(), '_om_pointer_time', true );
399
+ if ( ! $time ) {
400
+ update_user_meta( get_current_user_id(), '_om_pointer_time', strtotime( '+1 week' ) );
401
+ return;
402
+ } else {
403
+ // Don't enqueue if it hasn't been a week.
404
+ if ( $time > time() ) {
405
+ return;
406
+ }
407
+ }
408
+
409
  $enqueue_pointer_script_style = true;
410
 
411
  // Add footer scripts using callback function
OMAPI/Welcome.php CHANGED
@@ -168,7 +168,6 @@ class OMAPI_Welcome {
168
  */
169
  public function callback_to_display_page() {
170
 
171
- echo $this->base->menu->get_plugin_screen_banner();
172
  $text = $this->base->menu->has_trial_link() ? __( 'Get Started for Free', 'optin-monster-api' ) : __( 'Get OptinMonster Now', 'optin-monster-api' );
173
  $link = esc_url( $this->base->menu->get_trial_link() );
174
  $api_link = esc_url_raw( admin_url( 'admin.php?page=optin-monster-api-settings' ) );
@@ -348,6 +347,8 @@ class OMAPI_Welcome {
348
  add_action( 'admin_enqueue_scripts', array( $this, 'styles' ) );
349
  add_action( 'admin_print_footer_scripts', array( $this, 'scripts' ) );
350
  add_filter( 'admin_footer_text', array( $this, 'footer' ) );
 
 
351
 
352
  }
353
 
168
  */
169
  public function callback_to_display_page() {
170
 
 
171
  $text = $this->base->menu->has_trial_link() ? __( 'Get Started for Free', 'optin-monster-api' ) : __( 'Get OptinMonster Now', 'optin-monster-api' );
172
  $link = esc_url( $this->base->menu->get_trial_link() );
173
  $api_link = esc_url_raw( admin_url( 'admin.php?page=optin-monster-api-settings' ) );
347
  add_action( 'admin_enqueue_scripts', array( $this, 'styles' ) );
348
  add_action( 'admin_print_footer_scripts', array( $this, 'scripts' ) );
349
  add_filter( 'admin_footer_text', array( $this, 'footer' ) );
350
+ add_action( 'in_admin_header', array( $this->base->menu, 'output_plugin_screen_banner') );
351
+
352
 
353
  }
354
 
optin-monster-wp-api.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: OptinMonster API plugin to connect your WordPress site to your OptinMonster forms.
6
  * Author: Thomas Griffin
7
  * Author URI: https://thomasgriffin.io
8
- * Version: 1.1.5.2
9
  * Text Domain: optin-monster-api
10
  * Domain Path: languages
11
  *
@@ -60,7 +60,7 @@ class OMAPI {
60
  *
61
  * @var string
62
  */
63
- public $version = '1.1.5.2';
64
 
65
  /**
66
  * The name of the plugin.
5
  * Description: OptinMonster API plugin to connect your WordPress site to your OptinMonster forms.
6
  * Author: Thomas Griffin
7
  * Author URI: https://thomasgriffin.io
8
+ * Version: 1.1.5.3
9
  * Text Domain: optin-monster-api
10
  * Domain Path: languages
11
  *
60
  *
61
  * @var string
62
  */
63
+ public $version = '1.1.5.3';
64
 
65
  /**
66
  * The name of the plugin.
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: griffinjt, smub
3
  Tags: wordpress popup, popup, lightbox popup, mailchimp, aweber, campaign monitor, constant contact, exit-intent, madmimi, infusionsoft, getresponse, hubspot, marketo, activecampaign, pardot, totalsend, emma, icontact, mailerlite, mailpoet, google analytics, pop over, optin forms, email list, subscribers, wordpress popup form, lightbox, wordpress popups, popups, lightbox popups, optin form, wordpress optin form, sidebar optin form, sidebar optin, sidebar form, wordpress overlay popup, wordpress popup plugin, popup plugin, wordpress lightbox optin, wordpress lightbox optin form, after post optin form, wordpress after post optin form, after post optin form plugin, lightbox popup plugin, wordpress popup solution, exit intent, exit-intent, optinmonster, optin monster, optin-monster, mobile popup, mobile popups, mobile optin forms, mobile optins, lightbox optins, wordpress mobile popup, wordpress mobile popups, wordpress mobile optin forms, wordpress lightbox optins, lead gen, lead generation, wordpress lead generation, lead generation wordpress, wordpress lead gen, fullscreen, welcome gate, interstitial
4
  Requires at least: 3.5.1
5
- Tested up to: 4.6
6
  Stable tag: trunk
7
  License: GNU General Public License v2.0 or later
8
 
@@ -151,6 +151,10 @@ OptinMonster is the <a href="http://optinmonster.com" rel="friend" title="OptinM
151
 
152
  == Changelog ==
153
 
 
 
 
 
154
  = 1.1.5.2 =
155
  * Fixed bug with post category selections causing campaigns to load globally.
156
 
2
  Contributors: griffinjt, smub
3
  Tags: wordpress popup, popup, lightbox popup, mailchimp, aweber, campaign monitor, constant contact, exit-intent, madmimi, infusionsoft, getresponse, hubspot, marketo, activecampaign, pardot, totalsend, emma, icontact, mailerlite, mailpoet, google analytics, pop over, optin forms, email list, subscribers, wordpress popup form, lightbox, wordpress popups, popups, lightbox popups, optin form, wordpress optin form, sidebar optin form, sidebar optin, sidebar form, wordpress overlay popup, wordpress popup plugin, popup plugin, wordpress lightbox optin, wordpress lightbox optin form, after post optin form, wordpress after post optin form, after post optin form plugin, lightbox popup plugin, wordpress popup solution, exit intent, exit-intent, optinmonster, optin monster, optin-monster, mobile popup, mobile popups, mobile optin forms, mobile optins, lightbox optins, wordpress mobile popup, wordpress mobile popups, wordpress mobile optin forms, wordpress lightbox optins, lead gen, lead generation, wordpress lead generation, lead generation wordpress, wordpress lead gen, fullscreen, welcome gate, interstitial
4
  Requires at least: 3.5.1
5
+ Tested up to: 4.6.1
6
  Stable tag: trunk
7
  License: GNU General Public License v2.0 or later
8
 
151
 
152
  == Changelog ==
153
 
154
+ = 1.1.5.3 =
155
+ * Fixed issue with notices appearing oddly on OM screens.
156
+ * Updated support video.
157
+
158
  = 1.1.5.2 =
159
  * Fixed bug with post category selections causing campaigns to load globally.
160