Popups – WordPress Popup - Version 1.1

Version Description

  • Added settings page
  • Added option to disable auto style of shortcodes
  • Plugin compatible with Popups Premium
  • Minor bugfixes
  • Js improvement
Download this release

Release Info

Developer timersys
Plugin Icon 128x128 Popups – WordPress Popup
Version 1.1
Comparing to
See all releases

Code changes from version 1.0.7 to 1.1

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: timersys
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K4T6L69EV9G2Q
4
  Tags: twitter,google+, facebook,Popups, twitter follow, facebook like, google plus,social boost, social splash, popup, facebook popup, scroll popups, popups, wordpress popup, wp popups
5
  Requires at least: 3.6
6
- Tested up to: 3.9.2
7
- Stable tag: 1.0.7
8
  Text Domain: spucpt
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -13,7 +13,7 @@ Increase your followers ratio 40% with the new Popups - Multiple popup options,
13
 
14
  == Description ==
15
 
16
- The new Popups plugin can display multiple popups. Is the perfect solution to increase your social followers, your mailing lists by adding a form like mailchimp or to display any important message.
17
 
18
 
19
  There are multiple display filters that can be combined:
@@ -37,6 +37,9 @@ There are multiple display filters that can be combined:
37
  * You can also configure background opacity.
38
  * Days until popup shows again
39
 
 
 
 
40
 
41
 
42
  = Plugin's Official Site =
@@ -84,6 +87,15 @@ Yes if you need to debug you can use uncompressed javascript by addings ([this c
84
 
85
  == Changelog ==
86
 
 
 
 
 
 
 
 
 
 
87
  = 1.0.7 =
88
 
89
  * Fixed bug with alignment in mobile devices
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K4T6L69EV9G2Q
4
  Tags: twitter,google+, facebook,Popups, twitter follow, facebook like, google plus,social boost, social splash, popup, facebook popup, scroll popups, popups, wordpress popup, wp popups
5
  Requires at least: 3.6
6
+ Tested up to: 4.0.0
7
+ Stable tag: 1.1
8
  Text Domain: spucpt
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
14
  == Description ==
15
 
16
+ The new Popups plugin can display multiple popups. Is the perfect solution to increase your social followers, your mailing lists by adding a form like mailchimp or to display any important message in a simple popup.
17
 
18
 
19
  There are multiple display filters that can be combined:
37
  * You can also configure background opacity.
38
  * Days until popup shows again
39
 
40
+ = Premium Version =
41
+
42
+ Check the **new premium version** available in ([http://wp.timersys.com/popups/](http://wp.timersys.com/popups/))
43
 
44
 
45
  = Plugin's Official Site =
87
 
88
  == Changelog ==
89
 
90
+ = 1.1 =
91
+
92
+ * Added settings page
93
+ * Added option to disable auto style of shortcodes
94
+ * Plugin compatible with Popups Premium
95
+ * Minor bugfixes
96
+ * Js improvement
97
+
98
+
99
  = 1.0.7 =
100
 
101
  * Fixed bug with alignment in mobile devices
admin/assets/css/admin.css CHANGED
@@ -189,8 +189,14 @@ h3.spu-title {
189
  padding: 6px;
190
  width: 16px;
191
  }
192
-
193
-
 
 
 
 
 
 
194
  /* Don't allow user to delete the first field group */
195
  #spu-rules .rules-group:first-child tr:first-child:hover .rules-remove-rule {
196
  display: none;
189
  padding: 6px;
190
  width: 16px;
191
  }
192
+ div#spu-premium {
193
+ border: 2px solid #999;
194
+ box-shadow: 7px 11px 13px -3px #ccc;
195
+ }
196
+ div#spu-premium li{
197
+ list-style: square;
198
+ margin-left: 30px;
199
+ }
200
  /* Don't allow user to delete the first field group */
201
  #spu-rules .rules-group:first-child tr:first-child:hover .rules-remove-rule {
202
  display: none;
admin/assets/js/admin.js CHANGED
@@ -12,9 +12,24 @@ SPU_ADMIN = (function ( $ ) {
12
  //Thanks to scoll triggered boxes plugin for this piece of javascript
13
  $('#spu-options input.spu-color-field').wpColorPicker({ change: applyStyles, clear: applyStyles });
14
  $("#spu-options :input").not(".spu-color-field").change(applyStyles);
 
 
 
15
 
 
 
 
 
 
16
  });
17
 
 
 
 
 
 
 
 
18
 
19
  // functions
20
  function getPxValue($el, retval)
12
  //Thanks to scoll triggered boxes plugin for this piece of javascript
13
  $('#spu-options input.spu-color-field').wpColorPicker({ change: applyStyles, clear: applyStyles });
14
  $("#spu-options :input").not(".spu-color-field").change(applyStyles);
15
+
16
+ //Toogle trigger boxes on init
17
+ checkTriggerMethod( $("#spu_trigger").val() );
18
 
19
+ //Toogle trigger boxes on change
20
+ $("#spu_trigger").change(function(){
21
+ checkTriggerMethod( $(this).val() );
22
+ })
23
+
24
  });
25
 
26
+ function checkTriggerMethod( val ) {
27
+ if( val == 'percentage') {
28
+ $('tr.auto_hide').fadeIn('fast');
29
+ } else {
30
+ $('tr.auto_hide').fadeOut('fast');
31
+ }
32
+ }
33
 
34
  // functions
35
  function getPxValue($el, retval)
