Q2W3 Fixed Widget - Version 5.1.2

Version Description

  • Now works fine with Shortcodes Ultimate widgets!
Download this release

Release Info

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

Code changes from version 5.1.1 to 5.1.2

Files changed (2) hide show
  1. q2w3-fixed-widget.php +5 -3
  2. readme.txt +4 -1
q2w3-fixed-widget.php CHANGED
@@ -5,7 +5,7 @@ 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
  Text Domain: q2w3-fixed-widget
7
  Author: Max Bond
8
- Version: 5.1.1
9
  Author URI: http://www.q2w3.ru/
10
  */
11
 
@@ -17,7 +17,7 @@ class q2w3_fixed_widget { // Plugin class
17
 
18
  const ID = 'q2w3_fixed_widget';
19
 
20
- const VERSION = '5.1.1';
21
 
22
  protected static $sidebars_widgets;
23
 
@@ -124,8 +124,10 @@ class q2w3_fixed_widget { // Plugin class
124
 
125
  if ( $sidebar_widgets && is_array($sidebar_widgets) ) foreach ( $sidebar_widgets as $widget ) {
126
 
127
- list($widget_type, $widget_id) = explode('-', $widget);
128
 
 
 
129
  $widget_options = get_option('widget_' . $widget_type);
130
 
131
  if ( isset($widget_options[$widget_id]['q2w3_fixed_widget']) && $widget_options[$widget_id]['q2w3_fixed_widget']) self::$fixed_widgets[$sidebar_id][$widget] = $widget;
5
  Description: Fixes positioning of the selected widgets, when the page is scrolled down.
6
  Text Domain: q2w3-fixed-widget
7
  Author: Max Bond
8
+ Version: 5.1.2
9
  Author URI: http://www.q2w3.ru/
10
  */
11
 
17
 
18
  const ID = 'q2w3_fixed_widget';
19
 
20
+ const VERSION = '5.1.2';
21
 
22
  protected static $sidebars_widgets;
23
 
124
 
125
  if ( $sidebar_widgets && is_array($sidebar_widgets) ) foreach ( $sidebar_widgets as $widget ) {
126
 
127
+ $widget_id = substr(strrchr($widget, '-'), 1);
128
 
129
+ $widget_type = stristr($widget, '-'.$widget_id, true);
130
+
131
  $widget_options = get_option('widget_' . $widget_type);
132
 
133
  if ( isset($widget_options[$widget_id]['q2w3_fixed_widget']) && $widget_options[$widget_id]['q2w3_fixed_widget']) self::$fixed_widgets[$sidebar_id][$widget] = $widget;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Max Bond
3
  Tags: sidebar, widget, scroll, scrolling, fixed, fixed widget, floating, floating widget, sticky, sticky widget, russian, q2w3
4
  Requires at least: 4.0
5
  Tested up to: 4.9.3
6
- Stable tag: 5.1.1
7
 
8
  Fixes positioning of the selected widgets, when the page is scrolled down.
9
 
@@ -82,6 +82,9 @@ Other Q2W3 plugins:
82
 
83
  == Changelog ==
84
 
 
 
 
85
  = 5.1.1 =
86
  * Resolves problems with Margin Bottom and Stop ID from version 5.1!
87
 
3
  Tags: sidebar, widget, scroll, scrolling, fixed, fixed widget, floating, floating widget, sticky, sticky widget, russian, q2w3
4
  Requires at least: 4.0
5
  Tested up to: 4.9.3
6
+ Stable tag: 5.1.2
7
 
8
  Fixes positioning of the selected widgets, when the page is scrolled down.
9
 
82
 
83
  == Changelog ==
84
 
85
+ = 5.1.2 =
86
+ * Now works fine with Shortcodes Ultimate widgets!
87
+
88
  = 5.1.1 =
89
  * Resolves problems with Margin Bottom and Stop ID from version 5.1!
90