Restrict Widgets - Version 1.2.4

Version Description

  • Tweak: Widget options interface adjustments
  • Tweak: Confirmed WP 4.0 compatibility
Download this release

Release Info

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

Code changes from version 1.2.3 to 1.2.4

css/admin.css CHANGED
@@ -61,44 +61,34 @@
61
  #options_available_widgets_chzn, #options_widgets_selection_chzn, #options_widgets_sidebars_chzn {
62
  margin: 0 20px 0 0;
63
  }
64
- #widgets-options input[type="text"] {
65
- line-height:20px;
66
- }
67
- #widgets-options select {
68
- width: 100%;
69
- }
70
- #widgets-options {
71
- margin-left: 5px;
72
- margin-right: 340px;
73
- }
74
  #widgets-left #widgets-options {
75
  margin-left: 0;
76
  margin-right: 0;
77
- padding-top:20px;
 
 
 
78
  }
79
- #widgets-options .widget-holder {
80
- border-width: 0 1px 1px;
81
- border-style: none solid solid;
82
- -webkit-border-bottom-right-radius: 3px;
83
- -webkit-border-bottom-left-radius: 3px;
84
- border-bottom-right-radius: 3px;
85
- border-bottom-left-radius: 3px;
86
- background-color: #FCFCFC;
87
- border-color: #DFDFDF;
88
- padding: 10px;
89
  }
90
- .version-3-8 #widgets-options .widget-holder {
91
- padding: 0;
92
- background: none;
93
- border: none;
 
94
  }
95
  .widget-liquid-right .widget, .inactive-sidebar .widget, .widget-liquid-right .sidebar-description {
96
  overflow: visible !important;
97
  }
98
  #widgets-options table { width:100%; }
99
- #widgets-options td.label { width:30%; vertical-align:top; line-height:12px; }
100
- #widgets-options td.label label { padding-top:12px; font-weight:bold; color:#222; }
101
  #widgets-options #save-widgets-options { margin: 20px 0 0 0; }
 
102
 
103
  #df-credits { float:right; font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif; font-style:italic; margin:15px 0 0; display:block; }
104
  #df-credits a { padding: 5px 0 0 7px; vertical-align:middle; }
61
  #options_available_widgets_chzn, #options_widgets_selection_chzn, #options_widgets_sidebars_chzn {
62
  margin: 0 20px 0 0;
63
  }
 
 
 
 
 
 
 
 
 
 
64
  #widgets-left #widgets-options {
65
  margin-left: 0;
66
  margin-right: 0;
67
+ margin-right: 340px;
68
+ width: 100%;
69
+ border: 1px solid #e5e5e5;
70
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
71
  }
72
+ #widgets-left #widgets-options .widgets-sortables {
73
+ padding: 15px;
74
+ }
75
+
76
+ #widgets-options input[type="text"] {
77
+ line-height:20px;
 
 
 
 
78
  }
79
+ #widgets-options select {
80
+ width: 100%;
81
+ -webkit-box-sizing : border-box;‌​
82
+ -moz-box-sizing : border-box;
83
+ box-sizing : border-box;
84
  }
85
  .widget-liquid-right .widget, .inactive-sidebar .widget, .widget-liquid-right .sidebar-description {
86
  overflow: visible !important;
87
  }
88
  #widgets-options table { width:100%; }
89
+ #widgets-options .label { width:30%; vertical-align:top; line-height:12px; font-weight:bold; color:#222; }
 
90
  #widgets-options #save-widgets-options { margin: 20px 0 0 0; }
91
+ #widgets-options form .description { font-style: italic; }
92
 
93
  #df-credits { float:right; font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif; font-style:italic; margin:15px 0 0; display:block; }
94
  #df-credits a { padding: 5px 0 0 7px; vertical-align:middle; }
