Q2W3 Fixed Widget - Version 5.1.1

Version Description

  • Resolves problems with Margin Bottom and Stop ID from version 5.1!
Download this release

Release Info

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

Code changes from version 5.1 to 5.1.1

Files changed (2) hide show
  1. q2w3-fixed-widget.php +11 -8
  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
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';
21
 
22
  protected static $sidebars_widgets;
23
 
@@ -52,7 +52,7 @@ class q2w3_fixed_widget { // Plugin class
52
 
53
  //add_filter('widget_display_callback', array( __CLASS__, 'is_widget_fixed' ), $options['widget_display_callback_priority'], 3);
54
 
55
- add_action('wp_loaded', array( __CLASS__, 'custom_ids' ));
56
 
57
  //add_action('wp_footer', array( __CLASS__, 'js_settings' ));
58
 
@@ -64,6 +64,8 @@ class q2w3_fixed_widget { // Plugin class
64
 
65
  public static function enqueue_scripts() {
66
 
 
 
67
  self::fixed_wigets();
68
 
69
  wp_enqueue_script('jquery');
@@ -90,6 +92,7 @@ class q2w3_fixed_widget { // Plugin class
90
  $sidebar_options[ $i ] = array(
91
  'sidebar' => $sidebar,
92
  'margin_top' => $options['margin-top'],
 
93
  'stop_id' => $options['stop-id'],
94
  'screen_max_width' => $options['screen-max-width'],
95
  'screen_max_height' => $options['screen-max-height'],
@@ -136,7 +139,7 @@ class q2w3_fixed_widget { // Plugin class
136
  }
137
 
138
 
139
- public static function is_widget_fixed($instance, $widget, $args) { // deprecated
140
 
141
  if ( isset($instance['q2w3_fixed_widget']) && $instance['q2w3_fixed_widget'] ) {
142
 
@@ -150,7 +153,7 @@ class q2w3_fixed_widget { // Plugin class
150
 
151
  return $instance;
152
 
153
- }
154
 
155
  public static function custom_ids() {
156
 
@@ -200,7 +203,7 @@ class q2w3_fixed_widget { // Plugin class
200
 
201
  }
202
 
203
- public static function js_settings() { // deprecated
204
 
205
  $options = self::load_options();
206
 
@@ -242,7 +245,7 @@ class q2w3_fixed_widget { // Plugin class
242
 
243
  }
244
 
245
- }
246
 
247
  public static function add_widget_option($widget, $return, $instance) {
248
 
@@ -312,7 +315,7 @@ class q2w3_fixed_widget { // Plugin class
312
 
313
  $d['width-inherit'] = false;
314
 
315
- $d['widget_display_callback_priority'] = 30;
316
 
317
  $d['disable-mo-api'] = false;
318
 
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
 
18
  const ID = 'q2w3_fixed_widget';
19
 
20
+ const VERSION = '5.1.1';
21
 
22
  protected static $sidebars_widgets;
23
 
52
 
53
  //add_filter('widget_display_callback', array( __CLASS__, 'is_widget_fixed' ), $options['widget_display_callback_priority'], 3);
54
 
55
+ //add_action('wp_loaded', array( __CLASS__, 'custom_ids' ));
56
 
57
  //add_action('wp_footer', array( __CLASS__, 'js_settings' ));
58
 
64
 
65
  public static function enqueue_scripts() {
66
 
67
+ self::custom_ids();
68
+
69
  self::fixed_wigets();
70
 
71
  wp_enqueue_script('jquery');
92
  $sidebar_options[ $i ] = array(
93
  'sidebar' => $sidebar,
94
  'margin_top' => $options['margin-top'],
95
+ 'margin_bottom' => $options['margin-bottom'],
96
  'stop_id' => $options['stop-id'],
97
  'screen_max_width' => $options['screen-max-width'],
98
  'screen_max_height' => $options['screen-max-height'],
139
  }
140
 
141
 
142
+ /*public static function is_widget_fixed($instance, $widget, $args) { // deprecated
143
 
144
  if ( isset($instance['q2w3_fixed_widget']) && $instance['q2w3_fixed_widget'] ) {
145
 
153
 
154
  return $instance;
155
 
156
+ }*/
157
 
158
  public static function custom_ids() {
159
 
203
 
204
  }
205
 
206
+ /*public static function js_settings() { // deprecated
207
 
208
  $options = self::load_options();
209
 
245
 
246
  }
247
 
248
+ }*/
249
 
250
  public static function add_widget_option($widget, $return, $instance) {
251
 
315
 
316
  $d['width-inherit'] = false;
317
 
318
+ //$d['widget_display_callback_priority'] = 30;
319
 
320
  $d['disable-mo-api'] = false;
321
 
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
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 =
86
  * New options load method!
87
  * Tested with WordPress 4.9
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
 
83
  == Changelog ==
84
 
85
+ = 5.1.1 =
86
+ * Resolves problems with Margin Bottom and Stop ID from version 5.1!
87
+
88
  = 5.1 =
89
  * New options load method!
90
  * Tested with WordPress 4.9