Simply Exclude - Version 2.0.2

Version Description

Download this release

Release Info

Developer pmenard
Plugin Icon wp plugin Simply Exclude
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

languages/simply-exclude-default.mo ADDED
Binary file
languages/simply-exclude-default.po ADDED
@@ -0,0 +1,318 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin by .
2
+ # Copyright (C) 2012
3
+ # This file is distributed under the same license as the package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: simply-exclude\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/simply-exclude\n"
10
+ "POT-Creation-Date: 2012-03-05 13:54-0600\n"
11
+ "PO-Revision-Date: 2012-03-05 14:57-0500\n"
12
+ "Last-Translator: Paul Menard <paul@codehooligans.com>\n"
13
+ "Language-Team: <simply-exclude@codehooligans.com>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-Language: English\n"
18
+
19
+ #: simplyexclude.php:48
20
+ #: simplyexclude.php:660
21
+ #: simplyexclude.php:669
22
+ #: simplyexclude.php:678
23
+ msgid "Simply Exclude"
24
+ msgstr ""
25
+
26
+ #: simplyexclude.php:111
27
+ msgid "Settings"
28
+ msgstr ""
29
+
30
+ #: simplyexclude.php:301
31
+ #: simplyexclude.php:344
32
+ #: simplyexclude.php:406
33
+ msgid "Action Name"
34
+ msgstr ""
35
+
36
+ #: simplyexclude.php:302
37
+ #: simplyexclude.php:345
38
+ #: simplyexclude.php:407
39
+ msgid "Description "
40
+ msgstr ""
41
+
42
+ #: simplyexclude.php:303
43
+ #: simplyexclude.php:346
44
+ #: simplyexclude.php:408
45
+ msgid "Inclusion/Exclusion"
46
+ msgstr ""
47
+
48
+ #: simplyexclude.php:319
49
+ #: simplyexclude.php:362
50
+ #: simplyexclude.php:424
51
+ #: simplyexclude.php:2579
52
+ #: simplyexclude.php:2589
53
+ #: simplyexclude.php:2598
54
+ msgid "Include only"
55
+ msgstr ""
56
+
57
+ #: simplyexclude.php:321
58
+ #: simplyexclude.php:364
59
+ #: simplyexclude.php:426
60
+ #: simplyexclude.php:2580
61
+ #: simplyexclude.php:2590
62
+ #: simplyexclude.php:2599
63
+ msgid "Exclude"
64
+ msgstr ""
65
+
66
+ #: simplyexclude.php:371
67
+ #: simplyexclude.php:380
68
+ msgid "Include All"
69
+ msgstr ""
70
+
71
+ #: simplyexclude.php:458
72
+ #: simplyexclude.php:467
73
+ #: simplyexclude.php:492
74
+ #: simplyexclude.php:501
75
+ #: simplyexclude.php:526
76
+ #: simplyexclude.php:535
77
+ msgid "Active"
78
+ msgstr ""
79
+
80
+ #: simplyexclude.php:463
81
+ msgid "Is this Taxonomy active? This is sometimes convenient instead of unsetting all Taxonomy terms."
82
+ msgstr ""
83
+
84
+ #: simplyexclude.php:470
85
+ #: simplyexclude.php:504
86
+ #: simplyexclude.php:538
87
+ msgid "Disabled"
88
+ msgstr ""
89
+
90
+ #: simplyexclude.php:497
91
+ msgid "Is this Post Type Active? This is sometimes convenient instead of unsetting all Post Type items."
92
+ msgstr ""
93
+
94
+ #: simplyexclude.php:531
95
+ msgid "Active?"
96
+ msgstr ""
97
+
98
+ #: simplyexclude.php:567
99
+ #: simplyexclude.php:598
100
+ #: simplyexclude.php:629
101
+ msgid "Show/Hide"
102
+ msgstr ""
103
+
104
+ #: simplyexclude.php:572
105
+ msgid "Show the extra columns on the Taxonomy listing and the Taxonomy edit form?"
106
+ msgstr ""
107
+
108
+ #: simplyexclude.php:576
109
+ #: simplyexclude.php:607
110
+ #: simplyexclude.php:638
111
+ msgid "Show"
112
+ msgstr ""
113
+
114
+ #: simplyexclude.php:579
115
+ #: simplyexclude.php:610
116
+ #: simplyexclude.php:641
117
+ msgid "Hide"
118
+ msgstr ""
119
+
120
+ #: simplyexclude.php:603
121
+ msgid "Show the extra columns on the Post Type listing and the Post Type edit form?"
122
+ msgstr ""
123
+
124
+ #: simplyexclude.php:634
125
+ msgid "Show the extra columns on the listing and the edit form?"
126
+ msgstr ""
127
+
128
+ #: simplyexclude.php:660
129
+ #: simplyexclude.php:669
130
+ #: simplyexclude.php:678
131
+ msgid "show"
132
+ msgstr ""
133
+
134
+ #: simplyexclude.php:1025
135
+ msgctxt "Simply Exclude"
136
+ msgid "Simply Exclude"
137
+ msgstr ""
138
+
139
+ #: simplyexclude.php:1599
140
+ #: simplyexclude.php:1721
141
+ #: simplyexclude.php:1816
142
+ msgid "Front/Home"
143
+ msgstr ""
144
+
145
+ #: simplyexclude.php:1603
146
+ #: simplyexclude.php:1820
147
+ msgid "Visibility on the front/main page."
148
+ msgstr ""
149
+
150
+ #: simplyexclude.php:1616
151
+ #: simplyexclude.php:1738
152
+ #: simplyexclude.php:1834
153
+ msgid "Archives"
154
+ msgstr ""
155
+
156
+ #: simplyexclude.php:1620
157
+ #: simplyexclude.php:1838
158
+ msgid "Visibility on the archive of categories on the sidebar."
159
+ msgstr ""
160
+
161
+ #: simplyexclude.php:1634
162
+ #: simplyexclude.php:1772
163
+ #: simplyexclude.php:1852
164
+ msgid "Searches"
165
+ msgstr ""
166
+
167
+ #: simplyexclude.php:1638
168
+ #: simplyexclude.php:1776
169
+ #: simplyexclude.php:1856
170
+ msgid "Visibility in search results."
171
+ msgstr ""
172
+
173
+ #: simplyexclude.php:1652
174
+ #: simplyexclude.php:1755
175
+ #: simplyexclude.php:1870
176
+ msgid "Feeds"
177
+ msgstr ""
178
+
179
+ #: simplyexclude.php:1656
180
+ #: simplyexclude.php:1759
181
+ #: simplyexclude.php:1874
182
+ msgid "Visibility in RSS/RSS2/Atom feeds."
183
+ msgstr ""
184
+
185
+ #: simplyexclude.php:1670
186
+ msgid "Widget: Categories"
187
+ msgstr ""
188
+
189
+ #: simplyexclude.php:1674
190
+ msgid "Exclude from WordPress List Category Widget."
191
+ msgstr ""
192
+
193
+ #: simplyexclude.php:1691
194
+ msgid "Widget: Tag Cloud"
195
+ msgstr ""
196
+
197
+ #: simplyexclude.php:1695
198
+ msgid "Exclude from WordPress Tag Cloud Widget."
199
+ msgstr ""
200
+
201
+ #: simplyexclude.php:1725
202
+ msgid "Visibility on the front/main page. Set 'Include All' to have this Post Type displayed in addition to the normal Posts."
203
+ msgstr ""
204
+
205
+ #: simplyexclude.php:1742
206
+ msgid "Visibility on the Post Type archive."
207
+ msgstr ""
208
+
209
+ #: simplyexclude.php:1788
210
+ msgid "Widget: Pages"
211
+ msgstr ""
212
+
213
+ #: simplyexclude.php:1792
214
+ msgid "Exclude from WordPress Pages Widget. Child pages are automatically excluded if the parent is Excluded."
215
+ msgstr ""
216
+
217
+ #: simplyexclude.php:2577
218
+ msgid "Set the checkbox to exclude the User items from the action"
219
+ msgstr ""
220
+
221
+ #: simplyexclude.php:2578
222
+ #: simplyexclude.php:2588
223
+ #: simplyexclude.php:2597
224
+ msgid "So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?"
225
+ msgstr ""
226
+
227
+ #: simplyexclude.php:2579
228
+ msgid "For example you have 3 Users but always want to show Posts for only 1 specific User in the Archives. New Users are automatically hidden."
229
+ msgstr ""
230
+
231
+ #: simplyexclude.php:2580
232
+ msgid "For example you have 3 Users but want to hide Posts from one User in the Archives. New Users will by visible."
233
+ msgstr ""
234
+
235
+ #: simplyexclude.php:2587
236
+ msgid "Set the checkbox to exclude the Taxonomy items from the action"
237
+ msgstr ""
238
+
239
+ #: simplyexclude.php:2589
240
+ msgid "For example you have 100 tags but only always want 3 to be used on the home page. New tags added are automatically hidden."
241
+ msgstr ""
242
+
243
+ #: simplyexclude.php:2590
244
+ msgid "For example you have 100 categories but want to hide 3 from being seen. New tags will be visible."
245
+ msgstr ""
246
+
247
+ #: simplyexclude.php:2596
248
+ msgid "Set the checkbox to exclude the Post Type items from the action"
249
+ msgstr ""
250
+
251
+ #: simplyexclude.php:2598
252
+ msgid "For example you have 10 Pages but only always want to include only 4 Pages shown in a Search. New Pages are automatically hidden."
253
+ msgstr ""
254
+
255
+ #: simplyexclude.php:2599
256
+ msgid "For example you have 10 Pages and want to hide 3 specific Pages from Search. New Pages will be visible."
257
+ msgstr ""
258
+
259
+ #: simplyexclude.php:2614
260
+ msgctxt "Options Page Title"
261
+ msgid "Simply Exclude Manage Settings"
262
+ msgstr ""
263
+
264
+ #: simplyexclude.php:2690
265
+ msgid "Your Simply Excluded has successfully been reloaded."
266
+ msgstr ""
267
+
268
+ #: simplyexclude.php:2693
269
+ msgid ""
270
+ "Version 2.0 and 2.0.1 of the plugins incorrectly converted your previous configuration of excluded items into a new format. You can use this \n"
271
+ "\t\t\toption to force a reload of your Simply Exclude configuration into the new format."
272
+ msgstr ""
273
+
274
+ #: simplyexclude.php:2701
275
+ msgid "Reload Configuration"
276
+ msgstr ""
277
+
278
+ #: simplyexclude.php:2710
279
+ msgid "The Simply Exclude plugin now works with a few other plugins. Check the box for support of the listed third party plugins options below"
280
+ msgstr ""
281
+
282
+ #: simplyexclude.php:2711
283
+ msgid "When you update this section you will then also need to go back into the Simply Exclude Category or Pages section and re-save the settings. This re-save will then update the third-party plugin settings with the update excluded values. On the respective Category or Pages sections of Simply Exclude you can use either include or exclude action."
284
+ msgstr ""
285
+
286
+ #: simplyexclude.php:2712
287
+ msgid "Warning: Once enabled it is suggested you make edits to the exclusion/inclusion via Simply Exclude. Any Page or Category exclusion made in the third-party plugins will be over written by changed from Simply Exclude."
288
+ msgstr ""
289
+
290
+ #: simplyexclude.php:2717
291
+ msgid "Plugin Name"
292
+ msgstr ""
293
+
294
+ #: simplyexclude.php:2718
295
+ msgid "Description of Functionality"
296
+ msgstr ""
297
+
298
+ #: simplyexclude.php:2719
299
+ msgid "Actions"
300
+ msgstr ""
301
+
302
+ #: simplyexclude.php:2774
303
+ msgid "Plugin Homepage"
304
+ msgstr ""
305
+
306
+ #: simplyexclude.php:2780
307
+ msgid "Show your support of this plugin by making a small donation to support future development. No donation amount too small."
308
+ msgstr ""
309
+
310
+ #: simplyexclude.php:2783
311
+ msgid "Make a donation today"
312
+ msgstr ""
313
+
314
+ #: simplyexclude.php:2792
315
+ msgctxt "Options Page Title"
316
+ msgid "Simply Exclude Help"
317
+ msgstr ""
318
+
languages/simply-exclude.pot ADDED
@@ -0,0 +1,308 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin by .
2
+ # Copyright (C) 2012
3
+ # This file is distributed under the same license as the package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: \n"
10
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/simply-exclude\n"
11
+ "POT-Creation-Date: 2012-03-05 13:54-0600\n"
12
+ "PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=utf-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+
19
+ #: simplyexclude.php:48 simplyexclude.php:660 simplyexclude.php:669
20
+ #: simplyexclude.php:678
21
+ msgid "Simply Exclude"
22
+ msgstr ""
23
+
24
+ #: simplyexclude.php:111
25
+ msgid "Settings"
26
+ msgstr ""
27
+
28
+ #: simplyexclude.php:301 simplyexclude.php:344 simplyexclude.php:406
29
+ msgid "Action Name"
30
+ msgstr ""
31
+
32
+ #: simplyexclude.php:302 simplyexclude.php:345 simplyexclude.php:407
33
+ msgid "Description "
34
+ msgstr ""
35
+
36
+ #: simplyexclude.php:303 simplyexclude.php:346 simplyexclude.php:408
37
+ msgid "Inclusion/Exclusion"
38
+ msgstr ""
39
+
40
+ #: simplyexclude.php:319 simplyexclude.php:362 simplyexclude.php:424
41
+ #: simplyexclude.php:2579 simplyexclude.php:2589 simplyexclude.php:2598
42
+ msgid "Include only"
43
+ msgstr ""
44
+
45
+ #: simplyexclude.php:321 simplyexclude.php:364 simplyexclude.php:426
46
+ #: simplyexclude.php:2580 simplyexclude.php:2590 simplyexclude.php:2599
47
+ msgid "Exclude"
48
+ msgstr ""
49
+
50
+ #: simplyexclude.php:371 simplyexclude.php:380
51
+ msgid "Include All"
52
+ msgstr ""
53
+
54
+ #: simplyexclude.php:458 simplyexclude.php:467 simplyexclude.php:492
55
+ #: simplyexclude.php:501 simplyexclude.php:526 simplyexclude.php:535
56
+ msgid "Active"
57
+ msgstr ""
58
+
59
+ #: simplyexclude.php:463
60
+ msgid ""
61
+ "Is this Taxonomy active? This is sometimes convenient instead of unsetting "
62
+ "all Taxonomy terms."
63
+ msgstr ""
64
+
65
+ #: simplyexclude.php:470 simplyexclude.php:504 simplyexclude.php:538
66
+ msgid "Disabled"
67
+ msgstr ""
68
+
69
+ #: simplyexclude.php:497
70
+ msgid ""
71
+ "Is this Post Type Active? This is sometimes convenient instead of unsetting "
72
+ "all Post Type items."
73
+ msgstr ""
74
+
75
+ #: simplyexclude.php:531
76
+ msgid "Active?"
77
+ msgstr ""
78
+
79
+ #: simplyexclude.php:567 simplyexclude.php:598 simplyexclude.php:629
80
+ msgid "Show/Hide"
81
+ msgstr ""
82
+
83
+ #: simplyexclude.php:572
84
+ msgid ""
85
+ "Show the extra columns on the Taxonomy listing and the Taxonomy edit form?"
86
+ msgstr ""
87
+
88
+ #: simplyexclude.php:576 simplyexclude.php:607 simplyexclude.php:638
89
+ msgid "Show"
90
+ msgstr ""
91
+
92
+ #: simplyexclude.php:579 simplyexclude.php:610 simplyexclude.php:641
93
+ msgid "Hide"
94
+ msgstr ""
95
+
96
+ #: simplyexclude.php:603
97
+ msgid ""
98
+ "Show the extra columns on the Post Type listing and the Post Type edit form?"
99
+ msgstr ""
100
+
101
+ #: simplyexclude.php:634
102
+ msgid "Show the extra columns on the listing and the edit form?"
103
+ msgstr ""
104
+
105
+ #: simplyexclude.php:660 simplyexclude.php:669 simplyexclude.php:678
106
+ msgid "show"
107
+ msgstr ""
108
+
109
+ #: simplyexclude.php:1025
110
+ msgctxt "Simply Exclude"
111
+ msgid "Simply Exclude"
112
+ msgstr ""
113
+
114
+ #: simplyexclude.php:1599 simplyexclude.php:1721 simplyexclude.php:1816
115
+ msgid "Front/Home"
116
+ msgstr ""
117
+
118
+ #: simplyexclude.php:1603 simplyexclude.php:1820
119
+ msgid "Visibility on the front/main page."
120
+ msgstr ""
121
+
122
+ #: simplyexclude.php:1616 simplyexclude.php:1738 simplyexclude.php:1834
123
+ msgid "Archives"
124
+ msgstr ""
125
+
126
+ #: simplyexclude.php:1620 simplyexclude.php:1838
127
+ msgid "Visibility on the archive of categories on the sidebar."
128
+ msgstr ""
129
+
130
+ #: simplyexclude.php:1634 simplyexclude.php:1772 simplyexclude.php:1852
131
+ msgid "Searches"
132
+ msgstr ""
133
+
134
+ #: simplyexclude.php:1638 simplyexclude.php:1776 simplyexclude.php:1856
135
+ msgid "Visibility in search results."
136
+ msgstr ""
137
+
138
+ #: simplyexclude.php:1652 simplyexclude.php:1755 simplyexclude.php:1870
139
+ msgid "Feeds"
140
+ msgstr ""
141
+
142
+ #: simplyexclude.php:1656 simplyexclude.php:1759 simplyexclude.php:1874
143
+ msgid "Visibility in RSS/RSS2/Atom feeds."
144
+ msgstr ""
145
+
146
+ #: simplyexclude.php:1670
147
+ msgid "Widget: Categories"
148
+ msgstr ""
149
+
150
+ #: simplyexclude.php:1674
151
+ msgid "Exclude from WordPress List Category Widget."
152
+ msgstr ""
153
+
154
+ #: simplyexclude.php:1691
155
+ msgid "Widget: Tag Cloud"
156
+ msgstr ""
157
+
158
+ #: simplyexclude.php:1695
159
+ msgid "Exclude from WordPress Tag Cloud Widget."
160
+ msgstr ""
161
+
162
+ #: simplyexclude.php:1725
163
+ msgid ""
164
+ "Visibility on the front/main page. Set 'Include All' to have this Post Type "
165
+ "displayed in addition to the normal Posts."
166
+ msgstr ""
167
+
168
+ #: simplyexclude.php:1742
169
+ msgid "Visibility on the Post Type archive."
170
+ msgstr ""
171
+
172
+ #: simplyexclude.php:1788
173
+ msgid "Widget: Pages"
174
+ msgstr ""
175
+
176
+ #: simplyexclude.php:1792
177
+ msgid ""
178
+ "Exclude from WordPress Pages Widget. Child pages are automatically excluded "
179
+ "if the parent is Excluded."
180
+ msgstr ""
181
+
182
+ #: simplyexclude.php:2577
183
+ msgid "Set the checkbox to exclude the User items from the action"
184
+ msgstr ""
185
+
186
+ #: simplyexclude.php:2578 simplyexclude.php:2588 simplyexclude.php:2597
187
+ msgid ""
188
+ "So what is the difference between <strong>Include only</strong> and "
189
+ "<strong>Exclude</strong>?"
190
+ msgstr ""
191
+
192
+ #: simplyexclude.php:2579
193
+ msgid ""
194
+ "For example you have 3 Users but always want to show Posts for only 1 "
195
+ "specific User in the Archives. New Users are automatically hidden."
196
+ msgstr ""
197
+
198
+ #: simplyexclude.php:2580
199
+ msgid ""
200
+ "For example you have 3 Users but want to hide Posts from one User in the "
201
+ "Archives. New Users will by visible."
202
+ msgstr ""
203
+
204
+ #: simplyexclude.php:2587
205
+ msgid "Set the checkbox to exclude the Taxonomy items from the action"
206
+ msgstr ""
207
+
208
+ #: simplyexclude.php:2589
209
+ msgid ""
210
+ "For example you have 100 tags but only always want 3 to be used on the home "
211
+ "page. New tags added are automatically hidden."
212
+ msgstr ""
213
+
214
+ #: simplyexclude.php:2590
215
+ msgid ""
216
+ "For example you have 100 categories but want to hide 3 from being seen. New "
217
+ "tags will be visible."
218
+ msgstr ""
219
+
220
+ #: simplyexclude.php:2596
221
+ msgid "Set the checkbox to exclude the Post Type items from the action"
222
+ msgstr ""
223
+
224
+ #: simplyexclude.php:2598
225
+ msgid ""
226
+ "For example you have 10 Pages but only always want to include only 4 Pages "
227
+ "shown in a Search. New Pages are automatically hidden."
228
+ msgstr ""
229
+
230
+ #: simplyexclude.php:2599
231
+ msgid ""
232
+ "For example you have 10 Pages and want to hide 3 specific Pages from Search. "
233
+ "New Pages will be visible."
234
+ msgstr ""
235
+
236
+ #: simplyexclude.php:2614
237
+ msgctxt "Options Page Title"
238
+ msgid "Simply Exclude Manage Settings"
239
+ msgstr ""
240
+
241
+ #: simplyexclude.php:2690
242
+ msgid "Your Simply Excluded has successfully been reloaded."
243
+ msgstr ""
244
+
245
+ #: simplyexclude.php:2693
246
+ msgid ""
247
+ "Version 2.0 and 2.0.1 of the plugins incorrectly converted your previous "
248
+ "configuration of excluded items into a new format. You can use this \n"
249
+ "\t\t\toption to force a reload of your Simply Exclude configuration into the "
250
+ "new format."
251
+ msgstr ""
252
+
253
+ #: simplyexclude.php:2701
254
+ msgid "Reload Configuration"
255
+ msgstr ""
256
+
257
+ #: simplyexclude.php:2710
258
+ msgid ""
259
+ "The Simply Exclude plugin now works with a few other plugins. Check the box "
260
+ "for support of the listed third party plugins options below"
261
+ msgstr ""
262
+
263
+ #: simplyexclude.php:2711
264
+ msgid ""
265
+ "When you update this section you will then also need to go back into the "
266
+ "Simply Exclude Category or Pages section and re-save the settings. This re-"
267
+ "save will then update the third-party plugin settings with the update "
268
+ "excluded values. On the respective Category or Pages sections of Simply "
269
+ "Exclude you can use either include or exclude action."
270
+ msgstr ""
271
+
272
+ #: simplyexclude.php:2712
273
+ msgid ""
274
+ "Warning: Once enabled it is suggested you make edits to the exclusion/"
275
+ "inclusion via Simply Exclude. Any Page or Category exclusion made in the "
276
+ "third-party plugins will be over written by changed from Simply Exclude."
277
+ msgstr ""
278
+
279
+ #: simplyexclude.php:2717
280
+ msgid "Plugin Name"
281
+ msgstr ""
282
+
283
+ #: simplyexclude.php:2718
284
+ msgid "Description of Functionality"
285
+ msgstr ""
286
+
287
+ #: simplyexclude.php:2719
288
+ msgid "Actions"
289
+ msgstr ""
290
+
291
+ #: simplyexclude.php:2774
292
+ msgid "Plugin Homepage"
293
+ msgstr ""
294
+
295
+ #: simplyexclude.php:2780
296
+ msgid ""
297
+ "Show your support of this plugin by making a small donation to support "
298
+ "future development. No donation amount too small."
299
+ msgstr ""
300
+
301
+ #: simplyexclude.php:2783
302
+ msgid "Make a donation today"
303
+ msgstr ""
304
+
305
+ #: simplyexclude.php:2792
306
+ msgctxt "Options Page Title"
307
+ msgid "Simply Exclude Help"
308
+ msgstr ""
readme.txt CHANGED
@@ -4,10 +4,13 @@ Donate link: http://www.codehooligans.com
4
  Tags: admin, posts, pages, categories, tags, Post Type, Taxonomy, exclude, include, is_front, is_archive, is_search, is_feed, is_author