languages/restrict-widgets-cs_CZ.mo CHANGED
Binary file
languages/restrict-widgets-cs_CZ.po CHANGED
@@ -1,269 +1,332 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Restrict Widgets v1.1.2\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-09-04 09:23+0100\n"
6
- "PO-Revision-Date: 2013-09-27 19:54:41+0000\n"
7
- "Last-Translator: \n"
8
- "Language-Team: \n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "Plural-Forms: nplurals=3; plural=n%100/10==1 ? 2 : n%10==1 ? 0 : (n+9)%10>3 ? 2 : 1;\n"
13
- "X-Generator: Poedit 1.5.7\n"
14
- "X-Poedit-Language: \n"
15
- "X-Poedit-Country: \n"
16
- "X-Poedit-SourceCharset: utf-8\n"
17
- "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
18
- "X-Poedit-Basepath: ../\n"
19
- "X-Poedit-Bookmarks: \n"
20
- "X-Poedit-SearchPath-0: .\n"
21
- "X-Textdomain-Support: yes"
22
-
23
- #: restrict-widgets.php:175
24
- #@ restrict-widgets
25
- msgid "Support"
26
- msgstr "Podpora"
27
-
28
- #: restrict-widgets.php:197
29
- #: restrict-widgets.php:1475
30
- #: restrict-widgets.php:1520
31
- #@ restrict-widgets
32
- #@ default
33
- msgid "Widgets"
34
- msgstr "Widgety"
35
-
36
- #: restrict-widgets.php:333
37
- #@ restrict-widgets
38
- msgid "Pages"
39
- msgstr "Stránky"
40
-
41
- #: restrict-widgets.php:334
42
- #@ restrict-widgets
43
- msgid "Custom Post Types"
44
- msgstr "Vlastní typy obsahu"
45
-
46
- #: restrict-widgets.php:335
47
- #@ restrict-widgets
48
- msgid "Custom Post Type Archives"
49
- msgstr "Archívy vlastních typů obsahu"
50
-
51
- #: restrict-widgets.php:336
52
- #@ restrict-widgets
53
- msgid "Categories"
54
- msgstr "Rubriky"
55
-
56
- #: restrict-widgets.php:337
57
- #@ restrict-widgets
58
- msgid "Taxonomies"
59
- msgstr "Taxonomie"
60
-
61
- #: restrict-widgets.php:338
62
- #@ restrict-widgets
63
- msgid "Others"
64
- msgstr "Ostatní"
65
-
66
- #: restrict-widgets.php:339
67
- #@ restrict-widgets
68
- msgid "Users"
69
- msgstr "Uživatelé"
70
-
71
- #: restrict-widgets.php:340
72
- #@ restrict-widgets
73
- msgid "Languages"
74
- msgstr "Jazyky"
75
-
76
- #: restrict-widgets.php:344
77
- #@ restrict-widgets
78
- msgid "Front Page"
79
- msgstr "Úvodní stránka"
80
-
81
- #: restrict-widgets.php:345
82
- #@ restrict-widgets
83
- msgid "Blog Page"
84
- msgstr "Seznam příspěvků"
85
-
86
- #: restrict-widgets.php:346
87
- #@ restrict-widgets
88
- msgid "Single Posts"
89
- msgstr "Jednotlivé příspěvky"
90
-
91
- #: restrict-widgets.php:347
92
- #@ restrict-widgets
93
- msgid "Sticky Posts"
94
- msgstr "Zvýrazněné příspěvky"
95
-
96
- #: restrict-widgets.php:348
97
- #@ restrict-widgets
98
- msgid "Author Archive"
99
- msgstr "Archív podle autora"
100
-
101
- #: restrict-widgets.php:349
102
- #@ restrict-widgets
103
- msgid "Date Archive"
104
- msgstr "Archív podle data"
105
-
106
- #: restrict-widgets.php:350
107
- #@ restrict-widgets
108
- msgid "404 Page"
109
- msgstr "Chybová stránka 404"
110
-
111
- #: restrict-widgets.php:351
112
- #@ restrict-widgets
113
- msgid "Search Page"
114
- msgstr "Výsledky vyhledávání"
115
-
116
- #: restrict-widgets.php:355
117
- #@ restrict-widgets
118
- msgid "Logged in users"
119
- msgstr "Přihlášení uživatelé"
120
-
121
- #: restrict-widgets.php:356
122
- #@ restrict-widgets
123
- msgid "Logged out users"
124
- msgstr "Odhlášení uživatelé"
125
-
126
- #: restrict-widgets.php:579
127
- #@ default
128
- msgid "Restrict widgets"
129
- msgstr ""
130
-
131
- #: restrict-widgets.php:583
132
- #@ restrict-widgets
133
- msgid "Use this settings to manage access to widgets page and to restrict availability of certain widgets, sidebars and widgets options to site administrators only."
134
- msgstr "Zde můžete nastavit přístup různých úrovní uživatelů ke stránce Widgety a omezit zobrazení jednotlivých widgetů, postranních panelů a možností widgetů pouze pro admnistrátora."
135
-
136
- #: restrict-widgets.php:586
137
- #@ restrict-widgets
138
- msgid "Restrict Users"
139
- msgstr "Omezení uživatelů"
140
-
141
- #: restrict-widgets.php:596
142
- #@ restrict-widgets
143
- msgid "Select user roles restricted to manage widgets."
144
- msgstr "Vyberte, které úrovně uživatelů mohou upravovat widgety."
145
-
146
- #: restrict-widgets.php:600
147
- #@ restrict-widgets
148
- msgid "Restrict Sidebars"
149
- msgstr "Omezení postranních panelů"
150
-
151
- #: restrict-widgets.php:615
152
- #@ restrict-widgets
153
- msgid "Select which sidebars will be restricted to admins only."
154
- msgstr "Vyberte, které postranní panely budou přístupné pouze pro administrátora."
155
-
156
- #: restrict-widgets.php:619
157
- #@ restrict-widgets
158
- msgid "Restrict Widgets"
159
- msgstr "Omezení widgetů"
160
-
161
- #: restrict-widgets.php:631
162
- #@ restrict-widgets
163
- msgid "Select which widgets will be restricted to admins only."
164
- msgstr "Vyberte, které widgety budou přístupné pouze pro administrátora."
165
-
166
- #: restrict-widgets.php:635
167
- #@ restrict-widgets
168
- msgid "Restrict Widget Options"
169
- msgstr "Omezení možností widgetů"
170
-
171
- #: restrict-widgets.php:645
172
- #@ restrict-widgets
173
- msgid "Select which widget options will be restricted to admins only."
174
- msgstr "Vyberte, které možnosti widgetů budou přístupné pouze pro administrátora."
175
-
176
- #: restrict-widgets.php:649
177
- #@ restrict-widgets
178
- msgid "Restrict Option Groups"
179
- msgstr "Zobrazení možností widgetů"
180
-
181
- #: restrict-widgets.php:652
182
- #@ restrict-widgets
183
- msgid "Display widget options in groups"
184
- msgstr "Sdružovat možnosti widgetů do skupin"
185
-
186
- #: restrict-widgets.php:656
187
- #@ restrict-widgets
188
- msgid "Modify is_active_sidebar()"
189
- msgstr "Modifikace is_active_sidebar()"
190
-
191
- #: restrict-widgets.php:659
192
- #@ restrict-widgets
193
- msgid "By default is_active_sidebar() function returns TRUE even if no widget is displayed in a sidebar. Check this if you want is_active_sidebar() to recognize Restrict Widgets display settings."
194
- msgstr "Funkce is_active_sidebar() vrací standardně hodnotu TRUE i v případě, že postranní panel neobsahuje žádný widget. Zaškrtněte, pokud chcete, aby funkce is_active_sidebar() rozpoznávala zobrazení widgetů, nastavené pluginem Restrict Widgets."
195
-
196
- #: restrict-widgets.php:663
197
- #@ restrict-widgets
198
- msgid "Plugin Deactivation"
199
- msgstr "Deaktivace pluginu"
200
-
201
- #: restrict-widgets.php:666
202
- #@ restrict-widgets
203
- msgid "Remove all plugin data on deactivation"
204
- msgstr "Smazat všechna nastavení při deaktivaci pluginu"
205
-
206
- #: restrict-widgets.php:670
207
- #@ restrict-widgets
208
- msgid "Save settings"
209
- msgstr "Uložit změny"
210
-
211
- #: restrict-widgets.php:844
212
- #: restrict-widgets.php:854
213
- #, php-format
214
- #@ restrict-widgets
215
- msgid "Single %s"
216
- msgstr "Jednotlivé %s"
217
-
218
- #: restrict-widgets.php:884
219
- #: restrict-widgets.php:894
220
- #, php-format
221
- #@ restrict-widgets
222
- msgid "%s Archive"
223
- msgstr "Archív %s"
224
-
225
- #: restrict-widgets.php:1125
226
- #@ restrict-widgets
227
- msgid "Display / Hide Widget"
228
- msgstr "Zobrazit / skrýt widget"
229
-
230
- #: restrict-widgets.php:1127
231
- #@ restrict-widgets
232
- msgid "Display widget on selected"
233
- msgstr "Zobrazit widget na stránkách"
234
-
235
- #: restrict-widgets.php:1128
236
- #@ restrict-widgets
237
- msgid "Hide widget on selected"
238
- msgstr "Skrýt widget na stránkách"
239
-
240
- #: restrict-widgets.php:761
241
- #@ restrict-widgets
242
- msgid "Select options"
243
- msgstr "Vyberte"
244
-
245
- #: restrict-widgets.php:762
246
- #@ restrict-widgets
247
- msgid "Select widgets"
248
- msgstr "Vyberte widgety"
249
-
250
- #: restrict-widgets.php:763
251
- #@ restrict-widgets
252
- msgid "Select widgets options"
253
- msgstr "Vyberte možnosti widgetů"
254
-
255
- #: restrict-widgets.php:764
256
- #@ restrict-widgets
257
- msgid "Select sidebars"
258
- msgstr "Vyberte postranní panely"
259
-
260
- #: restrict-widgets.php:765
261
- #@ restrict-widgets
262
- msgid "Select roles"
263
- msgstr "Vyberte úrovně uživatelů"
264
-
265
- #: restrict-widgets.php:766
266
- #@ restrict-widgets
267
- msgid "Select languages"
268
- msgstr "Vyberte jazyky"
269
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Restrict Widgets v1.2.3\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-12-03 12:12+0100\n"
6
+ "PO-Revision-Date: 2014-02-15 23:23:24+0000\n"
7
+ "Last-Translator: Martin Kucera <martin.kucera@digisvet.cz>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=3; plural=n%100/10==1 ? 2 : n%10==1 ? 0 : (n+9)%10>3 ? 2 : 1;\n"
13
+ "X-Generator: Poedit 1.6.4\n"
14
+ "X-Poedit-Language: \n"
15
+ "X-Poedit-Country: \n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
18
+ "X-Poedit-Basepath: ../\n"
19
+ "X-Poedit-Bookmarks: \n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Textdomain-Support: yes"
22
+
23
+ #: restrict-widgets.php:310
24
+ #@ restrict-widgets
25
+ msgid "Support"
26
+ msgstr "Podpora"
27
+
28
+ #: restrict-widgets.php:332 restrict-widgets.php:1722
29
+ #: restrict-widgets.php:1768
30
+ #@ restrict-widgets
31
+ #@ default
32
+ msgid "Widgets"
33
+ msgstr "Widgety"
34
+
35
+ #: restrict-widgets.php:411
36
+ #@ restrict-widgets
37
+ msgid "Pages"
38
+ msgstr "Stránky"
39
+
40
+ #: restrict-widgets.php:412
41
+ #@ restrict-widgets
42
+ msgid "Custom Post Types"
43
+ msgstr "Vlastní typy obsahu"
44
+
45
+ #: restrict-widgets.php:413
46
+ #@ restrict-widgets
47
+ msgid "Custom Post Type Archives"
48
+ msgstr "Archívy vlastních typů obsahu"
49
+
50
+ #: restrict-widgets.php:414
51
+ #@ restrict-widgets
52
+ msgid "Categories"
53
+ msgstr "Rubriky"
54
+
55
+ #: restrict-widgets.php:415
56
+ #@ restrict-widgets
57
+ msgid "Taxonomies"
58
+ msgstr "Taxonomie"
59
+
60
+ #: restrict-widgets.php:416
61
+ #@ restrict-widgets
62
+ msgid "Others"
63
+ msgstr "Ostatní"
64
+
65
+ #: restrict-widgets.php:423
66
+ #@ restrict-widgets
67
+ msgid "Search"
68
+ msgstr "Hledat"
69
+
70
+ #: restrict-widgets.php:424
71
+ #@ restrict-widgets
72
+ msgid "Single User"
73
+ msgstr "Uživatel"
74
+
75
+ #: restrict-widgets.php:425
76
+ #@ restrict-widgets
77
+ msgid "Topic Tag"
78
+ msgstr "Štítky témat"
79
+
80
+ #: restrict-widgets.php:428
81
+ #@ restrict-widgets
82
+ msgid "bbPress"
83
+ msgstr "bbPress"
84
+
85
+ #: restrict-widgets.php:431
86
+ #@ restrict-widgets
87
+ msgid "Devices"
88
+ msgstr "Zařízení"
89
+
90
+ #: restrict-widgets.php:432
91
+ #@ restrict-widgets
92
+ msgid "Users"
93
+ msgstr "Uživatelé"
94
+
95
+ #: restrict-widgets.php:433
96
+ #@ restrict-widgets
97
+ msgid "Languages"
98
+ msgstr "Jazyky"
99
+
100
+ #: restrict-widgets.php:436
101
+ #@ restrict-widgets
102
+ msgid "Front Page"
103
+ msgstr "Úvodní stránka"
104
+
105
+ #: restrict-widgets.php:437
106
+ #@ restrict-widgets
107
+ msgid "Blog Page"
108
+ msgstr "Stránka příspěvků (Blog)"
109
+
110
+ #: restrict-widgets.php:438
111
+ #@ restrict-widgets
112
+ msgid "Single Posts"
113
+ msgstr "Jednotlivé příspěvky"
114
+
115
+ #: restrict-widgets.php:439
116
+ #@ restrict-widgets
117
+ msgid "Sticky Posts"
118
+ msgstr "Zvýrazněné příspěvky"
119
+
120
+ #: restrict-widgets.php:440
121
+ #@ restrict-widgets
122
+ msgid "Author Archive"
123
+ msgstr "Archív podle autora"
124
+
125
+ #: restrict-widgets.php:441
126
+ #@ restrict-widgets
127
+ msgid "Date Archive"
128
+ msgstr "Archív podle data"
129
+
130
+ #: restrict-widgets.php:442
131
+ #@ restrict-widgets
132
+ msgid "404 Page"
133
+ msgstr "Chybová stránka 404"
134
+
135
+ #: restrict-widgets.php:443
136
+ #@ restrict-widgets
137
+ msgid "Search Page"
138
+ msgstr "Výsledky vyhledávání"
139
+
140
+ #: restrict-widgets.php:447
141
+ #@ restrict-widgets
142
+ msgid "Logged in users"
143
+ msgstr "Přihlášení uživatelé"
144
+
145
+ #: restrict-widgets.php:448
146
+ #@ restrict-widgets
147
+ msgid "Logged out users"
148
+ msgstr "Odhlášení uživatelé"
149
+
150
+ #: restrict-widgets.php:452
151
+ #@ restrict-widgets
152
+ msgid "Mobile"
153
+ msgstr "Mobilní zařízení"
154
+
155
+ #: restrict-widgets.php:453
156
+ #@ restrict-widgets
157
+ msgid "Desktop, Laptop, etc."
158
+ msgstr "Desktopová zařízení"
159
+
160
+ #: restrict-widgets.php:668
161
+ #@ default
162
+ msgid "Restrict widgets"
163
+ msgstr "Widgety"
164
+
165
+ #: restrict-widgets.php:672
166
+ #@ restrict-widgets
167
+ msgid "Use this settings to manage access to widgets page and to restrict availability of certain widgets, sidebars and widgets options to site administrators only."
168
+ msgstr "Zde můžete nastavit, které úrovně uživatelů mají mít přístup ke stránce Widgety a vyhradit zobrazení jednotlivých widgetů, postranních panelů a možností filtrace widgetů pouze pro admnistrátora."
169
+
170
+ #: restrict-widgets.php:677
171
+ #@ restrict-widgets
172
+ msgid "Restrict Users"
173
+ msgstr "Úrovně uživatelů"
174
+
175
+ #: restrict-widgets.php:687
176
+ #@ restrict-widgets
177
+ msgid "Select user roles restricted to manage widgets."
178
+ msgstr "Vyberte, které úrovně uživatelů mají mít oprávnění upravovat widgety."
179
+
180
+ #: restrict-widgets.php:691
181
+ #@ restrict-widgets
182
+ msgid "Restrict Sidebars"
183
+ msgstr "Postranní panely"
184
+
185
+ #: restrict-widgets.php:707
186
+ #@ restrict-widgets
187
+ msgid "Select which sidebars will be restricted to admins only."
188
+ msgstr "Vyberte, které postranní panely mají být přístupné pouze pro administrátora."
189
+
190
+ #. translators: plugin header field 'Name'
191
+ #: restrict-widgets.php:0 restrict-widgets.php:711
192
+ #@ restrict-widgets
193
+ msgid "Restrict Widgets"
194
+ msgstr "Omezení widgetů"
195
+
196
+ #: restrict-widgets.php:724
197
+ #@ restrict-widgets
198
+ msgid "Select which widgets will be restricted to admins only."
199
+ msgstr "Vyberte, které widgety mají být přístupné pouze pro administrátora."
200
+
201
+ #: restrict-widgets.php:728
202
+ #@ restrict-widgets
203
+ msgid "Restrict Widget Options"
204
+ msgstr "Filtrace widgetů"
205
+
206
+ #: restrict-widgets.php:738
207
+ #@ restrict-widgets
208
+ msgid "Select which widget options will be restricted to admins only."
209
+ msgstr "Vyberte, které položky ve filtraci widgetů mají být přístupné pouze pro administrátora."
210
+
211
+ #: restrict-widgets.php:742
212
+ #@ restrict-widgets
213
+ msgid "Restrict Option Groups"
214
+ msgstr "Zobrazení filtrace"
215
+
216
+ #: restrict-widgets.php:745
217
+ #@ restrict-widgets
218
+ msgid "Display widget options in groups"
219
+ msgstr "Sdružovat položky ve filtraci widgetů do skupin"
220
+
221
+ #: restrict-widgets.php:749
222
+ #@ restrict-widgets
223
+ msgid "Modify is_active_sidebar()"
224
+ msgstr "Modifikace is_active_sidebar()"
225
+
226
+ #: restrict-widgets.php:752
227
+ #@ restrict-widgets
228
+ msgid "By default is_active_sidebar() function returns TRUE even if no widget is displayed in a sidebar. Check this if you want is_active_sidebar() to recognize Restrict Widgets display settings."
229
+ msgstr "Funkce is_active_sidebar() vrací standardně hodnotu TRUE i v případě, že postranní panel neobsahuje žádný widget. Zaškrtněte, pokud chcete, aby funkce is_active_sidebar() rozpoznávala zobrazení widgetů, nastavené pluginem Restrict Widgets."
230
+
231
+ #: restrict-widgets.php:756
232
+ #@ restrict-widgets
233
+ msgid "Plugin Deactivation"
234
+ msgstr "Deaktivace pluginu"
235
+
236
+ #: restrict-widgets.php:759
237
+ #@ restrict-widgets
238
+ msgid "Remove all plugin data on deactivation"
239
+ msgstr "Smazat všechna nastavení při deaktivaci pluginu"
240
+
241
+ #: restrict-widgets.php:763
242
+ #@ restrict-widgets
243
+ msgid "Save settings"
244
+ msgstr "Uložit změny"
245
+
246
+ #: restrict-widgets.php:938 restrict-widgets.php:949
247
+ #, php-format
248
+ #@ restrict-widgets
249
+ msgid "Single %s"
250
+ msgstr "Jednotlivé %s"
251
+
252
+ #: restrict-widgets.php:976 restrict-widgets.php:987
253
+ #, php-format
254
+ #@ restrict-widgets
255
+ msgid "%s Archive"
256
+ msgstr "Archív %s"
257
+
258
+ #: restrict-widgets.php:1286
259
+ #@ restrict-widgets
260
+ msgid "Display / Hide Widget"
261
+ msgstr "Zobrazit / skrýt widget"
262
+
263
+ #: restrict-widgets.php:1288
264
+ #@ restrict-widgets
265
+ msgid "Display widget on selected"
266
+ msgstr "Zobrazit widget na stránkách"
267
+
268
+ #: restrict-widgets.php:1289
269
+ #@ restrict-widgets
270
+ msgid "Hide widget on selected"
271
+ msgstr "Skrýt widget na stránkách"
272
+
273
+ #. translators: plugin header field 'PluginURI'
274
+ #: restrict-widgets.php:0
275
+ #@ restrict-widgets
276
+ msgid "http://www.dfactory.eu/plugins/restrict-widgets/"
277
+ msgstr ""
278
+
279
+ #. translators: plugin header field 'Description'
280
+ #: restrict-widgets.php:0
281
+ #@ restrict-widgets
282
+ msgid "All in one solution for widget management in WordPress. Allows you to hide or display widgets on specified pages and restrict access for users."
283
+ msgstr "Komplexní řešení pro management widgetů ve WordPressu. Umožňuje skrývat nebo zobrazovat widgety na určených stránkách a nastavit přístup k widgetům pro různé úrovně uživatelů."
284
+
285
+ #. translators: plugin header field 'Author'
286
+ #: restrict-widgets.php:0
287
+ #@ restrict-widgets
288
+ msgid "dFactory"
289
+ msgstr ""
290
+
291
+ #. translators: plugin header field 'AuthorURI'
292
+ #: restrict-widgets.php:0
293
+ #@ restrict-widgets
294
+ msgid "http://www.dfactory.eu/"
295
+ msgstr ""
296
+
297
+ #. translators: plugin header field 'Version'
298
+ #: restrict-widgets.php:0
299
+ #@ restrict-widgets
300
+ msgid "1.2.3"
301
+ msgstr ""
302
+
303
+ #: restrict-widgets.php:851
304
+ #@ restrict-widgets
305
+ msgid "Select options"
306
+ msgstr "Vyberte"
307
+
308
+ #: restrict-widgets.php:852
309
+ #@ restrict-widgets
310
+ msgid "Select widgets"
311
+ msgstr "Vyberte widgety"
312
+
313
+ #: restrict-widgets.php:853
314
+ #@ restrict-widgets
315
+ msgid "Select widgets options"
316
+ msgstr "Vyberte položky filtrace widgetů"
317
+
318
+ #: restrict-widgets.php:854
319
+ #@ restrict-widgets
320
+ msgid "Select sidebars"
321
+ msgstr "Vyberte postranní panely"
322
+
323
+ #: restrict-widgets.php:855
324
+ #@ restrict-widgets
325
+ msgid "Select roles"
326
+ msgstr "Vyberte úrovně uživatelů"
327
+
328
+ #: restrict-widgets.php:856
329
+ #@ restrict-widgets
330
+ msgid "Select languages"
331
+ msgstr "Vyberte jazyky"
332
+
languages/restrict-widgets.pot CHANGED
@@ -1,15 +1,15 @@
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:12+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"
@@ -19,8 +19,8 @@ msgstr ""
19
  msgid "Support"
