Q2W3 Fixed Widget - Version 2.2.1

Version Description

  • Fixed PHP Warning
Download this release

Release Info

Developer Max Bond
Plugin Icon 128x128 Q2W3 Fixed Widget
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2 to 2.2.1

Files changed (3) hide show
  1. js/q2w3-fixed-widget.js +0 -2
  2. q2w3-fixed-widget.php +3 -3
  3. readme.txt +4 -1
js/q2w3-fixed-widget.js CHANGED
@@ -87,8 +87,6 @@ function q2w3_sidebar(options) {
87
 
88
  jQuery(window).on('scroll.' + options.sidebar, function (event) {
89
  var scroll = jQuery(this).scrollTop();
90
- widget.obj.attr('offset_top', widget.offset_top);
91
- widget.obj.attr('fixed_margin_top', widget.fixed_margin_top);
92
  if ( scroll + widget.fixed_margin_bottom >= scroll_position_trigger_bottom ) { // fixed bottom
93
  if ( !style_applied_bottom ) {
94
  widget.obj.css('position', 'fixed');
87
 
88
  jQuery(window).on('scroll.' + options.sidebar, function (event) {
89
  var scroll = jQuery(this).scrollTop();
 
 
90
  if ( scroll + widget.fixed_margin_bottom >= scroll_position_trigger_bottom ) { // fixed bottom
91
  if ( !style_applied_bottom ) {
92
  widget.obj.css('position', 'fixed');
q2w3-fixed-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Q2W3 Fixed Widget
4
  Plugin URI: http://www.q2w3.ru/q2w3-fixed-widget-wordpress-plugin/
5
  Description: Fixes positioning of the selected widgets, when the page is scrolled down.
6
  Author: Max Bond
7
- Version: 2.2
8
  Author URI: http://www.q2w3.ru/
9
  */
10
 
@@ -46,7 +46,7 @@ class q2w3_fixed_widget {
46
 
47
  public static function init() {
48
 
49
- wp_enqueue_script('q2w3-fixed-widget', plugin_dir_url( __FILE__ ) . 'js/q2w3-fixed-widget.js', array('jquery'), '2.2');
50
 
51
  self::check_custom_ids();
52
 
@@ -192,7 +192,7 @@ class q2w3_fixed_widget {
192
 
193
  $options = get_option(self::ID);
194
 
195
- return array_merge(self::defaults(), $options);
196
 
197
  }
198
 
4
  Plugin URI: http://www.q2w3.ru/q2w3-fixed-widget-wordpress-plugin/
5
  Description: Fixes positioning of the selected widgets, when the page is scrolled down.
6
  Author: Max Bond
7
+ Version: 2.2.1
8
  Author URI: http://www.q2w3.ru/
9
  */
10
 
46
 
47
  public static function init() {
48
 
49
+ wp_enqueue_script('q2w3-fixed-widget', plugin_dir_url( __FILE__ ) . 'js/q2w3-fixed-widget.js', array('jquery'), '2.2.1');
50
 
51
  self::check_custom_ids();
52
 
192
 
193
  $options = get_option(self::ID);
194
 
195
+ return array_merge(self::defaults(), (array)$options);
196
 
197
  }
198
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: sidebar, widget, scroll, fixed, floating, sticky, russian, q2w3
5
  Requires at least: 3.0
6
  Tested up to: 3.5.1
7
- Stable tag: 2.2
8
 
9
  Fixes positioning of the selected widgets, when the page is scrolled down.
10
 
@@ -73,6 +73,9 @@ This option defines (in milliseconds, 1 sec = 1000 ms) how often plugin recalcul
73
 
74
  == Changelog ==
75
 
 
 
 
76
  = 2.2 =
77
  * Now the plugin is able to reflect dynamic page content changes (infinite scroll, ajax basket and other javascript stuff)!!!
78
  * Added new option to plugin settings: Refresh interval. Recommended values between 250 - 1500 milliseconds. Note: setting have impact on the site performance (client side). If you don't have dynamic content, set Refresh interval = 0.
4
  Tags: sidebar, widget, scroll, fixed, floating, sticky, russian, q2w3
5
  Requires at least: 3.0
6
  Tested up to: 3.5.1
7
+ Stable tag: 2.2.1
8
 
9
  Fixes positioning of the selected widgets, when the page is scrolled down.
10
 
73
 
74
  == Changelog ==
75
 
76
+ = 2.2.1 =
77
+ * Fixed PHP [Warning](http://wordpress.org/support/topic/error-with-the-new-update-22?replies=2#post-3963422)
78
+
79
  = 2.2 =
80
  * Now the plugin is able to reflect dynamic page content changes (infinite scroll, ajax basket and other javascript stuff)!!!
81
  * Added new option to plugin settings: Refresh interval. Recommended values between 250 - 1500 milliseconds. Note: setting have impact on the site performance (client side). If you don't have dynamic content, set Refresh interval = 0.