5
  Requires at least: 3.2
6
  Tested up to: 3.3.1
7
- Stable tag: 2.0.1
8
 
9
  == Description ==
10
 
 
 
 
11
  Provides an interface to selectively exclude/include Post Types, Taxonomies and Authors 4 actions used by WordPress
12
 
13
  is_front - When the user views the Front page.
@@ -33,10 +36,7 @@ Well you need to be careful when excluding both categories and tags. Since a pos
33
 
34
  Only the parent Page itself is excluded from searches. By default WordPress does not yet include Pages in search. Make sure you have other search plugins correctly configured to not search attachments.
35
 
36
- = I've excluded a Page via the plugin but it still shows up in my sidebar when wp_list_pages is called. Why? =
37
-
38
- At the time (version 1.6.1) the plugin only effects Pages included in the traditional Search feature on a site. It does not trap all selections of Pages via other internal WordPress functions...yet!
39
-
40
 
41
  == Screenshots ==
42
 
4
  Tags: admin, posts, pages, categories, tags, Post Type, Taxonomy, exclude, include, is_front, is_archive, is_search, is_feed, is_author
5
  Requires at least: 3.2
6
  Tested up to: 3.3.1
7
+ Stable tag: 2.0.2
8
 
9
  == Description ==
10
 
11
+ Note to all used who tried the version 2.0 and 2.0.1 there were was bugs in the logic which upgrades the previous version of the Simply Exclude configuration to the version 2.0 format. If you lost your settings you can now reload them manually. Simply go into simply Exclude > Settings and at the very bottom is an option to reload the configuration again.
12
+
13
+
14
  Provides an interface to selectively exclude/include Post Types, Taxonomies and Authors 4 actions used by WordPress