20
  msgstr ""
21
 
22
- #: ../restrict-widgets.php:332 ../restrict-widgets.php:1705
23
- #: ../restrict-widgets.php:1751
24
  msgid "Widgets"
25
  msgstr ""
26
 
@@ -124,98 +124,98 @@ msgstr ""
124
  msgid "Desktop, Laptop, etc."
125
  msgstr ""
126
 
127
- #: ../restrict-widgets.php:669
128
  msgid "Restrict widgets"
129
  msgstr ""
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
 
138
- #: ../restrict-widgets.php:676
139
  msgid "Restrict Users"
140
  msgstr ""
141
 
142
- #: ../restrict-widgets.php:686
143
  msgid "Select user roles restricted to manage widgets."
144
  msgstr ""
145
 
146
- #: ../restrict-widgets.php:690
147
  msgid "Restrict Sidebars"
148
  msgstr ""
149
 
150
- #: ../restrict-widgets.php:706
151
  msgid "Select which sidebars will be restricted to admins only."
152
  msgstr ""
153
 
154
- #: ../restrict-widgets.php:710
155
  msgid "Restrict Widgets"
156
  msgstr ""
157
 
158
- #: ../restrict-widgets.php:723
159
  msgid "Select which widgets will be restricted to admins only."
160
  msgstr ""
