Restrict Widgets - Version 1.2.1

Version Description

  • Fix: tags not working properly
  • Tweak: UI fixes for WP 3.8
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Restrict Widgets
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

css/{restrict-widgets-admin.css → admin.css} RENAMED
@@ -87,6 +87,9 @@
87
  border-color: #DFDFDF;
88
  padding: 10px;
89
  }
 
 
 
90
  .widget-liquid-right .widget, .inactive-sidebar .widget, .widget-liquid-right .sidebar-description {
91
  overflow: visible !important;
92
  }
87
  border-color: #DFDFDF;
88
  padding: 10px;
89
  }
90
+ .version-3-8 #widgets-options .widget-holder {
91
+ padding: 0;
92
+ }
93
  .widget-liquid-right .widget, .inactive-sidebar .widget, .widget-liquid-right .sidebar-description {
94
  overflow: visible !important;
95
  }
css/chosen.css CHANGED
@@ -69,7 +69,7 @@
69
  width: 12px;
70
  height: 12px;
71
  font-size: 1px;
72
- background: url('chosen-sprite.png') -42px 1px no-repeat;
73
  }
74
  .chzn-container-single .chzn-single abbr:hover {
75
  background-position: -42px -10px;
@@ -86,7 +86,7 @@
86
  width: 18px;
87
  }
88
  .chzn-container-single .chzn-single div b {
89
- background: url('chosen-sprite.png') no-repeat 0px 2px;
90
  display: block;
91
  width: 100%;
92
  height: 100%;
@@ -99,12 +99,12 @@
99
  z-index: 1010;
100
  }
