Absolutely Glamorous Custom Admin - Version 1.2.2

Version Description

  • Added Colorizer for changing colors in admin and login panel
  • Added option for excluding admin from settings.
  • Fixed bug for slow computers: Default settings are visible few moments before applying custom settings.
  • Added option for removing icons from admin menu buttons
Download this release

Release Info

Developer argonius
Plugin Icon 128x128 Absolutely Glamorous Custom Admin
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

licence.txt ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
+
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the work (except to the
107
+ extent that warranties are provided), that licensees may convey the
108
+ work under this License, and how to view a copy of this License. If
109
+ the interface presents a list of user commands or options, such as a
110
+ menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work
115
+ for making modifications to it. "Object code" means any non-source
116
+ form of a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that
121
+ is widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that
127
+ Major Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system
131
+ (if any) on which the executable work runs, or a compiler used to
132
+ produce the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users
148
+ can regenerate automatically from other parts of the Corresponding
149
+ Source.
150
+
151
+ The Corresponding Source for a work in source code form is that
152
+ same work.
153
+
154
+ 2. Basic Permissions.
155
+
156
+ All rights granted under this License are granted for the term of
157
+ copyright on the Program, and are irrevocable provided the stated
158
+ conditions are met. This License explicitly affirms your unlimited
159
+ permission to run the unmodified Program. The output from running a
160
+ covered work is covered by this License only if the output, given its
161
+ content, constitutes a covered work. This License acknowledges your
162
+ rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction
172
+ and control, on terms that prohibit them from making any copies of
173
+ your copyrighted material outside their relationship with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under
176
+ the conditions stated below. Sublicensing is not allowed; section 10
177
+ makes it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+ similar laws prohibiting or restricting circumvention of such
185
+ measures.
186
+
187
+ When you convey a covered work, you waive any legal power to forbid
188
+ circumvention of technological measures to the extent such circumvention
189
+ is effected by exercising rights under this License with respect to
190
+ the covered work, and you disclaim any intention to limit operation or
191
+ modification of the work as a means of enforcing, against the work's
192
+ users, your or third parties' legal rights to forbid circumvention of
193
+ technological measures.
194
+
195
+ 4. Conveying Verbatim Copies.
196
+
197
+ You may convey verbatim copies of the Program's source code as you
198
+ receive it, in any medium, provided that you conspicuously and
199
+ appropriately publish on each copy an appropriate copyright notice;
200
+ keep intact all notices stating that this License and any
201
+ non-permissive terms added in accord with section 7 apply to the code;
202
+ keep intact all notices of the absence of any warranty; and give all
203
+ recipients a copy of this License along with the Program.
204
+
205
+ You may charge any price or no price for each copy that you convey,
206
+ and you may offer support or warranty protection for a fee.
207
+
208
+ 5. Conveying Modified Source Versions.
209
+
210
+ You may convey a work based on the Program, or the modifications to
211
+ produce it from the Program, in the form of source code under the
212
+ terms of section 4, provided that you also meet all of these conditions:
213
+
214
+ a) The work must carry prominent notices stating that you modified
215
+ it, and giving a relevant date.
216
+
217
+ b) The work must carry prominent notices stating that it is
218
+ released under this License and any conditions added under section
219
+ 7. This requirement modifies the requirement in section 4 to
220
+ "keep intact all notices".
221
+
222
+ c) You must license the entire work, as a whole, under this
223
+ License to anyone who comes into possession of a copy. This
224
+ License will therefore apply, along with any applicable section 7
225
+ additional terms, to the whole of the work, and all its parts,
226
+ regardless of how they are packaged. This License gives no
227
+ permission to license the work in any other way, but it does not
228
+ invalidate such permission if you have separately received it.
229
+
230
+ d) If the work has interactive user interfaces, each must display
231
+ Appropriate Legal Notices; however, if the Program has interactive
232
+ interfaces that do not display Appropriate Legal Notices, your
233
+ work need not make them do so.
234
+
235
+ A compilation of a covered work with other separate and independent
236
+ works, which are not by their nature extensions of the covered work,
237
+ and which are not combined with it such as to form a larger program,
238
+ in or on a volume of a storage or distribution medium, is called an
239
+ "aggregate" if the compilation and its resulting copyright are not
240
+ used to limit the access or legal rights of the compilation's users
241
+ beyond what the individual works permit. Inclusion of a covered work
242
+ in an aggregate does not cause this License to apply to the other
243
+ parts of the aggregate.
244
+
245
+ 6. Conveying Non-Source Forms.
246
+
247
+ You may convey a covered work in object code form under the terms
248
+ of sections 4 and 5, provided that you also convey the
249
+ machine-readable Corresponding Source under the terms of this License,
250
+ in one of these ways:
251
+
252
+ a) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by the
254
+ Corresponding Source fixed on a durable physical medium
255
+ customarily used for software interchange.
256
+
257
+ b) Convey the object code in, or embodied in, a physical product
258
+ (including a physical distribution medium), accompanied by a
259
+ written offer, valid for at least three years and valid for as
260
+ long as you offer spare parts or customer support for that product
261
+ model, to give anyone who possesses the object code either (1) a
262
+ copy of the Corresponding Source for all the software in the
263
+ product that is covered by this License, on a durable physical
264
+ medium customarily used for software interchange, for a price no
265
+ more than your reasonable cost of physically performing this
266
+ conveying of source, or (2) access to copy the
267
+ Corresponding Source from a network server at no charge.
268
+
269
+ c) Convey individual copies of the object code with a copy of the
270
+ written offer to provide the Corresponding Source. This
271
+ alternative is allowed only occasionally and noncommercially, and
272
+ only if you received the object code with such an offer, in accord
273
+ with subsection 6b.
274
+
275
+ d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+
288
+ e) Convey the object code using peer-to-peer transmission, provided
289
+ you inform other peers where the object code and Corresponding
290
+ Source of the work are being offered to the general public at no
291
+ charge under subsection 6d.
292
+
293
+ A separable portion of the object code, whose source code is excluded
294
+ from the Corresponding Source as a System Library, need not be
295
+ included in conveying the object code work.
296
+
297
+ A "User Product" is either (1) a "consumer product", which means any
298
+ tangible personal property which is normally used for personal, family,
299
+ or household purposes, or (2) anything designed or sold for incorporation
300
+ into a dwelling. In determining whether a product is a consumer product,
301
+ doubtful cases shall be resolved in favor of coverage. For a particular
302
+ product received by a particular user, "normally used" refers to a
303
+ typical or common use of that class of product, regardless of the status
304
+ of the particular user or of the way in which the particular user
305
+ actually uses, or expects or is expected to use, the product. A product
306
+ is a consumer product regardless of whether the product has substantial
307
+ commercial, industrial or non-consumer uses, unless such uses represent
308
+ the only significant mode of use of the product.
309
+
310
+ "Installation Information" for a User Product means any methods,
311
+ procedures, authorization keys, or other information required to install
312
+ and execute modified versions of a covered work in that User Product from
313
+ a modified version of its Corresponding Source. The information must
314
+ suffice to ensure that the continued functioning of the modified object
315
+ code is in no case prevented or interfered with solely because
316
+ modification has been made.
317
+
318
+ If you convey an object code work under this section in, or with, or
319
+ specifically for use in, a User Product, and the conveying occurs as
320
+ part of a transaction in which the right of possession and use of the
321
+ User Product is transferred to the recipient in perpetuity or for a
322
+ fixed term (regardless of how the transaction is characterized), the
323
+ Corresponding Source conveyed under this section must be accompanied
324
+ by the Installation Information. But this requirement does not apply
325
+ if neither you nor any third party retains the ability to install
326
+ modified object code on the User Product (for example, the work has
327
+ been installed in ROM).
328
+
329
+ The requirement to provide Installation Information does not include a
330
+ requirement to continue to provide support service, warranty, or updates
331
+ for a work that has been modified or installed by the recipient, or for
332
+ the User Product in which it has been modified or installed. Access to a
333
+ network may be denied when the modification itself materially and
334
+ adversely affects the operation of the network or violates the rules and
335
+ protocols for communication across the network.
336
+
337
+ Corresponding Source conveyed, and Installation Information provided,
338
+ in accord with this section must be in a format that is publicly
339
+ documented (and with an implementation available to the public in
340
+ source code form), and must require no special password or key for
341
+ unpacking, reading or copying.
342
+
343
+ 7. Additional Terms.
344
+
345
+ "Additional permissions" are terms that supplement the terms of this
346
+ License by making exceptions from one or more of its conditions.
347
+ Additional permissions that are applicable to the entire Program shall
348
+ be treated as though they were included in this License, to the extent
349
+ that they are valid under applicable law. If additional permissions
350
+ apply only to part of the Program, that part may be used separately
351
+ under those permissions, but the entire Program remains governed by
352
+ this License without regard to the additional permissions.
353
+
354
+ When you convey a copy of a covered work, you may at your option
355
+ remove any additional permissions from that copy, or from any part of
356
+ it. (Additional permissions may be written to require their own
357
+ removal in certain cases when you modify the work.) You may place
358
+ additional permissions on material, added by you to a covered work,
359
+ for which you have or can give appropriate copyright permission.
360
+
361
+ Notwithstanding any other provision of this License, for material you
362
+ add to a covered work, you may (if authorized by the copyright holders of
363
+ that material) supplement the terms of this License with terms:
364
+
365
+ a) Disclaiming warranty or limiting liability differently from the
366
+ terms of sections 15 and 16 of this License; or
367
+
368
+ b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+
372
+ c) Prohibiting misrepresentation of the origin of that material, or
373
+ requiring that modified versions of such material be marked in
374
+ reasonable ways as different from the original version; or
375
+
376
+ d) Limiting the use for publicity purposes of names of licensors or
377
+ authors of the material; or
378
+
379
+ e) Declining to grant rights under trademark law for use of some
380
+ trade names, trademarks, or service marks; or
381
+
382
+ f) Requiring indemnification of licensors and authors of that
383
+ material by anyone who conveys the material (or modified versions of
384
+ it) with contractual assumptions of liability to the recipient, for
385
+ any liability that these contractual assumptions directly impose on
386
+ those licensors and authors.
387
+
388
+ All other non-permissive additional terms are considered "further
389
+ restrictions" within the meaning of section 10. If the Program as you
390
+ received it, or any part of it, contains a notice stating that it is
391
+ governed by this License along with a term that is a further
392
+ restriction, you may remove that term. If a license document contains
393
+ a further restriction but permits relicensing or conveying under this
394
+ License, you may add to a covered work material governed by the terms
395
+ of that license document, provided that the further restriction does
396
+ not survive such relicensing or conveying.
397
+
398
+ If you add terms to a covered work in accord with this section, you
399
+ must place, in the relevant source files, a statement of the
400
+ additional terms that apply to those files, or a notice indicating
401
+ where to find the applicable terms.
402
+
403
+ Additional terms, permissive or non-permissive, may be stated in the
404
+ form of a separately written license, or stated as exceptions;
405
+ the above requirements apply either way.
406
+
407
+ 8. Termination.
408
+
409
+ You may not propagate or modify a covered work except as expressly
410
+ provided under this License. Any attempt otherwise to propagate or
411
+ modify it is void, and will automatically terminate your rights under
412
+ this License (including any patent licenses granted under the third
413
+ paragraph of section 11).
414
+
415
+ However, if you cease all violation of this License, then your
416
+ license from a particular copyright holder is reinstated (a)
417
+ provisionally, unless and until the copyright holder explicitly and
418
+ finally terminates your license, and (b) permanently, if the copyright
419
+ holder fails to notify you of the violation by some reasonable means
420
+ prior to 60 days after the cessation.
421
+
422
+ Moreover, your license from a particular copyright holder is
423
+ reinstated permanently if the copyright holder notifies you of the
424
+ violation by some reasonable means, this is the first time you have
425
+ received notice of violation of this License (for any work) from that
426
+ copyright holder, and you cure the violation prior to 30 days after
427
+ your receipt of the notice.
428
+
429
+ Termination of your rights under this section does not terminate the
430
+ licenses of parties who have received copies or rights from you under
431
+ this License. If your rights have been terminated and not permanently
432
+ reinstated, you do not qualify to receive new licenses for the same
433
+ material under section 10.
434
+
435
+ 9. Acceptance Not Required for Having Copies.
436
+
437
+ You are not required to accept this License in order to receive or
438
+ run a copy of the Program. Ancillary propagation of a covered work
439
+ occurring solely as a consequence of using peer-to-peer transmission
440
+ to receive a copy likewise does not require acceptance. However,
441
+ nothing other than this License grants you permission to propagate or
442
+ modify any covered work. These actions infringe copyright if you do
443
+ not accept this License. Therefore, by modifying or propagating a
444
+ covered work, you indicate your acceptance of this License to do so.
445
+
446
+ 10. Automatic Licensing of Downstream Recipients.
447
+
448
+ Each time you convey a covered work, the recipient automatically
449
+ receives a license from the original licensors, to run, modify and
450
+ propagate that work, subject to this License. You are not responsible
451
+ for enforcing compliance by third parties with this License.
452
+
453
+ An "entity transaction" is a transaction transferring control of an
454
+ organization, or substantially all assets of one, or subdividing an
455
+ organization, or merging organizations. If propagation of a covered
456
+ work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate litigation
467
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
468
+ any patent claim is infringed by making, using, selling, offering for
469
+ sale, or importing the Program or any portion of it.
470
+
471
+ 11. Patents.
472
+
473
+ A "contributor" is a copyright holder who authorizes use under this
474
+ License of the Program or a work on which the Program is based. The
475
+ work thus licensed is called the contributor's "contributor version".
476
+
477
+ A contributor's "essential patent claims" are all patent claims
478
+ owned or controlled by the contributor, whether already acquired or
479
+ hereafter acquired, that would be infringed by some manner, permitted
480
+ by this License, of making, using, or selling its contributor version,
481
+ but do not include claims that would be infringed only as a
482
+ consequence of further modification of the contributor version. For
483
+ purposes of this definition, "control" includes the right to grant
484
+ patent sublicenses in a manner consistent with the requirements of
485
+ this License.
486
+
487
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+ patent license under the contributor's essential patent claims, to
489
+ make, use, sell, offer for sale, import and otherwise run, modify and
490
+ propagate the contents of its contributor version.
491
+
492
+ In the following three paragraphs, a "patent license" is any express
493
+ agreement or commitment, however denominated, not to enforce a patent
494
+ (such as an express permission to practice a patent or covenant not to
495
+ sue for patent infringement). To "grant" such a patent license to a
496
+ party means to make such an agreement or commitment not to enforce a
497
+ patent against the party.
498
+
499
+ If you convey a covered work, knowingly relying on a patent license,
500
+ and the Corresponding Source of the work is not available for anyone
501
+ to copy, free of charge and under the terms of this License, through a
502
+ publicly available network server or other readily accessible means,
503
+ then you must either (1) cause the Corresponding Source to be so
504
+ available, or (2) arrange to deprive yourself of the benefit of the
505
+ patent license for this particular work, or (3) arrange, in a manner
506
+ consistent with the requirements of this License, to extend the patent
507
+ license to downstream recipients. "Knowingly relying" means you have
508
+ actual knowledge that, but for the patent license, your conveying the
509
+ covered work in a country, or your recipient's use of the covered work
510
+ in a country, would infringe one or more identifiable patents in that
511
+ country that you have reason to believe are valid.
512
+
513
+ If, pursuant to or in connection with a single transaction or
514
+ arrangement, you convey, or propagate by procuring conveyance of, a
515
+ covered work, and grant a patent license to some of the parties
516
+ receiving the covered work authorizing them to use, propagate, modify
517
+ or convey a specific copy of the covered work, then the patent license
518
+ you grant is automatically extended to all recipients of the covered
519
+ work and works based on it.
520
+
521
+ A patent license is "discriminatory" if it does not include within
522
+ the scope of its coverage, prohibits the exercise of, or is
523
+ conditioned on the non-exercise of one or more of the rights that are
524
+ specifically granted under this License. You may not convey a covered
525
+ work if you are a party to an arrangement with a third party that is
526
+ in the business of distributing software, under which you make payment
527
+ to the third party based on the extent of your activity of conveying
528
+ the work, and under which the third party grants, to any of the
529
+ parties who would receive the covered work from you, a discriminatory
530
+ patent license (a) in connection with copies of the covered work
531
+ conveyed by you (or copies made from those copies), or (b) primarily
532
+ for and in connection with specific products or compilations that
533
+ contain the covered work, unless you entered into that arrangement,
534
+ or that patent license was granted, prior to 28 March 2007.
535
+
536
+ Nothing in this License shall be construed as excluding or limiting
537
+ any implied license or other defenses to infringement that may
538
+ otherwise be available to you under applicable patent law.
539
+
540
+ 12. No Surrender of Others' Freedom.
541
+
542
+ If conditions are imposed on you (whether by court order, agreement or
543
+ otherwise) that contradict the conditions of this License, they do not
544
+ excuse you from the conditions of this License. If you cannot convey a
545
+ covered work so as to satisfy simultaneously your obligations under this
546
+ License and any other pertinent obligations, then as a consequence you may
547
+ not convey it at all. For example, if you agree to terms that obligate you
548
+ to collect a royalty for further conveying from those to whom you convey
549
+ the Program, the only way you could satisfy both those terms and this
550
+ License would be to refrain entirely from conveying the Program.
551
+
552
+ 13. Use with the GNU Affero General Public License.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU Affero General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the special requirements of the GNU Affero General Public License,
560
+ section 13, concerning interaction through a network will apply to the
561
+ combination as such.
562
+
563
+ 14. Revised Versions of this License.
564
+
565
+ The Free Software Foundation may publish revised and/or new versions of
566
+ the GNU General Public License from time to time. Such new versions will
567
+ be similar in spirit to the present version, but may differ in detail to
568
+ address new problems or concerns.
569
+
570
+ Each version is given a distinguishing version number. If the
571
+ Program specifies that a certain numbered version of the GNU General
572
+ Public License "or any later version" applies to it, you have the
573
+ option of following the terms and conditions either of that numbered
574
+ version or of any later version published by the Free Software
575
+ Foundation. If the Program does not specify a version number of the
576
+ GNU General Public License, you may choose any version ever published
577
+ by the Free Software Foundation.
578
+
579
+ If the Program specifies that a proxy can decide which future
580
+ versions of the GNU General Public License can be used, that proxy's
581
+ public statement of acceptance of a version permanently authorizes you
582
+ to choose that version for the Program.
583
+
584
+ Later license versions may give you additional or different
585
+ permissions. However, no additional obligations are imposed on any
586
+ author or copyright holder as a result of your choosing to follow a
587
+ later version.
588
+
589
+ 15. Disclaimer of Warranty.
590
+
591
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+ 16. Limitation of Liability.
601
+
602
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+ SUCH DAMAGES.
611
+
612
+ 17. Interpretation of Sections 15 and 16.
613
+
614
+ If the disclaimer of warranty and limitation of liability provided
615
+ above cannot be given local legal effect according to their terms,
616
+ reviewing courts shall apply local law that most closely approximates
617
+ an absolute waiver of all civil liability in connection with the
618
+ Program, unless a warranty or assumption of liability accompanies a
619
+ copy of the Program in return for a fee.
620
+
621
+ END OF TERMS AND CONDITIONS
622
+
623
+ How to Apply These Terms to Your New Programs
624
+
625
+ If you develop a new program, and you want it to be of the greatest
626
+ possible use to the public, the best way to achieve this is to make it
627
+ free software which everyone can redistribute and change under these terms.
628
+
629
+ To do so, attach the following notices to the program. It is safest
630
+ to attach them to the start of each source file to most effectively
631
+ state the exclusion of warranty; and each file should have at least
632
+ the "copyright" line and a pointer to where the full notice is found.
633
+
634
+ <one line to give the program's name and a brief idea of what it does.>
635
+ Copyright (C) <year> <name of author>
636
+
637
+ This program is free software: you can redistribute it and/or modify
638
+ it under the terms of the GNU General Public License as published by
639
+ the Free Software Foundation, either version 3 of the License, or
640
+ (at your option) any later version.
641
+
642
+ This program is distributed in the hope that it will be useful,
643
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
+ GNU General Public License for more details.
646
+
647
+ You should have received a copy of the GNU General Public License
648
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
649
+
650
+ Also add information on how to contact you by electronic and paper mail.
651
+
652
+ If the program does terminal interaction, make it output a short
653
+ notice like this when it starts in an interactive mode:
654
+
655
+ <program> Copyright (C) <year> <name of author>
656
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+ This is free software, and you are welcome to redistribute it
658
+ under certain conditions; type `show c' for details.
659
+
660
+ The hypothetical commands `show w' and `show c' should show the appropriate
661
+ parts of the General Public License. Of course, your program's commands
662
+ might be different; for a GUI interface, you would use an "about box".
663
+
664
+ You should also get your employer (if you work as a programmer) or school,
665
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+ For more information on this, and how to apply and follow the GNU GPL, see
667
+ <http://www.gnu.org/licenses/>.
668
+
669
+ The GNU General Public License does not permit incorporating your program
670
+ into proprietary programs. If your program is a subroutine library, you
671
+ may consider it more useful to permit linking proprietary applications with
672
+ the library. If this is what you want to do, use the GNU Lesser General
673
+ Public License instead of this License. But first, please read
674
+ <http://www.gnu.org/philosophy/why-not-lgpl.html>.
plugin.php CHANGED
@@ -2,9 +2,9 @@
2
  /*
3
  Plugin Name: AG Custom Admin
4
  Plugin URI: http://wordpress.org/extend/plugins/ag-custom-admin
5
- Description: Hide or change items in admin panel. Customize buttons from admin menu.
6
  Author: Argonius
7
- Version: 1.2.1
8
  Author URI: http://wordpress.argonius.com/ag-custom-admin
9
 
10
  Copyright 2011. Argonius (email : info@argonius.com)
@@ -28,7 +28,7 @@ Author URI: http://wordpress.argonius.com/ag-custom-admin
28
  $agca = new AGCA();
29
 
30
  class AGCA{
31
-
32
  public function __construct()
33
  {
34
 
@@ -42,6 +42,9 @@ class AGCA{
42
  /*Styles*/