161
 
162
- #: ../restrict-widgets.php:727
163
  msgid "Restrict Widget Options"
164
  msgstr ""
165
 
166
- #: ../restrict-widgets.php:737
167
  msgid "Select which widget options will be restricted to admins only."
168
  msgstr ""
169
 
170
- #: ../restrict-widgets.php:741
171
  msgid "Restrict Option Groups"
172
  msgstr ""
173
 
174
- #: ../restrict-widgets.php:744
175
  msgid "Display widget options in groups"
176
  msgstr ""
177
 
178
- #: ../restrict-widgets.php:748
179
  msgid "Modify is_active_sidebar()"
180
  msgstr ""
181
 
182
- #: ../restrict-widgets.php:751
183
  msgid ""
184
  "By default is_active_sidebar() function returns TRUE even if no widget is "
185
  "displayed in a sidebar. Check this if you want is_active_sidebar() to "
186
  "recognize Restrict Widgets display settings."
187
  msgstr ""
188
 
189
- #: ../restrict-widgets.php:755
190
  msgid "Plugin Deactivation"
191
  msgstr ""
192
 
193
- #: ../restrict-widgets.php:758
194
  msgid "Remove all plugin data on deactivation"
195
  msgstr ""
196
 
197
- #: ../restrict-widgets.php:762
198
  msgid "Save settings"