101
  .chzn-container-single .chzn-search input {
102
- background: #fff url('chosen-sprite.png') no-repeat 100% -20px;
103
- background: url('chosen-sprite.png') no-repeat 100% -20px, -webkit-gradient(linear, 0 0, 0 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
104
- background: url('chosen-sprite.png') no-repeat 100% -20px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
105
- background: url('chosen-sprite.png') no-repeat 100% -20px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
106
- background: url('chosen-sprite.png') no-repeat 100% -20px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
107
- background: url('chosen-sprite.png') no-repeat 100% -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
108
  margin: 1px 0;
109
  padding: 4px 20px 4px 5px;
110
  outline: 0;
@@ -219,7 +219,7 @@
219
  width: 12px;
220
  height: 12px;
221
  font-size: 1px;
222
- background: url('chosen-sprite.png') -42px 1px no-repeat;
223
  }
224
  .chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover {
225
  background-position: -42px -10px;
@@ -304,10 +304,10 @@
304
  bottom: 0;
305
  }
306
  .chzn-container .chzn-results-scroll-down span {
307
- background: url('chosen-sprite.png') no-repeat -4px -3px;
308
  }
309
  .chzn-container .chzn-results-scroll-up span {
310
- background: url('chosen-sprite.png') no-repeat -22px -3px;
311
  }
312
  /* @end */
313
 
@@ -385,12 +385,12 @@
385
  .chzn-rtl .chzn-results .group-option { padding-left: 0; padding-right: 15px; }
386
  .chzn-rtl.chzn-container-active .chzn-single-with-drop div { border-right: none; }
387
  .chzn-rtl .chzn-search input {
388
- background: #fff url('chosen-sprite.png') no-repeat -30px -20px;
389
- background: url('chosen-sprite.png') no-repeat -30px -20px, -webkit-gradient(linear, 0 0, 0 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
390
- background: url('chosen-sprite.png') no-repeat -30px -20px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
391
- background: url('chosen-sprite.png') no-repeat -30px -20px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
392
- background: url('chosen-sprite.png') no-repeat -30px -20px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
393
- background: url('chosen-sprite.png') no-repeat -30px -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
394
  padding: 4px 5px 4px 20px;
395
  direction: rtl;
396
  }
69
  width: 12px;
70
  height: 12px;
71
  font-size: 1px;
72
+ background: url('../images/chosen-sprite.png') -42px 1px no-repeat;
73
  }
74
  .chzn-container-single .chzn-single abbr:hover {
75
  background-position: -42px -10px;
86
  width: 18px;
87
  }
88
  .chzn-container-single .chzn-single div b {
89
+ background: url('../images/chosen-sprite.png') no-repeat 0px 2px;
90
  display: block;
91
  width: 100%;
92
  height: 100%;
99
  z-index: 1010;
100
  }
101
  .chzn-container-single .chzn-search input {
102
+ background: #fff url('../images/chosen-sprite.png') no-repeat 100% -20px;
103
+ background: url('../images/chosen-sprite.png') no-repeat 100% -20px, -webkit-gradient(linear, 0 0, 0 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
104
+ background: url('../images/chosen-sprite.png') no-repeat 100% -20px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
105
+ background: url('../images/chosen-sprite.png') no-repeat 100% -20px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
106
+ background: url('../images/chosen-sprite.png') no-repeat 100% -20px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
107
+ background: url('../images/chosen-sprite.png') no-repeat 100% -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
108
  margin: 1px 0;
109
  padding: 4px 20px 4px 5px;
110
  outline: 0;
219
  width: 12px;
220
  height: 12px;
221
  font-size: 1px;
222
+ background: url('../images/chosen-sprite.png') -42px 1px no-repeat;
223
  }
224
  .chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover {
225
  background-position: -42px -10px;
304
  bottom: 0;
305
  }
306
  .chzn-container .chzn-results-scroll-down span {
307
+ background: url('../images/chosen-sprite.png') no-repeat -4px -3px;
308
  }
309
  .chzn-container .chzn-results-scroll-up span {
310
+ background: url('../images/chosen-sprite.png') no-repeat -22px -3px;
311
  }
312
  /* @end */
313
 
385
  .chzn-rtl .chzn-results .group-option { padding-left: 0; padding-right: 15px; }
386
  .chzn-rtl.chzn-container-active .chzn-single-with-drop div { border-right: none; }
387
  .chzn-rtl .chzn-search input {
388
+ background: #fff url('../images/chosen-sprite.png') no-repeat -30px -20px;
389
+ background: url('../images/chosen-sprite.png') no-repeat -30px -20px, -webkit-gradient(linear, 0 0, 0 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
390
+ background: url('../images/chosen-sprite.png') no-repeat -30px -20px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
391
+ background: url('../images/chosen-sprite.png') no-repeat -30px -20px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
392
+ background: url('../images/chosen-sprite.png') no-repeat -30px -20px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
393
+ background: url('../images/chosen-sprite.png') no-repeat -30px -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
394
  padding: 4px 5px 4px 20px;
395
  direction: rtl;
396
  }
languages/restrict-widgets-pl_PL.po CHANGED
@@ -1,231 +1,231 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Restrict Widgets\n"
4
- "POT-Creation-Date: 2013-12-03 12:12+0100\n"
5
- "PO-Revision-Date: 2013-12-03 12:13+0100\n"
6
- "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\n"
7
- "Language-Team: dFactory <info@dfactory.eu>\n"
8
- "Language: English\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.5.7\n"
13
- "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
14
- "X-Poedit-Basepath: .\n"
15
- "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Poedit-SearchPath-0: ..\n"
17
-
18
- #: ../restrict-widgets.php:310
19
- msgid "Support"
20
- msgstr "Forum pomocy"
21
-
22
- #: ../restrict-widgets.php:332 ../restrict-widgets.php:1705
23
- #: ../restrict-widgets.php:1751
24
- msgid "Widgets"
25
- msgstr "Widgety"
26
-
27
- #: ../restrict-widgets.php:411
28
- msgid "Pages"
29
- msgstr "Strony"
30
-
31
- #: ../restrict-widgets.php:412
32
- msgid "Custom Post Types"
33
- msgstr "Własne typy wpisów"
34
-
35
- #: ../restrict-widgets.php:413
36
- msgid "Custom Post Type Archives"
37
- msgstr "Archiwa własnych typów wpisów"
38
-
39
- #: ../restrict-widgets.php:414
40
- msgid "Categories"
41
- msgstr "Kategorie"
42
-
43
- #: ../restrict-widgets.php:415
44
- msgid "Taxonomies"
45
- msgstr "Taksonomie"
46
-
47
- #: ../restrict-widgets.php:416
48
- msgid "Others"
49
- msgstr "Inne"
50
-
51
- #: ../restrict-widgets.php:423
52
- msgid "Search"
53
- msgstr "Strona wyszukiwania"
54
-
55
- #: ../restrict-widgets.php:424
56
- msgid "Single User"
57
- msgstr "Strona użytkownika"
58
-
59
- #: ../restrict-widgets.php:425
60
- msgid "Topic Tag"
61
- msgstr "Tagi tematów"
62
-
63
- #: ../restrict-widgets.php:428
64
- msgid "bbPress"
65
- msgstr "Forum bbPress"
66
-
67
- #: ../restrict-widgets.php:431
68
- msgid "Devices"
69
- msgstr "Urządzenia"
70
-
71
- #: ../restrict-widgets.php:432
72
- msgid "Users"
73
- msgstr "Użytkownicy"
74
-
75
- #: ../restrict-widgets.php:433
76
- msgid "Languages"
77
- msgstr "Języki"
78
-
79
- #: ../restrict-widgets.php:436
80
- msgid "Front Page"
81
- msgstr "Strona główna"
82
-
83
- #: ../restrict-widgets.php:437
84
- msgid "Blog Page"
85
- msgstr "Strona z wpisami"
86
-
87
- #: ../restrict-widgets.php:438
88
- msgid "Single Posts"
89
- msgstr "Pojedyncze wpisy"
90
-
91
- #: ../restrict-widgets.php:439
92
- msgid "Sticky Posts"
93
- msgstr "Wpisy przyklejone"
94
-
95
- #: ../restrict-widgets.php:440
96
- msgid "Author Archive"
97
- msgstr "Archiwum autora"
98
-
99
- #: ../restrict-widgets.php:441
100
- msgid "Date Archive"
101
- msgstr "Archiwum daty"
102
-
103
- #: ../restrict-widgets.php:442
104
- msgid "404 Page"
105
- msgstr "Strona błędów 404"
106
-
107
- #: ../restrict-widgets.php:443
108
- msgid "Search Page"
109
- msgstr "Strona wyszukiwania"
110
-
111
- #: ../restrict-widgets.php:447
112
- msgid "Logged in users"
113
- msgstr "Zalogowani użytkownicy"
114
-
115
- #: ../restrict-widgets.php:448
116
- msgid "Logged out users"
117
- msgstr "Wylogowani użytkownicy"
118
-
119
- #: ../restrict-widgets.php:452
120
- msgid "Mobile"
121
- msgstr "Mobilne"
122
-
123
- #: ../restrict-widgets.php:453
124
- msgid "Desktop, Laptop, etc."
125
- msgstr "Stacjonarne"
126
-
127
- #: ../restrict-widgets.php:669
128
- msgid "Restrict widgets"
129
- msgstr "Ograniczenia widgetów"
130
-
131
- #: ../restrict-widgets.php:673
132
- msgid ""
133
- "Use this settings to manage access to widgets page and to restrict "
134
- "availability of certain widgets, sidebars and widgets options to site "
135
- "administrators only."
136
- msgstr ""
137
- "Użyj tych ustawień aby określić kto może mieć dostęp do widgetów, jakie "
138
- "widgety, panele boczne i ustawienia widgetów są dostępne dla użytkowników a "
139
- "jakie tylko dla administratorów."
140
-
141
- #: ../restrict-widgets.php:676
142
- msgid "Restrict Users"
143
- msgstr "Ograniczenia użytkowników"
144
-
145
- #: ../restrict-widgets.php:686
146
- msgid "Select user roles restricted to manage widgets."
147
- msgstr "Wybierz role użytkowników, którzy mogą zarządzać widgetami."
148
-
149
- #: ../restrict-widgets.php:690
150
- msgid "Restrict Sidebars"
151
- msgstr "Ograniczenia paneli bocznych"
152
-
153
- #: ../restrict-widgets.php:706
154
- msgid "Select which sidebars will be restricted to admins only."
155
- msgstr "Wybierz panele boczne, które będą dostępne tylko dla administratorów."
156
-
157
- #: ../restrict-widgets.php:710
158
- msgid "Restrict Widgets"
159
- msgstr "Ograniczenia widgetów"
160
-
161
- #: ../restrict-widgets.php:723
162
- msgid "Select which widgets will be restricted to admins only."
163
- msgstr "Wybierz widgety, któe będą dostępne tylko dla administratorów."
164
-
165
- #: ../restrict-widgets.php:727
166
- msgid "Restrict Widget Options"
167
- msgstr "Ograniczenia opcji widgetów"
168
-
169
- #: ../restrict-widgets.php:737
170
- msgid "Select which widget options will be restricted to admins only."
171
- msgstr "Wybierz które opcje widgetów, będą dostępne tylko dla administratorów."
172
-
173
- #: ../restrict-widgets.php:741
174
- msgid "Restrict Option Groups"
175
- msgstr "Ograniczenia grup opcji"
176
-
177
- #: ../restrict-widgets.php:744
178
- msgid "Display widget options in groups"
179
- msgstr "Wyświetl opcje widgetów w grupach"
180
-
181
- #: ../restrict-widgets.php:748
182
- msgid "Modify is_active_sidebar()"
183
- msgstr "Modyfikuj is_active_sidebar()"
184
-
185
- #: ../restrict-widgets.php:751
186
- msgid ""
187
- "By default is_active_sidebar() function returns TRUE even if no widget is "
188
- "displayed in a sidebar. Check this if you want is_active_sidebar() to "
189
- "recognize Restrict Widgets display settings."
190
- msgstr ""
191
- "Domyślnie funkcja is_active_sidebar() zwraca TRUE navet jeśli w danym "
192
- "sidebarze nie jest wyświetlany żaden widget. Zaznacz to, jeśli chcesz aby "
193
- "is_active_sidebar() rozpoznawało ustawienia wyświetlania dodawane przez tę "
194
- "wtyczkę."
195
-
196
- #: ../restrict-widgets.php:755
197
- msgid "Plugin Deactivation"
198
- msgstr "Deaktywacja wtyczki"
199
-
200
- #: ../restrict-widgets.php:758
201
- msgid "Remove all plugin data on deactivation"
202
- msgstr "Usuń wszystkie dane wtyczki podczas deaktywacji"
203
-
204
- #: ../restrict-widgets.php:762
205
- msgid "Save settings"
206
- msgstr "Zapisz ustawienia"
207
-
208
- #: ../restrict-widgets.php:930 ../restrict-widgets.php:941
209
- #, php-format
210
- msgid "Single %s"
211
- msgstr "Pojedyncze %s"
212
-
213
- #: ../restrict-widgets.php:968 ../restrict-widgets.php:979
214
- #, php-format
215
- msgid "%s Archive"
216
- msgstr "Archiwum %s"
217
-
218
- #: ../restrict-widgets.php:1278
219
- msgid "Display / Hide Widget"
220
- msgstr "Wyświetl / Ukryj widget"
221
-
222
- #: ../restrict-widgets.php:1280
223
- msgid "Display widget on selected"
224
- msgstr "Wyświetl widget na wybranych stronach"
225
-
226
- #: ../restrict-widgets.php:1281
227
- msgid "Hide widget on selected"
228
- msgstr "Ukryj widget na wybranych stronach"
229
-
230
- #~ msgid "Created by"
231
- #~ msgstr "Stworzone przez"
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Restrict Widgets\n"
4
+ "POT-Creation-Date: 2013-12-03 12:12+0100\n"
5
+ "PO-Revision-Date: 2013-12-03 12:13+0100\n"
6
+ "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\n"
7
+ "Language-Team: dFactory <info@dfactory.eu>\n"
8
+ "Language: English\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.5.7\n"
13
+ "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-SearchPath-0: ..\n"
17
+
18
+ #: ../restrict-widgets.php:310
19
+ msgid "Support"
20
+ msgstr "Forum pomocy"
21
+
22
+ #: ../restrict-widgets.php:332 ../restrict-widgets.php:1705
23
+ #: ../restrict-widgets.php:1751
24
+ msgid "Widgets"
25
+ msgstr "Widgety"
26
+
27
+ #: ../restrict-widgets.php:411
28
+ msgid "Pages"
29
+ msgstr "Strony"
30
+
31
+ #: ../restrict-widgets.php:412
32
+ msgid "Custom Post Types"
33
+ msgstr "Własne typy wpisów"
34
+
35
+ #: ../restrict-widgets.php:413
36
+ msgid "Custom Post Type Archives"
37
+ msgstr "Archiwa własnych typów wpisów"
38
+
39
+ #: ../restrict-widgets.php:414
40
+ msgid "Categories"
41
+ msgstr "Kategorie"
42
+
43
+ #: ../restrict-widgets.php:415
44
+ msgid "Taxonomies"
45
+ msgstr "Taksonomie"
46
+
47
+ #: ../restrict-widgets.php:416
48
+ msgid "Others"
49
+ msgstr "Inne"
50
+
51
+ #: ../restrict-widgets.php:423
52
+ msgid "Search"
53
+ msgstr "Strona wyszukiwania"
54
+
55
+ #: ../restrict-widgets.php:424
56
+ msgid "Single User"
57
+ msgstr "Strona użytkownika"
58
+
59
+ #: ../restrict-widgets.php:425
60
+ msgid "Topic Tag"
61
+ msgstr "Tagi tematów"
62
+
63
+ #: ../restrict-widgets.php:428
64
+ msgid "bbPress"
65
+ msgstr "Forum bbPress"
66
+
67
+ #: ../restrict-widgets.php:431
68
+ msgid "Devices"
69
+ msgstr "Urządzenia"
70
+
71
+ #: ../restrict-widgets.php:432
72
+ msgid "Users"
73
+ msgstr "Użytkownicy"
74
+
75
+ #: ../restrict-widgets.php:433
76
+ msgid "Languages"
77
+ msgstr "Języki"
78
+
79
+ #: ../restrict-widgets.php:436
80
+ msgid "Front Page"
81
+ msgstr "Strona główna"
82
+
83
+ #: ../restrict-widgets.php:437
84
+ msgid "Blog Page"
85
+ msgstr "Strona z wpisami"
86
+
87
+ #: ../restrict-widgets.php:438
88
+ msgid "Single Posts"
89
+ msgstr "Pojedyncze wpisy"
90
+
91
+ #: ../restrict-widgets.php:439
92
+ msgid "Sticky Posts"
93
+ msgstr "Wpisy przyklejone"
94
+
95
+ #: ../restrict-widgets.php:440
96
+ msgid "Author Archive"
97
+ msgstr "Archiwum autora"
98
+
99
+ #: ../restrict-widgets.php:441
100
+ msgid "Date Archive"
101
+ msgstr "Archiwum daty"
102
+
103
+ #: ../restrict-widgets.php:442
104
+ msgid "404 Page"
105
+ msgstr "Strona błędów 404"
106
+
107
+ #: ../restrict-widgets.php:443
108
+ msgid "Search Page"
109
+ msgstr "Strona wyszukiwania"
110
+
111
+ #: ../restrict-widgets.php:447
112
+ msgid "Logged in users"
113
+ msgstr "Zalogowani użytkownicy"
114
+
115
+ #: ../restrict-widgets.php:448
116
+ msgid "Logged out users"
117
+ msgstr "Wylogowani użytkownicy"
118
+
119
+ #: ../restrict-widgets.php:452
120
+ msgid "Mobile"
121
+ msgstr "Mobilne"
122
+
123
+ #: ../restrict-widgets.php:453
124
+ msgid "Desktop, Laptop, etc."
125
+ msgstr "Stacjonarne"
126
+
127
+ #: ../restrict-widgets.php:669
128
+ msgid "Restrict widgets"
129
+ msgstr "Ograniczenia widgetów"
130
+
131
+ #: ../restrict-widgets.php:673
132
+ msgid ""
133
+ "Use this settings to manage access to widgets page and to restrict "
134
+ "availability of certain widgets, sidebars and widgets options to site "
135
+ "administrators only."
136
+ msgstr ""
137
+ "Użyj tych ustawień aby określić kto może mieć dostęp do widgetów, jakie "
138
+ "widgety, panele boczne i ustawienia widgetów są dostępne dla użytkowników a "
139
+ "jakie tylko dla administratorów."
140
+
141
+ #: ../restrict-widgets.php:676
142
+ msgid "Restrict Users"
143
+ msgstr "Ograniczenia użytkowników"
144
+
145
+ #: ../restrict-widgets.php:686
146
+ msgid "Select user roles restricted to manage widgets."
147
+ msgstr "Wybierz role użytkowników, którzy mogą zarządzać widgetami."
148
+
149
+ #: ../restrict-widgets.php:690
150
+ msgid "Restrict Sidebars"
151
+ msgstr "Ograniczenia paneli bocznych"
152
+
153
+ #: ../restrict-widgets.php:706
154
+ msgid "Select which sidebars will be restricted to admins only."
155
+ msgstr "Wybierz panele boczne, które będą dostępne tylko dla administratorów."
156
+
157
+ #: ../restrict-widgets.php:710
158
+ msgid "Restrict Widgets"
159
+ msgstr "Ograniczenia widgetów"
160
+
161
+ #: ../restrict-widgets.php:723
162
+ msgid "Select which widgets will be restricted to admins only."
163
+ msgstr "Wybierz widgety, któe będą dostępne tylko dla administratorów."
164
+
165
+ #: ../restrict-widgets.php:727
166
+ msgid "Restrict Widget Options"
167
+ msgstr "Ograniczenia opcji widgetów"
168
+
169
+ #: ../restrict-widgets.php:737
170
+ msgid "Select which widget options will be restricted to admins only."
171
+ msgstr "Wybierz które opcje widgetów, będą dostępne tylko dla administratorów."
172
+
173
+ #: ../restrict-widgets.php:741
174
+ msgid "Restrict Option Groups"
175
+ msgstr "Ograniczenia grup opcji"
176
+
177
+ #: ../restrict-widgets.php:744
178
+ msgid "Display widget options in groups"
179
+ msgstr "Wyświetl opcje widgetów w grupach"
180
+
181
+ #: ../restrict-widgets.php:748
182
+ msgid "Modify is_active_sidebar()"
183
+ msgstr "Modyfikuj is_active_sidebar()"
184
+
185
+ #: ../restrict-widgets.php:751
186
+ msgid ""
187
+ "By default is_active_sidebar() function returns TRUE even if no widget is "
188
+ "displayed in a sidebar. Check this if you want is_active_sidebar() to "
189
+ "recognize Restrict Widgets display settings."
190
+ msgstr ""
191
+ "Domyślnie funkcja is_active_sidebar() zwraca TRUE navet jeśli w danym "
192
+ "sidebarze nie jest wyświetlany żaden widget. Zaznacz to, jeśli chcesz aby "
193
+ "is_active_sidebar() rozpoznawało ustawienia wyświetlania dodawane przez tę "
194
+ "wtyczkę."
195
+
196
+ #: ../restrict-widgets.php:755
197
+ msgid "Plugin Deactivation"
198
+ msgstr "Deaktywacja wtyczki"
199
+
200
+ #: ../restrict-widgets.php:758
201
+ msgid "Remove all plugin data on deactivation"
202
+ msgstr "Usuń wszystkie dane wtyczki podczas deaktywacji"
203
+
204
+ #: ../restrict-widgets.php:762
205
+ msgid "Save settings"
206
+ msgstr "Zapisz ustawienia"
207
+
208
+ #: ../restrict-widgets.php:930 ../restrict-widgets.php:941
209
+ #, php-format
210
+ msgid "Single %s"
211
+ msgstr "Pojedyncze %s"
212
+
213
+ #: ../restrict-widgets.php:968 ../restrict-widgets.php:979
214
+ #, php-format
215
+ msgid "%s Archive"
216
+ msgstr "Archiwum %s"
217
+
218
+ #: ../restrict-widgets.php:1278
219
+ msgid "Display / Hide Widget"
220
+ msgstr "Wyświetl / Ukryj widget"
221
+
222
+ #: ../restrict-widgets.php:1280
223
+ msgid "Display widget on selected"
224
+ msgstr "Wyświetl widget na wybranych stronach"
225
+
226
+ #: ../restrict-widgets.php:1281
227
+ msgid "Hide widget on selected"
228
+ msgstr "Ukryj widget na wybranych stronach"
229
+
230
+ #~ msgid "Created by"
231
+ #~ msgstr "Stworzone przez"
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dfactory
3
  Donate link: http://www.dfactory.eu/
4
  Tags: widget, widgets, widget-only, cms, conditional tags, conditional, widget logic, widget context, restrict, manage, management, capability, capabilities, sidebar, sidebars, user, permission, permissions
5
  Requires at least: 3.3
6
- Tested up to: 3.7.1
7
- Stable tag: 1.2.0
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -56,6 +56,10 @@ No questions yet.
56
 
57
  == Changelog ==
58
 
 
 
 
 
59
  = 1.2.0 =
60
  * New: Multisite support
61
  * New: Option to hide / show widget depending on the device (mobile or not)
@@ -92,5 +96,6 @@ Initial release
92
 
93
  == Upgrade Notice ==
94
 
95
- = 1.2.0 =
96
- * New: Multisite support, Options to hide / show widget depending on the device (mobile or not), multiple fixes
 
3
  Donate link: http://www.dfactory.eu/
4
  Tags: widget, widgets, widget-only, cms, conditional tags, conditional, widget logic, widget context, restrict, manage, management, capability, capabilities, sidebar, sidebars, user, permission, permissions
5
  Requires at least: 3.3
6
+ Tested up to: 3.8
7
+ Stable tag: 1.2.1
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
56
 
57
  == Changelog ==
58
 
59
+ = 1.2.1 =
60
+ * Fix: tags not working properly
61
+ * Tweak: UI fixes for WP 3.8
62
+
63
  = 1.2.0 =
64
  * New: Multisite support
65
  * New: Option to hide / show widget depending on the device (mobile or not)
96
 
97
  == Upgrade Notice ==
98
 
99
+ = 1.2.1 =
100
+ * Fix: tags not working properly
101
+ * Tweak: UI fixes for WP 3.8
restrict-widgets.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Restrict Widgets
4
  Description: All in one solution for widget management in WordPress. Allows you to hide or display widgets on specified pages and restrict access for users.
5
- Version: 1.2.0
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/restrict-widgets/
@@ -663,14 +663,15 @@ class Restrict_Widgets
663
  }
664
 
665
  echo '
666
- <div id="widgets-options" class="widgets-holder-wrap restrict-widgets">
667
  <div class="sidebar-name">
668
- <div class="sidebar-name-arrow"><br /></div>
669
  <h3>'.__('Restrict widgets').'</h3>
670
  </div>
671
  <div class="widget-holder">
 
 
 
672
  <form action="" method="post">
673
- <p class="howto">'.__('Use this settings to manage access to widgets page and to restrict availability of certain widgets, sidebars and widgets options to site administrators only.', 'restrict-widgets').'</p>
674
  <table>
675
  <tr>
676
  <td class="label"><label>'.__('Restrict Users', 'restrict-widgets').'</label></td>
@@ -792,8 +793,8 @@ class Restrict_Widgets
792
  );
793
 
794
  wp_enqueue_script(
795
- 'restrict-widgets',
796
- RESTRICT_WIDGETS_URL.'/js/restrict-widgets-admin.js',
797
  array('jquery', 'chosen')
798
  );
799
 
@@ -844,7 +845,7 @@ class Restrict_Widgets
844
  }
