Q2W3 Fixed Widget - Version 5.0.1

Version Description

  • Fixed problem in multiple sidebars layout
Download this release

Release Info

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

Code changes from version 5.0 to 5.0.1

js/q2w3-fixed-widget.js CHANGED
@@ -1,5 +1,5 @@
1
  if ( q2w3_sidebar_options && q2w3_sidebar_options.length > 0 ) {
2
- if ( window.jQuery ) {
3
  var q2w3Refresh = false;
4
  for ( var i = 0; i < q2w3_sidebar_options.length; i++ ) {
5
  if ( q2w3_sidebar_options[i].window_load_hook ) {
@@ -7,8 +7,8 @@ if ( q2w3_sidebar_options && q2w3_sidebar_options.length > 0 ) {
7
  } else {
8
  var init = 'jQuery(document).ready(function(){q2w3_sidebar_init(q2w3_sidebar_options[' + i + '])});';
9
  }
 
10
  }
11
- eval(init);
12
  } else {
13
  console.log('jQuery is not loaded!');
14
  }
1
  if ( q2w3_sidebar_options && q2w3_sidebar_options.length > 0 ) {
2
+ if ( window.jQuery ) {
3
  var q2w3Refresh = false;
4
  for ( var i = 0; i < q2w3_sidebar_options.length; i++ ) {
5
  if ( q2w3_sidebar_options[i].window_load_hook ) {
7
  } else {
8
  var init = 'jQuery(document).ready(function(){q2w3_sidebar_init(q2w3_sidebar_options[' + i + '])});';
9
  }
10
+ eval(init);
11
  }
 
12
  } else {
13
  console.log('jQuery is not loaded!');
14
  }
js/q2w3-fixed-widget.min.js CHANGED
@@ -1 +1 @@
1
- function q2w3_sidebar_init(a){q2w3_sidebar(a),jQuery(window).on("resize",function(){q2w3_sidebar(a)});var b=function(){for(var a=["WebKit","Moz","O","Ms",""],b=0;b<a.length;b++)if(a[b]+"MutationObserver"in window)return window[a[b]+"MutationObserver"];return!1}();if(b){var c=new b(function(b){q2w3Refresh=!1,b.forEach(function(b){q2w3_exclude_mutations_array(a.widgets).indexOf(b.target.id)==-1&&b.target.className.indexOf("q2w3-fixed-widget-container")==-1&&(q2w3Refresh=!0)})});c.observe(document.body,{childList:!0,attributes:!0,attributeFilter:["style","class"],subtree:!0}),setInterval(function(){q2w3Refresh&&(q2w3_sidebar(a),q2w3Refresh=!1)},1e3)}else console.log("MutationObserver not supported!"),a.refresh_interval>0&&setInterval(function(){q2w3_sidebar(a)},a.refresh_interval)}function q2w3_exclude_mutations_array(a){for(var b=new Array,c=0;c<a.length;c++)b.push(a[c]),b.push(a[c]+"_clone");return b}function q2w3_sidebar(a){function b(){}function j(b){var c=b.offset_top-b.fixed_margin_top,f=e-a.margin_bottom;a.stop_id&&jQuery("#"+a.stop_id).length&&(f=jQuery("#"+a.stop_id).offset().top-a.margin_bottom);var g;g=a.width_inherit?"inherit":b.obj.css("width");var h=!1,i=!1,j=!1;jQuery(window).on("scroll."+a.sidebar,function(e){if(jQuery(window).width()<=a.screen_max_width||jQuery(window).height()<=a.screen_max_height)j||(b.obj.css("position",""),b.obj.css("top",""),b.obj.css("bottom",""),b.obj.css("width",""),b.obj.css("margin",""),b.obj.css("padding",""),widget_obj.parent().css("height",""),jQuery("#"+b.clone_id).length>0&&jQuery("#"+b.clone_id).remove(),j=!0,h=!1,i=!1);else{var k=jQuery(this).scrollTop();k+b.fixed_margin_bottom>=f?(i||(b.obj.css("position","fixed"),b.obj.css("top",""),b.obj.css("width",g),jQuery("#"+b.clone_id).length<=0&&b.obj.before(b.clone),i=!0,h=!1,j=!1),b.obj.css("bottom",k+d+b.next_widgets_height-f)):k>=c?h||(b.obj.css("position","fixed"),b.obj.css("top",b.fixed_margin_top),b.obj.css("bottom",""),b.obj.css("width",g),jQuery("#"+b.clone_id).length<=0&&b.obj.before(b.clone),h=!0,i=!1,j=!1):j||(b.obj.css("position",""),b.obj.css("top",""),b.obj.css("bottom",""),b.obj.css("width",""),jQuery("#"+b.clone_id).length>0&&jQuery("#"+b.clone_id).remove(),j=!0,h=!1,i=!1)}}).trigger("scroll."+a.sidebar)}if(!a)return!1;if(!a.widgets)return!1;if(a.widgets.length<1)return!1;a.sidebar||(a.sidebar="q2w3-default-sidebar");var c=new Array,d=jQuery(window).height(),e=jQuery(document).height(),f=a.margin_top;jQuery("#wpadminbar").is(":visible")&&(f=a.margin_top+jQuery("#wpadminbar").height()),jQuery(".q2w3-widget-clone-"+a.sidebar).remove();for(var g=0;g<a.widgets.length;g++)widget_obj=jQuery("#"+a.widgets[g]),widget_obj.css("position",""),widget_obj.attr("id")?(c[g]=new b,c[g].obj=widget_obj,c[g].clone=widget_obj.clone(),c[g].clone.children().remove(),c[g].clone_id=widget_obj.attr("id")+"_clone",c[g].clone.addClass("q2w3-widget-clone-"+a.sidebar),c[g].clone.attr("id",c[g].clone_id),c[g].clone.css("height",widget_obj.height()),c[g].clone.css("visibility","hidden"),c[g].offset_top=widget_obj.offset().top,c[g].fixed_margin_top=f,c[g].height=widget_obj.outerHeight(!0),c[g].fixed_margin_bottom=f+c[g].height,f+=c[g].height):c[g]=!1;for(var i,h=0,g=c.length-1;g>=0;g--)c[g]&&(c[g].next_widgets_height=h,c[g].fixed_margin_bottom+=h,h+=c[g].height,i||(i=widget_obj.parent(),i.addClass("q2w3-fixed-widget-container"),i.css("height",""),i.height(i.height())));jQuery(window).off("load."+a.sidebar+" scroll."+a.sidebar);for(var g=0;g<c.length;g++)c[g]&&j(c[g])}if(q2w3_sidebar_options&&q2w3_sidebar_options.length>0)if(window.jQuery){for(var q2w3Refresh=!1,i=0;i<q2w3_sidebar_options.length;i++)if(q2w3_sidebar_options[i].window_load_hook)var init="jQuery(window).load(function(){q2w3_sidebar_init(q2w3_sidebar_options["+i+"])});";else var init="jQuery(document).ready(function(){q2w3_sidebar_init(q2w3_sidebar_options["+i+"])});";eval(init)}else console.log("jQuery is not loaded!");
1
+ function q2w3_sidebar_init(a){q2w3_sidebar(a),jQuery(window).on("resize",function(){q2w3_sidebar(a)});var b=function(){for(var a=["WebKit","Moz","O","Ms",""],b=0;b<a.length;b++)if(a[b]+"MutationObserver"in window)return window[a[b]+"MutationObserver"];return!1}();if(b){var c=new b(function(b){q2w3Refresh=!1,b.forEach(function(b){q2w3_exclude_mutations_array(a.widgets).indexOf(b.target.id)==-1&&b.target.className.indexOf("q2w3-fixed-widget-container")==-1&&(q2w3Refresh=!0)})});c.observe(document.body,{childList:!0,attributes:!0,attributeFilter:["style","class"],subtree:!0}),setInterval(function(){q2w3Refresh&&(q2w3_sidebar(a),q2w3Refresh=!1)},1e3)}else console.log("MutationObserver not supported!"),a.refresh_interval>0&&setInterval(function(){q2w3_sidebar(a)},a.refresh_interval)}function q2w3_exclude_mutations_array(a){for(var b=new Array,c=0;c<a.length;c++)b.push(a[c]),b.push(a[c]+"_clone");return b}function q2w3_sidebar(a){function b(){}function j(b){var c=b.offset_top-b.fixed_margin_top,f=e-a.margin_bottom;a.stop_id&&jQuery("#"+a.stop_id).length&&(f=jQuery("#"+a.stop_id).offset().top-a.margin_bottom);var g;g=a.width_inherit?"inherit":b.obj.css("width");var h=!1,i=!1,j=!1;jQuery(window).on("scroll."+a.sidebar,function(e){if(jQuery(window).width()<=a.screen_max_width||jQuery(window).height()<=a.screen_max_height)j||(b.obj.css("position",""),b.obj.css("top",""),b.obj.css("bottom",""),b.obj.css("width",""),b.obj.css("margin",""),b.obj.css("padding",""),widget_obj.parent().css("height",""),jQuery("#"+b.clone_id).length>0&&jQuery("#"+b.clone_id).remove(),j=!0,h=!1,i=!1);else{var k=jQuery(this).scrollTop();k+b.fixed_margin_bottom>=f?(i||(b.obj.css("position","fixed"),b.obj.css("top",""),b.obj.css("width",g),jQuery("#"+b.clone_id).length<=0&&b.obj.before(b.clone),i=!0,h=!1,j=!1),b.obj.css("bottom",k+d+b.next_widgets_height-f)):k>=c?h||(b.obj.css("position","fixed"),b.obj.css("top",b.fixed_margin_top),b.obj.css("bottom",""),b.obj.css("width",g),jQuery("#"+b.clone_id).length<=0&&b.obj.before(b.clone),h=!0,i=!1,j=!1):j||(b.obj.css("position",""),b.obj.css("top",""),b.obj.css("bottom",""),b.obj.css("width",""),jQuery("#"+b.clone_id).length>0&&jQuery("#"+b.clone_id).remove(),j=!0,h=!1,i=!1)}}).trigger("scroll."+a.sidebar)}if(!a)return!1;if(!a.widgets)return!1;if(a.widgets.length<1)return!1;a.sidebar||(a.sidebar="q2w3-default-sidebar");var c=new Array,d=jQuery(window).height(),e=jQuery(document).height(),f=a.margin_top;jQuery("#wpadminbar").is(":visible")&&(f=a.margin_top+jQuery("#wpadminbar").height()),jQuery(".q2w3-widget-clone-"+a.sidebar).remove();for(var g=0;g<a.widgets.length;g++)widget_obj=jQuery("#"+a.widgets[g]),widget_obj.css("position",""),widget_obj.attr("id")?(c[g]=new b,c[g].obj=widget_obj,c[g].clone=widget_obj.clone(),c[g].clone.children().remove(),c[g].clone_id=widget_obj.attr("id")+"_clone",c[g].clone.addClass("q2w3-widget-clone-"+a.sidebar),c[g].clone.attr("id",c[g].clone_id),c[g].clone.css("height",widget_obj.height()),c[g].clone.css("visibility","hidden"),c[g].offset_top=widget_obj.offset().top,c[g].fixed_margin_top=f,c[g].height=widget_obj.outerHeight(!0),c[g].fixed_margin_bottom=f+c[g].height,f+=c[g].height):c[g]=!1;for(var i,h=0,g=c.length-1;g>=0;g--)c[g]&&(c[g].next_widgets_height=h,c[g].fixed_margin_bottom+=h,h+=c[g].height,i||(i=widget_obj.parent(),i.addClass("q2w3-fixed-widget-container"),i.css("height",""),i.height(i.height())));jQuery(window).off("load."+a.sidebar+" scroll."+a.sidebar);for(var g=0;g<c.length;g++)c[g]&&j(c[g])}if(q2w3_sidebar_options&&q2w3_sidebar_options.length>0)if(window.jQuery)for(var q2w3Refresh=!1,i=0;i<q2w3_sidebar_options.length;i++){if(q2w3_sidebar_options[i].window_load_hook)var init="jQuery(window).load(function(){q2w3_sidebar_init(q2w3_sidebar_options["+i+"])});";else var init="jQuery(document).ready(function(){q2w3_sidebar_init(q2w3_sidebar_options["+i+"])});";eval(init)}else console.log("jQuery is not loaded!");
lang/q2w3-fixed-widget-ru_RU.mo CHANGED
Binary file
lang/q2w3-fixed-widget-ru_RU.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Q2W3 Fixed Widget\n"
4
- "POT-Creation-Date: 2016-08-14 18:05+0300\n"
5
- "PO-Revision-Date: 2016-08-14 18:08+0300\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: ru_RU\n"
@@ -11,81 +11,63 @@ msgstr ""
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Generator: Poedit 1.8.8\n"
13
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
14
- "X-Poedit-Basepath: .\n"
15
- "X-Poedit-SearchPath-0: c:/Program Files (x86)/Zend/Apache2/htdocs/q2w3.ru-"
16
- "dev/wp-content/plugins/q2w3-fixed-widget\n"
17
 
18
- #: c:/Program Files
19
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:180
20
  msgid "Fixed widget"
21
  msgstr "Зафиксировать виджет"
22
 
23
- #: c:/Program Files
24
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:222
25
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:320
26
  msgid "Fixed Widget Options"
27
  msgstr "Фикс. Виджеты"
28
 
29
- #: c:/Program Files
30
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:308
31
  msgid "General Options"
32
  msgstr "Основные настройки"
33
 
34
- #: c:/Program Files
35
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:310
36
  msgid "Compatibility"
37
  msgstr "Совместимость"
38
 
39
- #: c:/Program Files
40
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:312
41
  msgid "Custom IDs"
42
  msgstr "Произвольные идентификаторы"
43
 
44
- #: c:/Program Files
45
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:314
46
  msgid "Help for users"
47
  msgstr "Помощь пользователям"
48
 
49
- #: c:/Program Files
50
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:316
51
  msgid "Help for developer"
52
  msgstr "Помощь разработчику"
53
 
54
- #: c:/Program Files
55
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:324
56
  msgid "Settings saved."
57
  msgstr "Настройки сохранены."
58
 
59
- #: c:/Program Files
60
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:350
61
  msgid "Save Changes"
62
  msgstr "Сохранить"
63
 
64
- #: c:/Program Files
65
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:364
66
  msgid "Margin Top:"
67
  msgstr "Верхний отступ:"
68
 
69
- #: c:/Program Files
70
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:364
71
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:366
72
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:372
73
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:374
74
  msgid "px"
75
  msgstr "пикс."
76
 
77
- #: c:/Program Files
78
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:366
79
  msgid "Margin Bottom:"
80
  msgstr "Нижний отступ:"
81
 
82
- #: c:/Program Files
83
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:368
84
  msgid "Stop ID:"
85
  msgstr "Стоп ID:"
86
 
87
- #: c:/Program Files
88
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:368
89
  msgid ""
90
  "Here you need to provide html tag id. The position of that html element will "
91
  "determine margin bottom value."
@@ -93,33 +75,27 @@ msgstr ""
93
  "Здесь необходимо ввести id html-элемента. Позиция этого html-элемента будет "
94
  "динамически определять значение нижнего отступа."
95
 
96
- #: c:/Program Files
97
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:370
98
  msgid "Refresh interval:"
99
  msgstr "Интервал обновления:"
100
 
101
- #: c:/Program Files
102
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:370
103
  msgid "milliseconds"
104
  msgstr "миллисекунды"
105
 
106
- #: c:/Program Files
107
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:370
108
  msgid ""
109
- "Time interval used to recalculate sticky widget parameters. Set 0 to "
110
- "completely disable."
111
  msgstr ""
112
- "Интервал пересчета параметров виджета. Чем меньше интервал, тем больше "
113
- "нагрузка на производительность браузера. Не рекомендуется значения меньше "
114
- "1000. Установите 0, чтобы отключить пересчет."
115
 
116
- #: c:/Program Files
117
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:372
118
  msgid "Disable Width:"
119
  msgstr "Ширина отключения:"
120
 
121
- #: c:/Program Files
122
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:372
123
  msgid ""
124
  "Use this option to disable plugin on portable devices. When the browser "
125
  "screen width is less then specified value, the plugin is disabled!"
@@ -128,88 +104,73 @@ msgstr ""
128
  "ширина окна браузера меньше или равна указанной величине, плагин будет "
129
  "отключен!"
130
 
131
- #: c:/Program Files
132
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:374
133
  msgid "Disable Height:"
134
  msgstr "Высота отключения:"
135
 
136
- #: c:/Program Files
137
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:374
138
  msgid "Works the same way as Disable Width option."
139
  msgstr "Работает аналогично опции \"Ширина отключения\""
140
 
141
- #: c:/Program Files
142
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:380
143
  msgid "Custom HTML IDs (each one on a new line):"
144
  msgstr ""
145
  "HTML-идентификаторы статических виджетов и прочих нестандартных элементов "
146
  "(каждый на новой строке):"
147
 
148
- #: c:/Program Files
149
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:386
150
  msgid "Auto fix widget id:"
151
  msgstr "Автоматически исправлять id виджетов:"
152
 
153
- #: c:/Program Files
154
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:388
155
  msgid "Enable plugin for logged in users only:"
156
  msgstr "Только зарегистрированные пользователи:"
157
 
158
- #: c:/Program Files
159
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:388
160
  msgid "Enable this option for debug purposes (frontend problems and etc.)"
161
  msgstr "Используйте для отладки стилей, скриптов"
162
 
163
- #: c:/Program Files
164
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:390
165
  msgid "Inherit widget width from the parent container:"
166
  msgstr "Наследовать ширину родительского контейнера:"
167
 
168
- #: c:/Program Files
169
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:390
170
  msgid "Enable this option for themes with responsive sidebar"
171
  msgstr ""
172
  "Задействуйте эту опцию, если ширина сайдбара вашей темы меняется динамически"
173
 
174
- #: c:/Program Files
175
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:392
176
  msgid "Use jQuery(window).load() hook:"
177
  msgstr "Вкл. jQuery(window).load():"
178
 
179
- #: c:/Program Files
180
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:392
181
  msgid ""
182
  "Enable this option only if you have problems with other scroll oriented "
183
  "javascript code"
184
  msgstr "Задействуйте эту опцию в случае проблем с другими скриптами"
185
 
186
- #: c:/Program Files
187
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:394
188
  msgid "widget_display_callback hook priority:"
189
  msgstr "Приоритет хука widget_display_callback:"
190
 
191
- #: c:/Program Files
192
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:400
193
- msgid "RATE THE PLUGIN"
194
- msgstr "ОЦЕНИТЬ ПЛАГИН"
195
-
196
- #: c:/Program Files
197
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:408
198
  msgid "Support forums:"
199
  msgstr "Форумы поддержки:"
200
 
201
- #: c:/Program Files
202
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:410
203
  msgid "English (wordpress.org)"
204
  msgstr "Английский (wordpress.org)"
205
 
206
- #: c:/Program Files
207
- #: (x86)/Zend/Apache2/htdocs/q2w3.ru-dev/wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:412
208
  msgid "Russian (www.q2w3.ru)"
209
  msgstr "Русский (www.q2w3.ru)"
210
 
 
 
 
 
211
  #~ msgid "Set 0 to disable."
212
- #~ msgstr "Установите 0, чтобы отключить пересчет параметров."
213
 
214
  #~ msgid "Disable screen width:"
215
  #~ msgstr "Ширина отключения:"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Q2W3 Fixed Widget\n"
4
+ "POT-Creation-Date: 2016-09-07 14:49+0300\n"
5
+ "PO-Revision-Date: 2016-09-07 14:55+0300\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: ru_RU\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Generator: Poedit 1.8.8\n"
13
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
14
+ "X-Poedit-Basepath: ..\n"
15
+ "X-Poedit-SearchPath-0: .\n"
 
16
 
17
+ #: q2w3-fixed-widget.php:173
 
18
  msgid "Fixed widget"
19
  msgstr "Зафиксировать виджет"
20
 
21
+ #: q2w3-fixed-widget.php:207 q2w3-fixed-widget.php:307
 
 
22
  msgid "Fixed Widget Options"
23
  msgstr "Фикс. Виджеты"
24
 
25
+ #: q2w3-fixed-widget.php:295
 
26
  msgid "General Options"
27
  msgstr "Основные настройки"
28
 
29
+ #: q2w3-fixed-widget.php:297
 
30
  msgid "Compatibility"
31
  msgstr "Совместимость"
32
 
33
+ #: q2w3-fixed-widget.php:299
 
34
  msgid "Custom IDs"
35
  msgstr "Произвольные идентификаторы"
36
 
37
+ #: q2w3-fixed-widget.php:301
 
38
  msgid "Help for users"
39
  msgstr "Помощь пользователям"
40
 
41
+ #: q2w3-fixed-widget.php:303
 
42
  msgid "Help for developer"
43
  msgstr "Помощь разработчику"
44
 
45
+ #: q2w3-fixed-widget.php:311
 
46
  msgid "Settings saved."
47
  msgstr "Настройки сохранены."
48
 
49
+ #: q2w3-fixed-widget.php:337
 
50
  msgid "Save Changes"
51
  msgstr "Сохранить"
52
 
53
+ #: q2w3-fixed-widget.php:351
 
54
  msgid "Margin Top:"
55
  msgstr "Верхний отступ:"
56
 
57
+ #: q2w3-fixed-widget.php:351 q2w3-fixed-widget.php:353
58
+ #: q2w3-fixed-widget.php:359 q2w3-fixed-widget.php:361
 
 
 
59
  msgid "px"
60
  msgstr "пикс."
61
 
62
+ #: q2w3-fixed-widget.php:353
 
63
  msgid "Margin Bottom:"
64
  msgstr "Нижний отступ:"
65
 
66
+ #: q2w3-fixed-widget.php:355
 
67
  msgid "Stop ID:"
68
  msgstr "Стоп ID:"
69
 
70
+ #: q2w3-fixed-widget.php:355
 
71
  msgid ""
72
  "Here you need to provide html tag id. The position of that html element will "
73
  "determine margin bottom value."
75
  "Здесь необходимо ввести id html-элемента. Позиция этого html-элемента будет "
76
  "динамически определять значение нижнего отступа."
77
 
78
+ #: q2w3-fixed-widget.php:357
 
79
  msgid "Refresh interval:"
80
  msgstr "Интервал обновления:"
81
 
82
+ #: q2w3-fixed-widget.php:357
 
83
  msgid "milliseconds"
84
  msgstr "миллисекунды"
85
 
86
+ #: q2w3-fixed-widget.php:357
 
87
  msgid ""
88
+ "Used only for compatibility with browsers without MutationObserver API "
89
+ "support! Set 0 to completely disable."
90
  msgstr ""
91
+ "Используется только для совместимости с браузерами не поддерживающими "
92
+ "MutationObserver API"
 
93
 
94
+ #: q2w3-fixed-widget.php:359
 
95
  msgid "Disable Width:"
96
  msgstr "Ширина отключения:"
97
 
98
+ #: q2w3-fixed-widget.php:359
 
99
  msgid ""
100
  "Use this option to disable plugin on portable devices. When the browser "
101
  "screen width is less then specified value, the plugin is disabled!"
104
  "ширина окна браузера меньше или равна указанной величине, плагин будет "
105
  "отключен!"
106
 
107
+ #: q2w3-fixed-widget.php:361
 
108
  msgid "Disable Height:"
109
  msgstr "Высота отключения:"
110
 
111
+ #: q2w3-fixed-widget.php:361
 
112
  msgid "Works the same way as Disable Width option."
113
  msgstr "Работает аналогично опции \"Ширина отключения\""
114
 
115
+ #: q2w3-fixed-widget.php:367
 
116
  msgid "Custom HTML IDs (each one on a new line):"
117
  msgstr ""
118
  "HTML-идентификаторы статических виджетов и прочих нестандартных элементов "
119
  "(каждый на новой строке):"
120
 
121
+ #: q2w3-fixed-widget.php:373
 
122
  msgid "Auto fix widget id:"
123
  msgstr "Автоматически исправлять id виджетов:"
124
 
125
+ #: q2w3-fixed-widget.php:375
 
126
  msgid "Enable plugin for logged in users only:"
127
  msgstr "Только зарегистрированные пользователи:"
128
 
129
+ #: q2w3-fixed-widget.php:375
 
130
  msgid "Enable this option for debug purposes (frontend problems and etc.)"
131
  msgstr "Используйте для отладки стилей, скриптов"
132
 
133
+ #: q2w3-fixed-widget.php:377
 
134
  msgid "Inherit widget width from the parent container:"
135
  msgstr "Наследовать ширину родительского контейнера:"
136
 
137
+ #: q2w3-fixed-widget.php:377
 
138
  msgid "Enable this option for themes with responsive sidebar"
139
  msgstr ""
140
  "Задействуйте эту опцию, если ширина сайдбара вашей темы меняется динамически"
141
 
142
+ #: q2w3-fixed-widget.php:379
 
143
  msgid "Use jQuery(window).load() hook:"
144
  msgstr "Вкл. jQuery(window).load():"
145
 
146
+ #: q2w3-fixed-widget.php:379
 
147
  msgid ""
148
  "Enable this option only if you have problems with other scroll oriented "
149
  "javascript code"
150
  msgstr "Задействуйте эту опцию в случае проблем с другими скриптами"
151
 
152
+ #: q2w3-fixed-widget.php:381
 
153
  msgid "widget_display_callback hook priority:"
154
  msgstr "Приоритет хука widget_display_callback:"
155
 
156
+ #: q2w3-fixed-widget.php:387
 
 
 
 
 
 
157
  msgid "Support forums:"
158
  msgstr "Форумы поддержки:"
159
 
160
+ #: q2w3-fixed-widget.php:389
 
161
  msgid "English (wordpress.org)"
162
  msgstr "Английский (wordpress.org)"
163
 
164
+ #: q2w3-fixed-widget.php:391
 
165
  msgid "Russian (www.q2w3.ru)"
166
  msgstr "Русский (www.q2w3.ru)"
167
 
168
+ #: q2w3-fixed-widget.php:397
169
+ msgid "RATE THE PLUGIN"
170
+ msgstr "Оцените плагин!"
171
+
172
  #~ msgid "Set 0 to disable."
173
+ #~ msgstr "Установите 0, чтобы отключить пересчет параметров"
174
 
175
  #~ msgid "Disable screen width:"
176
  #~ msgstr "Ширина отключения:"
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.0
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.0';
21
 
22
  protected static $sidebars_widgets;
23
 
@@ -136,7 +136,7 @@ class q2w3_fixed_widget { // Plugin class
136
 
137
  echo '<script type="text/javascript">';
138
 
139
- echo 'var q2w3_sidebar_options = new Array(); ';
140
 
141
  if ( isset($options['window-load-enabled']) && $options['window-load-enabled'] == 'yes' ) $window_load_hook = 'true'; else $window_load_hook = 'false';
142
 
@@ -394,7 +394,7 @@ class q2w3_fixed_widget { // Plugin class
394
 
395
  public static function settings_page_donate_box($options) {
396
 
397
- echo '<p style="text-align: center"><a href="http://wordpress.org/support/view/plugin-reviews/q2w3-fixed-widget/" target="_blank">'. __('RATE THE PLUGIN', 'q2w3-fixed-widget') .'</a></p>';
398
 
399
  echo '<p style="text-align: center"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q36H2MHNVVP7U" target="_blank"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" alt="PayPal - The safer, easier way to pay online!" /></a></p>'.PHP_EOL;
400
 
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.0.1
9
  Author URI: http://www.q2w3.ru/
10
  */
11
 
17
 
18
  const ID = 'q2w3_fixed_widget';
19
 
20
+ const VERSION = '5.0.1';
21
 
22
  protected static $sidebars_widgets;
23
 
136
 
137
  echo '<script type="text/javascript">';
138
 
139
+ echo 'var q2w3_sidebar_options = new Array();'.PHP_EOL;
140
 
141
  if ( isset($options['window-load-enabled']) && $options['window-load-enabled'] == 'yes' ) $window_load_hook = 'true'; else $window_load_hook = 'false';
142
 
394
 
395
  public static function settings_page_donate_box($options) {
396
 
397
+ echo '<p style="text-align: center"><a href="https://wordpress.org/support/plugin/q2w3-fixed-widget/reviews/?rate=5#new-post" target="_blank">'. __('RATE THE PLUGIN', 'q2w3-fixed-widget') .'</a></p>';
398
 
399
  echo '<p style="text-align: center"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q36H2MHNVVP7U" target="_blank"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" alt="PayPal - The safer, easier way to pay online!" /></a></p>'.PHP_EOL;
400
 
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === Q2W3 Fixed Widget Pro ===
2
  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.6
6
- Stable tag: 5.0
7
 
8
  Fixes positioning of the selected widgets, when the page is scrolled down.
9
 
@@ -17,7 +17,9 @@ New in version 5.0:
17
  1. Optimized client side performance. Detection of page changes is now based on MutationObserver API. Widget parameters recount is fired only when needed! Refresh interval option used only for campatibility with old browsers (no MutationObserver API support).
18
  2. Improved compatibility with caching plugins (W3TC, Autoptimize and etc.). No need to exclude jQuery and plugin files from cache!
19
  3. Async/Defer script load method support
20
- 4. Added `Disable Width` option
 
 
21
 
22
  Compatibility note. The plugin is not working with all themes! Theme requirements:
23
 
@@ -80,11 +82,15 @@ Other Q2W3 plugins:
80
 
81
  == Changelog ==
82
 
 
 
 
83
  = 5.0 =
84
  * Optimized client side performance. Detection of page changes is now based on MutationObserver API. Widget parameters recount is fired only when needed! Refresh interval option used only for campatibility with old browsers (no MutationObserver API support).
85
  * Improved compatibility with caching plugins (W3TC, Autoptimize and etc.). No need to exclude jQuery and plugin files from cache!
86
  * Async/Defer script load method support
87
- * Added `Disable Width` option
 
88
 
89
  = 4.1 =
90
  * Added `Stop ID` option. Use it when you cannot specify `Margin Bottom` value. Solution provided by [Julian_Kingman](https://wordpress.org/support/profile/julian_kingman)!
1
+ === Q2W3 Fixed Widget ===
2
  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.6
6
+ Stable tag: 5.0.1
7
 
8
  Fixes positioning of the selected widgets, when the page is scrolled down.
9
 
17
  1. Optimized client side performance. Detection of page changes is now based on MutationObserver API. Widget parameters recount is fired only when needed! Refresh interval option used only for campatibility with old browsers (no MutationObserver API support).
18
  2. Improved compatibility with caching plugins (W3TC, Autoptimize and etc.). No need to exclude jQuery and plugin files from cache!
19
  3. Async/Defer script load method support
20
+ 4. Added `Disable Width` and `Disable Height` options
21
+
22
+ Note for cache plugins users. Don't forget to clear the cache after upgrading to version 5! Options format has been changed!
23
 
24
  Compatibility note. The plugin is not working with all themes! Theme requirements:
25
 
82
 
83
  == Changelog ==
84
 
85
+ = 5.0.1 =
86
+ * Fixed problem in multiple sidebars layout
87
+
88
  = 5.0 =
89
  * Optimized client side performance. Detection of page changes is now based on MutationObserver API. Widget parameters recount is fired only when needed! Refresh interval option used only for campatibility with old browsers (no MutationObserver API support).
90
  * Improved compatibility with caching plugins (W3TC, Autoptimize and etc.). No need to exclude jQuery and plugin files from cache!
91
  * Async/Defer script load method support
92
+ * Added `Disable Width` and `Disable Height` options
93
+ * Note for cache plugins users: don't forget to clear cache after upgrading to version 5! Options format has been changed!
94
 
95
  = 4.1 =
96
  * Added `Stop ID` option. Use it when you cannot specify `Margin Bottom` value. Solution provided by [Julian_Kingman](https://wordpress.org/support/profile/julian_kingman)!