15
 
16
  is_front - When the user views the Front page.
36
 
37
  Only the parent Page itself is excluded from searches. By default WordPress does not yet include Pages in search. Make sure you have other search plugins correctly configured to not search attachments.
38
 
39
+ See more FAQ information when you install the plugin. Look for the Help section.
 
 
 
40
 
41
  == Screenshots ==
42
 
simplyexclude.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /*
3
- Plugin Name: Simply Exclude New
4
  Plugin URI: http://www.codehooligans.com/projects/wordpress/simply-exclude/
5
  Description: Provides an interface to selectively exclude/include categories, tags and page from the 4 actions used by WordPress. is_front, is_archive, is_search, is_feed.
6
  Author: Paul Menard
7
- Version: 2.0.1
8
  Author URI: http://www.codehooligans.com
9
 
10
  Revision history
@@ -18,15 +18,15 @@ Revision history
18
  1.7.2.1 - 2009-07-01 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.
19
  1.7.5 - 2009-07015 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.
20
  1.7.6 - 2009-11-14 Fixes: Issue with the Pages exclusion. Many users reporting a permissions issue. Additions: Added handler logic to interface with two other plugins. One of the often used Google XML Sitemaps. When setting Page or Category exclusions you now have the option to update the Google XML Sitemaps exclude pages and categories automatically. The other plugin is Search Unleashed.
21
- 2.0 - 2012-01-23 Full rewrite of the plugin to support custom Taxonomies and Custom Post Types. Added support for managing items within the Taxonomy/Post Type panels. Added support for exclude/include on Post instead of just Categories and Tags. Dropped support for third-party plugins like Google XML Sitemaps and Seach Unleashed (Sorry!). Now correctly supporting Pages seach excludes. Yah!.
22
-
 
23
  */
24
 
25
  define('SIMPLY_EXCLUDE_I18N_DOMAIN', 'simplyexclude');
26
 
27
- class SimplyExcludeNew
28
  {
29
- public $wp_version;
30
  public $se_version;
31
  public $admin_menu_label;
32
  public $options_key;
@@ -44,10 +44,7 @@ class SimplyExcludeNew
44
 
45
  public function __construct() {
46
 
47
- global $wp_version;
48
- $this->wp_version = $wp_version;
49
-
50
- $this->se_version = "2.0";
51
 
52
  $this->admin_menu_label = __("Simply Exclude", SIMPLY_EXCLUDE_I18N_DOMAIN);
53
  $this->options_key = "simplyexclude_v2";
@@ -59,6 +56,9 @@ class SimplyExcludeNew
59
  $this->se_post_types_exclude = array('revision', 'nav_menu_item', 'attachment');
60
  $this->page_hooks = array();
61
 
 
 
 
62
  add_action( 'init', array(&$this,'init_proc') );
63
  add_action( 'admin_init', array(&$this,'admin_init_proc') );
64
  add_action( 'admin_menu', array(&$this,'se_add_nav') );
@@ -154,7 +154,6 @@ class SimplyExcludeNew
154
  return;
155
 
156
  $this->se_load_config();
157
- //echo "se_cfg<pre>"; print_r($this->se_cfg); echo "</pre>";
158
 
159
  // Now add a submenu for each registered taxonomy
160
  $se_taxonomies = $this->se_load_taxonomy_list();
@@ -165,7 +164,7 @@ class SimplyExcludeNew
165
  if ((isset($this->se_cfg['data']['taxonomies'][$t_item->name]['options']['showhide']))
166
  && ($this->se_cfg['data']['taxonomies'][$t_item->name]['options']['showhide'] == 'show'))
167
  {
168
- add_filter( "manage_edit-". $t_item->name ."_columns", array( &$this, 'se_manage_taxonomy_columns' ), 99 );
169
  add_filter( "manage_". $t_item->name. "_custom_column", array(&$this, 'se_display_taxonomy_column_actions'), 99, 3);
170
  }
171
  }
@@ -243,6 +242,14 @@ class SimplyExcludeNew
243
 
244
  // add_meta_box('se_options_thirdparty_panel', 'Other Plugins', array(&$this, 'se_options_thirdparty_panel'),
245
  // $this->pagehooks['se_manage_settings'], 'normal', 'core');
 
 
 
 
 
 
 
 
246
  }
247
 
248
  function on_load_help_page()
@@ -649,25 +656,28 @@ class SimplyExcludeNew
649
 
650
  function se_manage_taxonomy_columns($columns)
