Version Description
Download this release
Release Info
Developer | shinephp |
Plugin | User Role Editor |
Version | 4.34 |
Comparing to | |
See all releases |
Code changes from version 4.33 to 4.34
- css/images/animated-overlay.gif +0 -0
- css/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- css/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- css/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- css/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- css/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- css/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- css/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- css/images/ui-icons_222222_256x240.png +0 -0
- css/images/ui-icons_444444_256x240.png +0 -0
- css/images/ui-icons_454545_256x240.png +0 -0
- css/images/ui-icons_555555_256x240.png +0 -0
- css/images/{ui-icons_2e83ff_256x240.png → ui-icons_777620_256x240.png} +0 -0
- css/images/ui-icons_777777_256x240.png +0 -0
- css/images/ui-icons_888888_256x240.png +0 -0
- css/images/{ui-icons_cd0a0a_256x240.png → ui-icons_cc0000_256x240.png} +0 -0
- css/images/ui-icons_ffffff_256x240.png +0 -0
- css/jquery-ui.css +240 -2
- css/jquery-ui.min.css +3 -3
- includes/classes/ajax-processor.php +16 -2
- includes/classes/capabilities-groups-manager.php +6 -4
- includes/classes/grant-roles.php +34 -3
- includes/classes/ure-lib.php +4 -7
- includes/classes/user-role-editor.php +14 -11
- js/settings.js +3 -9
- js/ure-js.js +0 -11
- js/users-grant-roles.js +61 -1
- license.txt +1 -1
- readme.txt +12 -3
- user-role-editor.php +2 -2
css/images/animated-overlay.gif
DELETED
Binary file
|
css/images/ui-bg_flat_0_aaaaaa_40x100.png
DELETED
Binary file
|
css/images/ui-bg_flat_75_ffffff_40x100.png
DELETED
Binary file
|
css/images/ui-bg_glass_55_fbf9ee_1x400.png
DELETED
Binary file
|
css/images/ui-bg_glass_65_ffffff_1x400.png
DELETED
Binary file
|
css/images/ui-bg_glass_75_dadada_1x400.png
DELETED
Binary file
|
css/images/ui-bg_glass_75_e6e6e6_1x400.png
DELETED
Binary file
|
css/images/ui-bg_glass_95_fef1ec_1x400.png
DELETED
Binary file
|
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png
DELETED
Binary file
|
css/images/ui-icons_222222_256x240.png
DELETED
Binary file
|
css/images/ui-icons_444444_256x240.png
ADDED
Binary file
|
css/images/ui-icons_454545_256x240.png
DELETED
Binary file
|
css/images/ui-icons_555555_256x240.png
ADDED
Binary file
|
css/images/{ui-icons_2e83ff_256x240.png → ui-icons_777620_256x240.png}
RENAMED
Binary file
|
css/images/ui-icons_777777_256x240.png
ADDED
Binary file
|
css/images/ui-icons_888888_256x240.png
DELETED
Binary file
|
css/images/{ui-icons_cd0a0a_256x240.png → ui-icons_cc0000_256x240.png}
RENAMED
Binary file
|
css/images/ui-icons_ffffff_256x240.png
ADDED
Binary file
|
css/jquery-ui.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
/*! jQuery UI - v1.11.4 - 2017-
|
2 |
* http://jqueryui.com
|
3 |
-
* Includes: core.css, tabs.css, theme.css
|
4 |
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Arial%2CHelvetica%2Csans-serif&fsDefault=1em&fwDefault=normal&cornerRadius=3px&bgColorHeader=%23e9e9e9&bgTextureHeader=flat&borderColorHeader=%23dddddd&fcHeader=%23333333&iconColorHeader=%23444444&bgColorContent=%23ffffff&bgTextureContent=flat&borderColorContent=%23dddddd&fcContent=%23333333&iconColorContent=%23444444&bgColorDefault=%23f6f6f6&bgTextureDefault=flat&borderColorDefault=%23c5c5c5&fcDefault=%23454545&iconColorDefault=%23777777&bgColorHover=%23ededed&bgTextureHover=flat&borderColorHover=%23cccccc&fcHover=%232b2b2b&iconColorHover=%23555555&bgColorActive=%23ffffff&bgTextureActive=flat&borderColorActive=%23aaaaaa&fcActive=%23000000&iconColorActive=%23ffffff&bgColorHighlight=%23fffa90&bgTextureHighlight=flat&borderColorHighlight=%23dad55e&fcHighlight=%23777620&iconColorHighlight=%23777620&bgColorError=%23fddfdf&bgTextureError=flat&borderColorError=%23f1a899&fcError=%235f3f3f&iconColorError=%23cc0000&bgColorOverlay=%23aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=%23666666&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=5px&offsetTopShadow=0px&offsetLeftShadow=0px&cornerRadiusShadow=8px&bgImgOpacityHeader=&bgImgOpacityContent=&bgImgOpacityDefault=&bgImgOpacityHover=&bgImgOpacityActive=&bgImgOpacityHighlight=&bgImgOpacityError=
|
5 |
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
6 |
|
@@ -86,6 +86,244 @@
|
|
86 |
width: 100%;
|
87 |
height: 100%;
|
88 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
.ui-tabs {
|
90 |
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
91 |
padding: .2em;
|
1 |
+
/*! jQuery UI - v1.11.4 - 2017-05-22
|
2 |
* http://jqueryui.com
|
3 |
+
* Includes: core.css, draggable.css, resizable.css, button.css, dialog.css, tabs.css, theme.css
|
4 |
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Arial%2CHelvetica%2Csans-serif&fsDefault=1em&fwDefault=normal&cornerRadius=3px&bgColorHeader=%23e9e9e9&bgTextureHeader=flat&borderColorHeader=%23dddddd&fcHeader=%23333333&iconColorHeader=%23444444&bgColorContent=%23ffffff&bgTextureContent=flat&borderColorContent=%23dddddd&fcContent=%23333333&iconColorContent=%23444444&bgColorDefault=%23f6f6f6&bgTextureDefault=flat&borderColorDefault=%23c5c5c5&fcDefault=%23454545&iconColorDefault=%23777777&bgColorHover=%23ededed&bgTextureHover=flat&borderColorHover=%23cccccc&fcHover=%232b2b2b&iconColorHover=%23555555&bgColorActive=%23ffffff&bgTextureActive=flat&borderColorActive=%23aaaaaa&fcActive=%23000000&iconColorActive=%23ffffff&bgColorHighlight=%23fffa90&bgTextureHighlight=flat&borderColorHighlight=%23dad55e&fcHighlight=%23777620&iconColorHighlight=%23777620&bgColorError=%23fddfdf&bgTextureError=flat&borderColorError=%23f1a899&fcError=%235f3f3f&iconColorError=%23cc0000&bgColorOverlay=%23aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=%23666666&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=5px&offsetTopShadow=0px&offsetLeftShadow=0px&cornerRadiusShadow=8px&bgImgOpacityHeader=&bgImgOpacityContent=&bgImgOpacityDefault=&bgImgOpacityHover=&bgImgOpacityActive=&bgImgOpacityHighlight=&bgImgOpacityError=
|
5 |
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
6 |
|
86 |
width: 100%;
|
87 |
height: 100%;
|
88 |
}
|
89 |
+
.ui-draggable-handle {
|
90 |
+
-ms-touch-action: none;
|
91 |
+
touch-action: none;
|
92 |
+
}
|
93 |
+
.ui-resizable {
|
94 |
+
position: relative;
|
95 |
+
}
|
96 |
+
.ui-resizable-handle {
|
97 |
+
position: absolute;
|
98 |
+
font-size: 0.1px;
|
99 |
+
display: block;
|
100 |
+
-ms-touch-action: none;
|
101 |
+
touch-action: none;
|
102 |
+
}
|
103 |
+
.ui-resizable-disabled .ui-resizable-handle,
|
104 |
+
.ui-resizable-autohide .ui-resizable-handle {
|
105 |
+
display: none;
|
106 |
+
}
|
107 |
+
.ui-resizable-n {
|
108 |
+
cursor: n-resize;
|
109 |
+
height: 7px;
|
110 |
+
width: 100%;
|
111 |
+
top: -5px;
|
112 |
+
left: 0;
|
113 |
+
}
|
114 |
+
.ui-resizable-s {
|
115 |
+
cursor: s-resize;
|
116 |
+
height: 7px;
|
117 |
+
width: 100%;
|
118 |
+
bottom: -5px;
|
119 |
+
left: 0;
|
120 |
+
}
|
121 |
+
.ui-resizable-e {
|
122 |
+
cursor: e-resize;
|
123 |
+
width: 7px;
|
124 |
+
right: -5px;
|
125 |
+
top: 0;
|
126 |
+
height: 100%;
|
127 |
+
}
|
128 |
+
.ui-resizable-w {
|
129 |
+
cursor: w-resize;
|
130 |
+
width: 7px;
|
131 |
+
left: -5px;
|
132 |
+
top: 0;
|
133 |
+
height: 100%;
|
134 |
+
}
|
135 |
+
.ui-resizable-se {
|
136 |
+
cursor: se-resize;
|
137 |
+
width: 12px;
|
138 |
+
height: 12px;
|
139 |
+
right: 1px;
|
140 |
+
bottom: 1px;
|
141 |
+
}
|
142 |
+
.ui-resizable-sw {
|
143 |
+
cursor: sw-resize;
|
144 |
+
width: 9px;
|
145 |
+
height: 9px;
|
146 |
+
left: -5px;
|
147 |
+
bottom: -5px;
|
148 |
+
}
|
149 |
+
.ui-resizable-nw {
|
150 |
+
cursor: nw-resize;
|
151 |
+
width: 9px;
|
152 |
+
height: 9px;
|
153 |
+
left: -5px;
|
154 |
+
top: -5px;
|
155 |
+
}
|
156 |
+
.ui-resizable-ne {
|
157 |
+
cursor: ne-resize;
|
158 |
+
width: 9px;
|
159 |
+
height: 9px;
|
160 |
+
right: -5px;
|
161 |
+
top: -5px;
|
162 |
+
}
|
163 |
+
.ui-button {
|
164 |
+
display: inline-block;
|
165 |
+
position: relative;
|
166 |
+
padding: 0;
|
167 |
+
line-height: normal;
|
168 |
+
margin-right: .1em;
|
169 |
+
cursor: pointer;
|
170 |
+
vertical-align: middle;
|
171 |
+
text-align: center;
|
172 |
+
overflow: visible; /* removes extra width in IE */
|
173 |
+
}
|
174 |
+
.ui-button,
|
175 |
+
.ui-button:link,
|
176 |
+
.ui-button:visited,
|
177 |
+
.ui-button:hover,
|
178 |
+
.ui-button:active {
|
179 |
+
text-decoration: none;
|
180 |
+
}
|
181 |
+
/* to make room for the icon, a width needs to be set here */
|
182 |
+
.ui-button-icon-only {
|
183 |
+
width: 2.2em;
|
184 |
+
}
|
185 |
+
/* button elements seem to need a little more width */
|
186 |
+
button.ui-button-icon-only {
|
187 |
+
width: 2.4em;
|
188 |
+
}
|
189 |
+
.ui-button-icons-only {
|
190 |
+
width: 3.4em;
|
191 |
+
}
|
192 |
+
button.ui-button-icons-only {
|
193 |
+
width: 3.7em;
|
194 |
+
}
|
195 |
+
|
196 |
+
/* button text element */
|
197 |
+
.ui-button .ui-button-text {
|
198 |
+
display: block;
|
199 |
+
line-height: normal;
|
200 |
+
}
|
201 |
+
.ui-button-text-only .ui-button-text {
|
202 |
+
padding: .4em 1em;
|
203 |
+
}
|
204 |
+
.ui-button-icon-only .ui-button-text,
|
205 |
+
.ui-button-icons-only .ui-button-text {
|
206 |
+
padding: .4em;
|
207 |
+
text-indent: -9999999px;
|
208 |
+
}
|
209 |
+
.ui-button-text-icon-primary .ui-button-text,
|
210 |
+
.ui-button-text-icons .ui-button-text {
|
211 |
+
padding: .4em 1em .4em 2.1em;
|
212 |
+
}
|
213 |
+
.ui-button-text-icon-secondary .ui-button-text,
|
214 |
+
.ui-button-text-icons .ui-button-text {
|
215 |
+
padding: .4em 2.1em .4em 1em;
|
216 |
+
}
|
217 |
+
.ui-button-text-icons .ui-button-text {
|
218 |
+
padding-left: 2.1em;
|
219 |
+
padding-right: 2.1em;
|
220 |
+
}
|
221 |
+
/* no icon support for input elements, provide padding by default */
|
222 |
+
input.ui-button {
|
223 |
+
padding: .4em 1em;
|
224 |
+
}
|
225 |
+
|
226 |
+
/* button icon element(s) */
|
227 |
+
.ui-button-icon-only .ui-icon,
|
228 |
+
.ui-button-text-icon-primary .ui-icon,
|
229 |
+
.ui-button-text-icon-secondary .ui-icon,
|
230 |
+
.ui-button-text-icons .ui-icon,
|
231 |
+
.ui-button-icons-only .ui-icon {
|
232 |
+
position: absolute;
|
233 |
+
top: 50%;
|
234 |
+
margin-top: -8px;
|
235 |
+
}
|
236 |
+
.ui-button-icon-only .ui-icon {
|
237 |
+
left: 50%;
|
238 |
+
margin-left: -8px;
|
239 |
+
}
|
240 |
+
.ui-button-text-icon-primary .ui-button-icon-primary,
|
241 |
+
.ui-button-text-icons .ui-button-icon-primary,
|
242 |
+
.ui-button-icons-only .ui-button-icon-primary {
|
243 |
+
left: .5em;
|
244 |
+
}
|
245 |
+
.ui-button-text-icon-secondary .ui-button-icon-secondary,
|
246 |
+
.ui-button-text-icons .ui-button-icon-secondary,
|
247 |
+
.ui-button-icons-only .ui-button-icon-secondary {
|
248 |
+
right: .5em;
|
249 |
+
}
|
250 |
+
|
251 |
+
/* button sets */
|
252 |
+
.ui-buttonset {
|
253 |
+
margin-right: 7px;
|
254 |
+
}
|
255 |
+
.ui-buttonset .ui-button {
|
256 |
+
margin-left: 0;
|
257 |
+
margin-right: -.3em;
|
258 |
+
}
|
259 |
+
|
260 |
+
/* workarounds */
|
261 |
+
/* reset extra padding in Firefox, see h5bp.com/l */
|
262 |
+
input.ui-button::-moz-focus-inner,
|
263 |
+
button.ui-button::-moz-focus-inner {
|
264 |
+
border: 0;
|
265 |
+
padding: 0;
|
266 |
+
}
|
267 |
+
.ui-dialog {
|
268 |
+
overflow: hidden;
|
269 |
+
position: absolute;
|
270 |
+
top: 0;
|
271 |
+
left: 0;
|
272 |
+
padding: .2em;
|
273 |
+
outline: 0;
|
274 |
+
}
|
275 |
+
.ui-dialog .ui-dialog-titlebar {
|
276 |
+
padding: .4em 1em;
|
277 |
+
position: relative;
|
278 |
+
}
|
279 |
+
.ui-dialog .ui-dialog-title {
|
280 |
+
float: left;
|
281 |
+
margin: .1em 0;
|
282 |
+
white-space: nowrap;
|
283 |
+
width: 90%;
|
284 |
+
overflow: hidden;
|
285 |
+
text-overflow: ellipsis;
|
286 |
+
}
|
287 |
+
.ui-dialog .ui-dialog-titlebar-close {
|
288 |
+
position: absolute;
|
289 |
+
right: .3em;
|
290 |
+
top: 50%;
|
291 |
+
width: 20px;
|
292 |
+
margin: -10px 0 0 0;
|
293 |
+
padding: 1px;
|
294 |
+
height: 20px;
|
295 |
+
}
|
296 |
+
.ui-dialog .ui-dialog-content {
|
297 |
+
position: relative;
|
298 |
+
border: 0;
|
299 |
+
padding: .5em 1em;
|
300 |
+
background: none;
|
301 |
+
overflow: auto;
|
302 |
+
}
|
303 |
+
.ui-dialog .ui-dialog-buttonpane {
|
304 |
+
text-align: left;
|
305 |
+
border-width: 1px 0 0 0;
|
306 |
+
background-image: none;
|
307 |
+
margin-top: .5em;
|
308 |
+
padding: .3em 1em .5em .4em;
|
309 |
+
}
|
310 |
+
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
|
311 |
+
float: right;
|
312 |
+
}
|
313 |
+
.ui-dialog .ui-dialog-buttonpane button {
|
314 |
+
margin: .5em .4em .5em 0;
|
315 |
+
cursor: pointer;
|
316 |
+
}
|
317 |
+
.ui-dialog .ui-resizable-se {
|
318 |
+
width: 12px;
|
319 |
+
height: 12px;
|
320 |
+
right: -5px;
|
321 |
+
bottom: -5px;
|
322 |
+
background-position: 16px 16px;
|
323 |
+
}
|
324 |
+
.ui-draggable .ui-dialog-titlebar {
|
325 |
+
cursor: move;
|
326 |
+
}
|
327 |
.ui-tabs {
|
328 |
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
329 |
padding: .2em;
|
css/jquery-ui.min.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
/*! jQuery UI - v1.11.4 - 2017-
|
2 |
* http://jqueryui.com
|
3 |
-
* Includes: core.css, tabs.css, theme.css
|
4 |
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Arial%2CHelvetica%2Csans-serif&fsDefault=1em&fwDefault=normal&cornerRadius=3px&bgColorHeader=%23e9e9e9&bgTextureHeader=flat&borderColorHeader=%23dddddd&fcHeader=%23333333&iconColorHeader=%23444444&bgColorContent=%23ffffff&bgTextureContent=flat&borderColorContent=%23dddddd&fcContent=%23333333&iconColorContent=%23444444&bgColorDefault=%23f6f6f6&bgTextureDefault=flat&borderColorDefault=%23c5c5c5&fcDefault=%23454545&iconColorDefault=%23777777&bgColorHover=%23ededed&bgTextureHover=flat&borderColorHover=%23cccccc&fcHover=%232b2b2b&iconColorHover=%23555555&bgColorActive=%23ffffff&bgTextureActive=flat&borderColorActive=%23aaaaaa&fcActive=%23000000&iconColorActive=%23ffffff&bgColorHighlight=%23fffa90&bgTextureHighlight=flat&borderColorHighlight=%23dad55e&fcHighlight=%23777620&iconColorHighlight=%23777620&bgColorError=%23fddfdf&bgTextureError=flat&borderColorError=%23f1a899&fcError=%235f3f3f&iconColorError=%23cc0000&bgColorOverlay=%23aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=%23666666&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=5px&offsetTopShadow=0px&offsetLeftShadow=0px&cornerRadiusShadow=8px&bgImgOpacityHeader=&bgImgOpacityContent=&bgImgOpacityDefault=&bgImgOpacityHover=&bgImgOpacityActive=&bgImgOpacityHighlight=&bgImgOpacityError=
|
5 |
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
6 |
|
7 |
-
.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-widget{font-family:Arial,Helvetica,sans-serif;font-size:1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Arial,Helvetica,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #ddd;background:#fff;color:#333}.ui-widget-content a{color:#333}.ui-widget-header{border:1px solid #ddd;background:#e9e9e9;color:#333;font-weight:bold}.ui-widget-header a{color:#333}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #c5c5c5;background:#f6f6f6;font-weight:normal;color:#454545}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#454545;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #ccc;background:#ededed;font-weight:normal;color:#2b2b2b}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited{color:#2b2b2b;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff;font-weight:normal;color:#000}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#000;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #dad55e;background:#fffa90;color:#777620}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#777620}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #f1a899;background:#fddfdf;color:#5f3f3f}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#5f3f3f}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#5f3f3f}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url("images/ui-icons_444444_256x240.png")}.ui-widget-header .ui-icon{background-image:url("images/ui-icons_444444_256x240.png")}.ui-state-default .ui-icon{background-image:url("images/ui-icons_777777_256x240.png")}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url("images/ui-icons_555555_256x240.png")}.ui-state-active .ui-icon{background-image:url("images/ui-icons_ffffff_256x240.png")}.ui-state-highlight .ui-icon{background-image:url("images/ui-icons_777620_256x240.png")}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url("images/ui-icons_cc0000_256x240.png")}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:3px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:3px}.ui-widget-overlay{background:#aaa;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{margin:0 0 0 0;padding:5px;background:#666;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px}
|
1 |
+
/*! jQuery UI - v1.11.4 - 2017-05-22
|
2 |
* http://jqueryui.com
|
3 |
+
* Includes: core.css, draggable.css, resizable.css, button.css, dialog.css, tabs.css, theme.css
|
4 |
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Arial%2CHelvetica%2Csans-serif&fsDefault=1em&fwDefault=normal&cornerRadius=3px&bgColorHeader=%23e9e9e9&bgTextureHeader=flat&borderColorHeader=%23dddddd&fcHeader=%23333333&iconColorHeader=%23444444&bgColorContent=%23ffffff&bgTextureContent=flat&borderColorContent=%23dddddd&fcContent=%23333333&iconColorContent=%23444444&bgColorDefault=%23f6f6f6&bgTextureDefault=flat&borderColorDefault=%23c5c5c5&fcDefault=%23454545&iconColorDefault=%23777777&bgColorHover=%23ededed&bgTextureHover=flat&borderColorHover=%23cccccc&fcHover=%232b2b2b&iconColorHover=%23555555&bgColorActive=%23ffffff&bgTextureActive=flat&borderColorActive=%23aaaaaa&fcActive=%23000000&iconColorActive=%23ffffff&bgColorHighlight=%23fffa90&bgTextureHighlight=flat&borderColorHighlight=%23dad55e&fcHighlight=%23777620&iconColorHighlight=%23777620&bgColorError=%23fddfdf&bgTextureError=flat&borderColorError=%23f1a899&fcError=%235f3f3f&iconColorError=%23cc0000&bgColorOverlay=%23aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=%23666666&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=5px&offsetTopShadow=0px&offsetLeftShadow=0px&cornerRadiusShadow=8px&bgImgOpacityHeader=&bgImgOpacityContent=&bgImgOpacityDefault=&bgImgOpacityHover=&bgImgOpacityActive=&bgImgOpacityHighlight=&bgImgOpacityError=
|
5 |
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
6 |
|
7 |
+
.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-draggable-handle{-ms-touch-action:none;touch-action:none}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-dialog{overflow:hidden;position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-widget{font-family:Arial,Helvetica,sans-serif;font-size:1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Arial,Helvetica,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #ddd;background:#fff;color:#333}.ui-widget-content a{color:#333}.ui-widget-header{border:1px solid #ddd;background:#e9e9e9;color:#333;font-weight:bold}.ui-widget-header a{color:#333}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #c5c5c5;background:#f6f6f6;font-weight:normal;color:#454545}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#454545;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #ccc;background:#ededed;font-weight:normal;color:#2b2b2b}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited{color:#2b2b2b;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff;font-weight:normal;color:#000}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#000;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #dad55e;background:#fffa90;color:#777620}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#777620}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #f1a899;background:#fddfdf;color:#5f3f3f}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#5f3f3f}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#5f3f3f}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url("images/ui-icons_444444_256x240.png")}.ui-widget-header .ui-icon{background-image:url("images/ui-icons_444444_256x240.png")}.ui-state-default .ui-icon{background-image:url("images/ui-icons_777777_256x240.png")}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url("images/ui-icons_555555_256x240.png")}.ui-state-active .ui-icon{background-image:url("images/ui-icons_ffffff_256x240.png")}.ui-state-highlight .ui-icon{background-image:url("images/ui-icons_777620_256x240.png")}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url("images/ui-icons_cc0000_256x240.png")}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:3px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:3px}.ui-widget-overlay{background:#aaa;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{margin:0 0 0 0;padding:5px;background:#666;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px}
|
includes/classes/ajax-processor.php
CHANGED
@@ -41,7 +41,7 @@ class URE_Ajax_Processor {
|
|
41 |
|
42 |
protected function get_required_cap() {
|
43 |
|
44 |
-
if ($this->action=='grant_roles') {
|
45 |
$cap = 'edit_users';
|
46 |
} else {
|
47 |
$cap = URE_Own_Capabilities::get_key_capability();
|
@@ -112,7 +112,7 @@ class URE_Ajax_Processor {
|
|
112 |
|
113 |
protected function grant_roles() {
|
114 |
|
115 |
-
$answer = URE_Grant_Roles::
|
116 |
|
117 |
return $answer;
|
118 |
|
@@ -120,6 +120,16 @@ class URE_Ajax_Processor {
|
|
120 |
// end of grant_roles()
|
121 |
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
protected function _dispatch() {
|
124 |
switch ($this->action) {
|
125 |
case 'get_caps_to_remove':
|
@@ -131,6 +141,10 @@ class URE_Ajax_Processor {
|
|
131 |
case 'grant_roles':
|
132 |
$answer = $this->grant_roles();
|
133 |
break;
|
|
|
|
|
|
|
|
|
134 |
default:
|
135 |
$answer = array('result' => 'error', 'message' => 'unknown action "' . $this->action . '"');
|
136 |
}
|
41 |
|
42 |
protected function get_required_cap() {
|
43 |
|
44 |
+
if ($this->action=='grant_roles' || $this->action=='get_user_roles') {
|
45 |
$cap = 'edit_users';
|
46 |
} else {
|
47 |
$cap = URE_Own_Capabilities::get_key_capability();
|
112 |
|
113 |
protected function grant_roles() {
|
114 |
|
115 |
+
$answer = URE_Grant_Roles::grant_roles();
|
116 |
|
117 |
return $answer;
|
118 |
|
120 |
// end of grant_roles()
|
121 |
|
122 |
|
123 |
+
protected function get_user_roles() {
|
124 |
+
|
125 |
+
$answer = URE_Grant_Roles::get_user_roles();
|
126 |
+
|
127 |
+
return $answer;
|
128 |
+
|
129 |
+
}
|
130 |
+
// end of get_user_roles()
|
131 |
+
|
132 |
+
|
133 |
protected function _dispatch() {
|
134 |
switch ($this->action) {
|
135 |
case 'get_caps_to_remove':
|
141 |
case 'grant_roles':
|
142 |
$answer = $this->grant_roles();
|
143 |
break;
|
144 |
+
case 'get_user_roles':
|
145 |
+
$answer = $this->get_user_roles();
|
146 |
+
break;
|
147 |
+
|
148 |
default:
|
149 |
$answer = array('result' => 'error', 'message' => 'unknown action "' . $this->action . '"');
|
150 |
}
|
includes/classes/capabilities-groups-manager.php
CHANGED
@@ -154,7 +154,7 @@ class URE_Capabilities_Groups_Manager {
|
|
154 |
$caps['manage_options'] = array('core', 'general');
|
155 |
$caps['moderate_comments'] = array('core', 'posts', 'general');
|
156 |
$caps['manage_categories'] = array('core', 'posts', 'general');
|
157 |
-
$caps['manage_links'] = array('core', '
|
158 |
$caps['upload_files'] = array('core', 'general');
|
159 |
$caps['import'] = array('core', 'general');
|
160 |
$caps['unfiltered_html'] = array('core','general');
|
@@ -215,13 +215,15 @@ class URE_Capabilities_Groups_Manager {
|
|
215 |
$caps['delete_users'] = array('core', 'users');
|
216 |
$caps['create_users'] = array('core', 'users');
|
217 |
if ($multisite) {
|
218 |
-
$caps['manage_network'] = array('core', 'multisite', 'general');
|
219 |
-
$caps['manage_sites'] = array('core', 'multisite', 'general');
|
220 |
$caps['create_sites'] = array('core', 'multisite', 'general');
|
|
|
|
|
|
|
221 |
$caps['manage_network_users'] = array('core', 'multisite', 'users');
|
222 |
-
$caps['manage_network_themes'] = array('core', 'multisite', 'themes');
|
223 |
$caps['manage_network_plugins'] = array('core', 'multisite', 'plugins');
|
|
|
224 |
$caps['manage_network_options'] = array('core', 'multisite', 'general');
|
|
|
225 |
}
|
226 |
|
227 |
$caps['create_posts'] = array('core', 'posts');
|
154 |
$caps['manage_options'] = array('core', 'general');
|
155 |
$caps['moderate_comments'] = array('core', 'posts', 'general');
|
156 |
$caps['manage_categories'] = array('core', 'posts', 'general');
|
157 |
+
$caps['manage_links'] = array('core', 'general');
|
158 |
$caps['upload_files'] = array('core', 'general');
|
159 |
$caps['import'] = array('core', 'general');
|
160 |
$caps['unfiltered_html'] = array('core','general');
|
215 |
$caps['delete_users'] = array('core', 'users');
|
216 |
$caps['create_users'] = array('core', 'users');
|
217 |
if ($multisite) {
|
|
|
|
|
218 |
$caps['create_sites'] = array('core', 'multisite', 'general');
|
219 |
+
$caps['delete_sites'] = array('core', 'multisite', 'general');
|
220 |
+
$caps['manage_network'] = array('core', 'multisite', 'general');
|
221 |
+
$caps['manage_sites'] = array('core', 'multisite', 'general');
|
222 |
$caps['manage_network_users'] = array('core', 'multisite', 'users');
|
|
|
223 |
$caps['manage_network_plugins'] = array('core', 'multisite', 'plugins');
|
224 |
+
$caps['manage_network_themes'] = array('core', 'multisite', 'themes');
|
225 |
$caps['manage_network_options'] = array('core', 'multisite', 'general');
|
226 |
+
$caps['upgrade_network'] = array('core', 'multisite', 'general');
|
227 |
}
|
228 |
|
229 |
$caps['create_posts'] = array('core', 'posts');
|
includes/classes/grant-roles.php
CHANGED
@@ -97,7 +97,7 @@ class URE_Grant_Roles {
|
|
97 |
// end of grant_other_roles_to_user()
|
98 |
|
99 |
|
100 |
-
public static function
|
101 |
|
102 |
if (!current_user_can('edit_users')) {
|
103 |
$answer = array('result'=>'error', 'message'=>esc_html__('Not enough permissions', 'user-role-editor'));
|
@@ -145,7 +145,38 @@ class URE_Grant_Roles {
|
|
145 |
|
146 |
return $answer;
|
147 |
}
|
148 |
-
// end of
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
|
150 |
|
151 |
private function select_primary_role_html() {
|
@@ -206,7 +237,7 @@ class URE_Grant_Roles {
|
|
206 |
}
|
207 |
?>
|
208 |
<input type="button" name="ure_grant_roles" id="ure_grant_roles" class="button"
|
209 |
-
value="<?php esc_html_e('Grant Roles', 'user-role-editor');?>"
|
210 |
<?php
|
211 |
if (self::$counter<1) {
|
212 |
?>
|
97 |
// end of grant_other_roles_to_user()
|
98 |
|
99 |
|
100 |
+
public static function grant_roles() {
|
101 |
|
102 |
if (!current_user_can('edit_users')) {
|
103 |
$answer = array('result'=>'error', 'message'=>esc_html__('Not enough permissions', 'user-role-editor'));
|
145 |
|
146 |
return $answer;
|
147 |
}
|
148 |
+
// end of grant_roles()
|
149 |
+
|
150 |
+
|
151 |
+
public static function get_user_roles() {
|
152 |
+
|
153 |
+
if (!current_user_can('edit_users')) {
|
154 |
+
$answer = array('result'=>'error', 'message'=>esc_html__('Not enough permissions', 'user-role-editor'));
|
155 |
+
return $answer;
|
156 |
+
}
|
157 |
+
|
158 |
+
$lib = URE_Lib::get_instance();
|
159 |
+
$user_id = $lib->get_request_var('user_id', 'post', 'int');
|
160 |
+
if (empty($user_id)) {
|
161 |
+
$answer = array('result'=>'error', 'message'=>esc_html__('Wrong request, valid user ID was missed', 'user-role-editor'));
|
162 |
+
return $answer;
|
163 |
+
}
|
164 |
+
|
165 |
+
$user = get_user_by('id', $user_id);
|
166 |
+
if (empty($user)) {
|
167 |
+
$answer = array('result'=>'error', 'message'=>esc_html__('Requested user does not exist', 'user-role-editor'));
|
168 |
+
return $answer;
|
169 |
+
}
|
170 |
+
|
171 |
+
$other_roles = array_values($user->roles);
|
172 |
+
$primary_role = array_shift($other_roles);
|
173 |
+
|
174 |
+
$answer = array('result'=>'success', 'primary_role'=>$primary_role, 'other_roles'=>$other_roles);
|
175 |
+
|
176 |
+
return $answer;
|
177 |
+
}
|
178 |
+
// end of get_user_roles()
|
179 |
+
|
180 |
|
181 |
|
182 |
private function select_primary_role_html() {
|
237 |
}
|
238 |
?>
|
239 |
<input type="button" name="ure_grant_roles" id="ure_grant_roles" class="button"
|
240 |
+
value="<?php esc_html_e('Grant Roles', 'user-role-editor');?>">
|
241 |
<?php
|
242 |
if (self::$counter<1) {
|
243 |
?>
|
includes/classes/ure-lib.php
CHANGED
@@ -1070,14 +1070,11 @@ class Ure_Lib extends URE_Base_Lib {
|
|
1070 |
* @return array
|
1071 |
*/
|
1072 |
public function _get_post_types() {
|
1073 |
-
$post_types = get_transient('ure_public_post_types');
|
1074 |
-
if (empty($post_types)) {
|
1075 |
-
$all_post_types = get_post_types();
|
1076 |
-
$internal_post_types = get_post_types(array('public'=>false, '_builtin'=>true));
|
1077 |
-
$post_types = array_diff($all_post_types, $internal_post_types);
|
1078 |
-
set_transient('ure_public_post_types', $post_types, 30);
|
1079 |
-
}
|
1080 |
|
|
|
|
|
|
|
|
|
1081 |
return $post_types;
|
1082 |
}
|
1083 |
// end of _get_post_types()
|
1070 |
* @return array
|
1071 |
*/
|
1072 |
public function _get_post_types() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1073 |
|
1074 |
+
$all_post_types = get_post_types();
|
1075 |
+
$internal_post_types = get_post_types(array('public'=>false, '_builtin'=>true));
|
1076 |
+
$post_types = array_diff($all_post_types, $internal_post_types);
|
1077 |
+
|
1078 |
return $post_types;
|
1079 |
}
|
1080 |
// end of _get_post_types()
|
includes/classes/user-role-editor.php
CHANGED
@@ -589,7 +589,7 @@ class User_Role_Editor {
|
|
589 |
'settings-' . URE_PLUGIN_FILE,
|
590 |
array($this, 'settings'));
|
591 |
add_action( 'load-'.$this->settings_page_hook, array($this,'settings_screen_configure') );
|
592 |
-
add_action("admin_print_styles-{$this->settings_page_hook}", array($this, '
|
593 |
}
|
594 |
}
|
595 |
// end of plugin_menu()
|
@@ -606,7 +606,7 @@ class User_Role_Editor {
|
|
606 |
'settings-' . URE_PLUGIN_FILE,
|
607 |
array(&$this, 'settings'));
|
608 |
add_action( 'load-'.$this->settings_page_hook, array($this,'settings_screen_configure') );
|
609 |
-
add_action("admin_print_styles-{$this->settings_page_hook}", array($this, '
|
610 |
}
|
611 |
|
612 |
}
|
@@ -811,15 +811,23 @@ class User_Role_Editor {
|
|
811 |
public function admin_css_action() {
|
812 |
|
813 |
wp_enqueue_style('wp-jquery-ui-dialog');
|
814 |
-
wp_enqueue_style('wp-jquery-ui-selectable');
|
815 |
-
if (stripos($_SERVER['REQUEST_URI'], 'settings-user-role-editor')!==false) {
|
816 |
-
wp_enqueue_style('ure-jquery-ui-tabs', URE_PLUGIN_URL . 'css/jquery-ui.min.css', array(), false, 'screen');
|
817 |
-
}
|
818 |
wp_enqueue_style('ure-admin-css', URE_PLUGIN_URL . 'css/ure-admin.css', array(), false, 'screen');
|
819 |
}
|
820 |
// end of admin_css_action()
|
821 |
|
822 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
823 |
// call roles editor page
|
824 |
public function edit_roles() {
|
825 |
|
@@ -878,11 +886,6 @@ class User_Role_Editor {
|
|
878 |
'cancel' => esc_html__('Cancel', 'user-role-editor'),
|
879 |
'add_capability' => esc_html__('Add Capability', 'user-role-editor'),
|
880 |
'delete_capability' => esc_html__('Delete Capability', 'user-role-editor'),
|
881 |
-
'reset' => esc_html__('Reset', 'user-role-editor'),
|
882 |
-
'reset_warning' => esc_html__('DANGER! Resetting will restore default settings from WordPress Core.', 'user-role-editor') . "\n\n" .
|
883 |
-
esc_html__('If any plugins have changed capabilities in any way upon installation (such as S2Member, WooCommerce, and many more), those capabilities will be DELETED!', 'user-role-editor') . "\n\n" .
|
884 |
-
esc_html__('For more information on how to undo changes and restore plugin capabilities go to', 'user-role-editor') . "\n" .
|
885 |
-
'http://role-editor.com/how-to-restore-deleted-wordpress-user-roles/' . "\n\n" .
|
886 |
esc_html__('Continue?', 'user-role-editor'),
|
887 |
'default_role' => esc_html__('Default Role', 'user-role-editor'),
|
888 |
'set_new_default_role' => esc_html__('Set New Default Role', 'user-role-editor'),
|
589 |
'settings-' . URE_PLUGIN_FILE,
|
590 |
array($this, 'settings'));
|
591 |
add_action( 'load-'.$this->settings_page_hook, array($this,'settings_screen_configure') );
|
592 |
+
add_action("admin_print_styles-{$this->settings_page_hook}", array($this, 'settings_css_action'));
|
593 |
}
|
594 |
}
|
595 |
// end of plugin_menu()
|
606 |
'settings-' . URE_PLUGIN_FILE,
|
607 |
array(&$this, 'settings'));
|
608 |
add_action( 'load-'.$this->settings_page_hook, array($this,'settings_screen_configure') );
|
609 |
+
add_action("admin_print_styles-{$this->settings_page_hook}", array($this, 'settings_css_action'));
|
610 |
}
|
611 |
|
612 |
}
|
811 |
public function admin_css_action() {
|
812 |
|
813 |
wp_enqueue_style('wp-jquery-ui-dialog');
|
814 |
+
wp_enqueue_style('wp-jquery-ui-selectable');
|
|
|
|
|
|
|
815 |
wp_enqueue_style('ure-admin-css', URE_PLUGIN_URL . 'css/ure-admin.css', array(), false, 'screen');
|
816 |
}
|
817 |
// end of admin_css_action()
|
818 |
|
819 |
|
820 |
+
public function settings_css_action() {
|
821 |
+
|
822 |
+
|
823 |
+
wp_enqueue_style('ure-jquery-ui-tabs', URE_PLUGIN_URL . 'css/jquery-ui.min.css', array(), false, 'screen');
|
824 |
+
wp_enqueue_style('ure-admin-css', URE_PLUGIN_URL . 'css/ure-admin.css', array(), false, 'screen');
|
825 |
+
|
826 |
+
}
|
827 |
+
// end of admin_css_action()
|
828 |
+
|
829 |
+
|
830 |
+
|
831 |
// call roles editor page
|
832 |
public function edit_roles() {
|
833 |
|
886 |
'cancel' => esc_html__('Cancel', 'user-role-editor'),
|
887 |
'add_capability' => esc_html__('Add Capability', 'user-role-editor'),
|
888 |
'delete_capability' => esc_html__('Delete Capability', 'user-role-editor'),
|
|
|
|
|
|
|
|
|
|
|
889 |
esc_html__('Continue?', 'user-role-editor'),
|
890 |
'default_role' => esc_html__('Default Role', 'user-role-editor'),
|
891 |
'set_new_default_role' => esc_html__('Set New Default Role', 'user-role-editor'),
|
js/settings.js
CHANGED
@@ -17,14 +17,8 @@ jQuery(document).ready(function() {
|
|
17 |
jQuery('#ure_reset_roles_button').button({
|
18 |
label: ure_data.reset
|
19 |
}).click(function (event) {
|
20 |
-
event.preventDefault();
|
21 |
-
|
22 |
-
if (!confirm(ure_data.reset_warning)) {
|
23 |
-
return false;
|
24 |
-
}
|
25 |
-
jQuery('#ure_reset_roles_form').submit();
|
26 |
-
*/
|
27 |
-
ure_confirm(ure_data.reset_warning, ure_roles_reset_form_submit);
|
28 |
});
|
29 |
|
30 |
function ure_confirm(message, routine) {
|
@@ -35,7 +29,7 @@ jQuery(document).ready(function() {
|
|
35 |
autoOpen: true,
|
36 |
closeOnEscape: true,
|
37 |
width: 600,
|
38 |
-
height:
|
39 |
resizable: false,
|
40 |
title: ure_data.confirm_title,
|
41 |
'buttons': {
|
17 |
jQuery('#ure_reset_roles_button').button({
|
18 |
label: ure_data.reset
|
19 |
}).click(function (event) {
|
20 |
+
event.preventDefault();
|
21 |
+
ure_confirm(ure_data.reset_warning, ure_roles_reset_form_submit);
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
});
|
23 |
|
24 |
function ure_confirm(message, routine) {
|
29 |
autoOpen: true,
|
30 |
closeOnEscape: true,
|
31 |
width: 600,
|
32 |
+
height: 280,
|
33 |
resizable: false,
|
34 |
title: ure_data.confirm_title,
|
35 |
'buttons': {
|
js/ure-js.js
CHANGED
@@ -397,17 +397,6 @@ jQuery(function ($) {
|
|
397 |
}
|
398 |
|
399 |
|
400 |
-
$('#ure_reset_roles_button').button({
|
401 |
-
label: ure_data.reset
|
402 |
-
}).click(function (event) {
|
403 |
-
event.preventDefault();
|
404 |
-
if (!confirm(ure_data.reset_warning)) {
|
405 |
-
return false;
|
406 |
-
}
|
407 |
-
jQuery.ure_postGo(ure_data.page_url, {action: 'reset', ure_nonce: ure_data.wp_nonce});
|
408 |
-
});
|
409 |
-
|
410 |
-
|
411 |
function ure_confirm(message, routine) {
|
412 |
|
413 |
$('#ure_confirmation_dialog').dialog({
|
397 |
}
|
398 |
|
399 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
400 |
function ure_confirm(message, routine) {
|
401 |
|
402 |
$('#ure_confirmation_dialog').dialog({
|
js/users-grant-roles.js
CHANGED
@@ -4,6 +4,10 @@
|
|
4 |
*/
|
5 |
|
6 |
jQuery(document).ready(function() {
|
|
|
|
|
|
|
|
|
7 |
if (ure_users_grant_roles_data.show_wp_change_role!=1) {
|
8 |
jQuery('#new_role').hide();
|
9 |
jQuery('#new_role2').hide();
|
@@ -20,12 +24,68 @@ function ure_get_selected_checkboxes(item_name) {
|
|
20 |
}
|
21 |
|
22 |
|
23 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
var users = ure_get_selected_checkboxes('users');
|
25 |
if (users.length==0) {
|
26 |
alert(ure_users_grant_roles_data.select_users_first);
|
27 |
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
jQuery('#ure_grant_roles_dialog').dialog({
|
30 |
dialogClass: 'wp-dialog',
|
31 |
modal: true,
|
4 |
*/
|
5 |
|
6 |
jQuery(document).ready(function() {
|
7 |
+
jQuery('#ure_grant_roles').click(function() {
|
8 |
+
ure_prepare_grant_roles_dialog();
|
9 |
+
});
|
10 |
+
|
11 |
if (ure_users_grant_roles_data.show_wp_change_role!=1) {
|
12 |
jQuery('#new_role').hide();
|
13 |
jQuery('#new_role2').hide();
|
24 |
}
|
25 |
|
26 |
|
27 |
+
function ure_show_grant_roles_dialog_pre_selected(response) {
|
28 |
+
jQuery('#ure_task_status').hide();
|
29 |
+
if (response!==null && response.result=='error') {
|
30 |
+
jQuery('#ure_task_status').hide();
|
31 |
+
alert(response.message);
|
32 |
+
return;
|
33 |
+
}
|
34 |
+
if (response.primary_role.length>0 && jQuery('#primary_role').length>0) {
|
35 |
+
jQuery('#primary_role').val(response.primary_role);
|
36 |
+
}
|
37 |
+
|
38 |
+
if (response.other_roles.length>0) {
|
39 |
+
for(i=0;i<response.other_roles.length;i++) {
|
40 |
+
jQuery('#wp_role_'+ response.other_roles[i]).prop('checked', true);
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
ure_show_grant_roles_dialog();
|
45 |
+
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
+
function ure_get_selected_user_roles(users) {
|
50 |
+
jQuery('#ure_task_status').show();
|
51 |
+
var user_id = users.shift();
|
52 |
+
var data = {
|
53 |
+
'action': 'ure_ajax',
|
54 |
+
'sub_action':'get_user_roles',
|
55 |
+
'user_id': user_id,
|
56 |
+
'wp_nonce': ure_users_grant_roles_data.wp_nonce};
|
57 |
+
jQuery.post(ajaxurl, data, ure_show_grant_roles_dialog_pre_selected, 'json');
|
58 |
+
}
|
59 |
+
|
60 |
+
|
61 |
+
function ure_unselect_roles() {
|
62 |
+
jQuery('#primary_role').val([]);
|
63 |
+
|
64 |
+
// uncheck all checked checkboxes if there are any
|
65 |
+
jQuery('input[type="checkbox"][name="ure_roles\\[\\]"]:checked').map(function() {
|
66 |
+
this.checked = false;
|
67 |
+
});
|
68 |
+
}
|
69 |
+
|
70 |
+
function ure_prepare_grant_roles_dialog() {
|
71 |
var users = ure_get_selected_checkboxes('users');
|
72 |
if (users.length==0) {
|
73 |
alert(ure_users_grant_roles_data.select_users_first);
|
74 |
return;
|
75 |
+
}
|
76 |
+
|
77 |
+
if (users.length==1) {
|
78 |
+
ure_get_selected_user_roles(users);
|
79 |
+
} else {
|
80 |
+
ure_unselect_roles();
|
81 |
+
ure_show_grant_roles_dialog();
|
82 |
}
|
83 |
+
|
84 |
+
}
|
85 |
+
|
86 |
+
|
87 |
+
function ure_show_grant_roles_dialog() {
|
88 |
+
|
89 |
jQuery('#ure_grant_roles_dialog').dialog({
|
90 |
dialogClass: 'wp-dialog',
|
91 |
modal: true,
|
license.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
User Role Editor WordPress plugin
|
2 |
|
3 |
-
Copyright 2009-
|
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
|
1 |
User Role Editor WordPress plugin
|
2 |
|
3 |
+
Copyright 2009-2017 by Vladimir Garagulya - vladimir@shinephp.com
|
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
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: shinephp
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladimir%40shinephp%2ecom&lc=RU&item_name=ShinePHP%2ecom&item_number=User%20Role%20Editor%20WordPress%20plugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
Tags: user, role, editor, security, access, permission, capability
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -77,7 +77,16 @@ If you wish to check available translations or help with plugin translation to y
|
|
77 |
https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
|
78 |
|
79 |
|
80 |
-
== Changelog
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
= [4.33] 19.05.2017 =
|
82 |
* Fix: "Users->Without Roles", "Users->Grant Roles" are shown only to the users with 'edit_users' capability.
|
83 |
* Fix: Roles were updated for all sites of all networks for WordPress multisite. "Apply to All Sites" option updates roles inside a current network only.
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladimir%40shinephp%2ecom&lc=RU&item_name=ShinePHP%2ecom&item_number=User%20Role%20Editor%20WordPress%20plugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
Tags: user, role, editor, security, access, permission, capability
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.8
|
7 |
+
Stable tag: 4.34
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
77 |
https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
|
78 |
|
79 |
|
80 |
+
== Changelog =
|
81 |
+
= [4.34] 02.06.2017 =
|
82 |
+
* New: Multisite 'upgrade_network' capability support was added for compatibility with WordPress 4.8.
|
83 |
+
* New: Multisite 'delete_sites' capability support was added.
|
84 |
+
* Update: Users->Grant Roles: if a single user was selected for "Grant Roles" bulk action, dialog will show the current roles of selected user with checkboxes turned ON (pre-selected).
|
85 |
+
* Fix: Transients caching was removed from URE_Lib::_get_post_types() function. It cached post types list too early in some cases.
|
86 |
+
* Fix: jQuery UI CSS was updated to fix minor view inconsistency at the URE's Settings page.
|
87 |
+
* Fix: "Reset" presentation code remainders were removed from the main User Role Editor page.
|
88 |
+
* Fix: 'manage_links' capability was included into a wrong subgroup instead of "Core->General". It was a mistake in the capabilities group counters for that reason.
|
89 |
+
|
90 |
= [4.33] 19.05.2017 =
|
91 |
* Fix: "Users->Without Roles", "Users->Grant Roles" are shown only to the users with 'edit_users' capability.
|
92 |
* Fix: Roles were updated for all sites of all networks for WordPress multisite. "Apply to All Sites" option updates roles inside a current network only.
|
user-role-editor.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: User Role Editor
|
4 |
Plugin URI: https://www.role-editor.com
|
5 |
Description: Change/add/delete WordPress user roles and capabilities.
|
6 |
-
Version: 4.
|
7 |
Author: Vladimir Garagulya
|
8 |
Author URI: https://www.role-editor.com
|
9 |
Text Domain: ure
|
@@ -23,7 +23,7 @@ if (defined('URE_PLUGIN_URL')) {
|
|
23 |
wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
|
24 |
}
|
25 |
|
26 |
-
define('URE_VERSION', '4.
|
27 |
define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
|
28 |
define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
29 |
define('URE_PLUGIN_BASE_NAME', plugin_basename(__FILE__));
|
3 |
Plugin Name: User Role Editor
|
4 |
Plugin URI: https://www.role-editor.com
|
5 |
Description: Change/add/delete WordPress user roles and capabilities.
|
6 |
+
Version: 4.34
|
7 |
Author: Vladimir Garagulya
|
8 |
Author URI: https://www.role-editor.com
|
9 |
Text Domain: ure
|
23 |
wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
|
24 |
}
|
25 |
|
26 |
+
define('URE_VERSION', '4.34');
|
27 |
define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
|
28 |
define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
29 |
define('URE_PLUGIN_BASE_NAME', plugin_basename(__FILE__));
|