199
  msgstr ""
200
 
201
- #: ../restrict-widgets.php:930 ../restrict-widgets.php:941
202
  #, php-format
203
  msgid "Single %s"
204
  msgstr ""
205
 
206
- #: ../restrict-widgets.php:968 ../restrict-widgets.php:979
207
  #, php-format
208
  msgid "%s Archive"
209
  msgstr ""
210
 
211
- #: ../restrict-widgets.php:1278
212
  msgid "Display / Hide Widget"
213
  msgstr ""
214
 
215
- #: ../restrict-widgets.php:1280
216
  msgid "Display widget on selected"
217
  msgstr ""
218
 
219
- #: ../restrict-widgets.php:1281
220
  msgid "Hide widget on selected"
221
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Restrict Widgets\n"
4
+ "POT-Creation-Date: 2014-02-17 10:18+0100\n"
5
+ "PO-Revision-Date: 2014-02-17 10:18+0100\n"
6
+ "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
+ "Language: en\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.6.4\n"
13
  "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
19
  msgid "Support"
20
  msgstr ""
21
 
22
+ #: ../restrict-widgets.php:332 ../restrict-widgets.php:1722
23
+ #: ../restrict-widgets.php:1768
24
  msgid "Widgets"
25
  msgstr ""
26
 
124
  msgid "Desktop, Laptop, etc."