845
 
846
  wp_localize_script(
847
- 'restrict-widgets',
848
  'rwArgs',
849
  array(
850
  'placeholder_text' => esc_attr__('Select options', 'restrict-widgets'),
@@ -860,8 +861,15 @@ class Restrict_Widgets
860
  )
861
  );
862
 
863
- wp_enqueue_style('chosen', RESTRICT_WIDGETS_URL.'/css/chosen.css');
864
- wp_enqueue_style('style', RESTRICT_WIDGETS_URL.'/css/restrict-widgets-admin.css');
 
 
 
 
 
 
 
865
  }
866
 
867
 
@@ -1604,6 +1612,15 @@ class Restrict_Widgets
1604
  }
1605
  elseif(is_category())
1606
  $found_main = isset($instance['rw_opt']['category_'.get_query_var('cat')]) ? TRUE : FALSE;
 
 
 
 
 
 
 
 
 
1607
  elseif(is_tax())
1608
  $found_main = isset($instance['rw_opt']['taxonomy_'.get_query_var('taxonomy')]) ? TRUE : FALSE;
1609
  elseif(is_404())
@@ -1618,11 +1635,11 @@ class Restrict_Widgets
1618
  $found_main = isset($instance['rw_opt']['others_date_archive']) ? TRUE : FALSE;