651
  {
652
- if (!isset($columns['se-actions']))
653
- $columns['se-actions'] = 'Simply Exclude <a id="se-show-actions-panel" href="#">show</a>';
 
 
654
  return $columns;
655
  }
656
 
657
  function se_manage_post_type_columns($columns)
658
  {
659
- //echo "columns<pre>"; print_r($columns); echo "</pre>";
660
- if (!isset($columns['se_actions']))
661
- $columns['se-actions'] = 'Simply Exclude <a id="se-show-actions-panel" href="#">show</a>';
 
662
  return $columns;
663
  }
664
 
665
  function se_manage_user_columns($columns)
666
  {
667
- //echo "columns<pre>"; print_r($columns); echo "</pre>";
668
- if (!isset($columns['se_actions']))
669
- $columns['se-actions'] = 'Simply Exclude <a id="se-show-actions-panel" href="#">show</a>';
670
-
671
  return $columns;
672
  }
673
 
@@ -682,15 +692,17 @@ class SimplyExcludeNew
682
  {
683
  global $taxonomy, $post_type;
684
 
685
- if ($column_name == "se-actions")
686
- {
687
- if ($taxonomy)
688
  {
689
- $term = get_term( $term_id, $taxonomy );
690
- if ($term)
691
  {
692
- $this->current_taxonomy = $this->se_cfg['data']['taxonomies'][$taxonomy];
693
- $this->se_display_taxonomy_term_action_row($taxonomy, $term);
 
 
 
 
694
  }
695
  }
696
  }
@@ -700,43 +712,47 @@ class SimplyExcludeNew
700
  {
701
  global $post_type;
702
 
703
- if ($column_name == "se-actions")
704
- {
705
- $this->current_post_type = $this->se_cfg['data']['post_types'][$post_type];
706
-
707
- if ($post_id)
708
  {
709
- $p_item = get_post( $post_id );
710
- if ($p_item)
711
- {
712
- $this->se_display_post_type_action_row($post_type, $p_item);
 
 
 
 
 
713
  }
714
  }
715
  }
716
  }
717
 
718
  function se_display_user_column_actions($junk, $column_name, $user_id )
719
- {
720
- if ($column_name == "se-actions")
721
- {
722
- $se_type = "users";
723
- if (isset($this->se_cfg['data']['se_types'][$se_type]))
724
  {
725
- ob_start();
726
-
727
- $this->current_se_type = $this->se_cfg['data']['se_types'][$se_type];
728
- if ($user_id)
729
  {
730
- $user = get_userdata($user_id);
731
- if ($user)
732
- {
733
- $this->se_display_user_action_row($se_type, $user);
 
 
 
 
 
 
734
  }
735
- }
736
 
737
- $out = ob_get_contents();
738
- ob_end_clean();
739
- return $out;
 
740
  }
741
  }
742
  }
@@ -753,22 +769,25 @@ class SimplyExcludeNew
753
  if (!$taxonomy) return;
754
  if (!$term) return;
755
 
756
- if ((isset($this->current_taxonomy['actions'])) && (count($this->current_taxonomy['actions'])))
757
- {
758
- foreach ($this->current_taxonomy['actions'] as $action_key => $action_val)
759
  {
760
- ?>
761
- <input type="checkbox"
762
- name="se_cfg[<?php echo $taxonomy; ?>][terms][<?php echo $action_key ?>][<?php echo $term->term_id ?>]"
763
- id="<?php echo $taxonomy; ?>-<?php echo $action_key ?>-<?php echo $term->term_id ?>" class="se-term-input"
764
- <?php
765
- if ((isset($this->current_taxonomy['terms'][$action_key][$term->term_id]))
766
- && ($this->current_taxonomy['terms'][$action_key][$term->term_id] == "on"))
767
- echo "checked='checked' ";
768
- ?> />&nbsp;<label for="<?php echo $taxonomy; ?>-<?php echo $action_key ?>-<?php echo $term->term_id ?>"
769
- class="se-term-label"><?php echo $this->get_taxonomy_action_label($taxonomy, $action_key, 'name'); ?></label><br />
 
 
770
 
771
- <?php
 
772
  }
773
  }
774
  }
@@ -778,23 +797,26 @@ class SimplyExcludeNew
778
  if (!$post_type) return;
779
  if (!$p_item) return;
780
 
781
- if ((isset($this->current_post_type['actions'])) && (count($this->current_post_type['actions'])))
782
- {
783
- foreach ($this->current_post_type['actions'] as $action_key => $action_val)
784
  {
785
- ?>
786
- <input type="checkbox"
787
- name="se_cfg[<?php echo $post_type; ?>][terms][<?php echo $action_key ?>][<?php echo $p_item->ID ?>]"
788
- id="<?php echo $post_type; ?>-<?php echo $action_key ?>-<?php echo $p_item->ID ?>" class="se-term-input"
789
- <?php
 
 
790
 
791
- if ((isset($this->current_post_type['terms'][$action_key][$p_item->ID]))
792
- && ($this->current_post_type['terms'][$action_key][$p_item->ID] == "on"))
793
- echo "checked='checked' ";
794
- ?> />&nbsp;<label for="<?php echo $post_type; ?>-<?php echo $action_key ?>-<?php echo $p_item->ID ?>">
795
- <?php echo $this->get_post_type_action_label($post_type, $action_key, 'name') ?></label><br />
796
 
797
- <?php
 
798
  }
799
  }
800
  }
@@ -804,24 +826,26 @@ class SimplyExcludeNew
804
  if (!$se_type) return;
805
  if (!$user) return;
806
 
807
- // Ths current_se_type is set in the caller.
808
- if ((isset($this->current_se_type['actions'])) && (count($this->current_se_type['actions'])))
809
- {
810
- foreach ($this->current_se_type['actions'] as $action_key => $action_val)
811
  {
812
- ?>
813
- <input type="checkbox"
814
- name="se_cfg[<?php echo $se_type; ?>][terms][<?php echo $action_key ?>][<?php echo $user->ID ?>]"
815
- id="<?php echo $se_type; ?>-<?php echo $action_key ?>-<?php echo $user->ID ?>" class="se-term-input"
816
- <?php
 
 
817
 
818
- if ((isset($this->current_se_type['terms'][$action_key][$user->ID]))
819
- && ($this->current_se_type['terms'][$action_key][$user->ID] == "on"))
820
- echo "checked='checked' ";
821
- ?> />&nbsp;<label for="<?php echo $se_type; ?>-<?php echo $action_key ?>-<?php echo $user->ID ?>">
822
- <?php echo $this->get_se_type_action_label($se_type, $action_key, 'name') ?></label><br />
823
 
824
- <?php
 
825
  }
826
  }
827
  }
@@ -838,16 +862,20 @@ class SimplyExcludeNew
838
  {
839
  $se_type = "users";
840
  $this->current_se_type = $this->se_cfg['data']['se_types'][$se_type];
841
- ?>
842
- <table class="form-table">
843
- <tr>
844
- <th><label for="simply-exclude">Simply-Exclude</label></th>
845
- <td class="cat-action"><?php $this->se_display_user_action_row('users', $profileuser) ?></td>
846
- </tr>
847
- </table>
848
-
849
- <?php
850
-
 
 
 
 
851
  }
852
 
853
  function se_save_user_profile($user_id)
@@ -1008,17 +1036,18 @@ class SimplyExcludeNew
1008
  if ((isset($taxonomy)) && (isset($term_id)))
1009
  {
1010
  // First remove all traces of the taxonomy item in the actions
1011
- foreach($this->se_cfg['data']['taxonomies'][$taxonomy]['terms'] as $cfg_action => $cfg_action_items)
1012
- {
1013
- foreach($cfg_action_items as $action_id => $action_val)
1014
  {
1015
- if ($action_id == $term_id)
1016
  {
1017
- unset($this->se_cfg['data']['taxonomies'][$taxonomy]['terms'][$cfg_action][$action_id]);
 
 
 
1018
  }
1019
  }
1020
  }
1021
-
1022
  if (isset($_REQUEST['se_cfg']))
1023
  {
1024
  $se_cfg = $_REQUEST['se_cfg'];
@@ -1052,62 +1081,10 @@ class SimplyExcludeNew
1052
  function se_load_config()
1053
  {
1054
  $tmp_se_cfg = get_option($this->options_key);
1055
- //echo "se_cfg<pre>"; print_r($tmp_se_cfg); echo "</pre>";
1056
- //die();
1057
 
1058
- //$tmp_se_cfg = '';
1059
  if (!$tmp_se_cfg)
1060
  {
1061
- // If we don't find the main SE option then assume we are upgrading to grab via the old 'key'
1062
- $tmp_se_cfg = get_option('simplyexclude');
1063
- if (is_serialized($tmp_se_cfg))
1064
- $this->se_cfg = unserialize($tmp_se_cfg);
1065
- else
1066
- $this->se_cfg = $tmp_se_cfg;
1067
-
1068
- if (isset($this->se_cfg['cfg']['myurl']))
1069
- unset($this->se_cfg['cfg']['myurl']);
1070
-
1071
- // Here assumed older data structure. Need to convert the old array elements to match the new Taxonomy tags
1072
- if (isset($this->se_cfg['cats']))
1073
- {
1074
- $this->se_cfg['data']['taxonomies']['category'] = $this->se_cfg['cats'];
1075
- unset($this->se_cfg['cats']);
1076
- }
1077
- if (isset($this->se_cfg['tags']))
1078
- {
1079
- $this->se_cfg['data']['taxonomies']['post_tag'] = $this->se_cfg['tags'];
1080
- unset($this->se_cfg['tags']);
1081
- }
1082
- if (isset($this->se_cfg['authors']))
1083
- {
1084
- $this->se_cfg['data']['se_types']['users'] = $this->se_cfg['authors'];
1085
- unset($this->se_cfg['authors']);
1086
- }
1087
- if (isset($this->se_cfg['pages']))
1088
- {
1089
- $this->se_cfg['data']['post_types']['pages'] = $this->se_cfg['pages'];
1090
- unset($this->se_cfg['pages']);
1091
- }
1092
- /*
1093
- if (isset($this->se_cfg['options']['google-sitemap-generator']))
1094
- {
1095
- $this->se_cfg['options']['plugins']['google-sitemap-generator'] = $this->se_cfg['options']['google-sitemap-generator'];
1096
- unset($this->se_cfg['options']['google-sitemap-generator']);
1097
-
1098
- if (!isset($this->se_cfg['options']['plugins']['google-sitemap-generator']['plugin_key']))
1099
- $this->se_cfg['options']['plugins']['google-sitemap-generator']['plugin_key'] = "google-sitemap-generator/sitemap.php";
1100
- }
1101
-
1102
- if (isset($this->se_cfg['options']['search-unleashed']))
1103
- {
1104
- $this->se_cfg['options']['plugins']['search-unleashed'] = $this->se_cfg['options']['search-unleashed'];
1105
- unset($this->se_cfg['options']['search-unleashed']);
1106
-
1107
- if (!isset($this->se_cfg['options']['plugins']['search-unleashed']['plugin_key']))
1108
- $this->se_cfg['options']['plugins']['search-unleashed']['plugin_key'] = "search-unleashed/search-unleashed.php";
1109
- }
1110
- */
1111
  }
1112
  else if ($tmp_se_cfg)
1113
  {
@@ -1116,9 +1093,10 @@ class SimplyExcludeNew
1116
  else
1117
  $this->se_cfg = $tmp_se_cfg;
1118
 
1119
- if (!isset($this->se_cfg['cfg']['version']))
1120
- $this->se_cfg['cfg']['version'] = $this->se_version;
1121
  }
 
1122
 
1123
  $se_taxonomies = $this->se_load_taxonomy_list();
1124
  if ($se_taxonomies)
@@ -1128,10 +1106,10 @@ class SimplyExcludeNew
1128
  if (!isset($this->se_cfg['data']['taxonomies'][$t_item->name]['actions']))
1129
  $this->se_cfg['data']['taxonomies'][$t_item->name]['actions'] = array();
1130
 
1131
- $actions = $this->se_load_taxonomy_default_actions($t_item->name);
1132
- if ($actions)
1133
  {
1134
- $this->se_cfg['data']['taxonomies'][$t_item->name]['actions'] = array_merge($actions,
1135
  $this->se_cfg['data']['taxonomies'][$t_item->name]['actions']);
1136
  }
1137
 
@@ -1268,9 +1246,169 @@ class SimplyExcludeNew
1268
  }
1269
  }
1270
  */
1271
- // echo "se_cfg<pre>"; print_r($this->se_cfg); echo "</pre>";
1272
  }