125
  msgstr ""
126
 
127
+ #: ../restrict-widgets.php:668
128
  msgid "Restrict widgets"
129
  msgstr ""
130
 
131
+ #: ../restrict-widgets.php:672
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
 
138
+ #: ../restrict-widgets.php:677
139
  msgid "Restrict Users"
140
  msgstr ""
141
 
142
+ #: ../restrict-widgets.php:687
143
  msgid "Select user roles restricted to manage widgets."
144
  msgstr ""
145
 
146
+ #: ../restrict-widgets.php:691
147
  msgid "Restrict Sidebars"
148
  msgstr ""
149
 
150
+ #: ../restrict-widgets.php:707
151
  msgid "Select which sidebars will be restricted to admins only."
152
  msgstr ""
153
 
154
+ #: ../restrict-widgets.php:711
155
  msgid "Restrict Widgets"
156
  msgstr ""
157
 
158
+ #: ../restrict-widgets.php:724
159
  msgid "Select which widgets will be restricted to admins only."
160
  msgstr ""
161
 
162
+ #: ../restrict-widgets.php:728
163
  msgid "Restrict Widget Options"
164
  msgstr ""
165
 
166
+ #: ../restrict-widgets.php:738
167
  msgid "Select which widget options will be restricted to admins only."
168
  msgstr ""
169
 
170
+ #: ../restrict-widgets.php:742
171
  msgid "Restrict Option Groups"
172
  msgstr ""
173
 
174
+ #: ../restrict-widgets.php:745
175
  msgid "Display widget options in groups"
176
  msgstr ""
177
 
178
+ #: ../restrict-widgets.php:749
179
  msgid "Modify is_active_sidebar()"
180
  msgstr ""
181
 
182
+ #: ../restrict-widgets.php:752
183
  msgid ""
184
  "By default is_active_sidebar() function returns TRUE even if no widget is "
185
  "displayed in a sidebar. Check this if you want is_active_sidebar() to "
186
  "recognize Restrict Widgets display settings."
187
  msgstr ""
188
 
189
+ #: ../restrict-widgets.php:756
190
  msgid "Plugin Deactivation"
191
  msgstr ""
192
 
193
+ #: ../restrict-widgets.php:759
194
  msgid "Remove all plugin data on deactivation"
195
  msgstr ""
196
 
197
+ #: ../restrict-widgets.php:763
198
  msgid "Save settings"
199
  msgstr ""
200
 
201
+ #: ../restrict-widgets.php:938 ../restrict-widgets.php:949
202
  #, php-format
