Version Description
- Tweak: Widget options interface adjustments
- Tweak: Confirmed WP 4.0 compatibility
Download this release
Release Info
Developer | dfactory |
Plugin | 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 +17 -27
- languages/restrict-widgets-cs_CZ.mo +0 -0
- languages/restrict-widgets-cs_CZ.po +332 -269
- languages/restrict-widgets.pot +29 -29
- readme.txt +10 -5
- restrict-widgets.php +58 -63
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 |
-
|
|
|
|
|
|
|
78 |
}
|
79 |
-
#widgets-options .
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
border-bottom-left-radius: 3px;
|
86 |
-
background-color: #FCFCFC;
|
87 |
-
border-color: #DFDFDF;
|
88 |
-
padding: 10px;
|
89 |
}
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
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
|
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.
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2013-
|
6 |
-
"PO-Revision-Date:
|
7 |
-
"Last-Translator:
|
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.
|
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:
|
24 |
-
#@ restrict-widgets
|
25 |
-
msgid "Support"
|
26 |
-
msgstr "Podpora"
|
27 |
-
|
28 |
-
#: restrict-widgets.php:
|
29 |
-
#: restrict-widgets.php:
|
30 |
-
|
31 |
-
#@
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
#: restrict-widgets.php:
|
192 |
-
#@ restrict-widgets
|
193 |
-
msgid "
|
194 |
-
msgstr "
|
195 |
-
|
196 |
-
#: restrict-widgets.php:
|
197 |
-
#@ restrict-widgets
|
198 |
-
msgid "
|
199 |
-
msgstr "
|
200 |
-
|
201 |
-
#: restrict-widgets.php:
|
202 |
-
#@ restrict-widgets
|
203 |
-
msgid "
|
204 |
-
msgstr "
|
205 |
-
|
206 |
-
#: restrict-widgets.php:
|
207 |
-
#@ restrict-widgets
|
208 |
-
msgid "
|
209 |
-
msgstr "
|
210 |
-
|
211 |
-
#: restrict-widgets.php:
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
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:
|
5 |
-
"PO-Revision-Date:
|
6 |
-
"Last-Translator: Bartosz Arendt <info@
|
7 |
"Language-Team: dFactory <info@dfactory.eu>\n"
|
8 |
-
"Language:
|
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.
|
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:
|
23 |
-
#: ../restrict-widgets.php:
|
24 |
msgid "Widgets"
|
25 |
msgstr ""
|
26 |
|
@@ -124,98 +124,98 @@ msgstr ""
|
|
124 |
msgid "Desktop, Laptop, etc."
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: ../restrict-widgets.php:
|
128 |
msgid "Restrict widgets"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: ../restrict-widgets.php:
|
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:
|
139 |
msgid "Restrict Users"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: ../restrict-widgets.php:
|
143 |
msgid "Select user roles restricted to manage widgets."
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: ../restrict-widgets.php:
|
147 |
msgid "Restrict Sidebars"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: ../restrict-widgets.php:
|
151 |
msgid "Select which sidebars will be restricted to admins only."
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: ../restrict-widgets.php:
|
155 |
msgid "Restrict Widgets"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: ../restrict-widgets.php:
|
159 |
msgid "Select which widgets will be restricted to admins only."
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: ../restrict-widgets.php:
|
163 |
msgid "Restrict Widget Options"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: ../restrict-widgets.php:
|
167 |
msgid "Select which widget options will be restricted to admins only."
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: ../restrict-widgets.php:
|
171 |
msgid "Restrict Option Groups"
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: ../restrict-widgets.php:
|
175 |
msgid "Display widget options in groups"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: ../restrict-widgets.php:
|
179 |
msgid "Modify is_active_sidebar()"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: ../restrict-widgets.php:
|
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:
|
190 |
msgid "Plugin Deactivation"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: ../restrict-widgets.php:
|
194 |
msgid "Remove all plugin data on deactivation"
|
195 |
msgstr ""
|
196 |
|
197 |
-
#: ../restrict-widgets.php:
|
198 |
msgid "Save settings"
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: ../restrict-widgets.php:
|
202 |
#, php-format
|
203 |
msgid "Single %s"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: ../restrict-widgets.php:
|
207 |
#, php-format
|
208 |
msgid "%s Archive"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: ../restrict-widgets.php:
|
212 |
msgid "Display / Hide Widget"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: ../restrict-widgets.php:
|
216 |
msgid "Display widget on selected"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: ../restrict-widgets.php:
|
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.
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 1.2.
|
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.
|
106 |
-
*
|
|
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.
|
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 |
-
|
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 |
-
|
703 |
-
|
704 |
-
|
|
|
|
|
|
|
|
|
705 |
|
706 |
-
|
707 |
-
|
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 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
719 |
|
720 |
-
|
721 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
722 |
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
<
|
728 |
-
|
729 |
-
<td>
|
730 |
-
<select name="options-widgets-selection[]" id="options-widgets-selection" multiple="multiple">';
|
731 |
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
|
737 |
-
|
|
|
738 |
<p class="description">'.__('Select which widget options will be restricted to admins only.', 'restrict-widgets').'</p>
|
739 |
-
|
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 |
-
|
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 |
-
|
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 |
-
|
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>
|