Popups – WordPress Popup - Version 1.0.5

Version Description

  • Changed to only admins users can edit/create popups
  • Fixed error that facebook layout were not working properly
  • Added the ability to remove JS from facebook, twitter, and google by using variables
Download this release

Release Info

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

Code changes from version 1.0.4 to 1.0.5

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
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.1
7
- Stable tag: 1.0.4
8
  Text Domain: spucpt
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -74,9 +74,22 @@ Enhance your site by letting your users send Social Invitations ([http://wp.time
74
  3. Popups Back end - display rules and options
75
  4. Popups Back end - appearance
76
 
 
 
 
 
 
 
 
77
 
78
  == Changelog ==
79
 
 
 
 
 
 
 
80
  = 1.0.4 =
81
 
82
  * Fixed bug that cookies where not set when user closes the box by clicking outside or with ESC key
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.1
7
+ Stable tag: 1.0.5
8
  Text Domain: spucpt
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
74
  3. Popups Back end - display rules and options
75
  4. Popups Back end - appearance
76
 
77
+ == Frequently Asked Questions ==
78
+
79
+ = Can I remove js for Facebook, Twitter or Google if I already loaded mine? =
80
+ Yes you can add the ([following codes](https://gist.github.com/timersys/8453614472d07122098b)) into your functions.php
81
+
82
+ = Can I use the uncommpresed popups JS in my site ? =
83
+ Yes if you need to debug you can use uncompressed javascript by addings ([this code](https://gist.github.com/timersys/60823b62cd1050dab032)) to your functions.php
84
 
85
  == Changelog ==
86
 
87
+ = 1.0.5 =
88
+
89
+ * Changed to only admins users can edit/create popups
90
+ * Fixed error that facebook layout were not working properly
91
+ * Added the ability to remove JS from facebook, twitter, and google by using variables
92
+
93
  = 1.0.4 =
94
 
95
  * Fixed bug that cookies where not set when user closes the box by clicking outside or with ESC key
admin/class-social-popup-admin.php CHANGED
@@ -136,6 +136,17 @@ class SocialPopup_Admin {
136
  'query_var' => true,
137
  'rewrite' => array( 'slug' => 'spucpt' ),
138
  'capability_type' => 'post',
 
 
 
 
 
 
 
 
 
 
 
139
  'has_archive' => false,
140
  'hierarchical' => false,
141
  'menu_position' => null,
136
  'query_var' => true,
137
  'rewrite' => array( 'slug' => 'spucpt' ),
138
  'capability_type' => 'post',
139
+ 'capabilities' => array(
140
+ 'publish_posts' => 'manage_options',
141
+ 'edit_posts' => 'manage_options',
142
+ 'edit_others_posts' => 'manage_options',
143
+ 'delete_posts' => 'manage_options',
144
+ 'delete_others_posts' => 'manage_options',
145
+ 'read_private_posts' => 'manage_options',
146
+ 'edit_post' => 'manage_options',
147
+ 'delete_post' => 'manage_options',
148
+ 'read_post' => 'manage_options',
149
+ ),
150
  'has_archive' => false,
151
  'hierarchical' => false,
152
  'menu_position' => null,
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.4
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
11
  * @socialpopup
12
  * Plugin Name: Popups
13
  * Plugin URI: http://www.timersys.com/free-plugins/social-popup/
14
+ * Version: 1.0.5
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
public/class-social-popup.php CHANGED
@@ -23,7 +23,7 @@ class SocialPopup {
23
  *
24
  * @var string
25
  */
26
- const VERSION = '1.0.4';
27
 
28
  /**
29
  * Popups to use acrros files
@@ -328,9 +328,21 @@ class SocialPopup {
328
 
329
  wp_register_script( 'spu-public', $js_url, array( 'jquery' ), self::VERSION, true );
330
 
331
- wp_register_script( 'spu-facebook', 'http://connect.facebook.net/'.get_bloginfo('language').'/all.js#xfbml=1', array('jquery'), self::VERSION, FALSE);
332
- wp_register_script( 'spu-twitter', 'http://platform.twitter.com/widgets.js', array('jquery'), self::VERSION, FALSE);
333
- wp_register_script( 'spu-google', 'https://apis.google.com/js/plusone.js', array('jquery'), self::VERSION, FALSE);
 
 
 
 
 
 
 
 
 
 
 
 
334
  }
335
 
336
  /**
@@ -423,10 +435,10 @@ class SocialPopup {
423
  $action = strtolower( trim( $action ) );
424
 
425
  // to avoid problems
426
- if( 'standard' != $layout || 'box_count' != $layout || 'button_count' != $layout || 'button' != $layout ) {
427
  $layout = 'button_count';
428
  }
429
- if( 'like' != $action || 'recommend' != $action ) {
430
  $action = 'like';
431
  }
432
 
@@ -471,10 +483,10 @@ class SocialPopup {
471
  $annotation = strtolower( trim( $annotation ) );
472
 
473
  //to avoid problems
474
- if( 'medium' != $size || 'small' != $size || 'standard' != $size || 'tall' != $size ) {
475
  $size = 'medium';
476
  }
477
- if( 'bubble' != $annotation || 'inline' != $annotation || 'none' != $annotation ) {
478
  $annotation = 'bubble';
479
  }
480
 
23
  *
24
  * @var string
25
  */
26
+ const VERSION = '1.0.5';
27
 
28
  /**
29
  * Popups to use acrros files
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_bloginfo('language').'/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
+
345
+ }
346
  }
347
 
348
  /**
435
  $action = strtolower( trim( $action ) );
436
 
437
  // to avoid problems
438
+ if( 'standard' != $layout && 'box_count' != $layout && 'button_count' != $layout && 'button' != $layout ) {
439
  $layout = 'button_count';
440
  }
441
+ if( 'like' != $action && 'recommend' != $action ) {
442
  $action = 'like';
443
  }
444
 
483
  $annotation = strtolower( trim( $annotation ) );
484
 
485
  //to avoid problems
486
+ if( 'medium' != $size && 'small' != $size && 'standard' != $size && 'tall' != $size ) {
487
  $size = 'medium';
488
  }
489
+ if( 'bubble' != $annotation && 'inline' != $annotation && 'none' != $annotation ) {
490
  $annotation = 'bubble';
491
  }
492