203
  msgid "Single %s"
204
  msgstr ""
205
 
206
+ #: ../restrict-widgets.php:976 ../restrict-widgets.php:987
207
  #, php-format
208
  msgid "%s Archive"
209
  msgstr ""
210
 
211
+ #: ../restrict-widgets.php:1286
212
  msgid "Display / Hide Widget"
213
  msgstr ""
214
 
215
+ #: ../restrict-widgets.php:1288
216
  msgid "Display widget on selected"
217
  msgstr ""
218
 
219
+ #: ../restrict-widgets.php:1289
220
  msgid "Hide widget on selected"
221
  msgstr ""
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  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.8
7
- Stable tag: 1.2.3
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.3 =
60
  * Fix: Language options not accessible for WPML and Polylang
61
 
@@ -102,5 +106,6 @@ Initial release
102
 
103
  == Upgrade Notice ==
104
 
105
- = 1.2.3 =
106
- * Fix: Language options not accessible
 
2
  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.8
6
+ Tested up to: 4.0
7
+ Stable tag: 1.2.4
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
56
 
57
  == Changelog ==
58
 
59
+ = 1.2.4 =
60
+ * Tweak: Widget options interface adjustments
61
+ * Tweak: Confirmed WP 4.0 compatibility
62
+
63
  = 1.2.3 =
64
  * Fix: Language options not accessible for WPML and Polylang
65
 
106
 
107
  == Upgrade Notice ==
108
 
109
+ = 1.2.4 =
110
+ * Tweak: Widget options interface adjustments
111
+ * Tweak: Confirmed WP 4.0 compatibility
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.3
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/restrict-widgets/
@@ -663,100 +663,95 @@ class 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>
678
- <td>
679
- <select name="options-widgets-roles[]" id="options-widgets-roles" multiple="multiple">';
680
-
681
- foreach($wp_roles->roles as $role_name => $role_array)
682
- {
683
- echo '<option value="'.$role_name.'" '.selected((in_array('manage_widgets', array_keys($role_array['capabilities']), TRUE) ? TRUE : FALSE), TRUE, FALSE).' '.disabled(($role_name === 'administrator' ? TRUE : FALSE), TRUE, FALSE).'>'.$role_array['name'].'</option>';
684
- }
685
-
686
- echo ' </select>
687
- <p class="description">'.__('Select user roles restricted to manage widgets.', 'restrict-widgets').'</p>
688
- </td>
689
- </tr>
690
- <tr>
691
- <td class="label"><label>'.__('Restrict Sidebars', 'restrict-widgets').'</label></td>
692
- <td>
693
- <select name="options-widgets-sidebars[]" id="options-widgets-sidebars" multiple="multiple">';
694
 
695
- foreach($wp_registered_sidebars as $sidebar)
696
- {
697
- if($sidebar['id'] !== 'wp_inactive_widgets')
698
- {
699
- if(isset($option['sidebars'][$sidebar['id']]) === FALSE)
700
- $option['sidebars'][$sidebar['id']] = FALSE;
701
 
702
- echo '<option value="'.$sidebar['id'].'" '.selected($option['sidebars'][$sidebar['id']], TRUE, FALSE).'>'.$sidebar['name'].'</option>';
703
- }
704
- }
 
 
 
 
705
 
706
- echo ' </select>
707
- <p class="description">'.__('Select which sidebars will be restricted to admins only.', 'restrict-widgets').'</p>
708
- </td>
709
- </tr>
710
- <tr>
711
- <td class="label"><label>'.__('Restrict Widgets', 'restrict-widgets').'</label></td>
712
- <td>
713
- <select name="options-available-widgets[]" id="options-available-widgets" multiple="multiple">';
714
 