admin/class-social-popup-admin.php CHANGED
@@ -42,6 +42,21 @@ class SocialPopup_Admin {
42
  */
43
  protected $plugin_screen_hook_suffix = null;
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  /**
46
  * Initialize the plugin by loading admin scripts & styles and adding a
47
  * settings page and menu.
@@ -57,10 +72,18 @@ class SocialPopup_Admin {
57
  //settings name
58
  $this->options_name = $this->plugin_slug .'_settings';
59
 
60
-
 
 
 
 
 
61
  //Register cpt
62
  add_action( 'init', array( $this, 'register_cpt' ) );
63
 
 
 
 
64
  //Add our metaboxes
65
  add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
66
  //Save metaboxes
@@ -158,11 +181,52 @@ class SocialPopup_Admin {
158
 
159
  }
160
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  /**
162
  * Register the metaboxes for our cpt and remove others
163
  */
164
  public function add_meta_boxes() {
165
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  add_meta_box(
167
  'spu-help',
168
  __( 'PopUp Shortcodes', $this->plugin_slug ),
@@ -215,11 +279,22 @@ class SocialPopup_Admin {
215
  );
216
  }
217
 
 
 
 
 
 
 
 
 
 
 
 
218
  /**
219
  * Include the metabox view for popup help
220
  * @param object $post spucpt post object
221
  * @param array $metabox full metabox items array
222
- * @since 2.0
223
  */
224
  public function popup_help( $post, $metabox ) {
225
 
@@ -229,7 +304,7 @@ class SocialPopup_Admin {
229
  * Include the metabox view for popup rules
230
  * @param object $post spucpt post object
231
  * @param array $metabox full metabox items array
232
- * @since 2.0
233
  */
234
  public function popup_rules( $post, $metabox ) {
235
 
@@ -241,7 +316,7 @@ class SocialPopup_Admin {
241
  * Include the metabox view for popup options
242
  * @param object $post spucpt post object
243
  * @param array $metabox full metabox items array
244
- * @since 2.0
245
  */
246
  public function popup_options( $post, $metabox ) {
247
 
@@ -254,7 +329,7 @@ class SocialPopup_Admin {
254
  * Include the metabox view for donate box
255
  * @param object $post spucpt post object
256
  * @param array $metabox full metabox items array
257
- * @since 2.0
258
  */
259
  public function metabox_donate( $post, $metabox ) {
260
  include 'views/metabox-donate.php';
@@ -263,7 +338,7 @@ class SocialPopup_Admin {
263
  * Include the metabox view for support box
264
  * @param object $post spucpt post object
265
  * @param array $metabox full metabox items array
266
- * @since 2.0
267
  */
268
  public function metabox_support( $post, $metabox ) {
269
  include 'views/metabox-support.php';
@@ -273,7 +348,7 @@ class SocialPopup_Admin {
273
  * Include the metabox view for links box
274
  * @param object $post spucpt post object
275
  * @param array $metabox full metabox items array
276
- * @since 2.0
277
  */
278
  public function metabox_links( $post, $metabox ) {
279
  include 'views/metabox-links.php';
@@ -521,4 +596,5 @@ class SocialPopup_Admin {
521
  return $args;
522
  }
523
 
 
524
  }
42
  */
43
  protected $plugin_screen_hook_suffix = null;
44
 
45
+ /**
46
+ * Plugins settings
47
+ * @var array
48
+ */
49
+ protected $spu_settings = array();
50
+
51
+ /**
52
+ * Premium version is enabled
53
+ *
54
+ * @since 1.1
55
+ *
56
+ * @var bool
57
+ */
58
+ protected $premium = false;
59
+
60
  /**
61
  * Initialize the plugin by loading admin scripts & styles and adding a
62
  * settings page and menu.
72
  //settings name
73
  $this->options_name = $this->plugin_slug .'_settings';
74
 
75
+ //load settings
76
+ $this->spu_settings = $plugin->get_settings();
77
+
78
+ //premium version ?
79
+ $this->premium = defined('SPUP_PLUGIN_HOOK');
80
+
81
  //Register cpt
82
  add_action( 'init', array( $this, 'register_cpt' ) );
83
 
84
+ // add settings page
85
+ add_action('admin_menu' , array( $this, 'add_settings_menu' ) );
86
+
87
  //Add our metaboxes
88
  add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
89
  //Save metaboxes
181
 
182
  }
183
 
184
+ /**
185
+ * Add menu for Settings page of the plugin
186
+ * @since 1.1
187
+ * @return void
188
+ */
189
+ public function add_settings_menu() {
190
+
191
+ add_submenu_page('edit.php?post_type=spucpt', 'Settings', 'Settings', 'edit_posts', 'spu_settings', array( $this, 'settings_page' ) );
192
+
193
+ }
194
+
195
+ /**
196
+ * Settings page of the plugin
197
+ * @since 1.1
198
+ * @return void
199
+ */
200
+ public function settings_page(){
201
+
202
+ if ( isset( $_POST['spu_nonce'] ) && wp_verify_nonce( $_POST['spu_nonce'], 'spu_save_settings' ) ) {
203
+
204
+ update_option( 'spu_settings' , esc_sql( $_POST['spu_settings'] ) );
205
+
206
+ }
207
+ $opts = apply_filters('spu/settings_page/opts', get_option( 'spu_settings' ) );
208
+
209
+ include 'views/settings-page.php';
210
+
211
+ }
212
  /**
213
  * Register the metaboxes for our cpt and remove others
214
  */
215
  public function add_meta_boxes() {
216
 
217
+ if( !$this->premium ) {
218
+
219
+ add_meta_box(
220
+ 'spu-premium',
221
+ __( 'Popups Premium', $this->plugin_slug ),
222
+ array( $this, 'popup_premium' ),
223
+ 'spucpt',
224
+ 'normal',
225
+ 'core'
226
+ );
227
+
228
+ }
229
+
230
  add_meta_box(
231
  'spu-help',
232
  __( 'PopUp Shortcodes', $this->plugin_slug ),
279
  );
280
  }
281
 
282
+ /**
283
+ * Include the metabox view for popup premium
284
+ * @param object $post spucpt post object
285
+ * @param array $metabox full metabox items array
286
+ * @since 1.1
287
+ */
288
+ public function popup_premium( $post, $metabox ) {
289
+
290
+ include 'views/metabox-premium.php';
291
+ }
292
+
293
  /**
294
  * Include the metabox view for popup help
295
  * @param object $post spucpt post object
296
  * @param array $metabox full metabox items array
297
+ * @since 1.1
298
  */
299
  public function popup_help( $post, $metabox ) {
300
 
304
  * Include the metabox view for popup rules
305
  * @param object $post spucpt post object
306
  * @param array $metabox full metabox items array
307
+ * @since 1.1
308
  */
309
  public function popup_rules( $post, $metabox ) {
310
 
316
  * Include the metabox view for popup options
317
  * @param object $post spucpt post object
318
  * @param array $metabox full metabox items array
319
+ * @since 1.1
320
  */
321
  public function popup_options( $post, $metabox ) {
322
 
329
  * Include the metabox view for donate box
330
  * @param object $post spucpt post object
331
  * @param array $metabox full metabox items array
332
+ * @since 1.1
333
  */
334
  public function metabox_donate( $post, $metabox ) {
335
  include 'views/metabox-donate.php';
338
  * Include the metabox view for support box
339
  * @param object $post spucpt post object
340
  * @param array $metabox full metabox items array
341
+ * @since 1.1
342
  */
343
  public function metabox_support( $post, $metabox ) {
344
  include 'views/metabox-support.php';
348
  * Include the metabox view for links box
349
  * @param object $post spucpt post object
350
  * @param array $metabox full metabox items array
351
+ * @since 1.1
352
  */
353
  public function metabox_links( $post, $metabox ) {
354
  include 'views/metabox-links.php';
596
  return $args;
597
  }
598
 
599
+
600
  }
admin/views/metabox-options.php CHANGED
@@ -34,12 +34,23 @@ if ( !defined( 'ABSPATH' ) ) exit;?>
34
  <?php do_action( 'spu/metaboxes/trigger_values', $opts );?>
35
  </td>
36
  </tr>
 
 
 
 
 
 
 
 
 
37
  <tr valign="top">
38
  <th><label><?php _e( 'Animation', $this->plugin_slug ); ?></label></th>
39
  <td colspan="3">
40
- <label><input type="radio" name="spu[animation]" value="fade" <?php checked($opts['animation'], 'fade'); ?> /> <?php _e( 'Fade In', $this->plugin_slug ); ?></label> &nbsp;
41
- <label><input type="radio" name="spu[animation]" value="slide" <?php checked($opts['animation'], 'slide'); ?> /> <?php _e( 'Slide In', $this->plugin_slug ); ?></label> &nbsp;
42
- <?php do_action( 'spu/metaboxes/animations', $opts );?>
 
 
43
  <p class="help"><?php _e( 'Slide will only apply when popup is on the corners', $this->plugin_slug ); ?></p>
44
  </td>
45
  </tr>
@@ -51,15 +62,6 @@ if ( !defined( 'ABSPATH' ) ) exit;?>
51
  <p class="help"><?php _e( 'After closing the box, how many days should it stay hidden?', $this->plugin_slug ); ?></p>
52
  </td>
53
 
54
- </tr>
55
- <tr valign="top">
56
- <th><label for="spu_auto_hide"><?php _e( 'Auto-hide?', $this->plugin_slug ); ?></label></th>
57
- <td colspan="3">
58
- <label><input type="radio" id="spu_auto_hide_1" name="spu[auto_hide]" value="1" <?php checked($opts['auto_hide'], 1); ?> /> <?php _e( 'Yes' ); ?></label> &nbsp;
59
- <label><input type="radio" id="spu_auto_hide_0" name="spu[auto_hide]" value="0" <?php checked($opts['auto_hide'], 0); ?> /> <?php _e( 'No' ); ?></label> &nbsp;
60
- <p class="help"><?php _e( 'Hide box again when visitors scroll back up? Only works when Trigger action is set to % of page height', $this->plugin_slug ); ?></p>
61
- </td>
62
-
63
  </tr>
64
  <tr valign="top">
65
  <th><label for="spu_test_mode"><?php _e( 'Enable test mode?', $this->plugin_slug ); ?></label></th>
34
  <?php do_action( 'spu/metaboxes/trigger_values', $opts );?>
35
  </td>
36
  </tr>
37
+ <tr valign="top" class="auto_hide">
38
+ <th><label for="spu_auto_hide"><?php _e( 'Auto-hide?', $this->plugin_slug ); ?></label></th>
39
+ <td colspan="3">
40
+ <label><input type="radio" id="spu_auto_hide_1" name="spu[auto_hide]" value="1" <?php checked($opts['auto_hide'], 1); ?> /> <?php _e( 'Yes' ); ?></label> &nbsp;
41
+ <label><input type="radio" id="spu_auto_hide_0" name="spu[auto_hide]" value="0" <?php checked($opts['auto_hide'], 0); ?> /> <?php _e( 'No' ); ?></label> &nbsp;
42
+ <p class="help"><?php _e( 'Hide box again when visitors scroll back up? Only works when Trigger action is set to % of page height', $this->plugin_slug ); ?></p>
43
+ </td>
44
+
45
+ </tr>
46
  <tr valign="top">
47
  <th><label><?php _e( 'Animation', $this->plugin_slug ); ?></label></th>
48
  <td colspan="3">
49
+ <select id="spu_animation" name="spu[animation]" class="widefat">
50
+ <option value="fade" <?php checked($opts['animation'], 'fade'); ?> > <?php _e( 'Fade In', $this->plugin_slug ); ?></option>
51
+ <option value="slide" <?php checked($opts['animation'], 'slide'); ?> > <?php _e( 'Slide In', $this->plugin_slug ); ?></option>
52
+ <?php do_action( 'spu/metaboxes/animations', $opts );?>
53
+ </select>
54
  <p class="help"><?php _e( 'Slide will only apply when popup is on the corners', $this->plugin_slug ); ?></p>
55
  </td>
56
  </tr>
62
  <p class="help"><?php _e( 'After closing the box, how many days should it stay hidden?', $this->plugin_slug ); ?></p>
63
  </td>
64
 
 
 
 
 
 
 
 
 
 
65
  </tr>
66
  <tr valign="top">
67
  <th><label for="spu_test_mode"><?php _e( 'Enable test mode?', $this->plugin_slug ); ?></label></th>
admin/views/metabox-premium.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( !defined( 'ABSPATH' ) ) exit;
4
+ ?>
5
+ <p><?php _e( 'Take the best WordPress Popups plugin to the next level with Popups Premium extension.', $this->plugin_slug );?></p>
6
+ <h2><?php _e( 'Popups Premium Features:', $this->plugin_slug );?></h2>
7
+ <ul>
8
+ <li><?php _e( '8 New animations effects', $this->plugin_slug );?> - <a href="http://wp.timersys.com/popups/?utm_source=Plugin&utm_medium=demo-button&utm_campaign=Popups%20Premium">Online demo</a></li>
9
+ <li><?php _e( 'Exit Intent technology', $this->plugin_slug );?></li>
10
+ <li><?php _e( 'New trigger methods', $this->plugin_slug );?></li>
11
+ <li><?php _e( 'Timer for auto closing', $this->plugin_slug );?></li>
12
+ <li><?php _e( 'Ability to disable close button', $this->plugin_slug );?></li>
13
+ <li><?php _e( 'Ability to disable Advanced close methods like esc or clicking outside of the popup', $this->plugin_slug );?></li>
14
+ <li><?php _e( 'Premium support', $this->plugin_slug );?></li>
15
+ </ul>
16
+ <p><strong>Hurry up and get your copy!</strong> Take advantage of this <span style="color:red">launch offer</span> before the price goes up. We have a <strong>lot of new features</strong> to be added soon like mailchimp integration, Google analytics, tracking, etc</p>
17
+ <p style="text-align:center">
18
+ <a class="button-primary" href="http://wp.timersys.com/downloads/popups-premium/?utm_source=Plugin&utm_medium=buy-button&utm_campaign=Popups%20Premium"><?php _e( 'Buy Now!', $this->plugin_slug );?></a>
19
+ </p>
admin/views/settings-page.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Settings page template
4
+ * @since 1.1
5
+ */
6
+ ?>
7
+ <div class="wrap">
8
+ <h2>Popups <?php echo SocialPopup::VERSION;?></h2>
9
+ <form name="spu-settings" method="post">
10
+ <table class="form-table">
11
+ <?php do_action( 'spu/settings_page/before' ); ?>
12
+ <tr valign="top" class="">
13
+ <th><label for="debug"><?php _e( 'Enable Debug mode?', $this->plugin_slug ); ?></label></th>
14
+ <td colspan="3">
15
+ <label><input type="checkbox" id="debug" name="spu_settings[debug]" value="1" <?php checked($opts['debug'], 1); ?> />
16
+ <p class="help"><?php _e( 'Will use uncompressed js', $this->plugin_slug ); ?></p>
17
+ </td>
18
+
19
+ </tr>
20
+ <tr valign="top" class="">
21
+ <th><label for="style"><?php _e( 'Remove shortcodes style', $this->plugin_slug ); ?></label></th>
22
+ <td colspan="3">
23
+ <label><input type="checkbox" id="style" name="spu_settings[shortcodes_style]" value="1" <?php checked($opts['shortcodes_style'], 1); ?> />
24
+ <p class="help"><?php _e( 'By default the plugin will apply some style to shortcodes. Check here if you want to manually style them', $this->plugin_slug ); ?></p>
25
+ </td>
26
+
27
+ </tr>
28
+ <tr valign="top" class="">
29
+ <th><label for="style"><?php _e( 'Unload Facebook javascript', $this->plugin_slug ); ?></label></th>
30
+ <td colspan="3">
31
+ <label><input type="checkbox" id="style" name="spu_settings[facebook]" value="1" <?php checked($opts['facebook'], 1); ?> />
32
+ <p class="help"><?php _e( 'If you use your own Facebook script, check this', $this->plugin_slug ); ?></p>
33
+ </td>
34
+
35
+ </tr>
36
+ <tr valign="top" class="">
37
+ <th><label for="style"><?php _e( 'Unload Google javascript', $this->plugin_slug ); ?></label></th>
38
+ <td colspan="3">
39
+ <label><input type="checkbox" id="style" name="spu_settings[google]" value="1" <?php checked($opts['google'], 1); ?> />
40
+ <p class="help"><?php _e( 'If you use your own Google script, check this', $this->plugin_slug ); ?></p>
41
+ </td>
42
+
43
+ </tr>
44
+ <tr valign="top" class="">
45
+ <th><label for="style"><?php _e( 'Unload Twitter javascript', $this->plugin_slug ); ?></label></th>
46
+ <td colspan="3">
47
+ <label><input type="checkbox" id="style" name="spu_settings[twitter]" value="1" <?php checked($opts['twitter'], 1); ?> />
48
+ <p class="help"><?php _e( 'If you use your own Twitter script, check this', $this->plugin_slug ); ?></p>
49
+ </td>
50
+
51
+ </tr>
52
+ <?php do_action( 'spu/settings_page/after' ); ?>
53
+ <tr><td><input type="submit" class="button-primary" value="<?php _e( 'Save settings', $this->plugin_slug );?>"/></td>
54
+ <?php wp_nonce_field('spu_save_settings','spu_nonce'); ?>
55
+ </table>
56
+ </form>
57
+ </div>
config.codekit DELETED
@@ -1,1049 +0,0 @@
1
- {
2
- "CodeKitInfo": "This is a CodeKit 2.x project configuration file. It is designed to sync project settings across multiple machines. MODIFYING THE CONTENTS OF THIS FILE IS A POOR LIFE DECISION. If you do so, you will likely cause CodeKit to crash. This file is not useful unless accompanied by the project that created it in CodeKit 2. This file is not backwards-compatible with CodeKit 1.x. For more information, see: http:\/\/incident57.com\/codekit",
3
- "creatorBuild": "17018",
4
- "files": {
5
- "\/admin\/assets\/css\/admin.css": {
6
- "fileType": 16,
7
- "ignore": 0,
8
- "ignoreWasSetByUser": 0,
9
- "inputAbbreviatedPath": "\/admin\/assets\/css\/admin.css",
10
- "outputAbbreviatedPath": "No Output Path",
11
- "outputPathIsOutsideProject": 0,
12
- "outputPathIsSetByUser": 0
13
- },
14
- "\/admin\/assets\/css\/index.php": {
15
- "fileType": 8192,
16
- "ignore": 0,
17
- "ignoreWasSetByUser": 0,
18
- "inputAbbreviatedPath": "\/admin\/assets\/css\/index.php",
19
- "outputAbbreviatedPath": "No Output Path",
20
- "outputPathIsOutsideProject": 0,
21
- "outputPathIsSetByUser": 0
22
- },
23
- "\/admin\/assets\/js\/admin.js": {
24
- "fileType": 64,
25
- "ignore": 0,
26
- "ignoreWasSetByUser": 0,
27
- "inputAbbreviatedPath": "\/admin\/assets\/js\/admin.js",
28
- "outputAbbreviatedPath": "\/admin\/assets\/js\/min\/admin-ck.js",
29
- "outputPathIsOutsideProject": 0,
30
- "outputPathIsSetByUser": 0,
31
- "outputStyle": 1,
32
- "syntaxCheckerStyle": 1
33
- },
34
- "\/admin\/assets\/js\/index.php": {
35
- "fileType": 8192,
36
- "ignore": 0,
37
- "ignoreWasSetByUser": 0,
38
- "inputAbbreviatedPath": "\/admin\/assets\/js\/index.php",
39
- "outputAbbreviatedPath": "No Output Path",
40
- "outputPathIsOutsideProject": 0,
41
- "outputPathIsSetByUser": 0
42
- },
43
- "\/admin\/class-social-popup-admin.php": {
44
- "fileType": 8192,
45
- "ignore": 0,
46
- "ignoreWasSetByUser": 0,
47
- "inputAbbreviatedPath": "\/admin\/class-social-popup-admin.php",
48
- "outputAbbreviatedPath": "No Output Path",
49
- "outputPathIsOutsideProject": 0,
50
- "outputPathIsSetByUser": 0
51
- },
52
- "\/admin\/includes\/class-spu-upgrade.php": {
53
- "fileType": 8192,
54
- "ignore": 0,
55
- "ignoreWasSetByUser": 0,
56
- "inputAbbreviatedPath": "\/admin\/includes\/class-spu-upgrade.php",
57
- "outputAbbreviatedPath": "No Output Path",
58
- "outputPathIsOutsideProject": 0,
59
- "outputPathIsSetByUser": 0
60
- },
61
- "\/admin\/includes\/index.php": {
62
- "fileType": 8192,
63
- "ignore": 0,
64
- "ignoreWasSetByUser": 0,
65
- "inputAbbreviatedPath": "\/admin\/includes\/index.php",
66
- "outputAbbreviatedPath": "No Output Path",
67
- "outputPathIsOutsideProject": 0,
68
- "outputPathIsSetByUser": 0
69
- },
70
- "\/admin\/views\/index.php": {
71
- "fileType": 8192,
72
- "ignore": 0,
73
- "ignoreWasSetByUser": 0,
74
- "inputAbbreviatedPath": "\/admin\/views\/index.php",
75
- "outputAbbreviatedPath": "No Output Path",
76
- "outputPathIsOutsideProject": 0,
77
- "outputPathIsSetByUser": 0
78
- },
79
- "\/admin\/views\/metabox-donate.php": {
80
- "fileType": 8192,
81
- "ignore": 0,
82
- "ignoreWasSetByUser": 0,
83
- "inputAbbreviatedPath": "\/admin\/views\/metabox-donate.php",
84
- "outputAbbreviatedPath": "No Output Path",
85
- "outputPathIsOutsideProject": 0,
86
- "outputPathIsSetByUser": 0
87
- },
88
- "\/admin\/views\/metabox-help.php": {
89
- "fileType": 8192,
90
- "ignore": 0,
91
- "ignoreWasSetByUser": 0,
92
- "inputAbbreviatedPath": "\/admin\/views\/metabox-help.php",
93
- "outputAbbreviatedPath": "No Output Path",
94
- "outputPathIsOutsideProject": 0,
95
- "outputPathIsSetByUser": 0
96
- },
97
- "\/admin\/views\/metabox-links.php": {
98
- "fileType": 8192,
99
- "ignore": 0,
100
- "ignoreWasSetByUser": 0,
101
- "inputAbbreviatedPath": "\/admin\/views\/metabox-links.php",
102
- "outputAbbreviatedPath": "No Output Path",
103
- "outputPathIsOutsideProject": 0,
104
- "outputPathIsSetByUser": 0
105
- },
106
- "\/admin\/views\/metabox-options.php": {
107
- "fileType": 8192,
108
- "ignore": 0,
109
- "ignoreWasSetByUser": 0,
110
- "inputAbbreviatedPath": "\/admin\/views\/metabox-options.php",
111
- "outputAbbreviatedPath": "No Output Path",
112
- "outputPathIsOutsideProject": 0,
113
- "outputPathIsSetByUser": 0
114
- },
115
- "\/admin\/views\/metabox-rules.php": {
116
- "fileType": 8192,
117
- "ignore": 0,
118
- "ignoreWasSetByUser": 0,
119
- "inputAbbreviatedPath": "\/admin\/views\/metabox-rules.php",
120
- "outputAbbreviatedPath": "No Output Path",
121
- "outputPathIsOutsideProject": 0,
122
- "outputPathIsSetByUser": 0
123
- },
124
- "\/admin\/views\/metabox-support.php": {
125
- "fileType": 8192,
126
- "ignore": 0,
127
- "ignoreWasSetByUser": 0,
128
- "inputAbbreviatedPath": "\/admin\/views\/metabox-support.php",
129
- "outputAbbreviatedPath": "No Output Path",
130
- "outputPathIsOutsideProject": 0,
131
- "outputPathIsSetByUser": 0
132
- },
133
- "\/includes\/class-spu-helper.php": {
134
- "fileType": 8192,
135
- "ignore": 0,
136
- "ignoreWasSetByUser": 0,
137
- "inputAbbreviatedPath": "\/includes\/class-spu-helper.php",
138
- "outputAbbreviatedPath": "No Output Path",
139
- "outputPathIsOutsideProject": 0,
140
- "outputPathIsSetByUser": 0
141
- },
142
- "\/includes\/index.php": {
143
- "fileType": 8192,
144
- "ignore": 0,
145
- "ignoreWasSetByUser": 0,
146
- "inputAbbreviatedPath": "\/includes\/index.php",
147
- "outputAbbreviatedPath": "No Output Path",
148
- "outputPathIsOutsideProject": 0,
149
- "outputPathIsSetByUser": 0
150
- },
151
- "\/includes\/updates-msg.html": {
152
- "fileType": 8192,
153
- "ignore": 0,
154
- "ignoreWasSetByUser": 0,
155
- "inputAbbreviatedPath": "\/includes\/updates-msg.html",
156
- "outputAbbreviatedPath": "No Output Path",
157
- "outputPathIsOutsideProject": 0,
158
- "outputPathIsSetByUser": 0
159
- },
160
- "\/index.php": {
161
- "fileType": 8192,
162
- "ignore": 0,
163
- "ignoreWasSetByUser": 0,
164
- "inputAbbreviatedPath": "\/index.php",
165
- "outputAbbreviatedPath": "No Output Path",
166
- "outputPathIsOutsideProject": 0,
167
- "outputPathIsSetByUser": 0
168
- },
169
- "\/languages\/index.php": {
170
- "fileType": 8192,
171
- "ignore": 0,
172
- "ignoreWasSetByUser": 0,
173
- "inputAbbreviatedPath": "\/languages\/index.php",
174
- "outputAbbreviatedPath": "No Output Path",
175
- "outputPathIsOutsideProject": 0,
176
- "outputPathIsSetByUser": 0
177
- },
178
- "\/popups.php": {
179
- "fileType": 8192,
180
- "ignore": 0,
181
- "ignoreWasSetByUser": 0,
182
- "inputAbbreviatedPath": "\/popups.php",
183
- "outputAbbreviatedPath": "No Output Path",
184
- "outputPathIsOutsideProject": 0,
185
- "outputPathIsSetByUser": 0
186
- },
187
- "\/public\/assets\/css\/index.php": {
188
- "fileType": 8192,
189
- "ignore": 0,
190
- "ignoreWasSetByUser": 0,
191
- "inputAbbreviatedPath": "\/public\/assets\/css\/index.php",
192
- "outputAbbreviatedPath": "No Output Path",
193
- "outputPathIsOutsideProject": 0,
194
- "outputPathIsSetByUser": 0
195
- },
196
- "\/public\/assets\/css\/public.css": {
197
- "fileType": 16,
198
- "ignore": 0,
199
- "ignoreWasSetByUser": 0,
200
- "inputAbbreviatedPath": "\/public\/assets\/css\/public.css",
201
- "outputAbbreviatedPath": "No Output Path",
202
- "outputPathIsOutsideProject": 0,
203
- "outputPathIsSetByUser": 0
204
- },
205
- "\/public\/assets\/index.php": {
206
- "fileType": 8192,
207
- "ignore": 0,
208
- "ignoreWasSetByUser": 0,
209
- "inputAbbreviatedPath": "\/public\/assets\/index.php",
210
- "outputAbbreviatedPath": "No Output Path",
211
- "outputPathIsOutsideProject": 0,
212
- "outputPathIsSetByUser": 0
213
- },
214
- "\/public\/assets\/js\/index.php": {
215
- "fileType": 8192,
216
- "ignore": 0,
217
- "ignoreWasSetByUser": 0,
218
- "inputAbbreviatedPath": "\/public\/assets\/js\/index.php",
219
- "outputAbbreviatedPath": "No Output Path",
220
- "outputPathIsOutsideProject": 0,
221
- "outputPathIsSetByUser": 0
222
- },
223
- "\/public\/assets\/js\/min\/public-ck.js": {
224
- "fileType": 64,
225
- "ignore": 1,
226
- "ignoreWasSetByUser": 0,
227
- "inputAbbreviatedPath": "\/public\/assets\/js\/min\/public-ck.js",
228
- "outputAbbreviatedPath": "\/public\/assets\/js\/min\/min\/public-ck-ck.js",
229
- "outputPathIsOutsideProject": 0,
230
- "outputPathIsSetByUser": 0,
231
- "outputStyle": 1,
232
- "syntaxCheckerStyle": 1
233
- },
234
- "\/public\/assets\/js\/public.js": {
235
- "fileType": 64,
236
- "ignore": 0,
237
- "ignoreWasSetByUser": 0,
238
- "inputAbbreviatedPath": "\/public\/assets\/js\/public.js",
239
- "outputAbbreviatedPath": "\/public\/assets\/js\/min\/public-ck.js",
240
- "outputPathIsOutsideProject": 0,
241
- "outputPathIsSetByUser": 0,
242
- "outputStyle": 1,
243
- "syntaxCheckerStyle": 1
244
- },
245
- "\/public\/class-social-popup.php": {
246
- "fileType": 8192,
247
- "ignore": 0,
248
- "ignoreWasSetByUser": 0,
249
- "inputAbbreviatedPath": "\/public\/class-social-popup.php",
250
- "outputAbbreviatedPath": "No Output Path",
251
- "outputPathIsOutsideProject": 0,
252
- "outputPathIsSetByUser": 0
253
- },
254
- "\/public\/includes\/class-spu-rules.php": {
255
- "fileType": 8192,
256
- "ignore": 0,
257
- "ignoreWasSetByUser": 0,
258
- "inputAbbreviatedPath": "\/public\/includes\/class-spu-rules.php",
259
- "outputAbbreviatedPath": "No Output Path",
260
- "outputPathIsOutsideProject": 0,
261
- "outputPathIsSetByUser": 0
262
- },
263
- "\/public\/includes\/index.php": {
264
- "fileType": 8192,
265
- "ignore": 0,
266
- "ignoreWasSetByUser": 0,
267
- "inputAbbreviatedPath": "\/public\/includes\/index.php",
268
- "outputAbbreviatedPath": "No Output Path",
269
- "outputPathIsOutsideProject": 0,
270
- "outputPathIsSetByUser": 0
271
- },
272
- "\/public\/views\/index.php": {
273
- "fileType": 8192,
274
- "ignore": 0,
275
- "ignoreWasSetByUser": 0,
276
- "inputAbbreviatedPath": "\/public\/views\/index.php",
277
- "outputAbbreviatedPath": "No Output Path",
278
- "outputPathIsOutsideProject": 0,
279
- "outputPathIsSetByUser": 0
280
- },
281
- "\/public\/views\/public.php": {
282
- "fileType": 8192,
283
- "ignore": 0,
284
- "ignoreWasSetByUser": 0,
285
- "inputAbbreviatedPath": "\/public\/views\/public.php",
286
- "outputAbbreviatedPath": "No Output Path",
287
- "outputPathIsOutsideProject": 0,
288
- "outputPathIsSetByUser": 0
289
- },
290
- "\/uninstall.php": {
291
- "fileType": 8192,
292
- "ignore": 0,
293
- "ignoreWasSetByUser": 0,
294
- "inputAbbreviatedPath": "\/uninstall.php",
295
- "outputAbbreviatedPath": "No Output Path",
296
- "outputPathIsOutsideProject": 0,
297
- "outputPathIsSetByUser": 0
298
- }
299
- },
300
- "hooks": [
301
- ],
302
- "lastSavedByUser": "chifli",
303
- "manualImportLinks": {
304
- },
305
- "projectAttributes": {
306
- "bowerAbbreviatedPath": "",
307
- "displayValue": "Popups",
308
- "displayValueWasSetByUser": 1,
309
- "iconImageName": "compass_blue"
310
- },
311
- "projectSettings": {
312
- "alwaysUseExternalServer": 0,
313
- "animateCSSInjections": 1,
314
- "autoApplyPSLanguageSettingsStyle": 0,
315
- "autoprefixerBrowserString": "> 1%, last 2 versions, ff 17, opera 12.1",
316
- "autoSyncProjectSettingsFile": 1,
317
- "browserRefreshDelay": 0,
318
- "coffeeAutoOutputPathRelativePath": "",
319
- "coffeeAutoOutputPathReplace1": "",
320
- "coffeeAutoOutputPathReplace2": "",
321
- "coffeeAutoOutputPathStyle": 0,
322
- "coffeeCreateSourceMap": 0,
323
- "coffeeLintFlags2": {
324
- "arrow_spacing": {
325
- "active": 0,
326
- "flagValue": -1
327
- },
328
- "camel_case_classes": {
329
- "active": 1,
330
- "flagValue": -1
331
- },
332
- "colon_assignment_spacing": {
333
- "active": 0,
334
- "flagValue": 1
335
- },
336
- "cyclomatic_complexity": {
337
- "active": 0,
338
- "flagValue": 10
339
- },
340
- "duplicate_key": {
341
- "active": 1,
342
- "flagValue": -1
343
- },
344
- "empty_constructor_needs_parens": {
345
- "active": 0,
346
- "flagValue": -1
347
- },
348
- "indentation": {
349
- "active": 1,
350
- "flagValue": 2
351
- },
352
- "line_endings": {
353
- "active": 0,
354
- "flagValue": 0
355
- },
356
- "max_line_length": {
357
- "active": 0,
358
- "flagValue": 150
359
- },
360
- "missing_fat_arrows": {
361
- "active": 0,
362
- "flagValue": -1
363
- },
364
- "newlines_after_classes": {
365
- "active": 0,
366
- "flagValue": 3
367
- },
368
- "no_backticks": {
369
- "active": 1,
370
- "flagValue": -1
371
- },
372
- "no_debugger": {
373
- "active": 1,
374
- "flagValue": -1
375
- },
376
- "no_empty_functions": {
377
- "active": 0,
378
- "flagValue": -1
379
- },
380
- "no_empty_param_list": {
381
- "active": 0,
382
- "flagValue": -1
383
- },
384
- "no_implicit_braces": {
385
- "active": 1,
386
- "flagValue": -1
387
- },
388
- "no_implicit_parens": {
389
- "active": 0,
390
- "flagValue": -1
391
- },
392
- "no_interpolation_in_single_quotes": {
393
- "active": 0,
394
- "flagValue": -1
395
- },
396
- "no_plusplus": {
397
- "active": 0,
398
- "flagValue": -1
399
- },
400
- "no_stand_alone_at": {
401
- "active": 1,
402
- "flagValue": -1
403
- },
404
- "no_tabs": {
405
- "active": 1,
406
- "flagValue": -1
407
- },
408
- "no_throwing_strings": {
409
- "active": 1,
410
- "flagValue": -1
411
- },
412
- "no_trailing_semicolons": {
413
- "active": 1,
414
- "flagValue": -1
415
- },
416
- "no_trailing_whitespace": {
417
- "active": 1,
418
- "flagValue": -1
419
- },
420
- "no_unnecessary_double_quotes": {
421
- "active": 0,
422
- "flagValue": -1
423
- },
424
- "no_unnecessary_fat_arrows": {
425
- "active": 1,
426
- "flagValue": -1
427
- },
428
- "non_empty_constructor_needs_parens": {
429
- "active": 0,
430
- "flagValue": -1
431
- },
432
- "space_operators": {
433
- "active": 0,
434
- "flagValue": -1
435
- }
436
- },
437
- "coffeeMinifyOutput": 1,
438
- "coffeeOutputStyle": 0,
439
- "coffeeSyntaxCheckerStyle": 1,
440
- "externalServerAddress": "http:\/\/localhost:8888",
441
- "externalServerPreviewPathAddition": "",
442
- "genericWebpageFileExtensionsString": "html, htm, shtml, shtm, xhtml, php, jsp, asp, aspx, erb, ctp",
443
- "hamlAutoOutputPathRelativePath": "",
444
- "hamlAutoOutputPathReplace1": "",
445
- "hamlAutoOutputPathReplace2": "",
446
- "hamlAutoOutputPathStyle": 0,
447
- "hamlEscapeHTMLCharacters": 0,
448
- "hamlNoEscapeInAttributes": 0,
449
- "hamlOutputFormat": 2,
450
- "hamlOutputStyle": 0,
451
- "hamlUseCDATA": 0,
452
- "hamlUseDoubleQuotes": 0,
453
- "hamlUseUnixNewlines": 0,
454
- "jadeAutoOutputPathRelativePath": "",
455
- "jadeAutoOutputPathReplace1": "",
456
- "jadeAutoOutputPathReplace2": "",
457
- "jadeAutoOutputPathStyle": 0,
458
- "jadeCompileDebug": 1,
459
- "jadeOutputStyle": 0,
460
- "javascriptAutoOutputPathRelativePath": "\/min",
461
- "javascriptAutoOutputPathReplace1": "",
462
- "javascriptAutoOutputPathReplace2": "",
463
- "javascriptAutoOutputPathStyle": 2,
464
- "javascriptCreateSourceMap": 1,
465
- "javascriptOutputStyle": 1,
466
- "javascriptOutputSuffix": "-ck",
467
- "javascriptSyntaxCheckerStyle": 1,
468
- "jsCheckerReservedNamesString": "",
469
- "jsHintFlags2": {
470
- "asi": {
471
- "active": 0,
472
- "flagValue": -1
473
- },
474
- "bitwise": {
475
- "active": 1,
476
- "flagValue": -1
477
- },
478
- "boss": {
479
- "active": 0,
480
- "flagValue": -1
481
- },
482
- "browser": {
483
- "active": 1,
484
- "flagValue": -1
485
- },
486
- "camelcase": {
487
- "active": 0,
488
- "flagValue": -1
489
- },
490
- "couch": {
491
- "active": 0,
492
- "flagValue": -1
493
- },
494
- "curly": {
495
- "active": 1,
496
- "flagValue": -1
497
- },
498
- "debug": {
499
- "active": 0,
500
- "flagValue": -1
501
- },
502
- "devel": {
503
- "active": 0,
504
- "flagValue": -1
505
- },
506
- "dojo": {
507
- "active": 0,
508
- "flagValue": -1
509
- },
510
- "eqeqeq": {
511
- "active": 1,
512
- "flagValue": -1
513
- },
514
- "eqnull": {
515
- "active": 0,
516
- "flagValue": -1
517
- },
518
- "es3": {
519
- "active": 0,
520
- "flagValue": -1
521
- },
522
- "esnext": {
523
- "active": 0,
524
- "flagValue": -1
525
- },
526
- "evil": {
527
- "active": 0,
528
- "flagValue": -1
529
- },
530
- "expr": {
531
- "active": 0,
532
- "flagValue": -1
533
- },
534
- "forin": {
535
- "active": 0,
536
- "flagValue": -1
537
- },
538
- "freeze": {
539
- "active": 1,
540
- "flagValue": -1
541
- },
542
- "funcscope": {
543
- "active": 0,
544
- "flagValue": -1
545
- },
546
- "globalstrict": {
547
- "active": 0,
548
- "flagValue": -1
549
- },
550
- "immed": {
551
- "active": 0,
552
- "flagValue": -1
553
- },
554
- "indent": {
555
- "active": 0,
556
- "flagValue": 4
557
- },
558
- "iterator": {
559
- "active": 0,
560
- "flagValue": -1
561
- },
562
- "jquery": {
563
- "active": 1,
564
- "flagValue": -1
565
- },
566
- "lastsemic": {
567
- "active": 0,
568
- "flagValue": -1
569
- },
570
- "latedef": {
571
- "active": 1,
572
- "flagValue": -1
573
- },
574
- "laxbreak": {
575
- "active": 0,
576
- "flagValue": -1
577
- },
578
- "laxcomma": {
579
- "active": 0,
580
- "flagValue": -1
581
- },
582
- "loopfunc": {
583
- "active": 0,
584
- "flagValue": -1
585
- },
586
- "maxcomplexity": {
587
- "active": 0,
588
- "flagValue": 10
589
- },
590
- "maxdepth": {
591
- "active": 0,
592
- "flagValue": 3
593
- },
594
- "maxlen": {
595
- "active": 0,
596
- "flagValue": 150
597
- },
598
- "maxparams": {
599
- "active": 0,
600
- "flagValue": 3
601
- },
602
- "maxstatements": {
603
- "active": 0,
604
- "flagValue": 4
605
- },
606
- "mootools": {
607
- "active": 0,
608
- "flagValue": -1
609
- },
610
- "moz": {
611
- "active": 0,
612
- "flagValue": -1
613
- },
614
- "multistr": {
615
- "active": 0,
616
- "flagValue": -1
617
- },
618
- "newcap": {
619
- "active": 1,
620
- "flagValue": -1
621
- },
622
- "noarg": {
623
- "active": 1,
624
- "flagValue": -1
625
- },
626
- "node": {
627
- "active": 0,
628
- "flagValue": -1
629
- },
630
- "noempty": {
631
- "active": 0,
632
- "flagValue": -1
633
- },
634
- "nonbsp": {
635
- "active": 0,
636
- "flagValue": -1
637
- },
638
- "nonew": {
639
- "active": 1,
640
- "flagValue": -1
641
- },
642
- "nonstandard": {
643
- "active": 0,
644
- "flagValue": -1
645
- },
646
- "notypeof": {
647
- "active": 1,
648
- "flagValue": -1
649
- },
650
- "noyield": {
651
- "active": 0,
652
- "flagValue": -1
653
- },
654
- "onecase": {
655
- "active": 0,
656
- "flagValue": -1
657
- },
658
- "phantom": {
659
- "active": 0,
660
- "flagValue": -1
661
- },
662
- "plusplus": {
663
- "active": 0,
664
- "flagValue": -1
665
- },
666
- "proto": {
667
- "active": 0,
668
- "flagValue": -1
669
- },
670
- "prototypejs": {
671
- "active": 0,
672
- "flagValue": -1
673
- },
674
- "regexp": {
675
- "active": 1,
676
- "flagValue": -1
677
- },
678
- "rhino": {
679
- "active": 0,
680
- "flagValue": -1
681
- },
682
- "scripturl": {
683
- "active": 0,
684
- "flagValue": -1
685
- },
686
- "shadow": {
687
- "active": 0,
688
- "flagValue": -1
689
- },
690
- "shelljs": {
691
- "active": 0,
692
- "flagValue": -1
693
- },
694
- "strict": {
695
- "active": 0,
696
- "flagValue": -1
697
- },
698
- "sub": {
699
- "active": 0,
700
- "flagValue": -1
701
- },
702
- "supernew": {
703
- "active": 0,
704
- "flagValue": -1
705
- },
706
- "typed": {
707
- "active": 0,
708
- "flagValue": -1
709
- },
710
- "undef": {
711
- "active": 1,
712
- "flagValue": -1
713
- },
714
- "unused": {
715
- "active": 1,
716
- "flagValue": -1
717
- },
718
- "withstmt": {
719
- "active": 0,
720
- "flagValue": -1
721
- },
722
- "worker": {
723
- "active": 0,
724
- "flagValue": -1
725
- },
726
- "wsh": {
727
- "active": 0,
728
- "flagValue": -1
729
- },
730
- "yui": {
731
- "active": 0,
732
- "flagValue": -1
733
- }
734
- },
735
- "jsLintFlags2": {
736
- "ass": {
737
- "active": 0,
738
- "flagValue": -1
739
- },
740
- "bitwise": {
741
- "active": 0,
742
- "flagValue": -1
743
- },
744
- "browser": {
745
- "active": 1,
746
- "flagValue": -1
747
- },
748
- "closure": {
749
- "active": 0,
750
- "flagValue": -1
751
- },
752
- "continue": {
753
- "active": 0,
754
- "flagValue": -1
755
- },
756
- "debug": {
757
- "active": 0,
758
- "flagValue": -1
759
- },
760
- "devel": {
761
- "active": 0,
762
- "flagValue": -1
763
- },
764
- "eqeq": {
765
- "active": 0,
766
- "flagValue": -1
767
- },
768
- "evil": {
769
- "active": 0,
770
- "flagValue": -1
771
- },
772
- "forin": {
773
- "active": 0,
774
- "flagValue": -1
775
- },
776
- "indent": {
777
- "active": 0,
778
- "flagValue": 4
779
- },
780
- "maxlen": {
781
- "active": 0,
782
- "flagValue": 150
783
- },
784
- "newcap": {
785
- "active": 0,
786
- "flagValue": -1
787
- },
788
- "node": {
789
- "active": 0,
790
- "flagValue": -1
791
- },
792
- "nomen": {
793
- "active": 0,
794
- "flagValue": -1
795
- },
796
- "plusplus": {
797
- "active": 0,
798
- "flagValue": -1
799
- },
800
- "properties": {
801
- "active": 0,
802
- "flagValue": -1
803
- },
804
- "regexp": {
805
- "active": 0,
806
- "flagValue": -1
807
- },
808
- "rhino": {
809
- "active": 0,
810
- "flagValue": -1
811
- },
812
- "sloppy": {
813
- "active": 0,
814
- "flagValue": -1
815
- },
816
- "stupid": {
817
- "active": 0,
818
- "flagValue": -1
819
- },
820
- "sub": {
821
- "active": 0,
822
- "flagValue": -1
823
- },
824
- "todo": {
825
- "active": 0,
826
- "flagValue": -1
827
- },
828
- "unparam": {
829
- "active": 0,
830
- "flagValue": -1
831
- },
832
- "vars": {
833
- "active": 0,
834
- "flagValue": -1
835
- },
836
- "white": {
837
- "active": 0,
838
- "flagValue": -1
839
- }
840
- },
841
- "kitAutoOutputPathRelativePath": "",
842
- "kitAutoOutputPathReplace1": "",
843
- "kitAutoOutputPathReplace2": "",
844
- "kitAutoOutputPathStyle": 0,
845
- "lessAllowInsecureImports": 0,
846
- "lessAutoOutputPathRelativePath": "..\/css",
847
- "lessAutoOutputPathReplace1": "less",
848
- "lessAutoOutputPathReplace2": "css",
849
- "lessAutoOutputPathStyle": 2,
850
- "lessCreateSourceMap": 0,
851
- "lessDisableJavascript": 0,
852
- "lessIeCompatibility": 1,
853
- "lessOutputStyle": 0,
854
- "lessRelativeURLS": 0,
855
- "lessStrictImports": 0,
856
- "lessStrictMath": 0,
857
- "lessStrictUnits": 0,
858
- "markdownAutoOutputPathRelativePath": "",
859
- "markdownAutoOutputPathReplace1": "",
860
- "markdownAutoOutputPathReplace2": "",
861
- "markdownAutoOutputPathStyle": 0,
862
- "markdownEnableFootnotes": 0,
863
- "markdownEnableSmartyPants": 1,
864
- "markdownExpandTabs": 1,
865
- "reloadFileURLs": 0,
866
- "sassAutoOutputPathRelativePath": "..\/css",
867
- "sassAutoOutputPathReplace1": "sass",
868
- "sassAutoOutputPathReplace2": "css",
869
- "sassAutoOutputPathStyle": 2,
870
- "sassCreateSourceMap": 0,
871
- "sassDebugStyle": 0,
872
- "sassDecimalPrecision": 5,
873
- "sassOutputStyle": 0,
874
- "sassUseLibsass": 0,
875
- "shouldRunAutoprefixer": 0,
876
- "shouldRunBless": 0,
877
- "skippedItemsString": ".svn, .git, .hg, log, _logs, _cache, cache, logs",
878
- "slimAutoOutputPathRelativePath": "",
879
- "slimAutoOutputPathReplace1": "",
880
- "slimAutoOutputPathReplace2": "",
881
- "slimAutoOutputPathStyle": 0,
882
- "slimCompileOnly": 0,
883
- "slimLogicless": 0,
884
- "slimOutputStyle": 1,
885
- "slimRailsCompatible": 0,
886
- "stylusAutoOutputPathRelativePath": "..\/css",
887
- "stylusAutoOutputPathReplace1": "stylus",
888
- "stylusAutoOutputPathReplace2": "css",
889
- "stylusAutoOutputPathStyle": 2,
890
- "stylusDebugStyle": 0,
891
- "stylusImportCSS": 0,
892
- "stylusOutputStyle": 0,
893
- "stylusResolveRelativeURLS": 0,
894
- "typescriptAutoOutputPathRelativePath": "\/js",
895
- "typescriptAutoOutputPathReplace1": "",
896
- "typescriptAutoOutputPathReplace2": "",
897
- "typescriptAutoOutputPathStyle": 2,
898
- "typescriptCreateDeclarationFile": 0,
899
- "typescriptCreateSourceMap": 0,
900
- "typescriptMinifyOutput": 0,
901
- "typescriptModuleType": 0,
902
- "typescriptNoImplicitAny": 0,
903
- "typescriptNoResolve": 0,
904
- "typescriptRemoveComments": 0,
905
- "typescriptTargetECMAVersion": 0,
906
- "uglifyDefinesString": "",
907
- "uglifyFlags2": {
908
- "ascii-only": {
909
- "active": 0,
910
- "flagValue": -1
911
- },
912
- "booleans": {
913
- "active": 1,
914
- "flagValue": -1
915
- },
916
- "bracketize": {
917
- "active": 0,
918
- "flagValue": -1
919
- },
920
- "cascade": {
921
- "active": 1,
922
- "flagValue": -1
923
- },
924
- "comments": {
925
- "active": 1,
926
- "flagValue": -1
927
- },
928
- "comparisons": {
929
- "active": 1,
930
- "flagValue": -1
931
- },
932
- "compress": {
933
- "active": 1,
934
- "flagValue": -1
935
- },
936
- "conditionals": {
937
- "active": 1,
938
- "flagValue": -1
939
- },
940
- "dead_code": {
941
- "active": 0,
942
- "flagValue": -1
943
- },
944
- "drop_debugger": {
945
- "active": 1,
946
- "flagValue": -1
947
- },
948
- "eval": {
949
- "active": 0,
950
- "flagValue": -1
951
- },
952
- "evaluate": {
953
- "active": 1,
954
- "flagValue": -1
955
- },
956
- "hoist_funs": {
957
- "active": 1,
958
- "flagValue": -1
959
- },
960
- "hoist_vars": {
961
- "active": 0,
962
- "flagValue": -1
963
- },
964
- "if_return": {
965
- "active": 1,
966
- "flagValue": -1
967
- },
968
- "indent-level": {
969
- "active": 0,
970
- "flagValue": 4
971
- },
972
- "indent-start": {
973
- "active": 0,
974
- "flagValue": 0
975
- },
976
- "inline-script": {
977
- "active": 0,
978
- "flagValue": -1
979
- },
980
- "join_vars": {
981
- "active": 1,
982
- "flagValue": -1
983
- },
984
- "loops": {
985
- "active": 1,
986
- "flagValue": -1
987
- },
988
- "mangle": {
989
- "active": 1,
990
- "flagValue": -1
991
- },
992
- "max-line-len": {
993
- "active": 1,
994
- "flagValue": 32000
995
- },
996
- "properties": {
997
- "active": 1,
998
- "flagValue": -1
999
- },
1000
- "quote-keys": {
1001
- "active": 0,
1002
- "flagValue": -1
1003
- },
1004
- "screw-ie8": {
1005
- "active": 0,
1006
- "flagValue": -1
1007
- },
1008
- "semicolons": {
1009
- "active": 1,
1010
- "flagValue": -1
1011
- },
1012
- "sequences": {
1013
- "active": 1,
1014
- "flagValue": -1
1015
- },
1016
- "sort": {
1017
- "active": 0,
1018
- "flagValue": -1
1019
- },
1020
- "space-colon": {
1021
- "active": 1,
1022
- "flagValue": -1
1023
- },
1024
- "toplevel": {
1025
- "active": 0,
1026
- "flagValue": -1
1027
- },
1028
- "unsafe": {
1029
- "active": 0,
1030
- "flagValue": -1
1031
- },
1032
- "unused": {
1033
- "active": 0,
1034
- "flagValue": -1
1035
- },
1036
- "warnings": {
1037
- "active": 0,
1038
- "flagValue": -1
1039
- },
1040
- "width": {
1041
- "active": 1,
1042
- "flagValue": 80
1043
- }
1044
- },
1045
- "uglifyReservedNamesString": "$",
1046
- "websiteRelativeRoot": ""
1047
- },
1048
- "settingsFileVersion": "2"
1049
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
popups.php CHANGED
@@ -11,7 +11,7 @@
11
  * @socialpopup
12
  * Plugin Name: Popups
13
  * Plugin URI: http://www.timersys.com/free-plugins/social-popup/
14
- * Version: 1.0.7
15
  * Description: This plugin will display a popup or splash screen when a new user visit your site showing a Google+, twitter and facebook follow links. This will increase you followers ratio in a 40%. Popup will be close depending on your settings. Check readme.txt for full details.
16
  * Author: Damian Logghe
17
  * Author URI: http://wp.timersys.com
@@ -30,9 +30,9 @@ if ( ! defined( 'WPINC' ) ) {
30
  * Public-Facing Functionality
31
  *----------------------------------------------------------------------------*/
32
 
33
- define( SPU_PLUGIN_DIR , plugin_dir_path(__FILE__) );
34
- define( SPU_PLUGIN_URL , plugin_dir_url(__FILE__) );
35
- define( SPU_PLUGIN_HOOK , basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
36
 
37
 
38
  require_once( plugin_dir_path( __FILE__ ) . 'public/class-social-popup.php' );
11
  * @socialpopup
12
  * Plugin Name: Popups
13
  * Plugin URI: http://www.timersys.com/free-plugins/social-popup/
14
+ * Version: 1.1
15
  * Description: This plugin will display a popup or splash screen when a new user visit your site showing a Google+, twitter and facebook follow links. This will increase you followers ratio in a 40%. Popup will be close depending on your settings. Check readme.txt for full details.
16
  * Author: Damian Logghe
17
  * Author URI: http://wp.timersys.com
30
  * Public-Facing Functionality
31
  *----------------------------------------------------------------------------*/
32
 
33
+ define( 'SPU_PLUGIN_DIR' , plugin_dir_path(__FILE__) );
34
+ define( 'SPU_PLUGIN_URL' , plugin_dir_url(__FILE__) );
35
+ define( 'SPU_PLUGIN_HOOK' , basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
36
 
37
 
38
  require_once( plugin_dir_path( __FILE__ ) . 'public/class-social-popup.php' );
public/assets/js/min/public-ck.js CHANGED
@@ -1 +1 @@
1
- function createCookie(t,i,n){if(n){var e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3);var o="; expires="+e.toGMTString()}else var o="";document.cookie=t+"="+i+o+"; path=/"}function readCookie(t){for(var i=t+"=",n=document.cookie.split(";"),e=0;e<n.length;e++){for(var o=n[e];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(i))return o.substring(i.length,o.length)}return null}jQuery(window).load(function(){window.SPU=function($){function t(t){var i=o[t],n=$(window).width(),e=$(window).height(),a=i.height(),s=i.width();i.css({position:"fixed",top:e/2-a/2,left:n/2-s/2})}function i(t,i){var n=o[t],e=$("#spu-bg-"+t),a=n.data("bgopa");if(n.is(":animated"))return!1;if(i===!0&&n.is(":visible")||i===!1&&n.is(":hidden"))return!1;if(i===!1){var s=parseInt(n.data("cookie"));s>0&&createCookie("spu_box_"+t,!0,s)}var r=n.data("animation");return"fade"===r?n.fadeToggle("slow"):n.slideToggle("slow"),i===!0&&a>0?e.fadeIn():e.fadeOut(),i}var n=$(window).height(),e=spuvar.is_admin,o=[];return $(".spu-content").children().first().css({"margin-top":0,"padding-top":0}).end().last().css({"margin-bottom":0,"padding-bottom":0}),$(".spu-box").each(function(){var a=$(this),s=a.data("trigger"),r=0,d=1===parseInt(a.data("test-mode")),c=a.data("box-id"),u=1===parseInt(a.data("auto-hide")),h=1===parseInt(a.data("advanced-close")),f=parseInt(a.data("seconds-close"));$(".spu-google").width($(".spu-google").width()-20),$(".spu-twitter").width($(".spu-twitter").width()-12);var l=0,g=0,w=$(this).find(".spu-content").width(),p=a.data("total");if(p&&($(this).find(".spu-shortcode").each(function(){l+=$(this).width()}),g=w-l),g>0&&($(this).find(".spu-shortcode").each(function(){3==p?$(this).css("margin-left",g/(p-1)):$(this).css("margin-left",g/2)}),2==p?$(this).find(".spu-shortcode").last().css("margin-left",0):3==p&&$(this).find(".spu-shortcode").first().css("margin-left",0)),h){$(document).keyup(function(t){27==t.keyCode&&i(c,!1)});var m=navigator.userAgent,v=m.match(/iPad/i)||m.match(/iPhone/i)?"touchstart":"click";$("body").on(v,function(t){console.log(v.target),i(c,!1)}),$(".spu-box").on(v,function(t){t.stopPropagation()})}if(a.hide().css("left",""),o[c]=a,"seconds"==s)var b=parseInt(a.data("trigger-number"),10);else var k="percentage"==s?parseInt(a.data("trigger-number"),10)/100:.8,T=k*$(document).height();var x=function(){r&&clearTimeout(r),r=window.setTimeout(function(){var e=$(window).scrollTop(),o=e+n>=T;o?(u||$(window).unbind("scroll",x),a.hasClass("spu-centered")&&t(c),i(c,!0)):i(c,!1)},100)},I=function(){r&&clearTimeout(r),r=window.setTimeout(function(){a.hasClass("spu-centered")&&t(c),i(c,!0)},1e3*b)},C=readCookie("spu_box_"+c);if((void 0==C||e&&d)&&("seconds"==s?I():($(window).bind("scroll",x),x()),window.location.hash&&window.location.hash.length>0)){var y=window.location.hash,_;y.substring(1)===a.attr("id")&&setTimeout(function(){i(c,!0)},100)}a.find(".spu-close").click(function(){i(c,!1),"percentage"==s&&$(window).unbind("scroll",x)}),$('a[href="#'+a.attr("id")+'"]').click(function(){return i(c,!0),!1})}),{show:function(t){return i(t,!0)},hide:function(t){return i(t,!1)}}}(window.jQuery)});
1
+ function spuCreateCookie(t,i,n){if(n){var e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3);var o="; expires="+e.toGMTString()}else var o="";document.cookie=t+"="+i+o+"; path=/"}function spuReadCookie(t){for(var i=t+"=",n=document.cookie.split(";"),e=0;e<n.length;e++){for(var o=n[e];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(i))return o.substring(i.length,o.length)}return null}jQuery(window).load(function(){window.SPU=function($){function t(t){var i=o[t],n=$(window).width(),e=$(window).height(),s=i.height(),a=i.width();i.css({position:"fixed",top:e/2-s/2,left:n/2-a/2})}function i(i,n){var e=o[i],s=$("#spu-bg-"+i),a=e.data("bgopa");if(e.is(":animated"))return!1;if(n===!0&&e.is(":visible")||n===!1&&e.is(":hidden"))return!1;if(n===!1){var r=parseInt(e.data("cookie"));r>0&&spuCreateCookie("spu_box_"+i,!0,r)}e.hasClass("spu-centered")&&t(i);var d=e.data("animation");return"fade"===d?e.fadeToggle("slow"):e.slideToggle("slow"),n===!0&&a>0?s.fadeIn():s.fadeOut(),n}var n=$(window).height(),e=spuvar.is_admin,o=[];return $(".spu-content").children().first().css({"margin-top":0,"padding-top":0}).end().last().css({"margin-bottom":0,"padding-bottom":0}),$(".spu-box").each(function(){var t=$(this),s=t.data("trigger"),a=0,r=1===parseInt(t.data("test-mode")),d=t.data("box-id"),u=1===parseInt(t.data("auto-hide")),c=parseInt(t.data("seconds-close")),h=parseInt(t.data("trigger-number"),10),f="percentage"==s?parseInt(t.data("trigger-number"),10)/100:.8,l=f*$(document).height();$(".spu-google").width($(".spu-google").width()-20),$(".spu-twitter").width($(".spu-twitter").width()-12);var g=0,p=0,w=$(this).find(".spu-content").width(),m=t.data("total");m&&($(this).find(".spu-shortcode").each(function(){g+=$(this).width()}),p=w-g),p>0&&($(this).find(".spu-shortcode").each(function(){3==m?$(this).css("margin-left",p/(m-1)):$(this).css("margin-left",p/2)}),2==m?$(this).find(".spu-shortcode").last().css("margin-left",0):3==m&&$(this).find(".spu-shortcode").first().css("margin-left",0)),$(document).keyup(function(t){27==t.keyCode&&i(d,!1)});var v=navigator.userAgent,b=v.match(/iPad/i)||v.match(/iPhone/i)?"touchstart":"click";$("body").on(b,function(t){console.log(b.target),i(d,!1)}),$(".spu-box").on(b,function(t){t.stopPropagation()}),t.hide().css("left",""),o[d]=t;var k=function(){a&&clearTimeout(a),a=window.setTimeout(function(){var t=$(window).scrollTop(),e=t+n>=l;e?(u||$(window).unbind("scroll",k),i(d,!0)):i(d,!1)},100)},T=function(){a&&clearTimeout(a),a=window.setTimeout(function(){i(d,!0)},1e3*h)},x=spuReadCookie("spu_box_"+d);if((void 0==x||e&&r)&&("seconds"==s?T():($(window).bind("scroll",k),k()),window.location.hash&&window.location.hash.length>0)){var C=window.location.hash,I;C.substring(1)===t.attr("id")&&setTimeout(function(){i(d,!0)},100)}t.find(".spu-close").click(function(){i(d,!1),"percentage"==s&&$(window).unbind("scroll",k)}),$('a[href="#'+t.attr("id")+'"]').click(function(){return i(d,!0),!1})}),{show:function(t){return i(t,!0)},hide:function(t){return i(t,!1)}}}(window.jQuery)});
public/assets/js/public.js CHANGED
@@ -26,18 +26,21 @@ jQuery(window).load(function() {
26
  var testMode = (parseInt($box.data('test-mode')) === 1);
27
  var id = $box.data('box-id');
28
  var autoHide = (parseInt($box.data('auto-hide')) === 1);
29
- var advancedClose = (parseInt($box.data('advanced-close')) === 1);
30
- var secondsClose = parseInt($box.data('seconds-close'));
 
 
31
 
32
  //correct widths of sharing icons
33
  $('.spu-google').width($('.spu-google').width()-20);
34
  $('.spu-twitter').width($('.spu-twitter').width()-12);
 
35
  //center spu-shortcodes
36
  var swidth = 0;
37
  var free_width = 0;
38
  var cwidth = $(this).find(".spu-content").width();
39
  var total = $box.data('total'); //total of shortcodes used
40
- if( total ){
41
 
42
  //calculate total width of shortcodes all togheter
43
  $(this).find(".spu-shortcode").each(function(){
@@ -73,32 +76,25 @@ jQuery(window).load(function() {
73
  }
74
  }
75
 
76
- if ( advancedClose ) {
77
- //close with esc
78
- $(document).keyup(function(e) {
79
- if (e.keyCode == 27) {
80
- toggleBox( id, false );
81
- }
82
- });
83
- //close on ipads // iphones
84
- var ua = navigator.userAgent,
85
- event = (ua.match(/iPad/i) || ua.match(/iPhone/i)) ? "touchstart" : "click";
86
-
87
- $('body').on(event, function (ev) {
88
- console.log(event.target);
89
  toggleBox( id, false );
90
- });
91
- //not on the box
92
- $('.spu-box' ).on(event, function(event) {
93
- event.stopPropagation();
94
- });
95
- }
96
- // Seconds left to close
97
- // if( secondsClose > 0 )
98
- // {
99
- // spu_count= defaults.s_to_close;
100
- // spu_counter = setInterval(function(){spu_timer(defaults)}, 1000);
101
- // }
 
 
102
 
103
  //hide boxes and remove left-99999px we cannot since beggining of facebook won't display
104
  $box.hide().css('left','');
@@ -106,14 +102,6 @@ jQuery(window).load(function() {
106
  // add box to global boxes array
107
  $boxes[id] = $box;
108
 
109
-
110
- if(triggerMethod == 'seconds') {
111
- var triggerSeconds = parseInt( $box.data('trigger-number'), 10 );
112
- } else {
113
- var triggerPercentage = ( triggerMethod == 'percentage' ) ? ( parseInt( $box.data('trigger-number'), 10 ) / 100 ) : 0.8;
114
- var triggerHeight = ( triggerPercentage * $(document).height() );
115
- }
116
-
117
  // functions that check % of height
118
  var triggerHeightCheck = function()
119
  {
@@ -132,12 +120,7 @@ jQuery(window).load(function() {
132
  if( ! autoHide ) {
133
  $(window).unbind('scroll', triggerHeightCheck);
134
  }
135
- //if is a centered popup, center it
136
- if( $box.hasClass('spu-centered') ) {
137
 
138
- centerBox( id );
139
-
140
- }
141
  toggleBox( id, true );
142
  } else {
143
  toggleBox( id, false );
@@ -153,19 +136,14 @@ jQuery(window).load(function() {
153
  }
154
 
155
  timer = window.setTimeout(function() {
156
- //if is a centered popup, center it
157
- if( $box.hasClass('spu-centered') ) {
158
 
159
- centerBox( id );
160
-
161
- }
162
  toggleBox( id, true );
163
 
164
  }, triggerSeconds * 1000);
165
  }
166
 
167
  // show box if cookie not set or if in test mode
168
- var cookieValue = readCookie( 'spu_box_' + id );
169
 
170
  if( cookieValue == undefined || ( isAdmin && testMode ) ) {
171
 
@@ -204,7 +182,11 @@ jQuery(window).load(function() {
204
  });
205
 
206
  // add link listener for this box
207
- $('a[href="#' + $box.attr('id') +'"]').click(function() { toggleBox(id, true); return false; });
 
 
 
 
208
 
209
  });
210
  //function that center popup on screen
@@ -242,9 +224,16 @@ jQuery(window).load(function() {
242
  // set cookie
243
  var days = parseInt( $box.data('cookie') );
244
  if( days > 0 ) {
245
- createCookie( 'spu_box_' + id, true, days );
246
  }
247
  }
 
 
 
 
 
 
 
248
 
249
  // show box
250
  var animation = $box.data('animation');
@@ -278,7 +267,7 @@ jQuery(window).load(function() {
278
  /**
279
  * Cookie functions
280
  */
281
- function createCookie(name, value, days) {
282
  if (days) {
283
  var date = new Date();
284
  date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
@@ -287,7 +276,7 @@ function createCookie(name, value, days) {
287
  document.cookie = name + "=" + value + expires + "; path=/";
288
  }
289
 
290
- function readCookie(name) {
291
  var nameEQ = name + "=";
292
  var ca = document.cookie.split(';');
293
  for (var i = 0; i < ca.length; i++) {
26
  var testMode = (parseInt($box.data('test-mode')) === 1);
27
  var id = $box.data('box-id');
28
  var autoHide = (parseInt($box.data('auto-hide')) === 1);
29
+ var secondsClose = parseInt($box.data('seconds-close'));
30
+ var triggerSeconds = parseInt( $box.data('trigger-number'), 10 );
31
+ var triggerPercentage = ( triggerMethod == 'percentage' ) ? ( parseInt( $box.data('trigger-number'), 10 ) / 100 ) : 0.8;
32
+ var triggerHeight = ( triggerPercentage * $(document).height() );
33
 
34
  //correct widths of sharing icons
35
  $('.spu-google').width($('.spu-google').width()-20);
36
  $('.spu-twitter').width($('.spu-twitter').width()-12);
37
+
38
  //center spu-shortcodes
39
  var swidth = 0;
40
  var free_width = 0;
41
  var cwidth = $(this).find(".spu-content").width();
42
  var total = $box.data('total'); //total of shortcodes used
43
+ if( total && ! spuvar.disable_style ){
44
 
45
  //calculate total width of shortcodes all togheter
46
  $(this).find(".spu-shortcode").each(function(){
76
  }
77
  }
78
 
79
+
80
+ //close with esc
81
+ $(document).keyup(function(e) {
82
+ if (e.keyCode == 27) {
 
 
 
 
 
 
 
 
 
83
  toggleBox( id, false );
84
+ }
85
+ });
86
+ //close on ipads // iphones
87
+ var ua = navigator.userAgent,
88
+ event = (ua.match(/iPad/i) || ua.match(/iPhone/i)) ? "touchstart" : "click";
89
+
90
+ $('body').on(event, function (ev) {
91
+ console.log(event.target);
92
+ toggleBox( id, false );
93
+ });
94
+ //not on the box
95
+ $('.spu-box' ).on(event, function(event) {
96
+ event.stopPropagation();
97
+ });
98
 
99
  //hide boxes and remove left-99999px we cannot since beggining of facebook won't display
100
  $box.hide().css('left','');
102
  // add box to global boxes array
103
  $boxes[id] = $box;
104
 
 
 
 
 
 
 
 
 
105
  // functions that check % of height
106
  var triggerHeightCheck = function()
107
  {
120
  if( ! autoHide ) {
121
  $(window).unbind('scroll', triggerHeightCheck);
122
  }
 
 
123
 
 
 
 
124
  toggleBox( id, true );
125
  } else {
126
  toggleBox( id, false );
136
  }
137
 
138
  timer = window.setTimeout(function() {
 
 
139
 
 
 
 
140
  toggleBox( id, true );
141
 
142
  }, triggerSeconds * 1000);
143
  }
144
 
145
  // show box if cookie not set or if in test mode
146
+ var cookieValue = spuReadCookie( 'spu_box_' + id );
147
 
148
  if( cookieValue == undefined || ( isAdmin && testMode ) ) {
149
 
182
  });
183
 
184
  // add link listener for this box
185
+ $('a[href="#' + $box.attr('id') +'"]').click(function() {
186
+
187
+ toggleBox(id, true);
188
+ return false;
189
+ });
190
 
191
  });
192
  //function that center popup on screen
224
  // set cookie
225
  var days = parseInt( $box.data('cookie') );
226
  if( days > 0 ) {
227
+ spuCreateCookie( 'spu_box_' + id, true, days );
228
  }
229
  }
230
+
231
+ //if is a centered popup, center it
232
+ if( $box.hasClass('spu-centered') ) {
233
+
234
+ centerBox( id );
235
+
236
+ }
237
 
238
  // show box
239
  var animation = $box.data('animation');
267
  /**
268
  * Cookie functions
269
  */
270
+ function spuCreateCookie(name, value, days) {
271
  if (days) {
272
  var date = new Date();
273
  date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
276
  document.cookie = name + "=" + value + expires + "; path=/";
277
  }
278
 
279
+ function spuReadCookie(name) {
280
  var nameEQ = name + "=";
281
  var ca = document.cookie.split(';');
282
  for (var i = 0; i < ca.length; i++) {
public/class-social-popup.php CHANGED
@@ -23,7 +23,7 @@ class SocialPopup {
23
  *
24
  * @var string
25
  */
26
- const VERSION = '1.0.7';
27
 
28
  /**
29
  * Popups to use acrros files
@@ -35,10 +35,6 @@ class SocialPopup {
35
  const PLUGIN_NAME = 'Popups';
36
 
37
  /**
38
- * @TODO - Rename "plugin-name" to the name your your plugin
39
- *
40
- * Unique identifier for your plugin.
41
- *
42
  *
43
  * The variable name is used as the text domain when internationalizing strings
44
  * of text. Its value should match the Text Domain file header in the main
@@ -50,6 +46,12 @@ class SocialPopup {
50
  */
51
  protected $plugin_slug = 'spu';
52
 
 
 
 
 
 
 
53
  /**
54
  * Instance of this class.
55
  *
@@ -84,6 +86,8 @@ class SocialPopup {
84
  'upgrade_version' => '1.6.4.3',
85
  );
86
 
 
 
87
  // Load plugin text domain
88
  add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
89
 
@@ -101,6 +105,7 @@ class SocialPopup {
101
 
102
  //FILTERS
103
  add_filter('spu/get_info', array($this, 'get_info'), 1, 1);
 
104
  //spu content function
105
  add_filter( 'spu/popup/content', 'wptexturize') ;
106
  add_filter( 'spu/popup/content', 'convert_smilies' );
@@ -321,24 +326,26 @@ class SocialPopup {
321
 
322
  $js_url = plugins_url( 'assets/js/min/public-ck.js', __FILE__ );
323
 
324
- if( defined( 'SPU_DEBUG_MODE' ) ) {
 
 
325
  $js_url = plugins_url( 'assets/js/public.js', __FILE__ );
326
  }
327
  wp_register_style( 'spu-public-css', plugins_url( 'assets/css/public.css', __FILE__ ), array(), self::VERSION );
328
 
329
  wp_register_script( 'spu-public', $js_url, array( 'jquery' ), self::VERSION, true );
330
 
331
- if( ! defined( 'SPU_UNLOAD_FB_JS') ) {
332
 
333
  wp_register_script( 'spu-facebook', 'http://connect.facebook.net/'.get_locale().'/all.js#xfbml=1', array('jquery'), self::VERSION, FALSE);
334
 
335
  }
336
- if( ! defined( 'SPU_UNLOAD_TW_JS') ) {
337
 
338
  wp_register_script( 'spu-twitter', 'http://platform.twitter.com/widgets.js', array('jquery'), self::VERSION, FALSE);
339
 
340
  }
341
- if( ! defined( 'SPU_UNLOAD_GO_JS') ) {
342
 
343
  wp_register_script( 'spu-google', 'https://apis.google.com/js/plusone.js', array('jquery'), self::VERSION, FALSE);
344
 
@@ -387,6 +394,7 @@ class SocialPopup {
387
  if( has_shortcode( $spu->post_content, 'spu-google' ) ){
388
  $google = true;
389
  $total_shortcodes[$spu->ID]++;
 
390
  }
391
  }
392
  }
@@ -396,7 +404,7 @@ class SocialPopup {
396
 
397
  wp_enqueue_script('spu-public');
398
  wp_enqueue_style('spu-public-css');
399
- wp_localize_script( 'spu-public', 'spuvar', array( 'is_admin' => current_user_can( 'administrator' ) ) );
400
 
401
  if( $facebook ){
402
  wp_enqueue_script( 'spu-facebook' );
@@ -547,4 +555,15 @@ class SocialPopup {
547
 
548
  }
549
 
 
 
 
 
 
 
 
 
 
 
 
550
  }
23
  *
24
  * @var string
25
  */
26
+ const VERSION = '1.1';
27
 
28
  /**
29
  * Popups to use acrros files
35
  const PLUGIN_NAME = 'Popups';
36
 
37
  /**
 
 
 
 
38
  *
39
  * The variable name is used as the text domain when internationalizing strings
40
  * of text. Its value should match the Text Domain file header in the main
46
  */
47
  protected $plugin_slug = 'spu';
48
 
49
+ /**
50
+ * Plugins settings
51
+ * @var array
52
+ */
53
+ protected $spu_settings = array();
54
+
55
  /**
56
  * Instance of this class.
57
  *
86
  'upgrade_version' => '1.6.4.3',
87
  );
88
 
89
+ $this->spu_settings = apply_filters('spu/settings_page/opts', get_option( 'spu_settings' ) );
90
+
91
  // Load plugin text domain
92
  add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
93
 
105
 
106
  //FILTERS
107
  add_filter('spu/get_info', array($this, 'get_info'), 1, 1);
108
+
109
  //spu content function
110
  add_filter( 'spu/popup/content', 'wptexturize') ;
111
  add_filter( 'spu/popup/content', 'convert_smilies' );
326
 
327
  $js_url = plugins_url( 'assets/js/min/public-ck.js', __FILE__ );
328
 
329
+ $opts = $this->spu_settings;
330
+
331
+ if( defined( 'SPU_DEBUG_MODE' ) || !empty( $opts['debug'] ) ) {
332
  $js_url = plugins_url( 'assets/js/public.js', __FILE__ );
333
  }
334
  wp_register_style( 'spu-public-css', plugins_url( 'assets/css/public.css', __FILE__ ), array(), self::VERSION );
335
 
336
  wp_register_script( 'spu-public', $js_url, array( 'jquery' ), self::VERSION, true );
337
 
338
+ if( ! defined( 'SPU_UNLOAD_FB_JS') || !empty( $opts['facebook'] ) ) {
339
 
340
  wp_register_script( 'spu-facebook', 'http://connect.facebook.net/'.get_locale().'/all.js#xfbml=1', array('jquery'), self::VERSION, FALSE);
341
 
342
  }
343
+ if( ! defined( 'SPU_UNLOAD_TW_JS') || !empty( $opts['google'] ) ) {
344
 
345
  wp_register_script( 'spu-twitter', 'http://platform.twitter.com/widgets.js', array('jquery'), self::VERSION, FALSE);
346
 
347
  }
348
+ if( ! defined( 'SPU_UNLOAD_GO_JS') || !empty( $opts['twitter'] ) ) {
349
 
350
  wp_register_script( 'spu-google', 'https://apis.google.com/js/plusone.js', array('jquery'), self::VERSION, FALSE);
351
 
394
  if( has_shortcode( $spu->post_content, 'spu-google' ) ){
395
  $google = true;
396
  $total_shortcodes[$spu->ID]++;
397
+ $total_shortcodes['google'] = true;
398
  }
399
  }
400
  }
404
 
405
  wp_enqueue_script('spu-public');
406
  wp_enqueue_style('spu-public-css');
407
+ wp_localize_script( 'spu-public', 'spuvar', array( 'is_admin' => current_user_can( 'administrator' ), 'disable_style' => $this->spu_settings['shortcodes_style'] ) );
408
 
409
  if( $facebook ){
410
  wp_enqueue_script( 'spu-facebook' );
555
 
556
  }
557
 
558
+ /**
559
+ * Return plugin settings
560
+ * @return array
561
+ * @since 1.1
562
+ */
563
+ function get_settings() {
564
+
565
+ return $this->spu_settings;
566
+
567
+ }
568
+
569
  }
public/views/popup.php CHANGED
@@ -39,12 +39,12 @@ do_action( 'spu/popup/before_popup', $box, $opts, $css);
39
  }
40
  </style>
41
  <div class="spu-bg" id="spu-bg-<?php echo $box->ID; ?>"></div>
42
- <div class="spu-box spu-<?php echo esc_attr( $opts['css']['position'] ); ?> spu-total-<?php echo $total_shortcodes[$box->ID];?>" id="spu-<?php echo $box->ID; ?>"
43
  data-box-id="<?php echo $box->ID ; ?>" data-trigger="<?php echo esc_attr( $opts['trigger'] ); ?>"
44
  data-trigger-number="<?php echo esc_attr( absint( $opts['trigger_number'] ) ); ?>"
45
  data-animation="<?php echo esc_attr($opts['animation']); ?>" data-cookie="<?php echo esc_attr( absint ( $opts['cookie'] ) ); ?>" data-test-mode="<?php echo esc_attr($opts['test_mode']); ?>"
46
- data-auto-hide="<?php echo esc_attr($opts['auto_hide']); ?>" data-bgopa="<?php echo esc_attr($css['bgopacity']);?>" data-advanced-close="1" data-total="<?php echo $total_shortcodes[$box->ID];?>"
47
- style="left:-99999px" <?php echo apply_filters( 'spu/popup/data_attrs', $data_attrs );?>>
48
  <div class="spu-content"><?php echo $content; ?></div>
49
  <span class="spu-close">&times;</span>
50
  <span class="spu-timer"></span>
39
  }
40
  </style>
41
  <div class="spu-bg" id="spu-bg-<?php echo $box->ID; ?>"></div>
42
+ <div class="spu-box spu-<?php echo esc_attr( $opts['css']['position'] ); ?> spu-total-<?php echo $total_shortcodes[$box->ID];?> <?php echo isset( $total_shortcodes['google'] ) ? 'spu-gogl' : '';?>" id="spu-<?php echo $box->ID; ?>"
43
  data-box-id="<?php echo $box->ID ; ?>" data-trigger="<?php echo esc_attr( $opts['trigger'] ); ?>"
44
  data-trigger-number="<?php echo esc_attr( absint( $opts['trigger_number'] ) ); ?>"
45
  data-animation="<?php echo esc_attr($opts['animation']); ?>" data-cookie="<?php echo esc_attr( absint ( $opts['cookie'] ) ); ?>" data-test-mode="<?php echo esc_attr($opts['test_mode']); ?>"
46
+ data-auto-hide="<?php echo esc_attr($opts['auto_hide']); ?>" data-bgopa="<?php echo esc_attr($css['bgopacity']);?>" data-total="<?php echo $total_shortcodes[$box->ID];?>"
47
+ style="left:-99999px" <?php echo apply_filters( 'spu/popup/data_attrs', $data_attrs, $opts);?>>
48
  <div class="spu-content"><?php echo $content; ?></div>
49
  <span class="spu-close">&times;</span>
50
  <span class="spu-timer"></span>