WP Bulk Delete - Version 1.0.0

Version Description

Download this release

Release Info

Developer xylus
Plugin Icon 128x128 WP Bulk Delete
Version 1.0.0
Comparing to
See all releases

Version 1.0.0

LICENSE.txt ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The licenses for most software are designed to take away your
12
+ freedom to share and change it. By contrast, the GNU General Public
13
+ License is intended to guarantee your freedom to share and change free
14
+ software--to make sure the software is free for all its users. This
15
+ General Public License applies to most of the Free Software
16
+ Foundation's software and to any other program whose authors commit to
17
+ using it. (Some other Free Software Foundation software is covered by
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
+ your programs, too.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ this service if you wish), that you receive source code or can get it
25
+ if you want it, that you can change the software or use pieces of it
26
+ in new free programs; and that you know you can do these things.
27
+
28
+ To protect your rights, we need to make restrictions that forbid
29
+ anyone to deny you these rights or to ask you to surrender the rights.
30
+ These restrictions translate to certain responsibilities for you if you
31
+ distribute copies of the software, or if you modify it.
32
+
33
+ For example, if you distribute copies of such a program, whether
34
+ gratis or for a fee, you must give the recipients all the rights that
35
+ you have. You must make sure that they, too, receive or can get the
36
+ source code. And you must show them these terms so they know their
37
+ rights.
38
+
39
+ We protect your rights with two steps: (1) copyright the software, and
40
+ (2) offer you this license which gives you legal permission to copy,
41
+ distribute and/or modify the software.
42
+
43
+ Also, for each author's protection and ours, we want to make certain
44
+ that everyone understands that there is no warranty for this free
45
+ software. If the software is modified by someone else and passed on, we
46
+ want its recipients to know that what they have is not the original, so
47
+ that any problems introduced by others will not reflect on the original
48
+ authors' reputations.
49
+
50
+ Finally, any free program is threatened constantly by software
51
+ patents. We wish to avoid the danger that redistributors of a free
52
+ program will individually obtain patent licenses, in effect making the
53
+ program proprietary. To prevent this, we have made it clear that any
54
+ patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+ 0. This License applies to any program or other work which contains
63
+ a notice placed by the copyright holder saying it may be distributed
64
+ under the terms of this General Public License. The "Program", below,
65
+ refers to any such program or work, and a "work based on the Program"
66
+ means either the Program or any derivative work under copyright law:
67
+ that is to say, a work containing the Program or a portion of it,
68
+ either verbatim or with modifications and/or translated into another
69
+ language. (Hereinafter, translation is included without limitation in
70
+ the term "modification".) Each licensee is addressed as "you".
71
+
72
+ Activities other than copying, distribution and modification are not
73
+ covered by this License; they are outside its scope. The act of
74
+ running the Program is not restricted, and the output from the Program
75
+ is covered only if its contents constitute a work based on the
76
+ Program (independent of having been made by running the Program).
77
+ Whether that is true depends on what the Program does.
78
+
79
+ 1. You may copy and distribute verbatim copies of the Program's
80
+ source code as you receive it, in any medium, provided that you
81
+ conspicuously and appropriately publish on each copy an appropriate
82
+ copyright notice and disclaimer of warranty; keep intact all the
83
+ notices that refer to this License and to the absence of any warranty;
84
+ and give any other recipients of the Program a copy of this License
85
+ along with the Program.
86
+
87
+ You may charge a fee for the physical act of transferring a copy, and
88
+ you may at your option offer warranty protection in exchange for a fee.
89
+
90
+ 2. You may modify your copy or copies of the Program or any portion
91
+ of it, thus forming a work based on the Program, and copy and
92
+ distribute such modifications or work under the terms of Section 1
93
+ above, provided that you also meet all of these conditions:
94
+
95
+ a) You must cause the modified files to carry prominent notices
96
+ stating that you changed the files and the date of any change.
97
+
98
+ b) You must cause any work that you distribute or publish, that in
99
+ whole or in part contains or is derived from the Program or any
100
+ part thereof, to be licensed as a whole at no charge to all third
101
+ parties under the terms of this License.
102
+
103
+ c) If the modified program normally reads commands interactively
104
+ when run, you must cause it, when started running for such
105
+ interactive use in the most ordinary way, to print or display an
106
+ announcement including an appropriate copyright notice and a
107
+ notice that there is no warranty (or else, saying that you provide
108
+ a warranty) and that users may redistribute the program under
109
+ these conditions, and telling the user how to view a copy of this
110
+ License. (Exception: if the Program itself is interactive but
111
+ does not normally print such an announcement, your work based on
112
+ the Program is not required to print an announcement.)
113
+
114
+ These requirements apply to the modified work as a whole. If
115
+ identifiable sections of that work are not derived from the Program,
116
+ and can be reasonably considered independent and separate works in
117
+ themselves, then this License, and its terms, do not apply to those
118
+ sections when you distribute them as separate works. But when you
119
+ distribute the same sections as part of a whole which is a work based
120
+ on the Program, the distribution of the whole must be on the terms of
121
+ this License, whose permissions for other licensees extend to the
122
+ entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+ Thus, it is not the intent of this section to claim rights or contest
125
+ your rights to work written entirely by you; rather, the intent is to
126
+ exercise the right to control the distribution of derivative or
127
+ collective works based on the Program.
128
+
129
+ In addition, mere aggregation of another work not based on the Program
130
+ with the Program (or with a work based on the Program) on a volume of
131
+ a storage or distribution medium does not bring the other work under
132
+ the scope of this License.
133
+
134
+ 3. You may copy and distribute the Program (or a work based on it,
135
+ under Section 2) in object code or executable form under the terms of
136
+ Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+ a) Accompany it with the complete corresponding machine-readable
139
+ source code, which must be distributed under the terms of Sections
140
+ 1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+ b) Accompany it with a written offer, valid for at least three
143
+ years, to give any third party, for a charge no more than your
144
+ cost of physically performing source distribution, a complete
145
+ machine-readable copy of the corresponding source code, to be
146
+ distributed under the terms of Sections 1 and 2 above on a medium
147
+ customarily used for software interchange; or,
148
+
149
+ c) Accompany it with the information you received as to the offer
150
+ to distribute corresponding source code. (This alternative is
151
+ allowed only for noncommercial distribution and only if you
152
+ received the program in object code or executable form with such
153
+ an offer, in accord with Subsection b above.)
154
+
155
+ The source code for a work means the preferred form of the work for
156
+ making modifications to it. For an executable work, complete source
157
+ code means all the source code for all modules it contains, plus any
158
+ associated interface definition files, plus the scripts used to
159
+ control compilation and installation of the executable. However, as a
160
+ special exception, the source code distributed need not include
161
+ anything that is normally distributed (in either source or binary
162
+ form) with the major components (compiler, kernel, and so on) of the
163
+ operating system on which the executable runs, unless that component
164
+ itself accompanies the executable.
165
+
166
+ If distribution of executable or object code is made by offering
167
+ access to copy from a designated place, then offering equivalent
168
+ access to copy the source code from the same place counts as
169
+ distribution of the source code, even though third parties are not
170
+ compelled to copy the source along with the object code.
171
+
172
+ 4. You may not copy, modify, sublicense, or distribute the Program
173
+ except as expressly provided under this License. Any attempt
174
+ otherwise to copy, modify, sublicense or distribute the Program is
175
+ void, and will automatically terminate your rights under this License.
176
+ However, parties who have received copies, or rights, from you under
177
+ this License will not have their licenses terminated so long as such
178
+ parties remain in full compliance.
179
+
180
+ 5. You are not required to accept this License, since you have not
181
+ signed it. However, nothing else grants you permission to modify or
182
+ distribute the Program or its derivative works. These actions are
183
+ prohibited by law if you do not accept this License. Therefore, by
184
+ modifying or distributing the Program (or any work based on the
185
+ Program), you indicate your acceptance of this License to do so, and
186
+ all its terms and conditions for copying, distributing or modifying
187
+ the Program or works based on it.
188
+
189
+ 6. Each time you redistribute the Program (or any work based on the
190
+ Program), the recipient automatically receives a license from the
191
+ original licensor to copy, distribute or modify the Program subject to
192
+ these terms and conditions. You may not impose any further
193
+ restrictions on the recipients' exercise of the rights granted herein.
194
+ You are not responsible for enforcing compliance by third parties to
195
+ this License.
196
+
197
+ 7. If, as a consequence of a court judgment or allegation of patent
198
+ infringement or for any other reason (not limited to patent issues),
199
+ conditions are imposed on you (whether by court order, agreement or
200
+ otherwise) that contradict the conditions of this License, they do not
201
+ excuse you from the conditions of this License. If you cannot
202
+ distribute so as to satisfy simultaneously your obligations under this
203
+ License and any other pertinent obligations, then as a consequence you
204
+ may not distribute the Program at all. For example, if a patent
205
+ license would not permit royalty-free redistribution of the Program by
206
+ all those who receive copies directly or indirectly through you, then
207
+ the only way you could satisfy both it and this License would be to
208
+ refrain entirely from distribution of the Program.
209
+
210
+ If any portion of this section is held invalid or unenforceable under
211
+ any particular circumstance, the balance of the section is intended to
212
+ apply and the section as a whole is intended to apply in other
213
+ circumstances.
214
+
215
+ It is not the purpose of this section to induce you to infringe any
216
+ patents or other property right claims or to contest validity of any
217
+ such claims; this section has the sole purpose of protecting the
218
+ integrity of the free software distribution system, which is
219
+ implemented by public license practices. Many people have made
220
+ generous contributions to the wide range of software distributed
221
+ through that system in reliance on consistent application of that
222
+ system; it is up to the author/donor to decide if he or she is willing
223
+ to distribute software through any other system and a licensee cannot
224
+ impose that choice.
225
+
226
+ This section is intended to make thoroughly clear what is believed to
227
+ be a consequence of the rest of this License.
228
+
229
+ 8. If the distribution and/or use of the Program is restricted in
230
+ certain countries either by patents or by copyrighted interfaces, the
231
+ original copyright holder who places the Program under this License
232
+ may add an explicit geographical distribution limitation excluding
233
+ those countries, so that distribution is permitted only in or among
234
+ countries not thus excluded. In such case, this License incorporates
235
+ the limitation as if written in the body of this License.
236
+
237
+ 9. The Free Software Foundation may publish revised and/or new versions
238
+ of the General Public License from time to time. Such new versions will
239
+ be similar in spirit to the present version, but may differ in detail to
240
+ address new problems or concerns.
241
+
242
+ Each version is given a distinguishing version number. If the Program
243
+ specifies a version number of this License which applies to it and "any
244
+ later version", you have the option of following the terms and conditions
245
+ either of that version or of any later version published by the Free
246
+ Software Foundation. If the Program does not specify a version number of
247
+ this License, you may choose any version ever published by the Free Software
248
+ Foundation.
249
+
250
+ 10. If you wish to incorporate parts of the Program into other free
251
+ programs whose distribution conditions are different, write to the author
252
+ to ask for permission. For software which is copyrighted by the Free
253
+ Software Foundation, write to the Free Software Foundation; we sometimes
254
+ make exceptions for this. Our decision will be guided by the two goals
255
+ of preserving the free status of all derivatives of our free software and
256
+ of promoting the sharing and reuse of software generally.
257
+
258
+ NO WARRANTY
259
+
260
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+ REPAIR OR CORRECTION.
269
+
270
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+ POSSIBILITY OF SUCH DAMAGES.
279
+
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
+
284
+ If you develop a new program, and you want it to be of the greatest
285
+ possible use to the public, the best way to achieve this is to make it
286
+ free software which everyone can redistribute and change under these terms.
287
+
288
+ To do so, attach the following notices to the program. It is safest
289
+ to attach them to the start of each source file to most effectively
290
+ convey the exclusion of warranty; and each file should have at least
291
+ the "copyright" line and a pointer to where the full notice is found.
292
+
293
+ <one line to give the program's name and a brief idea of what it does.>
294
+ Copyright (C) <year> <name of author>
295
+
296
+ This program is free software; you can redistribute it and/or modify
297
+ it under the terms of the GNU General Public License as published by
298
+ the Free Software Foundation; either version 2 of the License, or
299
+ (at your option) any later version.
300
+
301
+ This program is distributed in the hope that it will be useful,
302
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
+ GNU General Public License for more details.
305
+
306
+ You should have received a copy of the GNU General Public License along
307
+ with this program; if not, write to the Free Software Foundation, Inc.,
308
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309
+
310
+ Also add information on how to contact you by electronic and paper mail.
311
+
312
+ If the program is interactive, make it output a short notice like this
313
+ when it starts in an interactive mode:
314
+
315
+ Gnomovision version 69, Copyright (C) year name of author
316
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317
+ This is free software, and you are welcome to redistribute it
318
+ under certain conditions; type `show c' for details.
319
+
320
+ The hypothetical commands `show w' and `show c' should show the appropriate
321
+ parts of the General Public License. Of course, the commands you use may
322
+ be called something other than `show w' and `show c'; they could even be
323
+ mouse-clicks or menu items--whatever suits your program.
324
+
325
+ You should also get your employer (if you work as a programmer) or your
326
+ school, if any, to sign a "copyright disclaimer" for the program, if
327
+ necessary. Here is a sample; alter the names:
328
+
329
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
+
332
+ <signature of Ty Coon>, 1 April 1989
333
+ Ty Coon, President of Vice
334
+
335
+ This General Public License does not permit incorporating your program into
336
+ proprietary programs. If your program is a subroutine library, you may
337
+ consider it more useful to permit linking proprietary applications with the
338
+ library. If this is what you want to do, use the GNU Lesser General
339
+ Public License instead of this License.
README.txt ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === WP Bulk Delete ===
2
+ Contributors: xylus
3
+ Donate link: http://xylusthemes.com
4
+ Tags: delete, bulk, clean, bulk delete, bulk clean, posts delete, delete all, mass delete, posts delete, delete posts, delete comments, delete users, delete meta, delete taxonomy, delete revision, wp clean, clean trash, trash, clean span
5
+ Requires at least: 3.9
6
+ Tested up to: 4.6.1
7
+ Stable tag: 1.0.0
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ Bulk delete and clean anything like posts, comments, users, meta, taxonomy. with powerful filter options.
12
+
13
+ == Description ==
14
+
15
+ WP Bulk Delete allows you to delete and clean anything like posts, comments, users, meta, taxonomy in bulk. with powerful filter options.
16
+
17
+ **Here are some features of this plugin:**
18
+
19
+ * Delete Posts.
20
+ * Delete Posts by posttype.
21
+ * Delete Posts by poststatus.
22
+ * Delete Posts by date interval.
23
+ * Delete Posts by Taxonomy.
24
+ * Delete Posts by authors.
25
+ * Delete Comments.
26
+ * Delete User.
27
+ * Delete Meta.
28
+ * Delete Taxonomy.
29
+ * more coming soon
30
+
31
+ **Additional [PRO Version](https://xylusthemes.com/plugins/wp-bulk-delete/) Features:**
32
+
33
+ * Delete Posts by Title or Content.
34
+ * Delete Posts by custom fields.
35
+
36
+ == Installation ==
37
+
38
+ **This plugin can be installed directly from your site.**
39
+
40
+ 1. Log in and navigate to Plugins & Add New.
41
+ 2. Type "WP Bulk Delete" into the Search input and click the "Search" button.
42
+ 3. Locate the "WP Bulk Delete" in the list of search results and click "Install Now".
43
+ 4. Click the "Activate Plugin" link at the bottom of the install screen.
44
+
45
+ **It can also be installed manually.**
46
+
47
+ 1. Download the "WP Bulk Delete" plugin from WordPress.org.
48
+ 2. Unzip the package and move to your plugins directory.
49
+ 3. Log into WordPress and navigate to the "Plugins" screen.
50
+ 4. Locate "WP Bulk Delete" in the list and click the "Activate" link.
51
+
52
+ == Screenshots ==
53
+
54
+ 1. Post Cleanup.
55
+ 2. Delete posts by post types.
56
+ 3. Delete posts by taxonomy.
57
+ 4. Delete posts by authors.
58
+ 5. Delete posts by title and content.
59
+ 6. Delete posts by custom fields.
60
+ 7. Delete posts by all (general).
61
+
62
+ == Changelog ==
63
+
64
+ = 1.0.0 =
65
+ * Initial Version.
assets/css/jquery-ui.css ADDED
@@ -0,0 +1,1312 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! jQuery UI - v1.12.0 - 2016-07-08
2
+ * http://jqueryui.com
3
+ * Includes: core.css, accordion.css, autocomplete.css, menu.css, button.css, controlgroup.css, checkboxradio.css, datepicker.css, dialog.css, draggable.css, resizable.css, progressbar.css, selectable.css, selectmenu.css, slider.css, sortable.css, spinner.css, tabs.css, tooltip.css, theme.css
4
+ * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Arial%2CHelvetica%2Csans-serif&fsDefault=1em&fwDefault=normal&cornerRadius=3px&bgColorHeader=e9e9e9&bgTextureHeader=flat&borderColorHeader=dddddd&fcHeader=333333&iconColorHeader=444444&bgColorContent=ffffff&bgTextureContent=flat&borderColorContent=dddddd&fcContent=333333&iconColorContent=444444&bgColorDefault=f6f6f6&bgTextureDefault=flat&borderColorDefault=c5c5c5&fcDefault=454545&iconColorDefault=777777&bgColorHover=ededed&bgTextureHover=flat&borderColorHover=cccccc&fcHover=2b2b2b&iconColorHover=555555&bgColorActive=007fff&bgTextureActive=flat&borderColorActive=003eff&fcActive=ffffff&iconColorActive=ffffff&bgColorHighlight=fffa90&bgTextureHighlight=flat&borderColorHighlight=dad55e&fcHighlight=777620&iconColorHighlight=777620&bgColorError=fddfdf&bgTextureError=flat&borderColorError=f1a899&fcError=5f3f3f&iconColorError=cc0000&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=666666&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=5px&offsetTopShadow=0px&offsetLeftShadow=0px&cornerRadiusShadow=8px
5
+ * Copyright jQuery Foundation and other contributors; Licensed MIT */
6
+
7
+ /* Layout helpers
8
+ ----------------------------------*/
9
+ .ui-helper-hidden {
10
+ display: none;
11
+ }
12
+ .ui-helper-hidden-accessible {
13
+ border: 0;
14
+ clip: rect(0 0 0 0);
15
+ height: 1px;
16
+ margin: -1px;
17
+ overflow: hidden;
18
+ padding: 0;
19
+ position: absolute;
20
+ width: 1px;
21
+ }
22
+ .ui-helper-reset {
23
+ margin: 0;
24
+ padding: 0;
25
+ border: 0;
26
+ outline: 0;
27
+ line-height: 1.3;
28
+ text-decoration: none;
29
+ font-size: 100%;
30
+ list-style: none;
31
+ }
32
+ .ui-helper-clearfix:before,
33
+ .ui-helper-clearfix:after {
34
+ content: "";
35
+ display: table;
36
+ border-collapse: collapse;
37
+ }
38
+ .ui-helper-clearfix:after {
39
+ clear: both;
40
+ }
41
+ .ui-helper-zfix {
42
+ width: 100%;
43
+ height: 100%;
44
+ top: 0;
45
+ left: 0;
46
+ position: absolute;
47
+ opacity: 0;
48
+ filter:Alpha(Opacity=0); /* support: IE8 */
49
+ }
50
+
51
+ .ui-front {
52
+ z-index: 100;
53
+ }
54
+
55
+
56
+ /* Interaction Cues
57
+ ----------------------------------*/
58
+ .ui-state-disabled {
59
+ cursor: default !important;
60
+ pointer-events: none;
61
+ }
62
+
63
+
64
+ /* Icons
65
+ ----------------------------------*/
66
+ .ui-icon {
67
+ display: inline-block;
68
+ vertical-align: middle;
69
+ margin-top: -.25em;
70
+ position: relative;
71
+ text-indent: -99999px;
72
+ overflow: hidden;
73
+ background-repeat: no-repeat;
74
+ }
75
+
76
+ .ui-widget-icon-block {
77
+ left: 50%;
78
+ margin-left: -8px;
79
+ display: block;
80
+ }
81
+
82
+ /* Misc visuals
83
+ ----------------------------------*/
84
+
85
+ /* Overlays */
86
+ .ui-widget-overlay {
87
+ position: fixed;
88
+ top: 0;
89
+ left: 0;
90
+ width: 100%;
91
+ height: 100%;
92
+ }
93
+ .ui-accordion .ui-accordion-header {
94
+ display: block;
95
+ cursor: pointer;
96
+ position: relative;
97
+ margin: 2px 0 0 0;
98
+ padding: .5em .5em .5em .7em;
99
+ font-size: 100%;
100
+ }
101
+ .ui-accordion .ui-accordion-content {
102
+ padding: 1em 2.2em;
103
+ border-top: 0;
104
+ overflow: auto;
105
+ }
106
+ .ui-autocomplete {
107
+ position: absolute;
108
+ top: 0;
109
+ left: 0;
110
+ cursor: default;
111
+ }
112
+ .ui-menu {
113
+ list-style: none;
114
+ padding: 0;
115
+ margin: 0;
116
+ display: block;
117
+ outline: 0;
118
+ }
119
+ .ui-menu .ui-menu {
120
+ position: absolute;
121
+ }
122
+ .ui-menu .ui-menu-item {
123
+ margin: 0;
124
+ cursor: pointer;
125
+ /* support: IE10, see #8844 */
126
+ list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
127
+ }
128
+ .ui-menu .ui-menu-item-wrapper {
129
+ position: relative;
130
+ padding: 3px 1em 3px .4em;
131
+ }
132
+ .ui-menu .ui-menu-divider {
133
+ margin: 5px 0;
134
+ height: 0;
135
+ font-size: 0;
136
+ line-height: 0;
137
+ border-width: 1px 0 0 0;
138
+ }
139
+ .ui-menu .ui-state-focus,
140
+ .ui-menu .ui-state-active {
141
+ margin: -1px;
142
+ }
143
+
144
+ /* icon support */
145
+ .ui-menu-icons {
146
+ position: relative;
147
+ }
148
+ .ui-menu-icons .ui-menu-item-wrapper {
149
+ padding-left: 2em;
150
+ }
151
+
152
+ /* left-aligned */
153
+ .ui-menu .ui-icon {
154
+ position: absolute;
155
+ top: 0;
156
+ bottom: 0;
157
+ left: .2em;
158
+ margin: auto 0;
159
+ }
160
+
161
+ /* right-aligned */
162
+ .ui-menu .ui-menu-icon {
163
+ left: auto;
164
+ right: 0;
165
+ }
166
+ .ui-button {
167
+ padding: .4em 1em;
168
+ display: inline-block;
169
+ position: relative;
170
+ line-height: normal;
171
+ margin-right: .1em;
172
+ cursor: pointer;
173
+ vertical-align: middle;
174
+ text-align: center;
175
+ -webkit-user-select: none;
176
+ -moz-user-select: none;
177
+ -ms-user-select: none;
178
+ user-select: none;
179
+
180
+ /* Support: IE <= 11 */
181
+ overflow: visible;
182
+ }
183
+
184
+ .ui-button,
185
+ .ui-button:link,
186
+ .ui-button:visited,
187
+ .ui-button:hover,
188
+ .ui-button:active {
189
+ text-decoration: none;
190
+ }
191
+
192
+ /* to make room for the icon, a width needs to be set here */
193
+ .ui-button-icon-only {
194
+ width: 2em;
195
+ box-sizing: border-box;
196
+ text-indent: -9999px;
197
+ white-space: nowrap;
198
+ }
199
+
200
+ /* no icon support for input elements */
201
+ input.ui-button.ui-button-icon-only {
202
+ text-indent: 0;
203
+ }
204
+
205
+ /* button icon element(s) */
206
+ .ui-button-icon-only .ui-icon {
207
+ position: absolute;
208
+ top: 50%;
209
+ left: 50%;
210
+ margin-top: -8px;
211
+ margin-left: -8px;
212
+ }
213
+
214
+ .ui-button.ui-icon-notext .ui-icon {
215
+ padding: 0;
216
+ width: 2.1em;
217
+ height: 2.1em;
218
+ text-indent: -9999px;
219
+ white-space: nowrap;
220
+
221
+ }
222
+
223
+ input.ui-button.ui-icon-notext .ui-icon {
224
+ width: auto;
225
+ height: auto;
226
+ text-indent: 0;
227
+ white-space: normal;
228
+ padding: .4em 1em;
229
+ }
230
+
231
+ /* workarounds */
232
+ /* Support: Firefox 5 - 40 */
233
+ input.ui-button::-moz-focus-inner,
234
+ button.ui-button::-moz-focus-inner {
235
+ border: 0;
236
+ padding: 0;
237
+ }
238
+ .ui-controlgroup {
239
+ vertical-align: middle;
240
+ display: inline-block;
241
+ }
242
+ .ui-controlgroup > .ui-controlgroup-item {
243
+ float: left;
244
+ margin-left: 0;
245
+ margin-right: 0;
246
+ }
247
+ .ui-controlgroup > .ui-controlgroup-item:focus,
248
+ .ui-controlgroup > .ui-controlgroup-item.ui-visual-focus {
249
+ z-index: 9999;
250
+ }
251
+ .ui-controlgroup-vertical > .ui-controlgroup-item {
252
+ display: block;
253
+ float: none;
254
+ width: 100%;
255
+ margin-top: 0;
256
+ margin-bottom: 0;
257
+ text-align: left;
258
+ }
259
+ .ui-controlgroup-vertical .ui-controlgroup-item {
260
+ box-sizing: border-box;
261
+ }
262
+ .ui-controlgroup .ui-controlgroup-label {
263
+ padding: .4em 1em;
264
+ }
265
+ .ui-controlgroup .ui-controlgroup-label span {
266
+ font-size: 80%;
267
+ }
268
+ .ui-controlgroup-horizontal .ui-controlgroup-label + .ui-controlgroup-item {
269
+ border-left: none;
270
+ }
271
+ .ui-controlgroup-vertical .ui-controlgroup-label + .ui-controlgroup-item {
272
+ border-top: none;
273
+ }
274
+ .ui-controlgroup-horizontal .ui-controlgroup-label.ui-widget-content {
275
+ border-right: none;
276
+ }
277
+ .ui-controlgroup-vertical .ui-controlgroup-label.ui-widget-content {
278
+ border-bottom: none;
279
+ }
280
+
281
+ /* Spinner specific style fixes */
282
+ .ui-controlgroup-vertical .ui-spinner-input {
283
+
284
+ /* Support: IE8 only, Android < 4.4 only */
285
+ width: 75%;
286
+ width: calc( 100% - 2.4em );
287
+ }
288
+ .ui-controlgroup-vertical .ui-spinner .ui-spinner-up {
289
+ border-top-style: solid;
290
+ }
291
+
292
+ .ui-checkboxradio-label .ui-icon-background {
293
+ box-shadow: inset 1px 1px 1px #ccc;
294
+ border-radius: .12em;
295
+ border: none;
296
+ }
297
+ .ui-checkboxradio-radio-label .ui-icon-background {
298
+ width: 16px;
299
+ height: 16px;
300
+ border-radius: 1em;
301
+ overflow: visible;
302
+ border: none;
303
+ }
304
+ .ui-checkboxradio-radio-label.ui-checkboxradio-checked .ui-icon,
305
+ .ui-checkboxradio-radio-label.ui-checkboxradio-checked:hover .ui-icon {
306
+ background-image: none;
307
+ width: 8px;
308
+ height: 8px;
309
+ border-width: 4px;
310
+ border-style: solid;
311
+ }
312
+ .ui-checkboxradio-disabled {
313
+ pointer-events: none;
314
+ }
315
+ .ui-datepicker {
316
+ width: 17em;
317
+ padding: .2em .2em 0;
318
+ display: none;
319
+ }
320
+ .ui-datepicker .ui-datepicker-header {
321
+ position: relative;
322
+ padding: .2em 0;
323
+ }
324
+ .ui-datepicker .ui-datepicker-prev,
325
+ .ui-datepicker .ui-datepicker-next {
326
+ position: absolute;
327
+ top: 2px;
328
+ width: 1.8em;
329
+ height: 1.8em;
330
+ }
331
+ .ui-datepicker .ui-datepicker-prev-hover,
332
+ .ui-datepicker .ui-datepicker-next-hover {
333
+ top: 1px;
334
+ }
335
+ .ui-datepicker .ui-datepicker-prev {
336
+ left: 2px;
337
+ }
338
+ .ui-datepicker .ui-datepicker-next {
339
+ right: 2px;
340
+ }
341
+ .ui-datepicker .ui-datepicker-prev-hover {
342
+ left: 1px;
343
+ }
344
+ .ui-datepicker .ui-datepicker-next-hover {
345
+ right: 1px;
346
+ }
347
+ .ui-datepicker .ui-datepicker-prev span,
348
+ .ui-datepicker .ui-datepicker-next span {
349
+ display: block;
350
+ position: absolute;
351
+ left: 50%;
352
+ margin-left: -8px;
353
+ top: 50%;
354
+ margin-top: -8px;
355
+ }
356
+ .ui-datepicker .ui-datepicker-title {
357
+ margin: 0 2.3em;
358
+ line-height: 1.8em;
359
+ text-align: center;
360
+ }
361
+ .ui-datepicker .ui-datepicker-title select {
362
+ font-size: 1em;
363
+ margin: 1px 0;
364
+ }
365
+ .ui-datepicker select.ui-datepicker-month,
366
+ .ui-datepicker select.ui-datepicker-year {
367
+ width: 45%;
368
+ }
369
+ .ui-datepicker table {
370
+ width: 100%;
371
+ font-size: .9em;
372
+ border-collapse: collapse;
373
+ margin: 0 0 .4em;
374
+ }
375
+ .ui-datepicker th {
376
+ padding: .7em .3em;
377
+ text-align: center;
378
+ font-weight: bold;
379
+ border: 0;
380
+ }
381
+ .ui-datepicker td {
382
+ border: 0;
383
+ padding: 1px;
384
+ }
385
+ .ui-datepicker td span,
386
+ .ui-datepicker td a {
387
+ display: block;
388
+ padding: .2em;
389
+ text-align: right;
390
+ text-decoration: none;
391
+ }
392
+ .ui-datepicker .ui-datepicker-buttonpane {
393
+ background-image: none;
394
+ margin: .7em 0 0 0;
395
+ padding: 0 .2em;
396
+ border-left: 0;
397
+ border-right: 0;
398
+ border-bottom: 0;
399
+ }
400
+ .ui-datepicker .ui-datepicker-buttonpane button {
401
+ float: right;
402
+ margin: .5em .2em .4em;
403
+ cursor: pointer;
404
+ padding: .2em .6em .3em .6em;
405
+ width: auto;
406
+ overflow: visible;
407
+ }
408
+ .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
409
+ float: left;
410
+ }
411
+
412
+ /* with multiple calendars */
413
+ .ui-datepicker.ui-datepicker-multi {
414
+ width: auto;
415
+ }
416
+ .ui-datepicker-multi .ui-datepicker-group {
417
+ float: left;
418
+ }
419
+ .ui-datepicker-multi .ui-datepicker-group table {
420
+ width: 95%;
421
+ margin: 0 auto .4em;
422
+ }
423
+ .ui-datepicker-multi-2 .ui-datepicker-group {
424
+ width: 50%;
425
+ }
426
+ .ui-datepicker-multi-3 .ui-datepicker-group {
427
+ width: 33.3%;
428
+ }
429
+ .ui-datepicker-multi-4 .ui-datepicker-group {
430
+ width: 25%;
431
+ }
432
+ .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,
433
+ .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
434
+ border-left-width: 0;
435
+ }
436
+ .ui-datepicker-multi .ui-datepicker-buttonpane {
437
+ clear: left;
438
+ }
439
+ .ui-datepicker-row-break {
440
+ clear: both;
441
+ width: 100%;
442
+ font-size: 0;
443
+ }
444
+
445
+ /* RTL support */
446
+ .ui-datepicker-rtl {
447
+ direction: rtl;
448
+ }
449
+ .ui-datepicker-rtl .ui-datepicker-prev {
450
+ right: 2px;
451
+ left: auto;
452
+ }
453
+ .ui-datepicker-rtl .ui-datepicker-next {
454
+ left: 2px;
455
+ right: auto;
456
+ }
457
+ .ui-datepicker-rtl .ui-datepicker-prev:hover {
458
+ right: 1px;
459
+ left: auto;
460
+ }
461
+ .ui-datepicker-rtl .ui-datepicker-next:hover {
462
+ left: 1px;
463
+ right: auto;
464
+ }
465
+ .ui-datepicker-rtl .ui-datepicker-buttonpane {
466
+ clear: right;
467
+ }
468
+ .ui-datepicker-rtl .ui-datepicker-buttonpane button {
469
+ float: left;
470
+ }
471
+ .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,
472
+ .ui-datepicker-rtl .ui-datepicker-group {
473
+ float: right;
474
+ }
475
+ .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,
476
+ .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
477
+ border-right-width: 0;
478
+ border-left-width: 1px;
479
+ }
480
+
481
+ /* Icons */
482
+ .ui-datepicker .ui-icon {
483
+ display: block;
484
+ text-indent: -99999px;
485
+ overflow: hidden;
486
+ background-repeat: no-repeat;
487
+ left: .5em;
488
+ top: .3em;
489
+ }
490
+ .ui-dialog {
491
+ position: absolute;
492
+ top: 0;
493
+ left: 0;
494
+ padding: .2em;
495
+ outline: 0;
496
+ }
497
+ .ui-dialog .ui-dialog-titlebar {
498
+ padding: .4em 1em;
499
+ position: relative;
500
+ }
501
+ .ui-dialog .ui-dialog-title {
502
+ float: left;
503
+ margin: .1em 0;
504
+ white-space: nowrap;
505
+ width: 90%;
506
+ overflow: hidden;
507
+ text-overflow: ellipsis;
508
+ }
509
+ .ui-dialog .ui-dialog-titlebar-close {
510
+ position: absolute;
511
+ right: .3em;
512
+ top: 50%;
513
+ width: 20px;
514
+ margin: -10px 0 0 0;
515
+ padding: 1px;
516
+ height: 20px;
517
+ }
518
+ .ui-dialog .ui-dialog-content {
519
+ position: relative;
520
+ border: 0;
521
+ padding: .5em 1em;
522
+ background: none;
523
+ overflow: auto;
524
+ }
525
+ .ui-dialog .ui-dialog-buttonpane {
526
+ text-align: left;
527
+ border-width: 1px 0 0 0;
528
+ background-image: none;
529
+ margin-top: .5em;
530
+ padding: .3em 1em .5em .4em;
531
+ }
532
+ .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
533
+ float: right;
534
+ }
535
+ .ui-dialog .ui-dialog-buttonpane button {
536
+ margin: .5em .4em .5em 0;
537
+ cursor: pointer;
538
+ }
539
+ .ui-dialog .ui-resizable-n {
540
+ height: 2px;
541
+ top: 0;
542
+ }
543
+ .ui-dialog .ui-resizable-e {
544
+ width: 2px;
545
+ right: 0;
546
+ }
547
+ .ui-dialog .ui-resizable-s {
548
+ height: 2px;
549
+ bottom: 0;
550
+ }
551
+ .ui-dialog .ui-resizable-w {
552
+ width: 2px;
553
+ left: 0;
554
+ }
555
+ .ui-dialog .ui-resizable-se,
556
+ .ui-dialog .ui-resizable-sw,
557
+ .ui-dialog .ui-resizable-ne,
558
+ .ui-dialog .ui-resizable-nw {
559
+ width: 7px;
560
+ height: 7px;
561
+ }
562
+ .ui-dialog .ui-resizable-se {
563
+ right: 0;
564
+ bottom: 0;
565
+ }
566
+ .ui-dialog .ui-resizable-sw {
567
+ left: 0;
568
+ bottom: 0;
569
+ }
570
+ .ui-dialog .ui-resizable-ne {
571
+ right: 0;
572
+ top: 0;
573
+ }
574
+ .ui-dialog .ui-resizable-nw {
575
+ left: 0;
576
+ top: 0;
577
+ }
578
+ .ui-draggable .ui-dialog-titlebar {
579
+ cursor: move;
580
+ }
581
+ .ui-draggable-handle {
582
+ -ms-touch-action: none;
583
+ touch-action: none;
584
+ }
585
+ .ui-resizable {
586
+ position: relative;
587
+ }
588
+ .ui-resizable-handle {
589
+ position: absolute;
590
+ font-size: 0.1px;
591
+ display: block;
592
+ -ms-touch-action: none;
593
+ touch-action: none;
594
+ }
595
+ .ui-resizable-disabled .ui-resizable-handle,
596
+ .ui-resizable-autohide .ui-resizable-handle {
597
+ display: none;
598
+ }
599
+ .ui-resizable-n {
600
+ cursor: n-resize;
601
+ height: 7px;
602
+ width: 100%;
603
+ top: -5px;
604
+ left: 0;
605
+ }
606
+ .ui-resizable-s {
607
+ cursor: s-resize;
608
+ height: 7px;
609
+ width: 100%;
610
+ bottom: -5px;
611
+ left: 0;
612
+ }
613
+ .ui-resizable-e {
614
+ cursor: e-resize;
615
+ width: 7px;
616
+ right: -5px;
617
+ top: 0;
618
+ height: 100%;
619
+ }
620
+ .ui-resizable-w {
621
+ cursor: w-resize;
622
+ width: 7px;
623
+ left: -5px;
624
+ top: 0;
625
+ height: 100%;
626
+ }
627
+ .ui-resizable-se {
628
+ cursor: se-resize;
629
+ width: 12px;
630
+ height: 12px;
631
+ right: 1px;
632
+ bottom: 1px;
633
+ }
634
+ .ui-resizable-sw {
635
+ cursor: sw-resize;
636
+ width: 9px;
637
+ height: 9px;
638
+ left: -5px;
639
+ bottom: -5px;
640
+ }
641
+ .ui-resizable-nw {
642
+ cursor: nw-resize;
643
+ width: 9px;
644
+ height: 9px;
645
+ left: -5px;
646
+ top: -5px;
647
+ }
648
+ .ui-resizable-ne {
649
+ cursor: ne-resize;
650
+ width: 9px;
651
+ height: 9px;
652
+ right: -5px;
653
+ top: -5px;
654
+ }
655
+ .ui-progressbar {
656
+ height: 2em;
657
+ text-align: left;
658
+ overflow: hidden;
659
+ }
660
+ .ui-progressbar .ui-progressbar-value {
661
+ margin: -1px;
662
+ height: 100%;
663
+ }
664
+ .ui-progressbar .ui-progressbar-overlay {
665
+ background: url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==");
666
+ height: 100%;
667
+ filter: alpha(opacity=25); /* support: IE8 */
668
+ opacity: 0.25;
669
+ }
670
+ .ui-progressbar-indeterminate .ui-progressbar-value {
671
+ background-image: none;
672
+ }
673
+ .ui-selectable {
674
+ -ms-touch-action: none;
675
+ touch-action: none;
676
+ }
677
+ .ui-selectable-helper {
678
+ position: absolute;
679
+ z-index: 100;
680
+ border: 1px dotted black;
681
+ }
682
+ .ui-selectmenu-menu {
683
+ padding: 0;
684
+ margin: 0;
685
+ position: absolute;
686
+ top: 0;
687
+ left: 0;
688
+ display: none;
689
+ }
690
+ .ui-selectmenu-menu .ui-menu {
691
+ overflow: auto;
692
+ overflow-x: hidden;
693
+ padding-bottom: 1px;
694
+ }
695
+ .ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup {
696
+ font-size: 1em;
697
+ font-weight: bold;
698
+ line-height: 1.5;
699
+ padding: 2px 0.4em;
700
+ margin: 0.5em 0 0 0;
701
+ height: auto;
702
+ border: 0;
703
+ }
704
+ .ui-selectmenu-open {
705
+ display: block;
706
+ }
707
+ .ui-selectmenu-text {
708
+ display: block;
709
+ margin-right: 20px;
710
+ overflow: hidden;
711
+ text-overflow: ellipsis;
712
+ }
713
+ .ui-selectmenu-button.ui-button {
714
+ text-align: left;
715
+ white-space: nowrap;
716
+ width: 14em;
717
+ }
718
+ .ui-selectmenu-icon.ui-icon {
719
+ float: right;
720
+ margin-top: 0;
721
+ }
722
+ .ui-slider {
723
+ position: relative;
724
+ text-align: left;
725
+ }
726
+ .ui-slider .ui-slider-handle {
727
+ position: absolute;
728
+ z-index: 2;
729
+ width: 1.2em;
730
+ height: 1.2em;
731
+ cursor: default;
732
+ -ms-touch-action: none;
733
+ touch-action: none;
734
+ }
735
+ .ui-slider .ui-slider-range {
736
+ position: absolute;
737
+ z-index: 1;
738
+ font-size: .7em;
739
+ display: block;
740
+ border: 0;
741
+ background-position: 0 0;
742
+ }
743
+
744
+ /* support: IE8 - See #6727 */
745
+ .ui-slider.ui-state-disabled .ui-slider-handle,
746
+ .ui-slider.ui-state-disabled .ui-slider-range {
747
+ filter: inherit;
748
+ }
749
+
750
+ .ui-slider-horizontal {
751
+ height: .8em;
752
+ }
753
+ .ui-slider-horizontal .ui-slider-handle {
754
+ top: -.3em;
755
+ margin-left: -.6em;
756
+ }
757
+ .ui-slider-horizontal .ui-slider-range {
758
+ top: 0;
759
+ height: 100%;
760
+ }
761
+ .ui-slider-horizontal .ui-slider-range-min {
762
+ left: 0;
763
+ }
764
+ .ui-slider-horizontal .ui-slider-range-max {
765
+ right: 0;
766
+ }
767
+
768
+ .ui-slider-vertical {
769
+ width: .8em;
770
+ height: 100px;
771
+ }
772
+ .ui-slider-vertical .ui-slider-handle {
773
+ left: -.3em;
774
+ margin-left: 0;
775
+ margin-bottom: -.6em;
776
+ }
777
+ .ui-slider-vertical .ui-slider-range {
778
+ left: 0;
779
+ width: 100%;
780
+ }
781
+ .ui-slider-vertical .ui-slider-range-min {
782
+ bottom: 0;
783
+ }
784
+ .ui-slider-vertical .ui-slider-range-max {
785
+ top: 0;
786
+ }
787
+ .ui-sortable-handle {
788
+ -ms-touch-action: none;
789
+ touch-action: none;
790
+ }
791
+ .ui-spinner {
792
+ position: relative;
793
+ display: inline-block;
794
+ overflow: hidden;
795
+ padding: 0;
796
+ vertical-align: middle;
797
+ }
798
+ .ui-spinner-input {
799
+ border: none;
800
+ background: none;
801
+ color: inherit;
802
+ padding: .222em 0;
803
+ margin: .2em 0;
804
+ vertical-align: middle;
805
+ margin-left: .4em;
806
+ margin-right: 2em;
807
+ }
808
+ .ui-spinner-button {
809
+ width: 1.6em;
810
+ height: 50%;
811
+ font-size: .5em;
812
+ padding: 0;
813
+ margin: 0;
814
+ text-align: center;
815
+ position: absolute;
816
+ cursor: default;
817
+ display: block;
818
+ overflow: hidden;
819
+ right: 0;
820
+ }
821
+ /* more specificity required here to override default borders */
822
+ .ui-spinner a.ui-spinner-button {
823
+ border-top-style: none;
824
+ border-bottom-style: none;
825
+ border-right-style: none;
826
+ }
827
+ .ui-spinner-up {
828
+ top: 0;
829
+ }
830
+ .ui-spinner-down {
831
+ bottom: 0;
832
+ }
833
+ .ui-tabs {
834
+ position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
835
+ padding: .2em;
836
+ }
837
+ .ui-tabs .ui-tabs-nav {
838
+ margin: 0;
839
+ padding: .2em .2em 0;
840
+ }
841
+ .ui-tabs .ui-tabs-nav li {
842
+ list-style: none;
843
+ float: left;
844
+ position: relative;
845
+ top: 0;
846
+ margin: 1px .2em 0 0;
847
+ border-bottom-width: 0;
848
+ padding: 0;
849
+ white-space: nowrap;
850
+ }
851
+ .ui-tabs .ui-tabs-nav .ui-tabs-anchor {
852
+ float: left;
853
+ padding: .5em 1em;
854
+ text-decoration: none;
855
+ }
856
+ .ui-tabs .ui-tabs-nav li.ui-tabs-active {
857
+ margin-bottom: -1px;
858
+ padding-bottom: 1px;
859
+ }
860
+ .ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,
861
+ .ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,
862
+ .ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor {
863
+ cursor: text;
864
+ }
865
+ .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor {
866
+ cursor: pointer;
867
+ }
868
+ .ui-tabs .ui-tabs-panel {
869
+ display: block;
870
+ border-width: 0;
871
+ padding: 1em 1.4em;
872
+ background: none;
873
+ }
874
+ .ui-tooltip {
875
+ padding: 8px;
876
+ position: absolute;
877
+ z-index: 9999;
878
+ max-width: 300px;
879
+ }
880
+ body .ui-tooltip {
881
+ border-width: 2px;
882
+ }
883
+ /* Component containers
884
+ ----------------------------------*/
885
+ .ui-widget {
886
+ font-family: Arial,Helvetica,sans-serif;
887
+ font-size: 1em;
888
+ }
889
+ .ui-widget .ui-widget {
890
+ font-size: 1em;
891
+ }
892
+ .ui-widget input,
893
+ .ui-widget select,
894
+ .ui-widget textarea,
895
+ .ui-widget button {
896
+ font-family: Arial,Helvetica,sans-serif;
897
+ font-size: 1em;
898
+ }
899
+ .ui-widget.ui-widget-content {
900
+ border: 1px solid #c5c5c5;
901
+ }
902
+ .ui-widget-content {
903
+ border: 1px solid #dddddd;
904
+ background: #ffffff;
905
+ color: #333333;
906
+ }
907
+ .ui-widget-content a {
908
+ color: #333333;
909
+ }
910
+ .ui-widget-header {
911
+ border: 1px solid #dddddd;
912
+ background: #e9e9e9;
913
+ color: #333333;
914
+ font-weight: bold;
915
+ }
916
+ .ui-widget-header a {
917
+ color: #333333;
918
+ }
919
+
920
+ /* Interaction states
921
+ ----------------------------------*/
922
+ .ui-state-default,
923
+ .ui-widget-content .ui-state-default,
924
+ .ui-widget-header .ui-state-default,
925
+ .ui-button,
926
+
927
+ /* We use html here because we need a greater specificity to make sure disabled
928
+ works properly when clicked or hovered */
929
+ html .ui-button.ui-state-disabled:hover,
930
+ html .ui-button.ui-state-disabled:active {
931
+ border: 1px solid #c5c5c5;
932
+ background: #f6f6f6;
933
+ font-weight: normal;
934
+ color: #454545;
935
+ }
936
+ .ui-state-default a,
937
+ .ui-state-default a:link,
938
+ .ui-state-default a:visited,
939
+ a.ui-button,
940
+ a:link.ui-button,
941
+ a:visited.ui-button,
942
+ .ui-button {
943
+ color: #454545;
944
+ text-decoration: none;
945
+ }
946
+ .ui-state-hover,
947
+ .ui-widget-content .ui-state-hover,
948
+ .ui-widget-header .ui-state-hover,
949
+ .ui-state-focus,
950
+ .ui-widget-content .ui-state-focus,
951
+ .ui-widget-header .ui-state-focus,
952
+ .ui-button:hover,
953
+ .ui-button:focus {
954
+ border: 1px solid #cccccc;
955
+ background: #ededed;
956
+ font-weight: normal;
957
+ color: #2b2b2b;
958
+ }
959
+ .ui-state-hover a,
960
+ .ui-state-hover a:hover,
961
+ .ui-state-hover a:link,
962
+ .ui-state-hover a:visited,
963
+ .ui-state-focus a,
964
+ .ui-state-focus a:hover,
965
+ .ui-state-focus a:link,
966
+ .ui-state-focus a:visited,
967
+ a.ui-button:hover,
968
+ a.ui-button:focus {
969
+ color: #2b2b2b;
970
+ text-decoration: none;
971
+ }
972
+
973
+ .ui-visual-focus {
974
+ box-shadow: 0 0 3px 1px rgb(94, 158, 214);
975
+ }
976
+ .ui-state-active,
977
+ .ui-widget-content .ui-state-active,
978
+ .ui-widget-header .ui-state-active,
979
+ a.ui-button:active,
980
+ .ui-button:active,
981
+ .ui-button.ui-state-active:hover {
982
+ border: 1px solid #003eff;
983
+ background: #007fff;
984
+ font-weight: normal;
985
+ color: #ffffff;
986
+ }
987
+ .ui-icon-background,
988
+ .ui-state-active .ui-icon-background {
989
+ border: #003eff;
990
+ background-color: #ffffff;
991
+ }
992
+ .ui-state-active a,
993
+ .ui-state-active a:link,
994
+ .ui-state-active a:visited {
995
+ color: #ffffff;
996
+ text-decoration: none;
997
+ }
998
+
999
+ /* Interaction Cues
1000
+ ----------------------------------*/
1001
+ .ui-state-highlight,
1002
+ .ui-widget-content .ui-state-highlight,
1003
+ .ui-widget-header .ui-state-highlight {
1004
+ border: 1px solid #dad55e;
1005
+ background: #fffa90;
1006
+ color: #777620;
1007
+ }
1008
+ .ui-state-checked {
1009
+ border: 1px solid #dad55e;
1010
+ background: #fffa90;
1011
+ }
1012
+ .ui-state-highlight a,
1013
+ .ui-widget-content .ui-state-highlight a,
1014
+ .ui-widget-header .ui-state-highlight a {
1015
+ color: #777620;
1016
+ }
1017
+ .ui-state-error,
1018
+ .ui-widget-content .ui-state-error,
1019
+ .ui-widget-header .ui-state-error {
1020
+ border: 1px solid #f1a899;
1021
+ background: #fddfdf;
1022
+ color: #5f3f3f;
1023
+ }
1024
+ .ui-state-error a,
1025
+ .ui-widget-content .ui-state-error a,
1026
+ .ui-widget-header .ui-state-error a {
1027
+ color: #5f3f3f;
1028
+ }
1029
+ .ui-state-error-text,
1030
+ .ui-widget-content .ui-state-error-text,
1031
+ .ui-widget-header .ui-state-error-text {
1032
+ color: #5f3f3f;
1033
+ }
1034
+ .ui-priority-primary,
1035
+ .ui-widget-content .ui-priority-primary,
1036
+ .ui-widget-header .ui-priority-primary {
1037
+ font-weight: bold;
1038
+ }
1039
+ .ui-priority-secondary,
1040
+ .ui-widget-content .ui-priority-secondary,
1041
+ .ui-widget-header .ui-priority-secondary {
1042
+ opacity: .7;
1043
+ filter:Alpha(Opacity=70); /* support: IE8 */
1044
+ font-weight: normal;
1045
+ }
1046
+ .ui-state-disabled,
1047
+ .ui-widget-content .ui-state-disabled,
1048
+ .ui-widget-header .ui-state-disabled {
1049
+ opacity: .35;
1050
+ filter:Alpha(Opacity=35); /* support: IE8 */
1051
+ background-image: none;
1052
+ }
1053
+ .ui-state-disabled .ui-icon {
1054
+ filter:Alpha(Opacity=35); /* support: IE8 - See #6059 */
1055
+ }
1056
+
1057
+ /* Icons
1058
+ ----------------------------------*/
1059
+
1060
+ /* states and images */
1061
+ .ui-icon {
1062
+ width: 16px;
1063
+ height: 16px;
1064
+ }
1065
+ .ui-icon,
1066
+ .ui-widget-content .ui-icon {
1067
+ background-image: url("images/ui-icons_444444_256x240.png");
1068
+ }
1069
+ .ui-widget-header .ui-icon {
1070
+ background-image: url("images/ui-icons_444444_256x240.png");
1071
+ }
1072
+ .ui-button .ui-icon {
1073
+ background-image: url("images/ui-icons_777777_256x240.png");
1074
+ }
1075
+ .ui-state-hover .ui-icon,
1076
+ .ui-state-focus .ui-icon,
1077
+ .ui-button:hover .ui-icon,
1078
+ .ui-button:focus .ui-icon,
1079
+ .ui-state-default .ui-icon {
1080
+ background-image: url("images/ui-icons_555555_256x240.png");
1081
+ }
1082
+ .ui-state-active .ui-icon,
1083
+ .ui-button:active .ui-icon {
1084
+ background-image: url("images/ui-icons_ffffff_256x240.png");
1085
+ }
1086
+ .ui-state-highlight .ui-icon,
1087
+ .ui-button .ui-state-highlight.ui-icon {
1088
+ background-image: url("images/ui-icons_777620_256x240.png");
1089
+ }
1090
+ .ui-state-error .ui-icon,
1091
+ .ui-state-error-text .ui-icon {
1092
+ background-image: url("images/ui-icons_cc0000_256x240.png");
1093
+ }
1094
+
1095
+ /* positioning */
1096
+ .ui-icon-blank { background-position: 16px 16px; }
1097
+ .ui-icon-caret-1-n { background-position: 0 0; }
1098
+ .ui-icon-caret-1-ne { background-position: -16px 0; }
1099
+ .ui-icon-caret-1-e { background-position: -32px 0; }
1100
+ .ui-icon-caret-1-se { background-position: -48px 0; }
1101
+ .ui-icon-caret-1-s { background-position: -65px 0; }
1102
+ .ui-icon-caret-1-sw { background-position: -80px 0; }
1103
+ .ui-icon-caret-1-w { background-position: -96px 0; }
1104
+ .ui-icon-caret-1-nw { background-position: -112px 0; }
1105
+ .ui-icon-caret-2-n-s { background-position: -128px 0; }
1106
+ .ui-icon-caret-2-e-w { background-position: -144px 0; }
1107
+ .ui-icon-triangle-1-n { background-position: 0 -16px; }
1108
+ .ui-icon-triangle-1-ne { background-position: -16px -16px; }
1109
+ .ui-icon-triangle-1-e { background-position: -32px -16px; }
1110
+ .ui-icon-triangle-1-se { background-position: -48px -16px; }
1111
+ .ui-icon-triangle-1-s { background-position: -65px -16px; }
1112
+ .ui-icon-triangle-1-sw { background-position: -80px -16px; }
1113
+ .ui-icon-triangle-1-w { background-position: -96px -16px; }
1114
+ .ui-icon-triangle-1-nw { background-position: -112px -16px; }
1115
+ .ui-icon-triangle-2-n-s { background-position: -128px -16px; }
1116
+ .ui-icon-triangle-2-e-w { background-position: -144px -16px; }
1117
+ .ui-icon-arrow-1-n { background-position: 0 -32px; }
1118
+ .ui-icon-arrow-1-ne { background-position: -16px -32px; }
1119
+ .ui-icon-arrow-1-e { background-position: -32px -32px; }
1120
+ .ui-icon-arrow-1-se { background-position: -48px -32px; }
1121
+ .ui-icon-arrow-1-s { background-position: -65px -32px; }
1122
+ .ui-icon-arrow-1-sw { background-position: -80px -32px; }
1123
+ .ui-icon-arrow-1-w { background-position: -96px -32px; }
1124
+ .ui-icon-arrow-1-nw { background-position: -112px -32px; }
1125
+ .ui-icon-arrow-2-n-s { background-position: -128px -32px; }
1126
+ .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
1127
+ .ui-icon-arrow-2-e-w { background-position: -160px -32px; }
1128
+ .ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
1129
+ .ui-icon-arrowstop-1-n { background-position: -192px -32px; }
1130
+ .ui-icon-arrowstop-1-e { background-position: -208px -32px; }
1131
+ .ui-icon-arrowstop-1-s { background-position: -224px -32px; }
1132
+ .ui-icon-arrowstop-1-w { background-position: -240px -32px; }
1133
+ .ui-icon-arrowthick-1-n { background-position: 1px -48px; }
1134
+ .ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
1135
+ .ui-icon-arrowthick-1-e { background-position: -32px -48px; }
1136
+ .ui-icon-arrowthick-1-se { background-position: -48px -48px; }
1137
+ .ui-icon-arrowthick-1-s { background-position: -64px -48px; }
1138
+ .ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
1139
+ .ui-icon-arrowthick-1-w { background-position: -96px -48px; }
1140
+ .ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
1141
+ .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
1142
+ .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
1143
+ .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
1144
+ .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
1145
+ .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
1146
+ .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
1147
+ .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
1148
+ .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
1149
+ .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
1150
+ .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
1151
+ .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
1152
+ .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
1153
+ .ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
1154
+ .ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
1155
+ .ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
1156
+ .ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
1157
+ .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
1158
+ .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
1159
+ .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
1160
+ .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
1161
+ .ui-icon-arrow-4 { background-position: 0 -80px; }
1162
+ .ui-icon-arrow-4-diag { background-position: -16px -80px; }
1163
+ .ui-icon-extlink { background-position: -32px -80px; }
1164
+ .ui-icon-newwin { background-position: -48px -80px; }
1165
+ .ui-icon-refresh { background-position: -64px -80px; }
1166
+ .ui-icon-shuffle { background-position: -80px -80px; }
1167
+ .ui-icon-transfer-e-w { background-position: -96px -80px; }
1168
+ .ui-icon-transferthick-e-w { background-position: -112px -80px; }
1169
+ .ui-icon-folder-collapsed { background-position: 0 -96px; }
1170
+ .ui-icon-folder-open { background-position: -16px -96px; }
1171
+ .ui-icon-document { background-position: -32px -96px; }
1172
+ .ui-icon-document-b { background-position: -48px -96px; }
1173
+ .ui-icon-note { background-position: -64px -96px; }
1174
+ .ui-icon-mail-closed { background-position: -80px -96px; }
1175
+ .ui-icon-mail-open { background-position: -96px -96px; }
1176
+ .ui-icon-suitcase { background-position: -112px -96px; }
1177
+ .ui-icon-comment { background-position: -128px -96px; }
1178
+ .ui-icon-person { background-position: -144px -96px; }
1179
+ .ui-icon-print { background-position: -160px -96px; }
1180
+ .ui-icon-trash { background-position: -176px -96px; }
1181
+ .ui-icon-locked { background-position: -192px -96px; }
1182
+ .ui-icon-unlocked { background-position: -208px -96px; }
1183
+ .ui-icon-bookmark { background-position: -224px -96px; }
1184
+ .ui-icon-tag { background-position: -240px -96px; }
1185
+ .ui-icon-home { background-position: 0 -112px; }
1186
+ .ui-icon-flag { background-position: -16px -112px; }
1187
+ .ui-icon-calendar { background-position: -32px -112px; }
1188
+ .ui-icon-cart { background-position: -48px -112px; }
1189
+ .ui-icon-pencil { background-position: -64px -112px; }
1190
+ .ui-icon-clock { background-position: -80px -112px; }
1191
+ .ui-icon-disk { background-position: -96px -112px; }
1192
+ .ui-icon-calculator { background-position: -112px -112px; }
1193
+ .ui-icon-zoomin { background-position: -128px -112px; }
1194
+ .ui-icon-zoomout { background-position: -144px -112px; }
1195
+ .ui-icon-search { background-position: -160px -112px; }
1196
+ .ui-icon-wrench { background-position: -176px -112px; }
1197
+ .ui-icon-gear { background-position: -192px -112px; }
1198
+ .ui-icon-heart { background-position: -208px -112px; }
1199
+ .ui-icon-star { background-position: -224px -112px; }
1200
+ .ui-icon-link { background-position: -240px -112px; }
1201
+ .ui-icon-cancel { background-position: 0 -128px; }
1202
+ .ui-icon-plus { background-position: -16px -128px; }
1203
+ .ui-icon-plusthick { background-position: -32px -128px; }
1204
+ .ui-icon-minus { background-position: -48px -128px; }
1205
+ .ui-icon-minusthick { background-position: -64px -128px; }
1206
+ .ui-icon-close { background-position: -80px -128px; }
1207
+ .ui-icon-closethick { background-position: -96px -128px; }
1208
+ .ui-icon-key { background-position: -112px -128px; }
1209
+ .ui-icon-lightbulb { background-position: -128px -128px; }
1210
+ .ui-icon-scissors { background-position: -144px -128px; }
1211
+ .ui-icon-clipboard { background-position: -160px -128px; }
1212
+ .ui-icon-copy { background-position: -176px -128px; }
1213
+ .ui-icon-contact { background-position: -192px -128px; }
1214
+ .ui-icon-image { background-position: -208px -128px; }
1215
+ .ui-icon-video { background-position: -224px -128px; }
1216
+ .ui-icon-script { background-position: -240px -128px; }
1217
+ .ui-icon-alert { background-position: 0 -144px; }
1218
+ .ui-icon-info { background-position: -16px -144px; }
1219
+ .ui-icon-notice { background-position: -32px -144px; }
1220
+ .ui-icon-help { background-position: -48px -144px; }
1221
+ .ui-icon-check { background-position: -64px -144px; }
1222
+ .ui-icon-bullet { background-position: -80px -144px; }
1223
+ .ui-icon-radio-on { background-position: -96px -144px; }
1224
+ .ui-icon-radio-off { background-position: -112px -144px; }
1225
+ .ui-icon-pin-w { background-position: -128px -144px; }
1226
+ .ui-icon-pin-s { background-position: -144px -144px; }
1227
+ .ui-icon-play { background-position: 0 -160px; }
1228
+ .ui-icon-pause { background-position: -16px -160px; }
1229
+ .ui-icon-seek-next { background-position: -32px -160px; }
1230
+ .ui-icon-seek-prev { background-position: -48px -160px; }
1231
+ .ui-icon-seek-end { background-position: -64px -160px; }
1232
+ .ui-icon-seek-start { background-position: -80px -160px; }
1233
+ /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
1234
+ .ui-icon-seek-first { background-position: -80px -160px; }
1235
+ .ui-icon-stop { background-position: -96px -160px; }
1236
+ .ui-icon-eject { background-position: -112px -160px; }
1237
+ .ui-icon-volume-off { background-position: -128px -160px; }
1238
+ .ui-icon-volume-on { background-position: -144px -160px; }
1239
+ .ui-icon-power { background-position: 0 -176px; }
1240
+ .ui-icon-signal-diag { background-position: -16px -176px; }
1241
+ .ui-icon-signal { background-position: -32px -176px; }
1242
+ .ui-icon-battery-0 { background-position: -48px -176px; }
1243
+ .ui-icon-battery-1 { background-position: -64px -176px; }
1244
+ .ui-icon-battery-2 { background-position: -80px -176px; }
1245
+ .ui-icon-battery-3 { background-position: -96px -176px; }
1246
+ .ui-icon-circle-plus { background-position: 0 -192px; }
1247
+ .ui-icon-circle-minus { background-position: -16px -192px; }
1248
+ .ui-icon-circle-close { background-position: -32px -192px; }
1249
+ .ui-icon-circle-triangle-e { background-position: -48px -192px; }
1250
+ .ui-icon-circle-triangle-s { background-position: -64px -192px; }
1251
+ .ui-icon-circle-triangle-w { background-position: -80px -192px; }
1252
+ .ui-icon-circle-triangle-n { background-position: -96px -192px; }
1253
+ .ui-icon-circle-arrow-e { background-position: -112px -192px; }
1254
+ .ui-icon-circle-arrow-s { background-position: -128px -192px; }
1255
+ .ui-icon-circle-arrow-w { background-position: -144px -192px; }
1256
+ .ui-icon-circle-arrow-n { background-position: -160px -192px; }
1257
+ .ui-icon-circle-zoomin { background-position: -176px -192px; }
1258
+ .ui-icon-circle-zoomout { background-position: -192px -192px; }
1259
+ .ui-icon-circle-check { background-position: -208px -192px; }
1260
+ .ui-icon-circlesmall-plus { background-position: 0 -208px; }
1261
+ .ui-icon-circlesmall-minus { background-position: -16px -208px; }
1262
+ .ui-icon-circlesmall-close { background-position: -32px -208px; }
1263
+ .ui-icon-squaresmall-plus { background-position: -48px -208px; }
1264
+ .ui-icon-squaresmall-minus { background-position: -64px -208px; }
1265
+ .ui-icon-squaresmall-close { background-position: -80px -208px; }
1266
+ .ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
1267
+ .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
1268
+ .ui-icon-grip-solid-vertical { background-position: -32px -224px; }
1269
+ .ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
1270
+ .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
1271
+ .ui-icon-grip-diagonal-se { background-position: -80px -224px; }
1272
+
1273
+
1274
+ /* Misc visuals
1275
+ ----------------------------------*/
1276
+
1277
+ /* Corner radius */
1278
+ .ui-corner-all,
1279
+ .ui-corner-top,
1280
+ .ui-corner-left,
1281
+ .ui-corner-tl {
1282
+ border-top-left-radius: 3px;
1283
+ }
1284
+ .ui-corner-all,
1285
+ .ui-corner-top,
1286
+ .ui-corner-right,
1287
+ .ui-corner-tr {
1288
+ border-top-right-radius: 3px;
1289
+ }
1290
+ .ui-corner-all,
1291
+ .ui-corner-bottom,
1292
+ .ui-corner-left,
1293
+ .ui-corner-bl {
1294
+ border-bottom-left-radius: 3px;
1295
+ }
1296
+ .ui-corner-all,
1297
+ .ui-corner-bottom,
1298
+ .ui-corner-right,
1299
+ .ui-corner-br {
1300
+ border-bottom-right-radius: 3px;
1301
+ }
1302
+
1303
+ /* Overlays */
1304
+ .ui-widget-overlay {
1305
+ background: #aaaaaa;
1306
+ opacity: .3;
1307
+ filter: Alpha(Opacity=30); /* support: IE8 */
1308
+ }
1309
+ .ui-widget-shadow {
1310
+ -webkit-box-shadow: 0px 0px 5px #666666;
1311
+ box-shadow: 0px 0px 5px #666666;
1312
+ }
assets/css/wp-bulk-delete-admin.css ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ /**
2
+ * All of the CSS for your admin-specific functionality should be
3
+ * included in this file.
4
+ */
assets/js/wp-bulk-delete-admin.js ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function( $ ) {
2
+ 'use strict';
3
+
4
+ /**
5
+ * All of the code for your admin-facing JavaScript source
6
+ * should reside in this file.
7
+ *
8
+ * Note: It has been assumed you will write jQuery code here, so the
9
+ * $ function reference has been prepared for usage within the scope
10
+ * of this function.
11
+ *
12
+ * This enables you to define handlers, for when the DOM is ready:
13
+ *
14
+ * $(function() {
15
+ *
16
+ * });
17
+ *
18
+ * When the window is loaded:
19
+ *
20
+ * $( window ).load(function() {
21
+ *
22
+ * });
23
+ *
24
+ * ...and/or other possibilities.
25
+ *
26
+ * Ideally, it is not considered best practise to attach more than a
27
+ * single DOM-ready or window-load handler for a particular page.
28
+ * Although scripts in the WordPress core, Plugins and Themes may be
29
+ * practising this, we should strive to set a better example in our own work.
30
+ */
31
+ jQuery(document).ready(function(){
32
+ jQuery('.delete_all_datepicker').datepicker({
33
+ changeMonth: true,
34
+ changeYear: true,
35
+ dateFormat: 'yy-mm-dd'
36
+ });
37
+ });
38
+
39
+ // Delete posts form handle.
40
+ jQuery(document).ready(function() {
41
+ jQuery('#delete_posts_submit').on( 'click', function() {
42
+ var deleteform = jQuery("#delete_posts_form").serialize();
43
+ var data = {
44
+ 'action': 'delete_posts_count',
45
+ 'form': deleteform
46
+ };
47
+ jQuery(".spinner").addClass("is-active");
48
+ jQuery.post(ajaxurl, data, function(response) {
49
+ if( response != '' ){
50
+ var response = jQuery.parseJSON( response );
51
+ if( response.status == 0 ){
52
+ jQuery(".delete_notice").html('<div class="notice notice-error"><p><strong>' + response.messages + '</strong></p></div>');
53
+ } else if( response.status == 2 ){
54
+ jQuery(".delete_notice").html('<div class="notice notice-success"><p><strong>' + response.messages + '</strong></p></div>');
55
+ jQuery("html, body").animate({ scrollTop: 0 }, "slow");
56
+ } else if( response.status == 1 ){
57
+ if ( confirm( response.post_count + ' records will be delete. Would you like to proceed further?' ) ){
58
+ jQuery("#delete_posts_form").submit();
59
+ }
60
+ }
61
+ }
62
+ jQuery(".spinner").removeClass("is-active");
63
+ });
64
+ });
65
+ });
66
+
67
+ // Render Dynamic taxomony.
68
+ jQuery(document).ready(function() {
69
+ jQuery('#delete_post_type').on( 'change', function() {
70
+ var post_type = jQuery(this).val();
71
+ var data = {
72
+ 'action': 'render_taxonomy_by_posttype',
73
+ 'post_type': post_type
74
+ };
75
+
76
+ var taxomony_space = jQuery('.post_taxonomy');
77
+ jQuery('.taxo_terms_title').html('');
78
+ jQuery('.post_taxo_terms').html('');
79
+ taxomony_space.html('<span class="spinner is-active" style="float: none;"></span>');
80
+ // send ajax request.
81
+ jQuery.post(ajaxurl, data, function(response) {
82
+ if( response != '' ){
83
+ taxomony_space.html( response );
84
+ }else{
85
+ taxomony_space.html( '' );
86
+ }
87
+ });
88
+ });
89
+ });
90
+
91
+ // Render Dynamic Terms.
92
+ jQuery(document).ready(function() {
93
+ jQuery('.post_taxonomy_radio').live( 'change', function() {
94
+
95
+ var post_taxomony = jQuery(this).val();
96
+ var xt_taxonomy_title = jQuery(this).attr( 'title' );
97
+ jQuery('.taxo_terms_title').html( xt_taxonomy_title + ':');
98
+ var data = {
99
+ 'action': 'render_terms_by_taxonomy',
100
+ 'post_taxomony': post_taxomony
101
+ };
102
+
103
+ var terms_space = jQuery('.post_taxo_terms');
104
+ terms_space.html('<span class="spinner is-active" style="float: none;"></span>');
105
+ // send ajax request.
106
+ jQuery.post(ajaxurl, data, function(response) {
107
+ if( response != '' ){
108
+ terms_space.html( response );
109
+ }else{
110
+ terms_space.html( '' );
111
+ }
112
+ });
113
+ });
114
+ });
115
+
116
+ })( jQuery );
includes/admin/admin-pages.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Admin Pages
4
+ *
5
+ * @package WP_Bulk_Delete
6
+ * @subpackage Admin/Pages
7
+ * @copyright Copyright (c) 2016, Dharmesh Patel
8
+ * @since 1.0
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+
15
+ /**
16
+ * Create the Admin menu and submenu and assign their links to global varibles.
17
+ *
18
+ * @since 1.0
19
+ * @param string $hook Page hook
20
+ * @return void
21
+ */
22
+ function wpbd_add_menu_pages() {
23
+ global $xt_delete_posts_page, $xt_delete_comments_page, $xt_delete_users_page, $xt_delete_meta_page, $xt_delete_taxonomy_page;
24
+ add_menu_page( __( 'WP Bulk Delete', 'wp-bulk-delete' ), __( 'WP Bulk Delete', 'wp-bulk-delete' ), 'manage_options', 'delete_all_posts',
25
+ 'wpbd_delete_posts_page', 'dashicons-trash', '30' );
26
+
27
+ $xt_delete_posts_page = add_submenu_page( 'delete_all_posts', __( 'Delete Posts', 'wp-bulk-delete' ), __( 'Delete Posts', 'wp-bulk-delete' ), 'manage_options', 'delete_all_posts', 'wpbd_delete_posts_page' );
28
+
29
+ $xt_delete_comments_page = add_submenu_page( 'delete_all_posts', __( 'Delete Comments', 'wp-bulk-delete' ), __( 'Delete Comments', 'wp-bulk-delete' ), 'manage_options', 'delete_all_comments', 'wpbd_delete_comments_page' );
30
+
31
+ $xt_delete_users_page = add_submenu_page( 'delete_all_posts', __( 'Delete Users', 'wp-bulk-delete' ), __( 'Delete Users', 'wp-bulk-delete' ), 'manage_options', 'delete_all_users', 'wpbd_delete_users_page' );
32
+
33
+ $xt_delete_meta_page = add_submenu_page( 'delete_all_posts', __( 'Delete Meta', 'wp-bulk-delete' ), __( 'Delete Meta', 'wp-bulk-delete' ), 'manage_options', 'delete_all_meta', 'wpbd_delete_meta_page' );
34
+
35
+ $xt_delete_taxonomy_page = add_submenu_page( 'delete_all_posts', __( 'Delete Taxonomy', 'wp-bulk-delete' ), __( 'Delete Taxonomy', 'wp-bulk-delete' ), 'manage_options', 'delete_all_taxonomy', 'wpbd_delete_taxonomy_page' );
36
+
37
+ }
38
+ add_action( 'admin_menu', 'wpbd_add_menu_pages', 10 );
includes/admin/comments/display-delete-comments.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Admin Delete Comments
4
+ *
5
+ * @package WP_Bulk_Delete
6
+ * @subpackage Admin/Pages
7
+ * @copyright Copyright (c) 2016, Dharmesh Patel
8
+ * @since 1.0
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+
15
+ /**
16
+ * Delete Comments Page.
17
+ *
18
+ * Render the delete comments page contents.
19
+ *
20
+ * @since 1.0
21
+ * @return void
22
+ */
23
+ function wpbd_delete_comments_page(){
24
+ ?>
25
+ <div class="wrap">
26
+ <h2><?php esc_html_e('Delete Comments','wp-bulk-delete'); ?></h2>
27
+ <div id="poststuff">
28
+ <div id="post-body" class="metabox-holder columns-2">
29
+
30
+ <div class="notice notice-warning">
31
+ <p><strong><?php _e( 'WARNING: Before you delete any comment please first take Backup, any delete operation done is irreversible. Please use it with caution!', 'wp-bulk-delete' ); ?></strong></p>
32
+ </div>
33
+
34
+ <div class="delete_notice"></div>
35
+
36
+ <!--<div id="postbox-container-1" class="postbox-container">
37
+
38
+ </div>-->
39
+
40
+ <div id="postbox-container-2" class="postbox-container">
41
+
42
+ <h2>
43
+ <?php esc_html_e( 'Coming soon', 'wp-bulk-delete'); ?>
44
+ </h2>
45
+ </div>
46
+ </div>
47
+ <br class="clear">
48
+ </div>
49
+
50
+ </div><!-- /.wrap -->
51
+ <?php
52
+ }
includes/admin/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
includes/admin/meta/display-delete-meta.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Admin Delete Meta
4
+ *
5
+ * @package WP_Bulk_Delete
6
+ * @subpackage Admin/Pages
7
+ * @copyright Copyright (c) 2016, Dharmesh Patel
8
+ * @since 1.0
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+
15
+ /**
16
+ * Delete Meta Page.
17
+ *
18
+ * Render the delete meta page contents.
19
+ *
20
+ * @since 1.0
21
+ * @return void
22
+ */
23
+ function wpbd_delete_meta_page(){
24
+ ?>
25
+ <div class="wrap">
26
+ <h2><?php esc_html_e('Delete Meta','wp-bulk-delete'); ?></h2>
27
+ <div id="poststuff">
28
+ <div id="post-body" class="metabox-holder columns-2">
29
+
30
+ <div class="notice notice-warning">
31
+ <p><strong><?php _e( 'WARNING: Before you delete any meta please first take Backup, any delete operation done is irreversible. Please use it with caution!', 'wp-bulk-delete' ); ?></strong></p>
32
+ </div>
33
+
34
+ <div class="delete_notice"></div>
35
+
36
+ <!--<div id="postbox-container-1" class="postbox-container">
37
+
38
+ </div>-->
39
+
40
+ <div id="postbox-container-2" class="postbox-container">
41
+
42
+ <h2>
43
+ <?php esc_html_e( 'Coming soon', 'wp-bulk-delete'); ?>
44
+ </h2>
45
+ </div>
46
+ </div>
47
+ <br class="clear">
48
+ </div>
49
+
50
+ </div><!-- /.wrap -->
51
+ <?php
52
+ }
includes/admin/posts/display-delete-posts.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Admin Delete Posts
4
+ *
5
+ * @package WP_Bulk_Delete
6
+ * @subpackage Admin/Pages
7
+ * @copyright Copyright (c) 2016, Dharmesh Patel
8
+ * @since 1.0
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+
15
+ /**
16
+ * Delete Posts Page.
17
+ *
18
+ * Render the delete posts page contents.
19
+ *
20
+ * @since 1.0
21
+ * @return void
22
+ */
23
+ function wpbd_delete_posts_page(){
24
+ ?>
25
+ <div class="wrap">
26
+ <h2><?php esc_html_e('Delete Posts','wp-bulk-delete'); ?></h2>
27
+ <?php
28
+ // Set Default Tab to General
29
+ $active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'cleanup';
30
+ ?>
31
+ <div id="poststuff">
32
+ <div id="post-body" class="metabox-holder columns-2">
33
+
34
+ <div class="notice notice-warning">
35
+ <p><strong><?php _e( 'WARNING: Before you delete any post please first take Backup, any delete operation done is irreversible. Please use it with caution!', 'wp-bulk-delete' ); ?></strong></p>
36
+ </div>
37
+
38
+ <div class="delete_notice"></div>
39
+
40
+ <!--<div id="postbox-container-1" class="postbox-container">
41
+
42
+ </div>-->
43
+
44
+ <div id="postbox-container-2" class="postbox-container">
45
+
46
+ <h2 class="nav-tab-wrapper" style="padding-bottom: 0px">
47
+ <a href="?page=delete_all_posts&tab=cleanup" class="nav-tab <?php echo $active_tab == 'cleanup' ? 'nav-tab-active' : ''; ?>">
48
+ <?php esc_attr_e( 'Cleanup', 'wp-bulk-delete' ); ?>
49
+ </a>
50
+ <a href="?page=delete_all_posts&tab=by_posttype" class="nav-tab <?php echo $active_tab == 'by_posttype' ? 'nav-tab-active' : ''; ?>">
51
+ <?php esc_attr_e( 'By Posttype', 'wp-bulk-delete' ); ?>
52
+ </a>
53
+ <a href="?page=delete_all_posts&tab=by_taxonomy" class="nav-tab <?php echo $active_tab == 'by_taxonomy' ? 'nav-tab-active' : ''; ?>">
54
+ <?php esc_attr_e( 'By Taxonomy', 'wp-bulk-delete' ); ?>
55
+ </a>
56
+ <a href="?page=delete_all_posts&tab=by_author" class="nav-tab <?php echo $active_tab == 'by_author' ? 'nav-tab-active' : ''; ?>">
57
+ <?php esc_attr_e( 'By Author', 'wp-bulk-delete' ); ?>
58
+ </a>
59
+ <a href="?page=delete_all_posts&tab=by_title" class="nav-tab <?php echo $active_tab == 'by_title' ? 'nav-tab-active' : ''; ?>">
60
+ <?php esc_attr_e( 'By Title or Content', 'wp-bulk-delete' ); ?>
61
+ </a>
62
+ <a href="?page=delete_all_posts&tab=by_customfield" class="nav-tab <?php echo $active_tab == 'by_customfield' ? 'nav-tab-active' : ''; ?>">
63
+ <?php esc_attr_e( 'By Custom fields', 'wp-bulk-delete' ); ?>
64
+ </a>
65
+ <a href="?page=delete_all_posts&tab=general" class="nav-tab <?php echo $active_tab == 'general' ? 'nav-tab-active' : ''; ?>">
66
+ <?php esc_attr_e( 'General (By All)', 'wp-bulk-delete' ); ?>
67
+ </a>
68
+ </h2>
69
+
70
+ <?php
71
+ if( $active_tab == 'general' || $active_tab == 'by_taxonomy' || $active_tab == 'by_author' || $active_tab == 'by_title' || $active_tab == 'by_posttype' || $active_tab == 'by_customfield' ) {
72
+ // load General Post Delete Form
73
+ require_once DA_PLUGIN_DIR . 'includes/admin/posts/wp-bulk-delete-posts.php';
74
+ }
75
+ if( $active_tab == 'cleanup' ){
76
+ require_once DA_PLUGIN_DIR . 'includes/admin/posts/post-cleanup.php';
77
+ }
78
+ ?>
79
+ </div>
80
+ </div>
81
+ <br class="clear">
82
+ </div>
83
+
84
+ </div><!-- /.wrap -->
85
+ <?php
86
+ }
includes/admin/posts/post-cleanup.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Admin Delete Posts General Tab
4
+ *
5
+ * @package WP_Bulk_Delete
6
+ * @subpackage Admin/Pages
7
+ * @copyright Copyright (c) 2016, Dharmesh Patel
8
+ * @since 1.0
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+ if( ! empty( $_POST ) && isset( $_POST['run_post_cleanup'] ) ){
15
+
16
+ $messages = $error = array();
17
+ if ( ! current_user_can( 'manage_options' ) ) {
18
+ $error[] = esc_html__('You don\'t have enough permission for this operation.', 'wp-bulk-delete' );
19
+ }
20
+
21
+ if ( isset( $_POST['_run_post_cleanup_wpnonce'] ) && wp_verify_nonce( $_POST['_run_post_cleanup_wpnonce'], 'run_post_cleanup_nonce' ) && empty( $error ) ) {
22
+ $cleanups = $_POST['cleanup_post_type'];
23
+ if( ! empty( $cleanups ) ){
24
+ foreach ($cleanups as $cleanuptype ) {
25
+ $messages[] = wpbulkdelete()->api->run_cleanup( $cleanuptype );
26
+ }
27
+ }
28
+ }else{
29
+ wp_die( esc_html__( 'Sorry, Your nonce did not verify.', 'wp-bulk-delete' ) );
30
+ }
31
+
32
+ if( !empty( $error ) ){
33
+ foreach ( $error as $err ) {
34
+ ?>
35
+ <div class="notice notice-error">
36
+ <p><strong><?php echo $err; ?></strong></p>
37
+ </div>
38
+ <?php
39
+ }
40
+ }
41
+
42
+ if( ! empty( $messages ) ){
43
+ foreach ( $messages as $message ) {
44
+ if( $message != '' ){
45
+ ?>
46
+ <div class="notice notice-success">
47
+ <p><strong><?php echo $message; ?></strong></p>
48
+ </div>
49
+ <?php
50
+ }
51
+ }
52
+ }
53
+ }
54
+ ?>
55
+ <form method="post" id="cleanup">
56
+ <table class="form-table">
57
+ <tbody>
58
+ <?php
59
+ wpbd_render_post_cleanup();
60
+
61
+ wp_nonce_field('run_post_cleanup_nonce', '_run_post_cleanup_wpnonce' );
62
+
63
+ ?>
64
+ </tbody>
65
+ </table>
66
+ <?php
67
+ submit_button( __('Run Cleanup','wp-bulk-delete'), 'primary','run_post_cleanup');
68
+ ?>
69
+ </form>
includes/admin/posts/wp-bulk-delete-posts.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Admin Delete Posts General Tab
4
+ *
5
+ * @package WP_Bulk_Delete
6
+ * @subpackage Admin/Pages
7
+ * @copyright Copyright (c) 2016, Dharmesh Patel
8
+ * @since 1.0
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+ $post_by_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'general';
15
+
16
+ if( ! empty( $_POST ) && isset( $_POST['delete_post_type'] ) ){
17
+
18
+ // Get post_result for delete based on user input.
19
+ $post_result = xt_delete_posts_form_process( $_POST );
20
+ if ( ! empty( $post_result ) && $post_result['status'] == 1 ){
21
+
22
+ if( !empty( $post_result['messages'] ) ){
23
+ foreach ( $post_result['messages'] as $smessages ) {
24
+ ?>
25
+ <div class="notice notice-success">
26
+ <p><strong><?php echo $smessages; ?></strong></p>
27
+ </div>
28
+ <?php
29
+ }
30
+ }
31
+ } elseif ( ! empty( $post_result ) && $post_result['status'] == 0 ){
32
+
33
+ if( !empty( $post_result['messages'] ) ){
34
+ foreach ( $post_result['messages'] as $emessages ) {
35
+ ?>
36
+ <div class="notice notice-error">
37
+ <p><strong><?php echo $emessages; ?></strong></p>
38
+ </div>
39
+ <?php
40
+ }
41
+ }
42
+
43
+ }
44
+ }
45
+ ?>
46
+ <form method="post" id="delete_posts_form">
47
+ <table class="form-table">
48
+ <tbody>
49
+ <?php
50
+ if ( 'by_posttype' == $post_by_tab ){
51
+
52
+ do_action( 'render_form_by_posttype' );
53
+
54
+ } elseif ( 'by_author' == $post_by_tab ){
55
+
56
+ do_action( 'render_form_by_author' );
57
+
58
+ } elseif ( 'by_title' == $post_by_tab ){
59
+
60
+ do_action( 'render_form_by_title' );
61
+
62
+ } elseif( 'by_taxonomy' == $post_by_tab ){
63
+
64
+ do_action( 'render_form_by_taxonomy' );
65
+
66
+ } elseif( 'general' == $post_by_tab ){
67
+
68
+ do_action( 'render_form_general' );
69
+
70
+ } elseif( 'by_customfield' == $post_by_tab ){
71
+
72
+ do_action( 'render_form_by_custom_fields' );
73
+
74
+ }
75
+ wp_nonce_field('delete_posts_nonce', '_delete_all_posts_wpnonce' );
76
+
77
+ ?>
78
+ </tbody>
79
+ </table>
80
+ <p class="submit">
81
+ <input name="delete_posts_submit" id="delete_posts_submit" class="button button-primary" value="Delete" type="button">
82
+ <span class="spinner" style="float: none;"></span>
83
+ </p>
84
+ </form>
includes/admin/taxonomy/display-delete-taxonomy.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Admin Delete Taxonomy
4
+ *
5
+ * @package WP_Bulk_Delete
6
+ * @subpackage Admin/Pages
7
+ * @copyright Copyright (c) 2016, Dharmesh Patel
8
+ * @since 1.0
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+
15
+ /**
16
+ * Delete Taxonomy Page.
17
+ *
18
+ * Render the delete taxonomy page contents.
19
+ *
20
+ * @since 1.0
21
+ * @return void
22
+ */
23
+ function wpbd_delete_taxonomy_page(){
24
+ ?>
25
+ <div class="wrap">
26
+ <h2><?php esc_html_e('Delete Taxonomy','wp-bulk-delete'); ?></h2>
27
+ <div id="poststuff">
28
+ <div id="post-body" class="metabox-holder columns-2">
29
+
30
+ <div class="notice notice-warning">
31
+ <p><strong><?php _e( 'WARNING: Before you delete any taxonomy please first take Backup, any delete operation done is irreversible. Please use it with caution!', 'wp-bulk-delete' ); ?></strong></p>
32
+ </div>
33
+
34
+ <div class="delete_notice"></div>
35
+
36
+ <!--<div id="postbox-container-1" class="postbox-container">
37
+
38
+ </div>-->
39
+
40
+ <div id="postbox-container-2" class="postbox-container">
41
+
42
+ <h2>
43
+ <?php esc_html_e( 'Coming soon', 'wp-bulk-delete'); ?>
44
+ </h2>
45
+ </div>
46
+ </div>
47
+ <br class="clear">
48
+ </div>
49
+
50
+ </div><!-- /.wrap -->
51
+ <?php
52
+ }
includes/admin/users/display-delete-users.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Admin Delete Users
4
+ *
5
+ * @package WP_Bulk_Delete
6
+ * @subpackage Admin/Pages
7
+ * @copyright Copyright (c) 2016, Dharmesh Patel
8
+ * @since 1.0
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+
15
+ /**
16
+ * Delete Users Page.
17
+ *
18
+ * Render the delete users page contents.
19
+ *
20
+ * @since 1.0
21
+ * @return void
22
+ */
23
+ function wpbd_delete_users_page(){
24
+ ?>
25
+ <div class="wrap">
26
+ <h2><?php esc_html_e('Delete Users','wp-bulk-delete'); ?></h2>
27
+ <div id="poststuff">
28
+ <div id="post-body" class="metabox-holder columns-2">
29
+
30
+ <div class="notice notice-warning">
31
+ <p><strong><?php _e( 'WARNING: Before you delete any users please first take Backup, any delete operation done is irreversible. Please use it with caution!', 'wp-bulk-delete' ); ?></strong></p>
32
+ </div>
33
+
34
+ <div class="delete_notice"></div>
35
+
36
+ <!--<div id="postbox-container-1" class="postbox-container">
37
+
38
+ </div>-->
39
+
40
+ <div id="postbox-container-2" class="postbox-container">
41
+
42
+ <h2>
43
+ <?php esc_html_e( 'Coming soon', 'wp-bulk-delete'); ?>
44
+ </h2>
45
+ </div>
46
+ </div>
47
+ <br class="clear">
48
+ </div>
49
+
50
+ </div><!-- /.wrap -->
51
+ <?php
52
+ }
includes/ajax-functions.php ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Ajax Functions
4
+ *
5
+ * @package WP_Bulk_Delete
6
+ * @subpackage Ajax Functions
7
+ * @copyright Copyright (c) 2016, Dharmesh Patel
8
+ * @since 1.0
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+
15
+ /**
16
+ * Render Taxonomy based on Post type Selection.
17
+ *
18
+ * @since 1.0
19
+ * @param string $hook Page hook
20
+ * @return void
21
+ */
22
+ function wpbd_delete_posts_count() {
23
+ $data = $error = $return = array();
24
+ parse_str($_POST['form'], $data);
25
+ if( ! empty( $data ) ){
26
+
27
+ if ( ! current_user_can( 'manage_options' ) ) {
28
+ $error[] = esc_html__('You don\'t have enough permission for this operation.', 'wp-bulk-delete' );
29
+ }
30
+
31
+ if ( isset( $data['_delete_all_posts_wpnonce'] ) && wp_verify_nonce( $data['_delete_all_posts_wpnonce'], 'delete_posts_nonce' ) ) {
32
+
33
+ if( empty( $error ) ){
34
+
35
+ // Get post_ids for delete based on user input.
36
+ $post_ids = wpbulkdelete()->api->get_delete_posts_ids( $data );
37
+
38
+ if ( ! empty( $post_ids ) && count( $post_ids ) > 0 ) {
39
+ $return = array(
40
+ 'status' => 1,
41
+ 'post_count' => count( $post_ids ),
42
+ );
43
+ } else {
44
+ $return = array(
45
+ 'status' => 2,
46
+ 'messages' => array( esc_html__( 'Nothing to delete!!', 'wp-bulk-delete' ) ),
47
+ );
48
+ }
49
+
50
+ } else {
51
+ $return = array(
52
+ 'status' => 0,
53
+ 'messages' => $error[0],
54
+ );
55
+ }
56
+
57
+ } else {
58
+ $error[] = esc_html__('Sorry, Your nonce did not verify.', 'wp-bulk-delete' );
59
+ $return = array(
60
+ 'status' => 0,
61
+ 'messages' => $error[0],
62
+ );
63
+ }
64
+ }
65
+ echo json_encode( $return );
66
+ wp_die(); // this is required to terminate immediately and return a proper response
67
+ }
68
+ add_action( 'wp_ajax_delete_posts_count', 'wpbd_delete_posts_count' );
69
+
70
+
71
+ /**
72
+ * Render Taxonomy based on Post type Selection.
73
+ *
74
+ * @since 1.0
75
+ * @return void
76
+ */
77
+ function wpbd_render_taxonomy_by_posttype() {
78
+
79
+ $post_type = $_REQUEST['post_type'];
80
+ $taxonomies = array();
81
+ if ( $post_type != '' ) {
82
+ $taxonomies = wpbd_get_taxonomy_by_posttype( $post_type );
83
+ }
84
+ if( ! empty( $taxonomies ) ){
85
+ foreach ($taxonomies as $slug => $name ) {
86
+ ?>
87
+ <input type="radio" name="post_taxonomy" value="<?php echo $slug;?>" class="post_taxonomy_radio" title="<?php echo $name; ?>"><?php echo $name; ?> <br />
88
+ <?php
89
+ }
90
+ }
91
+ wp_die();
92
+ }
93
+ add_action( 'wp_ajax_render_taxonomy_by_posttype', 'wpbd_render_taxonomy_by_posttype' );
94
+
95
+
96
+ /**
97
+ * Render Taxonomy Terms based on Texonomy Selection.
98
+ *
99
+ * @since 1.0
100
+ * @return void
101
+ */
102
+ function wpbd_render_terms_by_taxonomy() {
103
+
104
+ $post_taxo = esc_attr( $_REQUEST['post_taxomony'] );
105
+ $terms = array();
106
+ if ( $post_taxo != '' ) {
107
+ if( taxonomy_exists( $post_taxo ) ){
108
+ $terms = get_terms( $post_taxo, array( 'hide_empty' => false ) );
109
+ }
110
+ }
111
+ if( ! empty( $terms ) ){
112
+ foreach ($terms as $term ) {
113
+ ?>
114
+ <input type="checkbox" name="post_taxonomy_terms[]" value="<?php echo $term->term_id;?>" class="post_taxonomy_terms" ><?php echo $term->name; ?> <br />
115
+ <?php
116
+ }
117
+ }
118
+ wp_die();
119
+ }
120
+ add_action( 'wp_ajax_render_terms_by_taxonomy', 'wpbd_render_terms_by_taxonomy' );
includes/class-delete-api.php ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Scripts
4
+ *
5
+ * @package WP_Bulk_Delete
6
+ * @subpackage Delerte API
7
+ * @copyright Copyright (c) 2016, Dharmesh Patel
8
+ * @since 1.0
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+ /**
15
+ * WPBD_Delete_API class
16
+ *
17
+ * @since 1.0.0
18
+ */
19
+ class WPBD_Delete_API {
20
+
21
+ /**
22
+ * Get things going
23
+ *
24
+ * @since 1.0.0
25
+ */
26
+ public function __construct() { /* */ }
27
+
28
+ /**
29
+ * Get posts Ids.
30
+ *
31
+ * @access public
32
+ * @since 1.0
33
+ * @param array $data Delete posts form data.
34
+ * @return array | Posts Id.
35
+ */
36
+ public function get_delete_posts_ids( $data = array() ) {
37
+ global $wpdb;
38
+ if( ! empty( $data['delete_post_type'] ) && ! empty( $data['delete_post_status'] ) ){
39
+
40
+ $post_types = ( $data['delete_post_type'] ) ? $data['delete_post_type'] : array();
41
+ if( ! is_array( $post_types ) ){
42
+ $post_types = array( $post_types );
43
+ }
44
+ $post_types = array_map('esc_sql', $post_types );
45
+
46
+ $post_status = ( $data['delete_post_status'] ) ? array_map('esc_sql', $data['delete_post_status'] ) : array();
47
+ $delete_start_date = ( $data['delete_start_date'] ) ? esc_sql( $data['delete_start_date'] ) : '';
48
+ $delete_end_date = ( $data['delete_end_date'] ) ? esc_sql( $data['delete_end_date'] ) : '';
49
+ $delete_authors = ( $data['delete_authors'] ) ? array_map( 'intval', $data['delete_authors'] ) : array();
50
+ $delete_type = ( $data['delete_type'] )?$data['delete_type']:'trash';
51
+ $limit_post = ( $data['limit_post'] ) ? absint( $data['limit_post'] ) : '';
52
+
53
+ // BY Taxonomy.
54
+ $post_taxonomy = ( $data['post_taxonomy'] ) ? esc_sql( $data['post_taxonomy'] ) : '';
55
+ $post_taxonomy_terms = ( $data['post_taxonomy_terms'] ) ? array_map( 'intval', $data['post_taxonomy_terms'] ) : array();
56
+
57
+ // Query Generation.
58
+ $query = "SELECT DISTINCT $wpdb->posts.ID FROM $wpdb->posts ";
59
+
60
+ if( $post_taxonomy != '' && ! empty( $post_taxonomy_terms ) ) {
61
+
62
+ $query .= " LEFT JOIN $wpdb->term_relationships ON( $wpdb->posts.ID = $wpdb->term_relationships.object_id )";
63
+ $query .= " LEFT JOIN $wpdb->term_taxonomy ON($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id)";
64
+ $query .= " LEFT JOIN $wpdb->terms ON($wpdb->term_taxonomy.term_id = $wpdb->terms.term_id)";
65
+ }
66
+
67
+ $query .= " WHERE $wpdb->posts.post_type IN ( '" . implode( "', '", $post_types ) . "' )";
68
+
69
+ if( $post_taxonomy != '' && ! empty( $post_taxonomy_terms ) ) {
70
+ $query .= " AND ( $wpdb->terms.term_id IN ( " . implode( ", ", $post_taxonomy_terms ). " )";
71
+ $query .= " AND $wpdb->term_taxonomy.taxonomy = '{$post_taxonomy}' )";
72
+ }
73
+
74
+ if( !empty( $post_status ) ){
75
+ $query .= " AND $wpdb->posts.post_status IN ( '" . implode( "', '", $post_status ) . "' )";
76
+ }
77
+ if( $delete_start_date != ''){
78
+ $query .= " AND $wpdb->posts.post_date >= '{$delete_start_date} 00:00:00'";
79
+ }
80
+ if( $delete_end_date != ''){
81
+ $query .= " AND $wpdb->posts.post_date <= '{$delete_end_date} 23:59:59'";
82
+ }
83
+
84
+ if( !empty( $delete_authors ) ){
85
+ $query .= " AND $wpdb->posts.post_author IN ( " . implode( ",", $delete_authors ). " )";
86
+ }
87
+
88
+ if( $limit_post != '' ){
89
+ if( is_numeric( $limit_post ) ){
90
+ $query .= " LIMIT " . $limit_post;
91
+ }
92
+ }
93
+
94
+ $posts = $wpdb->get_col( $query );
95
+ return $posts;
96
+
97
+ }else{
98
+ return array();
99
+ }
100
+ }
101
+
102
+ /**
103
+ * Do Delete operation on posts.
104
+ *
105
+ * @access public
106
+ * @since 1.0
107
+ * @param array $data Posts Id.
108
+ * @return array | deleted posts count.
109
+ */
110
+ public function do_delete_posts( $post_ids = array(), $force_delete = 'false') {
111
+ $post_delete_count = 0;
112
+
113
+ if ( ! empty( $post_ids ) ){
114
+
115
+ foreach ($post_ids as $post_id ) {
116
+ wp_delete_post( $post_id, $force_delete );
117
+ }
118
+ $post_delete_count = count( $post_ids );
119
+
120
+ }
121
+ return $post_delete_count;
122
+ }
123
+
124
+ /**
125
+ * Get Post Count by Posttype
126
+ *
127
+ * @access public
128
+ * @since 1.0
129
+ * @param array $post_type Post type.
130
+ * @return int | posts count.
131
+ */
132
+ public function get_post_count( $counttype = '' ) {
133
+ global $wpdb;
134
+
135
+ $count = 0;
136
+
137
+ switch( $counttype ) {
138
+ case 'revision':
139
+ $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) FROM $wpdb->posts WHERE post_type = %s", 'revision' ) );
140
+ break;
141
+ case 'auto_drafts':
142
+ $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) FROM $wpdb->posts WHERE post_status = %s", 'auto-draft' ) );
143
+ break;
144
+ case 'trash':
145
+ $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) FROM $wpdb->posts WHERE post_status = %s", 'trash' ) );
146
+ break;
147
+ }
148
+ return $count;
149
+
150
+ }
151
+
152
+
153
+ /**
154
+ * Run Cleanup
155
+ *
156
+ * @access public
157
+ * @since 1.0
158
+ * @param array $cleanuptype Cleanup type.
159
+ * @return string | message.
160
+ */
161
+ public function run_cleanup( $cleanuptype = '' ){
162
+ global $wpdb;
163
+ $message = '';
164
+
165
+ switch( $cleanuptype ) {
166
+ case 'revision':
167
+ $posts = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type = %s", 'revision' ) );
168
+ if( $posts ) {
169
+ foreach ( $posts as $id ) {
170
+ wp_delete_post_revision( intval( $id ) );
171
+ }
172
+
173
+ $message = sprintf( __( '%s Revisions Cleaned up', 'wp-sweep' ), number_format_i18n( sizeof( $posts ) ) );
174
+ }
175
+ break;
176
+ case 'auto_drafts':
177
+ $posts = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_status = %s", 'auto-draft' ) );
178
+ if( $posts ) {
179
+ foreach ( $posts as $id ) {
180
+ wp_delete_post( intval( $id ), true );
181
+ }
182
+
183
+ $message = sprintf( __( '%s Auto Drafts Cleaned up', 'wp-sweep' ), number_format_i18n( sizeof( $posts ) ) );
184
+ }
185
+ break;
186
+ case 'trash':
187
+ $posts = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_status = %s", 'trash' ) );
188
+ if( $posts ) {
189
+ foreach ( $posts as $id ) {
190
+ wp_delete_post( $id, true );
191
+ }
192
+
193
+ $message = sprintf( __( '%s Trashed Posts Cleaned up', 'wp-sweep' ), number_format_i18n( sizeof( $posts ) ) );
194
+ }
195
+ break;
196
+ }
197
+ return $message;
198
+ }
199
+ }
200
+
201
+
includes/common-functions.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Common functions
4
+ *
5
+ * @package WP_Bulk_Delete
6
+ * @subpackage Common functions
7
+ * @copyright Copyright (c) 2016, Dharmesh Patel
8
+ * @since 1.0
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+
15
+ /**
16
+ * Get Taxomomy from posttype.
17
+ *
18
+ * @since 1.0
19
+ * @param string $post_type Post Type
20
+ * @return array | taxonomy array
21
+ */
22
+ function wpbd_get_taxonomy_by_posttype( $post_type = '' ) {
23
+
24
+ $taxonomies = array();
25
+ $ingnore_taxonomy = array( 'post_format' );
26
+ if ( $post_type != '' ) {
27
+ $taxonomy_objects = get_object_taxonomies( $post_type, 'objects' );
28
+ if( !empty( $taxonomy_objects ) ){
29
+ foreach( $taxonomy_objects as $slug => $taxonomy ){
30
+ if( in_array( $slug, $ingnore_taxonomy ) ){
31
+ continue;
32
+ }else{
33
+ $taxonomies[$slug] = $taxonomy->labels->name;
34
+ }
35
+ }
36
+ }
37
+ }
38
+ return $taxonomies;
39
+ }
40
+
41
+ /**
42
+ * Get Taxomomy from posttype.
43
+ *
44
+ * @since 1.0
45
+ * @param string $posttype Post Type
46
+ * @return array | taxonomy array
47
+ */
48
+ function wpbd_get_terms_by_taxonomy( $taxonomy = '' ) {
49
+ $terms = array();
50
+ if ( $taxonomy != '' ) {
51
+ if( taxonomy_exists( $taxonomy ) ){
52
+ $terms = get_terms( $taxonomy, array( 'hide_empty' => true ) );
53
+ }
54
+ }
55
+ return $terms;
56
+ }
includes/delele-posts-form-functions.php ADDED
@@ -0,0 +1,513 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Form Process
4
+ *
5
+ * @package WP_Bulk_Delete
6
+ * @subpackage Form Process
7
+ * @copyright Copyright (c) 2016, Dharmesh Patel
8
+ * @since 1.0
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+ /** Actions *************************************************************/
15
+ // By Posttype
16
+ add_action( 'render_form_by_posttype', 'wpbd_render_form_posttype' );
17
+ add_action( 'render_form_by_posttype', 'wpbd_render_common_form' );
18
+
19
+ // By Author
20
+ add_action( 'render_form_by_author', 'wpbd_render_form_posttype' );
21
+ add_action( 'render_form_by_author', 'wpbd_render_form_users' );
22
+ add_action( 'render_form_by_author', 'wpbd_render_common_form' );
23
+
24
+
25
+ // By Title & Content
26
+ add_action( 'render_form_by_title', 'wpbd_render_form_posttype' );
27
+ add_action( 'render_form_by_title', 'wpbd_render_form_post_contains' );
28
+ add_action( 'render_form_by_title', 'wpbd_render_common_form' );
29
+
30
+ // By Taxonomy.
31
+ add_action( 'render_form_by_taxonomy', 'wpbd_render_form_posttype_dropdown' );
32
+ add_action( 'render_form_by_taxonomy', 'wpbd_render_form_taxonomy' );
33
+ add_action( 'render_form_by_taxonomy', 'wpbd_render_common_form' );
34
+
35
+ // By Custom Fields
36
+ add_action( 'render_form_by_custom_fields', 'wpbd_render_form_posttype' );
37
+ add_action( 'render_form_by_custom_fields', 'wpbd_render_form_custom_fields' );
38
+ add_action( 'render_form_by_custom_fields', 'wpbd_render_common_form' );
39
+
40
+ // General
41
+ add_action( 'render_form_general', 'wpbd_render_form_posttype_dropdown' );
42
+ add_action( 'render_form_general', 'wpbd_render_form_taxonomy' );
43
+ add_action( 'render_form_general', 'wpbd_render_form_users' );
44
+ add_action( 'render_form_general', 'wpbd_render_form_custom_fields' );
45
+ add_action( 'render_form_general', 'wpbd_render_form_post_contains' );
46
+ add_action( 'render_form_general', 'wpbd_render_common_form' );
47
+
48
+ /**
49
+ * Process Delete posts form
50
+ *
51
+ *
52
+ * @since 1.0
53
+ * @param array $data Form pot Data.
54
+ * @return array | posts ID to be delete.
55
+ */
56
+ function xt_delete_posts_form_process( $data ) {
57
+ $error = array();
58
+
59
+ if ( ! current_user_can( 'manage_options' ) ) {
60
+ $error[] = esc_html__('You don\'t have enough permission for this operation.', 'wp-bulk-delete' );
61
+ }
62
+
63
+ if ( isset( $data['_delete_all_posts_wpnonce'] ) && wp_verify_nonce( $data['_delete_all_posts_wpnonce'], 'delete_posts_nonce' ) ) {
64
+
65
+ if( empty( $error ) ){
66
+
67
+ // Get post_ids for delete based on user input.
68
+ $post_ids = wpbulkdelete()->api->get_delete_posts_ids( $data );
69
+ if ( ! empty( $post_ids ) && count( $post_ids ) > 0 ) {
70
+ $force_delete = false;
71
+ if ( 'permenant' == $_POST['delete_type'] ) {
72
+ $force_delete = true;
73
+ }
74
+
75
+ $post_count = wpbulkdelete()->api->do_delete_posts( $post_ids, $force_delete );
76
+ return array(
77
+ 'status' => 1,
78
+ 'messages' => array( sprintf( esc_html__( '%d Record deleted successfully.', 'wp-bulk-delete' ), $post_count)
79
+ ) );
80
+ } else {
81
+ return array(
82
+ 'status' => 1,
83
+ 'messages' => array( esc_html__( 'Nothing to delete!!', 'wp-bulk-delete' ) ),
84
+ );
85
+ }
86
+
87
+ } else {
88
+ return array(
89
+ 'status' => 0,
90
+ 'messages' => $error,
91
+ );
92
+ }
93
+
94
+ } else {
95
+ wp_die( esc_html__( 'Sorry, Your nonce did not verify.', 'wp-bulk-delete' ) );
96
+ }
97
+ }
98
+
99
+ /**
100
+ * Render Posttype checkboxes.
101
+ *
102
+ * @since 1.0
103
+ * @return void
104
+ */
105
+ function wpbd_render_form_posttype(){
106
+ global $wp_post_types;
107
+ $ingnore_types = array('attachment','revision','nav_menu_item');
108
+ $types = array();
109
+ if( !empty( $wp_post_types ) ){
110
+ foreach( $wp_post_types as $key_type => $post_type ){
111
+ if( in_array( $key_type, $ingnore_types ) ){
112
+ continue;
113
+ }else{
114
+ $types[$key_type] = $post_type->labels->name;
115
+ }
116
+ }
117
+ }
118
+ ?>
119
+ <tr>
120
+ <th scope="row">
121
+ <?php _e('Post type of items to delete :','wp-bulk-delete'); ?>
122
+ </th>
123
+ <td>
124
+ <?php
125
+ if( !empty( $types ) ){
126
+ foreach( $types as $key_type => $type ){
127
+ ?>
128
+ <fieldset>
129
+ <label for="delete_post_type">
130
+ <input name="delete_post_type[]" class="delete_post_type" id="<?php echo $key_type; ?>" type="checkbox" value="<?php echo $key_type; ?>" <?php if( 'post' == $key_type ){ echo 'checked="checked"'; } ?>>
131
+ <?php printf( __( '%s', 'wp-bulk-delete' ), $type ); ?>
132
+ </label>
133
+ </fieldset>
134
+ <?php
135
+ }
136
+ }else{
137
+ _e('No post types are there, WP Bulk Delete will not work.','wp-bulk-delete');
138
+ }
139
+ ?>
140
+ </td>
141
+ </tr>
142
+ <?php
143
+ }
144
+
145
+ /**
146
+ * Render Post type Dropdown.
147
+ *
148
+ * @since 1.0
149
+ * @return void
150
+ */
151
+ function wpbd_render_form_posttype_dropdown(){
152
+ global $wp_post_types;
153
+ $ingnore_types = array('attachment','revision','nav_menu_item');
154
+ $types = array();
155
+ if( !empty( $wp_post_types ) ){
156
+ foreach( $wp_post_types as $key_type => $post_type ){
157
+ if( in_array( $key_type, $ingnore_types ) ){
158
+ continue;
159
+ }else{
160
+ $types[$key_type] = $post_type->labels->name;
161
+ }
162
+ }
163
+ }
164
+ ?>
165
+ <tr>
166
+ <th scope="row">
167
+ <?php _e('Post type of items to delete :','wp-bulk-delete'); ?>
168
+ </th>
169
+ <td>
170
+ <select name="delete_post_type" class="delete_post_type" id="delete_post_type" required="required">
171
+ <?php
172
+ if( !empty( $types ) ){
173
+ foreach( $types as $key_type => $type ){
174
+ ?>
175
+ <fieldset>
176
+ <label for="delete_post_type">
177
+ <option value="<?php echo $key_type; ?>">
178
+ <?php printf( __( '%s', 'wp-bulk-delete' ), $type ); ?>
179
+ </option>
180
+ </label>
181
+ </fieldset>
182
+ <?php
183
+ }
184
+ }else{
185
+ _e('No post types are there, WP Bulk Delete will not work.','wp-bulk-delete');
186
+ }
187
+ ?>
188
+ </select>
189
+ </td>
190
+ </tr>
191
+ <?php
192
+ }
193
+
194
+ /**
195
+ * Render taxonomies.
196
+ *
197
+ * @since 1.0
198
+ * @return void
199
+ */
200
+ function wpbd_render_form_taxonomy(){
201
+ ?>
202
+ <tr>
203
+ <th scope="row">
204
+ <?php _e('Post Taxonomy :','wp-bulk-delete'); ?>
205
+ </th>
206
+ <td>
207
+ <div class="post_taxonomy">
208
+ </div>
209
+ </td>
210
+ </tr>
211
+ <tr>
212
+ <th scope="row" class="taxo_terms_title">
213
+
214
+ <?php //_e('Post Taxonomy :','wp-bulk-delete'); ?>
215
+ </th>
216
+ <td>
217
+ <div class="post_taxo_terms">
218
+ </div>
219
+ </td>
220
+ </tr>
221
+ <script>
222
+ jQuery(document).ready(function(){
223
+ jQuery('#delete_post_type').trigger( 'change' );
224
+ });
225
+ </script>
226
+ <?php
227
+ }
228
+
229
+ /**
230
+ * Render Post Statuses.
231
+ *
232
+ * @since 1.0
233
+ * @return void
234
+ */
235
+ function wpbd_render_form_poststatus(){
236
+ ?>
237
+ <tr>
238
+ <th scope="row">Post Status</th>
239
+ <td>
240
+ <fieldset>
241
+ <label for="delete_post_status">
242
+ <input name="delete_post_status[]" id="publish" value="publish" type="checkbox" checked="checked">
243
+ Published
244
+ </label>
245
+ </fieldset>
246
+ <fieldset>
247
+ <label for="delete_post_status">
248
+ <input name="delete_post_status[]" id="future" value="future" type="checkbox">
249
+ Scheduled
250
+ </label>
251
+ </fieldset>
252
+ <fieldset>
253
+ <label for="delete_post_status">
254
+ <input name="delete_post_status[]" id="draft" value="draft" type="checkbox">
255
+ Draft
256
+ </label>
257
+ </fieldset>
258
+ <fieldset>
259
+ <label for="delete_post_status">
260
+ <input name="delete_post_status[]" id="pending" value="pending" type="checkbox">
261
+ Pending
262
+ </label>
263
+ </fieldset>
264
+ <fieldset>
265
+ <label for="delete_post_status">
266
+ <input name="delete_post_status[]" id="private" value="private" type="checkbox">
267
+ Private
268
+ </label>
269
+ </fieldset>
270
+ </td>
271
+ </tr>
272
+ <?php
273
+ }
274
+
275
+ /**
276
+ * Render Date intervals.
277
+ *
278
+ * @since 1.0
279
+ * @return void
280
+ */
281
+ function wpbd_render_form_date_interval(){
282
+ ?>
283
+ <tr>
284
+ <th scope="row">
285
+ <?php _e('Date interval :','wp-bulk-delete'); ?>
286
+ </th>
287
+ <td>
288
+ <input type="date" id="delete_start_date" name="delete_start_date" class="delete_all_datepicker" />
289
+ -
290
+ <input type="date" id="delete_end_date" name="delete_end_date" class="delete_all_datepicker" />
291
+ <p class="description">
292
+ <?php _e('Set the date interval for items to delete, or leave these fields blank to select all posts. The dates must be specified in the following format: <strong>YYYY-MM-DD</strong>','wp-bulk-delete'); ?>
293
+ </p>
294
+ </td>
295
+ </tr>
296
+ <?php
297
+ }
298
+
299
+ /**
300
+ * Render Post title and content contains.
301
+ *
302
+ * @since 1.0
303
+ * @return void
304
+ */
305
+ function wpbd_render_form_post_contains(){
306
+ ?>
307
+ <tr>
308
+ <th scope="row">
309
+ <?php _e('If Post Title Contains :','wp-bulk-delete'); ?>
310
+ </th>
311
+ <td>
312
+ <input type="text" id="disabled_sample4" name="disabled_sample4" class="disabled_sample4" disabled="disabled" />
313
+ <?php _e( 'Then', 'wp-bulk-delete' ); ?>
314
+ <select name="disabled_sample5" disabled="disabled">
315
+ <option value=""><?php _e( 'Delete It.', 'wp-bulk-delete' ); ?> </option>
316
+ <option value=""><?php _e( "Don't delete It.", "wp-bulk-delete" ); ?> </option>
317
+ </select>
318
+ <br/>
319
+ <span style="color: red">Available in Pro version. </span><a href="<?php echo esc_url(DA_PLUGIN_BUY_NOW_URL); ?>">Buy Now</a>
320
+ </td>
321
+ </tr>
322
+ <tr>
323
+ <th scope="row">
324
+ <?php _e('If Post Content Contains :','wp-bulk-delete'); ?>
325
+ </th>
326
+ <td>
327
+ <input type="text" id="disabled_sample6" name="disabled_sample6" class="disabled_sample6" disabled="disabled" />
328
+ <?php _e( 'Then', 'wp-bulk-delete' ); ?>
329
+ <select name="disabled_sample7" disabled="disabled">
330
+ <option value=""><?php _e( 'Delete It.', 'wp-bulk-delete' ); ?> </option>
331
+ <option value=""><?php _e( "Don't delete It.", "wp-bulk-delete" ); ?> </option>
332
+ </select>
333
+ <br/>
334
+ <span style="color: red">Available in Pro version. </span><a href="<?php echo esc_url(DA_PLUGIN_BUY_NOW_URL); ?>">Buy Now</a>
335
+ </td>
336
+ </tr>
337
+ <?php
338
+ }
339
+
340
+ /**
341
+ * Render Delete type.
342
+ *
343
+ * @since 1.0
344
+ * @return void
345
+ */
346
+ function wpbd_render_form_delete_type(){
347
+ ?>
348
+ <tr>
349
+ <th scope="row">
350
+ <?php _e('Post Delete Type :','wp-bulk-delete'); ?>
351
+ </th>
352
+ <td>
353
+ <input type="radio" id="delete_type" name="delete_type" class="delete_type" value="trash" checked="checked"/>
354
+ <?php _e( 'Move to Trash', 'wp-bulk-delete' ); ?>
355
+ &nbsp;&nbsp;<input type="radio" id="delete_type" name="delete_type" class="delete_type" value="permenant" />
356
+ <?php _e( 'Delete permanently', 'wp-bulk-delete' ); ?>
357
+ </td>
358
+ </tr>
359
+ <?php
360
+ }
361
+
362
+ /**
363
+ * Render Post authors.
364
+ *
365
+ * @since 1.0
366
+ * @return void
367
+ */
368
+ function wpbd_render_form_users(){
369
+ ?>
370
+ <tr>
371
+ <th scope="row">
372
+ <?php _e('Authors :','wp-bulk-delete'); ?>
373
+ </th>
374
+ <td>
375
+ <?php $args = array(
376
+ 'orderby' => 'display_name',
377
+ 'order' => 'ASC',
378
+ 'fields' => array( 'display_name', 'ID'),
379
+ );
380
+ $authors = get_users( $args );
381
+ if( !empty($authors) ){
382
+ ?>
383
+ <select name="delete_authors[]" multiple="multiple">
384
+ <?php foreach($authors as $author){
385
+ ?>
386
+ <option value="<?php echo $author->ID; ?>"><?php printf( __( '%s', 'wp-bulk-delete' ), $author->display_name ) ; ?></option>
387
+ <?php
388
+ }
389
+ ?>
390
+ </select>
391
+ <?php
392
+ }
393
+ ?>
394
+ </td>
395
+ </tr>
396
+
397
+
398
+ <?php
399
+ }
400
+
401
+ /**
402
+ * Render Post limit.
403
+ *
404
+ * @since 1.0
405
+ * @return void
406
+ */
407
+ function wpbd_render_limit_post(){
408
+ ?>
409
+ <tr>
410
+ <th scope="row">
411
+ <?php _e('Limit :','wp-bulk-delete'); ?>
412
+ </th>
413
+ <td>
414
+ <input type="number" id="limit_post" name="limit_post" class="limit_post_input" />
415
+ <p class="description">
416
+ <?php _e('Set the limit over post delete. It will delete only first limit posts. This option will help you in case of you have lots of posts to delete and script timeout.','wp-bulk-delete'); ?>
417
+ </p>
418
+ </td>
419
+ </tr>
420
+ <?php
421
+ }
422
+
423
+ /**
424
+ * Render Custom Fields.
425
+ *
426
+ * @since 1.0
427
+ * @return void
428
+ */
429
+ function wpbd_render_form_custom_fields(){
430
+ ?>
431
+ <tr>
432
+ <th scope="row">
433
+ <?php _e('Custom fields settings :','wp-bulk-delete'); ?>
434
+ </th>
435
+ <td>
436
+ <?php esc_html_e( 'Custom Fields Key', 'wp-bulk-delete' ); ?>
437
+ <input type="text" id="disabled_sample1" name="disabled_sample1" class="disabled_sample1" disabled="disabled" />
438
+ <select name="disabled_sample2" disabled="disabled">
439
+ <option value="equal_to_str"><?php esc_html_e( 'equal to ( string )', 'wp-bulk-delete' ); ?></option>
440
+ </select>
441
+ <?php esc_html_e( 'Value', 'wp-bulk-delete' ); ?>
442
+ <input type="text" id="disabled_sample3" name="disabled_sample3" class="disabled_sample3" disabled="disabled" />
443
+ <br />
444
+ <span style="color: red">Available in Pro version. </span><a href="<?php echo esc_url(DA_PLUGIN_BUY_NOW_URL); ?>">Buy Now</a>
445
+ </td>
446
+ </tr>
447
+ <?php
448
+ }
449
+
450
+ /**
451
+ * Render cleup options
452
+ *
453
+ * @since 1.0
454
+ * @return void
455
+ */
456
+ function wpbd_render_post_cleanup(){
457
+ ?>
458
+ <tr>
459
+ <th scope="row">
460
+ <?php _e('Cleanup Type :','wp-bulk-delete'); ?>
461
+ </th>
462
+ <td>
463
+ <fieldset>
464
+ <label for="cleanup_post_type">
465
+ <input name="cleanup_post_type[]" class="cleanup_post_type" id="cleanup_revision" type="checkbox" value="revision" checked="checked">
466
+ <?php printf( __( 'Cleanup Revisions (%d Revisions)', 'wp-bulk-delete' ), wpbulkdelete()->api->get_post_count('revision') ); ?>
467
+ </label>
468
+ </fieldset>
469
+
470
+ <fieldset>
471
+ <label for="cleanup_post_type">
472
+ <input name="cleanup_post_type[]" class="cleanup_post_type" id="cleanup_trash" type="checkbox" value="trash" checked="checked">
473
+ <?php printf( __( 'Cleanup Trash (Deleted Posts) (%d Trash)', 'wp-bulk-delete' ), wpbulkdelete()->api->get_post_count('trash') ); ?>
474
+ </label>
475
+ </fieldset>
476
+
477
+ <fieldset>
478
+ <label for="cleanup_post_type">
479
+ <input name="cleanup_post_type[]" class="cleanup_post_type" id="cleanup_revision" type="checkbox" value="auto_drafts" checked="checked">
480
+ <?php printf( __( 'Cleanup Auto Drafts (%d Auto Drafts)', 'wp-bulk-delete' ), wpbulkdelete()->api->get_post_count('auto_drafts') ); ?>
481
+ </label>
482
+ </fieldset>
483
+ </td>
484
+ </tr>
485
+ <?php
486
+ }
487
+
488
+ /**
489
+ * Render Common form.
490
+ *
491
+ * Render common component of form.
492
+ *
493
+ * @since 1.0
494
+ * @return void
495
+ */
496
+ function wpbd_render_common_form(){
497
+ ?>
498
+ <tr>
499
+ <th scope="row">
500
+ <?php _e('Filter your posts :','wp-bulk-delete'); ?>
501
+ </th>
502
+ </tr>
503
+ <?php
504
+
505
+ wpbd_render_form_poststatus();
506
+
507
+ wpbd_render_form_date_interval();
508
+
509
+ wpbd_render_form_delete_type();
510
+
511
+ wpbd_render_limit_post();
512
+
513
+ }
includes/index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
includes/scripts.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Scripts
4
+ *
5
+ * @package WP_Bulk_Delete
6
+ * @subpackage Functions
7
+ * @copyright Copyright (c) 2016, Dharmesh Patel
8
+ * @since 1.0
9
+ */
10
+
11
+ // Exit if accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+
15
+ /**
16
+ * Load Admin Scripts
17
+ *
18
+ * Enqueues the required admin scripts.
19
+ *
20
+ * @since 1.0
21
+ * @param string $hook Page hook
22
+ * @return void
23
+ */
24
+ function wpbd_enqueue_admin_scripts( $hook ) {
25
+
26
+ $js_dir = DA_PLUGIN_URL . 'assets/js/';
27
+ wp_register_script( 'wp-bulk-delete', $js_dir . 'wp-bulk-delete-admin.js', array('jquery', 'jquery-ui-core', 'jquery-ui-datepicker'), DA_VERSION );
28
+ wp_enqueue_script( 'wp-bulk-delete' );
29
+
30
+ }
31
+
32
+ /**
33
+ * Load Admin Styles.
34
+ *
35
+ * Enqueues the required admin styles.
36
+ *
37
+ * @since 1.0
38
+ * @param string $hook Page hook
39
+ * @return void
40
+ */
41
+ function wpbd_enqueue_admin_styles( $hook ) {
42
+
43
+ $css_dir = DA_PLUGIN_URL . 'assets/css/';
44
+ wp_enqueue_style('jquery-ui', $css_dir . 'jquery-ui.css', false, "1.12.0" );
45
+ }
46
+
47
+ add_action( 'admin_enqueue_scripts', 'wpbd_enqueue_admin_scripts' );
48
+ add_action( 'admin_enqueue_scripts', 'wpbd_enqueue_admin_styles' );
index.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php // Silence is golden
languages/wp-bulk-delete.pot ADDED
File without changes
uninstall.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Fired when the plugin is uninstalled.
4
+ *
5
+ * When populating this file, consider the following flow
6
+ * of control:
7
+ *
8
+ * - This method should be static
9
+ * - Check if the $_REQUEST content actually is the plugin name
10
+ * - Run an admin referrer check to make sure it goes through authentication
11
+ * - Verify the output of $_GET makes sense
12
+ * - Repeat with other user roles. Best directly by using the links/query string parameters.
13
+ * - Repeat things for multisite. Once for a single site in the network, once sitewide.
14
+ *
15
+ * @link http://xylusthemes.com
16
+ * @since 1.0.0
17
+ *
18
+ * @package WP_Bulk_Delete
19
+ */
20
+
21
+ // If uninstall not called from WordPress, then exit.
22
+ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
23
+ exit;
24
+ }
wp-bulk-delete.php ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Plugin Name: WP Bulk Delete
4
+ * Plugin URI: http://xylusthemes.com/plugins/wp-bulk-delete/
5
+ * Description: Delete and clean anything like posts, comments, users, meta, taxonomy in bulk. with powerful filter options.
6
+ * Version: 1.0.0
7
+ * Author: Xylus Themes
8
+ * Author URI: http://xylusthemes.com
9
+ * License: GPL-2.0+
10
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
11
+ * Text Domain: wp-bulk-delete
12
+ * Domain Path: /languages
13
+ */
14
+
15
+ // If this file is called directly, abort.
16
+ if ( ! defined( 'ABSPATH' ) ) exit;
17
+
18
+ if( ! class_exists( 'WP_Bulk_Delete' ) ):
19
+
20
+ /**
21
+ * Main WP Bulk Delete class
22
+ */
23
+ class WP_Bulk_Delete{
24
+
25
+ /** Singleton *************************************************************/
26
+ /**
27
+ * WP_Bulk_Delete The one true WP_Bulk_Delete.
28
+ */
29
+ private static $instance;
30
+
31
+ /**
32
+ * Main WP Bulk Delete Instance.
33
+ *
34
+ * Insure that only one instance of WP_Bulk_Delete exists in memory at any one time.
35
+ * Also prevents needing to define globals all over the place.
36
+ *
37
+ * @since 1.0.0
38
+ * @static object $instance
39
+ * @uses WP_Bulk_Delete::setup_constants() Setup the constants needed.
40
+ * @uses WP_Bulk_Delete::includes() Include the required files.
41
+ * @uses WP_Bulk_Delete::laod_textdomain() load the language files.
42
+ * @see wpbulkdelete()
43
+ * @return object| WP Bulk Delete the one true WP Bulk Delete.
44
+ */
45
+ public static function instance() {
46
+ if( ! isset( self::$instance ) && ! (self::$instance instanceof WP_Bulk_Delete ) ) {
47
+ self::$instance = new WP_Bulk_Delete;
48
+ self::$instance->setup_constants();
49
+
50
+ add_action( 'plugins_loaded', array( self::$instance, 'load_textdomain' ) );
51
+
52
+ self::$instance->includes();
53
+ self::$instance->api = new WPBD_Delete_API();
54
+ }
55
+ return self::$instance;
56
+ }
57
+
58
+ /** Magic Methods *********************************************************/
59
+
60
+ /**
61
+ * A dummy constructor to prevent WP_Bulk_Delete from being loaded more than once.
62
+ *
63
+ * @since 1.0.0
64
+ * @see WP_Bulk_Delete::instance()
65
+ * @see wpbulkdelete()
66
+ */
67
+ private function __construct() { /* Do nothing here */ }
68
+
69
+ /**
70
+ * A dummy magic method to prevent WP_Bulk_Delete from being cloned.
71
+ *
72
+ * @since 1.0.0
73
+ */
74
+ public function __clone() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'wp-bulk-delete' ), '1.0.0' ); }
75
+
76
+ /**
77
+ * A dummy magic method to prevent WP_Bulk_Delete from being unserialized.
78
+ *
79
+ * @since 1.0.0
80
+ */
81
+ public function __wakeup() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'wp-bulk-delete' ), '1.0.0' ); }
82
+
83
+
84
+ /**
85
+ * Setup plugins constants.
86
+ *
87
+ * @access private
88
+ * @since 1.0.0
89
+ * @return void
90
+ */
91
+ private function setup_constants() {
92
+
93
+ // Plugin version.
94
+ if( ! defined( 'DA_VERSION' ) ){
95
+ define( 'DA_VERSION', '1.0.0' );
96
+ }
97
+
98
+ // Plugin folder Path.
99
+ if( ! defined( 'DA_PLUGIN_DIR' ) ){
100
+ define( 'DA_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
101
+ }
102
+
103
+ // Plugin folder URL.
104
+ if( ! defined( 'DA_PLUGIN_URL' ) ){
105
+ define( 'DA_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
106
+ }
107
+
108
+ // Plugin root file.
109
+ if( ! defined( 'DA_PLUGIN_FILE' ) ){
110
+ define( 'DA_PLUGIN_FILE', __FILE__ );
111
+ }
112
+ // Pro plugin Buy now Link.
113
+ if( ! defined( 'DA_PLUGIN_BUY_NOW_URL' ) ){
114
+ define( 'DA_PLUGIN_BUY_NOW_URL', 'http://xylusthemes.com/plugins/wp-bulk-delete/' );
115
+ }
116
+ }
117
+
118
+ /**
119
+ * Include required files.
120
+ *
121
+ * @access private
122
+ * @since 1.0.0
123
+ * @return void
124
+ */
125
+ private function includes() {
126
+
127
+ require_once DA_PLUGIN_DIR . 'includes/scripts.php';
128
+ require_once DA_PLUGIN_DIR . 'includes/class-delete-api.php';
129
+ require_once DA_PLUGIN_DIR . 'includes/common-functions.php';
130
+ require_once DA_PLUGIN_DIR . 'includes/ajax-functions.php';
131
+ require_once DA_PLUGIN_DIR . 'includes/delele-posts-form-functions.php';
132
+ require_once DA_PLUGIN_DIR . 'includes/admin/admin-pages.php';
133
+ require_once DA_PLUGIN_DIR . 'includes/admin/posts/display-delete-posts.php';
134
+ require_once DA_PLUGIN_DIR . 'includes/admin/comments/display-delete-comments.php';
135
+ require_once DA_PLUGIN_DIR . 'includes/admin/users/display-delete-users.php';
136
+ require_once DA_PLUGIN_DIR . 'includes/admin/meta/display-delete-meta.php';
137
+ require_once DA_PLUGIN_DIR . 'includes/admin/taxonomy/display-delete-taxonomy.php';
138
+ }
139
+
140
+ /**
141
+ * Loads the plugin language files.
142
+ *
143
+ * @access public
144
+ * @since 1.0.0
145
+ * @return void
146
+ */
147
+ public function load_textdomain(){
148
+
149
+ load_plugin_textdomain(
150
+ 'wp-bulk-delete',
151
+ false,
152
+ DA_PLUGIN_DIR . '/languages/'
153
+ );
154
+
155
+ }
156
+
157
+ }
158
+
159
+ endif; // End If class exists check.
160
+
161
+ /**
162
+ * The main function for that returns WP_Bulk_Delete
163
+ *
164
+ * The main function responsible for returning the one true WP_Bulk_Delete
165
+ * Instance to functions everywhere.
166
+ *
167
+ * Use this function like you would a global variable, except without needing
168
+ * to declare the global.
169
+ *
170
+ * Example: <?php $wpbulkdelete = wpbulkdelete(); ?>
171
+ *
172
+ * @since 1.0.0
173
+ * @return object|WP_Bulk_Delete The one true WP_Bulk_Delete Instance.
174
+ */
175
+ function wpbulkdelete() {
176
+ return WP_Bulk_Delete::instance();
177
+ }
178
+
179
+ // Get WP_Bulk_Delete Running.
180
+ wpbulkdelete();