Version Description
- New: Option to modify the is_active_sidebar() function to use Restrict Widgets display settings
- Fix: Compatibility fix for WordPress 3.6
Download this release
Release Info
Developer | dfactory |
Plugin | Restrict Widgets |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- languages/restrict-widgets-pl_PL.mo +0 -0
- languages/restrict-widgets-pl_PL.po +62 -48
- languages/restrict-widgets-zh_CN.mo +0 -0
- languages/restrict-widgets-zh_CN.po +468 -0
- languages/restrict-widgets.pot +55 -48
- readme.txt +11 -6
- restrict-widgets.php +107 -72
languages/restrict-widgets-pl_PL.mo
CHANGED
Binary file
|
languages/restrict-widgets-pl_PL.po
CHANGED
@@ -1,106 +1,106 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Restrict Widgets\n"
|
4 |
-
"POT-Creation-Date: 2013-04
|
5 |
-
"PO-Revision-Date: 2013-04
|
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.
|
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:
|
19 |
msgid "Support"
|
20 |
msgstr "Forum pomocy"
|
21 |
|
22 |
-
#: ../restrict-widgets.php:
|
23 |
-
#: ../restrict-widgets.php:
|
24 |
msgid "Widgets"
|
25 |
msgstr "Widgety"
|
26 |
|
27 |
-
#: ../restrict-widgets.php:
|
28 |
msgid "Pages"
|
29 |
msgstr "Strony"
|
30 |
|
31 |
-
#: ../restrict-widgets.php:
|
32 |
msgid "Custom Post Types"
|
33 |
msgstr "Własne typy wpisów"
|
34 |
|
35 |
-
#: ../restrict-widgets.php:
|
36 |
msgid "Custom Post Type Archives"
|
37 |
msgstr "Archiwa własnych typów wpisów"
|
38 |
|
39 |
-
#: ../restrict-widgets.php:
|
40 |
msgid "Categories"
|
41 |
msgstr "Kategorie"
|
42 |
|
43 |
-
#: ../restrict-widgets.php:
|
44 |
msgid "Taxonomies"
|
45 |
msgstr "Taksonomie"
|
46 |
|
47 |
-
#: ../restrict-widgets.php:
|
48 |
msgid "Others"
|
49 |
msgstr "Inne"
|
50 |
|
51 |
-
#: ../restrict-widgets.php:
|
52 |
msgid "Users"
|
53 |
msgstr "Użytkownicy"
|
54 |
|
55 |
-
#: ../restrict-widgets.php:
|
56 |
msgid "Languages"
|
57 |
msgstr "Języki"
|
58 |
|
59 |
-
#: ../restrict-widgets.php:
|
60 |
msgid "Front Page"
|
61 |
msgstr "Strona główna"
|
62 |
|
63 |
-
#: ../restrict-widgets.php:
|
64 |
msgid "Blog Page"
|
65 |
msgstr "Strona z wpisami"
|
66 |
|
67 |
-
#: ../restrict-widgets.php:
|
68 |
msgid "Single Posts"
|
69 |
msgstr "Pojedyncze wpisy"
|
70 |
|
71 |
-
#: ../restrict-widgets.php:
|
72 |
msgid "Sticky Posts"
|
73 |
msgstr "Wpisy przyklejone"
|
74 |
|
75 |
-
#: ../restrict-widgets.php:
|
76 |
msgid "Author Archive"
|
77 |
msgstr "Archiwum autora"
|
78 |
|
79 |
-
#: ../restrict-widgets.php:
|
80 |
msgid "Date Archive"
|
81 |
msgstr "Archiwum daty"
|
82 |
|
83 |
-
#: ../restrict-widgets.php:
|
84 |
msgid "404 Page"
|
85 |
msgstr "Strona błędów 404"
|
86 |
|
87 |
-
#: ../restrict-widgets.php:
|
88 |
msgid "Search Page"
|
89 |
msgstr "Strona wyszukiwania"
|
90 |
|
91 |
-
#: ../restrict-widgets.php:
|
92 |
msgid "Logged in users"
|
93 |
msgstr "Zalogowani użytkownicy"
|
94 |
|
95 |
-
#: ../restrict-widgets.php:
|
96 |
msgid "Logged out users"
|
97 |
msgstr "Wylogowani użytkownicy"
|
98 |
|
99 |
-
#: ../restrict-widgets.php:
|
100 |
msgid "Restrict widgets"
|
101 |
msgstr "Ograniczenia widgetów"
|
102 |
|
103 |
-
#: ../restrict-widgets.php:
|
104 |
msgid ""
|
105 |
"Use this settings to manage access to widgets page and to restrict "
|
106 |
"availability of certain widgets, sidebars and widgets options to site "
|
@@ -110,80 +110,94 @@ msgstr ""
|
|
110 |
"widgety, panele boczne i ustawienia widgetów są dostępne dla użytkowników a "
|
111 |
"jakie tylko dla administratorów."
|
112 |
|
113 |
-
#: ../restrict-widgets.php:
|
114 |
msgid "Restrict Users"
|
115 |
msgstr "Ograniczenia użytkowników"
|
116 |
|
117 |
-
#: ../restrict-widgets.php:
|
118 |
msgid "Select user roles restricted to manage widgets."
|
119 |
msgstr "Wybierz role użytkowników, którzy mogą zarządzać widgetami."
|
120 |
|
121 |
-
#: ../restrict-widgets.php:
|
122 |
msgid "Restrict Sidebars"
|
123 |
msgstr "Ograniczenia paneli bocznych"
|
124 |
|
125 |
-
#: ../restrict-widgets.php:
|
126 |
msgid "Select which sidebars will be restricted to admins only."
|
127 |
msgstr "Wybierz panele boczne, które będą dostępne tylko dla administratorów."
|
128 |
|
129 |
-
#: ../restrict-widgets.php:
|
130 |
msgid "Restrict Widgets"
|
131 |
msgstr "Ograniczenia widgetów"
|
132 |
|
133 |
-
#: ../restrict-widgets.php:
|
134 |
msgid "Select which widgets will be restricted to admins only."
|
135 |
msgstr "Wybierz widgety, któe będą dostępne tylko dla administratorów."
|
136 |
|
137 |
-
#: ../restrict-widgets.php:
|
138 |
msgid "Restrict Widget Options"
|
139 |
msgstr "Ograniczenia opcji widgetów"
|
140 |
|
141 |
-
#: ../restrict-widgets.php:
|
142 |
msgid "Select which widget options will be restricted to admins only."
|
143 |
msgstr "Wybierz które opcje widgetów, będą dostępne tylko dla administratorów."
|
144 |
|
145 |
-
#: ../restrict-widgets.php:
|
146 |
msgid "Restrict Option Groups"
|
147 |
msgstr "Ograniczenia grup opcji"
|
148 |
|
149 |
-
#: ../restrict-widgets.php:
|
150 |
msgid "Display widget options in groups"
|
151 |
msgstr "Wyświetl opcje widgetów w grupach"
|
152 |
|
153 |
-
#: ../restrict-widgets.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
msgid "Plugin Deactivation"
|
155 |
msgstr "Deaktywacja wtyczki"
|
156 |
|
157 |
-
#: ../restrict-widgets.php:
|
158 |
msgid "Remove all plugin data on deactivation"
|
159 |
msgstr "Usuń wszystkie dane wtyczki podczas deaktywacji"
|
160 |
|
161 |
-
#: ../restrict-widgets.php:
|
162 |
msgid "Save settings"
|
163 |
msgstr "Zapisz ustawienia"
|
164 |
|
165 |
-
#: ../restrict-widgets.php:
|
166 |
-
msgid "Created by"
|
167 |
-
msgstr "Stworzone przez"
|
168 |
-
|
169 |
-
#: ../restrict-widgets.php:757 ../restrict-widgets.php:767
|
170 |
#, php-format
|
171 |
msgid "Single %s"
|
172 |
msgstr "Pojedyncze %s"
|
173 |
|
174 |
-
#: ../restrict-widgets.php:
|
175 |
#, php-format
|
176 |
msgid "%s Archive"
|
177 |
msgstr "Archiwum %s"
|
178 |
|
179 |
-
#: ../restrict-widgets.php:
|
180 |
msgid "Display / Hide Widget"
|
181 |
msgstr "Wyświetl / Ukryj widget"
|
182 |
|
183 |
-
#: ../restrict-widgets.php:
|
184 |
msgid "Display widget on selected"
|
185 |
msgstr "Wyświetl widget na wybranych stronach"
|
186 |
|
187 |
-
#: ../restrict-widgets.php:
|
188 |
msgid "Hide widget on selected"
|
189 |
msgstr "Ukryj widget na wybranych stronach"
|
|
|
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Restrict Widgets\n"
|
4 |
+
"POT-Creation-Date: 2013-09-04 09:23+0100\n"
|
5 |
+
"PO-Revision-Date: 2013-09-04 09:23+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:175
|
19 |
msgid "Support"
|
20 |
msgstr "Forum pomocy"
|
21 |
|
22 |
+
#: ../restrict-widgets.php:197 ../restrict-widgets.php:1475
|
23 |
+
#: ../restrict-widgets.php:1520
|
24 |
msgid "Widgets"
|
25 |
msgstr "Widgety"
|
26 |
|
27 |
+
#: ../restrict-widgets.php:333
|
28 |
msgid "Pages"
|
29 |
msgstr "Strony"
|
30 |
|
31 |
+
#: ../restrict-widgets.php:334
|
32 |
msgid "Custom Post Types"
|
33 |
msgstr "Własne typy wpisów"
|
34 |
|
35 |
+
#: ../restrict-widgets.php:335
|
36 |
msgid "Custom Post Type Archives"
|
37 |
msgstr "Archiwa własnych typów wpisów"
|
38 |
|
39 |
+
#: ../restrict-widgets.php:336
|
40 |
msgid "Categories"
|
41 |
msgstr "Kategorie"
|
42 |
|
43 |
+
#: ../restrict-widgets.php:337
|
44 |
msgid "Taxonomies"
|
45 |
msgstr "Taksonomie"
|
46 |
|
47 |
+
#: ../restrict-widgets.php:338
|
48 |
msgid "Others"
|
49 |
msgstr "Inne"
|
50 |
|
51 |
+
#: ../restrict-widgets.php:339
|
52 |
msgid "Users"
|
53 |
msgstr "Użytkownicy"
|
54 |
|
55 |
+
#: ../restrict-widgets.php:340
|
56 |
msgid "Languages"
|
57 |
msgstr "Języki"
|
58 |
|
59 |
+
#: ../restrict-widgets.php:344
|
60 |
msgid "Front Page"
|
61 |
msgstr "Strona główna"
|
62 |
|
63 |
+
#: ../restrict-widgets.php:345
|
64 |
msgid "Blog Page"
|
65 |
msgstr "Strona z wpisami"
|
66 |
|
67 |
+
#: ../restrict-widgets.php:346
|
68 |
msgid "Single Posts"
|
69 |
msgstr "Pojedyncze wpisy"
|
70 |
|
71 |
+
#: ../restrict-widgets.php:347
|
72 |
msgid "Sticky Posts"
|
73 |
msgstr "Wpisy przyklejone"
|
74 |
|
75 |
+
#: ../restrict-widgets.php:348
|
76 |
msgid "Author Archive"
|
77 |
msgstr "Archiwum autora"
|
78 |
|
79 |
+
#: ../restrict-widgets.php:349
|
80 |
msgid "Date Archive"
|
81 |
msgstr "Archiwum daty"
|
82 |
|
83 |
+
#: ../restrict-widgets.php:350
|
84 |
msgid "404 Page"
|
85 |
msgstr "Strona błędów 404"
|
86 |
|
87 |
+
#: ../restrict-widgets.php:351
|
88 |
msgid "Search Page"
|
89 |
msgstr "Strona wyszukiwania"
|
90 |
|
91 |
+
#: ../restrict-widgets.php:355
|
92 |
msgid "Logged in users"
|
93 |
msgstr "Zalogowani użytkownicy"
|
94 |
|
95 |
+
#: ../restrict-widgets.php:356
|
96 |
msgid "Logged out users"
|
97 |
msgstr "Wylogowani użytkownicy"
|
98 |
|
99 |
+
#: ../restrict-widgets.php:579
|
100 |
msgid "Restrict widgets"
|
101 |
msgstr "Ograniczenia widgetów"
|
102 |
|
103 |
+
#: ../restrict-widgets.php:583
|
104 |
msgid ""
|
105 |
"Use this settings to manage access to widgets page and to restrict "
|
106 |
"availability of certain widgets, sidebars and widgets options to site "
|
110 |
"widgety, panele boczne i ustawienia widgetów są dostępne dla użytkowników a "
|
111 |
"jakie tylko dla administratorów."
|
112 |
|
113 |
+
#: ../restrict-widgets.php:586
|
114 |
msgid "Restrict Users"
|
115 |
msgstr "Ograniczenia użytkowników"
|
116 |
|
117 |
+
#: ../restrict-widgets.php:596
|
118 |
msgid "Select user roles restricted to manage widgets."
|
119 |
msgstr "Wybierz role użytkowników, którzy mogą zarządzać widgetami."
|
120 |
|
121 |
+
#: ../restrict-widgets.php:600
|
122 |
msgid "Restrict Sidebars"
|
123 |
msgstr "Ograniczenia paneli bocznych"
|
124 |
|
125 |
+
#: ../restrict-widgets.php:615
|
126 |
msgid "Select which sidebars will be restricted to admins only."
|
127 |
msgstr "Wybierz panele boczne, które będą dostępne tylko dla administratorów."
|
128 |
|
129 |
+
#: ../restrict-widgets.php:619
|
130 |
msgid "Restrict Widgets"
|
131 |
msgstr "Ograniczenia widgetów"
|
132 |
|
133 |
+
#: ../restrict-widgets.php:631
|
134 |
msgid "Select which widgets will be restricted to admins only."
|
135 |
msgstr "Wybierz widgety, któe będą dostępne tylko dla administratorów."
|
136 |
|
137 |
+
#: ../restrict-widgets.php:635
|
138 |
msgid "Restrict Widget Options"
|
139 |
msgstr "Ograniczenia opcji widgetów"
|
140 |
|
141 |
+
#: ../restrict-widgets.php:645
|
142 |
msgid "Select which widget options will be restricted to admins only."
|
143 |
msgstr "Wybierz które opcje widgetów, będą dostępne tylko dla administratorów."
|
144 |
|
145 |
+
#: ../restrict-widgets.php:649
|
146 |
msgid "Restrict Option Groups"
|
147 |
msgstr "Ograniczenia grup opcji"
|
148 |
|
149 |
+
#: ../restrict-widgets.php:652
|
150 |
msgid "Display widget options in groups"
|
151 |
msgstr "Wyświetl opcje widgetów w grupach"
|
152 |
|
153 |
+
#: ../restrict-widgets.php:656
|
154 |
+
msgid "Modify is_active_sidebar()"
|
155 |
+
msgstr "Modyfikuj is_active_sidebar()"
|
156 |
+
|
157 |
+
#: ../restrict-widgets.php:659
|
158 |
+
msgid ""
|
159 |
+
"By default is_active_sidebar() function returns TRUE even if no widget is "
|
160 |
+
"displayed in a sidebar. Check this if you want is_active_sidebar() to "
|
161 |
+
"recognize Restrict Widgets display settings."
|
162 |
+
msgstr ""
|
163 |
+
"Domyślnie funkcja is_active_sidebar() zwraca TRUE navet jeśli w danym "
|
164 |
+
"sidebarze nie jest wyświetlany żaden widget. Zaznacz to, jeśli chcesz aby "
|
165 |
+
"is_active_sidebar() rozpoznawało ustawienia wyświetlania dodawane przez tę "
|
166 |
+
"wtyczkę."
|
167 |
+
|
168 |
+
#: ../restrict-widgets.php:663
|
169 |
msgid "Plugin Deactivation"
|
170 |
msgstr "Deaktywacja wtyczki"
|
171 |
|
172 |
+
#: ../restrict-widgets.php:666
|
173 |
msgid "Remove all plugin data on deactivation"
|
174 |
msgstr "Usuń wszystkie dane wtyczki podczas deaktywacji"
|
175 |
|
176 |
+
#: ../restrict-widgets.php:670
|
177 |
msgid "Save settings"
|
178 |
msgstr "Zapisz ustawienia"
|
179 |
|
180 |
+
#: ../restrict-widgets.php:844 ../restrict-widgets.php:854
|
|
|
|
|
|
|
|
|
181 |
#, php-format
|
182 |
msgid "Single %s"
|
183 |
msgstr "Pojedyncze %s"
|
184 |
|
185 |
+
#: ../restrict-widgets.php:884 ../restrict-widgets.php:894
|
186 |
#, php-format
|
187 |
msgid "%s Archive"
|
188 |
msgstr "Archiwum %s"
|
189 |
|
190 |
+
#: ../restrict-widgets.php:1125
|
191 |
msgid "Display / Hide Widget"
|
192 |
msgstr "Wyświetl / Ukryj widget"
|
193 |
|
194 |
+
#: ../restrict-widgets.php:1127
|
195 |
msgid "Display widget on selected"
|
196 |
msgstr "Wyświetl widget na wybranych stronach"
|
197 |
|
198 |
+
#: ../restrict-widgets.php:1128
|
199 |
msgid "Hide widget on selected"
|
200 |
msgstr "Ukryj widget na wybranych stronach"
|
201 |
+
|
202 |
+
#~ msgid "Created by"
|
203 |
+
#~ msgstr "Stworzone przez"
|
languages/restrict-widgets-zh_CN.mo
ADDED
Binary file
|
languages/restrict-widgets-zh_CN.po
ADDED
@@ -0,0 +1,468 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: restrict-widgets-zh_CN\n"
|
4 |
+
"POT-Creation-Date: 2013-06-18 08:22+0800\n"
|
5 |
+
"PO-Revision-Date: \n"
|
6 |
+
"Last-Translator: 倡萌@WordPress大学 <admin@cmhello.com>\n"
|
7 |
+
"Language-Team: 倡萌@WordPress大学 <admin@cmhello.com>\n"
|
8 |
+
"Language: zh_CN\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.5\n"
|
13 |
+
"Plural-Forms: nplurals=2; plural=(n!=1);\n"
|
14 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c\n"
|
16 |
+
"X-Poedit-Basepath: .\n"
|
17 |
+
"X-Poedit-SearchPath-0: ..\n"
|
18 |
+
|
19 |
+
#: ../restrict-widgets.php:103
|
20 |
+
msgid "Support"
|
21 |
+
msgstr "支持"
|
22 |
+
|
23 |
+
#: ../restrict-widgets.php:125 ../restrict-widgets.php:1436
|
24 |
+
#: ../restrict-widgets.php:1481
|
25 |
+
msgid "Widgets"
|
26 |
+
msgstr "小工具"
|
27 |
+
|
28 |
+
#: ../restrict-widgets.php:261
|
29 |
+
msgid "Pages"
|
30 |
+
msgstr "页面"
|
31 |
+
|
32 |
+
#: ../restrict-widgets.php:262
|
33 |
+
msgid "Custom Post Types"
|
34 |
+
msgstr "自定义文章类型"
|
35 |
+
|
36 |
+
#: ../restrict-widgets.php:263
|
37 |
+
msgid "Custom Post Type Archives"
|
38 |
+
msgstr "自定义文章类型存档页"
|
39 |
+
|
40 |
+
#: ../restrict-widgets.php:264
|
41 |
+
msgid "Categories"
|
42 |
+
msgstr "分类"
|
43 |
+
|
44 |
+
#: ../restrict-widgets.php:265
|
45 |
+
msgid "Taxonomies"
|
46 |
+
msgstr "分类法"
|
47 |
+
|
48 |
+
#: ../restrict-widgets.php:266
|
49 |
+
msgid "Others"
|
50 |
+
msgstr "其他"
|
51 |
+
|
52 |
+
#: ../restrict-widgets.php:267
|
53 |
+
msgid "Users"
|
54 |
+
msgstr "用户"
|
55 |
+
|
56 |
+
#: ../restrict-widgets.php:268
|
57 |
+
msgid "Languages"
|
58 |
+
msgstr "语言"
|
59 |
+
|
60 |
+
#: ../restrict-widgets.php:272
|
61 |
+
msgid "Front Page"
|
62 |
+
msgstr "主页"
|
63 |
+
|
64 |
+
#: ../restrict-widgets.php:273
|
65 |
+
msgid "Blog Page"
|
66 |
+
msgstr "博客页面"
|
67 |
+
|
68 |
+
#: ../restrict-widgets.php:274
|
69 |
+
msgid "Single Posts"
|
70 |
+
msgstr "所有文章"
|
71 |
+
|
72 |
+
#: ../restrict-widgets.php:275
|
73 |
+
msgid "Sticky Posts"
|
74 |
+
msgstr "置顶文章"
|
75 |
+
|
76 |
+
#: ../restrict-widgets.php:276
|
77 |
+
msgid "Author Archive"
|
78 |
+
msgstr "作者存档页"
|
79 |
+
|
80 |
+
#: ../restrict-widgets.php:277
|
81 |
+
msgid "Date Archive"
|
82 |
+
msgstr "日期存档页"
|
83 |
+
|
84 |
+
#: ../restrict-widgets.php:278
|
85 |
+
msgid "404 Page"
|
86 |
+
msgstr "404页面"
|
87 |
+
|
88 |
+
#: ../restrict-widgets.php:279
|
89 |
+
msgid "Search Page"
|
90 |
+
msgstr "搜索结果页面"
|
91 |
+
|
92 |
+
#: ../restrict-widgets.php:283
|
93 |
+
msgid "Logged in users"
|
94 |
+
msgstr "已登录用户"
|
95 |
+
|
96 |
+
#: ../restrict-widgets.php:284
|
97 |
+
msgid "Logged out users"
|
98 |
+
msgstr "未登录用户"
|
99 |
+
|
100 |
+
#: ../restrict-widgets.php:505
|
101 |
+
msgid "Restrict widgets"
|
102 |
+
msgstr "限制小工具"
|
103 |
+
|
104 |
+
#: ../restrict-widgets.php:509
|
105 |
+
msgid ""
|
106 |
+
"Use this settings to manage access to widgets page and to restrict "
|
107 |
+
"availability of certain widgets, sidebars and widgets options to site "
|
108 |
+
"administrators only."
|
109 |
+
msgstr ""
|
110 |
+
"通过下面的设置,来管理小工具页面的访问权限,以及限制管理员使用哪些侧边栏区"
|
111 |
+
"域、小工具、小工具选项等。"
|
112 |
+
|
113 |
+
#: ../restrict-widgets.php:512
|
114 |
+
msgid "Restrict Users"
|
115 |
+
msgstr "限制用户"
|
116 |
+
|
117 |
+
#: ../restrict-widgets.php:522
|
118 |
+
msgid "Select user roles restricted to manage widgets."
|
119 |
+
msgstr "选择限制用户角色管理小工具"
|
120 |
+
|
121 |
+
#: ../restrict-widgets.php:526
|
122 |
+
msgid "Restrict Sidebars"
|
123 |
+
msgstr "限制侧边栏"
|
124 |
+
|
125 |
+
#: ../restrict-widgets.php:541
|
126 |
+
msgid "Select which sidebars will be restricted to admins only."
|
127 |
+
msgstr "选择限制管理员使用哪些侧边栏区域"
|
128 |
+
|
129 |
+
#: ../restrict-widgets.php:545
|
130 |
+
msgid "Restrict Widgets"
|
131 |
+
msgstr "限制小工具"
|
132 |
+
|
133 |
+
#: ../restrict-widgets.php:557
|
134 |
+
msgid "Select which widgets will be restricted to admins only."
|
135 |
+
msgstr "选择限制管理员使用哪些小工具"
|
136 |
+
|
137 |
+
#: ../restrict-widgets.php:561
|
138 |
+
msgid "Restrict Widget Options"
|
139 |
+
msgstr "限制小工具选项"
|
140 |
+
|
141 |
+
#: ../restrict-widgets.php:571
|
142 |
+
msgid "Select which widget options will be restricted to admins only."
|
143 |
+
msgstr "选择限制管理员使用哪些小工具选项"
|
144 |
+
|
145 |
+
#: ../restrict-widgets.php:575
|
146 |
+
msgid "Restrict Option Groups"
|
147 |
+
msgstr "限制选项组"
|
148 |
+
|
149 |
+
#: ../restrict-widgets.php:578
|
150 |
+
msgid "Display widget options in groups"
|
151 |
+
msgstr "分组显示小工具选项"
|
152 |
+
|
153 |
+
#: ../restrict-widgets.php:582
|
154 |
+
msgid "Plugin Deactivation"
|
155 |
+
msgstr "插件停用"
|
156 |
+
|
157 |
+
#: ../restrict-widgets.php:585
|
158 |
+
msgid "Remove all plugin data on deactivation"
|
159 |
+
msgstr "停用该插件时,删除该插件数据"
|
160 |
+
|
161 |
+
#: ../restrict-widgets.php:589
|
162 |
+
msgid "Save settings"
|
163 |
+
msgstr "保存设置"
|
164 |
+
|
165 |
+
#: ../restrict-widgets.php:590
|
166 |
+
msgid "Created by"
|
167 |
+
msgstr ""
|
168 |
+
"简体中文支持:<a href=\"http://www.cmhello.com\" target=\"_blank\">倡萌 </a> "
|
169 |
+
"@<a href=\"http://www.wpdaxue.com\" target=\"_blank\">WordPress大学</a> | "
|
170 |
+
"开发者:"
|
171 |
+
|
172 |
+
#: ../restrict-widgets.php:764 ../restrict-widgets.php:774
|
173 |
+
#, php-format
|
174 |
+
msgid "Single %s"
|
175 |
+
msgstr "单个 %s"
|
176 |
+
|
177 |
+
#: ../restrict-widgets.php:804 ../restrict-widgets.php:814
|
178 |
+
#, php-format
|
179 |
+
msgid "%s Archive"
|
180 |
+
msgstr "%s 存档页"
|
181 |
+
|
182 |
+
#: ../restrict-widgets.php:1045
|
183 |
+
msgid "Display / Hide Widget"
|
184 |
+
msgstr "显示/隐藏小工具"
|
185 |
+
|
186 |
+
#: ../restrict-widgets.php:1047
|
187 |
+
msgid "Display widget on selected"
|
188 |
+
msgstr "在所选项显示小工具"
|
189 |
+
|
190 |
+
#: ../restrict-widgets.php:1048
|
191 |
+
msgid "Hide widget on selected"
|
192 |
+
msgstr "在所选项隐藏小工具"
|
193 |
+
|
194 |
+
#~ msgid "Friends Notifications"
|
195 |
+
#~ msgstr "好友通知"
|
196 |
+
|
197 |
+
#~ msgid "Email Notification"
|
198 |
+
#~ msgstr "邮件通知"
|
199 |
+
|
200 |
+
#~ msgid "Yes"
|
201 |
+
#~ msgstr "是"
|
202 |
+
|
203 |
+
#~ msgid "No"
|
204 |
+
#~ msgstr "否"
|
205 |
+
|
206 |
+
#~ msgid "Receive an email when someone adds you as a friend"
|
207 |
+
#~ msgstr "当有人添加你为好友,发送邮件通知"
|
208 |
+
|
209 |
+
#~ msgid "Friends"
|
210 |
+
#~ msgstr "好友"
|
211 |
+
|
212 |
+
#~ msgid "Find Friends"
|
213 |
+
#~ msgstr "找好友"
|
214 |
+
|
215 |
+
#~ msgid "Friend Requests"
|
216 |
+
#~ msgstr "好友请求"
|
217 |
+
|
218 |
+
#~ msgid "Friends Settings"
|
219 |
+
#~ msgstr "好友设置"
|
220 |
+
|
221 |
+
#~ msgid "Cheatin’ uh?"
|
222 |
+
#~ msgstr "不忠’ 呃?"
|
223 |
+
|
224 |
+
#~ msgid "Friend Removed"
|
225 |
+
#~ msgstr "删除好友"
|
226 |
+
|
227 |
+
#~ msgid "Friend will be added pending approval."
|
228 |
+
#~ msgstr "好友将在审核同意后添加"
|
229 |
+
|
230 |
+
#~ msgid "Friend Request Approved"
|
231 |
+
#~ msgstr "好友请求已同意"
|
232 |
+
|
233 |
+
#~ msgid "Friend Request Rejected"
|
234 |
+
#~ msgstr "好友请求被拒绝"
|
235 |
+
|
236 |
+
#~ msgid "Quick Message Success."
|
237 |
+
#~ msgstr "信息发送成功"
|
238 |
+
|
239 |
+
#~ msgid "Quick Message Failed."
|
240 |
+
#~ msgstr "信息发送失败"
|
241 |
+
|
242 |
+
#~ msgid "Settings saved"
|
243 |
+
#~ msgstr "保存设置"
|
244 |
+
|
245 |
+
#~ msgid "Email Request Template"
|
246 |
+
#~ msgstr "邮件请求模板"
|
247 |
+
|
248 |
+
#~ msgid "Email Approval Template"
|
249 |
+
#~ msgstr "邮件同意模板"
|
250 |
+
|
251 |
+
#~ msgid "Email Rejection Template"
|
252 |
+
#~ msgstr "邮件拒绝模板"
|
253 |
+
|
254 |
+
#~ msgid ""
|
255 |
+
#~ "The Friends plugin lets users connect with other users within the "
|
256 |
+
#~ "WordPress Multisite environment. Once connected friends can send message "
|
257 |
+
#~ "to each other. Also available is a handy widget to display a user's "
|
258 |
+
#~ "friends listing"
|
259 |
+
#~ msgstr ""
|
260 |
+
#~ "这个好友插件可以让多站点之间的用户相互联系。一旦成为好友,就可以相互间发送"
|
261 |
+
#~ "信息。当然,也包含一个不错的小工具,用来显示用户的好友列表。"
|
262 |
+
|
263 |
+
#~ msgid ""
|
264 |
+
#~ "The Friends listing page will show all user your have connections with. "
|
265 |
+
#~ "From the listing you can send messages to users. Also you can remove "
|
266 |
+
#~ "users who may have become unfriendly."
|
267 |
+
#~ msgstr ""
|
268 |
+
#~ "好友列表页面将显示你所添加的所有好友,你可以通过这个页面给好友发送信息,你"
|
269 |
+
#~ "还可以删除那些不友好的用户。"
|
270 |
+
|
271 |
+
#~ msgid "<strong>Friend</strong> - This is the user's display name."
|
272 |
+
#~ msgstr "<strong>好友</strong> - 用户的昵称"
|
273 |
+
|
274 |
+
#~ msgid "<strong>Avatar</strong> - The user's avatar"
|
275 |
+
#~ msgstr "<strong>头像</strong> - 用户的头像"
|
276 |
+
|
277 |
+
#~ msgid ""
|
278 |
+
#~ "<strong>Send Message</strong> - Once you are connected to other friends "
|
279 |
+
#~ "you can send them messages."
|
280 |
+
#~ msgstr ""
|
281 |
+
#~ "<strong>发送信息</strong> - 一旦你成功添加对方为好友,就可以给他们发送信息"
|
282 |
+
|
283 |
+
#~ msgid "<strong>View Blog</strong> - View the user's blog"
|
284 |
+
#~ msgstr "<strong>查看博客</strong> - 查看用户博客"
|
285 |
+
|
286 |
+
#~ msgid "<strong>Remove</strong> - Allows you to remove the user as a friend."
|
287 |
+
#~ msgstr "<strong>移除</strong> - 允许你删除好友"
|
288 |
+
|
289 |
+
#~ msgid ""
|
290 |
+
#~ "Using the search on this page you can search for other users within this "
|
291 |
+
#~ "Multisite system. You can locate other user by searching for Name, Login "
|
292 |
+
#~ "or Email. Click the Search button and all matching users will be listed. "
|
293 |
+
#~ "Beside each user will be an Add link which will create a request to the "
|
294 |
+
#~ "user. The user will need to accept the request to complete the friend "
|
295 |
+
#~ "connection. Within the list if you see Pending instead of Add this means "
|
296 |
+
#~ "the friend request has already been sent to this user."
|
297 |
+
#~ msgstr ""
|
298 |
+
#~ "通过这个页面搜索,你可以找到这个多站点网络中的其他用户。输入用户姓名、登录"
|
299 |
+
#~ "名或电子邮件,点击“搜索”按钮,就可以显示符合条件的用户。每个用户都有一"
|
300 |
+
#~ "个“加为好友”的链接,你可以快速提交好友申请,对方审核通过后就可以了。如果在"
|
301 |
+
#~ "列表显示“审核中”,而不是“加为好友”,意味着你已经给该用户发送了好友请求。"
|
302 |
+
|
303 |
+
#~ msgid ""
|
304 |
+
#~ "When another user requests you to be their friend they will be listed on "
|
305 |
+
#~ "this page. To complete the friend connection you must approve the "
|
306 |
+
#~ "request. You may also opt to reject the request."
|
307 |
+
#~ msgstr ""
|
308 |
+
#~ "当其他用户求情加你为好友时,他们会显示在这个页面。你可以审核同意或者拒绝请"
|
309 |
+
#~ "求。"
|
310 |
+
|
311 |
+
#~ msgid ""
|
312 |
+
#~ "This page contains various metaboxes to let you control the email "
|
313 |
+
#~ "templates used during the friend connection processing."
|
314 |
+
#~ msgstr ""
|
315 |
+
#~ "该页面包含各种 Meta 模块,你可以通过它们设计邮件模板,以便在好友链接管理中"
|
316 |
+
#~ "使用。"
|
317 |
+
|
318 |
+
#~ msgid ""
|
319 |
+
#~ "<strong>Email Request Template</strong> - This template contains the "
|
320 |
+
#~ "Subject and Content used when one user requests to be friend's with "
|
321 |
+
#~ "another user. "
|
322 |
+
#~ msgstr ""
|
323 |
+
#~ "<strong>邮件请求模板</strong> - 这个模板是给用户发送好友请求时用的,可以定"
|
324 |
+
#~ "义邮件主题和内容。"
|
325 |
+
|
326 |
+
#~ msgid ""
|
327 |
+
#~ "<strong>Email Approval Template</strong> - This template contains the "
|
328 |
+
#~ "Subject and Content used when one user approves a friend request from "
|
329 |
+
#~ "another user. "
|
330 |
+
#~ msgstr ""
|
331 |
+
#~ "<strong>邮件同意模板</strong> - 这个模板是给用户同意好友请求时用的,可以定"
|
332 |
+
#~ "义邮件主题和内容。"
|
333 |
+
|
334 |
+
#~ msgid ""
|
335 |
+
#~ "<strong>Email Rejection Template</strong> - This template contains the "
|
336 |
+
#~ "Subject and Content used when one user rejects a friend request from "
|
337 |
+
#~ "another user. "
|
338 |
+
#~ msgstr ""
|
339 |
+
#~ "<strong>邮件拒绝模板</strong> - 这个模板是给用户拒绝好友请求时用的,可以定"
|
340 |
+
#~ "义邮件主题和内容。"
|
341 |
+
|
342 |
+
#~ msgid "Overview"
|
343 |
+
#~ msgstr "预览"
|
344 |
+
|
345 |
+
#~ msgid "Friend Request"
|
346 |
+
#~ msgstr "好友请求"
|
347 |
+
|
348 |
+
#~ msgid "Previous Page"
|
349 |
+
#~ msgstr "上一页"
|
350 |
+
|
351 |
+
#~ msgid "Friend"
|
352 |
+
#~ msgstr "好友"
|
353 |
+
|
354 |
+
#~ msgid "Avatar"
|
355 |
+
#~ msgstr "头像"
|
356 |
+
|
357 |
+
#~ msgid "Actions"
|
358 |
+
#~ msgstr "操作"
|
359 |
+
|
360 |
+
#~ msgid "Send Message"
|
361 |
+
#~ msgstr "发送信息"
|
362 |
+
|
363 |
+
#~ msgid "View Blog"
|
364 |
+
#~ msgstr "查看博客"
|
365 |
+
|
366 |
+
#~ msgid "Remove"
|
367 |
+
#~ msgstr "删除"
|
368 |
+
|
369 |
+
#~ msgid "Your friends list is currently empty"
|
370 |
+
#~ msgstr "你的好友列表目前是空的"
|
371 |
+
|
372 |
+
#~ msgid "Send Message To"
|
373 |
+
#~ msgstr "发送信息给"
|
374 |
+
|
375 |
+
#~ msgid "Quick Message"
|
376 |
+
#~ msgstr "快捷信息"
|
377 |
+
|
378 |
+
#~ msgid "Message"
|
379 |
+
#~ msgstr "信息"
|
380 |
+
|
381 |
+
#~ msgid "Send"
|
382 |
+
#~ msgstr "发送"
|
383 |
+
|
384 |
+
#~ msgid "Search by friends display name, username or email address"
|
385 |
+
#~ msgstr "通过好友的姓名、用户名或邮箱进行搜索"
|
386 |
+
|
387 |
+
#~ msgid "Show existing friends"
|
388 |
+
#~ msgstr "显示已有好友"
|
389 |
+
|
390 |
+
#~ msgid "Pending"
|
391 |
+
#~ msgstr "审核中"
|
392 |
+
|
393 |
+
#~ msgid "Add"
|
394 |
+
#~ msgstr "加为好友"
|
395 |
+
|
396 |
+
#~ msgid "Nothing found"
|
397 |
+
#~ msgstr "没有相关内容"
|
398 |
+
|
399 |
+
#~ msgid "ID"
|
400 |
+
#~ msgstr "ID"
|
401 |
+
|
402 |
+
#~ msgid "Approve"
|
403 |
+
#~ msgstr "同意"
|
404 |
+
|
405 |
+
#~ msgid "Reject"
|
406 |
+
#~ msgstr "拒绝"
|
407 |
+
|
408 |
+
#~ msgid "No pending Friend requests"
|
409 |
+
#~ msgstr "没有待审的好友请求"
|
410 |
+
|
411 |
+
#~ msgctxt "Friends Plugin Page Title"
|
412 |
+
#~ msgid "Friends Settings"
|
413 |
+
#~ msgstr "好友设置"
|
414 |
+
|
415 |
+
#~ msgid ""
|
416 |
+
#~ "This Email template is used when one user requests to be friends with "
|
417 |
+
#~ "another user."
|
418 |
+
#~ msgstr "这个邮件模板是用来给用户发送好友请求时用的"
|
419 |
+
|
420 |
+
#~ msgid "Save Changes"
|
421 |
+
#~ msgstr "保存更改"
|
422 |
+
|
423 |
+
#~ msgid "Reset to Default"
|
424 |
+
#~ msgstr "恢复默认"
|
425 |
+
|
426 |
+
#~ msgid ""
|
427 |
+
#~ "This Email template is used when a user receives a request from another "
|
428 |
+
#~ "user to become friends. And the user approves the friend request."
|
429 |
+
#~ msgstr ""
|
430 |
+
#~ "这个邮件模板是当一个用户接收到其他用户的好友请求,用户同意请求时用的。"
|
431 |
+
|
432 |
+
#~ msgid ""
|
433 |
+
#~ "This Email template is used when a user receives a request from another "
|
434 |
+
#~ "user to become friends. And the user reject the friend request."
|
435 |
+
#~ msgstr ""
|
436 |
+
#~ "这个邮件模板是当一个用户接收到其他用户的好友请求,用户拒绝请求时用的。"
|
437 |
+
|
438 |
+
#~ msgid ""
|
439 |
+
#~ "Instructions: Use the following replaceable tokens in your message. These "
|
440 |
+
#~ "will be replaced with the real information for user, site, content, etc.. "
|
441 |
+
#~ "Note all tokens are wrapped in square brackets."
|
442 |
+
#~ msgstr ""
|
443 |
+
#~ "说明:在信息中使用以下可用变量,它们将在邮件中被替换为真正的用户、网站、内"
|
444 |
+
#~ "容 等。注意:所有的变量都要放在方括号[ ]中。"
|
445 |
+
|
446 |
+
#~ msgid "The name of the sender's primary site"
|
447 |
+
#~ msgstr "发件人的主站点的名称"
|
448 |
+
|
449 |
+
#~ msgid "The URL of the sender's primary site"
|
450 |
+
#~ msgstr "发件人的主站点的URL"
|
451 |
+
|
452 |
+
#~ msgid "The user name requesting friendship."
|
453 |
+
#~ msgstr "好友请求的用户名"
|
454 |
+
|
455 |
+
#~ msgid "The user name being friended."
|
456 |
+
#~ msgstr "好友的用户名"
|
457 |
+
|
458 |
+
#~ msgid "The TO_USER primary site admin page for the Friend Request."
|
459 |
+
#~ msgstr "好友请求的TO_USER主站点的管理页面"
|
460 |
+
|
461 |
+
#~ msgid "Display"
|
462 |
+
#~ msgstr "显示"
|
463 |
+
|
464 |
+
#~ msgid "Mosaic"
|
465 |
+
#~ msgstr "嵌套"
|
466 |
+
|
467 |
+
#~ msgid "List"
|
468 |
+
#~ msgstr "列表"
|
languages/restrict-widgets.pot
CHANGED
@@ -1,186 +1,193 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Restrict Widgets\n"
|
4 |
-
"POT-Creation-Date: 2013-04
|
5 |
-
"PO-Revision-Date: 2013-04
|
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.
|
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:
|
19 |
msgid "Support"
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: ../restrict-widgets.php:
|
23 |
-
#: ../restrict-widgets.php:
|
24 |
msgid "Widgets"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: ../restrict-widgets.php:
|
28 |
msgid "Pages"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: ../restrict-widgets.php:
|
32 |
msgid "Custom Post Types"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: ../restrict-widgets.php:
|
36 |
msgid "Custom Post Type Archives"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: ../restrict-widgets.php:
|
40 |
msgid "Categories"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: ../restrict-widgets.php:
|
44 |
msgid "Taxonomies"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: ../restrict-widgets.php:
|
48 |
msgid "Others"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: ../restrict-widgets.php:
|
52 |
msgid "Users"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: ../restrict-widgets.php:
|
56 |
msgid "Languages"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: ../restrict-widgets.php:
|
60 |
msgid "Front Page"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: ../restrict-widgets.php:
|
64 |
msgid "Blog Page"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: ../restrict-widgets.php:
|
68 |
msgid "Single Posts"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: ../restrict-widgets.php:
|
72 |
msgid "Sticky Posts"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: ../restrict-widgets.php:
|
76 |
msgid "Author Archive"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: ../restrict-widgets.php:
|
80 |
msgid "Date Archive"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: ../restrict-widgets.php:
|
84 |
msgid "404 Page"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: ../restrict-widgets.php:
|
88 |
msgid "Search Page"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: ../restrict-widgets.php:
|
92 |
msgid "Logged in users"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: ../restrict-widgets.php:
|
96 |
msgid "Logged out users"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: ../restrict-widgets.php:
|
100 |
msgid "Restrict widgets"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: ../restrict-widgets.php:
|
104 |
msgid ""
|
105 |
"Use this settings to manage access to widgets page and to restrict "
|
106 |
"availability of certain widgets, sidebars and widgets options to site "
|
107 |
"administrators only."
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: ../restrict-widgets.php:
|
111 |
msgid "Restrict Users"
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: ../restrict-widgets.php:
|
115 |
msgid "Select user roles restricted to manage widgets."
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: ../restrict-widgets.php:
|
119 |
msgid "Restrict Sidebars"
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: ../restrict-widgets.php:
|
123 |
msgid "Select which sidebars will be restricted to admins only."
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: ../restrict-widgets.php:
|
127 |
msgid "Restrict Widgets"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: ../restrict-widgets.php:
|
131 |
msgid "Select which widgets will be restricted to admins only."
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: ../restrict-widgets.php:
|
135 |
msgid "Restrict Widget Options"
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: ../restrict-widgets.php:
|
139 |
msgid "Select which widget options will be restricted to admins only."
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: ../restrict-widgets.php:
|
143 |
msgid "Restrict Option Groups"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: ../restrict-widgets.php:
|
147 |
msgid "Display widget options in groups"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: ../restrict-widgets.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
msgid "Plugin Deactivation"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: ../restrict-widgets.php:
|
155 |
msgid "Remove all plugin data on deactivation"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: ../restrict-widgets.php:
|
159 |
msgid "Save settings"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: ../restrict-widgets.php:
|
163 |
-
msgid "Created by"
|
164 |
-
msgstr ""
|
165 |
-
|
166 |
-
#: ../restrict-widgets.php:757 ../restrict-widgets.php:767
|
167 |
#, php-format
|
168 |
msgid "Single %s"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: ../restrict-widgets.php:
|
172 |
#, php-format
|
173 |
msgid "%s Archive"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: ../restrict-widgets.php:
|
177 |
msgid "Display / Hide Widget"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: ../restrict-widgets.php:
|
181 |
msgid "Display widget on selected"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: ../restrict-widgets.php:
|
185 |
msgid "Hide widget on selected"
|
186 |
msgstr ""
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Restrict Widgets\n"
|
4 |
+
"POT-Creation-Date: 2013-09-04 09:23+0100\n"
|
5 |
+
"PO-Revision-Date: 2013-09-04 09:23+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:175
|
19 |
msgid "Support"
|
20 |
msgstr ""
|
21 |
|
22 |
+
#: ../restrict-widgets.php:197 ../restrict-widgets.php:1475
|
23 |
+
#: ../restrict-widgets.php:1520
|
24 |
msgid "Widgets"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: ../restrict-widgets.php:333
|
28 |
msgid "Pages"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: ../restrict-widgets.php:334
|
32 |
msgid "Custom Post Types"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: ../restrict-widgets.php:335
|
36 |
msgid "Custom Post Type Archives"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: ../restrict-widgets.php:336
|
40 |
msgid "Categories"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: ../restrict-widgets.php:337
|
44 |
msgid "Taxonomies"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: ../restrict-widgets.php:338
|
48 |
msgid "Others"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: ../restrict-widgets.php:339
|
52 |
msgid "Users"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: ../restrict-widgets.php:340
|
56 |
msgid "Languages"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: ../restrict-widgets.php:344
|
60 |
msgid "Front Page"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: ../restrict-widgets.php:345
|
64 |
msgid "Blog Page"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: ../restrict-widgets.php:346
|
68 |
msgid "Single Posts"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: ../restrict-widgets.php:347
|
72 |
msgid "Sticky Posts"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: ../restrict-widgets.php:348
|
76 |
msgid "Author Archive"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: ../restrict-widgets.php:349
|
80 |
msgid "Date Archive"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: ../restrict-widgets.php:350
|
84 |
msgid "404 Page"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: ../restrict-widgets.php:351
|
88 |
msgid "Search Page"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: ../restrict-widgets.php:355
|
92 |
msgid "Logged in users"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: ../restrict-widgets.php:356
|
96 |
msgid "Logged out users"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: ../restrict-widgets.php:579
|
100 |
msgid "Restrict widgets"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: ../restrict-widgets.php:583
|
104 |
msgid ""
|
105 |
"Use this settings to manage access to widgets page and to restrict "
|
106 |
"availability of certain widgets, sidebars and widgets options to site "
|
107 |
"administrators only."
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: ../restrict-widgets.php:586
|
111 |
msgid "Restrict Users"
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: ../restrict-widgets.php:596
|
115 |
msgid "Select user roles restricted to manage widgets."
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: ../restrict-widgets.php:600
|
119 |
msgid "Restrict Sidebars"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: ../restrict-widgets.php:615
|
123 |
msgid "Select which sidebars will be restricted to admins only."
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: ../restrict-widgets.php:619
|
127 |
msgid "Restrict Widgets"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: ../restrict-widgets.php:631
|
131 |
msgid "Select which widgets will be restricted to admins only."
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: ../restrict-widgets.php:635
|
135 |
msgid "Restrict Widget Options"
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: ../restrict-widgets.php:645
|
139 |
msgid "Select which widget options will be restricted to admins only."
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: ../restrict-widgets.php:649
|
143 |
msgid "Restrict Option Groups"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: ../restrict-widgets.php:652
|
147 |
msgid "Display widget options in groups"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: ../restrict-widgets.php:656
|
151 |
+
msgid "Modify is_active_sidebar()"
|
152 |
+
msgstr ""
|
153 |
+
|
154 |
+
#: ../restrict-widgets.php:659
|
155 |
+
msgid ""
|
156 |
+
"By default is_active_sidebar() function returns TRUE even if no widget is "
|
157 |
+
"displayed in a sidebar. Check this if you want is_active_sidebar() to "
|
158 |
+
"recognize Restrict Widgets display settings."
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: ../restrict-widgets.php:663
|
162 |
msgid "Plugin Deactivation"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: ../restrict-widgets.php:666
|
166 |
msgid "Remove all plugin data on deactivation"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: ../restrict-widgets.php:670
|
170 |
msgid "Save settings"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: ../restrict-widgets.php:844 ../restrict-widgets.php:854
|
|
|
|
|
|
|
|
|
174 |
#, php-format
|
175 |
msgid "Single %s"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: ../restrict-widgets.php:884 ../restrict-widgets.php:894
|
179 |
#, php-format
|
180 |
msgid "%s Archive"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: ../restrict-widgets.php:1125
|
184 |
msgid "Display / Hide Widget"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: ../restrict-widgets.php:1127
|
188 |
msgid "Display widget on selected"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: ../restrict-widgets.php:1128
|
192 |
msgid "Hide widget on selected"
|
193 |
msgstr ""
|
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 |
-
Stable tag: 1.1.
|
8 |
License: MIT License
|
9 |
License URI: http://opensource.org/licenses/MIT
|
10 |
|
@@ -26,6 +26,7 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
|
|
26 |
* Select which widgets will be restricted to admins only
|
27 |
* Select which widget options will be restricted to admins only
|
28 |
* Choose to display or not widget options as groups
|
|
|
29 |
* WPML compatible
|
30 |
* Polylang compatible
|
31 |
* .pot file for translations included
|
@@ -38,8 +39,8 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
|
|
38 |
== Installation ==
|
39 |
|
40 |
1. Install Restrict Widgets either via the WordPress.org plugin directory, or by uploading the files to your server
|
41 |
-
|
42 |
-
|
43 |
|
44 |
== Frequently Asked Questions ==
|
45 |
|
@@ -52,6 +53,10 @@ No questions yet.
|
|
52 |
|
53 |
== Changelog ==
|
54 |
|
|
|
|
|
|
|
|
|
55 |
= 1.1.1 =
|
56 |
* Tweak: Optimized rw_display_widget() filter
|
57 |
* New: Chinese translation by Changmeng Hu
|
@@ -70,5 +75,5 @@ Initial release
|
|
70 |
|
71 |
== Upgrade Notice ==
|
72 |
|
73 |
-
= 1.1.
|
74 |
-
|
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.6
|
7 |
+
Stable tag: 1.1.2
|
8 |
License: MIT License
|
9 |
License URI: http://opensource.org/licenses/MIT
|
10 |
|
26 |
* Select which widgets will be restricted to admins only
|
27 |
* Select which widget options will be restricted to admins only
|
28 |
* Choose to display or not widget options as groups
|
29 |
+
* Option to modify the is_active_sidebar() function to use Restrict Widgets display settings
|
30 |
* WPML compatible
|
31 |
* Polylang compatible
|
32 |
* .pot file for translations included
|
39 |
== Installation ==
|
40 |
|
41 |
1. Install Restrict Widgets either via the WordPress.org plugin directory, or by uploading the files to your server
|
42 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress
|
43 |
+
3. Go to the Widgets menu and set your desired widgets options.
|
44 |
|
45 |
== Frequently Asked Questions ==
|
46 |
|
53 |
|
54 |
== Changelog ==
|
55 |
|
56 |
+
= 1.1.2 =
|
57 |
+
* New: Option to modify the is_active_sidebar() function to use Restrict Widgets display settings
|
58 |
+
* Fix: Compatibility fix for WordPress 3.6
|
59 |
+
|
60 |
= 1.1.1 =
|
61 |
* Tweak: Optimized rw_display_widget() filter
|
62 |
* New: Chinese translation by Changmeng Hu
|
75 |
|
76 |
== Upgrade Notice ==
|
77 |
|
78 |
+
= 1.1.2 =
|
79 |
+
New: Option to modify the is_active_sidebar() function to use Restrict Widgets display settings
|
restrict-widgets.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Restrict Widgets
|
4 |
Description: Restrict Widgets not only allows you to easily hide or display widgets on specified pages but gives you complete control over widgets and sidebars.
|
5 |
-
Version: 1.1.
|
6 |
Author: dFactory
|
7 |
Author URI: http://www.dfactory.eu/
|
8 |
Plugin URI: http://www.dfactory.eu/plugins/restrict-widgets/
|
@@ -31,6 +31,9 @@ class Restrict_Widgets
|
|
31 |
private $users = array();
|
32 |
private $languages = array();
|
33 |
private $options = array();
|
|
|
|
|
|
|
34 |
|
35 |
|
36 |
public function __construct()
|
@@ -40,18 +43,19 @@ class Restrict_Widgets
|
|
40 |
|
41 |
//actions
|
42 |
add_action('wp_loaded', array(&$this, 'polylang_widgets'), 6);
|
|
|
43 |
add_action('plugins_loaded', array(&$this, 'load_textdomain'));
|
44 |
-
add_action('admin_init', array(&$this, 'load_dynamic_data'));
|
45 |
add_action('widgets_init', array(&$this, 'load_other_data'), 10);
|
46 |
-
add_action('widgets_init', array(&$this, 'save_restrict_options'), 10);
|
47 |
add_action('widgets_init', array(&$this, 'init_restrict_sidebars'), 11);
|
|
|
|
|
48 |
add_action('sidebar_admin_page', array(&$this, 'add_widgets_options_box'));
|
49 |
add_action('in_widget_form', array(&$this, 'display_admin_widgets_options'), 99, 3);
|
50 |
add_action('admin_enqueue_scripts', array(&$this, 'widgets_scripts_styles'));
|
51 |
add_action('admin_menu', array(&$this, 'manage_widgets_menu'));
|
52 |
|
53 |
//filters
|
54 |
-
add_filter('widget_display_callback', array(&$this, 'display_frontend_widgets'));
|
55 |
add_filter('widget_update_callback', array(&$this, 'update_admin_widgets_options'), 10, 3);
|
56 |
add_filter('user_has_cap', array(&$this, 'manage_widgets_cap'), 10, 3);
|
57 |
add_filter('dynamic_sidebar_params', array(&$this, 'restrict_sidebar_params'), 10, 3);
|
@@ -60,6 +64,74 @@ class Restrict_Widgets
|
|
60 |
}
|
61 |
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
/**
|
64 |
* Fix for Polylang - removes language switcher in widgets
|
65 |
*/
|
@@ -307,11 +379,9 @@ class Restrict_Widgets
|
|
307 |
}
|
308 |
//WMPL support
|
309 |
elseif(function_exists('icl_get_languages'))
|
310 |
-
{
|
311 |
$this->languages = icl_get_languages('skip_missing=0&orderby=native_name&order=asc');
|
312 |
-
|
313 |
-
|
314 |
-
else $this->languages = FALSE;
|
315 |
}
|
316 |
|
317 |
|
@@ -348,12 +418,16 @@ class Restrict_Widgets
|
|
348 |
'selection' => array(),
|
349 |
'sidebars' => array(),
|
350 |
'groups' => FALSE,
|
|
|
351 |
'deactivation' => FALSE
|
352 |
);
|
353 |
|
354 |
//display groups?
|
355 |
$save_widgets['groups'] = (isset($_POST['options-widgets-groups']) ? TRUE : FALSE);
|
356 |
|
|
|
|
|
|
|
357 |
//remove plugin data?
|
358 |
$save_widgets['deactivation'] = (isset($_POST['options-widgets-deactivation']) ? TRUE : FALSE);
|
359 |
|
@@ -390,7 +464,7 @@ class Restrict_Widgets
|
|
390 |
}
|
391 |
}
|
392 |
|
393 |
-
foreach(
|
394 |
{
|
395 |
if(in_array('cpt_'.$cpt->name, $selected, TRUE))
|
396 |
{
|
@@ -578,6 +652,13 @@ class Restrict_Widgets
|
|
578 |
<label for="options-widgets-groups" class="description">'.__('Display widget options in groups', 'restrict-widgets').'</label>
|
579 |
</td>
|
580 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
581 |
<tr>
|
582 |
<td class="label"><label>'.__('Plugin Deactivation', 'restrict-widgets').'</label></td>
|
583 |
<td>
|
@@ -1196,22 +1277,14 @@ class Restrict_Widgets
|
|
1196 |
$action = explode('_', $option, 2);
|
1197 |
|
1198 |
if($type === 'main')
|
1199 |
-
{
|
1200 |
$array = array('category', 'taxonomy', 'cpt', 'cpta', 'pageid', 'others');
|
1201 |
-
}
|
1202 |
elseif($type === 'lang')
|
1203 |
-
{
|
1204 |
$array = array('language');
|
1205 |
-
}
|
1206 |
elseif($type === 'user')
|
1207 |
-
{
|
1208 |
$array = array('users');
|
1209 |
-
}
|
1210 |
|
1211 |
if(in_array($action[0], $array))
|
1212 |
-
{
|
1213 |
return FALSE;
|
1214 |
-
}
|
1215 |
}
|
1216 |
}
|
1217 |
|
@@ -1222,7 +1295,16 @@ class Restrict_Widgets
|
|
1222 |
/**
|
1223 |
* Manages front-end display of widgets
|
1224 |
*/
|
1225 |
-
public function display_frontend_widgets($instance)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1226 |
{
|
1227 |
global $wp_query;
|
1228 |
|
@@ -1244,9 +1326,7 @@ class Restrict_Widgets
|
|
1244 |
if($display_type === TRUE)
|
1245 |
{
|
1246 |
if($found_lang === TRUE)
|
1247 |
-
{
|
1248 |
$display_lang = TRUE;
|
1249 |
-
}
|
1250 |
else
|
1251 |
{
|
1252 |
$return = TRUE;
|
@@ -1254,19 +1334,13 @@ class Restrict_Widgets
|
|
1254 |
}
|
1255 |
}
|
1256 |
else
|
1257 |
-
{
|
1258 |
$display_lang = ($found_lang === TRUE ? FALSE : TRUE);
|
1259 |
-
}
|
1260 |
}
|
1261 |
else
|
1262 |
-
{
|
1263 |
$display_lang = TRUE;
|
1264 |
-
}
|
1265 |
}
|
1266 |
else
|
1267 |
-
{
|
1268 |
$display_lang = TRUE;
|
1269 |
-
}
|
1270 |
|
1271 |
if($return === FALSE)
|
1272 |
{
|
@@ -1277,32 +1351,22 @@ class Restrict_Widgets
|
|
1277 |
if(is_user_logged_in())
|
1278 |
{
|
1279 |
if(isset($instance['rw_opt']['users_logged_in'], $instance['rw_opt']['users_logged_out']) || isset($instance['rw_opt']['users_logged_in']))
|
1280 |
-
{
|
1281 |
$found_user = TRUE;
|
1282 |
-
}
|
1283 |
elseif(isset($instance['rw_opt']['users_logged_out']))
|
1284 |
-
{
|
1285 |
$found_user = FALSE;
|
1286 |
-
}
|
1287 |
}
|
1288 |
else
|
1289 |
{
|
1290 |
if(isset($instance['rw_opt']['users_logged_out'], $instance['rw_opt']['users_logged_in']) || isset($instance['rw_opt']['users_logged_out']))
|
1291 |
-
{
|
1292 |
$found_user = TRUE;
|
1293 |
-
}
|
1294 |
elseif(isset($instance['rw_opt']['users_logged_in']))
|
1295 |
-
{
|
1296 |
$found_user = FALSE;
|
1297 |
-
}
|
1298 |
}
|
1299 |
|
1300 |
if($display_type === TRUE)
|
1301 |
{
|
1302 |
if($found_user === TRUE)
|
1303 |
-
{
|
1304 |
$display_user = TRUE;
|
1305 |
-
}
|
1306 |
else
|
1307 |
{
|
1308 |
$return = TRUE;
|
@@ -1310,14 +1374,10 @@ class Restrict_Widgets
|
|
1310 |
}
|
1311 |
}
|
1312 |
else
|
1313 |
-
{
|
1314 |
$display_user = ($found_user === TRUE ? FALSE : TRUE);
|
1315 |
-
}
|
1316 |
}
|
1317 |
else
|
1318 |
-
{
|
1319 |
$display_user = TRUE;
|
1320 |
-
}
|
1321 |
}
|
1322 |
|
1323 |
if($return === FALSE)
|
@@ -1331,82 +1391,57 @@ class Restrict_Widgets
|
|
1331 |
$found_main = isset($instance['rw_opt']['others_front_page']) ? TRUE : FALSE;
|
1332 |
|
1333 |
if(is_home() && $found_main == FALSE)
|
1334 |
-
{
|
1335 |
$found_main = isset($instance['rw_opt']['others_blog_page']) ? TRUE : FALSE;
|
1336 |
-
}
|
1337 |
}
|
1338 |
elseif(is_home())
|
1339 |
-
{
|
1340 |
$found_main = isset($instance['rw_opt']['others_blog_page']) ? TRUE : FALSE;
|
1341 |
-
}
|
1342 |
elseif(is_page())
|
1343 |
-
{
|
1344 |
$found_main = isset($instance['rw_opt']['pageid_'.$post_id]) ? TRUE : FALSE;
|
1345 |
-
}
|
1346 |
elseif(is_singular())
|
1347 |
{
|
1348 |
$found_main = isset($instance['rw_opt']['cpt_'.get_post_type($post_id)]) ? TRUE : FALSE;
|
1349 |
|
1350 |
if(is_single() && $found_main == FALSE)
|
1351 |
-
{
|
1352 |
$found_main = isset($instance['rw_opt']['others_single_post']) ? TRUE : FALSE;
|
1353 |
-
}
|
1354 |
}
|
1355 |
elseif(is_category())
|
1356 |
-
{
|
1357 |
$found_main = isset($instance['rw_opt']['category_'.get_query_var('cat')]) ? TRUE : FALSE;
|
1358 |
-
}
|
1359 |
elseif(is_tax())
|
1360 |
-
{
|
1361 |
$found_main = isset($instance['rw_opt']['taxonomy_'.get_query_var('taxonomy')]) ? TRUE : FALSE;
|
1362 |
-
}
|
1363 |
elseif(is_404())
|
1364 |
-
{
|
1365 |
$found_main = isset($instance['rw_opt']['others_404_page']) ? TRUE : FALSE;
|
1366 |
-
}
|
1367 |
elseif(is_sticky())
|
1368 |
-
{
|
1369 |
$found_main = isset($instance['rw_opt']['others_sticky_post']) ? TRUE : FALSE;
|
1370 |
-
}
|
1371 |
elseif(is_search())
|
1372 |
-
{
|
1373 |
$found_main = isset($instance['rw_opt']['others_search_page']) ? TRUE : FALSE;
|
1374 |
-
}
|
1375 |
elseif(is_author())
|
1376 |
-
{
|
1377 |
$found_main = isset($instance['rw_opt']['others_author_archive']) ? TRUE : FALSE;
|
1378 |
-
}
|
1379 |
elseif(is_date())
|
1380 |
-
{
|
1381 |
$found_main = isset($instance['rw_opt']['others_date_archive']) ? TRUE : FALSE;
|
1382 |
-
}
|
1383 |
elseif(is_post_type_archive())
|
1384 |
-
{
|
1385 |
$found_main = isset($instance['rw_opt']['cpta_'.get_post_type($post_id)]) ? TRUE : FALSE;
|
1386 |
-
}
|
1387 |
|
1388 |
$display_main = ($display_type === TRUE ? ($found_main === TRUE ? TRUE : FALSE) : ($found_main === TRUE ? FALSE : TRUE));
|
1389 |
}
|
1390 |
else
|
1391 |
-
{
|
1392 |
$display_main = TRUE;
|
1393 |
-
}
|
1394 |
}
|
1395 |
|
|
|
|
|
|
|
1396 |
if($display_type === TRUE)
|
1397 |
-
{
|
1398 |
$final_return = ($display_lang === TRUE && $display_user === TRUE && $display_main === TRUE ? $instance : FALSE);
|
1399 |
-
}
|
1400 |
else
|
1401 |
-
{
|
1402 |
$final_return = ((($empty_lang === FALSE && $empty_user === FALSE && $empty_main === FALSE && $display_lang === FALSE && $display_user === FALSE && $display_main === FALSE) || ($empty_lang === FALSE && $empty_user === FALSE && $display_lang === FALSE && $display_user === FALSE) || ($empty_lang === FALSE && $empty_main === FALSE && $display_lang === FALSE && $display_main === FALSE) || ($empty_user === FALSE && $empty_main === FALSE && $display_user === FALSE && $display_main === FALSE) || ($empty_lang === FALSE && $display_lang === FALSE) || ($empty_user === FALSE && $display_lang === FALSE) || ($empty_main === FALSE && $display_main === FALSE)) ? FALSE : $instance);
|
1403 |
-
}
|
1404 |
|
1405 |
// filter true or false
|
1406 |
-
$
|
|
|
|
|
1407 |
// if true return instance
|
1408 |
$final_return = ($final_return === FALSE) ? FALSE : $instance;
|
1409 |
-
|
1410 |
//display: return $instance, hide: return FALSE
|
1411 |
return $final_return;
|
1412 |
}
|
2 |
/*
|
3 |
Plugin Name: Restrict Widgets
|
4 |
Description: Restrict Widgets not only allows you to easily hide or display widgets on specified pages but gives you complete control over widgets and sidebars.
|
5 |
+
Version: 1.1.2
|
6 |
Author: dFactory
|
7 |
Author URI: http://www.dfactory.eu/
|
8 |
Plugin URI: http://www.dfactory.eu/plugins/restrict-widgets/
|
31 |
private $users = array();
|
32 |
private $languages = array();
|
33 |
private $options = array();
|
34 |
+
private $hidden_widget = '';
|
35 |
+
private $checked_widget = '';
|
36 |
+
private $widgets = array();
|
37 |
|
38 |
|
39 |
public function __construct()
|
43 |
|
44 |
//actions
|
45 |
add_action('wp_loaded', array(&$this, 'polylang_widgets'), 6);
|
46 |
+
add_action('wp_head', array(&$this, 'restrict_sidebar_widgets'), 10);
|
47 |
add_action('plugins_loaded', array(&$this, 'load_textdomain'));
|
|
|
48 |
add_action('widgets_init', array(&$this, 'load_other_data'), 10);
|
|
|
49 |
add_action('widgets_init', array(&$this, 'init_restrict_sidebars'), 11);
|
50 |
+
add_action('admin_init', array(&$this, 'load_dynamic_data'));
|
51 |
+
add_action('admin_init', array(&$this, 'save_restrict_options'));
|
52 |
add_action('sidebar_admin_page', array(&$this, 'add_widgets_options_box'));
|
53 |
add_action('in_widget_form', array(&$this, 'display_admin_widgets_options'), 99, 3);
|
54 |
add_action('admin_enqueue_scripts', array(&$this, 'widgets_scripts_styles'));
|
55 |
add_action('admin_menu', array(&$this, 'manage_widgets_menu'));
|
56 |
|
57 |
//filters
|
58 |
+
add_filter('widget_display_callback', array(&$this, 'display_frontend_widgets'), 10, 3);
|
59 |
add_filter('widget_update_callback', array(&$this, 'update_admin_widgets_options'), 10, 3);
|
60 |
add_filter('user_has_cap', array(&$this, 'manage_widgets_cap'), 10, 3);
|
61 |
add_filter('dynamic_sidebar_params', array(&$this, 'restrict_sidebar_params'), 10, 3);
|
64 |
}
|
65 |
|
66 |
|
67 |
+
/**
|
68 |
+
* Fix for is_active_sidebar (all hidden widgets on sidebar = FALSE)
|
69 |
+
*/
|
70 |
+
public function restrict_sidebar_widgets()
|
71 |
+
{
|
72 |
+
if(!is_admin())
|
73 |
+
{
|
74 |
+
$options = get_option('rw_widgets_options');
|
75 |
+
|
76 |
+
if($options['sidebar'] === TRUE)
|
77 |
+
{
|
78 |
+
global $wp_registered_widgets, $_wp_sidebars_widgets;
|
79 |
+
|
80 |
+
$widgets_c = $instance = array();
|
81 |
+
|
82 |
+
foreach($wp_registered_widgets as $widget)
|
83 |
+
{
|
84 |
+
if(isset($widget['callback'][0]->option_name) && $widget['callback'][0]->option_name !== '')
|
85 |
+
{
|
86 |
+
if(empty($widgets_classes[$widget['callback'][0]->option_name]))
|
87 |
+
$widgets_c[$widget['callback'][0]->option_name] = get_option($widget['callback'][0]->option_name);
|
88 |
+
}
|
89 |
+
}
|
90 |
+
|
91 |
+
foreach($widgets_c as $widget_base_id => $widgets)
|
92 |
+
{
|
93 |
+
if(is_array($widgets))
|
94 |
+
{
|
95 |
+
foreach($widgets as $widget_id => $widget)
|
96 |
+
{
|
97 |
+
if(is_int($widget_id))
|
98 |
+
$instance[$widget_base_id.'-'.$widget_id] = $widget;
|
99 |
+
}
|
100 |
+
}
|
101 |
+
}
|
102 |
+
|
103 |
+
if(!empty($instance))
|
104 |
+
{
|
105 |
+
foreach($instance as $widget_id => $widget)
|
106 |
+
{
|
107 |
+
$this->widgets[substr($widget_id, 7)] = $this->restrict_widget($widget, FALSE, array('widget_id' => substr($widget_id, 7)));
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
if(!empty($this->widgets))
|
112 |
+
{
|
113 |
+
$widgets_c = $_wp_sidebars_widgets;
|
114 |
+
|
115 |
+
if(!empty($widgets_c))
|
116 |
+
{
|
117 |
+
foreach($widgets_c as $sidebar => $s_widgets)
|
118 |
+
{
|
119 |
+
if(!empty($s_widgets) && is_array($s_widgets))
|
120 |
+
{
|
121 |
+
foreach($s_widgets as $widget)
|
122 |
+
{
|
123 |
+
if($this->widgets[$widget] === FALSE && ($widget_key = array_search($widget, $_wp_sidebars_widgets[$sidebar])) !== FALSE)
|
124 |
+
unset($_wp_sidebars_widgets[$sidebar][$widget_key]);
|
125 |
+
}
|
126 |
+
}
|
127 |
+
}
|
128 |
+
}
|
129 |
+
}
|
130 |
+
}
|
131 |
+
}
|
132 |
+
}
|
133 |
+
|
134 |
+
|
135 |
/**
|
136 |
* Fix for Polylang - removes language switcher in widgets
|
137 |
*/
|
379 |
}
|
380 |
//WMPL support
|
381 |
elseif(function_exists('icl_get_languages'))
|
|
|
382 |
$this->languages = icl_get_languages('skip_missing=0&orderby=native_name&order=asc');
|
383 |
+
else
|
384 |
+
$this->languages = FALSE;
|
|
|
385 |
}
|
386 |
|
387 |
|
418 |
'selection' => array(),
|
419 |
'sidebars' => array(),
|
420 |
'groups' => FALSE,
|
421 |
+
'sidebar' => FALSE,
|
422 |
'deactivation' => FALSE
|
423 |
);
|
424 |
|
425 |
//display groups?
|
426 |
$save_widgets['groups'] = (isset($_POST['options-widgets-groups']) ? TRUE : FALSE);
|
427 |
|
428 |
+
//modify is_active_sidebar?
|
429 |
+
$save_widgets['sidebar'] = (isset($_POST['options-widgets-sidebar']) ? TRUE : FALSE);
|
430 |
+
|
431 |
//remove plugin data?
|
432 |
$save_widgets['deactivation'] = (isset($_POST['options-widgets-deactivation']) ? TRUE : FALSE);
|
433 |
|
464 |
}
|
465 |
}
|
466 |
|
467 |
+
foreach($this->custom_post_types as $cpt)
|
468 |
{
|
469 |
if(in_array('cpt_'.$cpt->name, $selected, TRUE))
|
470 |
{
|
652 |
<label for="options-widgets-groups" class="description">'.__('Display widget options in groups', 'restrict-widgets').'</label>
|
653 |
</td>
|
654 |
</tr>
|
655 |
+
<tr>
|
656 |
+
<td class="label"><label>'.__('Modify is_active_sidebar()', 'restrict-widgets').'</label></td>
|
657 |
+
<td>
|
658 |
+
<input type="checkbox" name="options-widgets-sidebar" id="options-widgets-sidebar" value="1" '.checked($option['sidebar'], TRUE, FALSE).' />
|
659 |
+
<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>
|
660 |
+
</td>
|
661 |
+
</tr>
|
662 |
<tr>
|
663 |
<td class="label"><label>'.__('Plugin Deactivation', 'restrict-widgets').'</label></td>
|
664 |
<td>
|
1277 |
$action = explode('_', $option, 2);
|
1278 |
|
1279 |
if($type === 'main')
|
|
|
1280 |
$array = array('category', 'taxonomy', 'cpt', 'cpta', 'pageid', 'others');
|
|
|
1281 |
elseif($type === 'lang')
|
|
|
1282 |
$array = array('language');
|
|
|
1283 |
elseif($type === 'user')
|
|
|
1284 |
$array = array('users');
|
|
|
1285 |
|
1286 |
if(in_array($action[0], $array))
|
|
|
1287 |
return FALSE;
|
|
|
1288 |
}
|
1289 |
}
|
1290 |
|
1295 |
/**
|
1296 |
* Manages front-end display of widgets
|
1297 |
*/
|
1298 |
+
public function display_frontend_widgets($instance, $class, $args)
|
1299 |
+
{
|
1300 |
+
return $this->restrict_widget($instance, TRUE, $args);
|
1301 |
+
}
|
1302 |
+
|
1303 |
+
|
1304 |
+
/**
|
1305 |
+
* Displays or hides specific widget
|
1306 |
+
*/
|
1307 |
+
private function restrict_widget($instance, $filter = TRUE, $args = array())
|
1308 |
{
|
1309 |
global $wp_query;
|
1310 |
|
1326 |
if($display_type === TRUE)
|
1327 |
{
|
1328 |
if($found_lang === TRUE)
|
|
|
1329 |
$display_lang = TRUE;
|
|
|
1330 |
else
|
1331 |
{
|
1332 |
$return = TRUE;
|
1334 |
}
|
1335 |
}
|
1336 |
else
|
|
|
1337 |
$display_lang = ($found_lang === TRUE ? FALSE : TRUE);
|
|
|
1338 |
}
|
1339 |
else
|
|
|
1340 |
$display_lang = TRUE;
|
|
|
1341 |
}
|
1342 |
else
|
|
|
1343 |
$display_lang = TRUE;
|
|
|
1344 |
|
1345 |
if($return === FALSE)
|
1346 |
{
|
1351 |
if(is_user_logged_in())
|
1352 |
{
|
1353 |
if(isset($instance['rw_opt']['users_logged_in'], $instance['rw_opt']['users_logged_out']) || isset($instance['rw_opt']['users_logged_in']))
|
|
|
1354 |
$found_user = TRUE;
|
|
|
1355 |
elseif(isset($instance['rw_opt']['users_logged_out']))
|
|
|
1356 |
$found_user = FALSE;
|
|
|
1357 |
}
|
1358 |
else
|
1359 |
{
|
1360 |
if(isset($instance['rw_opt']['users_logged_out'], $instance['rw_opt']['users_logged_in']) || isset($instance['rw_opt']['users_logged_out']))
|
|
|
1361 |
$found_user = TRUE;
|
|
|
1362 |
elseif(isset($instance['rw_opt']['users_logged_in']))
|
|
|
1363 |
$found_user = FALSE;
|
|
|
1364 |
}
|
1365 |
|
1366 |
if($display_type === TRUE)
|
1367 |
{
|
1368 |
if($found_user === TRUE)
|
|
|
1369 |
$display_user = TRUE;
|
|
|
1370 |
else
|
1371 |
{
|
1372 |
$return = TRUE;
|
1374 |
}
|
1375 |
}
|
1376 |
else
|
|
|
1377 |
$display_user = ($found_user === TRUE ? FALSE : TRUE);
|
|
|
1378 |
}
|
1379 |
else
|
|
|
1380 |
$display_user = TRUE;
|
|
|
1381 |
}
|
1382 |
|
1383 |
if($return === FALSE)
|
1391 |
$found_main = isset($instance['rw_opt']['others_front_page']) ? TRUE : FALSE;
|
1392 |
|
1393 |
if(is_home() && $found_main == FALSE)
|
|
|
1394 |
$found_main = isset($instance['rw_opt']['others_blog_page']) ? TRUE : FALSE;
|
|
|
1395 |
}
|
1396 |
elseif(is_home())
|
|
|
1397 |
$found_main = isset($instance['rw_opt']['others_blog_page']) ? TRUE : FALSE;
|
|
|
1398 |
elseif(is_page())
|
|
|
1399 |
$found_main = isset($instance['rw_opt']['pageid_'.$post_id]) ? TRUE : FALSE;
|
|
|
1400 |
elseif(is_singular())
|
1401 |
{
|
1402 |
$found_main = isset($instance['rw_opt']['cpt_'.get_post_type($post_id)]) ? TRUE : FALSE;
|
1403 |
|
1404 |
if(is_single() && $found_main == FALSE)
|
|
|
1405 |
$found_main = isset($instance['rw_opt']['others_single_post']) ? TRUE : FALSE;
|
|
|
1406 |
}
|
1407 |
elseif(is_category())
|
|
|
1408 |
$found_main = isset($instance['rw_opt']['category_'.get_query_var('cat')]) ? TRUE : FALSE;
|
|
|
1409 |
elseif(is_tax())
|
|
|
1410 |
$found_main = isset($instance['rw_opt']['taxonomy_'.get_query_var('taxonomy')]) ? TRUE : FALSE;
|
|
|
1411 |
elseif(is_404())
|
|
|
1412 |
$found_main = isset($instance['rw_opt']['others_404_page']) ? TRUE : FALSE;
|
|
|
1413 |
elseif(is_sticky())
|
|
|
1414 |
$found_main = isset($instance['rw_opt']['others_sticky_post']) ? TRUE : FALSE;
|
|
|
1415 |
elseif(is_search())
|
|
|
1416 |
$found_main = isset($instance['rw_opt']['others_search_page']) ? TRUE : FALSE;
|
|
|
1417 |
elseif(is_author())
|
|
|
1418 |
$found_main = isset($instance['rw_opt']['others_author_archive']) ? TRUE : FALSE;
|
|
|
1419 |
elseif(is_date())
|
|
|
1420 |
$found_main = isset($instance['rw_opt']['others_date_archive']) ? TRUE : FALSE;
|
|
|
1421 |
elseif(is_post_type_archive())
|
|
|
1422 |
$found_main = isset($instance['rw_opt']['cpta_'.get_post_type($post_id)]) ? TRUE : FALSE;
|
|
|
1423 |
|
1424 |
$display_main = ($display_type === TRUE ? ($found_main === TRUE ? TRUE : FALSE) : ($found_main === TRUE ? FALSE : TRUE));
|
1425 |
}
|
1426 |
else
|
|
|
1427 |
$display_main = TRUE;
|
|
|
1428 |
}
|
1429 |
|
1430 |
+
if($filter === FALSE)
|
1431 |
+
$instance = TRUE;
|
1432 |
+
|
1433 |
if($display_type === TRUE)
|
|
|
1434 |
$final_return = ($display_lang === TRUE && $display_user === TRUE && $display_main === TRUE ? $instance : FALSE);
|
|
|
1435 |
else
|
|
|
1436 |
$final_return = ((($empty_lang === FALSE && $empty_user === FALSE && $empty_main === FALSE && $display_lang === FALSE && $display_user === FALSE && $display_main === FALSE) || ($empty_lang === FALSE && $empty_user === FALSE && $display_lang === FALSE && $display_user === FALSE) || ($empty_lang === FALSE && $empty_main === FALSE && $display_lang === FALSE && $display_main === FALSE) || ($empty_user === FALSE && $empty_main === FALSE && $display_user === FALSE && $display_main === FALSE) || ($empty_lang === FALSE && $display_lang === FALSE) || ($empty_user === FALSE && $display_lang === FALSE) || ($empty_main === FALSE && $display_main === FALSE)) ? FALSE : $instance);
|
|
|
1437 |
|
1438 |
// filter true or false
|
1439 |
+
if($filter === TRUE)
|
1440 |
+
$final_return = apply_filters_ref_array('rw_display_widget', array($final_return, $instance));
|
1441 |
+
|
1442 |
// if true return instance
|
1443 |
$final_return = ($final_return === FALSE) ? FALSE : $instance;
|
1444 |
+
|
1445 |
//display: return $instance, hide: return FALSE
|
1446 |
return $final_return;
|
1447 |
}
|