mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 06:33:50 +09:00
- wp-admin assets refactoring (in process);
This commit is contained in:
@@ -1,390 +0,0 @@
|
||||
@-webkit-keyframes um-ajax-spinning {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg); }
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@-moz-keyframes um-ajax-spinning {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg); }
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@-ms-keyframes um-ajax-spinning {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg); }
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
@keyframes um-ajax-spinning {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg); }
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg); } }
|
||||
|
||||
/*
|
||||
- General
|
||||
*/
|
||||
|
||||
.um-admin-builder * {
|
||||
-webkit-font-smoothing: antialiased !important;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.um-admin-builder i {
|
||||
font-size: 15px !important;
|
||||
height: 100% !important;
|
||||
line-height: 100% !important;
|
||||
margin: 0 5px 0 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-builder .um-admin-drag {margin-top: 40px}
|
||||
|
||||
/*
|
||||
- Add field
|
||||
*/
|
||||
.um-admin-drag-add-field {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
color: #aaa;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.um-admin-drag-add-field:hover {color: #0085ba}
|
||||
|
||||
.um-admin-drag-add-field i {
|
||||
font-size: 23px !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/*
|
||||
- Drag controls
|
||||
*/
|
||||
|
||||
.um-admin-drag-ctrls-demo.um-admin-drag-ctrls {
|
||||
position: absolute;
|
||||
right: 7px;
|
||||
top: -30px;
|
||||
left: auto;
|
||||
}
|
||||
|
||||
.um-admin-drag-ctrls {
|
||||
position: absolute;
|
||||
top: -30px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.um-admin-drag-ctrls a {
|
||||
float: left;
|
||||
margin: 0 5px 0 0;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
background: #eee;
|
||||
color: #888;
|
||||
padding: 0 8px;
|
||||
text-decoration: none;
|
||||
border-radius: 2px 2px 0 0;
|
||||
}
|
||||
|
||||
.um-admin-drag-ctrls a:hover {background-color: #e5e5e5}
|
||||
|
||||
.um-admin-drag-ctrls a.active,
|
||||
.um-admin-drag-ctrls a.active:hover {
|
||||
/*background-color: #3ba1da;*/
|
||||
background-color: #0085ba;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.um-admin-drag-ctrls.columns a {width: 30px !important;background-image: url(../img/1-column.gif); background-repeat: no-repeat; background-position: center;}
|
||||
.um-admin-drag-ctrls.columns a:nth-child(2) {background-image: url(../img/2-columns.gif);}
|
||||
.um-admin-drag-ctrls.columns a:last-child {background-image: url(../img/3-columns.gif);}
|
||||
|
||||
.um-admin-drag-ctrls.columns a.active {background-image: url(../img/1-column-active.gif)}
|
||||
.um-admin-drag-ctrls.columns a.active:nth-child(2) {background-image: url(../img/2-columns-active.gif);}
|
||||
.um-admin-drag-ctrls.columns a.active:last-child {background-image: url(../img/3-columns-active.gif);}
|
||||
|
||||
/*
|
||||
- Drag Area
|
||||
*/
|
||||
|
||||
.um-admin-drag {
|
||||
width: 100%;
|
||||
background: #f1f1f1;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
padding: 60px 20px 20px 20px;
|
||||
}
|
||||
|
||||
.um-admin-drag-row {
|
||||
width: 100%;
|
||||
background: #fefefe;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
padding: 60px 20px 20px 20px;
|
||||
margin: 0 0 60px 0;
|
||||
position: relative;
|
||||
}
|
||||
.um-admin-drag-row:last-child {margin-bottom: 0}
|
||||
|
||||
.um-admin-drag-row-icons {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: -30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.um-admin-drag-rowsub {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
background: #f1f1f1;
|
||||
padding: 20px;
|
||||
margin: 0 0 60px 0;
|
||||
}
|
||||
.um-admin-drag-rowsub:last-child {margin-bottom: 0}
|
||||
|
||||
.um-admin-drag-rowsub-icons {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: -30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.um-admin-drag-col {
|
||||
float: left;
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
border: 1px dashed #bbb;
|
||||
box-sizing: border-box;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.um-admin-drag-col.cols-3 {width: 32%;}
|
||||
.um-admin-drag-col.cols-3.cols-last {width: 32%;}
|
||||
.um-admin-drag-col.cols-3.cols-middle {width: 32%;margin: 0 2%;}
|
||||
|
||||
.um-admin-drag-col.cols-1 {width: 100%;}
|
||||
.um-admin-drag-col.cols-1.cols-last {width: 100%;}
|
||||
.um-admin-drag-col.cols-1.cols-middle {}
|
||||
|
||||
.um-admin-drag-col.cols-2 {width: 49%;margin: 0 1% 0 0}
|
||||
.um-admin-drag-col.cols-2.cols-last {width: 49%;margin: 0 0 0 1%;}
|
||||
.um-admin-drag-col.cols-2.cols-middle {}
|
||||
|
||||
.um-admin-drag-addrow {
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
color: #888;
|
||||
cursor: pointer;
|
||||
border: 1px dashed #bbb;
|
||||
padding: 10px 0;
|
||||
margin: 20px 0 0 0;
|
||||
}
|
||||
.um-admin-drag-addrow i {
|
||||
font-size: 23px !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
.um-admin-drag-addrow:hover {color: #0085ba}
|
||||
|
||||
/*
|
||||
- Fields
|
||||
*/
|
||||
|
||||
.um-admin-drag-fld {
|
||||
display: block;
|
||||
position: relative;
|
||||
border: 1px solid #dddddd;
|
||||
margin: 0 0 15px 0;
|
||||
background: #F5F5F5;
|
||||
cursor: move !important;
|
||||
}
|
||||
|
||||
.um-admin-drag-fld-title i {
|
||||
width: 24px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.um-admin-drag-fld.um-field-type-group {background: #555;border: 0}
|
||||
.um-admin-drag-fld-title.um-field-type-group,.um-admin-drag-fld-type.um-field-type-group {color: #fff}
|
||||
.um-admin-drag-group {background: #FCFCFC;cursor: default;padding: 20px;border: 1px dashed #bbb;}
|
||||
.um-admin-drag-col.cols-3 .um-admin-drag-fld-icons.um-field-type-group{float: left;position: relative;bottom: auto;right: auto;height: 30px;display: block;}
|
||||
.um-admin-drag-fld-icons.um-field-type-group a.um_admin_duplicate_field {display: none !important}
|
||||
|
||||
.um-admin-drag-fld-title,
|
||||
.um-admin-drag-fld-type {
|
||||
float: left;
|
||||
font-weight: bold;
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
margin: 0 0 0 20px;
|
||||
}
|
||||
|
||||
.um-admin-drag-fld-type {
|
||||
font-weight: 400;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.um-admin-drag-fld-icons {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/*
|
||||
- Responsive cols appearance
|
||||
*/
|
||||
|
||||
.um-admin-drag-col.cols-3 .um-admin-drag-fld-title,
|
||||
.um-admin-drag-col.cols-3 .um-admin-drag-fld-type {
|
||||
height: auto;
|
||||
line-height: 18px;
|
||||
margin: 10px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.um-admin-drag-col.cols-3 .um-admin-drag-fld-type {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.um-admin-drag-col.cols-3 .um-admin-drag-fld-icons {
|
||||
float: none;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
height: 30px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.um-admin-drag-col.cols-3 .um-admin-drag-fld:hover .um-admin-drag-fld-icons{display: block;}
|
||||
|
||||
/*
|
||||
- Icons
|
||||
*/
|
||||
|
||||
.um-admin-drag-row-icons a,
|
||||
.um-admin-drag-row-icons span,
|
||||
.um-admin-drag-rowsub-icons a,
|
||||
.um-admin-drag-rowsub-icons span,
|
||||
.um-admin-drag-fld-icons a{
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
width: 40px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
display: block !important;
|
||||
float: left;
|
||||
/*background: #44b0ec;*/
|
||||
background: #0085ba;
|
||||
padding: 0 4px;
|
||||
transition: all .2s linear;
|
||||
border-left: 1px solid #379dd5;
|
||||
}
|
||||
|
||||
.um-admin-drag-row-icons span,
|
||||
.um-admin-drag-rowsub-icons span
|
||||
{cursor: move!important}
|
||||
|
||||
.um-admin-drag-row-icons a:hover,
|
||||
.um-admin-drag-row-icons span:hover,
|
||||
.um-admin-drag-rowsub-icons a:hover,
|
||||
.um-admin-drag-rowsub-icons span:hover,
|
||||
.um-admin-drag-fld-icons a:hover {background: #008ec2;/*background: #3396cd;*/}
|
||||
|
||||
.um-admin-drag-row-icons i,
|
||||
.um-admin-drag-rowsub-icons i,
|
||||
.um-admin-drag-fld-icons i{
|
||||
font-size: 18px !important;
|
||||
margin: 0 !important;
|
||||
top: 2px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.um-admin-row-loading {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: calc( 100% + 30px );
|
||||
top: -30px;
|
||||
left: 0;
|
||||
background: rgba(241, 241, 241, 0.6);
|
||||
z-index: 999;
|
||||
display: none;
|
||||
}
|
||||
.um-admin-row-loading > span {
|
||||
display: block;
|
||||
-webkit-transition: 0.1s opacity;
|
||||
-moz-transition: 0.1s opacity;
|
||||
-ms-transition: 0.1s opacity;
|
||||
-o-transition: 0.1s opacity;
|
||||
transition: 0.1s opacity;
|
||||
color: #c6c6c6 !important;
|
||||
-webkit-animation: um-ajax-spinning 1.1s infinite linear;
|
||||
animation: um-ajax-spinning 1.1s infinite linear;
|
||||
border-top: 0.2em solid rgba(0, 0, 0, 1);
|
||||
border-right: 0.2em solid rgba(0, 0, 0, 1);
|
||||
border-bottom: 0.2em solid rgba(0, 0, 0, 1);
|
||||
border-left: 0.2em solid #c6c6c6;
|
||||
font-size: 1.75em;
|
||||
filter: alpha(opacity=0);
|
||||
-ms-transform: translateZ(0);
|
||||
transform: translateZ(0);
|
||||
border-radius: 50%;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin: -20px 0 0 -20px;
|
||||
outline: 0;
|
||||
padding: 0;
|
||||
vertical-align: baseline;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
}
|
||||
|
||||
/*
|
||||
- UI Placeholders
|
||||
*/
|
||||
.um-row-placeholder {
|
||||
width: 100%;
|
||||
border: 2px dashed #aaa;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.um-rowsub-placeholder {
|
||||
width: 100%;
|
||||
border: 2px dashed #ccc;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.um-fld-placeholder {
|
||||
display: block;
|
||||
border: 1px dashed #dddddd;
|
||||
background: #fff;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.um-admin-preview-overlay {
|
||||
position: absolute;
|
||||
top:0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: rgba(255,255,255,0);
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
#UM_preview_form .um-admin-modal-body {
|
||||
position: relative;
|
||||
}
|
||||
@@ -2,68 +2,3 @@
|
||||
-webkit-font-smoothing: antialiased !important;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.um-admin.post-type-um_form .manage-column.column-id {width: 60px}
|
||||
.um-admin.post-type-um_form .manage-column.column-mode {width: 100px}
|
||||
.um-admin.post-type-um_form .manage-column.column-is_default {width: 60px}
|
||||
.um-admin.post-type-um_form .manage-column.column-title {width: 200px}
|
||||
.um-admin.post-type-um_form .manage-column.column-shortcode {width: 200px}
|
||||
.um-admin.post-type-um_form .manage-column.column-impressions {width: 100px}
|
||||
.um-admin.post-type-um_form .manage-column.column-conversions {width: 100px}
|
||||
|
||||
.um-admin.post-type-um_directory .manage-column.column-id {width: 60px}
|
||||
.um-admin.post-type-um_directory .manage-column.column-title {width: 250px}
|
||||
.um-admin.post-type-um_directory .manage-column.column-is_default {width: 60px}
|
||||
|
||||
.um-admin.post-type-um_role .manage-column.column-title {width: 200px}
|
||||
.um-admin.post-type-um_role .manage-column.column-count {width: 150px}
|
||||
.um-admin.post-type-um_role .manage-column.column-core {width: 150px}
|
||||
|
||||
.um-admin.post-type-um_form td.column-shortcode,
|
||||
.um-admin.post-type-um_form td.column-id,
|
||||
.um-admin.post-type-um_directory td.column-shortcode,
|
||||
.um-admin.post-type-um_directory td.column-id,
|
||||
.um-admin.post-type-um_role td.column-count
|
||||
{font-size: 14px;}
|
||||
|
||||
.um-admin.users-php td.column-um_actions {padding-top: 12px}
|
||||
|
||||
.um-admin.users-php td.column-um_actions a.button {
|
||||
height: 29px !important;
|
||||
margin: 0 0 0 2px !important;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.um-admin-tag {
|
||||
display: inline-block;
|
||||
border-radius: 2px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
background: #0085ba;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
}
|
||||
.um-admin-tag.small {font-size: 13px;height:28px;line-height: 28px;display:inline;padding: 4px 10px;background: transparent;color: #666;border-radius:0;}
|
||||
.um-admin-tag.approved {border-left: 2px solid #7ACF58}
|
||||
.um-admin-tag.pending {border-left: 2px solid #C74A4A}
|
||||
|
||||
.um-admin-txtspace {margin: 0 0 0 10px;}
|
||||
|
||||
.um-adm-ico {
|
||||
font-size: 18px;
|
||||
width: 18px;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
color: #7ACF58;
|
||||
}
|
||||
|
||||
.um-adm-ico.inactive {color: #C74A4A}
|
||||
.um-adm-ico.pointer {cursor: pointer}
|
||||
|
||||
.um-admin-icontext i {
|
||||
font-size: 18px;
|
||||
margin: 0 5px 0 0;
|
||||
}
|
||||
@@ -1,295 +0,0 @@
|
||||
#um-extensions-wrap #the-list {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
grid-gap: 10px;
|
||||
grid-auto-rows: minmax(max-content, auto);
|
||||
-ms-grid-template-rows: auto 1fr;
|
||||
-ms-grid-template-columns: repeat(3, 1fr);
|
||||
-ms-grid-gap: 10px;
|
||||
-ms-grid-auto-rows: minmax(max-content, auto);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#um-extensions-wrap .plugin-card {
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-start;
|
||||
align-items: stretch;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#um-extensions-wrap .plugin-image-wrapper {
|
||||
color: #fff;
|
||||
height: 70px;
|
||||
width: 70px;
|
||||
margin: 0 auto;
|
||||
border-radius: 60px;
|
||||
box-shadow: 0 2px 9px rgb(50 50 93 / 21%);
|
||||
border: solid 4px #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#um-extensions-wrap .plugin-image-wrapper a {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: #7856ff;
|
||||
}
|
||||
|
||||
#um-extensions-wrap a.plugin-image.svg-image {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
#um_bbpress_image {
|
||||
background-color: #fff !important;
|
||||
filter: none !important;
|
||||
width: 70px !important;
|
||||
}
|
||||
|
||||
#um_mycred_image {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
#um_groups_image,
|
||||
#um_profile-tabs_image,
|
||||
#um_user-tags_image,
|
||||
#um_friends_image,
|
||||
#um_user-reviews_image,
|
||||
#um_verified-users_image,
|
||||
#um_private-content_image,
|
||||
#um_online-users_image {
|
||||
width: 36px !important;
|
||||
}
|
||||
|
||||
#um_notices_image,
|
||||
#um_social-activity_image,
|
||||
#um_profile-completeness_image,
|
||||
#um_private-messages_image,
|
||||
#um_user-photos_image,
|
||||
#um_terms-conditions_image {
|
||||
width: 29px !important;
|
||||
}
|
||||
|
||||
#um_social-login_image {
|
||||
width: 28px !important;
|
||||
}
|
||||
|
||||
#um_real-time-notifications_image,
|
||||
#um_user-notes_image {
|
||||
width: 26px !important;
|
||||
}
|
||||
|
||||
#um_followers_image,
|
||||
#um_user-locations_image {
|
||||
width: 32px !important;
|
||||
}
|
||||
|
||||
#um_user-bookmarks_image {
|
||||
width: 23px !important;
|
||||
}
|
||||
|
||||
#um-extensions-wrap a.plugin-image.svg-image img {
|
||||
filter: invert(1);
|
||||
background-color: transparent;
|
||||
width: 38px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#um-extensions-wrap a.plugin-image,
|
||||
#um-extensions-wrap a.plugin-image img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#um-extensions-wrap .plugin-image:not(.svg-image) img {
|
||||
width: 70px;
|
||||
margin: 0;
|
||||
height: 70px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#um-extensions-wrap .plugin-card-top {
|
||||
margin: 0;
|
||||
padding: 20px 0 0 0;
|
||||
width: 100%;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
#um-extensions-wrap .plugin-card-top h3 {
|
||||
text-align: center;
|
||||
margin: 0 0 20px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#um-extensions-wrap .plugin-card-top .desc {
|
||||
text-align: center;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
#um-extensions-wrap .plugin-action-links {
|
||||
padding: 20px 0 0 0;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 1152px) {
|
||||
#um-extensions-wrap .plugin-card-top {
|
||||
min-height: 120px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 992px) {
|
||||
#um-extensions-wrap #the-list {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
-ms-grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 782px) {
|
||||
#um-extensions-wrap #the-list {
|
||||
grid-template-columns: repeat(1, 1fr);
|
||||
-ms-grid-template-columns: repeat(1, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 782px) {
|
||||
#um-extensions-wrap .plugin-card-top {
|
||||
min-height: 80px;
|
||||
}
|
||||
}
|
||||
|
||||
#um-metaboxes-general h1 sup {
|
||||
font-size: 14px;
|
||||
position: relative;
|
||||
font-weight: 400;
|
||||
background: #0085ba;
|
||||
color: #fff !important;
|
||||
padding: 2px 4px !important;
|
||||
border-radius: 3px;
|
||||
top: 5px;
|
||||
left: 3px;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.wrap a.red, .wrap span.red {color:#C74A4A}
|
||||
.wrap span.ok {color:#7ACF58}
|
||||
|
||||
/* Misc */
|
||||
|
||||
.um-admin-dash-review {
|
||||
text-decoration: none !important;
|
||||
font-size: 16px;
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
right: 4px;
|
||||
}
|
||||
|
||||
/* Dashboard widgets */
|
||||
|
||||
.p_seperate {
|
||||
margin-top: 12px;
|
||||
border-top: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.um-metabox-holder p.sub {
|
||||
padding: 0 4px 2px 4px;
|
||||
margin: 0 0 8px 0;
|
||||
color: #8F8F8F;
|
||||
font-size: 14px;
|
||||
border-bottom: 1px solid #ECECEC;
|
||||
}
|
||||
|
||||
.um-metabox-holder .table {
|
||||
float: left;
|
||||
width: 45%;
|
||||
}
|
||||
|
||||
.um-metabox-holder a.warning {
|
||||
color: #C74A4A !important;
|
||||
background: transparent !important;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.um-metabox-holder .table_right {
|
||||
float: right;
|
||||
width: 45%;
|
||||
}
|
||||
|
||||
.um-metabox-holder td.b {
|
||||
padding-right: 6px;
|
||||
text-align: right;
|
||||
font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif;
|
||||
font-size: 14px;
|
||||
width: 1%;
|
||||
}
|
||||
|
||||
.um-metabox-holder td.b {
|
||||
text-align: right;
|
||||
font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.um-metabox-holder table td {
|
||||
white-space: nowrap;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.um-metabox-holder td.b a {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.um-metabox-holder .norm i {
|
||||
display: inline-block;
|
||||
width: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.um-metabox-holder .norm p {
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.um-metabox-holder .norm .count {
|
||||
font-size: 16px;
|
||||
font-family: Gerogia;
|
||||
color: #999;
|
||||
width: 40px;
|
||||
display: inline-block;
|
||||
text-align: right;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
/* Share bar */
|
||||
|
||||
.um-admin-dash-share {
|
||||
margin-top: 11px !important;
|
||||
float: left;
|
||||
line-height: 28px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.um-admin-dash-share a {
|
||||
margin: 0 15px 0 0 !important;
|
||||
text-decoration: none !important;
|
||||
color: #777 !important;
|
||||
font-size: 22px !important;
|
||||
}
|
||||
.um-admin-dash-share a:hover {color: #0085ba !important}
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
- General
|
||||
*/
|
||||
|
||||
.um-admin-metabox * {
|
||||
-webkit-font-smoothing: antialiased !important;
|
||||
-moz-osx-font-smoothing: grayscale !important;
|
||||
}
|
||||
|
||||
.um-admin-metabox h6 {
|
||||
font-size: 14px;
|
||||
margin: 12px 0 0 0;
|
||||
}
|
||||
|
||||
/*
|
||||
- Metabox layout
|
||||
*/
|
||||
|
||||
.um-admin.post-type-um_form div#submitdiv,
|
||||
.um-admin.post-type-um_form div#side-sortables
|
||||
{display:none}
|
||||
|
||||
/*
|
||||
- Boxed Links
|
||||
*/
|
||||
|
||||
.um-admin-boxed-links {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.um-admin-boxed-links a {
|
||||
width: 33.3%;
|
||||
float: left;
|
||||
border-left: 1px solid #fff;
|
||||
border-right: 1px solid #fff;
|
||||
padding: 30px 25px !important;
|
||||
background: #f8f8f8;
|
||||
text-align: center;
|
||||
display: inline-block !important;
|
||||
font-size: 14px;
|
||||
transition: all .2s linear;
|
||||
text-decoration: none;
|
||||
color: #666;
|
||||
margin: 0 !important;
|
||||
box-sizing: border-box !important;
|
||||
border-radius: 2px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.um-admin-boxed-links i {
|
||||
font-size: 28px;
|
||||
vertical-align: middle;
|
||||
margin: 0 10px 0 0;
|
||||
}
|
||||
|
||||
.um-admin-boxed-links a:hover {
|
||||
background: #eee;
|
||||
}
|
||||
@@ -1,225 +0,0 @@
|
||||
.um-admin-notice {
|
||||
border-color: #0085ba !important;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.um-admin-notice.notice-warning {
|
||||
border-color: #dba617 !important;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.um-admin-notice.upgraded {
|
||||
border-color: #0085ba !important;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.um-admin-notice.error {
|
||||
border-color: #dc3232 !important;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.um-admin-notice a.button-primary {
|
||||
background-color: #0085ba !important;
|
||||
border-color: #0085ba !important;
|
||||
}
|
||||
|
||||
.um-admin-notice a.button-primary:hover {
|
||||
background-color: #008ec2 !important;
|
||||
border-color: #008ec2 !important;
|
||||
}
|
||||
|
||||
.um-admin-notice a.button-secondary {opacity: 0.7}
|
||||
.um-admin-notice a.button-secondary:hover {opacity: 0.9}
|
||||
.um-admin-notice a {text-decoration: none;color: #0085ba}
|
||||
.um-admin-notice a:hover {color: #44b0ec}
|
||||
|
||||
.um-filter {
|
||||
padding: 12px;
|
||||
border-color: #ddd !important;
|
||||
margin: 20px 0 0 0 !important;
|
||||
font-size: 14px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
/*
|
||||
- General metabox styling
|
||||
*/
|
||||
|
||||
#um-admin-access-settings h3 {
|
||||
padding: 10px 20px 10px 60px;
|
||||
color: #fff;
|
||||
background: #0085ba url(../img/logo-small.png) no-repeat 12px center;
|
||||
font-weight: bold;
|
||||
font-size: 14px !important;
|
||||
-webkit-font-smoothing: antialiased !important;
|
||||
-moz-osx-font-smoothing: grayscale !important;
|
||||
}
|
||||
|
||||
#um-admin-access-settings h4 { margin: 10px 0 4px 0!important}
|
||||
|
||||
#um-admin-access-settings div.handlediv {
|
||||
color: #fff !important;
|
||||
-webkit-font-smoothing: antialiased !important;
|
||||
-moz-osx-font-smoothing: grayscale !important;
|
||||
}
|
||||
|
||||
#um-admin-access-settings p {font-size: 13px}
|
||||
|
||||
#um-admin-access-settings input[type=text] {font-size: 13px}
|
||||
|
||||
/*
|
||||
- Nav Menu
|
||||
*/
|
||||
|
||||
.um-nav-edit * {
|
||||
-webkit-font-smoothing: antialiased !important;
|
||||
-moz-osx-font-smoothing: grayscale !important;
|
||||
}
|
||||
|
||||
.um-nav-edit-h2 {
|
||||
padding: 10px 20px 10px 60px;
|
||||
margin: 14px 12px 0 0;
|
||||
border-radius: 3px;
|
||||
color: #fff;
|
||||
background: #0085ba url(../img/logo-small.png) no-repeat 12px center;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.um-nav-mode {margin-top:10px}
|
||||
.um-nav-roles {display: none;margin-top:5px}
|
||||
|
||||
/*
|
||||
- jQuery Tooltips
|
||||
*/
|
||||
|
||||
.um-admin-tip {
|
||||
margin: 0 0 0 2px;
|
||||
color: #0085ba !important;
|
||||
vertical-align: middle;
|
||||
position: relative;
|
||||
top: -3px;
|
||||
opacity: 0.8;
|
||||
}
|
||||
.um-admin-tip.n {margin-left: 5px}
|
||||
.um-admin-tip i {cursor: pointer; vertical-align: middle; font-size: 20px; line-height: 20px;color: #0085ba !important;}
|
||||
a.um-delete{ color: #a00; }
|
||||
|
||||
|
||||
|
||||
/* Roles metabox + table features */
|
||||
.um-metabox-section .description {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.um-metabox-section th {
|
||||
width: 35%;
|
||||
}
|
||||
|
||||
.wp-list-table.roles .column-core,
|
||||
.wp-list-table.roles .column-users,
|
||||
.wp-list-table.roles .column-admin_access,
|
||||
.wp-list-table.roles .column-priority {
|
||||
width:15%;
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 782px) {
|
||||
.wp-list-table.roles .column-core,
|
||||
.wp-list-table.roles .column-users,
|
||||
.wp-list-table.roles .column-admin_access,
|
||||
.wp-list-table.roles .column-priority {
|
||||
text-align: left !important;
|
||||
}
|
||||
}
|
||||
|
||||
#um-admin-form-wp-capabilities .um-metadata-line th {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#um-admin-form-wp-capabilities .um-metadata-line td {
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
#um_edit_role #titlewrap > span {
|
||||
width: 40px;
|
||||
font-size: 24px;
|
||||
float:left;
|
||||
display: block;
|
||||
line-height: 37px;
|
||||
}
|
||||
|
||||
#um-roles .row-actions .reset a {
|
||||
color:#a00;
|
||||
}
|
||||
|
||||
#um-roles .row-actions .reset a:hover {
|
||||
color:red;
|
||||
}
|
||||
|
||||
|
||||
/*Tooltip*/
|
||||
.ui-tooltip.um_tooltip {
|
||||
padding: 8px;
|
||||
color: #eeeeee !important;
|
||||
background: #333 !important;
|
||||
position: absolute;
|
||||
z-index: 1000000;
|
||||
max-width: 300px;
|
||||
font-size: 12px;
|
||||
border-radius: 5px;
|
||||
border: none !important;
|
||||
text-shadow: none !important;
|
||||
}
|
||||
|
||||
.ui-tooltip.um_tooltip a {
|
||||
color: #eeeeee !important;
|
||||
}
|
||||
|
||||
.um_tooltip.dashicons,
|
||||
.um_tooltip.dashicons:before {
|
||||
height:22px;
|
||||
}
|
||||
|
||||
.um_tooltip.dashicons-editor-help::before {
|
||||
float: left;
|
||||
font-size: 20px;
|
||||
line-height: 20px;
|
||||
color: #333 !important;
|
||||
}
|
||||
.um_tooltip {
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.um_tooltip:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.um_tooltip:hover:before {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
|
||||
.wp-admin p.um-nav-roles label input[type=checkbox] {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
.wp-admin p.um-nav-roles label {
|
||||
margin-top: 2px !important;
|
||||
margin-bottom: 2px !important;
|
||||
}
|
||||
|
||||
/*
|
||||
- Restrict access
|
||||
*/
|
||||
|
||||
.um_hidden_notice,
|
||||
.um_block_settings .um_block_settings_hide{
|
||||
display: none;
|
||||
}
|
||||
.um_block_settings .components-select-control .components-select-control__input[multiple]{
|
||||
height: auto;
|
||||
}
|
||||
.um_block_settings .components-select-control .components-select-control__input[multiple] + .components-input-control__suffix{
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after {display: none !important}
|
||||
|
||||
ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{right:-9999999px}
|
||||
@@ -1,163 +1,7 @@
|
||||
/*
|
||||
- Welcome
|
||||
*/
|
||||
|
||||
.um-about-wrap * {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.um-about-wrap a.um-about-icon {
|
||||
margin: 0 0 0 15px !important;
|
||||
padding: 0 !important;
|
||||
text-decoration: none !important;
|
||||
color: #777 !important;
|
||||
font-size: 22px !important;
|
||||
}
|
||||
|
||||
.um-about-wrap a.um-about-icon:hover {color: #0085ba !important}
|
||||
|
||||
.um-badge {
|
||||
color: #fff;
|
||||
background: none !important;
|
||||
background: #0085ba url(../img/logo_small.png) no-repeat center 0px !important;
|
||||
}
|
||||
|
||||
.um-about-wrap .ultimatemember-actions a.button-primary,
|
||||
.um-about-wrap .ultimatemember-actions a.button {
|
||||
vertical-align: top;
|
||||
margin: 0 5px 0 0;
|
||||
}
|
||||
|
||||
.changelog a.button-primary {
|
||||
height: 40px;
|
||||
line-height: 38px;
|
||||
}
|
||||
|
||||
.um-about-wrap a {text-decoration: none}
|
||||
|
||||
/*
|
||||
- General
|
||||
*/
|
||||
|
||||
body.um-admin-modal-open {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.um-admin #major-publishing-actions{background-color: #fff !important;border-top:0}
|
||||
|
||||
.um-admin-hide {display: none}
|
||||
|
||||
.um-admin-field {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.um-admin-field a.button {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
height: 30px !important;
|
||||
}
|
||||
|
||||
.um-admin-half {
|
||||
float: left;
|
||||
width: 48%;
|
||||
}
|
||||
|
||||
.um-admin-tri {
|
||||
float: left;
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
.um-admin-left{float: left}
|
||||
.um-admin-right {float: right}
|
||||
.um-admin-clear {clear: both}
|
||||
|
||||
.um-admin a.um-admin-activebg,
|
||||
.um-admin a.um-admin-activebg:hover{
|
||||
/*background: #3ba1da;*/
|
||||
background: #0085ba;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.um-admin a.button i,
|
||||
.um-admin a.button-primary i {
|
||||
font-size: 15px !important;
|
||||
height: 15px !important;
|
||||
width: 15px !important;
|
||||
text-align: center !important;
|
||||
margin: 0 5px 0 0 !important;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.um-admin a.button i:before,
|
||||
.um-admin a.button-primary i:before {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
|
||||
/*
|
||||
- Form Inputs
|
||||
*/
|
||||
|
||||
.um-admin-metabox h3 {
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-metabox h4 {
|
||||
font-size: 14px;
|
||||
background: #f5f5f5;
|
||||
padding: 8px 4px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.um-admin-metabox p {margin: 10px 0 0 0}
|
||||
|
||||
.um-admin-metabox label{
|
||||
display: block;
|
||||
cursor: default;
|
||||
margin: 0 0 8px 0 !important;
|
||||
padding: 0!important;
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.um-admin-metabox input[type=text]:disabled{
|
||||
opacity: 0.7 !important;
|
||||
color: #aaa !important;
|
||||
}
|
||||
|
||||
.um-admin-metabox input[type=text] {
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
.um-admin-metabox input[type=text],
|
||||
.um-admin-metabox textarea {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
box-sizing: border-box !important;
|
||||
font-size: 13px !important;
|
||||
line-height: 1.4em !important;
|
||||
padding: 4px 10px !important;
|
||||
}
|
||||
|
||||
.um-admin-metabox textarea {
|
||||
padding: 8px !important;
|
||||
line-height: 1.6em;
|
||||
color: #888 !important;
|
||||
}
|
||||
|
||||
.um-admin-metabox input[type=text].um-admin-error,
|
||||
.um-admin-metabox textarea.um-admin-error
|
||||
{border-color: #C74A4A!important}
|
||||
|
||||
.um-admin-metabox input[type=text].small {width: 54px}
|
||||
|
||||
.um-admin-metabox textarea {min-height: 100px;height: 100px}
|
||||
.um-admin-metabox textarea.tall {min-height: 200px;height: 200px}
|
||||
|
||||
.wp-picker-container input.wp-color-picker[type="text"] {
|
||||
width: 68px !important;
|
||||
float: left !important;
|
||||
@@ -165,102 +9,6 @@ body.um-admin-modal-open {
|
||||
border-width: 1px !important;
|
||||
}
|
||||
|
||||
/*
|
||||
- Error blocks
|
||||
*/
|
||||
|
||||
.um-admin-error-block, .um-admin-success-block{
|
||||
display: none;
|
||||
width: 100%;
|
||||
background: #C74A4A;
|
||||
border-radius: 3px;
|
||||
color: #fff;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
padding: 12px;
|
||||
font-size: 13px;
|
||||
line-height: 1em !important;
|
||||
margin: 0 0 16px 0;
|
||||
}
|
||||
|
||||
.um-admin-success-block {
|
||||
background: #7ACF58;
|
||||
}
|
||||
|
||||
/*
|
||||
- Yes or NO UI
|
||||
*/
|
||||
|
||||
p.disabled-on-off .um-admin-yesno {
|
||||
opacity: 0.5!important;
|
||||
cursor: default !important;
|
||||
}
|
||||
p.disabled-on-off .um-admin-yesno *{
|
||||
cursor: default !important;
|
||||
}
|
||||
|
||||
.um-admin-yesno {
|
||||
width: 100px !important;
|
||||
height: 26px;
|
||||
display: block;
|
||||
position: relative;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.um-admin-yesno span.btn {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: -2px;
|
||||
width: 50px;
|
||||
height: 28px;
|
||||
text-align: center;
|
||||
background: #f9f9f9;
|
||||
z-index: 999;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
border: solid 1px #D0D9DB;
|
||||
margin: 0;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-yesno span.btn.pos-1 {left: 48px}
|
||||
|
||||
.um-admin-yesno span.yes, .um-admin-yesno span.no {
|
||||
width: 50px;
|
||||
float: left;
|
||||
line-height: 24px;
|
||||
height: 26px;
|
||||
cursor: default;
|
||||
font-size: 14px;
|
||||
color: #fff;
|
||||
padding: 0 0 0 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.um-admin-yesno .yes {
|
||||
background: #0085ba;
|
||||
border-radius: 3px 0 0 3px;
|
||||
border: 1px solid rgba(0,0,0,.2);
|
||||
}
|
||||
|
||||
.um-admin-yesno .no {
|
||||
padding: 0 10px 0 0 !important;
|
||||
text-align: right;
|
||||
float: right;
|
||||
background: #fff;
|
||||
color: #222 !important;
|
||||
border-radius: 0 3px 3px 0;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.um-admin.users-php .subsubsub li.subsep {
|
||||
display: block;
|
||||
visibility: hidden;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.um-admin-cur-condition-template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
.um-admin-yesno span.yes, .um-admin-yesno span.no {
|
||||
padding: 0 10px 0 0;
|
||||
}
|
||||
|
||||
.um-admin-drag-ctrls-demo.um-admin-drag-ctrls {
|
||||
left: 12px;
|
||||
right: auto;
|
||||
@@ -68,4 +64,4 @@
|
||||
|
||||
.um-form-fields-section label input {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,31 +242,6 @@ th.column-email.column-primary {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
.email_template_wrapper .copy_button_overlay {
|
||||
position:absolute;
|
||||
top:0;
|
||||
bottom:0;
|
||||
width:calc( 100% - 30px );
|
||||
z-index: 2;
|
||||
background: rgba( 241, 241, 241, 0.95 );
|
||||
text-align: center;
|
||||
padding-top: 30%;
|
||||
padding-right: 20px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.email_template_wrapper .copy_button_overlay > span {
|
||||
color: #444;
|
||||
margin: 0 0 15px 0;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.email_template_wrapper.in_theme .copy_button_overlay {
|
||||
display: none !important;
|
||||
}
|
||||
*/
|
||||
|
||||
.um_setting_ajax_button_response.complete {
|
||||
color:darkgreen;
|
||||
font-style: italic;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -28,10 +28,6 @@ function um_builder_delete_field_ajax( callback ) {
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
jQuery(document).ajaxStart( function() {
|
||||
jQuery('.tipsy').hide();
|
||||
});
|
||||
|
||||
jQuery( document.body ).on('click', 'a[data-silent_action^="um_"]', function() {
|
||||
if ( typeof jQuery(this).attr('disabled') !== 'undefined' ) {
|
||||
return false;
|
||||
@@ -54,8 +50,6 @@ jQuery(document).ready(function() {
|
||||
in_group = demon_settings.data('in_group');
|
||||
}
|
||||
|
||||
jQuery('.tipsy').hide();
|
||||
|
||||
um_admin_remove_modal();
|
||||
jQuery.ajax({
|
||||
url: wp.ajax.settings.url,
|
||||
|
||||
@@ -1,197 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
var um_components = wp.components,
|
||||
umSelectControl = um_components.SelectControl,
|
||||
umTextareaControl = um_components.TextareaControl;
|
||||
|
||||
|
||||
function um_admin_blocks_custom_fields( um_condition_fields, props ) {
|
||||
return wp.hooks.applyFilters( 'um_admin_blocks_custom_fields', [], um_condition_fields, props );
|
||||
}
|
||||
|
||||
var um_block_restriction = wp.compose.createHigherOrderComponent(
|
||||
function( BlockEdit ) {
|
||||
var um_condition_fields = {
|
||||
um_who_access: 'um_block_settings_hide',
|
||||
um_roles_access: 'um_block_settings_hide',
|
||||
um_message_type: 'um_block_settings_hide',
|
||||
um_message_content: 'um_block_settings_hide'
|
||||
};
|
||||
|
||||
um_condition_fields = wp.hooks.applyFilters( 'um_admin_blocks_condition_fields_default', um_condition_fields );
|
||||
|
||||
return function( props ) {
|
||||
let initialIsRestrict = props.attributes.um_is_restrict !== undefined ? props.attributes.um_is_restrict : false;
|
||||
|
||||
if ( props.attributes.um_is_restrict !== true ) {
|
||||
um_condition_fields['um_who_access'] = 'um_block_settings_hide';
|
||||
um_condition_fields['um_roles_access'] = 'um_block_settings_hide';
|
||||
um_condition_fields['um_message_type'] = 'um_block_settings_hide';
|
||||
um_condition_fields['um_message_content'] = 'um_block_settings_hide';
|
||||
} else {
|
||||
um_condition_fields['um_who_access'] = '';
|
||||
|
||||
if ( parseInt( props.attributes.um_who_access ) === 0 || typeof props.attributes.um_who_access === 'undefined' ) {
|
||||
um_condition_fields['um_roles_access'] = 'um_block_settings_hide';
|
||||
um_condition_fields['um_message_type'] = 'um_block_settings_hide';
|
||||
um_condition_fields['um_message_content'] = 'um_block_settings_hide';
|
||||
} else if ( parseInt( props.attributes.um_who_access ) === 1 ) {
|
||||
um_condition_fields['um_roles_access'] = '';
|
||||
um_condition_fields['um_message_type'] = '';
|
||||
|
||||
if ( parseInt( props.attributes.um_message_type ) === 2 ) {
|
||||
um_condition_fields['um_message_content'] = '';
|
||||
} else {
|
||||
um_condition_fields['um_message_content'] = 'um_block_settings_hide';
|
||||
}
|
||||
} else {
|
||||
um_condition_fields['um_message_type'] = '';
|
||||
|
||||
if ( parseInt( props.attributes.um_message_type ) === 2 ) {
|
||||
um_condition_fields['um_message_content'] = '';
|
||||
} else {
|
||||
um_condition_fields['um_message_content'] = 'um_block_settings_hide';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
um_condition_fields = wp.hooks.applyFilters( 'um_admin_blocks_condition_fields', um_condition_fields, props );
|
||||
|
||||
return wp.element.createElement(
|
||||
wp.element.Fragment,
|
||||
{},
|
||||
wp.element.createElement( BlockEdit, props ),
|
||||
wp.element.createElement(
|
||||
wp.blockEditor.InspectorControls,
|
||||
{},
|
||||
wp.element.createElement(
|
||||
wp.components.PanelBody,
|
||||
{
|
||||
title: wp.i18n.__( 'Ultimate Member: Content Restriction', 'ultimate-member' ),
|
||||
className: 'um_block_settings'
|
||||
},
|
||||
wp.element.createElement(
|
||||
wp.components.ToggleControl,
|
||||
{
|
||||
label: wp.i18n.__( 'Restrict access?', 'ultimate-member' ),
|
||||
checked: initialIsRestrict,
|
||||
onChange: function onChange( value ) {
|
||||
props.setAttributes( { um_is_restrict: value } );
|
||||
if ( value === false ) {
|
||||
um_condition_fields['um_who_access'] = 'um_block_settings_hide';
|
||||
um_condition_fields['um_roles_access'] = 'um_block_settings_hide';
|
||||
um_condition_fields['um_message_type'] = 'um_block_settings_hide';
|
||||
um_condition_fields['um_message_content'] = 'um_block_settings_hide';
|
||||
} else {
|
||||
um_condition_fields['um_who_access'] = '';
|
||||
}
|
||||
|
||||
um_condition_fields = wp.hooks.applyFilters( 'um_admin_blocks_condition_fields_on_change', um_condition_fields, 'um_is_restrict', value );
|
||||
}
|
||||
}
|
||||
),
|
||||
wp.element.createElement(
|
||||
umSelectControl,
|
||||
{
|
||||
type: 'number',
|
||||
className: um_condition_fields['um_who_access'],
|
||||
label: wp.i18n.__( 'Who can access this block?', 'ultimate-member' ),
|
||||
value: props.attributes.um_who_access,
|
||||
options: [
|
||||
{
|
||||
label: wp.i18n.__( 'Everyone', 'ultimate-member' ),
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
label: wp.i18n.__( 'Logged in users', 'ultimate-member' ),
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
label: wp.i18n.__( 'Logged out users', 'ultimate-member' ),
|
||||
value: 2
|
||||
}
|
||||
],
|
||||
onChange: function onChange( value ) {
|
||||
props.setAttributes( { um_who_access: value } );
|
||||
if ( parseInt( value ) === 0 ) {
|
||||
um_condition_fields['um_message_type'] = 'um_block_settings_hide';
|
||||
um_condition_fields['um_message_content'] = 'um_block_settings_hide';
|
||||
um_condition_fields['um_roles_access'] = 'um_block_settings_hide';
|
||||
} else if ( parseInt( value ) === 1 ) {
|
||||
um_condition_fields['um_message_type'] = '';
|
||||
um_condition_fields['um_roles_access'] = '';
|
||||
} else {
|
||||
um_condition_fields['um_message_type'] = '';
|
||||
um_condition_fields['um_roles_access'] = 'um_block_settings_hide';
|
||||
}
|
||||
|
||||
um_condition_fields = wp.hooks.applyFilters( 'um_admin_blocks_condition_fields_on_change', um_condition_fields, 'um_who_access', value );
|
||||
}
|
||||
}
|
||||
),
|
||||
wp.element.createElement(
|
||||
umSelectControl,
|
||||
{
|
||||
multiple: true,
|
||||
className: um_condition_fields['um_roles_access'],
|
||||
label: wp.i18n.__( 'What roles can access this block?', 'ultimate-member' ),
|
||||
value: props.attributes.um_roles_access,
|
||||
options: um_restrict_roles,
|
||||
onChange: function onChange( value ) {
|
||||
props.setAttributes( { um_roles_access: value } );
|
||||
}
|
||||
}
|
||||
),
|
||||
wp.element.createElement(
|
||||
umSelectControl,
|
||||
{
|
||||
type: 'number',
|
||||
className: um_condition_fields['um_message_type'],
|
||||
label: wp.i18n.__( 'Restriction action', 'ultimate-member' ),
|
||||
value: props.attributes.um_message_type,
|
||||
options: [
|
||||
{
|
||||
label: wp.i18n.__( 'Hide block', 'ultimate-member' ),
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
label: wp.i18n.__( 'Show global default message', 'ultimate-member' ),
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
label: wp.i18n.__( 'Show custom message', 'ultimate-member' ),
|
||||
value: 2
|
||||
}
|
||||
],
|
||||
onChange: function onChange( value ) {
|
||||
props.setAttributes( { um_message_type: value } );
|
||||
if ( parseInt( value ) === 2 ) {
|
||||
um_condition_fields['um_message_content'] = '';
|
||||
} else {
|
||||
um_condition_fields['um_message_content'] = 'um_block_settings_hide';
|
||||
}
|
||||
}
|
||||
}
|
||||
),
|
||||
wp.element.createElement(
|
||||
umTextareaControl,
|
||||
{
|
||||
type: 'number',
|
||||
className: um_condition_fields['um_message_content'],
|
||||
label: wp.i18n.__( 'Custom restricted access message', 'ultimate-member' ),
|
||||
value: props.attributes.um_message_content,
|
||||
onChange: function onChange( value ) {
|
||||
props.setAttributes( { um_message_content: value } );
|
||||
}
|
||||
}
|
||||
),
|
||||
um_admin_blocks_custom_fields( um_condition_fields, props )
|
||||
)
|
||||
)
|
||||
);
|
||||
};
|
||||
},
|
||||
'um_block_restriction'
|
||||
);
|
||||
|
||||
wp.hooks.addFilter( 'editor.BlockEdit', 'um-block/um_block_restriction', um_block_restriction );
|
||||
@@ -1,45 +0,0 @@
|
||||
/**
|
||||
* This function updates the builder area with fields
|
||||
*
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function um_admin_update_builder() {
|
||||
var form_id = jQuery('.um-admin-builder').data('form_id');
|
||||
|
||||
jQuery('.tipsy').hide();
|
||||
|
||||
jQuery.ajax({
|
||||
url: wp.ajax.settings.url,
|
||||
type: 'POST',
|
||||
data: {
|
||||
action:'um_update_builder',
|
||||
form_id: form_id,
|
||||
nonce: um_admin_scripts.nonce
|
||||
},
|
||||
success: function( data ) {
|
||||
jQuery('.um-admin-drag-ajax').html( data );
|
||||
jQuery('.tipsy').hide();
|
||||
|
||||
/* trigger columns at start */
|
||||
allow_update_via_col_click = false;
|
||||
jQuery('.um-admin-drag-ctrls.columns a.active').each( function() {
|
||||
jQuery(this).trigger('click');
|
||||
}).promise().done( function(){
|
||||
allow_update_via_col_click = true;
|
||||
});
|
||||
|
||||
UM_Rows_Refresh();
|
||||
},
|
||||
error: function( data ) {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
jQuery( document ).ready( function() {
|
||||
if ( um_admin_builder_data.hide_footer ) {
|
||||
jQuery('#wpfooter').hide();
|
||||
}
|
||||
});
|
||||
@@ -85,7 +85,7 @@ function UM_Drag_and_Drop() {
|
||||
placeholder: "um-row-placeholder",
|
||||
forcePlaceholderSize:true,
|
||||
out: function(){
|
||||
jQuery('.tipsy').remove();
|
||||
UM.common.tipsy.hide();
|
||||
},
|
||||
update: function(){
|
||||
|
||||
@@ -110,7 +110,7 @@ function UM_update_rows() {
|
||||
c++;
|
||||
row = jQuery(this);
|
||||
if ( c != 1 ) {
|
||||
row.find('.um-admin-drag-row-icons').append( '<a href="#" class="um-admin-tipsy-n" title="Delete Row" data-remove_element="um-admin-drag-row"><i class="um-faicon-trash-o"></i></a>' );
|
||||
row.find('.um-admin-drag-row-icons').append( '<a href="#" class="um-tip-n" title="Delete Row" data-remove_element="um-admin-drag-row"><i class="um-faicon-trash-o"></i></a>' );
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -123,7 +123,7 @@ function UM_update_subrows(){
|
||||
c++;
|
||||
row = jQuery(this);
|
||||
if ( c != 1 ) {
|
||||
row.find('.um-admin-drag-rowsub-icons').append('<a href="#" class="um-admin-tipsy-n" title="Delete Row" data-remove_element="um-admin-drag-rowsub"><i class="um-faicon-trash-o"></i></a>');
|
||||
row.find('.um-admin-drag-rowsub-icons').append('<a href="#" class="um-tip-n" title="Delete Row" data-remove_element="um-admin-drag-rowsub"><i class="um-faicon-trash-o"></i></a>');
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -267,7 +267,7 @@ function UM_Rows_Refresh(){
|
||||
|
||||
function UM_Add_Icon(){
|
||||
|
||||
var add_icon_html = '<a href="#" class="um-admin-drag-add-field um-admin-tipsy-n" title="Add Field" data-modal="UM_fields" data-modal-size="normal" data-dynamic-content="um_admin_show_fields" data-arg2="'+jQuery('.um-admin-drag-ajax').data('form_id')+'" data-arg1=""><i class="um-icon-plus"></i></a>';
|
||||
var add_icon_html = '<a href="#" class="um-admin-drag-add-field um-tip-n" title="Add Field" data-modal="UM_fields" data-modal-size="normal" data-dynamic-content="um_admin_show_fields" data-arg2="'+jQuery('.um-admin-drag-ajax').data('form_id')+'" data-arg1=""><i class="um-icon-plus"></i></a>';
|
||||
|
||||
jQuery('.um-admin-drag-col').each(function(){
|
||||
if ( jQuery(this).find('.um-admin-drag-add-field').length == 0 ) {
|
||||
@@ -377,8 +377,8 @@ jQuery(document).ready(function() {
|
||||
|
||||
if ( UM.admin.builder.fieldsToDelete.length > 0 ) {
|
||||
um_builder_delete_field_ajax( function () {
|
||||
UM.common.tipsy.hide();
|
||||
deleteButton.parents('.' +element).remove();
|
||||
jQuery('.tipsy').remove();
|
||||
UM_Rows_Refresh();
|
||||
|
||||
jQuery.each( UM.admin.builder.deleteProcess, function(i) {
|
||||
@@ -391,8 +391,8 @@ jQuery(document).ready(function() {
|
||||
loadingWrapper.hide();
|
||||
} );
|
||||
} else {
|
||||
UM.common.tipsy.hide();
|
||||
jQuery(this).parents('.' +element).remove();
|
||||
jQuery('.tipsy').remove();
|
||||
UM_Rows_Refresh();
|
||||
|
||||
jQuery.each( UM.admin.builder.deleteProcess, function(i) {
|
||||
|
||||
@@ -91,7 +91,7 @@ jQuery(document).ready(function() {
|
||||
um_admin_modal_responsive();
|
||||
} else {
|
||||
jQuery('.um-col-demon-settings').data('in_row', '').data('in_sub_row', '').data('in_column', '').data('in_group', '');
|
||||
jQuery('.tipsy').hide();
|
||||
UM.common.tipsy.hide();
|
||||
um_admin_remove_modal();
|
||||
um_admin_update_builder();
|
||||
}
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
function um_form_select_tab( tab, set_val ) {
|
||||
var mode_block = jQuery('input#form__um_mode');
|
||||
tab.parents('.um-admin-boxed-links').find('a').removeClass('um-admin-activebg');
|
||||
tab.addClass('um-admin-activebg');
|
||||
|
||||
jQuery('.um-admin div#side-sortables').show();
|
||||
jQuery('div[id^="um-admin-form"]').hide();
|
||||
jQuery('#submitdiv').show();
|
||||
jQuery('div#um-admin-form-mode,div#um-admin-form-title,div#um-admin-form-builder,div#um-admin-form-shortcode').show();
|
||||
jQuery('div[id^="um-admin-form-' + tab.data('role') + '"]').show();
|
||||
|
||||
if ( set_val ) {
|
||||
mode_block.val( tab.data('role') );
|
||||
}
|
||||
|
||||
jQuery('.empty-container').css({'border' : 'none'});
|
||||
jQuery('.um-admin-builder').removeClass().addClass( 'um-admin-builder ' + mode_block.val() );
|
||||
}
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
/* Default form tab */
|
||||
if ( jQuery('.um-admin-boxed-links').length > 0 ) {
|
||||
var tab = jQuery('.um-admin-boxed-links a[data-role="'+jQuery('input#form__um_mode').val()+'"]');
|
||||
um_form_select_tab( tab, false );
|
||||
}
|
||||
|
||||
|
||||
/* Creating new form button */
|
||||
jQuery('.um-admin-boxed-links:not(.is-core-form) a').on( 'click', function() {
|
||||
um_form_select_tab( jQuery(this), true );
|
||||
});
|
||||
});
|
||||
@@ -1,64 +0,0 @@
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
|
||||
jQuery(document.body).on('click', '#um_add_review_love', function (e) {
|
||||
jQuery(this).parents('#um_start_review_notice').hide();
|
||||
jQuery('.um_hidden_notice[data-key="love"]').show();
|
||||
});
|
||||
|
||||
|
||||
jQuery(document.body).on('click', '#um_add_review_good', function (e) {
|
||||
jQuery(this).parents('#um_start_review_notice').hide();
|
||||
jQuery('.um_hidden_notice[data-key="good"]').show();
|
||||
});
|
||||
|
||||
|
||||
jQuery(document.body).on('click', '#um_add_review_bad', function (e) {
|
||||
jQuery(this).parents('#um_start_review_notice').hide();
|
||||
jQuery('.um_hidden_notice[data-key="bad"]').show();
|
||||
});
|
||||
|
||||
|
||||
jQuery(document.body).on('click', '.um_review_link', function (e) {
|
||||
jQuery(this).parents('.um-admin-notice').find( '.notice-dismiss' ).trigger('click');
|
||||
});
|
||||
|
||||
|
||||
jQuery(document.body).on('click', '.um_secondary_dimiss', function (e) {
|
||||
jQuery(this).parents('.um-admin-notice').find( '.notice-dismiss' ).trigger('click');
|
||||
});
|
||||
|
||||
|
||||
jQuery(document.body).on( 'click', '.um-admin-notice.is-dismissible .notice-dismiss', function(e) {
|
||||
var notice_key = jQuery(this).parents('.um-admin-notice').data('key');
|
||||
|
||||
wp.ajax.send( 'um_dismiss_notice', {
|
||||
data: {
|
||||
key: notice_key,
|
||||
nonce: um_admin_scripts.nonce
|
||||
},
|
||||
success: function( data ) {
|
||||
return true;
|
||||
},
|
||||
error: function( data ) {
|
||||
um_admin_dismiss_notice_fallback( notice_key );
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
/**
|
||||
* Dismiss fallback of ajax request
|
||||
*/
|
||||
function um_admin_dismiss_notice_fallback( notice_key ) {
|
||||
var href_index = "";
|
||||
if ( window.location.href.indexOf("?") > -1 ) {
|
||||
href_index = window.location.href + "&";
|
||||
} else {
|
||||
href_index = window.location.href + "?";
|
||||
}
|
||||
window.location.href = href_index + "um_dismiss_notice=" + notice_key + "&um_admin_nonce=" + um_admin_scripts.nonce;
|
||||
}
|
||||
@@ -14,7 +14,7 @@ function um_admin_live_update_scripts() {
|
||||
function um_admin_new_modal( id, ajax, size ) {
|
||||
var modal = jQuery('body').find('.um-admin-overlay');
|
||||
|
||||
jQuery('.tipsy').hide();
|
||||
UM.common.tipsy.hide();
|
||||
|
||||
um_admin_remove_modal();
|
||||
|
||||
@@ -146,9 +146,8 @@ function um_admin_modal_ajaxcall( act_id, arg1, arg2, arg3 ) {
|
||||
jQuery('.um-admin-preview-overlay').css('height', jQuery('.um-admin-preview-overlay').siblings('.um').outerHeight(true)*1 + 20 + 'px' );
|
||||
}
|
||||
|
||||
um_init_tooltips();
|
||||
|
||||
um_admin_init_datetimepicker();
|
||||
UM.admin.tooltip.init();
|
||||
UM.admin.datetimePicker.init();
|
||||
},
|
||||
error: function(data) {
|
||||
|
||||
@@ -199,10 +198,8 @@ function um_admin_remove_modal() {
|
||||
jQuery('.um_tiny_placeholder').replaceWith( jQuery( $um_tiny_editor ).html() );
|
||||
}
|
||||
|
||||
if ( 'undefined' !== typeof window.UM.admin.allTooltips && window.UM.admin.allTooltips.length > 0 && 'function' === typeof window.UM.admin.allTooltips.tooltip ) {
|
||||
window.UM.admin.allTooltips.tooltip('close');
|
||||
}
|
||||
jQuery('.tipsy').hide();
|
||||
UM.admin.tooltip.close();
|
||||
UM.common.tipsy.hide();
|
||||
jQuery('body').removeClass('um-admin-modal-open');
|
||||
jQuery('.um-admin-modal div[id^="UM_"]').hide().appendTo('body');
|
||||
jQuery('.um-admin-modal,.um-admin-overlay').remove();
|
||||
@@ -322,7 +319,7 @@ jQuery(document).ready(function() {
|
||||
jQuery(document.body).on('click', '.um-admin-remove-condition', function(){
|
||||
var condition = jQuery(this).parents('.um-admin-cur-condition');
|
||||
jQuery('.um-admin-new-condition').removeClass('disabled');
|
||||
jQuery('.tipsy').remove();
|
||||
UM.common.tipsy.hide();
|
||||
condition.remove();
|
||||
//need fields refactor
|
||||
var conditions = jQuery('.um-admin-cur-condition');
|
||||
@@ -345,7 +342,7 @@ jQuery(document).ready(function() {
|
||||
remove modal via action
|
||||
**/
|
||||
jQuery(document.body).on('click', '.um-admin-overlay, a[data-action="UM_remove_modal"]', function(){
|
||||
jQuery('.tipsy').hide();
|
||||
UM.common.tipsy.hide();
|
||||
um_admin_remove_modal();
|
||||
});
|
||||
|
||||
@@ -406,7 +403,7 @@ jQuery(document).ready(function() {
|
||||
}
|
||||
jQuery(this).attr('data-code', '');
|
||||
if ( v_id == '.postbox' ) {
|
||||
jQuery('.tipsy').hide();
|
||||
UM.common.tipsy.hide();
|
||||
um_admin_remove_modal();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
jQuery(document).ready(function ($) {
|
||||
var template = wp.template( 'um-nav-menus-fields' );
|
||||
|
||||
$( document ).on( 'menu-item-added', function ( e, $menuMarkup ) {
|
||||
var id = $( $menuMarkup ).attr('id').substr(10);
|
||||
|
||||
var template_content = template({
|
||||
menuItemID: id,
|
||||
restriction_data:{
|
||||
um_nav_public:0,
|
||||
um_nav_roles:[]
|
||||
}
|
||||
});
|
||||
|
||||
if ( $( $menuMarkup ).find( 'fieldset.field-move' ).length > 0 ) {
|
||||
$( $menuMarkup ).find( 'fieldset.field-move' ).before( template_content );
|
||||
} else {
|
||||
$( $menuMarkup ).find( '.menu-item-actions' ).before( template_content );
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$( 'ul#menu-to-edit > li' ).each( function(){
|
||||
var id = $(this).attr('id').substr(10);
|
||||
var template_content = template({
|
||||
menuItemID: id,
|
||||
restriction_data: um_menu_restriction_data[ id ]
|
||||
});
|
||||
|
||||
if ( $( this ).find( 'fieldset.field-move' ).length > 0 ) {
|
||||
$( this ).find( 'fieldset.field-move' ).before( template_content );
|
||||
} else {
|
||||
$( this ).find( '.menu-item-actions' ).before( template_content );
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1,42 +0,0 @@
|
||||
jQuery( document ).ready( function() {
|
||||
|
||||
jQuery( '#role' ).on('change', function() {
|
||||
|
||||
if ( typeof um_roles == 'object' ) {
|
||||
um_roles = Object.keys( um_roles ).map(function( key ) { return um_roles[ key ]; });
|
||||
}
|
||||
|
||||
if ( jQuery.inArray( jQuery(this).val().substr(3), um_roles ) !== -1 ) {
|
||||
jQuery( '#um_role_selector_wrapper' ).hide();
|
||||
jQuery( '#um-role' ).val('');
|
||||
|
||||
var hide = wp.hooks.applyFilters( 'um_user_screen_block_hiding', true );
|
||||
if ( hide ) {
|
||||
jQuery( '#um_user_screen_block' ).hide();
|
||||
}
|
||||
} else {
|
||||
jQuery( '#um_role_selector_wrapper' ).show();
|
||||
jQuery( '#um_user_screen_block' ).show();
|
||||
}
|
||||
}).trigger('change');
|
||||
|
||||
jQuery( '#adduser-role' ).on('change', function() {
|
||||
if ( typeof um_roles == 'object' ) {
|
||||
um_roles = Object.keys( um_roles ).map(function( key ) { return um_roles[ key ]; });
|
||||
}
|
||||
|
||||
if ( jQuery.inArray( jQuery(this).val().substr(3), um_roles ) !== -1 ) {
|
||||
jQuery( '#um_role_existing_selector_wrapper' ).hide();
|
||||
jQuery( '#um-role' ).val('');
|
||||
|
||||
var hide = wp.hooks.applyFilters( 'um_user_screen_block_hiding', true );
|
||||
if ( hide ) {
|
||||
jQuery( '#um_user_screen_block' ).hide();
|
||||
}
|
||||
} else {
|
||||
jQuery( '#um_role_existing_selector_wrapper' ).show();
|
||||
jQuery( '#um_user_screen_block' ).show();
|
||||
}
|
||||
}).trigger('change');
|
||||
|
||||
});
|
||||
@@ -1,286 +0,0 @@
|
||||
if ( typeof (window.UM) !== 'object' ) {
|
||||
window.UM = {};
|
||||
}
|
||||
|
||||
if ( typeof (window.UM.admin) !== 'object' ) {
|
||||
window.UM.admin = {};
|
||||
}
|
||||
|
||||
function um_admin_init_datetimepicker() {
|
||||
jQuery('.um-datepicker:not(.picker__input)').each(function(){
|
||||
elem = jQuery(this);
|
||||
|
||||
if ( typeof elem.attr('data-disabled_weekdays') != 'undefined' && elem.attr('data-disabled_weekdays') != '' ) {
|
||||
var disable = JSON.parse( elem.attr('data-disabled_weekdays') );
|
||||
} else {
|
||||
var disable = false;
|
||||
}
|
||||
|
||||
var years_n = null;
|
||||
if ( typeof elem.attr('data-years') != 'undefined' ) {
|
||||
years_n = elem.attr('data-years');
|
||||
}
|
||||
|
||||
var minRange = elem.attr('data-date_min');
|
||||
var maxRange = elem.attr('data-date_max');
|
||||
|
||||
var minSplit = [], maxSplit = [];
|
||||
if ( typeof minRange != 'undefined' ) {
|
||||
minSplit = minRange.split(",");
|
||||
}
|
||||
if ( typeof maxRange != 'undefined' ) {
|
||||
maxSplit = maxRange.split(",");
|
||||
}
|
||||
|
||||
var min = minSplit.length ? new Date(minSplit) : null;
|
||||
var max = minSplit.length ? new Date(maxSplit) : null;
|
||||
|
||||
// fix min date for safari
|
||||
if ( min && min.toString() == 'Invalid Date' && minSplit.length == 3 ) {
|
||||
var minDateString = minSplit[1] + '/' + minSplit[2] + '/' + minSplit[0];
|
||||
min = new Date(Date.parse(minDateString));
|
||||
}
|
||||
|
||||
// fix max date for safari
|
||||
if ( max && max.toString() == 'Invalid Date' && maxSplit.length == 3 ) {
|
||||
var maxDateString = maxSplit[1] + '/' + maxSplit[2] + '/' + maxSplit[0];
|
||||
max = new Date(Date.parse(maxDateString));
|
||||
}
|
||||
|
||||
var data = {
|
||||
disable: disable,
|
||||
format: elem.attr( 'data-format' ),
|
||||
formatSubmit: 'yyyy/mm/dd',
|
||||
hiddenName: true,
|
||||
onOpen: function() { elem.blur(); },
|
||||
onClose: function() { elem.blur(); }
|
||||
};
|
||||
|
||||
if ( years_n !== null ) {
|
||||
data.selectYears = years_n;
|
||||
}
|
||||
|
||||
if ( min !== null ) {
|
||||
data.min = min;
|
||||
}
|
||||
|
||||
if ( max !== null ) {
|
||||
data.max = max;
|
||||
}
|
||||
|
||||
elem.pickadate( data );
|
||||
});
|
||||
|
||||
jQuery('.um-timepicker:not(.picker__input)').each(function(){
|
||||
elem = jQuery(this);
|
||||
|
||||
elem.pickatime({
|
||||
format: elem.attr('data-format'),
|
||||
interval: parseInt( elem.attr('data-intervals') ),
|
||||
formatSubmit: 'HH:i',
|
||||
hiddenName: true,
|
||||
onOpen: function() { elem.blur(); },
|
||||
onClose: function() { elem.blur(); }
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function um_init_tooltips() {
|
||||
if ( jQuery( '.um_tooltip' ).length > 0 ) {
|
||||
window.UM.admin.allTooltips = jQuery( '.um_tooltip' ).tooltip({
|
||||
tooltipClass: "um_tooltip",
|
||||
content: function () {
|
||||
return jQuery( this ).attr( 'title' );
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
/**
|
||||
clone a field dropdown
|
||||
**/
|
||||
jQuery(document.body).on('click', '.um-admin-clone', function(e){
|
||||
e.preventDefault();
|
||||
var container = jQuery(this).parents('.um-admin-field');
|
||||
var parent = jQuery(this).parents('p').find('.um-admin-field:last-child');
|
||||
container.find('select').select2('destroy');
|
||||
var cloned = container.clone();
|
||||
cloned.find('.um-admin-clone').replaceWith('<a href="#" class="um-admin-clone-remove button um-admin-tipsy-n" title="Remove Field"><i class="um-icon-close" style="margin-right:0!important"></i></a>');
|
||||
cloned.insertAfter( parent );
|
||||
cloned.find('select').val('');
|
||||
jQuery('.um-admin-field select').select2({
|
||||
allowClear: true,
|
||||
minimumResultsForSearch: 10
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
/**
|
||||
remove a field dropdown
|
||||
**/
|
||||
jQuery(document.body).on('click', '.um-admin-clone-remove', function(e){
|
||||
e.preventDefault();
|
||||
var container = jQuery(this).parents('.um-admin-field');
|
||||
jQuery('.tipsy').remove();
|
||||
container.remove();
|
||||
jQuery('.um-admin-field select').select2({
|
||||
allowClear: true,
|
||||
minimumResultsForSearch: 10
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
/**
|
||||
Ajax link
|
||||
**/
|
||||
jQuery('.um-admin-ajaxlink').on('click', function(e){
|
||||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
|
||||
/**
|
||||
On/Off Buttons
|
||||
**/
|
||||
jQuery(document.body).on('click', '.um-admin-yesno span.btn', function(){
|
||||
if (!jQuery(this).parents('p').hasClass('disabled-on-off')){
|
||||
if ( jQuery(this).parent().find('input[type=hidden]').val() == 0 ){
|
||||
update_val = 1;
|
||||
jQuery(this).animate({'left': '48px'}, 200);
|
||||
jQuery(this).parent().find('input[type=hidden]').val( update_val ).trigger('change');
|
||||
} else {
|
||||
update_val = 0;
|
||||
jQuery(this).animate({'left': '0'}, 200);
|
||||
jQuery(this).parent().find('input[type=hidden]').val( update_val ).trigger('change');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
WP Color Picker
|
||||
**/
|
||||
if ( jQuery('.um-admin-colorpicker').length ) {
|
||||
jQuery('.um-admin-colorpicker').wpColorPicker();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Tooltips
|
||||
**/
|
||||
um_init_tooltips();
|
||||
|
||||
if( typeof tipsy !== 'undefined' ){
|
||||
jQuery('.um-admin-tipsy-n').tipsy({gravity: 'n', opacity: 1, live: 'a.live' });
|
||||
jQuery('.um-admin-tipsy-w').tipsy({gravity: 'w', opacity: 1, live: 'a.live' });
|
||||
jQuery('.um-admin-tipsy-e').tipsy({gravity: 'e', opacity: 1, live: 'a.live' });
|
||||
jQuery('.um-admin-tipsy-s').tipsy({gravity: 's', opacity: 1, live: 'a.live' });
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Conditional fields
|
||||
**/
|
||||
jQuery( document.body ).on('change', '.um-adm-conditional', function(){
|
||||
|
||||
var value;
|
||||
if ( jQuery(this).attr("type") == 'checkbox' ) {
|
||||
value = jQuery(this).is(':checked') ? 1 : 0;
|
||||
} else {
|
||||
value = jQuery(this).val();
|
||||
}
|
||||
|
||||
if ( jQuery(this).data('cond1') ) {
|
||||
if ( value == jQuery(this).data('cond1') ) {
|
||||
jQuery('.' + jQuery(this).data('cond1-show') ).show();
|
||||
jQuery('.' + jQuery(this).data('cond1-hide') ).hide();
|
||||
|
||||
if ( jQuery(this).data('cond1-show') == '_roles' ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
} else {
|
||||
jQuery('.' + jQuery(this).data('cond1-show') ).hide();
|
||||
jQuery('.' + jQuery(this).data('cond1-hide') ).show();
|
||||
}
|
||||
}
|
||||
|
||||
if ( jQuery(this).data('cond2') ) {
|
||||
if ( value == jQuery(this).data('cond2') ) {
|
||||
jQuery('.' + jQuery(this).data('cond2-show') ).show();
|
||||
jQuery('.' + jQuery(this).data('cond2-hide') ).hide();
|
||||
|
||||
if ( jQuery(this).data('cond2-show') == '_roles' ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
} else {
|
||||
jQuery('.' + jQuery(this).data('cond2-show') ).hide();
|
||||
jQuery('.' + jQuery(this).data('cond2-hide') ).show();
|
||||
}
|
||||
}
|
||||
|
||||
if ( jQuery(this).data('cond3') ) {
|
||||
if ( value == jQuery(this).data('cond3') ) {
|
||||
jQuery('.' + jQuery(this).data('cond3-show') ).show();
|
||||
jQuery('.' + jQuery(this).data('cond3-hide') ).hide();
|
||||
} else {
|
||||
jQuery('.' + jQuery(this).data('cond3-show') ).hide();
|
||||
jQuery('.' + jQuery(this).data('cond3-hide') ).show();
|
||||
}
|
||||
}
|
||||
|
||||
});jQuery('.um-adm-conditional').each(function(){jQuery(this).trigger('change');});
|
||||
|
||||
/**
|
||||
Conditional fields for
|
||||
Radio Group
|
||||
**/
|
||||
jQuery('.um-conditional-radio-group input[type=radio]').on('click', function(){
|
||||
var holder = jQuery('.um-conditional-radio-group');
|
||||
|
||||
var val = jQuery(this).val();
|
||||
var cond1 = holder.data('cond1');
|
||||
var show1 = holder.data('cond1-show');
|
||||
if ( val == cond1 ) { // condition met
|
||||
jQuery('.' + show1).show();
|
||||
} else {
|
||||
jQuery('.' + show1).hide();
|
||||
}
|
||||
|
||||
var val2 = jQuery(this).val();
|
||||
var cond2 = holder.data('cond2');
|
||||
var show2 = holder.data('cond2-show');
|
||||
if ( val2 == cond2 ) { // condition met
|
||||
jQuery('.' + show2).show();
|
||||
} else {
|
||||
jQuery('.' + show2).hide();
|
||||
}
|
||||
|
||||
});jQuery('.um-conditional-radio-group input[type=radio]:checked').each(function(){jQuery(this).trigger('click');});
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Conditional fields for
|
||||
nav-menu editor options
|
||||
**/
|
||||
|
||||
jQuery('.um-nav-mode').each( function() {
|
||||
if ( jQuery(this).find('select').val() == 2 ) {
|
||||
jQuery(this).parents('.um-nav-edit').find('.um-nav-roles').show();
|
||||
} else {
|
||||
jQuery(this).parents('.um-nav-edit').find('.um-nav-roles').hide();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
jQuery( document.body ).on('change', '.um-nav-mode select', function(){
|
||||
if ( jQuery(this).val() == 2 ) {
|
||||
jQuery(this).parents('.um-nav-edit').find('.um-nav-roles').show();
|
||||
} else {
|
||||
jQuery(this).parents('.um-nav-edit').find('.um-nav-roles').hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1,78 +0,0 @@
|
||||
jQuery(document).on("ready", function(){
|
||||
|
||||
const scan_results_wrapper = jQuery(".um-secure-scan-results");
|
||||
const scan_button_elem = jQuery(".um-secure-scan-content");
|
||||
const scan_capabilities = jQuery("input[data-field_id^='banned_capabilities']");
|
||||
|
||||
var UM_Secure = {
|
||||
init: function() {
|
||||
scan_results_wrapper.css({
|
||||
'margin-top': '10px',
|
||||
'padding': '10px',
|
||||
'padding-bottom': '10px',
|
||||
'background-color': '#fff',
|
||||
'display': 'block',
|
||||
'max-height': '200px',
|
||||
'height': '500px',
|
||||
'overflow-y': 'scroll',
|
||||
});
|
||||
|
||||
scan_button_elem.on("click", function(e){
|
||||
UM_Secure.effect();
|
||||
e.preventDefault();
|
||||
var me = jQuery(this);
|
||||
me.prop("disabled", true);
|
||||
scan_results_wrapper.empty();
|
||||
|
||||
UM_Secure.log( wp.i18n.__( 'Scanning site..', 'ultimate-member' ) );
|
||||
|
||||
UM_Secure.ajax('');
|
||||
|
||||
});
|
||||
scan_capabilities.on("change", function(){
|
||||
scan_button_elem.after( ' <small style="color: red;">' + wp.i18n.__( 'You can start the scan now but you must save the settings to apply the selected capabilities after the scan is complete.', 'ultimate-member' ) + '</small>' );
|
||||
scan_capabilities.off("change");
|
||||
})
|
||||
},
|
||||
ajax: function( last_capability ) {
|
||||
let checkedCaps = [];
|
||||
let checkedCapsInputs = scan_results_wrapper.parents('.um-form-table').find('input[type="checkbox"][data-field_id^="banned_capabilities_"]:checked');
|
||||
checkedCapsInputs.each(function (){
|
||||
checkedCaps.push( jQuery(this).data('field_id').replace('banned_capabilities_', '') );
|
||||
});
|
||||
|
||||
var request = {
|
||||
nonce: um_admin_scripts.nonce,
|
||||
capabilities: checkedCaps,
|
||||
last_scanned_capability: last_capability,
|
||||
};
|
||||
|
||||
wp.ajax.send('um_secure_scan_affected_users', {
|
||||
data: request,
|
||||
success: function (response) {
|
||||
if ( ! response.completed ) {
|
||||
UM_Secure.ajax( response.last_scanned_capability );
|
||||
UM_Secure.log( response.message );
|
||||
} else if ( response.completed ) {
|
||||
scan_results_wrapper.empty();
|
||||
UM_Secure.log( response.recommendations );
|
||||
scan_results_wrapper.find('.current').removeClass('current');
|
||||
scan_button_elem.removeAttr('disabled');
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
log: function( str ) {
|
||||
scan_results_wrapper.find('.current').removeClass('current');
|
||||
scan_results_wrapper.append( '<span class="current">' + str + '</span><br/>' );
|
||||
},
|
||||
effect: function() {
|
||||
var blink = function(){
|
||||
scan_results_wrapper.find(".current").fadeTo(100, 0.1).fadeTo(200, 1.0);
|
||||
};
|
||||
setInterval(blink, 1000);
|
||||
}
|
||||
};
|
||||
|
||||
UM_Secure.init();
|
||||
});
|
||||
Reference in New Issue
Block a user