1273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1274
  function is_plugin_active( $plugin ) {
1275
  if (is_admin())
1276
  {
@@ -1323,9 +1461,11 @@ class SimplyExcludeNew
1323
  continue;
1324
 
1325
  $tax_struct = get_taxonomy($tax_item);
 
1326
  if ($tax_struct)
1327
  {
1328
- $se_taxonomies[$tax_struct->labels->name] = $tax_struct;
 
1329
  }
1330
  }
1331
  }
@@ -1348,7 +1488,8 @@ class SimplyExcludeNew
1348
  $post_type_struct = get_post_type_object($post_type_item);
1349
  if ($post_type_struct)
1350
  {
1351
- $se_post_types[$post_type_struct->labels->name] = $post_type_struct;
 
1352
  }
1353
  }
1354
  }
@@ -1377,20 +1518,20 @@ class SimplyExcludeNew
1377
  {
1378
  if (!$taxonomy) return;
1379
 
1380
- $taxonomy_actions['is_home']['action'] = "i";
1381
- $taxonomy_actions['is_archive']['action'] = "e";
1382
- $taxonomy_actions['is_search']['action'] = "e";
1383
- $taxonomy_actions['is_feed']['action'] = "e";
1384
 
1385
  if ($taxonomy == "category")
1386
  {
1387
- $taxonomy_actions['widget_category']['action'] = "e";
1388
- $taxonomy_actions['widget_tag_cloud']['action'] = "e";
1389
  }
1390
 
1391
  if ($taxonomy == "post_tag")
1392
  {
1393
- $taxonomy_actions['widget_tag_cloud']['action'] = "e";
1394
  }
1395
 
1396
  return $taxonomy_actions;
@@ -1407,19 +1548,19 @@ class SimplyExcludeNew
1407
 
1408
  if ($post_type_object->capability_type == "post")
1409
  {
1410
- $taxonomy_actions['is_home']['action'] = "i";
1411
- $taxonomy_actions['is_archive']['action'] = "e";
1412
- $taxonomy_actions['is_search']['action'] = "e";
1413
- $taxonomy_actions['is_feed']['action'] = "e";
1414
  }
1415
  else if ($post_type == "page")
1416
  {
1417
- $taxonomy_actions['is_search']['action'] = "e";
1418
- $taxonomy_actions['widget_pages']['action'] = "e";
1419
  }
1420
  else
1421
  {
1422
- $taxonomy_actions['is_search']['action'] = "e";
1423
  }
1424
  return $taxonomy_actions;
1425
  }
@@ -1427,10 +1568,10 @@ class SimplyExcludeNew
1427
 
1428
  function se_load_se_type_default_actions()
1429
  {
1430
- $taxonomy_actions['is_home']['action'] = "i";
1431
- $taxonomy_actions['is_archive']['action'] = "e";
1432
- $taxonomy_actions['is_search']['action'] = "e";
1433
- $taxonomy_actions['is_feed']['action'] = "e";
1434
 
1435
  return $taxonomy_actions;
1436
  }
@@ -1571,10 +1712,6 @@ class SimplyExcludeNew
1571
 
1572
  function get_post_type_action_label($post_type, $action, $key)
1573
  {
1574
- // echo "post_type=[". $post_type ."]<br />";
1575
- // echo "action=[". $action ."]<br />";
1576
- // echo "key=[". $key ."]<br />";
1577
-
1578
  switch($action)
1579
  {
1580
  case 'is_home':
@@ -1847,9 +1984,9 @@ class SimplyExcludeNew
1847
  else if ($key_key_data['actions'] == 'i')
1848
  $post__in = array_merge($post__in, $key_key_data['terms']);
1849
  }
1850
- // echo "post_types_array<pre>"; print_r($post_types_array); echo "</pre>";
1851
- // echo "post__not_in<pre>"; print_r($post__not_in); echo "</pre>";
1852
- // echo "post__in<pre>"; print_r($post__in); echo "</pre>";
1853
 
1854
  if (count($post__not_in))
1855
  {
@@ -1863,16 +2000,19 @@ class SimplyExcludeNew
1863
  //echo "post__in<pre>"; print_r($post__in); echo "</pre>";
1864
  $query->set('post__in', $post__in);
1865
  }
1866
-
1867
  $query_post_type = $query->get('post_type');
 
1868
  if (!$query_post_type) $query_post_type = array();
1869
  else if (!is_array($query_post_type))
1870
  {
1871
- $query_post_type[] = $query_post_type;
1872
  }
 
 
1873
  if ($post_types_array)
1874
  {
1875
- $query_post_type = array_unique(array_merge($post_types_array, $post_types_array));
1876
  $query->set('post_type', $query_post_type);
1877
  }
1878
  }
@@ -2504,9 +2644,9 @@ class SimplyExcludeNew
2504
  $se_taxonomies = $this->se_load_taxonomy_list();
2505
  if ($se_taxonomies)
