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

Version Description

Download this release

Release Info

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

Code changes from version 1.0.0 to 1.0.0.1

OMAPI/Actions.php CHANGED
@@ -26,7 +26,7 @@ class OMAPI_Actions {
26
  * @var string
27
  */
28
  public $file = __FILE__;
29
-
30
  /**
31
  * Holds any action notices.
32
  *
@@ -54,7 +54,7 @@ class OMAPI_Actions {
54
 
55
  // Set our object.
56
  $this->set();
57
-
58
  // Add validation messages.
59
  add_action( 'admin_init', array( $this, 'actions' ) );
60
  add_action( 'admin_notices', array( $this, 'notices' ) );
@@ -87,21 +87,21 @@ class OMAPI_Actions {
87
  if ( ! $action || 'edit' == $action ) {
88
  return;
89
  }
90
-
91
  // Verify the nonce URL.
92
  if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( $_GET['_wpnonce'], 'omapi-action' ) ) {
93
  return;
94
  }
95
-
96
  switch ( $action ) {
97
  case 'status' :
98
  if ( $this->status() ) {
99
- $this->notices['updated'] = __( 'The optin status was updated successfully.', 'optin-monster-api' );
100
  } else {
101
  $this->notices['error'] = __( 'There was an error updating the optin status. Please try again.', 'optin-monster-api' );
102
  }
103
  break;
104
-
105
  case 'test' :
106
  if ( $this->test() ) {
107
  $this->notices['updated'] = __( 'You have updated test mode for the optin successfully.', 'optin-monster-api' );
@@ -109,7 +109,7 @@ class OMAPI_Actions {
109
  $this->notices['error'] = __( 'There was an error updating test mode for the optin. Please try again.', 'optin-monster-api' );
110
  }
111
  break;
112
-
113
  case 'delete' :
114
  if ( $this->delete() ) {
115
  $this->notices['updated'] = __( 'The local optin was deleted successfully.', 'optin-monster-api' );
@@ -117,7 +117,7 @@ class OMAPI_Actions {
117
  $this->notices['error'] = __( 'There was an error deleting the local optin. Please try again.', 'optin-monster-api' );
118
  }
119
  break;
120
-
121
  case 'cookies' :
122
  if ( $this->cookies() ) {
123
  $this->notices['updated'] = __( 'The local cookies have been cleared successfully.', 'optin-monster-api' );
@@ -144,7 +144,7 @@ class OMAPI_Actions {
144
  }
145
 
146
  }
147
-
148
  /**
149
  * Changes the status of an optin.
150
  *
@@ -152,12 +152,27 @@ class OMAPI_Actions {
152
  */
153
  public function status() {
154
 
 
155
  $status = (bool) get_post_meta( $this->optin_id, '_omapi_enabled', true );
156
  $new = $status ? false : true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  return update_post_meta( $this->optin_id, '_omapi_enabled', $new );
158
 
159
  }
160
-
161
  /**
162
  * Changes test mode for the optin.
163
  *
@@ -170,7 +185,7 @@ class OMAPI_Actions {
170
  return update_post_meta( $this->optin_id, '_omapi_test', $new );
171
 
172
  }
173
-
174
  /**
175
  * Removes a local optin.
176
  *
@@ -181,7 +196,7 @@ class OMAPI_Actions {
181
  return wp_delete_post( $this->optin_id, true );
182
 
183
  }
184
-
185
  /**
186
  * Clears the local cookies.
187
  *
@@ -198,7 +213,7 @@ class OMAPI_Actions {
198
  }
199
  }
200
  }
201
-
202
  return true;
203
 
204
  }
26
  * @var string
27
  */
28
  public $file = __FILE__;
29
+
30
  /**
31
  * Holds any action notices.
32
  *
54
 
55
  // Set our object.
56
  $this->set();
57
+
58
  // Add validation messages.
59
  add_action( 'admin_init', array( $this, 'actions' ) );
60
  add_action( 'admin_notices', array( $this, 'notices' ) );
87
  if ( ! $action || 'edit' == $action ) {
88
  return;
89
  }
90
+
91
  // Verify the nonce URL.
92
  if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( $_GET['_wpnonce'], 'omapi-action' ) ) {
93
  return;
94
  }
95
+
96
  switch ( $action ) {
97
  case 'status' :
98
  if ( $this->status() ) {
99
+ $this->notices['updated'] = sprintf( __( 'The optin status was updated successfully. You can configure more specific loading requirements by <a href="%s" title="Click here to edit the output settings for the updated optin.">editing the output settings</a> for the optin.', 'optin-monster-api' ), esc_url_raw( add_query_arg( array( 'page' => 'optin-monster-api-settings', 'optin_monster_api_view' => 'optins', 'optin_monster_api_action' => 'edit', 'optin_monster_api_id' => $this->optin_id ), admin_url( 'admin.php' ) ) ) );
100
  } else {
101
  $this->notices['error'] = __( 'There was an error updating the optin status. Please try again.', 'optin-monster-api' );
102
  }
103
  break;
104
+
105
  case 'test' :
106
  if ( $this->test() ) {
107
  $this->notices['updated'] = __( 'You have updated test mode for the optin successfully.', 'optin-monster-api' );
109
  $this->notices['error'] = __( 'There was an error updating test mode for the optin. Please try again.', 'optin-monster-api' );
110
  }
111
  break;
112
+
113
  case 'delete' :
114
  if ( $this->delete() ) {
115
  $this->notices['updated'] = __( 'The local optin was deleted successfully.', 'optin-monster-api' );
117
  $this->notices['error'] = __( 'There was an error deleting the local optin. Please try again.', 'optin-monster-api' );
118
  }
119
  break;
120
+
121
  case 'cookies' :
122
  if ( $this->cookies() ) {
123
  $this->notices['updated'] = __( 'The local cookies have been cleared successfully.', 'optin-monster-api' );
144
  }
145
 
146
  }
147
+
148
  /**
149
  * Changes the status of an optin.
150
  *
152
  */
153
  public function status() {
154
 
155
+ // Prepare variables.
156
  $status = (bool) get_post_meta( $this->optin_id, '_omapi_enabled', true );
157
  $new = $status ? false : true;
158
+ $field = 'global';
159
+ $type = get_post_meta( $this->optin_id, '_omapi_type', true );
160
+ if ( 'post' == $type ) {
161
+ $field = 'automatic';
162
+ } else if ( 'sidebar' == $type ) {
163
+ $field = false;
164
+ }
165
+
166
+ // Maybe update the global/automatic status.
167
+ if ( $field ) {
168
+ update_post_meta( $this->optin_id, '_omapi_' . $field, $new );
169
+ }
170
+
171
+ // Set enabled status.
172
  return update_post_meta( $this->optin_id, '_omapi_enabled', $new );
173
 
174
  }
175
+
176
  /**
177
  * Changes test mode for the optin.
178
  *
185
  return update_post_meta( $this->optin_id, '_omapi_test', $new );
186
 
187
  }
188
+
189
  /**
190
  * Removes a local optin.
191
  *
196
  return wp_delete_post( $this->optin_id, true );
197
 
198
  }
199
+
200
  /**
201
  * Clears the local cookies.
202
  *
213
  }
214
  }
215
  }
216
+
217
  return true;
218
 
219
  }
OMAPI/Api.php CHANGED
@@ -147,11 +147,9 @@ class OMAPI_Api {
147
  );
148
 
149
  // Perform the query and retrieve the response.
150
- //$time_start = microtime( true );
151
  $response = 'GET' == $this->method ? wp_remote_get( esc_url_raw( $this->url ) . '?' . $body, $data ) : wp_remote_post( esc_url_raw( $this->url ), $data );
152
  $response_code = wp_remote_retrieve_response_code( $response );
153
  $response_body = json_decode( wp_remote_retrieve_body( $response ) );
154
- //echo '<pre>' . var_export( number_format( microtime( true ) - $time_start, 10 ), true ) . '</pre>';
155
  //echo '<pre>' . var_export( $response, true ) . '</pre>'; die;
156
 
157
  // Bail out early if there are any errors.
147
  );
148
 
149
  // Perform the query and retrieve the response.
 
150
  $response = 'GET' == $this->method ? wp_remote_get( esc_url_raw( $this->url ) . '?' . $body, $data ) : wp_remote_post( esc_url_raw( $this->url ), $data );
151
  $response_code = wp_remote_retrieve_response_code( $response );
152
  $response_body = json_decode( wp_remote_retrieve_body( $response ) );
 
153
  //echo '<pre>' . var_export( $response, true ) . '</pre>'; die;
154
 
155
  // Bail out early if there are any errors.
OMAPI/Content.php CHANGED
@@ -94,10 +94,13 @@ class OMAPI_Content {
94
  <?php wp_nonce_field( 'omapi_nonce_' . $id, 'omapi_nonce_' . $id ); ?>
95
  <input type="hidden" name="omapi_panel" value="<?php echo $id; ?>" />
96
  <input type="hidden" name="omapi_save" value="true" />
 
 
 
97
  <h3>
98
  <?php if ( isset( $_GET['optin_monster_api_action'] ) && 'edit' == $_GET['optin_monster_api_action'] ) : ?>
99
  <?php printf( __( 'Output Settings for %s', 'optin-monster-api' ), esc_html( $this->optin->post_title ) ); ?>
100
- <span class="omapi-back"><a class="button button-secondary button-small" href="<?php echo add_query_arg( array( 'optin_monster_api_view' => 'optins' ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ); ?>" title="<?php esc_attr_e( 'Back to optin overview', 'optin-monster-api' ); ?>"><?php _e( 'Back to Overview', 'optin-monster-api' ); ?></a></span>
101
  <?php else : ?>
102
  <?php echo esc_html( $panel ); ?>
103
  <?php endif; ?>
@@ -136,7 +139,7 @@ class OMAPI_Content {
136
  ?>
137
  <p class="submit">
138
  <input class="button button-primary" type="submit" name="omapi_refresh" value="<?php esc_attr_e( 'Refresh Optins', 'optin-monster-api' ); ?>" tabindex="749" />
139
- <a class="button button-secondary" href="<?php echo wp_nonce_url( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'cookies' ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ), 'omapi-action' ); ?>" title="<?php esc_attr_e( 'Clear Local Cookies', 'optin-monster-api' ); ?>"><?php _e( 'Clear Local Cookies', 'optin-monster-api' ); ?></a>
140
  </p>
141
  </form>
142
  <?php
@@ -215,7 +218,7 @@ class OMAPI_Content {
215
  $test_class = $test ? ' omapi-test-mode' : '';
216
  ?>
217
  <p class="omapi-optin<?php echo $class . $test_class; ?>">
218
- <a href="<?php echo add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'edit', 'optin_monster_api_id' => $optin->ID ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ); ?>" title="<?php printf( esc_attr__( 'Manage output settings for %s', 'optin-monster-api' ), $optin->post_title ); ?>"><?php echo $optin->post_title; ?></a>
219
  <?php if ( $test ) : ?>
220
  <span class="omapi-test"><?php _e( 'Test Mode', 'optin-monster-api' ); ?></span>
221
  <?php endif; ?>
@@ -302,10 +305,10 @@ class OMAPI_Content {
302
  $status_link = $status ? __( 'Disable', 'optin-monster-api' ) : __( 'Go Live', 'optin-monster-api' );
303
  $status_desc = $status ? esc_attr__( 'Disable this optin', 'optin-monster-api' ) : esc_attr__( 'Go live with this optin', 'optin-monster-api' );
304
  $links = array();
305
- $links['edit'] = '<a href="' . add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'edit', 'optin_monster_api_id' => $optin_id ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ) . '" title="' . esc_attr__( 'Edit this optin', 'optin-monster-api' ) . '">Edit</a>';
306
- $links['status'] = '<a href="' . wp_nonce_url( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'status', 'optin_monster_api_id' => $optin_id ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ), 'omapi-action' ) . '" title="' . $status_desc . '">' . $status_link . '</a>';
307
- $links['test'] = '<a href="' . wp_nonce_url( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'test', 'optin_monster_api_id' => $optin_id ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ), 'omapi-action' ) . '" title="' . $test_desc . '">' . $test_link . '</a>';
308
- $links['delete'] = '<a class="omapi-red" href="' . wp_nonce_url( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'delete', 'optin_monster_api_id' => $optin_id ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ), 'omapi-action' ) . '" title="' . esc_attr__( 'Delete this optin locally', 'optin-monster-api' ) . '">Delete</a>';
309
 
310
  $links = apply_filters( 'optin_monster_api_action_links', $links, $optin_id );
311
  return implode( ' | ', (array) $links );
@@ -318,7 +321,7 @@ class OMAPI_Content {
318
  ?>
319
  <p><?php _e( 'You can migrate all of your existing OptinMonster data (optin forms, settings & integrations) to the new hosted platform. Just click the "Migrate" button below.', 'optin-monster-api' ); ?></p>
320
  <p class="submit">
321
- <a class="button button-primary" href="<?php echo wp_nonce_url( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'migrate' ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ), 'omapi-action' ); ?>"><?php _e( 'Migrate', 'optin-monster-api' ); ?></a>
322
  </p>
323
 
324
  <?php
@@ -354,7 +357,7 @@ class OMAPI_Content {
354
  <hr />
355
  <p><?php _e( 'If your optin forms, site information or integrations did not migrate properly you can reset the migration and try again. Please note that this can cause some data duplication in your account.', 'optin-monster-api' ); ?></p>
356
  <p class="submit">
357
- <a class="button button-secondary" href="<?php echo wp_nonce_url( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'migrate-reset' ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ), 'omapi-action' ); ?>"><?php _e( 'Reset Migration', 'optin-monster-api' ); ?></a>
358
  </p>
359
 
360
  <?php endif;
94
  <?php wp_nonce_field( 'omapi_nonce_' . $id, 'omapi_nonce_' . $id ); ?>
95
  <input type="hidden" name="omapi_panel" value="<?php echo $id; ?>" />
96
  <input type="hidden" name="omapi_save" value="true" />
97
+ <?php if ( 'settings' == $this->view ) : ?>
98
+ <input type="hidden" name="omapi[<?php echo esc_attr( $this->view ); ?>][wpform]" value="true" />
99
+ <?php endif; ?>
100
  <h3>
101
  <?php if ( isset( $_GET['optin_monster_api_action'] ) && 'edit' == $_GET['optin_monster_api_action'] ) : ?>
102
  <?php printf( __( 'Output Settings for %s', 'optin-monster-api' ), esc_html( $this->optin->post_title ) ); ?>
103
+ <span class="omapi-back"><a class="button button-secondary button-small" href="<?php echo esc_url_raw( add_query_arg( array( 'optin_monster_api_view' => 'optins' ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ) ); ?>" title="<?php esc_attr_e( 'Back to optin overview', 'optin-monster-api' ); ?>"><?php _e( 'Back to Overview', 'optin-monster-api' ); ?></a></span>
104
  <?php else : ?>
105
  <?php echo esc_html( $panel ); ?>
106
  <?php endif; ?>
139
  ?>
140
  <p class="submit">
141
  <input class="button button-primary" type="submit" name="omapi_refresh" value="<?php esc_attr_e( 'Refresh Optins', 'optin-monster-api' ); ?>" tabindex="749" />
142
+ <a class="button button-secondary" href="<?php echo wp_nonce_url( esc_url_raw( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'cookies' ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ) ), 'omapi-action' ); ?>" title="<?php esc_attr_e( 'Clear Local Cookies', 'optin-monster-api' ); ?>"><?php _e( 'Clear Local Cookies', 'optin-monster-api' ); ?></a>
143
  </p>
144
  </form>
145
  <?php
218
  $test_class = $test ? ' omapi-test-mode' : '';
219
  ?>
220
  <p class="omapi-optin<?php echo $class . $test_class; ?>">
221
+ <a href="<?php echo esc_url_raw( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'edit', 'optin_monster_api_id' => $optin->ID ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ) ); ?>" title="<?php printf( esc_attr__( 'Manage output settings for %s', 'optin-monster-api' ), $optin->post_title ); ?>"><?php echo $optin->post_title; ?></a>
222
  <?php if ( $test ) : ?>
223
  <span class="omapi-test"><?php _e( 'Test Mode', 'optin-monster-api' ); ?></span>
224
  <?php endif; ?>
305
  $status_link = $status ? __( 'Disable', 'optin-monster-api' ) : __( 'Go Live', 'optin-monster-api' );
306
  $status_desc = $status ? esc_attr__( 'Disable this optin', 'optin-monster-api' ) : esc_attr__( 'Go live with this optin', 'optin-monster-api' );
307
  $links = array();
308
+ $links['edit'] = '<a href="' . esc_url_raw( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'edit', 'optin_monster_api_id' => $optin_id ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ) ) . '" title="' . esc_attr__( 'Edit this optin', 'optin-monster-api' ) . '">Edit</a>';
309
+ $links['status'] = '<a href="' . wp_nonce_url( esc_url_raw( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'status', 'optin_monster_api_id' => $optin_id ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ) ), 'omapi-action' ) . '" title="' . $status_desc . '">' . $status_link . '</a>';
310
+ $links['test'] = '<a href="' . wp_nonce_url( esc_url_raw( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'test', 'optin_monster_api_id' => $optin_id ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ) ), 'omapi-action' ) . '" title="' . $test_desc . '">' . $test_link . '</a>';
311
+ $links['delete'] = '<a class="omapi-red" href="' . wp_nonce_url( esc_url_raw( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'delete', 'optin_monster_api_id' => $optin_id ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ) ), 'omapi-action' ) . '" title="' . esc_attr__( 'Delete this optin locally', 'optin-monster-api' ) . '">Delete</a>';
312
 
313
  $links = apply_filters( 'optin_monster_api_action_links', $links, $optin_id );
314
  return implode( ' | ', (array) $links );
321
  ?>
322
  <p><?php _e( 'You can migrate all of your existing OptinMonster data (optin forms, settings & integrations) to the new hosted platform. Just click the "Migrate" button below.', 'optin-monster-api' ); ?></p>
323
  <p class="submit">
324
+ <a class="button button-primary" href="<?php echo wp_nonce_url( esc_url_raw( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'migrate' ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ) ), 'omapi-action' ); ?>"><?php _e( 'Migrate', 'optin-monster-api' ); ?></a>
325
  </p>
326
 
327
  <?php
357
  <hr />
358
  <p><?php _e( 'If your optin forms, site information or integrations did not migrate properly you can reset the migration and try again. Please note that this can cause some data duplication in your account.', 'optin-monster-api' ); ?></p>
359
  <p class="submit">
360
+ <a class="button button-secondary" href="<?php echo wp_nonce_url( esc_url_raw( add_query_arg( array( 'optin_monster_api_view' => $this->view, 'optin_monster_api_action' => 'migrate-reset' ), admin_url( 'admin.php?page=optin-monster-api-settings' ) ) ), 'omapi-action' ); ?>"><?php _e( 'Reset Migration', 'optin-monster-api' ); ?></a>
361
  </p>
362
 
363
  <?php endif;
OMAPI/Menu.php CHANGED
@@ -204,7 +204,7 @@ class OMAPI_Menu {
204
 
205
  ?>
206
  <div class="wrap omapi-page">
207
- <h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
208
  <div class="omapi-ui">
209
  <div class="omapi-tabs">
210
  <ul class="omapi-panels">
@@ -213,7 +213,7 @@ class OMAPI_Menu {
213
  $first = 0 == $i ? ' omapi-panel-first' : '';
214
  $active = $id == $this->view ? ' omapi-panel-active' : '';
215
  ?>
216
- <li class="omapi-panel omapi-panel-<?php echo sanitize_html_class( $id ); ?><?php echo $first . $active; ?>"><a href="<?php echo esc_url( add_query_arg( 'optin_monster_api_view', $id, admin_url( 'admin.php?page=optin-monster-api-settings' ) ) ); ?>" class="omapi-panel-link" data-panel="<?php echo $id; ?>" data-panel-title="<?php echo $panel; ?>"><?php echo $panel; ?></a></li>
217
  <?php $i++; endforeach; ?>
218
  </ul>
219
  </div>
204
 
205
  ?>
206
  <div class="wrap omapi-page">
207
+ <h2><?php echo esc_html( get_admin_page_title() ); ?> <span><?php printf( __( 'v%s', 'optin-monster-api' ), $this->base->version ); ?></h2>
208
  <div class="omapi-ui">
209
  <div class="omapi-tabs">
210
  <ul class="omapi-panels">
213
  $first = 0 == $i ? ' omapi-panel-first' : '';
214
  $active = $id == $this->view ? ' omapi-panel-active' : '';
215
  ?>
216
+ <li class="omapi-panel omapi-panel-<?php echo sanitize_html_class( $id ); ?><?php echo $first . $active; ?>"><a href="<?php echo esc_url_raw( add_query_arg( 'optin_monster_api_view', $id, admin_url( 'admin.php?page=optin-monster-api-settings' ) ) ); ?>" class="omapi-panel-link" data-panel="<?php echo $id; ?>" data-panel-title="<?php echo $panel; ?>"><?php echo $panel; ?></a></li>
217
  <?php $i++; endforeach; ?>
218
  </ul>
219
  </div>
OMAPI/Output.php CHANGED
@@ -625,7 +625,7 @@ class OMAPI_Output {
625
 
626
  // Output JS variable.
627
  ?>
628
- <script type="text/javascript">var omapi_localized = { ajax: '<?php echo add_query_arg( 'optin-monster-ajax-route', true, home_url( 'index.php' ) ); ?>', nonce: '<?php echo wp_create_nonce( 'omapi' ); ?>' };</script>
629
  <?php
630
 
631
  }
625
 
626
  // Output JS variable.
627
  ?>
628
+ <script type="text/javascript">var omapi_localized = { ajax: '<?php echo esc_url_raw( add_query_arg( 'optin-monster-ajax-route', true, home_url( 'index.php' ) ) ); ?>', nonce: '<?php echo wp_create_nonce( 'omapi' ); ?>' };</script>
629
  <?php
630
 
631
  }
assets/css/settings.css CHANGED
@@ -38,6 +38,11 @@
38
  color: green !important;
39
  }
40
 
 
 
 
 
 
41
  .omapi-ui {
42
  min-height: 390px;
43
  margin-top: 20px;
38
  color: green !important;
39
  }
40
 
41
+ .omapi-page h2 span {
42
+ font-size: 13px;
43
+ color: #666;
44
+ }
45
+
46
  .omapi-ui {
47
  min-height: 390px;
48
  margin-top: 20px;
assets/js/api.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! built on Tue Apr 28 2015 18:40:16 */function OptinMonsterApp(){this["public"]={},this.init=function(a){for(key in a)this["public"][key]=a[key];this.setDefaults(),this.getProp("preview")?this.run():this.loadjQuery()},this.run=function(){this.setVisibilityDefaults(),this.loadjQuery()},this.setVisibilityDefaults=function(){var a=this,b=a.getProp("type");"slide"==b&&this.setProp("slide_open",!1),OptinMonsterAppOptins[this.getProp("optin_js")]={type:b,visible:!1}},this.loadjQuery=function(){var a=this,b=!1;if(void 0===window.jQuery){var c=document.createElement("script");c.src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js",c.onload=c.onreadystatechange=function(){var c=this.readyState;if(!c||"complete"==c||"loaded"==c)try{b||(a.loadjQueryHandler(!1),b=!0)}catch(d){}},(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(c)}else if("1.11.2"!==window.jQuery.fn.jquery){this["public"].ejQuery=window.jQuery;var c=document.createElement("script");c.src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js",c.onload=c.onreadystatechange=function(){var c=this.readyState;if(!c||"complete"==c||"loaded"==c)try{b||(a.loadjQueryHandler(!0),b=!0)}catch(d){}},(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(c)}else a["public"].$=a["public"].ejQuery=window.jQuery,a.loadApp()},this.loadjQueryHandler=function(a){a?(this["public"].$=window.jQuery.noConflict(!0),this.loadApp()):(jQuery=window.jQuery.noConflict(!0),this["public"].$=this["public"].ejQuery=jQuery,this.loadApp())},this.loadApp=function(){var a=this;a["public"].$(document).ready(function(b){a.runOptinMonster()})},this.runOptinMonster=function(){if(this.getProp("preview"))this.trigger("OptinMonsterInit"),this.fonts();else{var a=this.getProp("u").split("."),b=this.retrieveSuccess(this),c=this.retrieveError(this),d=a[0],e=a[1],f=this.getProp("api_optin")+d+"/"+e;this.requestJSONP(f,b,c)}},this.retrieveSuccess=function(a){var b=a.getProp("$");return function(c){var d=b.map(c,function(a,b){return[a]});a.setProp("original_id",d[0].output.id),a.setProp("original_optin",d[0].output.optin);var e=a.pickRandomKey(d);for(key in d[e])d[e].hasOwnProperty(key)&&(a["public"][key]=d[e][key]);for(prop in a["public"].output)a["public"].output.hasOwnProperty(prop)&&(a["public"][prop]=a["public"].output[prop]);a.canLoad()&&a.fonts(!0)}},this.retrieveError=function(a){a.getProp("$");return function(b,c,d){a.trigger("OptinMonsterRetrieveError"),console.log(b)}},this.canLoad=function(){if(!this.websiteMatch())return!1;if(this.getProp("page_slug").length>0&&!this.pageSlugMatch())return!1;if(this.getProp("referrer")&&!this.referrerMatch())return!1;if("sidebar"!==this.getProp("type")&&"post"!==this.getProp("type")&&!this.getProp("preview")&&!this.getProp("click")){if(!this.cookiesEnabled()&&!this.getProp("test"))return!1;var a=this.getCookie("om-global-cookie"),b=this.getCookie("om-"+this.getProp("migrated_id")),c=this.getCookie("om-"+this.getProp("id")),d=this.getProp("second"),e=this.getProp("test"),f=this.getProp("type");if(this.isMobile()&&!this.getProp("mobile"))return!1;if(!this.isMobile()&&this.getProp("mobile"))return!1;if(d&&!e&&!this.getCookie("om-second-"+this.getProp("id")))return this.createCookie("om-second-"+this.getProp("id"),!0,this.getProp("cookie")),!1;if((a||b||c)&&!e&&"slide"!==f)return!1}return!0},this.inject=function(){var a=this,b=a.getProp("$");a.normalize();var c=a.getProp("optin"),d=a.getProp("html"),e=b("#om-"+c+"-holder");if(0!==e.length){a.setVisibilityDefaults(),a.shortcodes(),e.append(d),a.outbound();var f=a.getProp("parsing_shortcode"),g=!1;f||g?a.poll(function(){a.getProp("parsing_shortcode")||g||(g=!0,a.load())},500):a.load()}},this.normalize=function(){var a=this,b=a.getProp("$"),c=a.getProp("original_optin"),d=a.getProp("optin");c!==d&&b("#om-"+c+"-holder").attr("id","om-"+d+"-holder")},this.outbound=function(){var a=this,b=a.getProp("$");b(document).find(".manual-optin-trigger, .om-monster-link").each(function(a,c){var d=b(this),e=d.data("optin-slug");if(e){var f=e.replace("-","_");if(!OptinMonsterAppLinkSlugs.hasOwnProperty(f)&&window[f]){if(!window[f].getProp("click"))return;OptinMonsterAppLinkSlugs[f]=window[f]}}}),b(document).on("click",".manual-optin-trigger, .om-monster-link",function(a){a.preventDefault();var c=b(this),d=c.data("optin-slug");if(d){var e=d.replace("-","_");OptinMonsterAppLinkSlugs.hasOwnProperty(e)&&OptinMonsterAppLinkSlugs[e].open(!0)}})},this.shortcodes=function(){var a=this,b=this.getProp("optin_js");if(window[b+"_shortcode"]){a.setProp("parsing_shortcode",!0);var c={action:"shortcode",nonce:omapi_localized.nonce,html:a.getProp("html")},d=this.shortcodeSuccess(a),e=this.shortcodeError(a);a.requestCORS(omapi_localized.ajax,c,d,e)}},this.shortcodeSuccess=function(a){return function(b){if(b){var c=a.getProp("$"),d=a.getProp("optin"),e=c("#om-"+d+"-holder");e.html(b)}a.setProp("parsing_shortcode",!1)}},this.shortcodeError=function(a){return function(b,c,d){return a.trigger("OptinMonsterShortcodeError"),console.log(b)}},this.pickRandomKey=function(a){return Math.floor(Math.random()*a.length)},this.fonts=function(a){var b=this,c=b.getProp("fonts"),a=a||!1,d=!1;if(c.length>0){var e=document.createElement("script");e.src="//ajax.googleapis.com/ajax/libs/webfont/1.5.6/webfont.js",e.onload=e.onreadystatechange=function(){var c=this.readyState;if(!c||"complete"==c||"loaded"==c)try{d||(WebFont.load({google:{families:[b.getProp("fonts")]}}),b.trigger("OptinMonsterFontsLoaded"),a?b.inject():b.load(),d=!0)}catch(e){}},(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(e)}else a?b.inject():b.load()},this.load=function(){var a=this;a.sanitize(),a.iehotfix(),a.open()},this.sanitize=function(){var a=this,b=a.getProp("$"),c=b("#om-"+a.getProp("optin")),d=b("#om-"+a.getProp("optin")).find(":submit"),e=d.attr("name"),f=d.attr("id");"submit"==e&&c.find(":submit").attr("name","submit-om"),"submit"==f&&c.find(":submit").attr("id","submit-om")},this.iehotfix=function(){this.isIE()&&(this.loadPlaceholder(),this.doPlaceholder())},this.open=function(a){var b=this,c=b.getProp("exit"),d=b.getProp("click"),e=b.getProp("optin_js"),f="slide"==b.getProp("type")?0:b.getProp("delay"),g=b.getProp("scroll"),h=(b.getProp("$"),!1),a=a||!1;OptinMonsterAppOptins.hasOwnProperty(e)&&!0===OptinMonsterAppOptins[e].visible||((a||c)&&(f=0),(!d||a)&&setTimeout(function(){"mobile"!==b.getProp("type")&&b.appendHolder(),b.getProp("custom")&&b.prepareCustomOptin(),b.trigger("OptinMonsterLoaded"),!c||d||a?g?b.poll(function(){if(!h){var a=b.getScrollPercentage();a>=g&&(b.normalOpen(),h=!0)}},100):b.normalOpen():b.exitOpen()},f||0))},this.exitOpen=function(){var a=this,b=a.getProp("$"),c=a.getProp("optin_js"),d=!1;b(document).on("mouseleave",function(b){b.clientY>(a.getProp("exit_sensitivity")||20)||a.getCookie("om-"+a.getProp("id"))||a.getCookie("om-global-cookie")||OptinMonsterAppOptins.hasOwnProperty(c)&&!0===OptinMonsterAppOptins[c].visible||d||(d=!0,a.show(!0))})},this.normalOpen=function(){var a=this,b=a.getProp("type"),c=a.getProp("$");"mobile"!=b||a.getProp("preview")?a.show():(a.setProp("dw",c(document).width()),c(window).scrollTop()?c(window).on("scroll.omMobile",function(){clearTimeout(c.data(this,"omScrollTimer")),c.data(this,"omScrollTimer",setTimeout(function(){a.show()},300))}):a.show())},this.show=function(a){var b=this,c=b.getProp("$"),d=b.getProp("id"),e=b.getProp("optin"),f=b.getProp("optin_js"),g=b.getProp("type"),h=b.getProp("theme"),i=b.getProp("preview"),a=a||!1;if(!(OptinMonsterAppOptins.hasOwnProperty(f)&&!0===OptinMonsterAppOptins[f].visible||b.getCookie("om-global-cookie")&&!b.getProp("click")&&!i&&"sidebar"!==g&&"post"!==g)){if(b.trigger("OptinMonsterBeforeShow"),a){if("lightbox"==g||"canvas"==g)b.hasVisiblePopup()||(c("#om-"+e).show().css("display","block"),c("#om-"+e+" #om-"+g+"-"+h+"-optin").show().css("display","block"),b.positionOptin(),OptinMonsterAppOptins[b.getProp("optin_js")].visible=!0,b.fixFocusJumping(),b.trigger("OptinMonsterOnShow"),b.socialServices());else if(("footer"==g||"slide"==g)&&!b.getCookie("om-"+d+"-closed")){c("#om-"+e+" #om-"+g+"-"+h+"-optin").show().css("display","block");var j=i?78:0;c("#om-"+e).css("bottom","-"+c("#om-"+e).outerHeight()+"px").show().animate({bottom:parseInt(j)},300,function(){OptinMonsterAppOptins[b.getProp("optin_js")].visible=!0,b.trigger("OptinMonsterOnShow"),"slide"==g&&(b.slideHandlers(),setTimeout(function(){b.showSlide()},0)),b.socialServices()})}}else if("lightbox"==g||"canvas"==g||"mobile"==g)b.hasVisiblePopup()||("mobile"==g?(c("#om-"+e+", #om-"+e+"-overlay").appendTo("body"),c("#om-"+e+"-overlay").height(c(document).height()).show().css("display","block"),c("#om-"+e).show().css("display","block"),i||b.fixMobileScaling(),c("#om-"+g+"-"+h+"-optin").hide().fadeIn(300,function(){c("#om-"+e).css("top",c(document).scrollTop()),OptinMonsterAppOptins[b.getProp("optin_js")].visible=!0,b.trigger("OptinMonsterOnShow"),b.socialServices()})):c("#om-"+e).fadeIn(300,function(){c(this).find("#om-"+g+"-"+h+"-optin").show().css("display","block"),b.positionOptin(),OptinMonsterAppOptins[b.getProp("optin_js")].visible=!0,b.fixFocusJumping(),b.trigger("OptinMonsterOnShow"),b.socialServices()}));else if("footer"==g||"slide"==g){if(!b.getCookie("om-"+d+"-closed")||i){c("#om-"+e+" #om-"+g+"-"+h+"-optin").show().css("display","block");var j=i?78:0;c("#om-"+e).css("bottom","-"+c("#om-"+e).outerHeight()+"px").show().animate({bottom:parseInt(j)},300,function(){OptinMonsterAppOptins[b.getProp("optin_js")].visible=!0,b.trigger("OptinMonsterOnShow"),"slide"==g&&(b.slideHandlers(),setTimeout(function(){b.showSlide()},b.getProp("delay")||0)),b.socialServices()})}}else b.trigger("OptinMonsterOnShow"),b.socialServices();b.submit(),b.close(),b.track()}},this.fixMobileScaling=function(){var a=(this.getProp("type"),this.getProp("optin"),this.getProp("$")),b=a('meta[name="viewport"]');b.length>0||(a("head").append('<meta id="optin-monster-saas-viewport" name="viewport" content="width=device-width, initial-scale=1.0">'),a("html, body").css("overflow","hidden"))},this.fixFocusJumping=function(){{var a=this,b=a.getProp("optin"),c=a.getProp("type"),d=a.getProp("$");d("body").css("position")}a.isMobile()&&("lightbox"===c||"canvas"===c)&&(a.setProp("dt",d(document).scrollTop()),d("html, body").css("overflow","hidden"),window.scrollTo(0,0),d(document).on("focus.omFocusJump","input, select, textarea",function(){d("#om-"+b).css({position:"absolute",height:d(document).height()})}).on("blur.omFocusJump","input, select, textarea",function(){d("#om-"+b).css({position:"fixed",height:"100%"}),d("html, body").css("overflow","hidden")}))},this.positionOptin=function(){var a=this,b=a.getProp("$"),c=(a.getProp("id"),a.getProp("optin")),d=a.getProp("type"),e=a.getProp("theme"),f=a.getProp("preview"),g=b("#om-"+c+" .om-theme-"+e).width(),h=b("#om-"+c+" .om-theme-"+e).height(),i=b(window).height(),j=f?(i-h)/2-39:(i-h)/2;h>=i?"lightbox"==d||"canvas"==d?(b("#om-"+c).css({overflow:"scroll"}),b("#om-"+c+" .optin-monster-saas-powered-by").css({bottom:-55,paddingBottom:20}),b("#om-"+c+" .om-theme-"+e+", #om-"+c+" .optin-monster-saas-success-overlay").css({top:20,left:(b(window).width()-g)/2,position:"absolute"}),b(window).resize(function(){b("#om-"+c).css({overflow:"scroll"}),b("#om-"+c+" .optin-monster-saas-powered-by").css({bottom:-55,paddingBottom:20}),b("#om-"+c+" .om-theme-"+e+", #om-"+c+" .optin-monster-saas-success-overlay").css({top:20,left:(b(window).width()-b("#om-"+c+" .om-theme-"+e).width())/2,position:"absolute"})}),a.trigger("OptinMonsterPositionOptin")):a.trigger("OptinMonsterPositionOptin"):"lightbox"==d||"canvas"==d?(b("#om-"+c+" .om-theme-"+e+", #om-"+c+" .optin-monster-saas-success-overlay").css({top:j,left:(b(window).width()-g)/2}),b(window).resize(function(){var a=b("#om-"+c+" .om-theme-"+e).height(),d=b(window).height();a>=d?(b("#om-"+c).css({overflow:"scroll"}),b("#om-"+c+" .optin-monster-saas-powered-by").css({bottom:-55,paddingBottom:20}),b("#om-"+c+" .om-theme-"+e+", #om-"+c+" .optin-monster-saas-success-overlay").css({top:20,left:(b(window).width()-b("#om-"+c+" .om-theme-"+e).width())/2,position:"absolute"})):(j=f?(b(window).height()-b("#om-"+c+" .om-theme-"+e).height())/2-39:(b(window).height()-b("#om-"+c+" .om-theme-"+e).height())/2,b("#om-"+c+" .om-theme-"+e+", #om-"+c+" .optin-monster-saas-success-overlay").css({top:j,left:(b(window).width()-b("#om-"+c+" .om-theme-"+e).width())/2}))}),a.trigger("OptinMonsterPositionOptin")):a.trigger("OptinMonsterPositionOptin")},this.slideHandlers=function(){var a=this,b=a.getProp("$"),c=(a.getProp("id"),a.getProp("optin")),d=a.getProp("type"),e=a.getProp("theme");b(document).on("click.closeOptin","#om-"+c+" .om-slide-close-content, #om-"+c+" .om-close",function(f){f.target===this&&(f.preventDefault(),a.trigger("OptinMonsterBeforeClose"),b("#om-"+c+" #om-"+d+"-"+e+"-optin").removeClass("om-slide-open").addClass("om-slide-closed"),b("#om-"+c).find(".optin-monster-saas-success-overlay").remove(),a.cleanup())}),b(document).on("click.openOptin","#om-"+c+" .om-slide-open-content",function(f){f.target===this&&(f.preventDefault(),a.trigger("OptinMonsterBeforeShow"),b("#om-"+c+" #om-"+d+"-"+e+"-optin").removeClass("om-slide-closed").addClass("om-slide-open"),a.setProp("slide_open",!0))})},this.showSlide=function(){var a=this,b=a.getProp("$"),c=a.getProp("id"),d=a.getProp("optin"),e=a.getProp("type"),f=a.getProp("theme");(!a.getCookie("om-"+c)&&!a.getProp("slide_open")||a.getProp("preview"))&&(b("#om-"+d+" #om-"+e+"-"+f+"-optin").removeClass("om-slide-closed").addClass("om-slide-open"),a.setProp("slide_open",!0))},this.submit=function(){var a=this,b=a.getProp("$"),c=a.getProp("optin"),d=a.getProp("type"),e=a.getProp("theme"),f=a.getProp("custom");if(!a.getProp("preview"))if(f){var g=!1;b(document).on("submit.doCustomOptin",".om-custom-html-form form",function(e){return g?void("lightbox"==d||"canvas"==d?b("#om-"+c).fadeOut(300,a.onClose(a)):("footer"==d||"slide"==d)&&b("#om-"+c).animate({bottom:"-"+b("#om-"+c).outerHeight()+"px"},300,a.onClose(a))):(g=!0,a.trigger("OptinMonsterBeforeOptin"),a.optin(e.target,!0),e.preventDefault(),!1)})}else b(document).on("click.doOptin","#om-"+c+" #om-"+d+"-"+e+"-optin-submit",function(b){b.preventDefault(),a.trigger("OptinMonsterBeforeOptin"),a.optin(b.target)})},this.close=function(a){var b=this,c=b.getProp("$"),d=b.getProp("optin"),e=b.getProp("type"),a=a||!1;b.getProp("preview")||(a?"lightbox"==e||"canvas"==e||"mobile"==e?c("#om-"+d).fadeOut(300,b.onClose):("footer"==e||"slide"==e)&&c("#om-"+d).animate({bottom:"-"+c("#om-"+d).outerHeight()+"px"},300,b.onClose):c(document).on("click.closeOptin","#om-"+d+" .om-close, #om-"+d+".optin-monster-saas-overlay",function(a){a.target!==this||"mobile"==e&&c(a.target).hasClass("optin-monster-saas-overlay")||(a.preventDefault(),b.trigger("OptinMonsterBeforeClose"),"lightbox"==e||"canvas"==e||"mobile"==e?c("#om-"+d).fadeOut(300,b.onClose(b)):"footer"==e&&c("#om-"+d).animate({bottom:"-"+c("#om-"+d).outerHeight()+"px"},300,b.onClose(b)))}))},this.onClose=function(a){return function(){var b=a.getProp("$");if(a.cleanup(),"mobile"==a.getProp("type")){var b=a.getProp("$"),c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d=a.getProp("dw"),e=Math.round(c/d*100)/100;b(window).off("scroll.omMobile"),b("#optin-monster-saas-viewport").length>0&&(b("#optin-monster-saas-viewport").attr("content","width=device-width, initial-scale="+e+", minimum-scale="+e+", maximum-scale="+e),b("html, body").css("overflow",""),setTimeout(function(){b("#optin-monster-saas-viewport").attr("content","width=device-width, maximum-scale=10.0")},1e3)),b("#om-"+a.getProp("optin")+"-overlay").hide()}a.isMobile()&&(("lightbox"==a.getProp("type")||"canvas"==a.getProp("type"))&&b(document).scrollTop(a.getProp("dt")),b(document).off("focus.omFocusJump"),b(document).off("blur.omFocusJump"),b("html, body").css("overflow","")),a.trigger("OptinMonsterOnClose")}},this.cleanup=function(a){var b=this,c=b.getProp("$"),d=b.getProp("id"),e=a||!1;OptinMonsterAppOptins[b.getProp("optin_js")].visible=!1,"mobile"==b.getProp("type")&&c(window).off("scroll.omMobile"),0!==b.getProp("cookie")&&(b.createCookie("om-"+d,!0,b.getProp("cookie")),b.getProp("migrated_id")&&b.createCookie("om-"+b.getProp("migrated_id"),!0,b.getProp("cookie")),b.getProp("clones")&&c.each(b.getProp("clones"),function(a,c){0!==c.length&&b.createCookie("om-"+c,!0,b.getProp("cookie"))}),b.getProp("global_cookie")&&e&&b.createCookie("om-global-cookie",!0,b.getProp("global_cookie")),e&&"slide"==b.getProp("type")&&b.createCookie("om-"+d+"-closed",!0,b.getProp("cookie")),b.trigger("OptinMonsterCleanup"))},this.track=function(a){if(!this.getProp("tracked")&&!this.getProp("preview")){var b=this,c=b.getProp("ga_uaid"),a=a||!1;b.trackGoogleAnalytics(c,a),b.trigger("OptinMonsterTracked")}},this.trackGoogleAnalytics=function(a,b){var c=this,d=b?"conversion":"impression",e=c.getProp("campaign")||c.getProp("optin"),f=c.getProp("ga_init");window.ga&&(f||(ga("create",a,"auto",{name:"omTracker"}),ga("omTracker.set",{appName:c.getProp("app_name"),appId:c.getProp("app_id"),appVersion:c.getProp("app_version")}),c.setProp("ga_init",!0)),ga("omTracker.send","event",e,d,c.getProp("id").toString()),c.trigger("impression"==d?"OptinMonsterTrackedImpression":"OptinMonsterTrackedConversion"))},this.optin=function(a,b){var c=this,d=c.getProp("$"),e=c.getProp("optin"),b=b||!1;if(!c.getProp("preview")){c.setProp("convert_target",a),c.loading(a);var f={optin_id:c.getProp("id"),post_id:c.getProp("post_id"),referrer:window.location.href,user_agent:navigator.userAgent,previous:document.referrer,email:d("#om-"+e+" #om-"+c.getProp("type")+"-"+c.getProp("theme")+"-optin-email").val(),name:d("#om-"+e+" #om-"+c.getProp("type")+"-"+c.getProp("theme")+"-optin-name").val()},g=c.getProp("api_convert")+c.getProp("id");success=!1,j=!1;var h=d("#om-"+e).find(":input"),i={};if(d.each(h,function(a,b){var c=d(this).attr("name");c&&(i[c]=d(this).val())}),d.isEmptyObject(i)||(f.fields=i),b)success=c.optinCustomSuccess(c,a);else{var j=c.verify();if(j)return c.error(a,j);success=c.optinSuccess(c,a),j=c.optinError(c,a)}c.setProp("optin_data",f),c.trigger("OptinMonsterPreOptin"),c.requestCORS(g,c.getProp("optin_data"),success,j)}},this.error=function(a,b){{var c=this,d=c.getProp("$"),e=d(a);c.getProp("optin")}c.removeLoading(a),e.parent().append('<p class="optin-monster-saas-error" style="font-family:Georgia;font-size:13px;font-style:italic;color:#ff0000;margin:10px 0;text-align:center;line-height:18px;">'+b+"</p>"),c.trigger("OptinMonsterOnError")},this.loading=function(a){var b=this,c=b.getProp("$"),d=c(a),e=d.position(),f=parseInt(d.css("marginTop")),g=d.outerWidth(),h=d.outerHeight();c("#om-"+b.getProp("optin")).find(".optin-monster-saas-error").remove(),d.after('<span class="optin-monster-saas-loading"></span>').css("opacity",".25"),c("#om-"+b.getProp("optin")).find(".optin-monster-saas-loading").css({width:g,height:h,top:e.top+f,left:e.left,background:"url("+b.getProp("preloader")+") no-repeat 50% 50%",position:"absolute",zIndex:84736365452,backgroundSize:"20px"})},this.verify=function(){var a=this,b=a.getProp("$"),c=a.getProp("optin"),d=a.getProp("type"),e=a.getProp("theme"),f=b("#om-"+c+" #om-"+d+"-"+e+"-optin-name"),g=b("#om-"+c+" #om-"+d+"-"+e+"-optin-email"),h=b("#om-"+d+"-"+e+"-optin").find('input[name="email"]').val(),i=b("#om-"+d+"-"+e+"-optin").find('input[name="website"]').val(),j=!1;return f&&f.length>0&&0==f.val().length&&(j=a.getProp("name_error")||a.getProp("error")),g&&g.length>0&&(0!=g.val().length&&a.isValidEmail(g.val())||(j=a.getProp("email_error")||a.getProp("error"))),(h&&h.length>0||i&&i.length>0)&&(j=a.getProp("bot_error")||a.getProp("error")),j},this.removeLoading=function(a){var b=this,c=b.getProp("$"),d=c(a);d.css("opacity","1"),c("#om-"+b.getProp("optin")).find(".optin-monster-saas-loading").remove()},this.optinJSON=function(){},this.optinSuccess=function(a,b){{var c=a.getProp("$");a.getProp("optin"),a.getProp("type"),a.getProp("theme")}return function(d){if(!d||c.isEmptyObject(d))return a.error(b,a.getProp("error"));if(d&&d.error)return a.error(b,d.error);if(a.cleanup(!0),a.trigger("OptinMonsterOptinSuccess"),a.getProp("ga_id")&&a.trackGoogleAnalytics(a.getProp("ga_uaid"),!0),a.getProp("redirect")){a.trigger("OptinMonsterOnRedirect");var e=a.getProp("redirect"),f=a.getProp("redirect_pass");if(f&&d&&d.success){var g="?";data=a.getProp("optin_data"),data.hasOwnProperty("email")&&data.email.length>0&&(e=e+g+"om_email="+data.email,g="&"),data.hasOwnProperty("name")&&data.name.length>0&&(e=e+g+"om_name="+encodeURIComponent(data.name))}window.location.href=e}else a.getProp("success")?a.successMessage(b):(a.close(!0),a.removeLoading(b)),a.trigger("OptinMonsterOptinSuccessClose")}},this.successMessage=function(a){var b=this,c=b.getProp("$"),d=b.getProp("optin"),e=b.getProp("type"),f=b.getProp("theme"),g=c("#om-"+d+" #om-"+e+"-"+f+"-optin"),h=g.position(),i=g.outerWidth(),j=g.outerHeight(),k="sidebar"==e||"post"==e?7271832:0xe8da821f56;"slide"!==e&&c("#om-"+d).find(".om-close").remove();var l="sidebar"==e||"post"==e?'<div class="optin-monster-saas-success-overlay" style="display:none;"></div>':'<div class="optin-monster-saas-success-overlay" style="display:none;"><a href="#" class="om-close om-success-close">&times;</a></div>',m=b.getProp("success");g.after(l),c("#om-"+d).find(".optin-monster-saas-success-overlay").css({width:i,height:j,top:h.top,left:h.left,background:"#fff",position:"absolute",zIndex:k,padding:"0px 20px",opacity:0,display:"block"}).append('<div class="optin-monster-saas-success-message">'+m+"</div>"),c("#om-"+d).find(".optin-monster-saas-success-message").css({"margin-top":(j-c("#om-"+d).find(".optin-monster-saas-success-message").height())/2}),c("#om-"+d).find(".optin-monster-saas-success-overlay").fadeTo(300,1,function(){b.removeLoading(a),b.socialServices()}),b.poll(function(){c(window).resize(function(){c(".optin-monster-saas-success-overlay").css({width:c("#om-"+e+"-"+f+"-optin").outerWidth(),height:c("#om-"+e+"-"+f+"-optin").outerHeight(),top:c("#om-"+e+"-"+f+"-optin").position().top,left:c("#om-"+e+"-"+f+"-optin").position().left}),c(".optin-monster-saas-success-message").css({"margin-top":(c("#om-"+e+"-"+f+"-optin").outerHeight()-c(".optin-monster-saas-success-message").height())/2})})},300)},this.optinCustomSuccess=function(a,b){var c=a.getProp("$");return function(d){a.trigger("OptinMonsterOptinSuccess"),a.getProp("ga_id")&&a.trackGoogleAnalytics(a.getProp("ga_uaid"),!0),c(b).submit()}},this.optinError=function(a,b){a.getProp("$"),a.getProp("optin"),a.getProp("type"),a.getProp("theme");return function(c,d,e){return a.trigger("OptinMonsterOptinError"),a.error(b,a.getProp("ajax_error")+c.responseJSON.error)}},this.requestCORS=function(a,b,c,d){var e=this,f=e.getProp("$"),b=b||!1,g={url:a,cache:!1,type:"POST",timeout:3e4,data:b},c=c||!1,d=d||!1;c&&(g.success=c),d&&(g.error=d),f.ajax(g)},this.requestJSONP=function(a,b,c){var d=this,e=d.getProp("$"),f={url:a,cache:!1,type:"GET",dataType:"json",timeout:3e4,beforeSend:function(a,b){var c=b.url.split("?");return b.url=c[0],b}},b=b||!1,c=c||!1;b&&(f.success=b),c&&(f.error=c),e.ajax(f)},this.appendHolder=function(){var a=this.getProp("$");type=this.getProp("type"),styles=!1,"lightbox"==type||"canvas"==type?styles={position:"fixed","z-index":"7371832",top:"0",left:"0",zoom:"1",width:"100%",height:"100%",margin:"0",padding:"0"}:"footer"==type&&(styles={position:"fixed","z-index":"7371832",bottom:"0",left:"0",zoom:"1",width:"100%",margin:"0",padding:"0"}),styles&&a("#om-"+this.getProp("optin")).css(styles).appendTo("body"),this.trigger("OptinMonsterAppendHolder")},this.prepareCustomOptin=function(){var a=this,b=a.getProp("optin"),c=a.getProp("$"),d=c("#om-"+b+" input[data-om-render=label]");d.length>0&&(a.loadElementChange(),d.each(function(){c.fn.changeElementType&&c(this).changeElementType("label")}),c("#om-"+b+" label[data-om-render=label]").each(function(){c(this).text(c(this).attr("value")).removeAttr("value type")})),a.trigger("OptinMonsterCustomDone")},this.poll=function(){var a=0;return function(b,c){clearInterval(a),a=setInterval(b,c)}}(),this.isValidEmail=function(a){return new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(a)},this.createCookie=function(a,b,c){if(!this.getProp("test")){if(c){var d=new Date;d.setTime(d.getTime()+24*c*60*60*1e3);var e="; expires="+d.toGMTString()}else var e="";document.cookie=a+"="+b+e+"; path=/"}},this.getCookie=function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1,e.length);if(0==e.indexOf(b))return e.substring(b.length,e.length)}return null},this.removeCookie=function(a){this.createCookie(a,"",-1)},this.log=function(a){"object"==typeof console?console.log(a):""},this.trigger=function(a){var b=this;b["public"].ejQuery(document).trigger(a,[b["public"],b])},this.loadElementChange=function(){!function(a){a.fn.changeElementType=function(b){var c={};a.each(this[0].attributes,function(a,b){c[b.nodeName]=b.nodeValue}),this.replaceWith(function(){return a("<"+b+"/>",c).append(a(this).contents())})}}(this.getProp("$"))},this.cookiesEnabled=function(){var a=navigator.cookieEnabled?!0:!1;return"undefined"!=typeof navigator.cookieEnabled||a||(document.cookie="testcookie",a=-1!=document.cookie.indexOf("testcookie")?!0:!1),a},this.getProp=function(a){return this["public"].hasOwnProperty(a)?this["public"][a]:!1},this.setProp=function(a,b){this["public"][a]=b},this.isMobile=function(){var a=!1;return function(b){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(b)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(b.substr(0,4)))&&(a=!0)}(navigator.userAgent||navigator.vendor||window.opera),a},this.hasVisiblePopup=function(){var a=[],b=this.getProp("$"),c=0;for(var d in OptinMonsterAppOptins)OptinMonsterAppOptins[d].hasOwnProperty("visible")&&!0===OptinMonsterAppOptins[d].visible&&(a[c]=OptinMonsterAppOptins[d].type,c++);return b.inArray("lightbox",a)>-1||b.inArray("canvas",a)>-1||!1},this.loadPlaceholder=function(){var a=this,b=a.getProp("$");!function(a,b,c){function d(a){var b={},d=/^jQuery\d+$/;return c.each(a.attributes,function(a,c){c.specified&&!d.test(c.name)&&(b[c.name]=c.value)}),b}function e(a,b){var d=this,e=c(d);if(d.value==e.attr("placeholder")&&e.hasClass("placeholder"))if(e.data("placeholder-password")){if(e=e.hide().next().show().attr("id",e.removeAttr("id").data("placeholder-id")),a===!0)return e[0].value=b;e.focus()}else d.value="",e.removeClass("placeholder"),d==g()&&d.select()}function f(){var a,b=this,f=c(b),g=this.id;if(""==b.value){if("password"==b.type){if(!f.data("placeholder-textinput")){try{a=f.clone().attr({type:"text"})}catch(h){a=c("<input>").attr(c.extend(d(this),{type:"text"}))}a.removeAttr("name").data({"placeholder-password":f,"placeholder-id":g}).bind("focus.placeholder",e),f.data({"placeholder-textinput":a,"placeholder-id":g}).before(a)}f=f.removeAttr("id").hide().prev().attr("id",g).show()}f.addClass("placeholder"),f[0].value=f.attr("placeholder")}else f.removeClass("placeholder")}function g(){try{return b.activeElement}catch(a){}}var h,i,j="[object OperaMini]"==Object.prototype.toString.call(a.operamini),k="placeholder"in b.createElement("input")&&!j,l="placeholder"in b.createElement("textarea")&&!j,m=c.fn,n=c.valHooks,o=c.propHooks;k&&l?(i=m.placeholder=function(){return this},i.input=i.textarea=!0):(i=m.placeholder=function(){var a=this;return a.filter((k?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":e,"blur.placeholder":f}).data("placeholder-enabled",!0).trigger("blur.placeholder"),a},i.input=k,i.textarea=l,h={get:function(a){var b=c(a),d=b.data("placeholder-password");return d?d[0].value:b.data("placeholder-enabled")&&b.hasClass("placeholder")?"":a.value},set:function(a,b){var d=c(a),h=d.data("placeholder-password");return h?h[0].value=b:d.data("placeholder-enabled")?(""==b?(a.value=b,a!=g()&&f.call(a)):d.hasClass("placeholder")?e.call(a,!0,b)||(a.value=b):a.value=b,d):a.value=b}},k||(n.input=h,o.value=h),l||(n.textarea=h,o.value=h),c(function(){c(b).delegate("form","submit.placeholder",function(){var a=c(".placeholder",this).each(e);setTimeout(function(){a.each(f)},10)})}),c(a).bind("beforeunload.placeholder",function(){c(".placeholder").each(function(){this.value=""})}))}(this,document,b)},this.doPlaceholder=function(){var a=this,b=a.getProp("$"),c=b("#om-"+a.getProp("optin")+" input");c.length>0&&b.fn.placeholder&&c.each(function(){b(this).placeholder()}),a.trigger("OptinMonsterPlaceholderDone")},this.isIE=function(){return"undefined"!=typeof om_ie_browser},this.websiteMatch=function(){var a=this.getProp("site"),b=window.location.hostname;return a.hasOwnProperty("domain")?this.websiteWhitelisted()?!0:b.indexOf(a.domain)>-1?!0:(this.log("[OptinMonster] The optin campaign requested does not have permission to load on this domain."),!1):(this.log("[OptinMonster] No site has been specified for this optin campaign. The optin campaign has ceased loading."),!1)},this.websiteWhitelisted=function(){var a=this.getProp("$"),b=window.location.hostname,c=!1,d=[".dev",".local","local.","staging.","localhost","127.0.0.1"];return a.each(d,function(a,d){
2
  return b.indexOf(d)>-1?(c=!0,!1):void 0}),c},this.pageSlugMatch=function(){var a=this.getProp("page_slug"),b=this.getProp("page_match"),c=window.location.pathname.substr(1);return b?a!==c?(this.log("[OptinMonster] The page slug entered does not match the request URI exactly. The optin campaign has ceased loading."),!1):!0:c.indexOf(a)>-1?!0:(this.log("[OptinMonster] The page slug entered does not exist in the request URI. The optin campaign has ceased loading."),!1)},this.referrerMatch=function(){var a=this.getProp("$"),b=this.getProp("referrer_domain"),c=b.split(","),d=document.referrer||!1,e=!1;return d?(a.each(c,function(a,b){return d.indexOf(b)>-1?(e=!0,!1):void 0}),e?!0:(this.log("[OptinMonster] The page referrer does not match the requested domain referrer. The optin campaign has ceased loading."),!1)):(this.log("[OptinMonster] No referrer was specified for this page. The optin campaign has ceased loading."),!1)},this.socialServices=function(){{var a=this;a.getProp("$")}"undefined"!=typeof FB&&null!=FB&&FB.hasOwnProperty("XFBML")&&(console.log("FB parsing.."),FB.XFBML.parse()),"undefined"!=typeof twttr&&null!=twttr&&twttr.hasOwnProperty("widgets")&&(console.log("Twitter loading.."),twttr.widgets.load()),a.trigger("OptinMonsterSocial")},this.getScrollPercentage=function(){var a=this.getProp("$"),b=a(window).scrollTop()||0,c=a(document).height(),d=a(window).height();return Math.round(b/(c-d)*100)},this.setDefaults=function(){var a="https:"==document.location.protocol?"https://":"http://",b=this.getProp("staging")?"staging-api":"api";this.setProp("api_optin",a+b+".optinmonster.com/v1/optin/"),this.setProp("api_convert",a+b+".optinmonster.com/v1/convert/")}}var OptinMonsterAppOptins={},OptinMonsterAppLinkSlugs={},om_loaded=!0;
1
+ /*! built on Thu Apr 30 2015 14:24:10 */function OptinMonsterApp(){this["public"]={},this.init=function(a){for(key in a)this["public"][key]=a[key];this.setDefaults(),this.getProp("preview")?this.run():this.loadjQuery()},this.run=function(){this.setVisibilityDefaults(),this.loadjQuery()},this.setVisibilityDefaults=function(){var a=this,b=a.getProp("type");"slide"==b&&this.setProp("slide_open",!1),OptinMonsterAppOptins[this.getProp("optin_js")]={type:b,visible:!1}},this.loadjQuery=function(){var a=this,b=!1;if(void 0===window.jQuery){var c=document.createElement("script");c.src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js",c.onload=c.onreadystatechange=function(){var c=this.readyState;if(!c||"complete"==c||"loaded"==c)try{b||(a.loadjQueryHandler(!1),b=!0)}catch(d){}},(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(c)}else if("1.11.2"!==window.jQuery.fn.jquery){this["public"].ejQuery=window.jQuery;var c=document.createElement("script");c.src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js",c.onload=c.onreadystatechange=function(){var c=this.readyState;if(!c||"complete"==c||"loaded"==c)try{b||(a.loadjQueryHandler(!0),b=!0)}catch(d){}},(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(c)}else a["public"].$=a["public"].ejQuery=window.jQuery,a.loadApp()},this.loadjQueryHandler=function(a){a?(this["public"].$=window.jQuery.noConflict(!0),this.loadApp()):(jQuery=window.jQuery.noConflict(!0),this["public"].$=this["public"].ejQuery=jQuery,this.loadApp())},this.loadApp=function(){var a=this;a["public"].$(document).ready(function(b){a.runOptinMonster()})},this.runOptinMonster=function(){if(this.getProp("preview"))this.trigger("OptinMonsterInit"),this.fonts();else{var a=this.getProp("u").split("."),b=this.retrieveSuccess(this),c=this.retrieveError(this),d=a[0],e=a[1],f=this.getProp("api_optin")+d+"/"+e;this.requestJSONP(f,b,c)}},this.retrieveSuccess=function(a){var b=a.getProp("$");return function(c){var d=b.map(c,function(a,b){return[a]});a.setProp("original_id",d[0].output.id),a.setProp("original_optin",d[0].output.optin);var e=a.pickRandomKey(d);for(key in d[e])d[e].hasOwnProperty(key)&&(a["public"][key]=d[e][key]);for(prop in a["public"].output)a["public"].output.hasOwnProperty(prop)&&(a["public"][prop]=a["public"].output[prop]);a.canLoad()&&a.fonts(!0)}},this.retrieveError=function(a){a.getProp("$");return function(b,c,d){a.trigger("OptinMonsterRetrieveError"),console.log(b)}},this.canLoad=function(){if(!this.websiteMatch())return!1;if(this.getProp("page_slug").length>0&&!this.pageSlugMatch())return!1;if(this.getProp("referrer")&&!this.referrerMatch())return!1;if("sidebar"!==this.getProp("type")&&"post"!==this.getProp("type")&&!this.getProp("preview")&&!this.getProp("click")){if(!this.cookiesEnabled()&&!this.getProp("test"))return!1;var a=this.getCookie("om-global-cookie"),b=this.getCookie("om-"+this.getProp("migrated_id")),c=this.getCookie("om-"+this.getProp("id")),d=this.getProp("second"),e=this.getProp("test"),f=this.getProp("type");if(this.isMobile()&&!this.getProp("mobile"))return!1;if(!this.isMobile()&&this.getProp("mobile"))return!1;if(d&&!e&&!this.getCookie("om-second-"+this.getProp("id")))return this.createCookie("om-second-"+this.getProp("id"),!0,this.getProp("cookie")),!1;if((a||b||c)&&!e&&"slide"!==f)return!1}return!0},this.inject=function(){var a=this,b=a.getProp("$");a.normalize();var c=a.getProp("optin"),d=a.getProp("html"),e=b("#om-"+c+"-holder");if(0!==e.length){a.setVisibilityDefaults(),a.shortcodes(),e.append(d),a.outbound();var f=a.getProp("parsing_shortcode"),g=!1;f||g?a.poll(function(){a.getProp("parsing_shortcode")||g||(g=!0,a.load())},500):a.load()}},this.normalize=function(){var a=this,b=a.getProp("$"),c=a.getProp("original_optin"),d=a.getProp("optin");c!==d&&b("#om-"+c+"-holder").attr("id","om-"+d+"-holder")},this.outbound=function(){var a=this,b=a.getProp("$");b(document).find(".manual-optin-trigger, .om-monster-link").each(function(a,c){var d=b(this),e=d.data("optin-slug");if(e){var f=e.replace("-","_");if(!OptinMonsterAppLinkSlugs.hasOwnProperty(f)&&window[f]){if(!window[f].getProp("click"))return;OptinMonsterAppLinkSlugs[f]=window[f]}}}),b(document).on("click",".manual-optin-trigger, .om-monster-link",function(a){a.preventDefault();var c=b(this),d=c.data("optin-slug");if(d){var e=d.replace("-","_");OptinMonsterAppLinkSlugs.hasOwnProperty(e)&&OptinMonsterAppLinkSlugs[e].open(!0)}})},this.shortcodes=function(){var a=this,b=this.getProp("optin_js");if(window[b+"_shortcode"]){a.setProp("parsing_shortcode",!0);var c={action:"shortcode",nonce:omapi_localized.nonce,html:a.getProp("html")},d=this.shortcodeSuccess(a),e=this.shortcodeError(a);a.requestCORS(omapi_localized.ajax,c,d,e)}},this.shortcodeSuccess=function(a){return function(b){if(b){var c=a.getProp("$"),d=a.getProp("optin"),e=c("#om-"+d+"-holder");e.html(b)}a.setProp("parsing_shortcode",!1)}},this.shortcodeError=function(a){return function(b,c,d){return a.trigger("OptinMonsterShortcodeError"),console.log(b)}},this.pickRandomKey=function(a){return Math.floor(Math.random()*a.length)},this.fonts=function(a){var b=this,c=b.getProp("fonts"),a=a||!1,d=!1;if(c.length>0){var e=document.createElement("script");e.src="//ajax.googleapis.com/ajax/libs/webfont/1.5.6/webfont.js",e.onload=e.onreadystatechange=function(){var c=this.readyState;if(!c||"complete"==c||"loaded"==c)try{d||(WebFont.load({google:{families:[b.getProp("fonts")]}}),b.trigger("OptinMonsterFontsLoaded"),a?b.inject():b.load(),d=!0)}catch(e){}},(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(e)}else a?b.inject():b.load()},this.load=function(){var a=this;a.sanitize(),a.iehotfix(),a.open()},this.sanitize=function(){var a=this,b=a.getProp("$"),c=b("#om-"+a.getProp("optin")),d=b("#om-"+a.getProp("optin")).find(":submit"),e=d.attr("name"),f=d.attr("id");"submit"==e&&c.find(":submit").attr("name","submit-om"),"submit"==f&&c.find(":submit").attr("id","submit-om")},this.iehotfix=function(){this.isIE()&&(this.loadPlaceholder(),this.doPlaceholder())},this.open=function(a){var b=this,c=b.getProp("exit"),d=b.getProp("click"),e=b.getProp("optin_js"),f="slide"==b.getProp("type")?0:b.getProp("delay"),g=b.getProp("scroll"),h=(b.getProp("$"),!1),a=a||!1;OptinMonsterAppOptins.hasOwnProperty(e)&&!0===OptinMonsterAppOptins[e].visible||((a||c)&&(f=0),(!d||a)&&setTimeout(function(){"mobile"!==b.getProp("type")&&b.appendHolder(),b.getProp("custom")&&b.prepareCustomOptin(),b.trigger("OptinMonsterLoaded"),!c||d||a?g?b.poll(function(){if(!h){var a=b.getScrollPercentage();a>=g&&(b.normalOpen(),h=!0)}},100):b.normalOpen():b.exitOpen()},f||0))},this.exitOpen=function(){var a=this,b=a.getProp("$"),c=a.getProp("optin_js"),d=!1;b(document).on("mouseleave",function(b){b.clientY>(a.getProp("exit_sensitivity")||20)||a.getCookie("om-"+a.getProp("id"))||a.getCookie("om-global-cookie")||OptinMonsterAppOptins.hasOwnProperty(c)&&!0===OptinMonsterAppOptins[c].visible||d||(d=!0,a.show(!0))})},this.normalOpen=function(){var a=this,b=a.getProp("type"),c=a.getProp("$");"mobile"!=b||a.getProp("preview")?a.show():(a.setProp("dw",c(document).width()),c(window).scrollTop()?c(window).on("scroll.omMobile",function(){clearTimeout(c.data(this,"omScrollTimer")),c.data(this,"omScrollTimer",setTimeout(function(){a.show()},300))}):a.show())},this.show=function(a){var b=this,c=b.getProp("$"),d=b.getProp("id"),e=b.getProp("optin"),f=b.getProp("optin_js"),g=b.getProp("type"),h=b.getProp("theme"),i=b.getProp("preview"),a=a||!1;if(!(OptinMonsterAppOptins.hasOwnProperty(f)&&!0===OptinMonsterAppOptins[f].visible||b.getCookie("om-global-cookie")&&!b.getProp("click")&&!i&&"sidebar"!==g&&"post"!==g)){if(b.trigger("OptinMonsterBeforeShow"),a){if("lightbox"==g||"canvas"==g)b.hasVisiblePopup()||(c("#om-"+e).show().css("display","block"),c("#om-"+e+" #om-"+g+"-"+h+"-optin").show().css("display","block"),b.positionOptin(),OptinMonsterAppOptins[b.getProp("optin_js")].visible=!0,b.fixFocusJumping(),b.trigger("OptinMonsterOnShow"),b.socialServices());else if(("footer"==g||"slide"==g)&&!b.getCookie("om-"+d+"-closed")){c("#om-"+e+" #om-"+g+"-"+h+"-optin").show().css("display","block");var j=i?78:0;c("#om-"+e).css("bottom","-"+c("#om-"+e).outerHeight()+"px").show().animate({bottom:parseInt(j)},300,function(){OptinMonsterAppOptins[b.getProp("optin_js")].visible=!0,b.trigger("OptinMonsterOnShow"),"slide"==g&&(b.slideHandlers(),setTimeout(function(){b.showSlide()},0)),b.socialServices()})}}else if("lightbox"==g||"canvas"==g||"mobile"==g)b.hasVisiblePopup()||("mobile"==g?(c("#om-"+e+", #om-"+e+"-overlay").appendTo("body"),c("#om-"+e+"-overlay").height(c(document).height()).show().css("display","block"),c("#om-"+e).show().css("display","block"),i||b.fixMobileScaling(),c("#om-"+g+"-"+h+"-optin").hide().fadeIn(300,function(){c("#om-"+e).css("top",c(document).scrollTop()),OptinMonsterAppOptins[b.getProp("optin_js")].visible=!0,b.trigger("OptinMonsterOnShow"),b.socialServices()})):c("#om-"+e).fadeIn(300,function(){c(this).find("#om-"+g+"-"+h+"-optin").show().css("display","block"),b.positionOptin(),OptinMonsterAppOptins[b.getProp("optin_js")].visible=!0,b.fixFocusJumping(),b.trigger("OptinMonsterOnShow"),b.socialServices()}));else if("footer"==g||"slide"==g){if(!b.getCookie("om-"+d+"-closed")||i){c("#om-"+e+" #om-"+g+"-"+h+"-optin").show().css("display","block");var j=i?78:0;c("#om-"+e).css("bottom","-"+c("#om-"+e).outerHeight()+"px").show().animate({bottom:parseInt(j)},300,function(){OptinMonsterAppOptins[b.getProp("optin_js")].visible=!0,b.trigger("OptinMonsterOnShow"),"slide"==g&&(b.slideHandlers(),setTimeout(function(){b.showSlide()},b.getProp("delay")||0)),b.socialServices()})}}else b.trigger("OptinMonsterOnShow"),b.socialServices();b.submit(),b.close(),b.track()}},this.fixMobileScaling=function(){var a=(this.getProp("type"),this.getProp("optin"),this.getProp("$")),b=a('meta[name="viewport"]');b.length>0||(a("head").append('<meta id="optin-monster-saas-viewport" name="viewport" content="width=device-width, initial-scale=1.0">'),a("html, body").css("overflow","hidden"))},this.fixFocusJumping=function(){{var a=this,b=a.getProp("optin"),c=a.getProp("type"),d=a.getProp("$");d("body").css("position")}a.isMobile()&&("lightbox"===c||"canvas"===c)&&(a.setProp("dt",d(document).scrollTop()),d("html, body").css("overflow","hidden"),window.scrollTo(0,0),d(document).on("focus.omFocusJump","input, select, textarea",function(){d("#om-"+b).css({position:"absolute",height:d(document).height()})}).on("blur.omFocusJump","input, select, textarea",function(){d("#om-"+b).css({position:"fixed",height:"100%"}),d("html, body").css("overflow","hidden")}))},this.positionOptin=function(){var a=this,b=a.getProp("$"),c=(a.getProp("id"),a.getProp("optin")),d=a.getProp("type"),e=a.getProp("theme"),f=a.getProp("preview"),g=b("#om-"+c+" .om-theme-"+e).width(),h=b("#om-"+c+" .om-theme-"+e).height(),i=b(window).height(),j=f?(i-h)/2-39:(i-h)/2;h>=i?"lightbox"==d||"canvas"==d?(b("#om-"+c).css({overflow:"scroll"}),b("#om-"+c+" .optin-monster-saas-powered-by").css({bottom:-55,paddingBottom:20}),b("#om-"+c+" .om-theme-"+e+", #om-"+c+" .optin-monster-saas-success-overlay").css({top:20,left:(b(window).width()-g)/2,position:"absolute"}),b(window).resize(function(){b("#om-"+c).css({overflow:"scroll"}),b("#om-"+c+" .optin-monster-saas-powered-by").css({bottom:-55,paddingBottom:20}),b("#om-"+c+" .om-theme-"+e+", #om-"+c+" .optin-monster-saas-success-overlay").css({top:20,left:(b(window).width()-b("#om-"+c+" .om-theme-"+e).width())/2,position:"absolute"})}),a.trigger("OptinMonsterPositionOptin")):a.trigger("OptinMonsterPositionOptin"):"lightbox"==d||"canvas"==d?(b("#om-"+c+" .om-theme-"+e+", #om-"+c+" .optin-monster-saas-success-overlay").css({top:j,left:(b(window).width()-g)/2}),b(window).resize(function(){var a=b("#om-"+c+" .om-theme-"+e).height(),d=b(window).height();a>=d?(b("#om-"+c).css({overflow:"scroll"}),b("#om-"+c+" .optin-monster-saas-powered-by").css({bottom:-55,paddingBottom:20}),b("#om-"+c+" .om-theme-"+e+", #om-"+c+" .optin-monster-saas-success-overlay").css({top:20,left:(b(window).width()-b("#om-"+c+" .om-theme-"+e).width())/2,position:"absolute"})):(j=f?(b(window).height()-b("#om-"+c+" .om-theme-"+e).height())/2-39:(b(window).height()-b("#om-"+c+" .om-theme-"+e).height())/2,b("#om-"+c+" .om-theme-"+e+", #om-"+c+" .optin-monster-saas-success-overlay").css({top:j,left:(b(window).width()-b("#om-"+c+" .om-theme-"+e).width())/2}))}),a.trigger("OptinMonsterPositionOptin")):a.trigger("OptinMonsterPositionOptin")},this.slideHandlers=function(){var a=this,b=a.getProp("$"),c=(a.getProp("id"),a.getProp("optin")),d=a.getProp("type"),e=a.getProp("theme");b(document).on("click.closeOptin","#om-"+c+" .om-slide-close-content, #om-"+c+" .om-close",function(f){f.target===this&&(f.preventDefault(),a.trigger("OptinMonsterBeforeClose"),b("#om-"+c+" #om-"+d+"-"+e+"-optin").removeClass("om-slide-open").addClass("om-slide-closed"),b("#om-"+c).find(".optin-monster-saas-success-overlay").remove(),a.cleanup())}),b(document).on("click.openOptin","#om-"+c+" .om-slide-open-content",function(f){f.target===this&&(f.preventDefault(),a.trigger("OptinMonsterBeforeShow"),b("#om-"+c+" #om-"+d+"-"+e+"-optin").removeClass("om-slide-closed").addClass("om-slide-open"),a.setProp("slide_open",!0))})},this.showSlide=function(){var a=this,b=a.getProp("$"),c=a.getProp("id"),d=a.getProp("optin"),e=a.getProp("type"),f=a.getProp("theme");(!a.getCookie("om-"+c)&&!a.getProp("slide_open")||a.getProp("preview"))&&(b("#om-"+d+" #om-"+e+"-"+f+"-optin").removeClass("om-slide-closed").addClass("om-slide-open"),a.setProp("slide_open",!0))},this.submit=function(){var a=this,b=a.getProp("$"),c=a.getProp("optin"),d=a.getProp("type"),e=a.getProp("theme"),f=a.getProp("custom");if(!a.getProp("preview"))if(f){var g=!1;b(document).on("submit.doCustomOptin",".om-custom-html-form form",function(e){return g?void("lightbox"==d||"canvas"==d?b("#om-"+c).fadeOut(300,a.onClose(a)):("footer"==d||"slide"==d)&&b("#om-"+c).animate({bottom:"-"+b("#om-"+c).outerHeight()+"px"},300,a.onClose(a))):(g=!0,a.trigger("OptinMonsterBeforeOptin"),a.optin(e.target,!0),e.preventDefault(),!1)})}else b(document).on("click.doOptin","#om-"+c+" #om-"+d+"-"+e+"-optin-submit",function(b){b.preventDefault(),a.trigger("OptinMonsterBeforeOptin"),a.optin(b.target)})},this.close=function(a){var b=this,c=b.getProp("$"),d=b.getProp("optin"),e=b.getProp("type"),a=a||!1;b.getProp("preview")||(a?"lightbox"==e||"canvas"==e||"mobile"==e?c("#om-"+d).fadeOut(300,b.onClose):("footer"==e||"slide"==e)&&c("#om-"+d).animate({bottom:"-"+c("#om-"+d).outerHeight()+"px"},300,b.onClose):c(document).on("click.closeOptin","#om-"+d+" .om-close, #om-"+d+".optin-monster-saas-overlay",function(a){a.target!==this||"mobile"==e&&c(a.target).hasClass("optin-monster-saas-overlay")||(a.preventDefault(),b.trigger("OptinMonsterBeforeClose"),"lightbox"==e||"canvas"==e||"mobile"==e?c("#om-"+d).fadeOut(300,b.onClose(b)):"footer"==e&&c("#om-"+d).animate({bottom:"-"+c("#om-"+d).outerHeight()+"px"},300,b.onClose(b)))}))},this.onClose=function(a){return function(){var b=a.getProp("$");if(a.cleanup(),"mobile"==a.getProp("type")){var b=a.getProp("$"),c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d=a.getProp("dw"),e=Math.round(c/d*100)/100;b(window).off("scroll.omMobile"),b("#optin-monster-saas-viewport").length>0&&(b("#optin-monster-saas-viewport").attr("content","width=device-width, initial-scale="+e+", minimum-scale="+e+", maximum-scale="+e),b("html, body").css("overflow",""),setTimeout(function(){b("#optin-monster-saas-viewport").attr("content","width=device-width, maximum-scale=10.0")},1e3)),b("#om-"+a.getProp("optin")+"-overlay").hide()}a.isMobile()&&(("lightbox"==a.getProp("type")||"canvas"==a.getProp("type"))&&b(document).scrollTop(a.getProp("dt")),b(document).off("focus.omFocusJump"),b(document).off("blur.omFocusJump"),b("html, body").css("overflow","")),a.trigger("OptinMonsterOnClose")}},this.cleanup=function(a){var b=this,c=b.getProp("$"),d=b.getProp("id"),e=a||!1;OptinMonsterAppOptins[b.getProp("optin_js")].visible=!1,"mobile"==b.getProp("type")&&c(window).off("scroll.omMobile"),0!==b.getProp("cookie")&&(b.createCookie("om-"+d,!0,b.getProp("cookie")),b.getProp("migrated_id")&&b.createCookie("om-"+b.getProp("migrated_id"),!0,b.getProp("cookie")),b.getProp("clones")&&c.each(b.getProp("clones"),function(a,c){0!==c.length&&b.createCookie("om-"+c,!0,b.getProp("cookie"))}),b.getProp("global_cookie")&&e&&b.createCookie("om-global-cookie",!0,b.getProp("global_cookie")),e&&"slide"==b.getProp("type")&&b.createCookie("om-"+d+"-closed",!0,b.getProp("cookie")),b.trigger("OptinMonsterCleanup"))},this.track=function(a){if(!this.getProp("tracked")&&!this.getProp("preview")){var b=this,c=b.getProp("ga_uaid"),a=a||!1;b.trackGoogleAnalytics(c,a),b.trigger("OptinMonsterTracked")}},this.trackGoogleAnalytics=function(a,b){var c=this,d=b?"conversion":"impression",e=c.getProp("campaign")||c.getProp("optin"),f=c.getProp("ga_init");window.ga&&(f||(ga("create",a,"auto",{name:"omTracker"}),ga("omTracker.set",{appName:c.getProp("app_name"),appId:c.getProp("app_id"),appVersion:c.getProp("app_version")}),c.setProp("ga_init",!0)),ga("omTracker.send","event",e,d,c.getProp("id").toString()),c.trigger("impression"==d?"OptinMonsterTrackedImpression":"OptinMonsterTrackedConversion"))},this.optin=function(a,b){var c=this,d=c.getProp("$"),e=c.getProp("optin"),b=b||!1;if(!c.getProp("preview")){c.setProp("convert_target",a),c.loading(a);var f={optin_id:c.getProp("id"),post_id:c.getProp("post_id"),referrer:window.location.href,user_agent:navigator.userAgent,previous:document.referrer,email:d("#om-"+e+" #om-"+c.getProp("type")+"-"+c.getProp("theme")+"-optin-email").val(),name:d("#om-"+e+" #om-"+c.getProp("type")+"-"+c.getProp("theme")+"-optin-name").val()},g=c.getProp("api_convert")+c.getProp("id");success=!1,j=!1;var h=d("#om-"+e).find(":input"),i={};if(d.each(h,function(a,b){var c=d(this).attr("name");c&&(i[c]=d(this).val())}),d.isEmptyObject(i)||(f.fields=i),b)success=c.optinCustomSuccess(c,a);else{var j=c.verify();if(j)return c.error(a,j);success=c.optinSuccess(c,a),j=c.optinError(c,a)}c.setProp("optin_data",f),c.trigger("OptinMonsterPreOptin"),c.requestCORS(g,c.getProp("optin_data"),success,j)}},this.error=function(a,b){{var c=this,d=c.getProp("$"),e=d(a);c.getProp("optin")}c.removeLoading(a),e.parent().append('<p class="optin-monster-saas-error" style="font-family:Georgia;font-size:13px;font-style:italic;color:#ff0000;margin:10px 0;text-align:center;line-height:18px;">'+b+"</p>"),c.trigger("OptinMonsterOnError")},this.loading=function(a){var b=this,c=b.getProp("$"),d=c(a),e=d.position(),f=parseInt(d.css("marginTop")),g=d.outerWidth(),h=d.outerHeight();c("#om-"+b.getProp("optin")).find(".optin-monster-saas-error").remove(),d.after('<span class="optin-monster-saas-loading"></span>').css("opacity",".25"),c("#om-"+b.getProp("optin")).find(".optin-monster-saas-loading").css({width:g,height:h,top:e.top+f,left:e.left,background:"url("+b.getProp("preloader")+") no-repeat 50% 50%",position:"absolute",zIndex:84736365452,backgroundSize:"20px"})},this.verify=function(){var a=this,b=a.getProp("$"),c=a.getProp("optin"),d=a.getProp("type"),e=a.getProp("theme"),f=b("#om-"+c+" #om-"+d+"-"+e+"-optin-name"),g=b("#om-"+c+" #om-"+d+"-"+e+"-optin-email"),h=b("#om-"+d+"-"+e+"-optin").find('input[name="email"]').val(),i=b("#om-"+d+"-"+e+"-optin").find('input[name="website"]').val(),j=!1;return f&&f.length>0&&0==f.val().length&&(j=a.getProp("name_error")||a.getProp("error")),g&&g.length>0&&(0!=g.val().length&&a.isValidEmail(g.val())||(j=a.getProp("email_error")||a.getProp("error"))),(h&&h.length>0||i&&i.length>0)&&(j=a.getProp("bot_error")||a.getProp("error")),j},this.removeLoading=function(a){var b=this,c=b.getProp("$"),d=c(a);d.css("opacity","1"),c("#om-"+b.getProp("optin")).find(".optin-monster-saas-loading").remove()},this.optinJSON=function(){},this.optinSuccess=function(a,b){{var c=a.getProp("$");a.getProp("optin"),a.getProp("type"),a.getProp("theme")}return function(d){if(!d||c.isEmptyObject(d))return a.error(b,a.getProp("error"));if(d&&d.error)return a.error(b,d.error);if(a.cleanup(!0),a.trigger("OptinMonsterOptinSuccess"),a.getProp("ga_id")&&a.trackGoogleAnalytics(a.getProp("ga_uaid"),!0),a.getProp("redirect")){a.trigger("OptinMonsterOnRedirect");var e=a.getProp("redirect"),f=a.getProp("redirect_pass");if(f&&d&&d.success){var g="?";data=a.getProp("optin_data"),data.hasOwnProperty("email")&&data.email.length>0&&(e=e+g+"om_email="+data.email,g="&"),data.hasOwnProperty("name")&&data.name.length>0&&(e=e+g+"om_name="+encodeURIComponent(data.name))}window.location.href=e}else a.getProp("success")?a.successMessage(b):(a.close(!0),a.removeLoading(b)),a.trigger("OptinMonsterOptinSuccessClose")}},this.successMessage=function(a){var b=this,c=b.getProp("$"),d=b.getProp("optin"),e=b.getProp("type"),f=b.getProp("theme"),g=c("#om-"+d+" #om-"+e+"-"+f+"-optin"),h=g.position(),i=g.outerWidth(),j=g.outerHeight(),k="sidebar"==e||"post"==e?7271832:0xe8da821f56;"slide"!==e&&c("#om-"+d).find(".om-close").remove();var l="sidebar"==e||"post"==e?'<div class="optin-monster-saas-success-overlay" style="display:none;"></div>':'<div class="optin-monster-saas-success-overlay" style="display:none;"><a href="#" class="om-close om-success-close">&times;</a></div>',m=b.getProp("success");g.after(l),c("#om-"+d).find(".optin-monster-saas-success-overlay").css({width:i,height:j,top:h.top,left:h.left,background:"#fff",position:"absolute",zIndex:k,padding:"0px 20px",opacity:0,display:"block"}).append('<div class="optin-monster-saas-success-message">'+m+"</div>"),c("#om-"+d).find(".optin-monster-saas-success-message").css({"margin-top":(j-c("#om-"+d).find(".optin-monster-saas-success-message").height())/2}),c("#om-"+d).find(".optin-monster-saas-success-overlay").fadeTo(300,1,function(){b.removeLoading(a),b.socialServices()}),b.poll(function(){c(window).resize(function(){c(".optin-monster-saas-success-overlay").css({width:c("#om-"+e+"-"+f+"-optin").outerWidth(),height:c("#om-"+e+"-"+f+"-optin").outerHeight(),top:c("#om-"+e+"-"+f+"-optin").position().top,left:c("#om-"+e+"-"+f+"-optin").position().left}),c(".optin-monster-saas-success-message").css({"margin-top":(c("#om-"+e+"-"+f+"-optin").outerHeight()-c(".optin-monster-saas-success-message").height())/2})})},300)},this.optinCustomSuccess=function(a,b){var c=a.getProp("$");return function(d){a.trigger("OptinMonsterOptinSuccess"),a.getProp("ga_id")&&a.trackGoogleAnalytics(a.getProp("ga_uaid"),!0),c(b).submit()}},this.optinError=function(a,b){a.getProp("$"),a.getProp("optin"),a.getProp("type"),a.getProp("theme");return function(c,d,e){return a.trigger("OptinMonsterOptinError"),a.error(b,a.getProp("ajax_error")+c.responseJSON.error)}},this.requestCORS=function(a,b,c,d){var e=this,f=e.getProp("$"),b=b||!1,g={url:a,cache:!1,type:"POST",timeout:3e4,data:b},c=c||!1,d=d||!1;c&&(g.success=c),d&&(g.error=d),f.ajax(g)},this.requestJSONP=function(a,b,c){var d=this,e=d.getProp("$"),f={url:a,cache:!1,type:"GET",dataType:"json",timeout:3e4,beforeSend:function(a,b){var c=b.url.split("?");return b.url=c[0],b}},b=b||!1,c=c||!1;b&&(f.success=b),c&&(f.error=c),e.ajax(f)},this.appendHolder=function(){var a=this.getProp("$");type=this.getProp("type"),styles=!1,"lightbox"==type||"canvas"==type?styles={position:"fixed","z-index":"7371832",top:"0",left:"0",zoom:"1",width:"100%",height:"100%",margin:"0",padding:"0"}:"footer"==type&&(styles={position:"fixed","z-index":"7371832",bottom:"0",left:"0",zoom:"1",width:"100%",margin:"0",padding:"0"}),styles&&a("#om-"+this.getProp("optin")).css(styles).appendTo("body"),this.trigger("OptinMonsterAppendHolder")},this.prepareCustomOptin=function(){var a=this,b=a.getProp("optin"),c=a.getProp("$"),d=c("#om-"+b+" input[data-om-render=label]");d.length>0&&(a.loadElementChange(),d.each(function(){c.fn.changeElementType&&c(this).changeElementType("label")}),c("#om-"+b+" label[data-om-render=label]").each(function(){c(this).text(c(this).attr("value")).removeAttr("value type")})),a.trigger("OptinMonsterCustomDone")},this.poll=function(){var a=0;return function(b,c){clearInterval(a),a=setInterval(b,c)}}(),this.isValidEmail=function(a){return new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(a)},this.createCookie=function(a,b,c){if(!this.getProp("test")){if(c){var d=new Date;d.setTime(d.getTime()+24*c*60*60*1e3);var e="; expires="+d.toGMTString()}else var e="";document.cookie=a+"="+b+e+"; path=/"}},this.getCookie=function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];" "==e.charAt(0);)e=e.substring(1,e.length);if(0==e.indexOf(b))return e.substring(b.length,e.length)}return null},this.removeCookie=function(a){this.createCookie(a,"",-1)},this.log=function(a){"object"==typeof console?console.log(a):""},this.trigger=function(a){var b=this;b["public"].ejQuery(document).trigger(a,[b["public"],b])},this.loadElementChange=function(){!function(a){a.fn.changeElementType=function(b){var c={};a.each(this[0].attributes,function(a,b){c[b.nodeName]=b.nodeValue}),this.replaceWith(function(){return a("<"+b+"/>",c).append(a(this).contents())})}}(this.getProp("$"))},this.cookiesEnabled=function(){var a=navigator.cookieEnabled?!0:!1;return"undefined"!=typeof navigator.cookieEnabled||a||(document.cookie="testcookie",a=-1!=document.cookie.indexOf("testcookie")?!0:!1),a},this.getProp=function(a){return this["public"].hasOwnProperty(a)?this["public"][a]:!1},this.setProp=function(a,b){this["public"][a]=b},this.isMobile=function(){var a=!1;return function(b){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(b)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(b.substr(0,4)))&&(a=!0)}(navigator.userAgent||navigator.vendor||window.opera),a},this.hasVisiblePopup=function(){var a=[],b=this.getProp("$"),c=0;for(var d in OptinMonsterAppOptins)OptinMonsterAppOptins[d].hasOwnProperty("visible")&&!0===OptinMonsterAppOptins[d].visible&&(a[c]=OptinMonsterAppOptins[d].type,c++);return b.inArray("lightbox",a)>-1||b.inArray("canvas",a)>-1||!1},this.loadPlaceholder=function(){var a=this,b=a.getProp("$");!function(a,b,c){function d(a){var b={},d=/^jQuery\d+$/;return c.each(a.attributes,function(a,c){c.specified&&!d.test(c.name)&&(b[c.name]=c.value)}),b}function e(a,b){var d=this,e=c(d);if(d.value==e.attr("placeholder")&&e.hasClass("placeholder"))if(e.data("placeholder-password")){if(e=e.hide().next().show().attr("id",e.removeAttr("id").data("placeholder-id")),a===!0)return e[0].value=b;e.focus()}else d.value="",e.removeClass("placeholder"),d==g()&&d.select()}function f(){var a,b=this,f=c(b),g=this.id;if(""==b.value){if("password"==b.type){if(!f.data("placeholder-textinput")){try{a=f.clone().attr({type:"text"})}catch(h){a=c("<input>").attr(c.extend(d(this),{type:"text"}))}a.removeAttr("name").data({"placeholder-password":f,"placeholder-id":g}).bind("focus.placeholder",e),f.data({"placeholder-textinput":a,"placeholder-id":g}).before(a)}f=f.removeAttr("id").hide().prev().attr("id",g).show()}f.addClass("placeholder"),f[0].value=f.attr("placeholder")}else f.removeClass("placeholder")}function g(){try{return b.activeElement}catch(a){}}var h,i,j="[object OperaMini]"==Object.prototype.toString.call(a.operamini),k="placeholder"in b.createElement("input")&&!j,l="placeholder"in b.createElement("textarea")&&!j,m=c.fn,n=c.valHooks,o=c.propHooks;k&&l?(i=m.placeholder=function(){return this},i.input=i.textarea=!0):(i=m.placeholder=function(){var a=this;return a.filter((k?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":e,"blur.placeholder":f}).data("placeholder-enabled",!0).trigger("blur.placeholder"),a},i.input=k,i.textarea=l,h={get:function(a){var b=c(a),d=b.data("placeholder-password");return d?d[0].value:b.data("placeholder-enabled")&&b.hasClass("placeholder")?"":a.value},set:function(a,b){var d=c(a),h=d.data("placeholder-password");return h?h[0].value=b:d.data("placeholder-enabled")?(""==b?(a.value=b,a!=g()&&f.call(a)):d.hasClass("placeholder")?e.call(a,!0,b)||(a.value=b):a.value=b,d):a.value=b}},k||(n.input=h,o.value=h),l||(n.textarea=h,o.value=h),c(function(){c(b).delegate("form","submit.placeholder",function(){var a=c(".placeholder",this).each(e);setTimeout(function(){a.each(f)},10)})}),c(a).bind("beforeunload.placeholder",function(){c(".placeholder").each(function(){this.value=""})}))}(this,document,b)},this.doPlaceholder=function(){var a=this,b=a.getProp("$"),c=b("#om-"+a.getProp("optin")+" input");c.length>0&&b.fn.placeholder&&c.each(function(){b(this).placeholder()}),a.trigger("OptinMonsterPlaceholderDone")},this.isIE=function(){return"undefined"!=typeof om_ie_browser},this.websiteMatch=function(){var a=this.getProp("site"),b=window.location.hostname;return a.hasOwnProperty("domain")?this.websiteWhitelisted()?!0:b.indexOf(a.domain)>-1?!0:(this.log("[OptinMonster] The optin campaign requested does not have permission to load on this domain."),!1):(this.log("[OptinMonster] No site has been specified for this optin campaign. The optin campaign has ceased loading."),!1)},this.websiteWhitelisted=function(){var a=this.getProp("$"),b=window.location.hostname,c=!1,d=[".dev",".local","local.","staging.","localhost","127.0.0.1"];return a.each(d,function(a,d){
2
  return b.indexOf(d)>-1?(c=!0,!1):void 0}),c},this.pageSlugMatch=function(){var a=this.getProp("page_slug"),b=this.getProp("page_match"),c=window.location.pathname.substr(1);return b?a!==c?(this.log("[OptinMonster] The page slug entered does not match the request URI exactly. The optin campaign has ceased loading."),!1):!0:c.indexOf(a)>-1?!0:(this.log("[OptinMonster] The page slug entered does not exist in the request URI. The optin campaign has ceased loading."),!1)},this.referrerMatch=function(){var a=this.getProp("$"),b=this.getProp("referrer_domain"),c=b.split(","),d=document.referrer||!1,e=!1;return d?(a.each(c,function(a,b){return d.indexOf(b)>-1?(e=!0,!1):void 0}),e?!0:(this.log("[OptinMonster] The page referrer does not match the requested domain referrer. The optin campaign has ceased loading."),!1)):(this.log("[OptinMonster] No referrer was specified for this page. The optin campaign has ceased loading."),!1)},this.socialServices=function(){{var a=this;a.getProp("$")}"undefined"!=typeof FB&&null!=FB&&FB.hasOwnProperty("XFBML")&&(console.log("FB parsing.."),FB.XFBML.parse()),"undefined"!=typeof twttr&&null!=twttr&&twttr.hasOwnProperty("widgets")&&(console.log("Twitter loading.."),twttr.widgets.load()),a.trigger("OptinMonsterSocial")},this.getScrollPercentage=function(){var a=this.getProp("$"),b=a(window).scrollTop()||0,c=a(document).height(),d=a(window).height();return Math.round(b/(c-d)*100)},this.setDefaults=function(){var a="https:"==document.location.protocol?"https://":"http://",b=this.getProp("staging")?"staging-api":"api";this.setProp("api_optin",a+b+".optinmonster.com/v1/optin/"),this.setProp("api_convert",a+b+".optinmonster.com/v1/convert/")}}var OptinMonsterAppOptins={},OptinMonsterAppLinkSlugs={},om_loaded=!0;
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.0.0
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.0.0';
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.0.0.1
9
  * Text Domain: optin-monster-api
10
  * Domain Path: languages
11
  *
60
  *
61
  * @var string
62
  */
63
+ public $version = '1.0.0.1';
64
 
65
  /**
66
  * The name of the plugin.
readme.txt DELETED
@@ -1,159 +0,0 @@
1
- === OptinMonster - Best WordPress Popup and Lead Generation Plugin ===
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
4
- Requires at least: 3.5.1
5
- Tested up to: 4.2
6
- Stable tag: trunk
7
- License: GNU General Public License v2.0 or later
8
-
9
- OptinMonster helps you grow your email list by converting visitors into subscribers and customers. Get more email subscribers now!
10
-
11
- == Description ==
12
-
13
- Did you know that over 70% of website visitors who leave your website will never return? Why? Because most people find your blog, read, and leave (that's just a natural pattern). Wouldn't it be nice if you can convert some of those people to subscribe to your blog? That's where <a href="http://optinmonster.com" rel="friend" title="OptinMonster">OptinMonster</a> can help. OptinMonster helps you grow your email list and get more subscribers.
14
-
15
- OptinMonster comes with an easy to use form builder that allows you to create beautiful optin forms that are proven to convert. You can create various type of optins including WordPress popups, floating header and footer bars, slide-ins also known as scroll triggered boxes, sidebar forms, after post forms, in-line forms, mobile-specific forms, and more.
16
-
17
- Using OptinMonster forms combined with our exit-intent technology, page-level targeting, and behavior automation, users have seen an instant boost in conversion rate, _even upwards of 785%!_
18
-
19
- > <strong>OptinMonster App</strong><br>
20
- > OptinMonster is a standalone application that integrates with all web platforms including WordPress. You must have an OptinMonster account in order to take advantage of this plugin. <a href="http://optinmonster.com/pricing/" rel="friend" title="OptinMonster Plans">Click here to create your account.</a>
21
-
22
- Let's take a look at how OptinMonster can help you get more email subscribers.
23
-
24
- = OptinMonster Builder + Optin Forms Templates =
25
-
26
- OptinMonster allows you to build high converting opt-in forms in minutes, not hours!
27
-
28
- You can choose from 8 different type of optins including: popups, floating bars, slide-ins, sidebar forms, after-post forms, in-line forms, mobile-only popups, and Canvas.
29
-
30
- All of our templates are 100% responsive and mobile friendly.
31
-
32
- = Easy Integration with All Email Marketing Services =
33
-
34
- We started with the goal to make the most beginner friendly lead-generation plugin. That's why OptinMonster works out of the box with all popular email marketing service providers including but not limited to:
35
-
36
- MailChimp, AWeber, Infusionsoft, GetResponse, ConstantContact, CampaignMonitor, Hubspot, Marketo, ActiveCampaign, Pardot, TotalSend, Emma, iContact, MailerLite, Customer.io, MailPoet, and FeedBlitz.
37
-
38
- You can also use custom HTML forms as well as use shortcodes to add other form plugins such as Gravity Forms, Ninja Forms, etc.
39
-
40
- = Powerful Exit-Intent&reg; Technology =
41
-
42
- OptinMonster is among the pioneers of <a href="http://optinmonster.com/features/exit-intent/" rel="friend" title="Exit-Intent Technology">exit-intent technology</a>. It helps you track user's mouse behavior and prompt them with a targeted message at the precise moment they are about to leave.
43
-
44
- This allows you to re-engage the visitor and encourage them to subscribe. Exit-intent is proven to increase conversions.
45
-
46
- We used it on our site, <a href="http://www.wpbeginner.com/" rel="friend" title="WPBeginner - Beginners Guide to WordPress">WPBeginner</a>, and increased conversions by over 600%.
47
-
48
- But don't just take our word. See what one of the experts are saying:
49
-
50
- > In only 7 months, <strong>we added more than 95,000 names to our email list</strong> using OptinMonster's Exit Intent™ technology. We strongly recommend it!<br>
51
- > Michael Stelzner - Founder of Social Media Examiner
52
-
53
- = Advanced Page Level Targeting and Behavior Personalization =
54
-
55
- Have you ever wondered what if you created a highly targeted message based on the specific page, traffic referral source, category or tag of your site? How would that impact your conversions?
56
-
57
- Well, we have tested it, and it works wonders. We liked the results so much that we built-it into OptinMonster.
58
-
59
- OptinMonster's <a href="http://optinmonster.com/features/page-level-targeting/" rel="friend" title="Page Level Targeting">page level targeting module</a> allows you to display unique offers and campaigns based on visitor's location and interaction on your website.
60
-
61
- This allows you to segment your email list and group your subscribers based on their interest and interaction with your website. Segmentation allows you to send relevant emails to your subscribers which results in higher open rates, higher click through rate, increased sales, greater revenue, greater customer retention, and lower unsubscribe rate.
62
-
63
- Read how this helped one of our users:
64
-
65
- > OptinMonster played a critical role in increasing my email optin conversion rate by 469%. In real numbers, <strong>that is the difference between $7,765 and $47,748 per month</strong> in revenue.<br>
66
- > Matthew Woodward - Professional Blogger and SEO Expert
67
-
68
- = Easy to Use A/B Split Testing =
69
-
70
- A/B testing is one of the most desired features, but normally it is extremely hard to setup for beginners. Well, we changed that.
71
-
72
- OptinMonster's easy <a href="http://optinmonster.com/features/easy-ab-split-testing/" rel="friend" title="A/B split testing">A/B split testing</a> module helps you eliminate the guess work and make data-driven decisions on what works best.
73
-
74
- You can try different content, headlines, layouts, styles, and opt-in triggers, to see what converts best.
75
-
76
- > Using OptinMonster <strong>we got a 300% improvement on our email conversion rates</strong> which translated into significant revenue. We have tried many similar lead generation plugins and nothing can compete with OptinMonster.<br>
77
- > Ian Cleary - Founder of RazorSocial
78
-
79
- = Detailed Conversion Analytics =
80
-
81
- Most people don't know what to do with analytics because they don't understand them. OptinMonster's <a href="http://optinmonster.com/features/conversion-analytics/" rel="friend" title="conversion analytics">conversion analytics</a> is easy to understand and give you the stats that matter, so you can take action to improve your lead-generation strategy.
82
-
83
- = MonsterLinks&trade; - 2 Step Opt-in Technology =
84
-
85
- <a href="http://optinmonster.com/features/monsterlinks/" rel="friend" title="MonsterLinks">MonsterLinks</a> allow you to turn any link or image into a 2-step opt-in process which is proven to boost conversions by as much as 785%. Marketers use it to offer content upgrades and then use OptinMonster's success redirect feature for lead-magnet delivery.
86
-
87
- = Full Features List =
88
-
89
-
90
- * High converting template library (100% responsive mobile-friendly).
91
- * 8 different types of optin forms.
92
- * Powerful page level targeting to build a hyper-segmented email list.
93
- * Custom user-centric output settings to target visitors, logged-in users or a mixture of both.
94
- * Category, tag and custom taxonomy output controls for robust campaign segmenting.
95
- * Custom analytics with Google Analytics to tell you which campaigns are converting the best.
96
- * Our signature Exit Intent&trade; technology to convert abandoning website visitors into subscribers and customers.
97
- * Powerful A/B testing that helps you eliminate guess work and make data driven decisions on what works best.
98
- * MonsterLinks&trade; 2-step optin technology **which is proven to boost conversions by as much as 785%!**
99
- * Mobile specific popups that are specifically targeted towards mobile visitors.
100
- * Scroll triggered popups and optin forms for enhanced conversion rates.
101
- * Timed popups - display opt-ins after a certain time or on second pageview.
102
- * Canvas popups - use Canvas to add facebook like box, WooCommerce products, or anything else that you like.
103
- * MonsterEffects&trade; technology for eye-catching popup animations.
104
- * Success messages and redirects
105
- * Easy integration with over 19 different email marketing service providers
106
-
107
-
108
- = Credits =
109
-
110
- This plugin is created by <a href="https://thomasgriffin.io" rel="friend" title="Thomas Griffin">Thomas Griffin</a> and <a href="https://syedbalkhi.com" rel="friend" title="Syed Balkhi">Syed Balkhi</a>.
111
-
112
- = What's Next =
113
-
114
- If you like this plugin, then consider checking out our other projects:
115
-
116
- * <a href="http://soliloquywp.com/" rel="friend" title="Soliloquy">Soliloquy</a> - Best WordPress Slider Plugin
117
- * <a href="http://enviragallery.com/" rel="friend" title="Envira Gallery">Envira Gallery</a> - Responsive WordPress Gallery Plugin
118
- * <a href="http://www.themelab.com/" rel="friend" title="ThemeLab">ThemeLab</a> - Premium WordPress Themes that Work
119
-
120
- Visit WPBeginner to learn from our <a href="http://www.wpbeginner.com/category/wp-tutorials/" rel="friend" title="WordPress Tutorials">WordPress Tutorials</a> and find out about other <a href="http://www.wpbeginner.com/category/plugins/" rel="friend" title="Best WordPress Plugins">best WordPress plugins</a>.
121
-
122
-
123
- == Installation ==
124
-
125
- 1. Install OptinMonster either via the WordPress.org plugin repository or by uploading the files to your server.
126
- 2. Activate OptinMonster.
127
- 3. Navigate to the OptinMonster tab at the bottom of your admin menu and enter your OptinMonster API Username and API Key to connect your OptinMonster account to your WordPress site.
128
- 4. Click on the Optins tab and configure the output settings for each optin campaign you have created in your OptinMonster account.
129
-
130
- == Frequently Asked Questions ==
131
-
132
- = I downloaded this plugin but don't have an OptinMonster account. How can I get one? =
133
-
134
- You can sign up for an OptinMonster account by <a href="http://optinmonster.com/pricing/" rel="friend" title="OptinMonster Plans and Pricing">visiting our Pricing page</a> and choosing the account that best suits your needs.
135
-
136
- == Screenshots ==
137
-
138
-
139
- == Notes ==
140
-
141
- OptinMonster is the <a href="http://optinmonster.com" rel="friend" title="OptinMonster">best WordPress lead generation and WordPress popup plugin solution</a> on the market. No other WordPress popup plugin or WordPress optin form solution compares to OptinMonster and features it offers.
142
-
143
- = Testimonial =
144
-
145
- > OptinMonster is unlike most plugins. Most plugins cost you money. OptinMonster makes you money. Most barely get updated - OptinMonster just keeps getting better.<br>
146
- > Chris Lema - CTO Crowd Favorite
147
-
148
- == Changelog ==
149
-
150
- = 1.0.0 =
151
- * Fixed bug with exclusive/never settings not showing previously selected pages.
152
- * Fixed bug with API script and loading social services for specific popup types.
153
- * Removed unused updater class reference and code.
154
-
155
- = 0.9.9 =
156
- * Fix error with loading old API script.
157
-
158
- = 0.9.8 =
159
- * Initial release.