Version Description
- Add: Ability to disable Gravatar avatars
- Add: Upload size limiter for Contributors & Subscribers
- Add: French, German, and Spanish translations
Download this release
Release Info
Developer | bangbay |
Plugin | ![]() |
Version | 1.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.5
- css/jquery.ui.slider.css +1141 -0
- css/wp-user-avatar.css +12 -3
- images/wp-user-avatar-150x150.png +0 -0
- images/wp-user-avatar-300x300.png +0 -0
- images/wp-user-avatar-32x32.png +0 -0
- images/wp-user-avatar-96x96.png +0 -0
- images/wp-user-avatar.png +0 -0
- includes/tinymce.php +47 -0
- includes/tinymce/editor_plugin.js +1 -0
- includes/tinymce/window.php +119 -0
- index.html +1 -0
- js/wp-user-avatar.js +1 -11
- lang/wp-user-avatar-de_DE.mo +0 -0
- lang/wp-user-avatar-de_DE.po +106 -0
- lang/wp-user-avatar-es_ES.mo +0 -0
- lang/wp-user-avatar-es_ES.po +106 -0
- lang/wp-user-avatar-fr_FR.mo +0 -0
- lang/wp-user-avatar-fr_FR.po +106 -0
- readme.txt +327 -29
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- uninstall.php +46 -0
- wp-user-avatar.php +971 -177
css/jquery.ui.slider.css
ADDED
@@ -0,0 +1,1141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*! jQuery UI - v1.10.0 - 2013-01-17
|
2 |
+
* http://jqueryui.com
|
3 |
+
* Includes: jquery.ui.core.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css
|
4 |
+
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
|
5 |
+
|
6 |
+
/* Layout helpers
|
7 |
+
----------------------------------*/
|
8 |
+
.ui-helper-hidden {
|
9 |
+
display: none;
|
10 |
+
}
|
11 |
+
.ui-helper-hidden-accessible {
|
12 |
+
border: 0;
|
13 |
+
clip: rect(0 0 0 0);
|
14 |
+
height: 1px;
|
15 |
+
margin: -1px;
|
16 |
+
overflow: hidden;
|
17 |
+
padding: 0;
|
18 |
+
position: absolute;
|
19 |
+
width: 1px;
|
20 |
+
}
|
21 |
+
.ui-helper-reset {
|
22 |
+
margin: 0;
|
23 |
+
padding: 0;
|
24 |
+
border: 0;
|
25 |
+
outline: 0;
|
26 |
+
line-height: 1.3;
|
27 |
+
text-decoration: none;
|
28 |
+
font-size: 100%;
|
29 |
+
list-style: none;
|
30 |
+
}
|
31 |
+
.ui-helper-clearfix:before,
|
32 |
+
.ui-helper-clearfix:after {
|
33 |
+
content: "";
|
34 |
+
display: table;
|
35 |
+
}
|
36 |
+
.ui-helper-clearfix:after {
|
37 |
+
clear: both;
|
38 |
+
}
|
39 |
+
.ui-helper-clearfix {
|
40 |
+
min-height: 0; /* support: IE7 */
|
41 |
+
}
|
42 |
+
.ui-helper-zfix {
|
43 |
+
width: 100%;
|
44 |
+
height: 100%;
|
45 |
+
top: 0;
|
46 |
+
left: 0;
|
47 |
+
position: absolute;
|
48 |
+
opacity: 0;
|
49 |
+
filter:Alpha(Opacity=0);
|
50 |
+
}
|
51 |
+
|
52 |
+
.ui-front {
|
53 |
+
z-index: 100;
|
54 |
+
}
|
55 |
+
|
56 |
+
|
57 |
+
/* Interaction Cues
|
58 |
+
----------------------------------*/
|
59 |
+
.ui-state-disabled {
|
60 |
+
cursor: default !important;
|
61 |
+
}
|
62 |
+
|
63 |
+
|
64 |
+
/* Icons
|
65 |
+
----------------------------------*/
|
66 |
+
|
67 |
+
/* states and images */
|
68 |
+
.ui-icon {
|
69 |
+
display: block;
|
70 |
+
text-indent: -99999px;
|
71 |
+
overflow: hidden;
|
72 |
+
background-repeat: no-repeat;
|
73 |
+
}
|
74 |
+
|
75 |
+
|
76 |
+
/* Misc visuals
|
77 |
+
----------------------------------*/
|
78 |
+
|
79 |
+
/* Overlays */
|
80 |
+
.ui-widget-overlay {
|
81 |
+
position: fixed;
|
82 |
+
top: 0;
|
83 |
+
left: 0;
|
84 |
+
width: 100%;
|
85 |
+
height: 100%;
|
86 |
+
}
|
87 |
+
|
88 |
+
.ui-accordion .ui-accordion-header {
|
89 |
+
display: block;
|
90 |
+
cursor: pointer;
|
91 |
+
position: relative;
|
92 |
+
margin-top: 2px;
|
93 |
+
padding: .5em .5em .5em .7em;
|
94 |
+
min-height: 0; /* support: IE7 */
|
95 |
+
}
|
96 |
+
.ui-accordion .ui-accordion-icons {
|
97 |
+
padding-left: 2.2em;
|
98 |
+
}
|
99 |
+
.ui-accordion .ui-accordion-noicons {
|
100 |
+
padding-left: .7em;
|
101 |
+
}
|
102 |
+
.ui-accordion .ui-accordion-icons .ui-accordion-icons {
|
103 |
+
padding-left: 2.2em;
|
104 |
+
}
|
105 |
+
.ui-accordion .ui-accordion-header .ui-accordion-header-icon {
|
106 |
+
position: absolute;
|
107 |
+
left: .5em;
|
108 |
+
top: 50%;
|
109 |
+
margin-top: -8px;
|
110 |
+
}
|
111 |
+
.ui-accordion .ui-accordion-content {
|
112 |
+
padding: 1em 2.2em;
|
113 |
+
border-top: 0;
|
114 |
+
overflow: auto;
|
115 |
+
}
|
116 |
+
|
117 |
+
.ui-autocomplete {
|
118 |
+
position: absolute;
|
119 |
+
top: 0;
|
120 |
+
left: 0;
|
121 |
+
cursor: default;
|
122 |
+
}
|
123 |
+
|
124 |
+
.ui-button {
|
125 |
+
display: inline-block;
|
126 |
+
position: relative;
|
127 |
+
padding: 0;
|
128 |
+
line-height: normal;
|
129 |
+
margin-right: .1em;
|
130 |
+
cursor: pointer;
|
131 |
+
vertical-align: middle;
|
132 |
+
text-align: center;
|
133 |
+
overflow: visible; /* removes extra width in IE */
|
134 |
+
}
|
135 |
+
.ui-button,
|
136 |
+
.ui-button:link,
|
137 |
+
.ui-button:visited,
|
138 |
+
.ui-button:hover,
|
139 |
+
.ui-button:active {
|
140 |
+
text-decoration: none;
|
141 |
+
}
|
142 |
+
/* to make room for the icon, a width needs to be set here */
|
143 |
+
.ui-button-icon-only {
|
144 |
+
width: 2.2em;
|
145 |
+
}
|
146 |
+
/* button elements seem to need a little more width */
|
147 |
+
button.ui-button-icon-only {
|
148 |
+
width: 2.4em;
|
149 |
+
}
|
150 |
+
.ui-button-icons-only {
|
151 |
+
width: 3.4em;
|
152 |
+
}
|
153 |
+
button.ui-button-icons-only {
|
154 |
+
width: 3.7em;
|
155 |
+
}
|
156 |
+
|
157 |
+
/* button text element */
|
158 |
+
.ui-button .ui-button-text {
|
159 |
+
display: block;
|
160 |
+
line-height: normal;
|
161 |
+
}
|
162 |
+
.ui-button-text-only .ui-button-text {
|
163 |
+
padding: .4em 1em;
|
164 |
+
}
|
165 |
+
.ui-button-icon-only .ui-button-text,
|
166 |
+
.ui-button-icons-only .ui-button-text {
|
167 |
+
padding: .4em;
|
168 |
+
text-indent: -9999999px;
|
169 |
+
}
|
170 |
+
.ui-button-text-icon-primary .ui-button-text,
|
171 |
+
.ui-button-text-icons .ui-button-text {
|
172 |
+
padding: .4em 1em .4em 2.1em;
|
173 |
+
}
|
174 |
+
.ui-button-text-icon-secondary .ui-button-text,
|
175 |
+
.ui-button-text-icons .ui-button-text {
|
176 |
+
padding: .4em 2.1em .4em 1em;
|
177 |
+
}
|
178 |
+
.ui-button-text-icons .ui-button-text {
|
179 |
+
padding-left: 2.1em;
|
180 |
+
padding-right: 2.1em;
|
181 |
+
}
|
182 |
+
/* no icon support for input elements, provide padding by default */
|
183 |
+
input.ui-button {
|
184 |
+
padding: .4em 1em;
|
185 |
+
}
|
186 |
+
|
187 |
+
/* button icon element(s) */
|
188 |
+
.ui-button-icon-only .ui-icon,
|
189 |
+
.ui-button-text-icon-primary .ui-icon,
|
190 |
+
.ui-button-text-icon-secondary .ui-icon,
|
191 |
+
.ui-button-text-icons .ui-icon,
|
192 |
+
.ui-button-icons-only .ui-icon {
|
193 |
+
position: absolute;
|
194 |
+
top: 50%;
|
195 |
+
margin-top: -8px;
|
196 |
+
}
|
197 |
+
.ui-button-icon-only .ui-icon {
|
198 |
+
left: 50%;
|
199 |
+
margin-left: -8px;
|
200 |
+
}
|
201 |
+
.ui-button-text-icon-primary .ui-button-icon-primary,
|
202 |
+
.ui-button-text-icons .ui-button-icon-primary,
|
203 |
+
.ui-button-icons-only .ui-button-icon-primary {
|
204 |
+
left: .5em;
|
205 |
+
}
|
206 |
+
.ui-button-text-icon-secondary .ui-button-icon-secondary,
|
207 |
+
.ui-button-text-icons .ui-button-icon-secondary,
|
208 |
+
.ui-button-icons-only .ui-button-icon-secondary {
|
209 |
+
right: .5em;
|
210 |
+
}
|
211 |
+
|
212 |
+
/* button sets */
|
213 |
+
.ui-buttonset {
|
214 |
+
margin-right: 7px;
|
215 |
+
}
|
216 |
+
.ui-buttonset .ui-button {
|
217 |
+
margin-left: 0;
|
218 |
+
margin-right: -.3em;
|
219 |
+
}
|
220 |
+
|
221 |
+
/* workarounds */
|
222 |
+
/* reset extra padding in Firefox, see h5bp.com/l */
|
223 |
+
input.ui-button::-moz-focus-inner,
|
224 |
+
button.ui-button::-moz-focus-inner {
|
225 |
+
border: 0;
|
226 |
+
padding: 0;
|
227 |
+
}
|
228 |
+
|
229 |
+
.ui-datepicker {
|
230 |
+
width: 17em;
|
231 |
+
padding: .2em .2em 0;
|
232 |
+
display: none;
|
233 |
+
}
|
234 |
+
.ui-datepicker .ui-datepicker-header {
|
235 |
+
position: relative;
|
236 |
+
padding: .2em 0;
|
237 |
+
}
|
238 |
+
.ui-datepicker .ui-datepicker-prev,
|
239 |
+
.ui-datepicker .ui-datepicker-next {
|
240 |
+
position: absolute;
|
241 |
+
top: 2px;
|
242 |
+
width: 1.8em;
|
243 |
+
height: 1.8em;
|
244 |
+
}
|
245 |
+
.ui-datepicker .ui-datepicker-prev-hover,
|
246 |
+
.ui-datepicker .ui-datepicker-next-hover {
|
247 |
+
top: 1px;
|
248 |
+
}
|
249 |
+
.ui-datepicker .ui-datepicker-prev {
|
250 |
+
left: 2px;
|
251 |
+
}
|
252 |
+
.ui-datepicker .ui-datepicker-next {
|
253 |
+
right: 2px;
|
254 |
+
}
|
255 |
+
.ui-datepicker .ui-datepicker-prev-hover {
|
256 |
+
left: 1px;
|
257 |
+
}
|
258 |
+
.ui-datepicker .ui-datepicker-next-hover {
|
259 |
+
right: 1px;
|
260 |
+
}
|
261 |
+
.ui-datepicker .ui-datepicker-prev span,
|
262 |
+
.ui-datepicker .ui-datepicker-next span {
|
263 |
+
display: block;
|
264 |
+
position: absolute;
|
265 |
+
left: 50%;
|
266 |
+
margin-left: -8px;
|
267 |
+
top: 50%;
|
268 |
+
margin-top: -8px;
|
269 |
+
}
|
270 |
+
.ui-datepicker .ui-datepicker-title {
|
271 |
+
margin: 0 2.3em;
|
272 |
+
line-height: 1.8em;
|
273 |
+
text-align: center;
|
274 |
+
}
|
275 |
+
.ui-datepicker .ui-datepicker-title select {
|
276 |
+
font-size: 1em;
|
277 |
+
margin: 1px 0;
|
278 |
+
}
|
279 |
+
.ui-datepicker select.ui-datepicker-month-year {
|
280 |
+
width: 100%;
|
281 |
+
}
|
282 |
+
.ui-datepicker select.ui-datepicker-month,
|
283 |
+
.ui-datepicker select.ui-datepicker-year {
|
284 |
+
width: 49%;
|
285 |
+
}
|
286 |
+
.ui-datepicker table {
|
287 |
+
width: 100%;
|
288 |
+
font-size: .9em;
|
289 |
+
border-collapse: collapse;
|
290 |
+
margin: 0 0 .4em;
|
291 |
+
}
|
292 |
+
.ui-datepicker th {
|
293 |
+
padding: .7em .3em;
|
294 |
+
text-align: center;
|
295 |
+
font-weight: bold;
|
296 |
+
border: 0;
|
297 |
+
}
|
298 |
+
.ui-datepicker td {
|
299 |
+
border: 0;
|
300 |
+
padding: 1px;
|
301 |
+
}
|
302 |
+
.ui-datepicker td span,
|
303 |
+
.ui-datepicker td a {
|
304 |
+
display: block;
|
305 |
+
padding: .2em;
|
306 |
+
text-align: right;
|
307 |
+
text-decoration: none;
|
308 |
+
}
|
309 |
+
.ui-datepicker .ui-datepicker-buttonpane {
|
310 |
+
background-image: none;
|
311 |
+
margin: .7em 0 0 0;
|
312 |
+
padding: 0 .2em;
|
313 |
+
border-left: 0;
|
314 |
+
border-right: 0;
|
315 |
+
border-bottom: 0;
|
316 |
+
}
|
317 |
+
.ui-datepicker .ui-datepicker-buttonpane button {
|
318 |
+
float: right;
|
319 |
+
margin: .5em .2em .4em;
|
320 |
+
cursor: pointer;
|
321 |
+
padding: .2em .6em .3em .6em;
|
322 |
+
width: auto;
|
323 |
+
overflow: visible;
|
324 |
+
}
|
325 |
+
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
|
326 |
+
float: left;
|
327 |
+
}
|
328 |
+
|
329 |
+
/* with multiple calendars */
|
330 |
+
.ui-datepicker.ui-datepicker-multi {
|
331 |
+
width: auto;
|
332 |
+
}
|
333 |
+
.ui-datepicker-multi .ui-datepicker-group {
|
334 |
+
float: left;
|
335 |
+
}
|
336 |
+
.ui-datepicker-multi .ui-datepicker-group table {
|
337 |
+
width: 95%;
|
338 |
+
margin: 0 auto .4em;
|
339 |
+
}
|
340 |
+
.ui-datepicker-multi-2 .ui-datepicker-group {
|
341 |
+
width: 50%;
|
342 |
+
}
|
343 |
+
.ui-datepicker-multi-3 .ui-datepicker-group {
|
344 |
+
width: 33.3%;
|
345 |
+
}
|
346 |
+
.ui-datepicker-multi-4 .ui-datepicker-group {
|
347 |
+
width: 25%;
|
348 |
+
}
|
349 |
+
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,
|
350 |
+
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
|
351 |
+
border-left-width: 0;
|
352 |
+
}
|
353 |
+
.ui-datepicker-multi .ui-datepicker-buttonpane {
|
354 |
+
clear: left;
|
355 |
+
}
|
356 |
+
.ui-datepicker-row-break {
|
357 |
+
clear: both;
|
358 |
+
width: 100%;
|
359 |
+
font-size: 0;
|
360 |
+
}
|
361 |
+
|
362 |
+
/* RTL support */
|
363 |
+
.ui-datepicker-rtl {
|
364 |
+
direction: rtl;
|
365 |
+
}
|
366 |
+
.ui-datepicker-rtl .ui-datepicker-prev {
|
367 |
+
right: 2px;
|
368 |
+
left: auto;
|
369 |
+
}
|
370 |
+
.ui-datepicker-rtl .ui-datepicker-next {
|
371 |
+
left: 2px;
|
372 |
+
right: auto;
|
373 |
+
}
|
374 |
+
.ui-datepicker-rtl .ui-datepicker-prev:hover {
|
375 |
+
right: 1px;
|
376 |
+
left: auto;
|
377 |
+
}
|
378 |
+
.ui-datepicker-rtl .ui-datepicker-next:hover {
|
379 |
+
left: 1px;
|
380 |
+
right: auto;
|
381 |
+
}
|
382 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane {
|
383 |
+
clear: right;
|
384 |
+
}
|
385 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button {
|
386 |
+
float: left;
|
387 |
+
}
|
388 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,
|
389 |
+
.ui-datepicker-rtl .ui-datepicker-group {
|
390 |
+
float: right;
|
391 |
+
}
|
392 |
+
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,
|
393 |
+
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
|
394 |
+
border-right-width: 0;
|
395 |
+
border-left-width: 1px;
|
396 |
+
}
|
397 |
+
|
398 |
+
.ui-dialog {
|
399 |
+
position: absolute;
|
400 |
+
top: 0;
|
401 |
+
left: 0;
|
402 |
+
padding: .2em;
|
403 |
+
outline: 0;
|
404 |
+
}
|
405 |
+
.ui-dialog .ui-dialog-titlebar {
|
406 |
+
padding: .4em 1em;
|
407 |
+
position: relative;
|
408 |
+
}
|
409 |
+
.ui-dialog .ui-dialog-title {
|
410 |
+
float: left;
|
411 |
+
margin: .1em 0;
|
412 |
+
white-space: nowrap;
|
413 |
+
width: 90%;
|
414 |
+
overflow: hidden;
|
415 |
+
text-overflow: ellipsis;
|
416 |
+
}
|
417 |
+
.ui-dialog .ui-dialog-titlebar-close {
|
418 |
+
position: absolute;
|
419 |
+
right: .3em;
|
420 |
+
top: 50%;
|
421 |
+
width: 21px;
|
422 |
+
margin: -10px 0 0 0;
|
423 |
+
padding: 1px;
|
424 |
+
height: 20px;
|
425 |
+
}
|
426 |
+
.ui-dialog .ui-dialog-content {
|
427 |
+
position: relative;
|
428 |
+
border: 0;
|
429 |
+
padding: .5em 1em;
|
430 |
+
background: none;
|
431 |
+
overflow: auto;
|
432 |
+
}
|
433 |
+
.ui-dialog .ui-dialog-buttonpane {
|
434 |
+
text-align: left;
|
435 |
+
border-width: 1px 0 0 0;
|
436 |
+
background-image: none;
|
437 |
+
margin-top: .5em;
|
438 |
+
padding: .3em 1em .5em .4em;
|
439 |
+
}
|
440 |
+
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
|
441 |
+
float: right;
|
442 |
+
}
|
443 |
+
.ui-dialog .ui-dialog-buttonpane button {
|
444 |
+
margin: .5em .4em .5em 0;
|
445 |
+
cursor: pointer;
|
446 |
+
}
|
447 |
+
.ui-dialog .ui-resizable-se {
|
448 |
+
width: 12px;
|
449 |
+
height: 12px;
|
450 |
+
right: -5px;
|
451 |
+
bottom: -5px;
|
452 |
+
background-position: 16px 16px;
|
453 |
+
}
|
454 |
+
.ui-draggable .ui-dialog-titlebar {
|
455 |
+
cursor: move;
|
456 |
+
}
|
457 |
+
|
458 |
+
.ui-menu {
|
459 |
+
list-style: none;
|
460 |
+
padding: 2px;
|
461 |
+
margin: 0;
|
462 |
+
display: block;
|
463 |
+
outline: none;
|
464 |
+
}
|
465 |
+
.ui-menu .ui-menu {
|
466 |
+
margin-top: -3px;
|
467 |
+
position: absolute;
|
468 |
+
}
|
469 |
+
.ui-menu .ui-menu-item {
|
470 |
+
margin: 0;
|
471 |
+
padding: 0;
|
472 |
+
width: 100%;
|
473 |
+
}
|
474 |
+
.ui-menu .ui-menu-divider {
|
475 |
+
margin: 5px -2px 5px -2px;
|
476 |
+
height: 0;
|
477 |
+
font-size: 0;
|
478 |
+
line-height: 0;
|
479 |
+
border-width: 1px 0 0 0;
|
480 |
+
}
|
481 |
+
.ui-menu .ui-menu-item a {
|
482 |
+
text-decoration: none;
|
483 |
+
display: block;
|
484 |
+
padding: 2px .4em;
|
485 |
+
line-height: 1.5;
|
486 |
+
min-height: 0; /* support: IE7 */
|
487 |
+
font-weight: normal;
|
488 |
+
}
|
489 |
+
.ui-menu .ui-menu-item a.ui-state-focus,
|
490 |
+
.ui-menu .ui-menu-item a.ui-state-active {
|
491 |
+
font-weight: normal;
|
492 |
+
margin: -1px;
|
493 |
+
}
|
494 |
+
|
495 |
+
.ui-menu .ui-state-disabled {
|
496 |
+
font-weight: normal;
|
497 |
+
margin: .4em 0 .2em;
|
498 |
+
line-height: 1.5;
|
499 |
+
}
|
500 |
+
.ui-menu .ui-state-disabled a {
|
501 |
+
cursor: default;
|
502 |
+
}
|
503 |
+
|
504 |
+
/* icon support */
|
505 |
+
.ui-menu-icons {
|
506 |
+
position: relative;
|
507 |
+
}
|
508 |
+
.ui-menu-icons .ui-menu-item a {
|
509 |
+
position: relative;
|
510 |
+
padding-left: 2em;
|
511 |
+
}
|
512 |
+
|
513 |
+
/* left-aligned */
|
514 |
+
.ui-menu .ui-icon {
|
515 |
+
position: absolute;
|
516 |
+
top: .2em;
|
517 |
+
left: .2em;
|
518 |
+
}
|
519 |
+
|
520 |
+
/* right-aligned */
|
521 |
+
.ui-menu .ui-menu-icon {
|
522 |
+
position: static;
|
523 |
+
float: right;
|
524 |
+
}
|
525 |
+
|
526 |
+
.ui-progressbar {
|
527 |
+
height: 2em;
|
528 |
+
text-align: left;
|
529 |
+
overflow: hidden;
|
530 |
+
}
|
531 |
+
.ui-progressbar .ui-progressbar-value {
|
532 |
+
margin: -1px;
|
533 |
+
height: 100%;
|
534 |
+
}
|
535 |
+
.ui-progressbar .ui-progressbar-overlay {
|
536 |
+
height: 100%;
|
537 |
+
filter: alpha(opacity=25);
|
538 |
+
opacity: 0.25;
|
539 |
+
}
|
540 |
+
.ui-progressbar-indeterminate .ui-progressbar-value {
|
541 |
+
background-image: none;
|
542 |
+
}
|
543 |
+
|
544 |
+
.ui-resizable {
|
545 |
+
position: relative;
|
546 |
+
}
|
547 |
+
.ui-resizable-handle {
|
548 |
+
position: absolute;
|
549 |
+
font-size: 0.1px;
|
550 |
+
display: block;
|
551 |
+
}
|
552 |
+
.ui-resizable-disabled .ui-resizable-handle,
|
553 |
+
.ui-resizable-autohide .ui-resizable-handle {
|
554 |
+
display: none;
|
555 |
+
}
|
556 |
+
.ui-resizable-n {
|
557 |
+
cursor: n-resize;
|
558 |
+
height: 7px;
|
559 |
+
width: 100%;
|
560 |
+
top: -5px;
|
561 |
+
left: 0;
|
562 |
+
}
|
563 |
+
.ui-resizable-s {
|
564 |
+
cursor: s-resize;
|
565 |
+
height: 7px;
|
566 |
+
width: 100%;
|
567 |
+
bottom: -5px;
|
568 |
+
left: 0;
|
569 |
+
}
|
570 |
+
.ui-resizable-e {
|
571 |
+
cursor: e-resize;
|
572 |
+
width: 7px;
|
573 |
+
right: -5px;
|
574 |
+
top: 0;
|
575 |
+
height: 100%;
|
576 |
+
}
|
577 |
+
.ui-resizable-w {
|
578 |
+
cursor: w-resize;
|
579 |
+
width: 7px;
|
580 |
+
left: -5px;
|
581 |
+
top: 0;
|
582 |
+
height: 100%;
|
583 |
+
}
|
584 |
+
.ui-resizable-se {
|
585 |
+
cursor: se-resize;
|
586 |
+
width: 12px;
|
587 |
+
height: 12px;
|
588 |
+
right: 1px;
|
589 |
+
bottom: 1px;
|
590 |
+
}
|
591 |
+
.ui-resizable-sw {
|
592 |
+
cursor: sw-resize;
|
593 |
+
width: 9px;
|
594 |
+
height: 9px;
|
595 |
+
left: -5px;
|
596 |
+
bottom: -5px;
|
597 |
+
}
|
598 |
+
.ui-resizable-nw {
|
599 |
+
cursor: nw-resize;
|
600 |
+
width: 9px;
|
601 |
+
height: 9px;
|
602 |
+
left: -5px;
|
603 |
+
top: -5px;
|
604 |
+
}
|
605 |
+
.ui-resizable-ne {
|
606 |
+
cursor: ne-resize;
|
607 |
+
width: 9px;
|
608 |
+
height: 9px;
|
609 |
+
right: -5px;
|
610 |
+
top: -5px;
|
611 |
+
}
|
612 |
+
|
613 |
+
.ui-selectable-helper {
|
614 |
+
position: absolute;
|
615 |
+
z-index: 100;
|
616 |
+
border: 1px dotted black;
|
617 |
+
}
|
618 |
+
|
619 |
+
.ui-slider {
|
620 |
+
position: relative;
|
621 |
+
text-align: left;
|
622 |
+
}
|
623 |
+
.ui-slider .ui-slider-handle {
|
624 |
+
position: absolute;
|
625 |
+
z-index: 2;
|
626 |
+
width: 1.2em;
|
627 |
+
height: 1.2em;
|
628 |
+
background: #555;
|
629 |
+
cursor: default;
|
630 |
+
outline: none;
|
631 |
+
}
|
632 |
+
.ui-slider .ui-slider-range {
|
633 |
+
position: absolute;
|
634 |
+
z-index: 1;
|
635 |
+
font-size: .7em;
|
636 |
+
display: block;
|
637 |
+
border: 0;
|
638 |
+
background-position: 0 0;
|
639 |
+
}
|
640 |
+
|
641 |
+
/* For IE8 - See #6727 */
|
642 |
+
.ui-slider.ui-state-disabled .ui-slider-handle,
|
643 |
+
.ui-slider.ui-state-disabled .ui-slider-range {
|
644 |
+
filter: inherit;
|
645 |
+
}
|
646 |
+
|
647 |
+
.ui-slider-horizontal {
|
648 |
+
height: .8em;
|
649 |
+
}
|
650 |
+
.ui-slider-horizontal .ui-slider-handle {
|
651 |
+
top: -.3em;
|
652 |
+
margin-left: -.6em;
|
653 |
+
}
|
654 |
+
.ui-slider-horizontal .ui-slider-range {
|
655 |
+
top: 0;
|
656 |
+
height: 100%;
|
657 |
+
}
|
658 |
+
.ui-slider-horizontal .ui-slider-range-min {
|
659 |
+
left: 0;
|
660 |
+
}
|
661 |
+
.ui-slider-horizontal .ui-slider-range-max {
|
662 |
+
right: 0;
|
663 |
+
}
|
664 |
+
|
665 |
+
.ui-slider-vertical {
|
666 |
+
width: .8em;
|
667 |
+
height: 100px;
|
668 |
+
}
|
669 |
+
.ui-slider-vertical .ui-slider-handle {
|
670 |
+
left: -.3em;
|
671 |
+
margin-left: 0;
|
672 |
+
margin-bottom: -.6em;
|
673 |
+
}
|
674 |
+
.ui-slider-vertical .ui-slider-range {
|
675 |
+
left: 0;
|
676 |
+
width: 100%;
|
677 |
+
}
|
678 |
+
.ui-slider-vertical .ui-slider-range-min {
|
679 |
+
bottom: 0;
|
680 |
+
}
|
681 |
+
.ui-slider-vertical .ui-slider-range-max {
|
682 |
+
top: 0;
|
683 |
+
}
|
684 |
+
|
685 |
+
.ui-spinner {
|
686 |
+
position: relative;
|
687 |
+
display: inline-block;
|
688 |
+
overflow: hidden;
|
689 |
+
padding: 0;
|
690 |
+
vertical-align: middle;
|
691 |
+
}
|
692 |
+
.ui-spinner-input {
|
693 |
+
border: none;
|
694 |
+
background: none;
|
695 |
+
color: inherit;
|
696 |
+
padding: 0;
|
697 |
+
margin: .2em 0;
|
698 |
+
vertical-align: middle;
|
699 |
+
margin-left: .4em;
|
700 |
+
margin-right: 22px;
|
701 |
+
}
|
702 |
+
.ui-spinner-button {
|
703 |
+
width: 16px;
|
704 |
+
height: 50%;
|
705 |
+
font-size: .5em;
|
706 |
+
padding: 0;
|
707 |
+
margin: 0;
|
708 |
+
text-align: center;
|
709 |
+
position: absolute;
|
710 |
+
cursor: default;
|
711 |
+
display: block;
|
712 |
+
overflow: hidden;
|
713 |
+
right: 0;
|
714 |
+
}
|
715 |
+
/* more specificity required here to overide default borders */
|
716 |
+
.ui-spinner a.ui-spinner-button {
|
717 |
+
border-top: none;
|
718 |
+
border-bottom: none;
|
719 |
+
border-right: none;
|
720 |
+
}
|
721 |
+
/* vertical centre icon */
|
722 |
+
.ui-spinner .ui-icon {
|
723 |
+
position: absolute;
|
724 |
+
margin-top: -8px;
|
725 |
+
top: 50%;
|
726 |
+
left: 0;
|
727 |
+
}
|
728 |
+
.ui-spinner-up {
|
729 |
+
top: 0;
|
730 |
+
}
|
731 |
+
.ui-spinner-down {
|
732 |
+
bottom: 0;
|
733 |
+
}
|
734 |
+
|
735 |
+
/* TR overrides */
|
736 |
+
.ui-spinner .ui-icon-triangle-1-s {
|
737 |
+
/* need to fix icons sprite */
|
738 |
+
background-position: -65px -16px;
|
739 |
+
}
|
740 |
+
|
741 |
+
.ui-tabs {
|
742 |
+
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
743 |
+
padding: .2em;
|
744 |
+
}
|
745 |
+
.ui-tabs .ui-tabs-nav {
|
746 |
+
margin: 0;
|
747 |
+
padding: .2em .2em 0;
|
748 |
+
}
|
749 |
+
.ui-tabs .ui-tabs-nav li {
|
750 |
+
list-style: none;
|
751 |
+
float: left;
|
752 |
+
position: relative;
|
753 |
+
top: 0;
|
754 |
+
margin: 1px .2em 0 0;
|
755 |
+
border-bottom: 0;
|
756 |
+
padding: 0;
|
757 |
+
white-space: nowrap;
|
758 |
+
}
|
759 |
+
.ui-tabs .ui-tabs-nav li a {
|
760 |
+
float: left;
|
761 |
+
padding: .5em 1em;
|
762 |
+
text-decoration: none;
|
763 |
+
}
|
764 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
|
765 |
+
margin-bottom: -1px;
|
766 |
+
padding-bottom: 1px;
|
767 |
+
}
|
768 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-active a,
|
769 |
+
.ui-tabs .ui-tabs-nav li.ui-state-disabled a,
|
770 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-loading a {
|
771 |
+
cursor: text;
|
772 |
+
}
|
773 |
+
.ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
|
774 |
+
.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a {
|
775 |
+
cursor: pointer;
|
776 |
+
}
|
777 |
+
.ui-tabs .ui-tabs-panel {
|
778 |
+
display: block;
|
779 |
+
border-width: 0;
|
780 |
+
padding: 1em 1.4em;
|
781 |
+
background: none;
|
782 |
+
}
|
783 |
+
|
784 |
+
.ui-tooltip {
|
785 |
+
padding: 8px;
|
786 |
+
position: absolute;
|
787 |
+
z-index: 9999;
|
788 |
+
max-width: 300px;
|
789 |
+
-webkit-box-shadow: 0 0 5px #aaa;
|
790 |
+
box-shadow: 0 0 5px #aaa;
|
791 |
+
}
|
792 |
+
body .ui-tooltip {
|
793 |
+
border-width: 2px;
|
794 |
+
}
|
795 |
+
|
796 |
+
/* Component containers
|
797 |
+
----------------------------------*/
|
798 |
+
.ui-widget {
|
799 |
+
font-family: Verdana,Arial,sans-serif/*{ffDefault}*/;
|
800 |
+
font-size: 1.1em/*{fsDefault}*/;
|
801 |
+
}
|
802 |
+
.ui-widget .ui-widget {
|
803 |
+
font-size: 1em;
|
804 |
+
}
|
805 |
+
.ui-widget input,
|
806 |
+
.ui-widget select,
|
807 |
+
.ui-widget textarea,
|
808 |
+
.ui-widget button {
|
809 |
+
font-family: Verdana,Arial,sans-serif/*{ffDefault}*/;
|
810 |
+
font-size: 1em;
|
811 |
+
}
|
812 |
+
.ui-widget-content {
|
813 |
+
border: 1px solid #aaaaaa/*{borderColorContent}*/;
|
814 |
+
color: #222222/*{fcContent}*/;
|
815 |
+
}
|
816 |
+
.ui-widget-content a {
|
817 |
+
color: #222222/*{fcContent}*/;
|
818 |
+
}
|
819 |
+
.ui-widget-header {
|
820 |
+
border: 1px solid #aaaaaa/*{borderColorHeader}*/;
|
821 |
+
color: #222222/*{fcHeader}*/;
|
822 |
+
font-weight: bold;
|
823 |
+
}
|
824 |
+
.ui-widget-header a {
|
825 |
+
color: #222222/*{fcHeader}*/;
|
826 |
+
}
|
827 |
+
|
828 |
+
/* Interaction states
|
829 |
+
----------------------------------*/
|
830 |
+
.ui-state-default,
|
831 |
+
.ui-widget-content .ui-state-default,
|
832 |
+
.ui-widget-header .ui-state-default {
|
833 |
+
border: 1px solid #d3d3d3/*{borderColorDefault}*/;
|
834 |
+
font-weight: normal/*{fwDefault}*/;
|
835 |
+
color: #555555/*{fcDefault}*/;
|
836 |
+
}
|
837 |
+
.ui-state-default a,
|
838 |
+
.ui-state-default a:link,
|
839 |
+
.ui-state-default a:visited {
|
840 |
+
color: #555555/*{fcDefault}*/;
|
841 |
+
text-decoration: none;
|
842 |
+
}
|
843 |
+
.ui-state-hover,
|
844 |
+
.ui-widget-content .ui-state-hover,
|
845 |
+
.ui-widget-header .ui-state-hover,
|
846 |
+
.ui-state-focus,
|
847 |
+
.ui-widget-content .ui-state-focus,
|
848 |
+
.ui-widget-header .ui-state-focus {
|
849 |
+
border: 1px solid #999999/*{borderColorHover}*/;
|
850 |
+
font-weight: normal/*{fwDefault}*/;
|
851 |
+
color: #212121/*{fcHover}*/;
|
852 |
+
}
|
853 |
+
.ui-state-hover a,
|
854 |
+
.ui-state-hover a:hover,
|
855 |
+
.ui-state-hover a:link,
|
856 |
+
.ui-state-hover a:visited {
|
857 |
+
color: #212121/*{fcHover}*/;
|
858 |
+
text-decoration: none;
|
859 |
+
}
|
860 |
+
.ui-state-active,
|
861 |
+
.ui-widget-content .ui-state-active,
|
862 |
+
.ui-widget-header .ui-state-active {
|
863 |
+
border: 1px solid #aaaaaa/*{borderColorActive}*/;
|
864 |
+
font-weight: normal/*{fwDefault}*/;
|
865 |
+
color: #212121/*{fcActive}*/;
|
866 |
+
}
|
867 |
+
.ui-state-active a,
|
868 |
+
.ui-state-active a:link,
|
869 |
+
.ui-state-active a:visited {
|
870 |
+
color: #212121/*{fcActive}*/;
|
871 |
+
text-decoration: none;
|
872 |
+
}
|
873 |
+
|
874 |
+
/* Interaction Cues
|
875 |
+
----------------------------------*/
|
876 |
+
.ui-state-highlight,
|
877 |
+
.ui-widget-content .ui-state-highlight,
|
878 |
+
.ui-widget-header .ui-state-highlight {
|
879 |
+
border: 1px solid #fcefa1/*{borderColorHighlight}*/;
|
880 |
+
color: #363636/*{fcHighlight}*/;
|
881 |
+
}
|
882 |
+
.ui-state-highlight a,
|
883 |
+
.ui-widget-content .ui-state-highlight a,
|
884 |
+
.ui-widget-header .ui-state-highlight a {
|
885 |
+
color: #363636/*{fcHighlight}*/;
|
886 |
+
}
|
887 |
+
.ui-state-error,
|
888 |
+
.ui-widget-content .ui-state-error,
|
889 |
+
.ui-widget-header .ui-state-error {
|
890 |
+
border: 1px solid #cd0a0a/*{borderColorError}*/;
|
891 |
+
color: #cd0a0a/*{fcError}*/;
|
892 |
+
}
|
893 |
+
.ui-state-error a,
|
894 |
+
.ui-widget-content .ui-state-error a,
|
895 |
+
.ui-widget-header .ui-state-error a {
|
896 |
+
color: #cd0a0a/*{fcError}*/;
|
897 |
+
}
|
898 |
+
.ui-state-error-text,
|
899 |
+
.ui-widget-content .ui-state-error-text,
|
900 |
+
.ui-widget-header .ui-state-error-text {
|
901 |
+
color: #cd0a0a/*{fcError}*/;
|
902 |
+
}
|
903 |
+
.ui-priority-primary,
|
904 |
+
.ui-widget-content .ui-priority-primary,
|
905 |
+
.ui-widget-header .ui-priority-primary {
|
906 |
+
font-weight: bold;
|
907 |
+
}
|
908 |
+
.ui-priority-secondary,
|
909 |
+
.ui-widget-content .ui-priority-secondary,
|
910 |
+
.ui-widget-header .ui-priority-secondary {
|
911 |
+
opacity: .7;
|
912 |
+
filter:Alpha(Opacity=70);
|
913 |
+
font-weight: normal;
|
914 |
+
}
|
915 |
+
.ui-state-disabled,
|
916 |
+
.ui-widget-content .ui-state-disabled,
|
917 |
+
.ui-widget-header .ui-state-disabled {
|
918 |
+
opacity: .35;
|
919 |
+
filter:Alpha(Opacity=35);
|
920 |
+
background-image: none;
|
921 |
+
}
|
922 |
+
.ui-state-disabled .ui-icon {
|
923 |
+
filter:Alpha(Opacity=35); /* For IE8 - See #6059 */
|
924 |
+
}
|
925 |
+
|
926 |
+
/* Icons
|
927 |
+
----------------------------------*/
|
928 |
+
|
929 |
+
/* states and images */
|
930 |
+
.ui-icon {
|
931 |
+
width: 16px;
|
932 |
+
height: 16px;
|
933 |
+
background-position: 16px 16px;
|
934 |
+
}
|
935 |
+
|
936 |
+
/* positioning */
|
937 |
+
.ui-icon-carat-1-n { background-position: 0 0; }
|
938 |
+
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
939 |
+
.ui-icon-carat-1-e { background-position: -32px 0; }
|
940 |
+
.ui-icon-carat-1-se { background-position: -48px 0; }
|
941 |
+
.ui-icon-carat-1-s { background-position: -64px 0; }
|
942 |
+
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
943 |
+
.ui-icon-carat-1-w { background-position: -96px 0; }
|
944 |
+
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
945 |
+
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
946 |
+
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
947 |
+
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
948 |
+
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
949 |
+
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
950 |
+
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
951 |
+
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
952 |
+
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
953 |
+
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
954 |
+
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
955 |
+
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
956 |
+
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
957 |
+
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
958 |
+
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
959 |
+
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
960 |
+
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
961 |
+
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
962 |
+
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
963 |
+
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
964 |
+
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
965 |
+
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
966 |
+
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
967 |
+
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
968 |
+
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
969 |
+
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
970 |
+
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
971 |
+
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
972 |
+
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
973 |
+
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
974 |
+
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
975 |
+
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
976 |
+
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
977 |
+
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
978 |
+
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
979 |
+
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
980 |
+
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
981 |
+
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
982 |
+
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
983 |
+
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
984 |
+
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
985 |
+
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
986 |
+
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
987 |
+
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
988 |
+
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
989 |
+
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
990 |
+
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
991 |
+
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
992 |
+
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
993 |
+
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
994 |
+
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
995 |
+
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
996 |
+
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
997 |
+
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
998 |
+
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
999 |
+
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
1000 |
+
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
1001 |
+
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
1002 |
+
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
1003 |
+
.ui-icon-extlink { background-position: -32px -80px; }
|
1004 |
+
.ui-icon-newwin { background-position: -48px -80px; }
|
1005 |
+
.ui-icon-refresh { background-position: -64px -80px; }
|
1006 |
+
.ui-icon-shuffle { background-position: -80px -80px; }
|
1007 |
+
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
1008 |
+
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
1009 |
+
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
1010 |
+
.ui-icon-folder-open { background-position: -16px -96px; }
|
1011 |
+
.ui-icon-document { background-position: -32px -96px; }
|
1012 |
+
.ui-icon-document-b { background-position: -48px -96px; }
|
1013 |
+
.ui-icon-note { background-position: -64px -96px; }
|
1014 |
+
.ui-icon-mail-closed { background-position: -80px -96px; }
|
1015 |
+
.ui-icon-mail-open { background-position: -96px -96px; }
|
1016 |
+
.ui-icon-suitcase { background-position: -112px -96px; }
|
1017 |
+
.ui-icon-comment { background-position: -128px -96px; }
|
1018 |
+
.ui-icon-person { background-position: -144px -96px; }
|
1019 |
+
.ui-icon-print { background-position: -160px -96px; }
|
1020 |
+
.ui-icon-trash { background-position: -176px -96px; }
|
1021 |
+
.ui-icon-locked { background-position: -192px -96px; }
|
1022 |
+
.ui-icon-unlocked { background-position: -208px -96px; }
|
1023 |
+
.ui-icon-bookmark { background-position: -224px -96px; }
|
1024 |
+
.ui-icon-tag { background-position: -240px -96px; }
|
1025 |
+
.ui-icon-home { background-position: 0 -112px; }
|
1026 |
+
.ui-icon-flag { background-position: -16px -112px; }
|
1027 |
+
.ui-icon-calendar { background-position: -32px -112px; }
|
1028 |
+
.ui-icon-cart { background-position: -48px -112px; }
|
1029 |
+
.ui-icon-pencil { background-position: -64px -112px; }
|
1030 |
+
.ui-icon-clock { background-position: -80px -112px; }
|
1031 |
+
.ui-icon-disk { background-position: -96px -112px; }
|
1032 |
+
.ui-icon-calculator { background-position: -112px -112px; }
|
1033 |
+
.ui-icon-zoomin { background-position: -128px -112px; }
|
1034 |
+
.ui-icon-zoomout { background-position: -144px -112px; }
|
1035 |
+
.ui-icon-search { background-position: -160px -112px; }
|
1036 |
+
.ui-icon-wrench { background-position: -176px -112px; }
|
1037 |
+
.ui-icon-gear { background-position: -192px -112px; }
|
1038 |
+
.ui-icon-heart { background-position: -208px -112px; }
|
1039 |
+
.ui-icon-star { background-position: -224px -112px; }
|
1040 |
+
.ui-icon-link { background-position: -240px -112px; }
|
1041 |
+
.ui-icon-cancel { background-position: 0 -128px; }
|
1042 |
+
.ui-icon-plus { background-position: -16px -128px; }
|
1043 |
+
.ui-icon-plusthick { background-position: -32px -128px; }
|
1044 |
+
.ui-icon-minus { background-position: -48px -128px; }
|
1045 |
+
.ui-icon-minusthick { background-position: -64px -128px; }
|
1046 |
+
.ui-icon-close { background-position: -80px -128px; }
|
1047 |
+
.ui-icon-closethick { background-position: -96px -128px; }
|
1048 |
+
.ui-icon-key { background-position: -112px -128px; }
|
1049 |
+
.ui-icon-lightbulb { background-position: -128px -128px; }
|
1050 |
+
.ui-icon-scissors { background-position: -144px -128px; }
|
1051 |
+
.ui-icon-clipboard { background-position: -160px -128px; }
|
1052 |
+
.ui-icon-copy { background-position: -176px -128px; }
|
1053 |
+
.ui-icon-contact { background-position: -192px -128px; }
|
1054 |
+
.ui-icon-image { background-position: -208px -128px; }
|
1055 |
+
.ui-icon-video { background-position: -224px -128px; }
|
1056 |
+
.ui-icon-script { background-position: -240px -128px; }
|
1057 |
+
.ui-icon-alert { background-position: 0 -144px; }
|
1058 |
+
.ui-icon-info { background-position: -16px -144px; }
|
1059 |
+
.ui-icon-notice { background-position: -32px -144px; }
|
1060 |
+
.ui-icon-help { background-position: -48px -144px; }
|
1061 |
+
.ui-icon-check { background-position: -64px -144px; }
|
1062 |
+
.ui-icon-bullet { background-position: -80px -144px; }
|
1063 |
+
.ui-icon-radio-on { background-position: -96px -144px; }
|
1064 |
+
.ui-icon-radio-off { background-position: -112px -144px; }
|
1065 |
+
.ui-icon-pin-w { background-position: -128px -144px; }
|
1066 |
+
.ui-icon-pin-s { background-position: -144px -144px; }
|
1067 |
+
.ui-icon-play { background-position: 0 -160px; }
|
1068 |
+
.ui-icon-pause { background-position: -16px -160px; }
|
1069 |
+
.ui-icon-seek-next { background-position: -32px -160px; }
|
1070 |
+
.ui-icon-seek-prev { background-position: -48px -160px; }
|
1071 |
+
.ui-icon-seek-end { background-position: -64px -160px; }
|
1072 |
+
.ui-icon-seek-start { background-position: -80px -160px; }
|
1073 |
+
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
1074 |
+
.ui-icon-seek-first { background-position: -80px -160px; }
|
1075 |
+
.ui-icon-stop { background-position: -96px -160px; }
|
1076 |
+
.ui-icon-eject { background-position: -112px -160px; }
|
1077 |
+
.ui-icon-volume-off { background-position: -128px -160px; }
|
1078 |
+
.ui-icon-volume-on { background-position: -144px -160px; }
|
1079 |
+
.ui-icon-power { background-position: 0 -176px; }
|
1080 |
+
.ui-icon-signal-diag { background-position: -16px -176px; }
|
1081 |
+
.ui-icon-signal { background-position: -32px -176px; }
|
1082 |
+
.ui-icon-battery-0 { background-position: -48px -176px; }
|
1083 |
+
.ui-icon-battery-1 { background-position: -64px -176px; }
|
1084 |
+
.ui-icon-battery-2 { background-position: -80px -176px; }
|
1085 |
+
.ui-icon-battery-3 { background-position: -96px -176px; }
|
1086 |
+
.ui-icon-circle-plus { background-position: 0 -192px; }
|
1087 |
+
.ui-icon-circle-minus { background-position: -16px -192px; }
|
1088 |
+
.ui-icon-circle-close { background-position: -32px -192px; }
|
1089 |
+
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
1090 |
+
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
1091 |
+
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
1092 |
+
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
1093 |
+
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
1094 |
+
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
1095 |
+
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
1096 |
+
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
1097 |
+
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
1098 |
+
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
1099 |
+
.ui-icon-circle-check { background-position: -208px -192px; }
|
1100 |
+
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
1101 |
+
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
1102 |
+
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
1103 |
+
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
1104 |
+
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
1105 |
+
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
1106 |
+
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
1107 |
+
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
1108 |
+
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
1109 |
+
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
1110 |
+
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
1111 |
+
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
1112 |
+
|
1113 |
+
|
1114 |
+
/* Misc visuals
|
1115 |
+
----------------------------------*/
|
1116 |
+
|
1117 |
+
/* Corner radius */
|
1118 |
+
.ui-corner-all,
|
1119 |
+
.ui-corner-top,
|
1120 |
+
.ui-corner-left,
|
1121 |
+
.ui-corner-tl {
|
1122 |
+
border-top-left-radius: 4px/*{cornerRadius}*/;
|
1123 |
+
}
|
1124 |
+
.ui-corner-all,
|
1125 |
+
.ui-corner-top,
|
1126 |
+
.ui-corner-right,
|
1127 |
+
.ui-corner-tr {
|
1128 |
+
border-top-right-radius: 4px/*{cornerRadius}*/;
|
1129 |
+
}
|
1130 |
+
.ui-corner-all,
|
1131 |
+
.ui-corner-bottom,
|
1132 |
+
.ui-corner-left,
|
1133 |
+
.ui-corner-bl {
|
1134 |
+
border-bottom-left-radius: 4px/*{cornerRadius}*/;
|
1135 |
+
}
|
1136 |
+
.ui-corner-all,
|
1137 |
+
.ui-corner-bottom,
|
1138 |
+
.ui-corner-right,
|
1139 |
+
.ui-corner-br {
|
1140 |
+
border-bottom-right-radius: 4px/*{cornerRadius}*/;
|
1141 |
+
}
|
css/wp-user-avatar.css
CHANGED
@@ -1,3 +1,12 @@
|
|
1 |
-
|
2 |
-
#wp-user-avatar-message {
|
3 |
-
#wp-user-avatar-preview
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#wp-user-avatar-errors, #wp-user-avatar-message, #wp-readable-size-error { color: #c00; font-weight: 700; }
|
2 |
+
#wp-user-avatar-message, #wp-readable-size-error { display: none; }
|
3 |
+
#wp-user-avatar-preview, #wp-user-avatar-thumbnail { display: inline-block; text-align: center; vertical-align: top; }
|
4 |
+
#wp-user-avatar-preview { margin-right: 10px; }
|
5 |
+
#wp-user-avatar-preview img, #wp-user-avatar-thumbnail img { height: 96px; border: 1px solid #dfdfdf; display: block; }
|
6 |
+
.defaultavatarpicker #wp-user-avatar-preview { width: 32px; height: 32px; margin-right: 0; display: inline-block; overflow: hidden; vertical-align: middle; }
|
7 |
+
.defaultavatarpicker #wp-user-avatar-preview img { width: 32px; height: auto; border: 0; }
|
8 |
+
#edit-wp-user-avatar { padding-left: 15px; }
|
9 |
+
#edit-wp-user-avatar #remove-wp-user-avatar { margin-left: 10px; }
|
10 |
+
.hide-me, .wp-core-ui .hide-me { display: none; }
|
11 |
+
#wp-user-avatar-slider { width: 22.75em; }
|
12 |
+
.wpua_label { display: block; }
|
images/wp-user-avatar-150x150.png
ADDED
Binary file
|
images/wp-user-avatar-300x300.png
ADDED
Binary file
|
images/wp-user-avatar-32x32.png
ADDED
Binary file
|
images/wp-user-avatar-96x96.png
ADDED
Binary file
|
images/wp-user-avatar.png
ADDED
Binary file
|
includes/tinymce.php
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package WP User Avatar
|
4 |
+
* @version 1.5
|
5 |
+
*/
|
6 |
+
|
7 |
+
if(!defined('ABSPATH')){
|
8 |
+
die(__('You are not allowed to call this page directly.'));
|
9 |
+
@header('Content-Type:'.get_option('html_type').';charset='.get_option('blog_charset'));
|
10 |
+
}
|
11 |
+
|
12 |
+
function wpua_myplugin_addbuttons(){
|
13 |
+
// Don't bother doing this stuff if the current user lacks permissions
|
14 |
+
if(!current_user_can('edit_posts') && !current_user_can('edit_pages')){
|
15 |
+
return;
|
16 |
+
}
|
17 |
+
// Add only in Rich Editor mode
|
18 |
+
if(get_user_option('rich_editing') == 'true'){
|
19 |
+
add_filter('mce_external_plugins', 'wpua_add_myplugin_tinymce_plugin');
|
20 |
+
add_filter('mce_buttons', 'wpua_register_myplugin_button');
|
21 |
+
}
|
22 |
+
}
|
23 |
+
// init process for button control
|
24 |
+
add_action('init', 'wpua_myplugin_addbuttons');
|
25 |
+
|
26 |
+
|
27 |
+
function wpua_register_myplugin_button($buttons){
|
28 |
+
array_push($buttons, 'separator', 'wpUserAvatar');
|
29 |
+
return $buttons;
|
30 |
+
}
|
31 |
+
|
32 |
+
// Load the TinyMCE plugin : editor_plugin.js (wp2.5)
|
33 |
+
function wpua_add_myplugin_tinymce_plugin($plugin_array){
|
34 |
+
$plugin_array['wpUserAvatar'] = WPUA_URLPATH.'includes/tinymce/editor_plugin.js';
|
35 |
+
return $plugin_array;
|
36 |
+
}
|
37 |
+
|
38 |
+
// Call TinyMCE window content via admin-ajax
|
39 |
+
function wpua_ajax_tinymce(){
|
40 |
+
if(!current_user_can('edit_posts') && !current_user_can('edit_pages')){
|
41 |
+
die('You are not allowed to call this page directly.');
|
42 |
+
}
|
43 |
+
include_once(WPUA_ABSPATH.'includes/tinymce/window.php');
|
44 |
+
die();
|
45 |
+
}
|
46 |
+
add_action('wp_ajax_wp_user_avatar_tinymce', 'wpua_ajax_tinymce');
|
47 |
+
?>
|
includes/tinymce/editor_plugin.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(function(){tinymce.PluginManager.requireLangPack('wpUserAvatar');tinymce.create('tinymce.plugins.wpUserAvatar',{init:function(ed,url){ed.addCommand('mceWpUserAvatar',function(){ed.windowManager.open({file:ajaxurl+'?action=wp_user_avatar_tinymce',width:500,height:295,inline:1},{plugin_url:url})});ed.addButton('wpUserAvatar',{title:'Insert WP User Avatar',cmd:'mceWpUserAvatar',image:url+'/../../images/wp-user-avatar-32x32.png'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('wpUserAvatar',n.nodeName=='IMG')})},createControl:function(n,cm){return null},getInfo:function(){return{longname:'WP User Avatar',author:'Bangbay Siboliban',authorurl:'http://siboliban.org/',infourl:'http://wordpress.org/extend/plugins/wp-user-avatar/',version:"1.5"}}});tinymce.PluginManager.add('wpUserAvatar',tinymce.plugins.wpUserAvatar)})();
|
includes/tinymce/window.php
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package WP User Avatar
|
4 |
+
* @version 1.5
|
5 |
+
*/
|
6 |
+
|
7 |
+
if(!defined('ABSPATH')){
|
8 |
+
die(__('You are not allowed to call this page directly.'));
|
9 |
+
@header('Content-Type:'.get_option('html_type').';charset='.get_option('blog_charset'));
|
10 |
+
}
|
11 |
+
?>
|
12 |
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
13 |
+
<head>
|
14 |
+
<title>WP User Avatar</title>
|
15 |
+
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
|
16 |
+
<base target="_self" />
|
17 |
+
<script type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/jquery/jquery.js"></script>
|
18 |
+
<script type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
19 |
+
<script type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
|
20 |
+
<script type="text/javascript">
|
21 |
+
function insert_wp_user_avatar(){
|
22 |
+
// Custom shortcode values
|
23 |
+
var shortcode;
|
24 |
+
var user = document.getElementById('wp_user_avatar_user').value;
|
25 |
+
var size = document.getElementById('wp_user_avatar_size').value;
|
26 |
+
var size_number = document.getElementById('wp_user_avatar_size_number').value;
|
27 |
+
var align = document.getElementById('wp_user_avatar_align').value;
|
28 |
+
var link = document.getElementById('wp_user_avatar_link').value;
|
29 |
+
var link_external = document.getElementById('wp_user_avatar_link_external').value;
|
30 |
+
var target = document.getElementById('wp_user_avatar_target').value;
|
31 |
+
|
32 |
+
// Add tag to shortcode only if not blank
|
33 |
+
var user_tag = (user != '') ? ' user="' + user + '"' : '';
|
34 |
+
var size_tag = (size != '' && size_number == '') ? ' size="' + size + '"' : '';
|
35 |
+
size_tag = (size_number != '') ? ' size="' + size_number + '"' : size_tag;
|
36 |
+
var align_tag = (align != '') ? ' align="' + align + '"' : '';
|
37 |
+
var link_tag = (link != '' && link_external == '') ? ' link="' + link + '"' : '';
|
38 |
+
link_tag = (link_external != '') ? ' link="' + link_external + '"' : link_tag;
|
39 |
+
var target_tag = document.getElementById('wp_user_avatar_target').checked && (link_tag != '') ? ' target="' + target + '"' : '';
|
40 |
+
|
41 |
+
shortcode = "<p>[avatar" + user_tag + size_tag + align_tag + link_tag + target_tag + "]</p>";
|
42 |
+
|
43 |
+
if(window.tinyMCE){
|
44 |
+
window.tinyMCE.execInstanceCommand(window.tinyMCE.activeEditor.id, 'mceInsertContent', false, shortcode);
|
45 |
+
tinyMCEPopup.editor.execCommand('mceRepaint');
|
46 |
+
tinyMCEPopup.close();
|
47 |
+
}
|
48 |
+
return;
|
49 |
+
}
|
50 |
+
</script>
|
51 |
+
<style type="text/css">
|
52 |
+
form { background: #fff; border: 1px solid #eee; }
|
53 |
+
p, h4 { margin: 0; padding: 12px 0 0; }
|
54 |
+
h4.center { text-align: center; }
|
55 |
+
label { width: 90px; display: inline-block; text-align: right; }
|
56 |
+
.mceActionPanel { padding: 7px 0 12px; text-align: center; }
|
57 |
+
.mceActionPanel #insert { float: none; width: 180px; margin: 0 auto; }
|
58 |
+
</style>
|
59 |
+
</head>
|
60 |
+
<body id="link" class="wp-core-ui" onload="document.body.style.display='';" style="display:none;">
|
61 |
+
<form name="wpUserAvatar" action="#">
|
62 |
+
<p><label for="<?php esc_attr_e('wp_user_avatar_user'); ?>"><strong><?php _e('User', 'wp-user-avatar'); ?>:</strong></label>
|
63 |
+
<select id="<?php esc_attr_e('wp_user_avatar_user'); ?>" name="<?php esc_attr_e('wp_user_avatar_user'); ?>">
|
64 |
+
<option value=""></option>
|
65 |
+
<?php $users = get_users(); foreach($users as $user) : ?>
|
66 |
+
<option value="<?php echo $user->user_login; ?>"><?php echo $user->display_name; ?></option>
|
67 |
+
<?php endforeach; ?>
|
68 |
+
</select></p>
|
69 |
+
|
70 |
+
<h4 class="center"><?php _e('Choose a preset size or enter a number value', 'wp-user-avatar'); ?>.</h4>
|
71 |
+
|
72 |
+
<p>
|
73 |
+
<label for="<?php esc_attr_e('wp_user_avatar_size'); ?>"><strong><?php _e('Size'); ?>:</strong></label>
|
74 |
+
<select id="<?php esc_attr_e('wp_user_avatar_size'); ?>" name="<?php esc_attr_e('wp_user_avatar_size'); ?>">
|
75 |
+
<option value=""></option>
|
76 |
+
<option value="original"><?php _e('Original'); ?></option>
|
77 |
+
<option value="large"><?php _e('Large'); ?></option>
|
78 |
+
<option value="medium"><?php _e('Medium'); ?></option>
|
79 |
+
<option value="thumbnail"><?php _e('Thumbnail'); ?></option>
|
80 |
+
</select>
|
81 |
+
<?php _e('or', 'wp-user-avatar'); ?>
|
82 |
+
<input type="text" size="8" id="<?php esc_attr_e('wp_user_avatar_size_number'); ?>" name="<?php esc_attr_e('wp_user_avatar_size'); ?>" value="" />
|
83 |
+
</p>
|
84 |
+
|
85 |
+
<p><label for="<?php esc_attr_e('wp_user_avatar_align'); ?>"><strong><?php _e('Alignment'); ?>:</strong></label>
|
86 |
+
<select id="<?php esc_attr_e('wp_user_avatar_align'); ?>" name="<?php esc_attr_e('wp_user_avatar_align'); ?>">
|
87 |
+
<option value=""></option>
|
88 |
+
<option value="center"><?php _e('Center'); ?></option>
|
89 |
+
<option value="left"><?php _e('Left'); ?></option>
|
90 |
+
<option value="right"><?php _e('Right'); ?></option>
|
91 |
+
</select></p>
|
92 |
+
|
93 |
+
<h4 class="center"><?php _e('Link to image file, attachment page, or custom URL', 'wp-user-avatar'); ?>.</h4>
|
94 |
+
|
95 |
+
<p>
|
96 |
+
<label for="<?php esc_attr_e('wp_user_avatar_link'); ?>"><strong><?php _e('Link To'); ?>:</strong></label>
|
97 |
+
<select id="<?php esc_attr_e('wp_user_avatar_link'); ?>" name="<?php esc_attr_e('wp_user_avatar_link'); ?>">
|
98 |
+
<option value=""></option>
|
99 |
+
<option value="file"><?php _e('Image File'); ?></option>
|
100 |
+
<option value="attachment"><?php _e('Attachment Page'); ?></option>
|
101 |
+
</select>
|
102 |
+
</p>
|
103 |
+
|
104 |
+
<p>
|
105 |
+
<label for="<?php esc_attr_e('wp_user_avatar_link_external'); ?>"><?php _e('or', 'wp-user-avatar'); ?></label>
|
106 |
+
<input type="text" size="36" id="<?php esc_attr_e('wp_user_avatar_link_external'); ?>" name="<?php esc_attr_e('wp_user_avatar_link_external'); ?>" value="" />
|
107 |
+
</p>
|
108 |
+
|
109 |
+
<p>
|
110 |
+
<label for="<?php esc_attr_e('wp_user_avatar_target'); ?>"></label>
|
111 |
+
<input type="checkbox" id="<?php esc_attr_e('wp_user_avatar_target'); ?>" name="<?php esc_attr_e('wp_user_avatar_target'); ?>" value="_blank" /> <strong><?php _e('Open link in a new window'); ?></strong>
|
112 |
+
</p>
|
113 |
+
|
114 |
+
<div class="mceActionPanel">
|
115 |
+
<input type="submit" id="insert" class="button-primary" name="insert" value="<?php _e('Insert'); ?> <?php _e('WP User Avatar'); ?>" onclick="insert_wp_user_avatar();" />
|
116 |
+
</div>
|
117 |
+
</form>
|
118 |
+
</body>
|
119 |
+
</html>
|
index.html
CHANGED
@@ -0,0 +1 @@
|
|
|
1 |
+
<!-- Thanks for using WP User Avatar! -->
|
js/wp-user-avatar.js
CHANGED
@@ -1,11 +1 @@
|
|
1 |
-
function
|
2 |
-
jQuery('#wp-user-avatar', window.parent.document).val(attachment);
|
3 |
-
jQuery('#wp-user-avatar-preview', window.parent.document).find('img').attr('src', imageURL).attr('width', '96').removeAttr('height', '');
|
4 |
-
jQuery('#wp-user-avatar-message', window.parent.document).show();
|
5 |
-
jQuery('#remove-wp-user-avatar', window.parent.document).show();
|
6 |
-
if(typeof(wp) != 'undefined'){
|
7 |
-
wp.media.wpUserAvatar.frame().close()
|
8 |
-
} else {
|
9 |
-
window.parent.tb_remove();
|
10 |
-
}
|
11 |
-
}
|
1 |
+
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('5 1a(c,d,f){0.7.n={K:5(){r 0.7.u.x.j.o},O:5(a){t b=0.7.u.x;b.j.o=a;b.j.M=2(\'1h.l-1g\').B(\'C\').F(\'G\');H(b.j.o){S(b.j.o,b.j.M);2(\'#I\').L(\'i\')}},s:5(){H(3.8){r 3.8}3.8=0.7({v:\'Q\',1f:[1e 0.7.1d.1c({Y:d+": "+c})]});3.8.h(\'N\',5(){t a=3.v().K(\'m\');A=2(\'#0-4-6\').D();l=0.7.l(A);l.19();a.E(l?[l]:[])},3.8);3.8.h(\'18:17:p\',5(a){3.16(a,{Z:f})},3.8);3.8.v(\'Q\').h(\'p\',3.p);r 3.8},p:5(a){t b=0.7.u.x,m=3.K(\'m\').1b();0.7.n.O(m?m.A:-1)},X:5(){2(\'z\').h(\'i\',\'#E-0-4-6\',5(e){e.J();e.10();0.7.n.s().N()})}};2(0.7.n.X)}5 11(a,b){2(\'z\').h(\'i\',\'#E-0-4-6\',5(e){e.J();12(\'13 14 15: \'+a,b)})}5 S(a,b){2(\'#0-4-6\',9.g.k).D(a);2(\'#0-4-6-P\',9.g.k).B(\'C\').F(\'G\',b).q(\'V\',\'\').q(\'U\',\'\');2(\'#0-4-6-T\',9.g.k).w();2(\'#R-0-4-6\',9.g.k).w();2(\'#0-4-6-W\',9.g.k).y();2(\'#I\',9.g.k).L(\'i\');H(1i(0)!=\'1j\'){0.7.n.s().1k()}1l{9.g.1m()}}5 1n(a){2(\'z\').h(\'i\',\'#R-0-4-6\',5(e){e.J();2(3).y();2(\'#1o-0-4-6, #0-4-6-W\').y();2(\'#0-4-6-P\').B(\'C\').F(\'G\',a).q(\'V\',\'\').q(\'U\',\'\');2(\'#0-4-6\').D(\'\');2(\'#0-4-6-T\').w();2(\'#I\').L(\'i\')})}',62,87,'wp||jQuery|this|user|function|avatar|media|_frame|window|||||||parent|on|click|post|document|attachment|selection|wpUserAvatar|wpUserAvatarId|select|removeAttr|return|frame|var|view|state|show|settings|hide|body|id|find|img|val|add|attr|src|if|wp_user_avatar_radio|preventDefault|get|trigger|wpUserAvatarSrc|open|set|preview|library|remove|setWPUserAvatar|message|height|width|thumbnail|init|title|text|stopPropagation|openThickboxUploader|tb_show|WP|User|Avatar|createSelectToolbar|create|toolbar|fetch|openMediaUploader|single|Library|controller|new|states|info|div|typeof|undefined|close|else|tb_remove|removeWPUserAvatar|edit'.split('|'),0,{}))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lang/wp-user-avatar-de_DE.mo
ADDED
Binary file
|
lang/wp-user-avatar-de_DE.po
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|