2506
  {
2507
- foreach($se_taxonomies as $taxonomy)
2508
  {
2509
- ?><h4 class="simplyexclude-section-title"><?php echo $taxonomy->labels->name; ?></h4><?php
2510
  $this->se_show_taxonomy_active_panel($taxonomy->name);
2511
  $this->se_show_taxonomy_actions_panel($taxonomy->name);
2512
  $this->se_show_taxonomy_showhide_panel($taxonomy->name);
@@ -2520,9 +2660,9 @@ class SimplyExcludeNew
2520
  $se_post_types = $this->se_load_post_type_list();
2521
  if ($se_post_types)
2522
  {
2523
- foreach($se_post_types as $post_type)
2524
  {
2525
- ?><h4 class="simplyexclude-section-title"><?php echo $post_type->labels->name; ?></h4><?php
2526
  $this->se_show_post_type_active_panel($post_type->name);
2527
  $this->se_show_post_type_actions_panel($post_type->name);
2528
  $this->se_show_post_type_showhide_panel($post_type->name);
@@ -2539,6 +2679,32 @@ class SimplyExcludeNew
2539
  $this->se_show_se_type_showhide_panel('users');
2540
  }
2541
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2542
  function se_options_thirdparty_panel()
2543
  {
2544
  ?>
@@ -2789,4 +2955,4 @@ class SimplyExcludeNew
2789
  }
2790
  }
2791
 
2792
- $simplyexclude_new = new SimplyExcludeNew();
1
  <?php
2
  /*
3
+ Plugin Name: Simply Exclude
4
  Plugin URI: http://www.codehooligans.com/projects/wordpress/simply-exclude/
5
  Description: Provides an interface to selectively exclude/include categories, tags and page from the 4 actions used by WordPress. is_front, is_archive, is_search, is_feed.
6
  Author: Paul Menard
7
+ Version: 2.0.2
8
  Author URI: http://www.codehooligans.com
9
 
10
  Revision history
18
  1.7.2.1 - 2009-07-01 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.
19
  1.7.5 - 2009-07015 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.
20
  1.7.6 - 2009-11-14 Fixes: Issue with the Pages exclusion. Many users reporting a permissions issue. Additions: Added handler logic to interface with two other plugins. One of the often used Google XML Sitemaps. When setting Page or Category exclusions you now have the option to update the Google XML Sitemaps exclude pages and categories automatically. The other plugin is Search Unleashed.
21
+ 2.0 - 2012-03-03 Full rewrite of the plugin to support custom Taxonomies and Custom Post Types. Added support for managing items within the Taxonomy/Post Type panels. Added support for exclude/include on Post instead of just Categories and Tags. Dropped support for third-party plugins like Google XML Sitemaps and Seach Unleashed (Sorry!). Now correctly supporting Pages seach excludes. Yah!.
22
+ 2.0.1 - 2012-03-04 Small bug. On the new Simply Exclude Help panel I user the jQuery UI Accordion package. Seems I failed to check this when setting the minimum WordPress version I was supporting (3.2). Seems jQuery UI Accordion is not available in core WordPress until version 3.3. So have added my own libraries to cover the older versions of WordPress. Sorry about that. And thanks to @biswajeet for bringing this up in the WordPress forums.
23
+ 2.0.2 - 2012-03-05 Fixed some issues when converting from the previous version of the Simply Exclude configurations.
24
  */
25
 
26
  define('SIMPLY_EXCLUDE_I18N_DOMAIN', 'simplyexclude');
27
 
28
+ class SimplyExclude
29
  {
 
30
  public $se_version;
31
  public $admin_menu_label;
32
  public $options_key;
44
 
45
  public function __construct() {
46
 
47
+ $this->se_version = "2.0.2";
 
 
 
48
 
49
  $this->admin_menu_label = __("Simply Exclude", SIMPLY_EXCLUDE_I18N_DOMAIN);
50
  $this->options_key = "simplyexclude_v2";
56
  $this->se_post_types_exclude = array('revision', 'nav_menu_item', 'attachment');
57
  $this->page_hooks = array();
58
 
59
+ /* Setup the tetdomain for i18n language handling see http://codex.wordpress.org/Function_Reference/load_plugin_textdomain */
60
+ load_plugin_textdomain( SIMPLY_EXCLUDE_I18N_DOMAIN, false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
61
+
62
  add_action( 'init', array(&$this,'init_proc') );
63
  add_action( 'admin_init', array(&$this,'admin_init_proc') );
64
  add_action( 'admin_menu', array(&$this,'se_add_nav') );
154
  return;
155
 
156
  $this->se_load_config();
 
157
 
158
  // Now add a submenu for each registered taxonomy
159
  $se_taxonomies = $this->se_load_taxonomy_list();
164
  if ((isset($this->se_cfg['data']['taxonomies'][$t_item->name]['options']['showhide']))
165
  && ($this->se_cfg['data']['taxonomies'][$t_item->name]['options']['showhide'] == 'show'))
166
  {
167
+ add_filter( "manage_edit-". $t_item->name ."_columns", array( &$this, 'se_manage_taxonomy_columns' ), 99, 1);
168
  add_filter( "manage_". $t_item->name. "_custom_column", array(&$this, 'se_display_taxonomy_column_actions'), 99, 3);
169
  }
170
  }
242
 
243
  // add_meta_box('se_options_thirdparty_panel', 'Other Plugins', array(&$this, 'se_options_thirdparty_panel'),
244
  // $this->pagehooks['se_manage_settings'], 'normal', 'core');
245
+
246
+ // Check if there is an older version of the SE configuration.
247
+ $tmp_se_cfg = get_option('simplyexclude');
248
+ if ($tmp_se_cfg) {
249
+ add_meta_box('se_display_configuration_reload_actions_panel', 'Reload Previous Configuration', array(&$this, 'se_display_configuration_reload_actions_panel'),
250
+ $this->pagehooks['se_manage_settings'], 'normal', 'core');
251
+ }
252
+
253
  }
254
 
255
  function on_load_help_page()
656
 
657
  function se_manage_taxonomy_columns($columns)
658
  {
659
+ if (current_user_can('manage_options')) {
660
+ if (!isset($columns['se-actions']))
661
+ $columns['se-actions'] = __('Simply Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN). ' <a id="se-show-actions-panel" href="#">'. __('show', SIMPLY_EXCLUDE_I18N_DOMAIN) .'</a>';
662
+ }
663
  return $columns;
664
  }
665
 
666
  function se_manage_post_type_columns($columns)
667
  {
668
+ if (current_user_can('manage_options')) {
669
+ if (!isset($columns['se_actions']))
670
+ $columns['se-actions'] = __('Simply Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN). ' <a id="se-show-actions-panel" href="#">'. __('show', SIMPLY_EXCLUDE_I18N_DOMAIN) .'</a>';
671
+ }
672
  return $columns;
673
  }
674
 
675
  function se_manage_user_columns($columns)
676
  {
677
+ if (current_user_can('manage_options')) {
678
+ if (!isset($columns['se_actions']))
679
+ $columns['se-actions'] = __('Simply Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN). ' <a id="se-show-actions-panel" href="#">'. __('show', SIMPLY_EXCLUDE_I18N_DOMAIN) .'</a>';
680
+ }
681
  return $columns;
682
  }
683
 
692
  {
693
  global $taxonomy, $post_type;
694
 
695
+ if (current_user_can('manage_options')) {
696
+ if ($column_name == "se-actions")
 
697
  {
698
+ if ($taxonomy)
 
699
  {
700
+ $term = get_term( $term_id, $taxonomy );
701
+ if ($term)
702
+ {
703
+ $this->current_taxonomy = $this->se_cfg['data']['taxonomies'][$taxonomy];
704
+ $this->se_display_taxonomy_term_action_row($taxonomy, $term);
705
+ }
706
  }
707
  }
708
  }
712
  {
713
  global $post_type;
714
 
715
+ if (current_user_can('manage_options')) {
716
+ if ($column_name == "se-actions")
 
 
 
717
  {
718
+ $this->current_post_type = $this->se_cfg['data']['post_types'][$post_type];
719
+
720
+ if ($post_id)
721
+ {
722
+ $p_item = get_post( $post_id );
723
+ if ($p_item)
724
+ {
725
+ $this->se_display_post_type_action_row($post_type, $p_item);
726
+ }
727
  }
728
  }
729
  }
730
  }
731
 
732
  function se_display_user_column_actions($junk, $column_name, $user_id )
733
+ {
734
+ if (current_user_can('manage_options')) {
735
+ if ($column_name == "se-actions")
 
 
736
  {
737
+ $se_type = "users";
738
+ if (isset($this->se_cfg['data']['se_types'][$se_type]))
 
 
739
  {
740
+ ob_start();
741
+
742
+ $this->current_se_type = $this->se_cfg['data']['se_types'][$se_type];
743
+ if ($user_id)
744
+ {
745
+ $user = get_userdata($user_id);
746
+ if ($user)
747
+ {
748
+ $this->se_display_user_action_row($se_type, $user);
749
+ }
750
  }
 
751
 
752
+ $out = ob_get_contents();
753
+ ob_end_clean();
754
+ return $out;
755
+ }
756
  }
757
  }
758
  }
769
  if (!$taxonomy) return;
770
  if (!$term) return;
771
 
772
+ if (current_user_can('manage_options')) {
773
+
774
+ if ((isset($this->current_taxonomy['actions'])) && (count($this->current_taxonomy['actions'])))
775
  {
776
+ foreach ($this->current_taxonomy['actions'] as $action_key => $action_val)
777
+ {
778
+ ?>
779
+ <input type="checkbox"
780
+ name="se_cfg[<?php echo $taxonomy; ?>][terms][<?php echo $action_key ?>][<?php echo $term->term_id ?>]"
781
+ id="<?php echo $taxonomy; ?>-<?php echo $action_key ?>-<?php echo $term->term_id ?>" class="se-term-input"
782
+ <?php
783
+ if ((isset($this->current_taxonomy['terms'][$action_key][$term->term_id]))
784
+ && ($this->current_taxonomy['terms'][$action_key][$term->term_id] == "on"))
785
+ echo "checked='checked' ";
786
+ ?> />&nbsp;<label for="<?php echo $taxonomy; ?>-<?php echo $action_key ?>-<?php echo $term->term_id ?>"
787
+ class="se-term-label"><?php echo $this->get_taxonomy_action_label($taxonomy, $action_key, 'name'); ?></label><br />
788
 
789
+ <?php
790
+ }
791
  }
792
  }
793
  }
797
  if (!$post_type) return;
798
  if (!$p_item) return;
799
 
800
+ if (current_user_can('manage_options')) {
801
+
802
+ if ((isset($this->current_post_type['actions'])) && (count($this->current_post_type['actions'])))
803
  {
804
+ foreach ($this->current_post_type['actions'] as $action_key => $action_val)
805
+ {
806
+ ?>
807
+ <input type="checkbox"
808
+ name="se_cfg[<?php echo $post_type; ?>][terms][<?php echo $action_key ?>][<?php echo $p_item->ID ?>]"
809
+ id="<?php echo $post_type; ?>-<?php echo $action_key ?>-<?php echo $p_item->ID ?>" class="se-term-input"
810
+ <?php
811
 
812
+ if ((isset($this->current_post_type['terms'][$action_key][$p_item->ID]))
813
+ && ($this->current_post_type['terms'][$action_key][$p_item->ID] == "on"))
814
+ echo "checked='checked' ";
815
+ ?> />&nbsp;<label for="<?php echo $post_type; ?>-<?php echo $action_key ?>-<?php echo $p_item->ID ?>">
816
+ <?php echo $this->get_post_type_action_label($post_type, $action_key, 'name') ?></label><br />
817
 
818
+ <?php
819
+ }
820
  }
821
  }
822
  }
826
  if (!$se_type) return;
827
  if (!$user) return;
828
 
829
+ if (current_user_can('manage_options')) {
830
+
831
+ if ((isset($this->current_se_type['actions'])) && (count($this->current_se_type['actions'])))
 
832
  {
833
+ foreach ($this->current_se_type['actions'] as $action_key => $action_val)
834
+ {
835
+ ?>
836
+ <input type="checkbox"
837
+ name="se_cfg[<?php echo $se_type; ?>][terms][<?php echo $action_key ?>][<?php echo $user->ID ?>]"
838
+ id="<?php echo $se_type; ?>-<?php echo $action_key ?>-<?php echo $user->ID ?>" class="se-term-input"
839
+ <?php
840
 
841
+ if ((isset($this->current_se_type['terms'][$action_key][$user->ID]))
842
+ && ($this->current_se_type['terms'][$action_key][$user->ID] == "on"))
843
+ echo "checked='checked' ";
844
+ ?> />&nbsp;<label for="<?php echo $se_type; ?>-<?php echo $action_key ?>-<?php echo $user->ID ?>">
845
+ <?php echo $this->get_se_type_action_label($se_type, $action_key, 'name') ?></label><br />
846
 
847
+ <?php
848
+ }
849
  }
850
  }
851
  }
862
  {
863
  $se_type = "users";
864
  $this->current_se_type = $this->se_cfg['data']['se_types'][$se_type];
865
+
866
+ if (current_user_can('manage_options')) {
867
+
868
+ if ($this->current_se_type['options']['showhide'] == "show") {
869
+ ?>
870
+ <table class="form-table">
871
+ <tr>
872
+ <th><label for="simply-exclude">Simply-Exclude</label></th>
873
+ <td class="cat-action"><?php $this->se_display_user_action_row('users', $profileuser) ?></td>
874
+ </tr>
875
+ </table>
876
+ <?php
877
+ }
878
+ }
879
  }
880
 
881
  function se_save_user_profile($user_id)
1036
  if ((isset($taxonomy)) && (isset($term_id)))
1037
  {
1038
  // First remove all traces of the taxonomy item in the actions
1039
+ if (isset($this->se_cfg['data']['taxonomies'][$taxonomy]['terms'])) {
1040
+ foreach($this->se_cfg['data']['taxonomies'][$taxonomy]['terms'] as $cfg_action => $cfg_action_items)
 
1041
  {
1042
+ foreach($cfg_action_items as $action_id => $action_val)
1043
  {
1044
+ if ($action_id == $term_id)
1045
+ {
1046
+ unset($this->se_cfg['data']['taxonomies'][$taxonomy]['terms'][$cfg_action][$action_id]);
1047
+ }
1048
  }
1049
  }
1050
  }
 
1051
  if (isset($_REQUEST['se_cfg']))
1052
  {
1053
  $se_cfg = $_REQUEST['se_cfg'];
1081
  function se_load_config()
1082
  {
1083
  $tmp_se_cfg = get_option($this->options_key);
 
 
1084
 
 
1085
  if (!$tmp_se_cfg)
1086
  {
1087
+ $tmp_se_cfg = $this->se_convert_configuration();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1088
  }
1089
  else if ($tmp_se_cfg)
1090
  {
1093
  else
1094
  $this->se_cfg = $tmp_se_cfg;
1095
 
1096
+ // if (!isset($this->se_cfg['cfg']['version']))
1097
+ // $this->se_cfg['cfg']['version'] = $this->se_version;
1098
  }
1099
+ $this->se_cfg['cfg']['version'] = $this->se_version;
1100
 
1101
  $se_taxonomies = $this->se_load_taxonomy_list();
1102
  if ($se_taxonomies)
1106
  if (!isset($this->se_cfg['data']['taxonomies'][$t_item->name]['actions']))
1107
  $this->se_cfg['data']['taxonomies'][$t_item->name]['actions'] = array();
1108
 
1109
+ $default_actions = $this->se_load_taxonomy_default_actions($t_item->name);
1110
+ if ($default_actions)
1111
  {
1112
+ $this->se_cfg['data']['taxonomies'][$t_item->name]['actions'] = array_merge($default_actions,
1113
  $this->se_cfg['data']['taxonomies'][$t_item->name]['actions']);
1114
  }
1115
 
1246
  }
1247
  }
1248
  */
 
1249
  }
1250
 
1251
+ function se_convert_configuration() {
1252
+ $local_cfg = array();
1253
+
1254
+ // If we don't find the main SE option then assume we are upgrading to grab via the old 'key'
1255
+ $tmp_se_cfg = get_option('simplyexclude');
1256
+
1257
+ if (is_serialized($tmp_se_cfg))
1258
+ $local_cfg = unserialize($tmp_se_cfg);
1259
+
1260
+
1261
+ if (isset($local_cfg['cfg']['myurl']))
1262
+ unset($local_cfg['cfg']['myurl']);
1263
+
1264
+ // Here assumed older data structure. Need to convert the old array elements to match the new Taxonomy tags
1265
+ if (isset($local_cfg['cats']))
1266
+ {
1267
+ $local_cfg['data']['taxonomies']['category'] = $local_cfg['cats'];
1268
+ unset($local_cfg['cats']);
1269
+
1270
+ if (!isset($local_cfg['data']['taxonomies']['category']['terms']))
1271
+ $local_cfg['data']['taxonomies']['category']['terms'] = array();
1272
+
1273
+ if (isset($local_cfg['data']['taxonomies']['category']['is_home'])) {
1274
+ $local_cfg['data']['taxonomies']['category']['terms']['is_home'] = $local_cfg['data']['taxonomies']['category']['is_home'];
1275
+ unset($local_cfg['data']['taxonomies']['category']['is_home']);
1276
+ }
1277
+ if (isset($local_cfg['data']['taxonomies']['category']['is_archive'])) {
1278
+ $local_cfg['data']['taxonomies']['category']['terms']['is_archive'] = $local_cfg['data']['taxonomies']['category']['is_archive'];
1279
+ unset($local_cfg['data']['taxonomies']['category']['is_archive']);
1280
+ }
1281
+ if (isset($local_cfg['data']['taxonomies']['category']['is_search'])) {
1282
+ $local_cfg['data']['taxonomies']['category']['terms']['is_search'] = $local_cfg['data']['taxonomies']['category']['is_search'];
1283
+ unset($local_cfg['data']['taxonomies']['category']['is_search']);
1284
+ }
1285
+ if (isset($local_cfg['data']['taxonomies']['category']['is_feed'])) {
1286
+ $local_cfg['data']['taxonomies']['category']['terms']['is_feed'] = $local_cfg['data']['taxonomies']['category']['is_feed'];
1287
+ unset($local_cfg['data']['taxonomies']['category']['is_feed']);
1288
+ }
1289
+
1290
+ if (isset($local_cfg['data']['taxonomies']['category']['extra'])) {
1291
+ if (isset($local_cfg['data']['taxonomies']['category']['extra']['wp_list_categories'])) {
1292
+ if ($local_cfg['data']['taxonomies']['category']['extra']['wp_list_categories'] == "Yes")
1293
+ $local_cfg['data']['taxonomies']['category']['actions']['widget_category'] = "e";
1294
+
1295
+ if (isset($local_cfg['data']['taxonomies']['category']['terms']['is_archive']))
1296
+ $local_cfg['data']['taxonomies']['category']['terms']['widget_category'] = $local_cfg['data']['taxonomies']['category']['terms']['is_archive'];
1297
+
1298
+ unset($local_cfg['data']['taxonomies']['category']['wp_list_categories']);
1299
+ }
1300
+ unset($local_cfg['data']['taxonomies']['category']['extra']);
1301
+ }
1302
+
1303
+ }
1304
+
1305
+ if (isset($local_cfg['tags']))
1306
+ {
1307
+ $local_cfg['data']['taxonomies']['post_tag'] = $local_cfg['tags'];
1308
+ unset($local_cfg['tags']);
1309
+
1310
+
1311
+ if (!isset($local_cfg['data']['taxonomies']['post_tag']['terms']))
1312
+ $local_cfg['data']['taxonomies']['post_tag']['terms'] = array();
1313
+
1314
+ if (isset($local_cfg['data']['taxonomies']['post_tag']['is_home'])) {
1315
+ $local_cfg['data']['taxonomies']['post_tag']['terms']['is_home'] = $local_cfg['data']['taxonomies']['post_tag']['is_home'];
1316
+ unset($local_cfg['data']['taxonomies']['post_tag']['is_home']);
1317
+ }
1318
+ if (isset($local_cfg['data']['taxonomies']['post_tag']['is_archive'])) {
1319
+ $local_cfg['data']['taxonomies']['post_tag']['terms']['is_archive'] = $local_cfg['data']['taxonomies']['post_tag']['is_archive'];
1320
+ unset($local_cfg['data']['taxonomies']['post_tag']['is_archive']);
1321
+ }
1322
+ if (isset($local_cfg['data']['taxonomies']['post_tag']['is_search'])) {
1323
+ $local_cfg['data']['taxonomies']['post_tag']['terms']['is_search'] = $local_cfg['data']['taxonomies']['post_tag']['is_search'];
1324
+ unset($local_cfg['data']['taxonomies']['post_tag']['is_search']);
1325
+ }
1326
+ if (isset($local_cfg['data']['taxonomies']['post_tag']['is_feed'])) {
1327
+ $local_cfg['data']['taxonomies']['post_tag']['terms']['is_feed'] = $local_cfg['data']['taxonomies']['post_tag']['is_feed'];
1328
+ unset($local_cfg['data']['taxonomies']['post_tag']['is_feed']);
1329
+ }
1330
+
1331
+ if (isset($local_cfg['data']['taxonomies']['post_tag']['extra'])) {
1332
+ if (isset($local_cfg['data']['taxonomies']['post_tag']['extra']['wp_tag_cloud'])) {
1333
+ if ($local_cfg['data']['taxonomies']['post_tag']['extra']['wp_list_categories'] == "Yes")
1334
+ $local_cfg['data']['taxonomies']['post_tag']['actions']['widget_tag_cloud'] = "e";
1335
+
1336
+ if (isset($local_cfg['data']['taxonomies']['post_tag']['terms']['is_archive']))
1337
+ $local_cfg['data']['taxonomies']['post_tag']['terms']['widget_tag_cloud'] = $local_cfg['data']['taxonomies']['post_tag']['terms']['is_archive'];
1338
+
1339
+ unset($local_cfg['data']['taxonomies']['post_tag']['wp_list_categories']);
1340
+ }
1341
+ unset($local_cfg['data']['taxonomies']['post_tag']['extra']);
1342
+ }
1343
+
1344
+ }
1345
+
1346
+ if (isset($local_cfg['authors']))
1347
+ {
1348
+ $local_cfg['data']['se_types']['users'] = $local_cfg['authors'];
1349
+ unset($local_cfg['authors']);
1350
+
1351
+
1352
+ if (!isset($local_cfg['data']['se_types']['users']['terms']))
1353
+ $local_cfg['data']['se_types']['users']['terms'] = array();
1354
+
1355
+ if (isset($local_cfg['data']['se_types']['users']['is_home'])) {
1356
+ $local_cfg['data']['se_types']['users']['terms']['is_home'] = $local_cfg['data']['se_types']['users']['is_home'];
1357
+ unset($local_cfg['data']['se_types']['users']['is_home']);
1358
+ }
1359
+ if (isset($local_cfg['data']['se_types']['users']['is_archive'])) {
1360
+ $local_cfg['data']['se_types']['users']['terms']['is_archive'] = $local_cfg['data']['se_types']['users']['is_archive'];
1361
+ unset($local_cfg['data']['se_types']['users']['is_archive']);
1362
+ }
1363
+ if (isset($local_cfg['data']['se_types']['users']['is_search'])) {
1364
+ $local_cfg['data']['se_types']['users']['terms']['is_search'] = $local_cfg['data']['se_types']['users']['is_search'];
1365
+ unset($local_cfg['data']['se_types']['users']['is_search']);
1366
+ }
1367
+ if (isset($local_cfg['data']['se_types']['users']['is_feed'])) {
1368
+ $local_cfg['data']['se_types']['users']['terms']['is_feed'] = $local_cfg['data']['se_types']['users']['is_feed'];
1369
+ unset($local_cfg['data']['se_types']['users']['is_feed']);
1370
+ }
1371
+
1372
+ }
1373
+
1374
+ if (isset($local_cfg['pages']))
1375
+ {
1376
+ $local_cfg['data']['post_types']['page'] = $local_cfg['pages'];
1377
+ unset($local_cfg['pages']);
1378
+
1379
+ if (!isset($local_cfg['data']['post_types']['page']['terms']))
1380
+ $local_cfg['data']['post_types']['page']['terms'] = array();
1381
+
1382
+ if (isset($local_cfg['data']['post_types']['page']['is_search'])) {
1383
+ $local_cfg['data']['post_types']['page']['terms']['is_search'] = $local_cfg['data']['post_types']['page']['is_search'];
1384
+ unset($local_cfg['data']['post_types']['page']['is_search']);
1385
+ }
1386
+ }
1387
+
1388
+ /*
1389
+ if (isset($local_cfg['options']['google-sitemap-generator']))
1390
+ {
1391
+ $local_cfg['options']['plugins']['google-sitemap-generator'] = $local_cfg['options']['google-sitemap-generator'];
1392
+ unset($local_cfg['options']['google-sitemap-generator']);
1393
+
1394
+ if (!isset($local_cfg['options']['plugins']['google-sitemap-generator']['plugin_key']))
1395
+ $local_cfg['options']['plugins']['google-sitemap-generator']['plugin_key'] = "google-sitemap-generator/sitemap.php";
1396
+ }
1397
+
1398
+ if (isset($local_cfg['options']['search-unleashed']))
1399
+ {
1400
+ $local_cfg['options']['plugins']['search-unleashed'] = $local_cfg['options']['search-unleashed'];
1401
+ unset($local_cfg['options']['search-unleashed']);
1402
+
1403
+ if (!isset($local_cfg['options']['plugins']['search-unleashed']['plugin_key']))
1404
+ $local_cfg['options']['plugins']['search-unleashed']['plugin_key'] = "search-unleashed/search-unleashed.php";
1405
+ }
1406
+ */
1407
+
1408
+ return $local_cfg;
1409
+ }
1410
+
1411
+
1412
  function is_plugin_active( $plugin ) {
1413
  if (is_admin())
1414
  {
1461
  continue;
1462
 
1463
  $tax_struct = get_taxonomy($tax_item);
1464
+ //echo "tax_struct<pre>"; print_r($tax_struct); echo "</pre>";
1465
  if ($tax_struct)
1466
  {
1467
+ //$se_taxonomies[$tax_struct->labels->name] = $tax_struct;
1468
+ $se_taxonomies[$tax_item] = $tax_struct;
1469
  }
1470
  }
1471
  }
1488
  $post_type_struct = get_post_type_object($post_type_item);
1489
  if ($post_type_struct)
1490
  {
1491
+ //$se_post_types[$post_type_struct->labels->name] = $post_type_struct;
1492
+ $se_post_types[$post_type_item] = $post_type_struct;
1493
  }
1494
  }
1495
  }
1518
  {
1519
  if (!$taxonomy) return;
1520
 
1521
+ $taxonomy_actions['is_home'] = "i";
1522
+ $taxonomy_actions['is_archive'] = "e";
1523
+ $taxonomy_actions['is_search'] = "e";
1524
+ $taxonomy_actions['is_feed'] = "e";
1525
 
1526
  if ($taxonomy == "category")
1527
  {
1528
+ $taxonomy_actions['widget_category'] = "e";
1529
+ $taxonomy_actions['widget_tag_cloud'] = "e";
1530
  }
1531
 
1532
  if ($taxonomy == "post_tag")
1533
  {
1534
+ $taxonomy_actions['widget_tag_cloud'] = "e";
1535
  }
1536
 
1537
  return $taxonomy_actions;
1548
 
1549
  if ($post_type_object->capability_type == "post")
1550
  {
1551
+ $taxonomy_actions['is_home'] = "i";
1552
+ $taxonomy_actions['is_archive'] = "e";
1553
+ $taxonomy_actions['is_search'] = "e";
1554
+ $taxonomy_actions['is_feed'] = "e";
1555
  }
1556
  else if ($post_type == "page")
1557
  {
1558
+ $taxonomy_actions['is_search'] = "e";
1559
+ $taxonomy_actions['widget_pages'] = "e";
1560
  }
1561
  else
1562
  {
1563
+ $taxonomy_actions['is_search'] = "e";
1564
  }
1565
  return $taxonomy_actions;
1566
  }
1568
 
1569
  function se_load_se_type_default_actions()
1570
  {
1571
+ $taxonomy_actions['is_home'] = "i";
1572
+ $taxonomy_actions['is_archive'] = "e";
1573
+ $taxonomy_actions['is_search'] = "e";
1574
+ $taxonomy_actions['is_feed'] = "e";
1575
 
1576
  return $taxonomy_actions;
1577
  }
1712
 
1713
  function get_post_type_action_label($post_type, $action, $key)
1714
  {
 
 
 
 
1715
  switch($action)
1716
  {
1717
  case 'is_home':
1984
  else if ($key_key_data['actions'] == 'i')
1985
  $post__in = array_merge($post__in, $key_key_data['terms']);
1986
  }
1987
+ //echo "post_types_array<pre>"; print_r($post_types_array); echo "</pre>";
1988
+ //echo "post__not_in<pre>"; print_r($post__not_in); echo "</pre>";
1989
+ //echo "post__in<pre>"; print_r($post__in); echo "</pre>";
1990
 
1991
  if (count($post__not_in))
1992
  {
2000
  //echo "post__in<pre>"; print_r($post__in); echo "</pre>";
2001
  $query->set('post__in', $post__in);
2002
  }
2003
+
2004
  $query_post_type = $query->get('post_type');
2005
+ //echo "query_post_type<pre>"; print_r($query_post_type); echo "</pre>";
2006
  if (!$query_post_type) $query_post_type = array();
2007
  else if (!is_array($query_post_type))
2008
  {
2009
+ $query_post_type = array($query_post_type);
2010
  }
2011
+ //echo "query_post_type<pre>"; print_r($query_post_type); echo "</pre>";
2012
+
2013
  if ($post_types_array)
2014
  {
2015
+ $query_post_type = array_unique(array_merge($post_types_array, $query_post_type));
2016
  $query->set('post_type', $query_post_type);
2017
  }
2018
  }
2644
  $se_taxonomies = $this->se_load_taxonomy_list();
2645
  if ($se_taxonomies)
2646
  {
2647
+ foreach($se_taxonomies as $key => $taxonomy)
2648
  {
2649
+ ?><h4 class="simplyexclude-section-title"><?php echo $taxonomy->labels->name; ?> (<?php echo $key; ?>)</h4><?php
2650
  $this->se_show_taxonomy_active_panel($taxonomy->name);
2651
  $this->se_show_taxonomy_actions_panel($taxonomy->name);
2652
  $this->se_show_taxonomy_showhide_panel($taxonomy->name);
2660
  $se_post_types = $this->se_load_post_type_list();
2661
  if ($se_post_types)
2662
  {
2663
+ foreach($se_post_types as $key => $post_type)
2664
  {
2665
+ ?><h4 class="simplyexclude-section-title"><?php echo $post_type->labels->name; ?> (<?php echo $key; ?>)</h4><?php
2666
  $this->se_show_post_type_active_panel($post_type->name);
2667
  $this->se_show_post_type_actions_panel($post_type->name);
2668
  $this->se_show_post_type_showhide_panel($post_type->name);
2679
  $this->se_show_se_type_showhide_panel('users');
2680
  }
2681
 
2682
+ function se_display_configuration_reload_actions_panel() {
2683
+
2684
+ if ((isset($_POST['simple-exclude-configuration-reload'])) && ($_POST['simple-exclude-configuration-reload'] == "Yes")) {
2685
+
2686
+ $local_cfg = $this->se_convert_configuration();
2687
+ if ($local_cfg) {
2688
+ $this->se_cfg = $local_cfg;
2689
+ $this->se_save_config();
2690
+
2691
+ ?><p><strong><?php _e('Your Simply Excluded has successfully been reloaded.', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong></p><?php
2692
+ }
2693
+ }
2694
+ ?><p><?php _e('Version 2.0 and 2.0.1 of the plugins incorrectly converted your previous configuration of excluded items into a new format. You can use this
2695
+ option to force a reload of your Simply Exclude configuration into the new format.', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
2696
+
2697
+ <form name="" method="post" action"">
2698
+ <select id="simple-exclude-configuration-reload" name="simple-exclude-configuration-reload">
2699
+ <option value="">No</option>
2700
+ <option value="Yes">Yes</option>
2701
+ </select><br />
2702
+ <input type="submit" value="<?php _e('Reload Configuration', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>" />
2703
+
2704
+ </form>
2705
+ <?php
2706
+ }
2707
+
2708
  function se_options_thirdparty_panel()
2709
  {
2710
  ?>
2955
  }
2956
  }
2957
 
2958
+ $simplyexclude = new SimplyExclude();