715
- foreach(array_unique($widgets_unique) as $widget_class => $widget_name)
716
- {
717
- if(isset($option['available'][$widget_class]) === FALSE)
718
- $option['available'][$widget_class] = FALSE;
 
 
 
 
 
 
719
 
720
- echo '<option value="'.$widget_class.'" '.selected($option['available'][$widget_class], TRUE, FALSE).'>'.$widget_name.'</option>';
721
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
722
 
723
- echo ' </select>
724
- <p class="description">'.__('Select which widgets will be restricted to admins only.', 'restrict-widgets').'</p>
725
- </td>
726
- </tr>
727
- <tr>
728
- <td class="label"><label>'.__('Restrict Widget Options', 'restrict-widgets').'</label></td>
729
- <td>
730
- <select name="options-widgets-selection[]" id="options-widgets-selection" multiple="multiple">';
731
 
732
- foreach($this->options as $group_name => $value)
733
- {
734
- echo $this->getSelectionGroup($group_name, 'option', '', '', $option);
735
- }
736
 
737
- echo ' </select>
 
738
  <p class="description">'.__('Select which widget options will be restricted to admins only.', 'restrict-widgets').'</p>
739
- </td>
740
- </tr>
741
  <tr>
742
  <td class="label"><label>'.__('Restrict Option Groups', 'restrict-widgets').'</label></td>
743
  <td>
 
744
  <input type="checkbox" name="options-widgets-groups" id="options-widgets-groups" value="1" '.checked($option['groups'], TRUE, FALSE).' />
745
- <label for="options-widgets-groups" class="description">'.__('Display widget options in groups', 'restrict-widgets').'</label>
746
  </td>
747
  </tr>
748
  <tr>
749
  <td class="label"><label>'.__('Modify is_active_sidebar()', 'restrict-widgets').'</label></td>
750
  <td>
 
751
  <input type="checkbox" name="options-widgets-sidebar" id="options-widgets-sidebar" value="1" '.checked($option['sidebar'], TRUE, FALSE).' />
752
- <label for="options-widgets-sidebar" class="description">'.__('By default is_active_sidebar() function returns TRUE even if no widget is displayed in a sidebar. Check this if you want is_active_sidebar() to recognize Restrict Widgets display settings.', 'restrict-widgets').'</label>
753
  </td>
754
  </tr>
755
  <tr>
756
  <td class="label"><label>'.__('Plugin Deactivation', 'restrict-widgets').'</label></td>
757
  <td>
 
758
  <input type="checkbox" name="options-widgets-deactivation" id="options-widgets-deactivation" value="1" '.checked($option['deactivation'], TRUE, FALSE).' />
759
- <label for="options-widgets-deactivation" class="description">'.__('Remove all plugin data on deactivation', 'restrict-widgets').'</label>
760
  </td>
761
  </tr>
762
  </table>
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.4
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 widgets-holder-wrap">
667
+ <div class="widgets-sortables">
668
  <div class="sidebar-name">
669
  <h3>'.__('Restrict widgets').'</h3>
670
  </div>
 
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
 
676
+ <label class="label">'.__('Restrict Users', 'restrict-widgets').'</label><br />
677
+ <select name="options-widgets-roles[]" id="options-widgets-roles" multiple="multiple">';
 
 
 
 
678
 
679
+ foreach($wp_roles->roles as $role_name => $role_array)
680
+ {
681
+ echo '<option value="'.$role_name.'" '.selected((in_array('manage_widgets', array_keys($role_array['capabilities']), TRUE) ? TRUE : FALSE), TRUE, FALSE).' '.disabled(($role_name === 'administrator' ? TRUE : FALSE), TRUE, FALSE).'>'.$role_array['name'].'</option>';
682
+ }
683
+
684
+ echo '
685
+ </select>
686
 
687
+ <label class="label">'.__('Restrict Sidebars', 'restrict-widgets').'</label><br />
688
+ <select name="options-widgets-sidebars[]" id="options-widgets-sidebars" multiple="multiple">';
 
 
 
 
 
 
689
 
690
+ foreach($wp_registered_sidebars as $sidebar)
691
+ {
692
+ if($sidebar['id'] !== 'wp_inactive_widgets')
693
+ {
694
+ if(isset($option['sidebars'][$sidebar['id']]) === FALSE)
695
+ $option['sidebars'][$sidebar['id']] = FALSE;
696
+
697
+ echo '<option value="'.$sidebar['id'].'" '.selected($option['sidebars'][$sidebar['id']], TRUE, FALSE).'>'.$sidebar['name'].'</option>';
698
+ }
699
+ }
700
 
701
+ echo '
702
+ </select>
703
+ <p class="description">'.__('Select which sidebars will be restricted to admins only.', 'restrict-widgets').'</p>';
704
+
705
+ echo '
706
+ <label class="label">'.__('Restrict Widgets', 'restrict-widgets').'</label><br />
707
+ <select name="options-available-widgets[]" id="options-available-widgets" multiple="multiple">';
708
+
709
+ foreach(array_unique($widgets_unique) as $widget_class => $widget_name)
710
+ {
711
+ if(isset($option['available'][$widget_class]) === FALSE)
712
+ $option['available'][$widget_class] = FALSE;
713
+
714
+ echo '<option value="'.$widget_class.'" '.selected($option['available'][$widget_class], TRUE, FALSE).'>'.$widget_name.'</option>';
715
+ }
716
 
717
+ echo '
718
+ </select>
719
+ <p class="description">'.__('Select which widgets will be restricted to admins only.', 'restrict-widgets').'</p>
720
+
721
+ <label class="label">'.__('Restrict Widget Options', 'restrict-widgets').'</label><br />
722
+ <select name="options-widgets-selection[]" id="options-widgets-selection" multiple="multiple">';
 
 
723
 
724
+ foreach($this->options as $group_name => $value)
725
+ {
726
+ echo $this->getSelectionGroup($group_name, 'option', '', '', $option);
727
+ }
728
 
729
+ echo '
730
+ </select>
731
  <p class="description">'.__('Select which widget options will be restricted to admins only.', 'restrict-widgets').'</p>
732
+ <table>
 
733
  <tr>
734
  <td class="label"><label>'.__('Restrict Option Groups', 'restrict-widgets').'</label></td>
735
  <td>
736
+ <label for="options-widgets-groups">
737
  <input type="checkbox" name="options-widgets-groups" id="options-widgets-groups" value="1" '.checked($option['groups'], TRUE, FALSE).' />
738
+ '.__('Display widget options in groups', 'restrict-widgets').'</label>
739
  </td>
740
  </tr>
741
  <tr>
742
  <td class="label"><label>'.__('Modify is_active_sidebar()', 'restrict-widgets').'</label></td>
743
  <td>
744
+ <label for="options-widgets-sidebar">
745
  <input type="checkbox" name="options-widgets-sidebar" id="options-widgets-sidebar" value="1" '.checked($option['sidebar'], TRUE, FALSE).' />
746
+ '.__('By default is_active_sidebar() function returns TRUE even if no widget is displayed in a sidebar. Check this if you want is_active_sidebar() to recognize Restrict Widgets display settings.', 'restrict-widgets').'</label>
747
  </td>
748
  </tr>
749
  <tr>
750
  <td class="label"><label>'.__('Plugin Deactivation', 'restrict-widgets').'</label></td>
751
  <td>
752
+ <label for="options-widgets-deactivation">
753
  <input type="checkbox" name="options-widgets-deactivation" id="options-widgets-deactivation" value="1" '.checked($option['deactivation'], TRUE, FALSE).' />
754
+ '.__('Remove all plugin data on deactivation', 'restrict-widgets').'</label>
755
  </td>
756
  </tr>
757
  </table>