1619
  elseif(is_post_type_archive())
1620
  $found_main = isset($instance['rw_opt']['cpta_'.get_post_type($post_id)]) ? TRUE : FALSE;
1621
- elseif(bbp_is_search())
1622
  $found_main = isset($instance['rw_opt']['bbpress_search']) ? TRUE : FALSE;
1623
- elseif(bbp_is_single_user())
1624
  $found_main = isset($instance['rw_opt']['bbpress_single_user']) ? TRUE : FALSE;
1625
- elseif(bbp_is_topic_tag())
1626
  $found_main = isset($instance['rw_opt']['bbpress_topic_tag']) ? TRUE : FALSE;
1627
 
1628
  $display_main = ($display_type === TRUE ? ($found_main === TRUE ? TRUE : FALSE) : ($found_main === TRUE ? FALSE : TRUE));
2
  /*
3
  Plugin Name: Restrict Widgets
4
  Description: All in one solution for widget management in WordPress. Allows you to hide or display widgets on specified pages and restrict access for users.
5
+ Version: 1.2.1
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/restrict-widgets/
663
  }
664
 
665
  echo '
666
+ <div id="widgets-options" class="restrict-widgets">
667
  <div class="sidebar-name">
 
668
  <h3>'.__('Restrict widgets').'</h3>
669
  </div>
670
  <div class="widget-holder">
671
+ <div class="sidebar-description">
672
+ <p class="description">'.__('Use this settings to manage access to widgets page and to restrict availability of certain widgets, sidebars and widgets options to site administrators only.', 'restrict-widgets').'</p>
673
+ </div>
674
  <form action="" method="post">
 
675
  <table>
676
  <tr>
677
  <td class="label"><label>'.__('Restrict Users', 'restrict-widgets').'</label></td>
793
  );
794
 
795
  wp_enqueue_script(
796
+ 'restrict-widgets-admin',
797
+ RESTRICT_WIDGETS_URL.'/js/admin.js',
798
  array('jquery', 'chosen')
799
  );
800
 
845
  }
846
 
847
  wp_localize_script(
848
+ 'restrict-widgets-admin',
849
  'rwArgs',
850
  array(
851
  'placeholder_text' => esc_attr__('Select options', 'restrict-widgets'),
861
  )
862
  );
863
 
864
+ wp_enqueue_style(
865
+ 'chosen',
866
+ RESTRICT_WIDGETS_URL.'/css/chosen.css'
867
+ );
868
+
869
+ wp_enqueue_style(
870
+ 'restrict-widgets-admin',
871
+ RESTRICT_WIDGETS_URL.'/css/admin.css'
872
+ );
873
  }
874
 
875
 
1612
  }
1613
  elseif(is_category())
1614
  $found_main = isset($instance['rw_opt']['category_'.get_query_var('cat')]) ? TRUE : FALSE;
1615
+ elseif(is_tag())
1616
+ {
1617
+ if(($object = get_queried_object()) !== NULL && isset($object->taxonomy) && $object->taxonomy === 'post_tag')
1618
+ $tag = 'wp_log_type';
1619
+ else
1620
+ $tag = '';
1621
+
1622
+ $found_main = isset($instance['rw_opt']['taxonomy_'.$tag]) ? TRUE : FALSE;
1623
+ }
1624
  elseif(is_tax())
1625
  $found_main = isset($instance['rw_opt']['taxonomy_'.get_query_var('taxonomy')]) ? TRUE : FALSE;
1626
  elseif(is_404())
1635
  $found_main = isset($instance['rw_opt']['others_date_archive']) ? TRUE : FALSE;
1636
  elseif(is_post_type_archive())
1637
  $found_main = isset($instance['rw_opt']['cpta_'.get_post_type($post_id)]) ? TRUE : FALSE;
1638
+ elseif(function_exists('bbp_is_search') && bbp_is_search())
1639
  $found_main = isset($instance['rw_opt']['bbpress_search']) ? TRUE : FALSE;
1640
+ elseif(function_exists('bbp_is_single_user') && bbp_is_single_user())
1641
  $found_main = isset($instance['rw_opt']['bbpress_single_user']) ? TRUE : FALSE;
1642
+ elseif(function_exists('bbp_is_topic_tag') && bbp_is_topic_tag())
1643
  $found_main = isset($instance['rw_opt']['bbpress_topic_tag']) ? TRUE : FALSE;
1644
 
1645
  $display_main = ($display_type === TRUE ? ($found_main === TRUE ? TRUE : FALSE) : ($found_main === TRUE ? FALSE : TRUE));