43
  // add_action('admin_menu', array(&$this,'agca_get_styles'));
44
  // add_action('login_head', array(&$this,'agca_get_styles'));
 
 
 
45
  }
46
  // Add donate and support information
47
  function jk_filter_plugin_links($links, $file)
@@ -58,6 +61,7 @@ class AGCA{
58
  ?>
59
  <link rel="stylesheet" type="text/css" href="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>style/ag_style.css" />
60
  <script type="text/javascript" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>script/ag_script.js"></script>
 
61
  <?php
62
  }
63
 
@@ -68,7 +72,8 @@ class AGCA{
68
 
69
  }
70
 
71
- function agca_register_settings() {
 
72
  register_setting( 'agca-options-group', 'agca_screen_options_menu' );
73
  register_setting( 'agca-options-group', 'agca_help_menu' );
74
  register_setting( 'agca-options-group', 'agca_logout' );
@@ -112,13 +117,17 @@ class AGCA{
112
  register_setting( 'agca-options-group', 'agca_admin_menu_turnonoff' );
113
  register_setting( 'agca-options-group', 'agca_admin_menu_agca_button_only' );
114
  register_setting( 'agca-options-group', 'agca_admin_menu_separator_first' );
115
- register_setting( 'agca-options-group', 'agca_admin_menu_separator_second' );
 
116
  register_setting( 'agca-options-group', 'ag_edit_adminmenu_json' );
117
  register_setting( 'agca-options-group', 'ag_add_adminmenu_json' );
 
 
118
 
119
  }
120
 
121
- function agca_deactivate() {
 
122
  delete_option( 'agca_screen_options_menu' );
123
  delete_option( 'agca_help_menu' );
124
  delete_option( 'agca_logout' );
@@ -163,9 +172,11 @@ class AGCA{
163
  delete_option( 'agca_admin_menu_agca_button_only' );
164
  delete_option( 'agca_admin_menu_separator_first' );
165
  delete_option( 'agca_admin_menu_separator_second' );
 
166
  delete_option( 'ag_edit_adminmenu_json' );
167
- delete_option( 'ag_add_adminmenu_json' );
168
-
 
169
  }
170
  function agca_create_menu() {
171
  //create new top-level menu
@@ -202,7 +213,12 @@ class AGCA{
202
  $array ="";
203
  $first = true;
204
  //print_r($json);
205
- if($type == "buttons"){
 
 
 
 
 
206
  $elements = json_decode($arr[0],true);
207
  if($elements !=""){
208
  foreach($elements as $k => $v){
@@ -234,8 +250,6 @@ class AGCA{
234
  return $array;
235
  }
236
 
237
-
238
-
239
  function remove_dashboard_widget($widget,$side)
240
  {
241
  //side can be 'normal' or 'side'
@@ -248,13 +262,44 @@ class AGCA{
248
  $this->agca_get_includes();
249
 
250
  get_currentuserinfo() ;
251
- global $user_level;
252
- ?>
253
- <script type="text/javascript">
254
- /* <![CDATA[ */
255
- jQuery(document).ready(function() {
256
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  <?php if(get_option('agca_screen_options_menu')==true){ ?>
259
  jQuery("#screen-options-link-wrap").css("display","none");
260
  <?php } ?>
@@ -394,24 +439,20 @@ class AGCA{
394
  ?>
395
 
396
 
397
- <?php /*ADMIN MENU*/ ?>
398
-
399
- //saved user menu configuration
400
- <?php $checkboxes = $this->jsonMenuArray(get_option('ag_edit_adminmenu_json'),'0'); ?>
401
- var checkboxes = <?php echo "[".$checkboxes."]"; ?>;
402
-
403
- <?php $textboxes = $this->jsonMenuArray(get_option('ag_edit_adminmenu_json'),'1'); ?>
404
- var textboxes = <?php echo "[".$textboxes."]"; ?>;
405
-
406
- <?php $buttons = $this->jsonMenuArray(get_option('ag_add_adminmenu_json'),'buttons'); ?>
407
- var buttons = '<?php echo $buttons; ?>';
408
-
409
- <?php $buttonsJq = $this->jsonMenuArray(get_option('ag_add_adminmenu_json'),'buttonsJq'); ?>
410
- var buttonsJq = '<?php echo $buttonsJq; ?>';
411
-
412
-
413
- createEditMenuPage(checkboxes,textboxes);
414
 
 
 
 
 
 
 
 
 
 
 
 
415
  <?php if(get_option('agca_admin_menu_turnonoff') == 'on'){ ?>
416
 
417
  <?php /*If Turned on*/ ?>
@@ -427,13 +468,8 @@ class AGCA{
427
  jQuery(this).addClass('noclass');
428
  }
429
  });
430
- <?php } ?>
431
- <?php if(get_option('agca_admin_menu_separator_first')==true){ ?>
432
- jQuery("li.wp-menu-separator").eq(0).css("display","none");
433
- <?php } ?>
434
- <?php if(get_option('agca_admin_menu_separator_second')==true){ ?>
435
- jQuery("li.wp-menu-separator").eq(1).css("display","none");
436
- <?php } ?>
437
  <?php /*EDIT MENU ITEMS*/?>
438
  <?php if(get_option('ag_edit_adminmenu_json')!=""){
439
 
@@ -501,17 +537,34 @@ class AGCA{
501
  <?php /*END If Turned on*/ ?>
502
  <?php } else{ ?>
503
  jQuery("#adminmenu").removeClass("noclass");
504
- <?php } ?>
505
-
506
 
507
 
508
  /*Add user buttons*/
509
  jQuery('#ag_add_adminmenu').append(buttonsJq);
510
- reloadRemoveButtonEvents();
511
-
512
- });
513
- /* ]]> */
514
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
515
  <style type="text/css">
516
  .underline_text{
517
  text-decoration:underline;
@@ -520,6 +573,12 @@ class AGCA{
520
  width:300px;
521
  }
522
  </style>
 
 
 
 
 
 
523
  <?php
524
  }
525
 
@@ -528,7 +587,9 @@ class AGCA{
528
  $this->reloadScript();
529
  $this->agca_get_includes();
530
  ?>
 
531
  <script type="text/javascript">
 
532
  /* <![CDATA[ */
533
  jQuery(document).ready(function() {
534
 
@@ -550,7 +611,37 @@ class AGCA{
550
  jQuery("#login h1 a").css("display","none");
551
  <?php } ?>
552
 
553
- jQuery("#login h1 a").attr("title","");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
554
  });
555
  /* ]]> */
556
  </script>
@@ -558,26 +649,43 @@ class AGCA{
558
  }
559
 
560
  function agca_admin_page() {
561
- ?>
562
- <div class="wrap">
 
 
 
 
 
 
 
563
  <h1 style="color:green">AG Custom Admin Settings</h1>
564
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
565
  <ul id="ag_main_menu">
566
  <li class="selected"><a href="#admin-bar-settings" title="Settings for admin bar" >Admin Bar</a></li>
567
  <li class="normal"><a href="#admin-footer-settings" title="Settings for admin footer" >Admin Footer</a></li>
568
  <li class="normal"><a href="#dashboad-page-settings" title="Settings for Dashboard page">Dashboard Page</a></li>
569
  <li class="normal"><a href="#login-page-settings" title="Settings for Login page">Login Page</a></li>
570
  <li class="normal" ><a href="#admin-menu-settings" title="Settings for main admin menu">Admin Menu</a></li>
571
- <!--<li class="normal"><a href="#ag-custom-admin-plugin-setttings" title="Settings for AG Custom Admin plugin">Plugin Settings</a></li>-->
572
- <li style="background:none;border:none;margin-top:-5px;margin-left:-15px"><a id="agca_donate_button" style="margin-left:8px" title="Do You like this plugin? You can support its future development by providing small donation" href="http://wordpress.argonius.com/donate"><img alt="Donate" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>images/btn_donate_LG.gif" /></a>
573
  </li>
574
- </ul>
575
- <form method="post" id="agca_form" action="options.php">
576
- <?php settings_fields( 'agca-options-group' ); ?>
577
  <div id="section_admin_bar" class="ag_section">
578
  <h2 class="section_title" tabindex="-1">Admin Bar Settings Page</h2>
579
  <br />
580
- <p tabindex="0"><strong>Info: </strong>Roll over option labels for more information about option.</p>
581
  <br />
582
  <table class="form-table" width="500px">
583
  <tr valign="center" class="ag_table_major_options" >
@@ -974,6 +1082,14 @@ class AGCA{
974
  <input title="This is arrow like separator between Comments and Appearance button (by default)" type="checkbox" name="agca_admin_menu_separator_second" value="true" <?php if (get_option('agca_admin_menu_separator_second')==true) echo 'checked="checked" '; ?> />
975
  </td>
976
  </tr>
 
 
 
 
 
 
 
 
977
  <tr valign="center">
978
  <td colspan="2">
979
  <div class="ag_table_heading"><h3 tabindex="0">Add New Menu Items</h3></div>
@@ -1000,22 +1116,110 @@ class AGCA{
1000
  </tr>
1001
  </table>
1002
  </div>
1003
- <!--<div id="section_agca_settings" style="display:none" class="ag_section">
1004
- <h2 class="section_title">AG Custom Admin Settings Page</h2>
1005
  <br />
1006
- <p style="font-style:italic"><strong>Info: </strong>These settings are for 'AG Custom Admin' plugin customization.</p>
1007
  <br />
1008
  <table class="form-table" width="500px">
1009
  <tr valign="center" class="ag_table_major_options">
1010
- <td><label for="agca_admin_menu_turnonoff">Turn OFF tooltips on mouseover, and put them as visible description near option</label></td>
1011
- <td><input label="Set tooltips visible on page, without using mouse - checkbox" type="checkbox" id="aafasfsfdsf" name="asfdasfefe4" /></td>
1012
  </tr>
1013
- <tr valign="center" class="ag_table_major_options">
1014
- <td><label title="This is text at the bottom of plugin page, with short description of plugin and plugin developer" for="tdfyt">Hide AGCA plugin footer text</label></td>
1015
- <td><input label="Hide plugin's footer text description - checkbox" type="checkbox" id="aafasfsfdsf" name="asfdasfefe4" /></td>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1016
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1017
  </table>
1018
- </div>-->
 
 
1019
  <br /><br /><br />
1020
  <p class="submit">
1021
  <input type="submit" title="Save changes button" class="button-primary" value="<?php _e('Save Changes') ?>" />
2
  /*
3
  Plugin Name: AG Custom Admin
4
  Plugin URI: http://wordpress.org/extend/plugins/ag-custom-admin
5
+ Description: Hide or change items in admin panel. Customize buttons from admin menu. Colorize admin and login page with custom colors.
6
  Author: Argonius
7
+ Version: 1.2.2
8
  Author URI: http://wordpress.argonius.com/ag-custom-admin
9
 
10
  Copyright 2011. Argonius (email : info@argonius.com)
28
  $agca = new AGCA();
29
 
30
  class AGCA{
31
+ private $colorizer="";
32
  public function __construct()
33
  {
34
 
42
  /*Styles*/
43
  // add_action('admin_menu', array(&$this,'agca_get_styles'));
44
  // add_action('login_head', array(&$this,'agca_get_styles'));
45
+
46
+ /*Initialize properties*/
47
+ $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
48
  }
49
  // Add donate and support information
50
  function jk_filter_plugin_links($links, $file)
61
  ?>
62
  <link rel="stylesheet" type="text/css" href="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>style/ag_style.css" />
63
  <script type="text/javascript" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>script/ag_script.js"></script>
64
+
65
  <?php
66
  }
67
 
72
 
73
  }
74
 
75
+ function agca_register_settings() {
76
+ register_setting( 'agca-options-group', 'agca_role_allbutadmin' );
77
  register_setting( 'agca-options-group', 'agca_screen_options_menu' );
78
  register_setting( 'agca-options-group', 'agca_help_menu' );
79
  register_setting( 'agca-options-group', 'agca_logout' );
117
  register_setting( 'agca-options-group', 'agca_admin_menu_turnonoff' );
118
  register_setting( 'agca-options-group', 'agca_admin_menu_agca_button_only' );
119
  register_setting( 'agca-options-group', 'agca_admin_menu_separator_first' );
120
+ register_setting( 'agca-options-group', 'agca_admin_menu_separator_second' );
121
+ register_setting( 'agca-options-group', 'agca_admin_menu_icons' );
122
  register_setting( 'agca-options-group', 'ag_edit_adminmenu_json' );
123
  register_setting( 'agca-options-group', 'ag_add_adminmenu_json' );
124
+ register_setting( 'agca-options-group', 'ag_colorizer_json' );
125
+ register_setting( 'agca-options-group', 'agca_colorizer_turnonoff' );
126
 
127
  }
128
 
129
+ function agca_deactivate() {
130
+ delete_option( 'agca_role_allbutadmin' );
131
  delete_option( 'agca_screen_options_menu' );
132
  delete_option( 'agca_help_menu' );
133
  delete_option( 'agca_logout' );
172
  delete_option( 'agca_admin_menu_agca_button_only' );
173
  delete_option( 'agca_admin_menu_separator_first' );
174
  delete_option( 'agca_admin_menu_separator_second' );
175
+ delete_option( 'agca_admin_menu_icons' );
176
  delete_option( 'ag_edit_adminmenu_json' );
177
+ delete_option( 'ag_add_adminmenu_json' );
178
+ delete_option( 'ag_colorizer_json' );
179
+ delete_option( 'agca_colorizer_turnonoff' );
180
  }
181
  function agca_create_menu() {
182
  //create new top-level menu
213
  $array ="";
214
  $first = true;
215
  //print_r($json);
216
+ if($type == "colorizer"){
217
+ $elements = json_decode($arr[0],true);
218
+ if($elements !=""){
219
+ return $elements;
220
+ }
221
+ }else if($type == "buttons"){
222
  $elements = json_decode($arr[0],true);
223
  if($elements !=""){
224
  foreach($elements as $k => $v){
250
  return $array;
251
  }
252
 
 
 
253
  function remove_dashboard_widget($widget,$side)
254
  {
255
  //side can be 'normal' or 'side'
262
  $this->agca_get_includes();
263
 
264
  get_currentuserinfo() ;
265
+ global $user_level;
266
+
267
+ ?>
268
+ <?php
269
+ //in case that javaScript is disabled only admin can access admin menu
270
+ if($user_level <= 9){
271
+ ?>
272
+ <style type="text/css">
273
+ #adminmenu{display:none;}
274
+ </style>
275
+ <?php
276
+ }
277
+ ?>
278
+ <script type="text/javascript">
279
+ document.write('<style type="text/css">html{display:none;}</style>');
280
+ /* <![CDATA[ */
281
+ jQuery(document).ready(function() {
282
+ //get saved onfigurations
283
+ <?php $checkboxes = $this->jsonMenuArray(get_option('ag_edit_adminmenu_json'),'0'); ?>
284
+ var checkboxes = <?php echo "[".$checkboxes."]"; ?>;
285
 
286
+ <?php $textboxes = $this->jsonMenuArray(get_option('ag_edit_adminmenu_json'),'1'); ?>
287
+ var textboxes = <?php echo "[".$textboxes."]"; ?>;
288
+
289
+ <?php $buttons = $this->jsonMenuArray(get_option('ag_add_adminmenu_json'),'buttons'); ?>
290
+ var buttons = '<?php echo $buttons; ?>';
291
+
292
+ <?php $buttonsJq = $this->jsonMenuArray(get_option('ag_add_adminmenu_json'),'buttonsJq'); ?>
293
+ var buttonsJq = '<?php echo $buttonsJq; ?>';
294
+
295
+ createEditMenuPage(checkboxes,textboxes);
296
+
297
+ <?php
298
+ //if admin, and option to hide settings for admin is set
299
+ if((get_option('agca_role_allbutadmin')==true) and ($user_level > 9)){
300
+ ?>
301
+ <?php } else{ ?>
302
+
303
  <?php if(get_option('agca_screen_options_menu')==true){ ?>
304
  jQuery("#screen-options-link-wrap").css("display","none");
305
  <?php } ?>
439
  ?>
440
 
441
 
442
+ <?php /*ADMIN MENU*/ ?>
443
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
444
 
445
+ <?php if(get_option('agca_admin_menu_separator_first')==true){ ?>
446
+ jQuery("li.wp-menu-separator").eq(0).css("display","none");
447
+ <?php } ?>
448
+ <?php if(get_option('agca_admin_menu_separator_second')==true){ ?>
449
+ jQuery("li.wp-menu-separator").eq(1).css("display","none");
450
+ <?php } ?>
451
+ <?php if(get_option('agca_admin_menu_icons') == true){ ?>
452
+ jQuery(".wp-menu-image").each(function(){
453
+ jQuery(this).css("display","none");
454
+ });
455
+ <?php } ?>
456
  <?php if(get_option('agca_admin_menu_turnonoff') == 'on'){ ?>
457
 
458
  <?php /*If Turned on*/ ?>
468
  jQuery(this).addClass('noclass');
469
  }
470
  });
471
+ <?php } ?>
472
+
 
 
 
 
 
473
  <?php /*EDIT MENU ITEMS*/?>
474
  <?php if(get_option('ag_edit_adminmenu_json')!=""){
475
 
537
  <?php /*END If Turned on*/ ?>
538
  <?php } else{ ?>
539
  jQuery("#adminmenu").removeClass("noclass");
540
+ <?php } ?>
 
541
 
542
 
543
  /*Add user buttons*/
544
  jQuery('#ag_add_adminmenu').append(buttonsJq);
545
+ reloadRemoveButtonEvents();
546
+
547
+
548
+ <?php //COLORIZER ?>
549
+ <?php if(get_option('agca_colorizer_turnonoff') == 'on'){ ?>
550
+ <?php
551
+ foreach($this->colorizer as $k => $v){
552
+ if(($k !="") and ($v !="")){
553
+ ?> updateTargetColor("<?php echo $k;?>","<?php echo $v;?>"); <?php
554
+ }
555
+ }
556
+ ?>
557
+ jQuery('.color_picker').each(function(){
558
+ updateColor(jQuery(this).attr('id'),jQuery(this).val())
559
+ });
560
+ jQuery('label,h1,h2,h3,h4,h5,h6,a,p,.form-table th,.form-wrap label').css('text-shadow','none');
561
+
562
+ <?php } ?>
563
+ <?php //COLORIZER END ?>
564
+ <?php } //end of apply for any user except admin ?>
565
+ });
566
+ /* ]]> */
567
+ </script>
568
  <style type="text/css">
569
  .underline_text{
570
  text-decoration:underline;
573
  width:300px;
574
  }
575
  </style>
576
+ <?php //unhide after everything is loaded ?>
577
+ <script type="text/javascript">
578
+ jQuery(document).ready(function() {
579
+ jQuery('html').show();
580
+ });
581
+ </script>
582
  <?php
583
  }
584
 
587
  $this->reloadScript();
588
  $this->agca_get_includes();
589
  ?>
590
+
591
  <script type="text/javascript">
592
+ document.write('<style type="text/css">html{display:none;}</style>');
593
  /* <![CDATA[ */
594
  jQuery(document).ready(function() {
595
 
611
  jQuery("#login h1 a").css("display","none");
612
  <?php } ?>
613
 
614
+ jQuery("#login h1 a").attr("title","");
615
+
616
+
617
+ <?php //COLORIZER ?>
618
+ <?php if(get_option('agca_colorizer_turnonoff') == 'on'){ ?>
619
+ jQuery('label,h1,h2,h3,h4,h5,h6,a,p,.form-table th,.form-wrap label').css('text-shadow','none');
620
+ <?php
621
+
622
+ if($this->colorizer['color_background']!=""){
623
+ ?>
624
+ updateTargetColor("color_background","<?php echo $this->colorizer['color_background'];?>");
625
+ <?php
626
+ }
627
+ if($this->colorizer['color_header']!=""){
628
+ ?>
629
+ jQuery("#backtoblog").css("background","<?php echo $this->colorizer['color_header'];?>");
630
+ <?php
631
+ }
632
+ if($this->colorizer['color_font_header']!=""){
633
+ ?>
634
+ jQuery("#backtoblog a,#backtoblog p").css("color","<?php echo $this->colorizer['color_font_header'];?>");
635
+ <?php
636
+ }
637
+ } ?>
638
+ <?php //COLORIZER END ?>
639
+
640
+ <?php //unhide after everything is loaded ?>
641
+ jQuery(document).ready(function() {
642
+ jQuery('html').show();
643
+ });
644
+ <?php //unhide after everything is loaded ?>
645
  });
646
  /* ]]> */
647
  </script>
649
  }
650
 
651
  function agca_admin_page() {
652
+ ?>
653
+ <?php //includes ?>
654
+ <link rel="stylesheet" type="text/css" href="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>style/farbtastic.css" />
655
+ <script type="text/javascript" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>script/farbtastic.js"></script>
656
+
657
+ <link rel="stylesheet" type="text/css" href="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>style/agca_farbtastic.css" />
658
+ <script type="text/javascript" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>script/agca_farbtastic.js"></script>
659
+ <?php //includes ?>
660
+ <div class="wrap">
661
  <h1 style="color:green">AG Custom Admin Settings</h1>
662
+ <br />
663
+ <form method="post" id="agca_form" action="options.php">
664
+ <?php settings_fields( 'agca-options-group' ); ?>
665
+ <table>
666
+ <tr valign="center" >
667
+ <th scope="row">
668
+ <label title="If checked, all users will be affected with these changes, except admin. Not checked = appy for all" for="agca_role_allbutadmin">Do not apply these settings for Admin&nbsp;&nbsp;</label>
669
+ </th>
670
+ <td><input title="If checked, all users will be affected with these changes, except admin. Not checked = appy for all" type="checkbox" name="agca_role_allbutadmin" value="true" <?php if (get_option('agca_role_allbutadmin')==true) echo 'checked="checked" '; echo get_option('agca_role_allbutadmin'); ?> />
671
+ </td>
672
+ </tr>
673
+ </table>
674
+ <br />
675
  <ul id="ag_main_menu">
676
  <li class="selected"><a href="#admin-bar-settings" title="Settings for admin bar" >Admin Bar</a></li>
677
  <li class="normal"><a href="#admin-footer-settings" title="Settings for admin footer" >Admin Footer</a></li>
678
  <li class="normal"><a href="#dashboad-page-settings" title="Settings for Dashboard page">Dashboard Page</a></li>
679
  <li class="normal"><a href="#login-page-settings" title="Settings for Login page">Login Page</a></li>
680
  <li class="normal" ><a href="#admin-menu-settings" title="Settings for main admin menu">Admin Menu</a></li>
681
+ <li class="normal"><a href="#ag-colorizer-setttings" title="AG colorizer settings">Colorizer</a></li>
682
+ <li style="background:none;border:none;padding:0;"><a id="agca_donate_button" style="margin-left:8px" title="Do You like this plugin? You can support its future development by providing small donation" href="http://wordpress.argonius.com/donate"><img alt="Donate" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>images/btn_donate_LG.gif" /></a>
683
  </li>
684
+ </ul>
 
 
685
  <div id="section_admin_bar" class="ag_section">
686
  <h2 class="section_title" tabindex="-1">Admin Bar Settings Page</h2>
687
  <br />
688
+ <p tabindex="0"><i><strong>Info: </strong>Roll over option labels for more information about option.</i></p>
689
  <br />
690
  <table class="form-table" width="500px">
691
  <tr valign="center" class="ag_table_major_options" >
1082
  <input title="This is arrow like separator between Comments and Appearance button (by default)" type="checkbox" name="agca_admin_menu_separator_second" value="true" <?php if (get_option('agca_admin_menu_separator_second')==true) echo 'checked="checked" '; ?> />
1083
  </td>
1084
  </tr>
1085
+ <tr valign="center">
1086
+ <th scope="row">
1087
+ <label title="Removes small icons on admin menu buttons" for="agca_admin_menu_icons">Remove menu icons</label>
1088
+ </th>
1089
+ <td>
1090
+ <input title="Removes small icons on admin menu buttons" type="checkbox" name="agca_admin_menu_icons" value="true" <?php if (get_option('agca_admin_menu_icons')==true) echo 'checked="checked" '; ?> />
1091
+ </td>
1092
+ </tr>
1093
  <tr valign="center">
1094
  <td colspan="2">
1095
  <div class="ag_table_heading"><h3 tabindex="0">Add New Menu Items</h3></div>
1116
  </tr>
1117
  </table>
1118
  </div>
1119
+ <div id="section_ag_colorizer_settings" style="display:none" class="ag_section">
1120
+ <h2 class="section_title">Colorizer Page</h2>
1121
  <br />
1122
+ <p><i><strong>Info: </strong>Change Admin panel colors (This is Colorizer demo with only few color options. More color options will be available in future realeases).</i></p>
1123
  <br />
1124
  <table class="form-table" width="500px">
1125
  <tr valign="center" class="ag_table_major_options">
1126
+ <td><label for="agca_colorizer_turnonoff"><strong>Turn on/off Colorizer configuration</strong></label></td>
1127
+ <td><strong><input type="radio" name="agca_colorizer_turnonoff" title="Turn ON Colorizer configuration" value="on" <?php if(get_option('agca_colorizer_turnonoff') == 'on') echo 'checked="checked" '; ?> /><span style="color:green">ON</span>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="agca_colorizer_turnonoff" title="Turn OFF Colorizer configuration" value="off" <?php if(get_option('agca_colorizer_turnonoff') != 'on') echo 'checked="checked"'; ?> /><span style="color:red">OFF</span></strong></td>
1128
  </tr>
1129
+ <tr valign="center">
1130
+ <td colspan="2">
1131
+ <div class="ag_table_heading"><h3 tabindex="0">Global Color Options</h3></div>
1132
+ </td>
1133
+ <td>
1134
+ </td>
1135
+ </tr>
1136
+ <tr valign="center">
1137
+ <th><label title="Change admin background color" for="color_background">Background color:</label></th>
1138
+ <td><input type="text" id="color_background" name="color_background" class="color_picker" value="<?php echo htmlspecialchars($this->colorizer['color_background']); ?>" />
1139
+ <input type="button" alt="color_background" class="pick_color_button" value="Pick color" />
1140
+ <input type="button" alt="color_background" class="pick_color_button_clear" value="Clear" />
1141
+ </td>
1142
+ </tr>
1143
+ <tr valign="center">
1144
+ <th><label title="Change footer color in admin panel" for="color_footer">Footer color:</label></th>
1145
+ <td><input type="text" id="color_footer" name="color_footer" class="color_picker" value="<?php echo htmlspecialchars($this->colorizer['color_footer']); ?>" />
1146
+ <input type="button" alt="color_footer" class="pick_color_button" value="Pick color" />
1147
+ <input type="button" alt="color_footer" class="pick_color_button_clear" value="Clear" />
1148
+ </td>
1149
+ </tr>
1150
+ <tr valign="center">
1151
+ <th><label title="Change header color in admin panel" for="color_header">Header color:</label></th>
1152
+ <td><input type="text" id="color_header" name="color_header" class="color_picker" value="<?php echo htmlspecialchars($this->colorizer['color_header']); ?>" />
1153
+ <input type="button" alt="color_header" class="pick_color_button" value="Pick color" />
1154
+ <input type="button" alt="color_header" class="pick_color_button_clear" value="Clear" />
1155
+ </td>
1156
+ </tr>
1157
+ <tr valign="center">
1158
+ <td colspan="2">
1159
+ <div class="ag_table_heading"><h3 tabindex="0">Admin Menu Color Options</h3></div>
1160
+ </td>
1161
+ <td>
1162
+ </td>
1163
+ </tr>
1164
+ <tr valign="center">
1165
+ <th><label title="Change background color in admin menu" for="color_admin_menu_top_button_background">Top button background color:</label></th>
1166
+ <td><input type="text" id="color_admin_menu_top_button_background" name="color_admin_menu_top_button_background" class="color_picker" value="<?php echo htmlspecialchars($this->colorizer['color_admin_menu_top_button_background']); ?>" />
1167
+ <input type="button" alt="color_admin_menu_top_button_background" class="pick_color_button" value="Pick color" />
1168
+ <input type="button" alt="color_admin_menu_top_button_background" class="pick_color_button_clear" value="Clear" />
1169
+ </td>
1170
+ </tr>
1171
+ <tr valign="center">
1172
+ <th><label title="Change background submenu color in admin menu" for="color_admin_menu_submenu_background">Submenu button background color:</label></th>
1173
+ <td><input type="text" id="color_admin_menu_submenu_background" name="color_admin_menu_submenu_background" class="color_picker" value="<?php echo htmlspecialchars($this->colorizer['color_admin_menu_submenu_background']); ?>" />
1174
+ <input type="button" alt="color_admin_menu_submenu_background" class="pick_color_button" value="Pick color" />
1175
+ <input type="button" alt="color_admin_menu_submenu_background" class="pick_color_button_clear" value="Clear" />
1176
+ </td>
1177
+ </tr>
1178
+ <tr valign="center">
1179
+ <th><label title="Change text color in admin menu" for="color_admin_menu_font">Text color:</label></th>
1180
+ <td><input type="text" id="color_admin_menu_font" name="color_admin_menu_font" class="color_picker" value="<?php echo htmlspecialchars($this->colorizer['color_admin_menu_font']); ?>" />
1181
+ <input type="button" alt="color_admin_menu_font" class="pick_color_button" value="Pick color" />
1182
+ <input type="button" alt="color_admin_menu_font" class="pick_color_button_clear" value="Clear" />
1183
+ </td>
1184
  </tr>
1185
+ <!--<tr valign="center">
1186
+ <th><label title="Change background submenu color on mouse over in admin menu" for="color_admin_menu_submenu_background_over">Submenu button background (Mouse over):</label></th>
1187
+ <td><input type="text" id="color_admin_menu_submenu_background_over" name="color_admin_menu_submenu_background_over" class="color_picker" value="#123456" />
1188
+ <input type="button" alt="color_admin_menu_submenu_background_over" class="pick_color_button" value="Pick color" />
1189
+ </td>
1190
+ </tr>-->
1191
+ <tr valign="center">
1192
+ <td colspan="2">
1193
+ <div class="ag_table_heading"><h3 tabindex="0">Font Color Options</h3></div>
1194
+ </td>
1195
+ <td>
1196
+ </td>
1197
+ </tr>
1198
+ <tr valign="center">
1199
+ <th><label title="Change color in content text" for="color_font_content">Content text color:</label></th>
1200
+ <td><input type="text" id="color_font_content" name="color_font_content" class="color_picker" value="<?php echo htmlspecialchars($this->colorizer['color_font_content']); ?>" />
1201
+ <input type="button" alt="color_font_content" class="pick_color_button" value="Pick color" />
1202
+ <input type="button" alt="color_font_content" class="pick_color_button_clear" value="Clear" />
1203
+ </td>
1204
+ </tr>
1205
+ <tr valign="center">
1206
+ <th><label title="Change color in header text" for="color_font_header">Header text color:</label></th>
1207
+ <td><input type="text" id="color_font_header" name="color_font_header" class="color_picker" value="<?php echo htmlspecialchars($this->colorizer['color_font_header']); ?>" />
1208
+ <input type="button" alt="color_font_header" class="pick_color_button" value="Pick color" />
1209
+ <input type="button" alt="color_font_header" class="pick_color_button_clear" value="Clear" />
1210
+ </td>
1211
+ </tr>
1212
+ <tr valign="center">
1213
+ <th><label title="Change color in fotter text" for="color_font_footer">Footer text color:</label></th>
1214
+ <td><input type="text" id="color_font_footer" name="color_font_footer" class="color_picker" value="<?php echo htmlspecialchars($this->colorizer['color_font_footer']); ?>" />
1215
+ <input type="button" alt="color_font_footer" class="pick_color_button" value="Pick color" />
1216
+ <input type="button" alt="color_font_footer" class="pick_color_button_clear" value="Clear" />
1217
+ </td>
1218
+ </tr>
1219
  </table>
1220
+ <input type="hidden" size="47" id="ag_colorizer_json" name="ag_colorizer_json" value="<?php echo htmlspecialchars(get_option('ag_colorizer_json')); ?>" />
1221
+ <div id="picker"></div>
1222
+ </div>
1223
  <br /><br /><br />
1224
  <p class="submit">
1225
  <input type="submit" title="Save changes button" class="button-primary" value="<?php _e('Save Changes') ?>" />
readme.txt CHANGED
@@ -4,14 +4,13 @@ Donate link: http://wordpress.argonius.com/donate
4
  Tags: admin, customize, hide, change admin
5
  Requires at least: 3.0
6
  Tested up to: 3.1.2
7
- Stable tag: 1.2.1
8
 
9
- Hide or change items in admin panel. Customize buttons from admin menu.
10
 
11
  == Description ==
12
- With this plugin You can hide or change unwanted items in admin and login pages.
13
- For example, You can easily change header or footer text, remove unwanted options like Screen options, Help options or Favorites dropdown menu.
14
- You can also completely change or hide buttons from admin menu, or add new customized buttons.
15
 
16
  Here is the list of options:
17
 
@@ -51,6 +50,10 @@ Here is the list of options:
51
  - Rename menu and submenu items
52
  - Remove menu and submenu items
53
  - Add new buttons with custom links
 
 
 
 
54
 
55
 
56
  For more information about the plugin please see: http://wordpress.argonius.com/ag-custom-admin
@@ -66,14 +69,27 @@ For more information about the plugin please see: http://wordpress.argonius.com/
66
  = My text is not in the right place. How to fix it? =
67
  It is possible that WordPress usually wraps that text with some HTML tags. In that case use one of HTML tags to surround your text, e.g. &lt;h1&gt;My text&lt;/h1&gt;, or other (a, p, h2, h3.. etc.)
68
 
 
 
 
 
 
 
69
  == Screenshots ==
70
 
71
  1. Text in header or footer could be customized.
72
  2. Login page top bar could be changer or removed. Custom login photo could be added.
73
  3. Admin menu is completely customizable. You can rename or remove items in menu and submenu, or add brand new buttons with custom links.
 
74
 
75
  == Changelog ==
76
 
 
 
 
 
 
 
77
  = 1.2.1 =
78
  * Improved accessibility
79
  * Optimization for screen readers
@@ -104,6 +120,9 @@ It is possible that WordPress usually wraps that text with some HTML tags. In th
104
 
105
  == Upgrade Notice ==
106
 
 
 
 
107
  = 1.2.1 =
108
  This is minor upgrade from 1.2 to 1.2.1 version. Mostly it is based on optimization for screen readers and improving accessibility. You definitly need to upgrade this plugin if you have version older than 1.2.
109
 
4
  Tags: admin, customize, hide, change admin
5
  Requires at least: 3.0
6
  Tested up to: 3.1.2
7
+ Stable tag: 1.2.2
8
 
9
+ Hide or change items in admin panel. Customize buttons from admin menu. Colorize admin and login page with custom colors.
10
 
11
  == Description ==
12
+ With this plugin you can hide or change unwanted items in admin and login pages (like admin bar or footer text, remove Screen options, Help options or Favorites dropdown menu etc).
13
+ You can also completely change or hide buttons from admin menu, or add new customized buttons. With Colorizer you can completely customize background and text colors in admin and login page.
 
14
 
15
  Here is the list of options:
16
 
50
  - Rename menu and submenu items
51
  - Remove menu and submenu items
52
  - Add new buttons with custom links
53
+ - Remove icons from admin menu buttons
54
+
55
+ Colorizer
56
+ - Change background and text colors in admin and login page
57
 
58
 
59
  For more information about the plugin please see: http://wordpress.argonius.com/ag-custom-admin
69
  = My text is not in the right place. How to fix it? =
70
  It is possible that WordPress usually wraps that text with some HTML tags. In that case use one of HTML tags to surround your text, e.g. &lt;h1&gt;My text&lt;/h1&gt;, or other (a, p, h2, h3.. etc.)
71
 
72
+ = Plugin does not work after upgrading to new version. =
73
+ Try to clear browser's cache, and reload page.
74
+
75
+ = I see only blank page. What to do? =
76
+ First, try to clear browser's cache. If this does not work, try to find javaScript error in browser's console and post it to plugin's support page. If you want to deactivate plugin, but you can't access admin panel, turn of JavaScript in your browser and than log in admin and deactivate plugin (This works only for administrator).
77
+
78
  == Screenshots ==
79
 
80
  1. Text in header or footer could be customized.
81
  2. Login page top bar could be changer or removed. Custom login photo could be added.
82
  3. Admin menu is completely customizable. You can rename or remove items in menu and submenu, or add brand new buttons with custom links.
83
+ 4. Add custom background and text colors in admin and login pages.
84
 
85
  == Changelog ==
86
 
87
+ = 1.2.2 =
88
+ * Added Colorizer for changing colors in admin and login panel
89
+ * Added option for excluding admin from settings.
90
+ * Fixed bug for slow computers: Default settings are visible few moments before applying custom settings.
91
+ * Added option for removing icons from admin menu buttons
92
+
93
  = 1.2.1 =
94
  * Improved accessibility
95
  * Optimization for screen readers
120
 
121
  == Upgrade Notice ==
122
 
123
+ = 1.2.2 =
124
+ Added demo Colorizer for adding custom colors in admin and login pages. Fixed bug for slow computers, default settings should not be visible before custom settings. Added support for excluding administrator from settings. Added option for removing icons from admin menu buttons.
125
+
126
  = 1.2.1 =
127
  This is minor upgrade from 1.2 to 1.2.1 version. Mostly it is based on optimization for screen readers and improving accessibility. You definitly need to upgrade this plugin if you have version older than 1.2.
128
 
screenshot-4.jpg ADDED
Binary file
script/ag_script.js CHANGED
@@ -117,7 +117,7 @@ function showHideSection(text) {
117
  break;
118
  case 'Admin Menu': jQuery('#section_admin_menu').show(); jQuery('#section_admin_menu .section_title').trigger('focus');
119
  break;
120
- case 'Plugin Settings': jQuery('#section_agca_settings').show(); jQuery('#section_agca_settings .section_title').trigger('focus');
121
  break;
122
  default: jQuery('#section_admin_bar').show(); jQuery('#section_admin_bar .section_title').trigger('focus');
123
 
@@ -294,6 +294,76 @@ jQuery(document).ready(function(){
294
  if(element == 1){array="";}
295
  jQuery('#ag_add_adminmenu_json').val(array);
296
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
297
  return true;
298
  });
299
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  break;
118
  case 'Admin Menu': jQuery('#section_admin_menu').show(); jQuery('#section_admin_menu .section_title').trigger('focus');
119
  break;
120
+ case 'Colorizer': jQuery('#section_ag_colorizer_settings').show(); jQuery('#section_ag_colorizer_settings .section_title').trigger('focus');
121
  break;
122
  default: jQuery('#section_admin_bar').show(); jQuery('#section_admin_bar .section_title').trigger('focus');
123
 
294
  if(element == 1){array="";}
295
  jQuery('#ag_add_adminmenu_json').val(array);
296
 
297
+
298
+ /*Serialize colors*/
299
+ var array = "{";
300
+ var firstElement = true;
301
+ var topMarker = "";
302
+ jQuery('input.color_picker').each(function(){
303
+ if(firstElement != true){
304
+ array += ", ";
305
+ }
306
+ array += "\"" + jQuery(this).attr('id') + "\" : ";
307
+ array += "\"" + jQuery(this).val() + "\"";
308
+ firstElement = false;
309
+ });
310
+ array += "}";
311
+ jQuery('#ag_colorizer_json').val(array);
312
+
313
  return true;
314
  });
315
  });
316
+
317
+ /*C O L O R I Z E R*/
318
+ function updateTargetColor(id, color){
319
+ switch(id)
320
+ {
321
+ case 'color_background':
322
+ jQuery('html, .wp-dialog').css({'background-color':color});
323
+ break;
324
+ case 'color_footer':
325
+ jQuery('#footer').css({'background':color});
326
+ break;
327
+ case 'color_header':
328
+ jQuery('#wphead').css({'background':color});
329
+ break;
330
+ case 'color_admin_menu_top_button_background':
331
+ jQuery('#adminmenu a.menu-top').css({'background':color});
332
+ break;
333
+ case 'color_admin_menu_submenu_background':
334
+ jQuery("#adminmenu li.wp-has-current-submenu").removeClass("wp-has-current-submenu");
335
+ jQuery('#adminmenu .wp-submenu a, #adminmenu li.wp-has-current-submenu .wp-submenu a').each(function(){
336
+ jQuery(this).css({'background':color});
337
+ });
338
+ break;
339
+ case 'color_admin_menu_font':
340
+ jQuery('#adminmenu, #adminmenu a, #adminmenu p').css({'color':color});
341
+ break;
342
+ case 'color_admin_menu_submenu_background_over':
343
+ //jQuery('#adminmenu .wp-submenu a:hover').css({'background':color});
344
+ break;
345
+ case 'color_font_content':
346
+ jQuery('#wpbody-content, #wpbody-content label, #wpbody-content p,#wpbody-content .form-table th, #wpbody-content .form-wrap label').css({'color':color});
347
+ break;
348
+ case 'color_font_header':
349
+ jQuery('#wphead, #wphead a').css({'color':color});
350
+ break;
351
+ case 'color_font_footer':
352
+ jQuery('#footer, #footer a').css({'color':color});
353
+ break;
354
+ default:
355
+ }
356
+ }
357
+ function updateColor(id,color){
358
+ jQuery("#"+id).css({'background-color':color});
359
+ jQuery("#"+id).val(color);
360
+ if(isDarker(color) == true){
361
+ jQuery("#"+id).css('color','#ffffff');
362
+ }else{
363
+ jQuery("#"+id).css('color','#000000');
364
+ }
365
+ updateTargetColor(id,color);
366
+ }
367
+ /*First load apply colours from fields*/
368
+
369
+ /*C O L O R I Z E R E N D*/
script/agca_farbtastic.js ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function isDarker(rgb){
2
+ var r=parseInt(rgb.substring(1,3));
3
+ var g=parseInt(rgb.substring(3,5));
4
+ var b=parseInt(rgb.substring(5));
5
+
6
+ r = r/255, g = g/255, b = b/255;
7
+ var max = Math.max(r, g, b), min = Math.min(r, g, b);
8
+ var h, s, v = max;
9
+
10
+ var d = max - min;
11
+ s = max == 0 ? 0 : d / max;
12
+
13
+ if(max == min){
14
+ h = 0; // achromatic
15
+ }else{
16
+ switch(max){
17
+ case r: h = (g - b) / d + (g < b ? 6 : 0); break;
18
+ case g: h = (b - r) / d + 2; break;
19
+ case b: h = (r - g) / d + 4; break;
20
+ }
21
+ h /= 6;
22
+ }
23
+ //return [h, s, v];
24
+ if(v < 0.5){
25
+ return true;
26
+ }else{
27
+ return false;
28
+ }
29
+ }
30
+
31
+ jQuery(document).ready(function() {
32
+
33
+ jQuery('.pick_color_button').click(function(e){
34
+ jQuery('#'+jQuery(this).attr('alt')).focus();
35
+ jQuery('#picker').css("left",e.pageX-100);
36
+ jQuery('#picker').css("top",e.pageY-100);
37
+ jQuery('#picker').show();
38
+ });
39
+ jQuery('.color_picker').click(function(){
40
+ jQuery('#picker').farbtastic('#'+jQuery(this).attr('id'));
41
+ });
42
+ jQuery('.color_picker').bind('keydown',function(){
43
+ updateColor(jQuery(this).attr('id'),jQuery(this).val())
44
+ });
45
+ jQuery('#picker').mouseleave(function(){
46
+ jQuery(this).hide();
47
+ });
48
+ jQuery('#picker').hide();
49
+ jQuery('.pick_color_button_clear').click(function(){
50
+ jQuery('#'+jQuery(this).attr('alt')).val("");
51
+ });
52
+ });
53
+
54
+ jQuery(document).ready(function() {
55
+ jQuery('#picker').farbtastic(function(color){
56
+ if(document.activeElement.id !=""){
57
+ updateColor(document.activeElement.id,color);
58
+ }
59
+ });
60
+ });
script/farbtastic.js ADDED
@@ -0,0 +1,346 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Farbtastic Color Picker 1.2
3
+ * © 2008 Steven Wittens
4
+ *
5
+ * This program is free software; you can redistribute it and/or modify
6
+ * it under the terms of the GNU General Public License as published by
7
+ * the Free Software Foundation; either version 2 of the License, or
8
+ * (at your option) any later version.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU General Public License
16
+ * along with this program; if not, write to the Free Software
17
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+ */
19
+
20
+ jQuery.fn.farbtastic = function (callback) {
21
+ jQuery.farbtastic(this, callback);
22
+ return this;
23
+ };
24
+
25
+ jQuery.farbtastic = function (container, callback) {
26
+ var container = jQuery(container).get(0);
27
+ return container.farbtastic || (container.farbtastic = new jQuery._farbtastic(container, callback));
28
+ }
29
+
30
+ jQuery._farbtastic = function (container, callback) {
31
+ // Store farbtastic object
32
+ var fb = this;
33
+
34
+ // Insert markup
35
+ jQuery(container).html('<div class="farbtastic"><div class="color"></div><div class="wheel"></div><div class="overlay"></div><div class="h-marker marker"></div><div class="sl-marker marker"></div></div>');
36
+ var e = jQuery('.farbtastic', container);
37
+ fb.wheel = jQuery('.wheel', container).get(0);
38
+ // Dimensions
39
+ fb.radius = 84;
40
+ fb.square = 100;
41
+ fb.width = 194;
42
+
43
+ // Fix background PNGs in IE6
44
+ if (navigator.appVersion.match(/MSIE [0-6]\./)) {
45
+ jQuery('*', e).each(function () {
46
+ if (this.currentStyle.backgroundImage != 'none') {
47
+ var image = this.currentStyle.backgroundImage;
48
+ image = this.currentStyle.backgroundImage.substring(5, image.length - 2);
49
+ jQuery(this).css({
50
+ 'backgroundImage': 'none',
51
+ 'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image + "')"
52
+ });
53
+ }
54
+ });
55
+ }
56
+
57
+ /**
58
+ * Link to the given element(s) or callback.
59
+ */
60
+ fb.linkTo = function (callback) {
61
+ // Unbind previous nodes
62
+ if (typeof fb.callback == 'object') {
63
+ jQuery(fb.callback).unbind('keyup', fb.updateValue);
64
+ }
65
+
66
+ // Reset color
67
+ fb.color = null;
68
+
69
+ // Bind callback or elements
70
+ if (typeof callback == 'function') {
71
+ fb.callback = callback;
72
+ }
73
+ else if (typeof callback == 'object' || typeof callback == 'string') {
74
+ fb.callback = jQuery(callback);
75
+ fb.callback.bind('keyup', fb.updateValue);
76
+ if (fb.callback.get(0).value) {
77
+ fb.setColor(fb.callback.get(0).value);
78
+ }
79
+ }
80
+ return this;
81
+ }
82
+ fb.updateValue = function (event) {
83
+ if (this.value && this.value != fb.color) {
84
+ fb.setColor(this.value);
85
+ }
86
+ }
87
+
88
+ /**
89
+ * Change color with HTML syntax #123456
90
+ */
91
+ fb.setColor = function (color) {
92
+ var unpack = fb.unpack(color);
93
+ if (fb.color != color && unpack) {
94
+ fb.color = color;
95
+ fb.rgb = unpack;
96
+ fb.hsl = fb.RGBToHSL(fb.rgb);
97
+ fb.updateDisplay();
98
+ }
99
+ return this;
100
+ }
101
+
102
+ /**
103
+ * Change color with HSL triplet [0..1, 0..1, 0..1]
104
+ */
105
+ fb.setHSL = function (hsl) {
106
+ fb.hsl = hsl;
107
+ fb.rgb = fb.HSLToRGB(hsl);
108
+ fb.color = fb.pack(fb.rgb);
109
+ fb.updateDisplay();
110
+ return this;
111
+ }
112
+
113
+ /////////////////////////////////////////////////////
114
+
115
+ /**
116
+ * Retrieve the coordinates of the given event relative to the center
117
+ * of the widget.
118
+ */
119
+ fb.widgetCoords = function (event) {
120
+ var x, y;
121
+ var el = event.target || event.srcElement;
122
+ var reference = fb.wheel;
123
+
124
+ if (typeof event.offsetX != 'undefined') {
125
+ // Use offset coordinates and find common offsetParent
126
+ var pos = { x: event.offsetX, y: event.offsetY };
127
+
128
+ // Send the coordinates upwards through the offsetParent chain.
129
+ var e = el;
130
+ while (e) {
131
+ e.mouseX = pos.x;
132
+ e.mouseY = pos.y;
133
+ pos.x += e.offsetLeft;
134
+ pos.y += e.offsetTop;
135
+ e = e.offsetParent;
136
+ }
137
+
138
+ // Look for the coordinates starting from the wheel widget.
139
+ var e = reference;
140
+ var offset = { x: 0, y: 0 }
141
+ while (e) {
142
+ if (typeof e.mouseX != 'undefined') {
143
+ x = e.mouseX - offset.x;
144
+ y = e.mouseY - offset.y;
145
+ break;
146
+ }
147
+ offset.x += e.offsetLeft;
148
+ offset.y += e.offsetTop;
149
+ e = e.offsetParent;
150
+ }
151
+
152
+ // Reset stored coordinates
153
+ e = el;
154
+ while (e) {
155
+ e.mouseX = undefined;
156
+ e.mouseY = undefined;
157
+ e = e.offsetParent;
158
+ }
159
+ }
160
+ else {
161
+ // Use absolute coordinates
162
+ var pos = fb.absolutePosition(reference);
163
+ x = (event.pageX || 0*(event.clientX + jQuery('html').get(0).scrollLeft)) - pos.x;
164
+ y = (event.pageY || 0*(event.clientY + jQuery('html').get(0).scrollTop)) - pos.y;
165
+ }
166
+ // Subtract distance to middle
167
+ return { x: x - fb.width / 2, y: y - fb.width / 2 };
168
+ }
169
+
170
+ /**
171
+ * Mousedown handler
172
+ */
173
+ fb.mousedown = function (event) {
174
+ // Capture mouse
175
+ if (!document.dragging) {
176
+ jQuery(document).bind('mousemove', fb.mousemove).bind('mouseup', fb.mouseup);
177
+ document.dragging = true;
178
+ }
179
+
180
+ // Check which area is being dragged
181
+ var pos = fb.widgetCoords(event);
182
+ fb.circleDrag = Math.max(Math.abs(pos.x), Math.abs(pos.y)) * 2 > fb.square;
183
+
184
+ // Process
185
+ fb.mousemove(event);
186
+ return false;
187
+ }
188
+
189
+ /**
190
+ * Mousemove handler
191
+ */
192
+ fb.mousemove = function (event) {
193
+ // Get coordinates relative to color picker center
194
+ var pos = fb.widgetCoords(event);
195
+
196
+ // Set new HSL parameters
197
+ if (fb.circleDrag) {
198
+ var hue = Math.atan2(pos.x, -pos.y) / 6.28;
199
+ if (hue < 0) hue += 1;
200
+ fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]);
201
+ }
202
+ else {
203
+ var sat = Math.max(0, Math.min(1, -(pos.x / fb.square) + .5));
204
+ var lum = Math.max(0, Math.min(1, -(pos.y / fb.square) + .5));
205
+ fb.setHSL([fb.hsl[0], sat, lum]);
206
+ }
207
+ return false;
208
+ }
209
+
210
+ /**
211
+ * Mouseup handler
212
+ */
213
+ fb.mouseup = function () {
214
+ // Uncapture mouse
215
+ jQuery(document).unbind('mousemove', fb.mousemove);
216
+ jQuery(document).unbind('mouseup', fb.mouseup);
217
+ document.dragging = false;
218
+ }
219
+
220
+ /**
221
+ * Update the markers and styles
222
+ */
223
+ fb.updateDisplay = function () {
224
+ // Markers
225
+ var angle = fb.hsl[0] * 6.28;
226
+ jQuery('.h-marker', e).css({
227
+ left: Math.round(Math.sin(angle) * fb.radius + fb.width / 2) + 'px',
228
+ top: Math.round(-Math.cos(angle) * fb.radius + fb.width / 2) + 'px'
229
+ });
230
+
231
+ jQuery('.sl-marker', e).css({
232
+ left: Math.round(fb.square * (.5 - fb.hsl[1]) + fb.width / 2) + 'px',
233
+ top: Math.round(fb.square * (.5 - fb.hsl[2]) + fb.width / 2) + 'px'
234
+ });
235
+
236
+ // Saturation/Luminance gradient
237
+ jQuery('.color', e).css('backgroundColor', fb.pack(fb.HSLToRGB([fb.hsl[0], 1, 0.5])));
238
+
239
+ // Linked elements or callback
240
+ if (typeof fb.callback == 'object') {
241
+ // Set background/foreground color
242
+ jQuery(fb.callback).css({
243
+ backgroundColor: fb.color,
244
+ color: fb.hsl[2] > 0.5 ? '#000' : '#fff'
245
+ });
246
+
247
+ // Change linked value
248
+ jQuery(fb.callback).each(function() {
249
+ if (this.value && this.value != fb.color) {
250
+ this.value = fb.color;
251
+ }
252
+ });
253
+ }
254
+ else if (typeof fb.callback == 'function') {
255
+ fb.callback.call(fb, fb.color);
256
+ }
257
+ //farbasticCallback(callback);
258
+ }
259
+
260
+ /**
261
+ * Get absolute position of element
262
+ */
263
+ fb.absolutePosition = function (el) {
264
+ var r = { x: el.offsetLeft, y: el.offsetTop };
265
+ // Resolve relative to offsetParent
266
+ if (el.offsetParent) {
267
+ var tmp = fb.absolutePosition(el.offsetParent);
268
+ r.x += tmp.x;
269
+ r.y += tmp.y;
270
+ }
271
+ return r;
272
+ };
273
+
274
+ /* Various color utility functions */
275
+ fb.pack = function (rgb) {
276
+ var r = Math.round(rgb[0] * 255);
277
+ var g = Math.round(rgb[1] * 255);
278
+ var b = Math.round(rgb[2] * 255);
279
+ return '#' + (r < 16 ? '0' : '') + r.toString(16) +
280
+ (g < 16 ? '0' : '') + g.toString(16) +
281
+ (b < 16 ? '0' : '') + b.toString(16);
282
+ }
283
+
284
+ fb.unpack = function (color) {
285
+ if (color.length == 7) {
286
+ return [parseInt('0x' + color.substring(1, 3)) / 255,
287
+ parseInt('0x' + color.substring(3, 5)) / 255,
288
+ parseInt('0x' + color.substring(5, 7)) / 255];
289
+ }
290
+ else if (color.length == 4) {
291
+ return [parseInt('0x' + color.substring(1, 2)) / 15,
292
+ parseInt('0x' + color.substring(2, 3)) / 15,
293
+ parseInt('0x' + color.substring(3, 4)) / 15];
294
+ }
295
+ }
296
+
297
+ fb.HSLToRGB = function (hsl) {
298
+ var m1, m2, r, g, b;
299
+ var h = hsl[0], s = hsl[1], l = hsl[2];
300
+ m2 = (l <= 0.5) ? l * (s + 1) : l + s - l*s;
301
+ m1 = l * 2 - m2;
302
+ return [this.hueToRGB(m1, m2, h+0.33333),
303
+ this.hueToRGB(m1, m2, h),
304
+ this.hueToRGB(m1, m2, h-0.33333)];
305
+ }
306
+
307
+ fb.hueToRGB = function (m1, m2, h) {
308
+ h = (h < 0) ? h + 1 : ((h > 1) ? h - 1 : h);
309
+ if (h * 6 < 1) return m1 + (m2 - m1) * h * 6;
310
+ if (h * 2 < 1) return m2;
311
+ if (h * 3 < 2) return m1 + (m2 - m1) * (0.66666 - h) * 6;
312
+ return m1;
313
+ }
314
+
315
+ fb.RGBToHSL = function (rgb) {
316
+ var min, max, delta, h, s, l;
317
+ var r = rgb[0], g = rgb[1], b = rgb[2];
318
+ min = Math.min(r, Math.min(g, b));
319
+ max = Math.max(r, Math.max(g, b));
320
+ delta = max - min;
321
+ l = (min + max) / 2;
322
+ s = 0;
323
+ if (l > 0 && l < 1) {
324
+ s = delta / (l < 0.5 ? (2 * l) : (2 - 2 * l));
325
+ }
326
+ h = 0;
327
+ if (delta > 0) {
328
+ if (max == r && max != g) h += (g - b) / delta;
329
+ if (max == g && max != b) h += (2 + (b - r) / delta);
330
+ if (max == b && max != r) h += (4 + (r - g) / delta);
331
+ h /= 6;
332
+ }
333
+ return [h, s, l];
334
+ }
335
+
336
+ // Install mousedown handler (the others are set on the document on-demand)
337
+ jQuery('*', e).mousedown(fb.mousedown);
338
+
339
+ // Init color
340
+ fb.setColor('#000000');
341
+
342
+ // Set linked elements/callback
343
+ if (callback) {
344
+ fb.linkTo(callback);
345
+ }
346
+ }
style/ag_style.css CHANGED
@@ -1,6 +1,9 @@
 
 
 
1
  #ag_main_menu {
2
  display:block;
3
- height:33px;
4
  border-bottom:3px solid green;
5
  }
6
  #ag_main_menu li{
@@ -87,9 +90,6 @@ td.ag_admin_menu_parent:hover{
87
  text-decoration:none;
88
  color:#444;
89
  }
90
- #adminmenu{
91
- display:none;
92
- }
93
  .noclass{
94
  display:none;
95
  }
1
+ body{
2
+ /*display:none;*/
3
+ }
4
  #ag_main_menu {
5
  display:block;
6
+ height:32px;
7
  border-bottom:3px solid green;
8
  }
9
  #ag_main_menu li{
90
  text-decoration:none;
91
  color:#444;
92
  }
 
 
 
93
  .noclass{
94
  display:none;
95
  }
style/agca_farbtastic.css ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ #picker{
2
+ width:195px;
3
+ position:absolute;
4
+ }
style/farbtastic.css ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Farbtastic Color Picker 1.2
3
+ * © 2008 Steven Wittens
4
+ *
5
+ * This program is free software; you can redistribute it and/or modify
6
+ * it under the terms of the GNU General Public License as published by
7
+ * the Free Software Foundation; either version 2 of the License, or
8
+ * (at your option) any later version.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU General Public License
16
+ * along with this program; if not, write to the Free Software
17
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+ */
19
+ .farbtastic {
20
+ position: relative;
21
+ }
22
+ .farbtastic * {
23
+ position: absolute;
24
+ cursor: crosshair;
25
+ }
26
+ .farbtastic, .farbtastic .wheel {
27
+ width: 195px;
28
+ height: 195px;
29
+ }
30
+ .farbtastic .color, .farbtastic .overlay {
31
+ top: 47px;
32
+ left: 47px;
33
+ width: 101px;
34
+ height: 101px;
35
+ }
36
+ .farbtastic .wheel {
37
+ background: url(wheel.png) no-repeat;
38
+ width: 195px;
39
+ height: 195px;
40
+ }
41
+ .farbtastic .overlay {
42
+ background: url(mask.png) no-repeat;
43
+ }
44
+ .farbtastic .marker {
45
+ width: 17px;
46
+ height: 17px;
47
+ margin: -8px 0 0 -8px;
48
+ overflow: hidden;
49
+ background: url(marker.png) no-repeat;
50
+ }
51
+
style/marker.png ADDED
Binary file
style/mask.png ADDED
Binary file
style/wheel.png ADDED
Binary file