mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 12:43:33 +09:00
- wp-admin assets refactoring (in process);
This commit is contained in:
@@ -1,40 +1,29 @@
|
||||
.um-admin-drag-ctrls-demo.um-admin-drag-ctrls {
|
||||
left: 12px;
|
||||
right: auto;
|
||||
}
|
||||
left: 12px;
|
||||
right: auto; }
|
||||
|
||||
.um-admin-drag-row-icons {
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
left: 0;
|
||||
right: auto; }
|
||||
.um-admin-drag-row-icons a {
|
||||
float: right; }
|
||||
|
||||
.um-admin-drag-ctrls.columns {
|
||||
right: 0 !important;
|
||||
left: auto;
|
||||
}
|
||||
|
||||
.um-admin-drag-ctrls.columns a {
|
||||
float: right;
|
||||
}
|
||||
right: 0 !important;
|
||||
left: auto; }
|
||||
.um-admin-drag-ctrls.columns a {
|
||||
float: right; }
|
||||
|
||||
.um-admin-drag-rowsub-icons {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.um-admin-drag-row-icons a {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.um-admin-drag-fld-icons a {
|
||||
float: right;
|
||||
}
|
||||
right: auto;
|
||||
left: 0; }
|
||||
|
||||
.um-admin-drag-fld-icons {
|
||||
float: left;
|
||||
}
|
||||
float: left; }
|
||||
.um-admin-drag-fld-icons a {
|
||||
float: right; }
|
||||
|
||||
.um-admin-drag-fld-title, .um-admin-drag-fld-type {
|
||||
float: right;
|
||||
margin: 0 20px 0 0;
|
||||
}
|
||||
.um-admin-drag-fld-title,
|
||||
.um-admin-drag-fld-type {
|
||||
float: right;
|
||||
margin: 0 20px 0 0; }
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
.um-admin-drag-ctrls-demo.um-admin-drag-ctrls{left:12px;right:auto}.um-admin-drag-row-icons{left:0;right:auto}.um-admin-drag-ctrls.columns{right:0!important;left:auto}.um-admin-drag-ctrls.columns a{float:right}.um-admin-drag-rowsub-icons{right:auto;left:0}.um-admin-drag-row-icons a{float:right}.um-admin-drag-fld-icons a{float:right}.um-admin-drag-fld-icons{float:left}.um-admin-drag-fld-title,.um-admin-drag-fld-type{float:right;margin:0 20px 0 0}
|
||||
.um-admin-drag-ctrls-demo.um-admin-drag-ctrls{left:12px;right:auto}.um-admin-drag-row-icons{left:0;right:auto}.um-admin-drag-row-icons a{float:right}.um-admin-drag-ctrls.columns{right:0!important;left:auto}.um-admin-drag-ctrls.columns a{float:right}.um-admin-drag-rowsub-icons{right:auto;left:0}.um-admin-drag-fld-icons{float:left}.um-admin-drag-fld-icons a{float:right}.um-admin-drag-fld-title,.um-admin-drag-fld-type{float:right;margin:0 20px 0 0}
|
||||
@@ -0,0 +1,31 @@
|
||||
.um-admin-drag-ctrls-demo
|
||||
&.um-admin-drag-ctrls
|
||||
left: 12px
|
||||
right: auto
|
||||
|
||||
.um-admin-drag-row-icons
|
||||
left: 0
|
||||
right: auto
|
||||
a
|
||||
float: right
|
||||
|
||||
.um-admin-drag-ctrls
|
||||
&.columns
|
||||
right: 0 !important
|
||||
left: auto
|
||||
a
|
||||
float: right
|
||||
|
||||
.um-admin-drag-rowsub-icons
|
||||
right: auto
|
||||
left: 0
|
||||
|
||||
.um-admin-drag-fld-icons
|
||||
float: left
|
||||
a
|
||||
float: right
|
||||
|
||||
.um-admin-drag-fld-title,
|
||||
.um-admin-drag-fld-type
|
||||
float: right
|
||||
margin: 0 20px 0 0
|
||||
@@ -477,3 +477,93 @@
|
||||
.um-admin-cur-condition-template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dynamic-mce-content {display: none}
|
||||
|
||||
/*
|
||||
- Conditional fields
|
||||
*/
|
||||
|
||||
.um-admin-btn-toggle {
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.um-admin-btn-toggle p {
|
||||
margin: 0 5px 0 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-btn-toggle p.um-admin-reset-conditions {
|
||||
margin: 0 0 5px 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-btn-toggle a {
|
||||
text-decoration: none;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.um-admin-btn-toggle a.active, .um-admin-btn-toggle a.active:hover {
|
||||
color: #0085ba;
|
||||
}
|
||||
|
||||
.um-admin-btn-toggle i {
|
||||
margin: 0 5px 0 0 !important;
|
||||
height: 100%;
|
||||
color: #666;
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
|
||||
.um-admin-btn-content {
|
||||
display: none;
|
||||
padding: 5px 0 0 0;
|
||||
}
|
||||
|
||||
.um-admin-btn-content p {
|
||||
float: left;
|
||||
margin-right: 10px !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-btn-content p.um-admin-conditions-notice {
|
||||
width: 100%;
|
||||
margin: 0 0 9px 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-btn-content .um-admin-cur-condition:not(:last-child) {
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
/*
|
||||
- Buttons and Links
|
||||
*/
|
||||
.um-admin-btns {
|
||||
line-height: 1.5em;
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
.um-admin-btns a {
|
||||
margin: 0 3px 8px 0!important;
|
||||
font-size: 12px !important;
|
||||
display: inline-block !important;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.um-admin-btns a.button.with-icon {
|
||||
padding-right: 25px !important;
|
||||
}
|
||||
.um-admin-btns a span {
|
||||
color: #aaa;
|
||||
position: absolute !important;
|
||||
width: 25px;
|
||||
text-align: center;
|
||||
right: 0;
|
||||
top: 0;
|
||||
font-size: 15px !important;
|
||||
}
|
||||
|
||||
.um-admin-btns a span.remove:before{
|
||||
font-family: "Ionicons" !important;
|
||||
content: "\f128";
|
||||
}
|
||||
.um-admin-btns a span:hover{color: #cb3838}
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -1,26 +1,15 @@
|
||||
.um-form-fields-section {
|
||||
padding: 0 0 0 10px;
|
||||
}
|
||||
|
||||
.um-form-fields-section {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.um-form-fields-section label input {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.select2-container .select2-choice > .select2-chosen {
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
.select2-container .select2-choice .select2-arrow {
|
||||
border: none !important;
|
||||
right: auto !important;
|
||||
left: 0 !important;
|
||||
}
|
||||
padding: 0 0 0 10px;
|
||||
float: right; }
|
||||
.um-form-fields-section label input {
|
||||
float: right; }
|
||||
|
||||
.select2-container .select2-choice > .select2-chosen {
|
||||
margin-right: 10px !important;
|
||||
margin-left: 26px !important;
|
||||
}
|
||||
text-align: right !important;
|
||||
margin-right: 10px !important;
|
||||
margin-left: 26px !important; }
|
||||
|
||||
.select2-container .select2-choice .select2-arrow {
|
||||
border: none !important;
|
||||
right: auto !important;
|
||||
left: 0 !important; }
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
.um-form-fields-section{padding:0 0 0 10px}.um-form-fields-section{float:right}.um-form-fields-section label input{float:right}.select2-container .select2-choice>.select2-chosen{text-align:right!important}.select2-container .select2-choice .select2-arrow{border:none!important;right:auto!important;left:0!important}.select2-container .select2-choice>.select2-chosen{margin-right:10px!important;margin-left:26px!important}
|
||||
.um-form-fields-section{padding:0 0 0 10px;float:right}.um-form-fields-section label input{float:right}.select2-container .select2-choice>.select2-chosen{text-align:right!important;margin-right:10px!important;margin-left:26px!important}.select2-container .select2-choice .select2-arrow{border:none!important;right:auto!important;left:0!important}
|
||||
@@ -0,0 +1,17 @@
|
||||
.um-form-fields-section
|
||||
padding: 0 0 0 10px
|
||||
float: right
|
||||
label
|
||||
input
|
||||
float: right
|
||||
|
||||
.select2-container
|
||||
.select2-choice
|
||||
& > .select2-chosen
|
||||
text-align: right !important
|
||||
margin-right: 10px !important
|
||||
margin-left: 26px !important
|
||||
.select2-arrow
|
||||
border: none !important
|
||||
right: auto !important
|
||||
left: 0 !important
|
||||
+145
-297
@@ -1,314 +1,162 @@
|
||||
/*
|
||||
- Overlay
|
||||
*/
|
||||
|
||||
.um-admin-overlay {
|
||||
background: rgba(0,0,0, .7);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 10000;
|
||||
}
|
||||
|
||||
/*
|
||||
- modal
|
||||
*/
|
||||
|
||||
.um-admin-modal input[type=submit].button-primary,
|
||||
.um-admin-modal a.button-primary,
|
||||
.um-admin-modal a.button {
|
||||
padding: 0 12px !important;
|
||||
vertical-align: middle !important;
|
||||
}
|
||||
|
||||
.um-admin .um-admin-modal a.button i:before {
|
||||
display: block;
|
||||
top: 0px;
|
||||
}
|
||||
|
||||
.um-admin-modal input[type=submit].button-primary {
|
||||
line-height: 24px !important;
|
||||
}
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 10000; }
|
||||
|
||||
.um-admin-modal {
|
||||
border-radius: 3px;
|
||||
background: #fff;
|
||||
position: fixed;
|
||||
top: 50% !important;
|
||||
left: 50% !important;
|
||||
display: none;
|
||||
z-index: 10001;
|
||||
box-sizing: border-box;
|
||||
|
||||
width: 730px;
|
||||
margin-left: -365px;
|
||||
}
|
||||
|
||||
.um-admin-modal.normal {width: 730px;margin-left: -365px;}
|
||||
.um-admin-modal.smaller {width: 500px;margin-left: -250px;}
|
||||
.um-admin-modal.small {width: 400px;margin-left: -200px;}
|
||||
border-radius: 3px;
|
||||
background: #fff;
|
||||
position: fixed;
|
||||
top: 50% !important;
|
||||
left: 50% !important;
|
||||
display: none;
|
||||
z-index: 10001;
|
||||
box-sizing: border-box;
|
||||
width: 730px;
|
||||
margin-left: -365px; }
|
||||
.um-admin-modal.normal {
|
||||
width: 730px;
|
||||
margin-left: -365px; }
|
||||
.um-admin-modal.smaller {
|
||||
width: 500px;
|
||||
margin-left: -250px; }
|
||||
.um-admin-modal.small {
|
||||
width: 400px;
|
||||
margin-left: -200px; }
|
||||
.um-admin-modal input[type="submit"].button-primary {
|
||||
padding: 0 12px !important;
|
||||
vertical-align: middle !important;
|
||||
line-height: 24px !important; }
|
||||
.um-admin-modal .um-admin-modal-body {
|
||||
padding: 10px 20px 10px 20px;
|
||||
max-height: 500px;
|
||||
overflow: auto; }
|
||||
.um-admin-modal .um-admin-modal-body.um-admin-metabox label {
|
||||
margin: 0 !important; }
|
||||
.um-admin-modal .um-admin-modal-body.um-admin-metabox .um-admin-editor-h {
|
||||
margin-top: 12px; }
|
||||
.um-admin-modal .um-admin-modal-body.um-admin-metabox .um-admin-editor-h label {
|
||||
margin: 0 0 4px 0 !important; }
|
||||
.um-admin-modal .um-admin-modal-body.um-admin-metabox .wp-editor-wrap {
|
||||
margin: 0 0 4px 0 !important; }
|
||||
.um-admin-modal .um-admin-modal-body.um-admin-metabox .wp-editor-wrap textarea {
|
||||
border: 0 !important; }
|
||||
.um-admin-modal a.button-primary {
|
||||
padding: 0 12px !important;
|
||||
vertical-align: middle !important; }
|
||||
.um-admin-modal a.button {
|
||||
padding: 0 12px !important;
|
||||
vertical-align: middle !important; }
|
||||
.um-admin-modal a.button i:before {
|
||||
display: block;
|
||||
top: 0; }
|
||||
.um-admin-modal h3 {
|
||||
font-size: 14px;
|
||||
line-height: 14px;
|
||||
font-weight: normal;
|
||||
color: #fff; }
|
||||
.um-admin-modal h4 {
|
||||
margin: 0 0 10px 0 !important; }
|
||||
.um-admin-modal label {
|
||||
font-size: 13px;
|
||||
color: #aaa; }
|
||||
.um-admin-modal p {
|
||||
font-size: 13px;
|
||||
color: #aaa; }
|
||||
.um-admin-modal.loading .um-admin-modal-body {
|
||||
height: 200px;
|
||||
background: url(../../img/ajax-loader.gif) no-repeat center; }
|
||||
|
||||
.um-admin-modal-close {
|
||||
position: absolute;
|
||||
color: #fff !important;
|
||||
right: 16px;
|
||||
top: 14px;
|
||||
font-size: 22px;
|
||||
text-decoration: none;
|
||||
opacity: 0.4;
|
||||
}
|
||||
.um-admin-modal-close:hover{opacity:1}
|
||||
position: absolute;
|
||||
color: #fff !important;
|
||||
right: 16px;
|
||||
top: 14px;
|
||||
font-size: 22px;
|
||||
text-decoration: none;
|
||||
opacity: 0.4; }
|
||||
.um-admin-modal-close:hover {
|
||||
opacity: 1; }
|
||||
|
||||
.um-admin-modal-head {
|
||||
padding: 4px 20px;
|
||||
background: #0085ba;
|
||||
position: relative;
|
||||
border-radius: 3px 3px 0 0;
|
||||
}
|
||||
|
||||
.um-admin-modal-body {
|
||||
padding: 10px 20px 10px 20px;
|
||||
max-height: 500px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.um-admin-modal-body.um-admin-metabox label {margin: 0!important}
|
||||
|
||||
.um-admin-modal.loading .um-admin-modal-body {
|
||||
height: 200px;
|
||||
background: url(../../img/ajax-loader.gif) no-repeat center;
|
||||
}
|
||||
padding: 4px 20px;
|
||||
background: #0085ba;
|
||||
position: relative;
|
||||
border-radius: 3px 3px 0 0; }
|
||||
|
||||
.um-admin-modal-foot {
|
||||
padding: 20px 0 !important;
|
||||
border-top: 1px solid #ddd;
|
||||
text-align: center;
|
||||
background: #eee;
|
||||
border-radius: 0 0 3px 3px;
|
||||
}
|
||||
|
||||
.um-admin-modal-foot a,
|
||||
.um-admin-modal-foot input{
|
||||
margin: 0 10px !important;
|
||||
font-size: 14px !important;
|
||||
}
|
||||
|
||||
.um-admin-modal h3 {
|
||||
font-size: 14px;
|
||||
line-height: 14px;
|
||||
font-weight: normal;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.um-admin-modal h4 {
|
||||
margin: 0 0 10px 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-modal label,
|
||||
.um-admin-modal p {
|
||||
font-size: 13px;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.um-admin-infobox p,
|
||||
.um-admin-infobox label {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.um-admin-infobox p {
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
.um-admin-infobox > p:not(:first-child) {
|
||||
border-top: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
.um-admin-infobox > .um-row > p {
|
||||
border-top: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
.um-admin-infobox > p:first-child {
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.um-admin-infobox label {
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
color: #333;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/*
|
||||
- Conditional fields
|
||||
*/
|
||||
|
||||
.um-admin-btn-toggle {
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.um-admin-btn-toggle p {
|
||||
margin: 0 5px 0 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-btn-toggle p.um-admin-reset-conditions {
|
||||
margin: 0 0 5px 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-btn-toggle a {
|
||||
text-decoration: none;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.um-admin-btn-toggle a.active, .um-admin-btn-toggle a.active:hover {
|
||||
color: #0085ba;
|
||||
}
|
||||
|
||||
.um-admin-btn-toggle i {
|
||||
margin: 0 5px 0 0 !important;
|
||||
height: 100%;
|
||||
color: #666;
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
|
||||
.um-admin-btn-content {
|
||||
display: none;
|
||||
padding: 5px 0 0 0;
|
||||
}
|
||||
|
||||
.um-admin-btn-content p {
|
||||
float: left;
|
||||
margin-right: 10px !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-btn-content p.um-admin-conditions-notice {
|
||||
width: 100%;
|
||||
margin: 0 0 9px 0 !important;
|
||||
}
|
||||
|
||||
.um-admin-btn-content .um-admin-cur-condition:not(:last-child) {
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
.dynamic-mce-content {display: none}
|
||||
|
||||
/*
|
||||
- Buttons and Links
|
||||
*/
|
||||
|
||||
.um-admin-btns {
|
||||
line-height: 1.5em;
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
.um-admin-btns a {
|
||||
margin: 0 3px 8px 0!important;
|
||||
font-size: 12px !important;
|
||||
display: inline-block !important;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.um-admin-btns a.button.with-icon {
|
||||
padding-right: 25px !important;
|
||||
}
|
||||
.um-admin-btns a span {
|
||||
color: #aaa;
|
||||
position: absolute !important;
|
||||
width: 25px;
|
||||
text-align: center;
|
||||
right: 0;
|
||||
top: 0;
|
||||
font-size: 15px !important;
|
||||
}
|
||||
|
||||
.um-admin-btns a span.remove:before{
|
||||
font-family: "Ionicons" !important;
|
||||
content: "\f128";
|
||||
}
|
||||
.um-admin-btns a span:hover{color: #cb3838}
|
||||
|
||||
/*
|
||||
- WP Editor
|
||||
*/
|
||||
|
||||
.um-admin-modal-body.um-admin-metabox .um-admin-editor-h {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.um-admin-modal-body.um-admin-metabox .um-admin-editor-h label,
|
||||
.um-admin-modal-body.um-admin-metabox .wp-editor-wrap
|
||||
{margin: 0 0 4px 0 !important}
|
||||
|
||||
.um-admin-modal-body.um-admin-metabox .wp-editor-wrap textarea {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
/*
|
||||
- Boxes / Icons
|
||||
*/
|
||||
padding: 20px 0 !important;
|
||||
border-top: 1px solid #ddd;
|
||||
text-align: center;
|
||||
background: #eee;
|
||||
border-radius: 0 0 3px 3px; }
|
||||
.um-admin-modal-foot a,
|
||||
.um-admin-modal-foot input {
|
||||
margin: 0 10px !important;
|
||||
font-size: 14px !important; }
|
||||
|
||||
#UM_fonticons div.um-admin-metabox {
|
||||
padding-bottom: 22px !important;
|
||||
}
|
||||
padding-bottom: 22px !important; }
|
||||
|
||||
p._icon_search{
|
||||
position: relative;
|
||||
width: 85% !important;
|
||||
margin: 0 auto !important;
|
||||
padding: 12px 0 0 0 !important;
|
||||
}
|
||||
|
||||
p._icon_search:before {
|
||||
position: absolute;
|
||||
right: 6px;
|
||||
top: 12px;
|
||||
font-size: 20px;
|
||||
content: "\f4a4";
|
||||
font-family: "Ionicons";
|
||||
color: #999;
|
||||
}
|
||||
p._icon_search input[type=text]{padding-right: 40px!important}
|
||||
p._icon_search {
|
||||
position: relative;
|
||||
width: 85% !important;
|
||||
margin: 0 auto !important;
|
||||
padding: 12px 0 0 0 !important; }
|
||||
p._icon_search:before {
|
||||
position: absolute;
|
||||
right: 6px;
|
||||
top: 12px;
|
||||
font-size: 20px;
|
||||
content: "\f4a4";
|
||||
font-family: "Ionicons";
|
||||
color: #999; }
|
||||
p._icon_search:before input[type="text"] {
|
||||
padding-right: 40px !important; }
|
||||
|
||||
.um-admin-icons {
|
||||
padding: 0 0 15px 12px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.um-admin-icons span {
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
margin: 5px;
|
||||
color: #777;
|
||||
border: 4px solid #eee;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.um-admin-icons span:hover,
|
||||
.um-admin-icons span.highlighted
|
||||
{color: #0085ba;border-color: #0085ba}
|
||||
|
||||
.um-admin-icons i{vertical-align: middle !important;font-size: 24px;width: 24px;text-align: center;padding: 15px 20px;display: inline-block;}
|
||||
padding: 0 0 15px 12px;
|
||||
float: left; }
|
||||
.um-admin-icons span {
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
margin: 5px;
|
||||
color: #777;
|
||||
border: 4px solid #eee;
|
||||
border-radius: 3px; }
|
||||
.um-admin-icons span:hover, .um-admin-icons span.highlighted {
|
||||
color: #0085ba;
|
||||
border-color: #0085ba; }
|
||||
.um-admin-icons i {
|
||||
vertical-align: middle !important;
|
||||
font-size: 24px;
|
||||
width: 24px;
|
||||
text-align: center;
|
||||
padding: 15px 20px;
|
||||
display: inline-block; }
|
||||
|
||||
span.um-admin-icon-value {
|
||||
margin: 0 10px;
|
||||
font-size: 13px;
|
||||
}
|
||||
span.um-admin-icon-value i {
|
||||
font-size: 28px;
|
||||
color: #0085ba;
|
||||
position: relative;
|
||||
top: 5px;
|
||||
}
|
||||
margin: 0 10px;
|
||||
font-size: 13px; }
|
||||
span.um-admin-icon-value i {
|
||||
font-size: 28px;
|
||||
color: #0085ba;
|
||||
position: relative;
|
||||
top: 5px; }
|
||||
|
||||
span.um-admin-icon-clear{
|
||||
display: none;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
color: #ccc;
|
||||
}
|
||||
span.um-admin-icon-clear.show {display: inline-block}
|
||||
span.um-admin-icon-clear:hover {color: #777}
|
||||
span.um-admin-icon-clear i {font-size: 20px;vertical-align: middle;}
|
||||
span.um-admin-icon-clear {
|
||||
display: none;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
color: #ccc; }
|
||||
span.um-admin-icon-clear.show {
|
||||
display: inline-block; }
|
||||
span.um-admin-icon-clear:hover {
|
||||
color: #777; }
|
||||
span.um-admin-icon-clear i {
|
||||
font-size: 20px;
|
||||
vertical-align: middle; }
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
.um-admin-overlay{background:rgba(0,0,0,.7);width:100%;height:100%;position:fixed;top:0;left:0;z-index:10000}.um-admin-modal a.button,.um-admin-modal a.button-primary,.um-admin-modal input[type=submit].button-primary{padding:0 12px!important;vertical-align:middle!important}.um-admin .um-admin-modal a.button i:before{display:block;top:0}.um-admin-modal input[type=submit].button-primary{line-height:24px!important}.um-admin-modal{border-radius:3px;background:#fff;position:fixed;top:50%!important;left:50%!important;display:none;z-index:10001;box-sizing:border-box;width:730px;margin-left:-365px}.um-admin-modal.normal{width:730px;margin-left:-365px}.um-admin-modal.smaller{width:500px;margin-left:-250px}.um-admin-modal.small{width:400px;margin-left:-200px}.um-admin-modal-close{position:absolute;color:#fff!important;right:16px;top:14px;font-size:22px;text-decoration:none;opacity:.4}.um-admin-modal-close:hover{opacity:1}.um-admin-modal-head{padding:4px 20px;background:#0085ba;position:relative;border-radius:3px 3px 0 0}.um-admin-modal-body{padding:10px 20px 10px 20px;max-height:500px;overflow:auto}.um-admin-modal-body.um-admin-metabox label{margin:0!important}.um-admin-modal.loading .um-admin-modal-body{height:200px;background:url(../../img/ajax-loader.gif) no-repeat center}.um-admin-modal-foot{padding:20px 0!important;border-top:1px solid #ddd;text-align:center;background:#eee;border-radius:0 0 3px 3px}.um-admin-modal-foot a,.um-admin-modal-foot input{margin:0 10px!important;font-size:14px!important}.um-admin-modal h3{font-size:14px;line-height:14px;font-weight:400;color:#fff}.um-admin-modal h4{margin:0 0 10px 0!important}.um-admin-modal label,.um-admin-modal p{font-size:13px;color:#aaa}.um-admin-infobox label,.um-admin-infobox p{color:#666}.um-admin-infobox p{padding-top:15px}.um-admin-infobox>p:not(:first-child){border-top:1px solid #e5e5e5}.um-admin-infobox>.um-row>p{border-top:1px solid #e5e5e5}.um-admin-infobox>p:first-child{margin-top:0;padding-top:0}.um-admin-infobox label{font-weight:700;display:block;color:#333;cursor:default}.um-admin-btn-toggle{padding:10px 0}.um-admin-btn-toggle p{margin:0 5px 0 0!important}.um-admin-btn-toggle p.um-admin-reset-conditions{margin:0 0 5px 0!important}.um-admin-btn-toggle a{text-decoration:none;color:#999}.um-admin-btn-toggle a.active,.um-admin-btn-toggle a.active:hover{color:#0085ba}.um-admin-btn-toggle i{margin:0 5px 0 0!important;height:100%;color:#666;position:relative;top:1px}.um-admin-btn-content{display:none;padding:5px 0 0 0}.um-admin-btn-content p{float:left;margin-right:10px!important;padding:0!important}.um-admin-btn-content p.um-admin-conditions-notice{width:100%;margin:0 0 9px 0!important}.um-admin-btn-content .um-admin-cur-condition:not(:last-child){margin:0 0 5px 0}.dynamic-mce-content{display:none}.um-admin-btns{line-height:1.5em;margin:0 0 5px 0}.um-admin-btns a{margin:0 3px 8px 0!important;font-size:12px!important;display:inline-block!important;position:relative}.um-admin-btns a.button.with-icon{padding-right:25px!important}.um-admin-btns a span{color:#aaa;position:absolute!important;width:25px;text-align:center;right:0;top:0;font-size:15px!important}.um-admin-btns a span.remove:before{font-family:Ionicons!important;content:"\f128"}.um-admin-btns a span:hover{color:#cb3838}.um-admin-modal-body.um-admin-metabox .um-admin-editor-h{margin-top:12px}.um-admin-modal-body.um-admin-metabox .um-admin-editor-h label,.um-admin-modal-body.um-admin-metabox .wp-editor-wrap{margin:0 0 4px 0!important}.um-admin-modal-body.um-admin-metabox .wp-editor-wrap textarea{border:0!important}#UM_fonticons div.um-admin-metabox{padding-bottom:22px!important}p._icon_search{position:relative;width:85%!important;margin:0 auto!important;padding:12px 0 0 0!important}p._icon_search:before{position:absolute;right:6px;top:12px;font-size:20px;content:"\f4a4";font-family:Ionicons;color:#999}p._icon_search input[type=text]{padding-right:40px!important}.um-admin-icons{padding:0 0 15px 12px;float:left}.um-admin-icons span{cursor:pointer;float:left;margin:5px;color:#777;border:4px solid #eee;border-radius:3px}.um-admin-icons span.highlighted,.um-admin-icons span:hover{color:#0085ba;border-color:#0085ba}.um-admin-icons i{vertical-align:middle!important;font-size:24px;width:24px;text-align:center;padding:15px 20px;display:inline-block}span.um-admin-icon-value{margin:0 10px;font-size:13px}span.um-admin-icon-value i{font-size:28px;color:#0085ba;position:relative;top:5px}span.um-admin-icon-clear{display:none;cursor:pointer;position:relative;color:#ccc}span.um-admin-icon-clear.show{display:inline-block}span.um-admin-icon-clear:hover{color:#777}span.um-admin-icon-clear i{font-size:20px;vertical-align:middle}
|
||||
.um-admin-overlay{background:rgba(0,0,0,.7);width:100%;height:100%;position:fixed;top:0;left:0;z-index:10000}.um-admin-modal{border-radius:3px;background:#fff;position:fixed;top:50%!important;left:50%!important;display:none;z-index:10001;box-sizing:border-box;width:730px;margin-left:-365px}.um-admin-modal.normal{width:730px;margin-left:-365px}.um-admin-modal.smaller{width:500px;margin-left:-250px}.um-admin-modal.small{width:400px;margin-left:-200px}.um-admin-modal input[type=submit].button-primary{padding:0 12px!important;vertical-align:middle!important;line-height:24px!important}.um-admin-modal .um-admin-modal-body{padding:10px 20px 10px 20px;max-height:500px;overflow:auto}.um-admin-modal .um-admin-modal-body.um-admin-metabox label{margin:0!important}.um-admin-modal .um-admin-modal-body.um-admin-metabox .um-admin-editor-h{margin-top:12px}.um-admin-modal .um-admin-modal-body.um-admin-metabox .um-admin-editor-h label{margin:0 0 4px 0!important}.um-admin-modal .um-admin-modal-body.um-admin-metabox .wp-editor-wrap{margin:0 0 4px 0!important}.um-admin-modal .um-admin-modal-body.um-admin-metabox .wp-editor-wrap textarea{border:0!important}.um-admin-modal a.button-primary{padding:0 12px!important;vertical-align:middle!important}.um-admin-modal a.button{padding:0 12px!important;vertical-align:middle!important}.um-admin-modal a.button i:before{display:block;top:0}.um-admin-modal h3{font-size:14px;line-height:14px;font-weight:400;color:#fff}.um-admin-modal h4{margin:0 0 10px 0!important}.um-admin-modal label{font-size:13px;color:#aaa}.um-admin-modal p{font-size:13px;color:#aaa}.um-admin-modal.loading .um-admin-modal-body{height:200px;background:url(../../img/ajax-loader.gif) no-repeat center}.um-admin-modal-close{position:absolute;color:#fff!important;right:16px;top:14px;font-size:22px;text-decoration:none;opacity:.4}.um-admin-modal-close:hover{opacity:1}.um-admin-modal-head{padding:4px 20px;background:#0085ba;position:relative;border-radius:3px 3px 0 0}.um-admin-modal-foot{padding:20px 0!important;border-top:1px solid #ddd;text-align:center;background:#eee;border-radius:0 0 3px 3px}.um-admin-modal-foot a,.um-admin-modal-foot input{margin:0 10px!important;font-size:14px!important}#UM_fonticons div.um-admin-metabox{padding-bottom:22px!important}p._icon_search{position:relative;width:85%!important;margin:0 auto!important;padding:12px 0 0 0!important}p._icon_search:before{position:absolute;right:6px;top:12px;font-size:20px;content:"\f4a4";font-family:Ionicons;color:#999}p._icon_search:before input[type=text]{padding-right:40px!important}.um-admin-icons{padding:0 0 15px 12px;float:left}.um-admin-icons span{cursor:pointer;float:left;margin:5px;color:#777;border:4px solid #eee;border-radius:3px}.um-admin-icons span.highlighted,.um-admin-icons span:hover{color:#0085ba;border-color:#0085ba}.um-admin-icons i{vertical-align:middle!important;font-size:24px;width:24px;text-align:center;padding:15px 20px;display:inline-block}span.um-admin-icon-value{margin:0 10px;font-size:13px}span.um-admin-icon-value i{font-size:28px;color:#0085ba;position:relative;top:5px}span.um-admin-icon-clear{display:none;cursor:pointer;position:relative;color:#ccc}span.um-admin-icon-clear.show{display:inline-block}span.um-admin-icon-clear:hover{color:#777}span.um-admin-icon-clear i{font-size:20px;vertical-align:middle}
|
||||
@@ -0,0 +1,169 @@
|
||||
.um-admin-overlay
|
||||
background: rgba( 0, 0, 0, 0.7)
|
||||
width: 100%
|
||||
height: 100%
|
||||
position: fixed
|
||||
top: 0
|
||||
left: 0
|
||||
z-index: 10000
|
||||
|
||||
.um-admin-modal
|
||||
border-radius: 3px
|
||||
background: #fff
|
||||
position: fixed
|
||||
top: 50% !important
|
||||
left: 50% !important
|
||||
display: none
|
||||
z-index: 10001
|
||||
box-sizing: border-box
|
||||
width: 730px
|
||||
margin-left: -365px
|
||||
&.normal
|
||||
width: 730px
|
||||
margin-left: -365px
|
||||
&.smaller
|
||||
width: 500px
|
||||
margin-left: -250px
|
||||
&.small
|
||||
width: 400px
|
||||
margin-left: -200px
|
||||
input[type="submit"]
|
||||
&.button-primary
|
||||
padding: 0 12px !important
|
||||
vertical-align: middle !important
|
||||
line-height: 24px !important
|
||||
.um-admin-modal-body
|
||||
padding: 10px 20px 10px 20px
|
||||
max-height: 500px
|
||||
overflow: auto
|
||||
&.um-admin-metabox
|
||||
label
|
||||
margin: 0 !important
|
||||
.um-admin-editor-h
|
||||
margin-top: 12px
|
||||
label
|
||||
margin: 0 0 4px 0 !important
|
||||
.wp-editor-wrap
|
||||
margin: 0 0 4px 0 !important
|
||||
textarea
|
||||
border: 0 !important
|
||||
|
||||
a
|
||||
&.button-primary
|
||||
padding: 0 12px !important
|
||||
vertical-align: middle !important
|
||||
&.button
|
||||
padding: 0 12px !important
|
||||
vertical-align: middle !important
|
||||
i:before
|
||||
display: block
|
||||
top: 0
|
||||
h3
|
||||
font-size: 14px
|
||||
line-height: 14px
|
||||
font-weight: normal
|
||||
color: #fff
|
||||
h4
|
||||
margin: 0 0 10px 0 !important
|
||||
label
|
||||
font-size: 13px
|
||||
color: #aaa
|
||||
p
|
||||
font-size: 13px
|
||||
color: #aaa
|
||||
|
||||
&.loading
|
||||
.um-admin-modal-body
|
||||
height: 200px
|
||||
background: url(../../img/ajax-loader.gif) no-repeat center
|
||||
|
||||
.um-admin-modal-close
|
||||
position: absolute
|
||||
color: #fff !important
|
||||
right: 16px
|
||||
top: 14px
|
||||
font-size: 22px
|
||||
text-decoration: none
|
||||
opacity: 0.4
|
||||
&:hover
|
||||
opacity: 1
|
||||
|
||||
.um-admin-modal-head
|
||||
padding: 4px 20px
|
||||
background: #0085ba
|
||||
position: relative
|
||||
border-radius: 3px 3px 0 0
|
||||
.um-admin-modal-foot
|
||||
padding: 20px 0 !important
|
||||
border-top: 1px solid #ddd
|
||||
text-align: center
|
||||
background: #eee
|
||||
border-radius: 0 0 3px 3px
|
||||
a,
|
||||
input
|
||||
margin: 0 10px !important
|
||||
font-size: 14px !important
|
||||
|
||||
#UM_fonticons
|
||||
div.um-admin-metabox
|
||||
padding-bottom: 22px !important
|
||||
|
||||
p._icon_search
|
||||
position: relative
|
||||
width: 85% !important
|
||||
margin: 0 auto !important
|
||||
padding: 12px 0 0 0 !important
|
||||
&:before
|
||||
position: absolute
|
||||
right: 6px
|
||||
top: 12px
|
||||
font-size: 20px
|
||||
content: "\f4a4"
|
||||
font-family: "Ionicons"
|
||||
color: #999
|
||||
input[type="text"]
|
||||
padding-right: 40px!important
|
||||
|
||||
.um-admin-icons
|
||||
padding: 0 0 15px 12px
|
||||
float: left
|
||||
span
|
||||
cursor: pointer
|
||||
float: left
|
||||
margin: 5px
|
||||
color: #777
|
||||
border: 4px solid #eee
|
||||
border-radius: 3px
|
||||
&:hover,
|
||||
&.highlighted
|
||||
color: #0085ba
|
||||
border-color: #0085ba
|
||||
i
|
||||
vertical-align: middle !important
|
||||
font-size: 24px
|
||||
width: 24px
|
||||
text-align: center
|
||||
padding: 15px 20px
|
||||
display: inline-block
|
||||
|
||||
span.um-admin-icon-value
|
||||
margin: 0 10px
|
||||
font-size: 13px
|
||||
i
|
||||
font-size: 28px
|
||||
color: #0085ba
|
||||
position: relative
|
||||
top: 5px
|
||||
|
||||
span.um-admin-icon-clear
|
||||
display: none
|
||||
cursor: pointer
|
||||
position: relative
|
||||
color: #ccc
|
||||
&.show
|
||||
display: inline-block
|
||||
&:hover
|
||||
color: #777
|
||||
i
|
||||
font-size: 20px
|
||||
vertical-align: middle
|
||||
@@ -2,3 +2,28 @@
|
||||
display: block;
|
||||
visibility: hidden;
|
||||
height: 0; }
|
||||
|
||||
.um-admin-modal .um-admin-infobox label {
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
color: #333;
|
||||
cursor: default; }
|
||||
|
||||
.um-admin-modal .um-admin-infobox p {
|
||||
color: #666;
|
||||
padding-top: 15px; }
|
||||
|
||||
.um-admin-modal .um-admin-infobox > p:not(:first-child) {
|
||||
border-top: 1px solid #e5e5e5; }
|
||||
|
||||
.um-admin-modal .um-admin-infobox > p:first-child {
|
||||
margin-top: 0;
|
||||
padding-top: 0; }
|
||||
|
||||
.um-admin-modal .um-admin-infobox > .um-row > p {
|
||||
border-top: 1px solid #e5e5e5; }
|
||||
.um-admin-modal .um-admin-infobox > .um-row > p:last-child {
|
||||
margin-bottom: 0; }
|
||||
|
||||
#UM_preview_registration .um-admin-modal-foot {
|
||||
display: none; }
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
.um-admin.users-php .subsubsub li.subsep{display:block;visibility:hidden;height:0}
|
||||
.um-admin.users-php .subsubsub li.subsep{display:block;visibility:hidden;height:0}.um-admin-modal .um-admin-infobox label{font-weight:700;display:block;color:#333;cursor:default}.um-admin-modal .um-admin-infobox p{color:#666;padding-top:15px}.um-admin-modal .um-admin-infobox>p:not(:first-child){border-top:1px solid #e5e5e5}.um-admin-modal .um-admin-infobox>p:first-child{margin-top:0;padding-top:0}.um-admin-modal .um-admin-infobox>.um-row>p{border-top:1px solid #e5e5e5}.um-admin-modal .um-admin-infobox>.um-row>p:last-child{margin-bottom:0}#UM_preview_registration .um-admin-modal-foot{display:none}
|
||||
@@ -6,3 +6,29 @@
|
||||
display: block
|
||||
visibility: hidden
|
||||
height: 0
|
||||
|
||||
.um-admin-modal
|
||||
.um-admin-infobox
|
||||
label
|
||||
font-weight: bold
|
||||
display: block
|
||||
color: #333
|
||||
cursor: default
|
||||
p
|
||||
color: #666
|
||||
padding-top: 15px
|
||||
& > p
|
||||
&:not(:first-child)
|
||||
border-top: 1px solid #e5e5e5
|
||||
&:first-child
|
||||
margin-top: 0
|
||||
padding-top: 0
|
||||
& > .um-row
|
||||
& > p
|
||||
border-top: 1px solid #e5e5e5
|
||||
&:last-child
|
||||
margin-bottom: 0
|
||||
|
||||
#UM_preview_registration
|
||||
.um-admin-modal-foot
|
||||
display: none
|
||||
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
function unselectEmptyOption(e){var u=jQuery(e.currentTarget),e=u.find(":selected");1<e.length&&e.each(function(e,t){""===t.value&&(t.selected=!1,u.trigger("change"))})}jQuery(window).on("load",function(e){new MutationObserver(function(e){e.forEach(function(e){jQuery(e.addedNodes).find(".um.um-directory").each(function(){jQuery(".um-directory input, .um-directory select, .um-directory button").attr("disabled","disabled"),jQuery(".um-directory a").attr("href",""),"function"==typeof jQuery.fn.select2&&(jQuery(".um-s1").each(function(e){var t=jQuery(this);t.select2({allowClear:!0,dropdownParent:t.parent()}).on("change",unselectEmptyOption)}),jQuery(".um-s2").each(function(e){var t=jQuery(this),u={},u=t.parents(".um-custom-shortcode-tab").length?{allowClear:!1}:{allowClear:!1,minimumResultsForSearch:10,dropdownParent:t.parent()};t.select2(u).on("change",unselectEmptyOption)}),jQuery(".um-s3").each(function(e){var t=jQuery(this);t.select2({allowClear:!1,minimumResultsForSearch:-1,dropdownParent:t.parent()}).on("change",unselectEmptyOption)}))}),jQuery(e.addedNodes).find(".um.um-profile").each(function(){jQuery(".um-profile input, .um-profile select, .um-profile button").attr("disabled","disabled"),jQuery(".um-profile a").attr("href","")}),jQuery(e.addedNodes).find(".um.um-account").each(function(){jQuery(".um-account input, .um-account select, .um-account button").attr("disabled","disabled"),jQuery(".um-account a").attr("href","")}),jQuery(e.addedNodes).find(".um.um-password").each(function(){jQuery(".um-password input, .um-password select, .um-password button").attr("disabled","disabled"),jQuery(".um-password a").attr("href","")})})}).observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})});
|
||||
@@ -57,8 +57,6 @@ final class Enqueue extends \um\common\Enqueue {
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
|
||||
$this->css_url = UM_URL . 'includes/admin/assets/css/';
|
||||
|
||||
$this->front_js_baseurl = UM_URL . 'assets/js/';
|
||||
$this->front_css_baseurl = UM_URL . 'assets/css/';
|
||||
|
||||
@@ -102,19 +100,9 @@ final class Enqueue extends \um\common\Enqueue {
|
||||
*/
|
||||
public function block_editor() {
|
||||
$suffix = self::get_suffix();
|
||||
$libs_url = self::get_url( 'libs' );
|
||||
$js_url = self::get_url( 'js' );
|
||||
|
||||
wp_register_style( 'um_members', UM_URL . 'assets/css/um-members.css', array( 'um_ui' ), UM_VERSION );
|
||||
if ( is_rtl() ) {
|
||||
wp_register_style( 'um_members_rtl', UM_URL . 'assets/css/um-members-rtl.css', array( 'um_members' ), UM_VERSION );
|
||||
}
|
||||
wp_register_style( 'um_styles', UM_URL . 'assets/css/um-styles.css', array( 'um_ui', 'um_tipsy', 'um_raty', 'um_fonticons_ii', 'um_fonticons_fa', 'select2' ), UM_VERSION );
|
||||
wp_register_style( 'um_profile', UM_URL . 'assets/css/um-profile.css', array(), UM_VERSION );
|
||||
wp_register_style( 'um_responsive', UM_URL . 'assets/css/um-responsive.css', array( 'um_profile', 'um_crop' ), UM_VERSION );
|
||||
wp_register_style( 'um_account', UM_URL . 'assets/css/um-account.css', array(), UM_VERSION );
|
||||
wp_register_style( 'um_default_css', UM_URL . 'assets/css/um-old-default.css', array(), UM_VERSION );
|
||||
|
||||
wp_register_script( 'um_admin_blocks_shortcodes', UM_URL . 'assets/js/um-blocks' . $suffix . '.js', array( 'wp-i18n', 'wp-blocks', 'wp-components' ), UM_VERSION, true );
|
||||
wp_register_script( 'um_admin_blocks_shortcodes', $js_url . 'admin/block-renderer' . $suffix . '.js', array( 'wp-i18n', 'wp-blocks', 'wp-components' ), UM_VERSION, true );
|
||||
wp_set_script_translations( 'um_admin_blocks_shortcodes', 'ultimate-member' );
|
||||
|
||||
if ( ! empty( UM()->account()->get_tab_fields( 'notifications', array() ) ) ) {
|
||||
@@ -150,11 +138,8 @@ final class Enqueue extends \um\common\Enqueue {
|
||||
|
||||
wp_enqueue_script( 'um_admin_blocks_shortcodes' );
|
||||
|
||||
wp_register_script( 'um_datetime', UM_URL . 'assets/js/pickadate/picker.js', array( 'jquery' ), UM_VERSION, true );
|
||||
wp_register_script( 'um_datetime_date', UM_URL . 'assets/js/pickadate/picker.date.js', array( 'jquery', 'um_datetime' ), UM_VERSION, true );
|
||||
wp_register_script( 'um_datetime_time', UM_URL . 'assets/js/pickadate/picker.time.js', array( 'jquery', 'um_datetime' ), UM_VERSION, true );
|
||||
wp_register_script( 'um_conditional', UM_URL . 'assets/js/um-conditional' . $suffix . '.js', array( 'jquery', 'wp-hooks' ), UM_VERSION, true );
|
||||
wp_register_script( 'um_scripts', UM_URL . 'assets/js/um-scripts' . $suffix . '.js', array( 'jquery', 'wp-util', 'um_conditional', 'um_datetime', 'um_datetime_date', 'um_datetime_time', self::$select2_handle ), UM_VERSION, true );
|
||||
wp_register_script( 'um_scripts', UM_URL . 'assets/js/um-scripts' . $suffix . '.js', array( 'jquery', 'wp-util', 'um_conditional', 'um_common', self::$select2_handle ), UM_VERSION, true );
|
||||
$max_upload_size = wp_max_upload_size();
|
||||
if ( ! $max_upload_size ) {
|
||||
$max_upload_size = 0;
|
||||
@@ -178,9 +163,6 @@ final class Enqueue extends \um\common\Enqueue {
|
||||
wp_register_script( 'um_responsive', UM_URL . 'assets/js/um-responsive' . $suffix . '.js', array( 'jquery', 'um_functions', 'um_crop' ), UM_VERSION, true );
|
||||
|
||||
// render blocks
|
||||
wp_enqueue_script( 'um_datetime' );
|
||||
wp_enqueue_script( 'um_datetime_date' );
|
||||
wp_enqueue_script( 'um_datetime_time' );
|
||||
wp_enqueue_script( 'um_conditional' );
|
||||
wp_enqueue_script( 'um_dropdown' );
|
||||
wp_enqueue_script( 'um_members' );
|
||||
@@ -188,6 +170,16 @@ final class Enqueue extends \um\common\Enqueue {
|
||||
wp_enqueue_script( 'um_functions' );
|
||||
wp_enqueue_script( 'um_responsive' );
|
||||
|
||||
wp_register_style( 'um_members', UM_URL . 'assets/css/um-members.css', array( 'um_ui' ), UM_VERSION );
|
||||
if ( is_rtl() ) {
|
||||
wp_register_style( 'um_members_rtl', UM_URL . 'assets/css/um-members-rtl.css', array( 'um_members' ), UM_VERSION );
|
||||
}
|
||||
wp_register_style( 'um_styles', UM_URL . 'assets/css/um-styles.css', array( 'um_ui', 'um_tipsy', 'um_raty', 'um_fonticons_ii', 'um_fonticons_fa', 'select2' ), UM_VERSION );
|
||||
wp_register_style( 'um_profile', UM_URL . 'assets/css/um-profile.css', array(), UM_VERSION );
|
||||
wp_register_style( 'um_responsive', UM_URL . 'assets/css/um-responsive.css', array( 'um_profile', 'um_crop' ), UM_VERSION );
|
||||
wp_register_style( 'um_account', UM_URL . 'assets/css/um-account.css', array(), UM_VERSION );
|
||||
wp_register_style( 'um_default_css', UM_URL . 'assets/css/um-old-default.css', array(), UM_VERSION );
|
||||
|
||||
wp_enqueue_style( 'um_default_css' );
|
||||
wp_enqueue_style( 'um_members' );
|
||||
wp_enqueue_style( 'um_styles' );
|
||||
@@ -195,7 +187,7 @@ final class Enqueue extends \um\common\Enqueue {
|
||||
wp_enqueue_style( 'um_responsive' );
|
||||
wp_enqueue_style( 'um_account' );
|
||||
|
||||
$custom_css = '.um{opacity: 1;}.um_request_name {display: none !important;}';
|
||||
$custom_css = '.wp-block .um{opacity: 1;}.um_request_name {display: none !important;}';
|
||||
|
||||
wp_add_inline_style( 'um_styles', $custom_css );
|
||||
|
||||
@@ -420,8 +412,8 @@ final class Enqueue extends \um\common\Enqueue {
|
||||
$js_url = self::get_url( 'js' );
|
||||
$css_url = self::get_url( 'css' );
|
||||
|
||||
wp_register_script( 'um_block_js', $js_url . 'admin/block' . $suffix . '.js', array( 'wp-i18n', 'wp-blocks', 'wp-components', 'wp-hooks' ), UM_VERSION, true );
|
||||
wp_set_script_translations( 'um_block_js', 'ultimate-member' );
|
||||
wp_register_script( 'um_block_restrictions', $js_url . 'admin/block-restrictions' . $suffix . '.js', array( 'wp-i18n', 'wp-blocks', 'wp-components', 'wp-hooks' ), UM_VERSION, true );
|
||||
wp_set_script_translations( 'um_block_restrictions', 'ultimate-member' );
|
||||
|
||||
$restrict_options = array();
|
||||
$roles = UM()->roles()->get_roles();
|
||||
@@ -433,8 +425,8 @@ final class Enqueue extends \um\common\Enqueue {
|
||||
);
|
||||
}
|
||||
}
|
||||
wp_localize_script( 'um_block_js', 'um_restrict_roles', $restrict_options );
|
||||
wp_enqueue_script( 'um_block_js' );
|
||||
wp_localize_script( 'um_block_restrictions', 'um_restrict_roles', $restrict_options );
|
||||
wp_enqueue_script( 'um_block_restrictions' );
|
||||
|
||||
wp_register_style( 'um_block_css', $css_url . 'admin/block' . $suffix . '.css', array(), UM_VERSION );
|
||||
wp_enqueue_style( 'um_block_css' );
|
||||
|
||||
@@ -27,11 +27,11 @@ class Screen {
|
||||
$is_um_screen = false;
|
||||
if ( ! empty( $current_screen ) && isset( $current_screen->id ) ) {
|
||||
$screen_id = $current_screen->id;
|
||||
if ( strstr( $screen_id, 'ultimatemember' ) ||
|
||||
if ( 'nav-menus' === $screen_id ||
|
||||
strstr( $screen_id, 'ultimatemember' ) ||
|
||||
strstr( $screen_id, 'um_' ) ||
|
||||
strstr( $screen_id, 'user' ) ||
|
||||
strstr( $screen_id, 'profile' ) ||
|
||||
'nav-menus' === $screen_id ) {
|
||||
strstr( $screen_id, 'profile' ) ) {
|
||||
$is_um_screen = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,6 +71,73 @@ class Enqueue {
|
||||
wp_register_style( 'um_ui', self::get_url( 'libs' ) . 'jquery-ui/jquery-ui' . self::get_suffix() . '.css', array(), '1.13.2' );
|
||||
}
|
||||
|
||||
private function get_pickadate_locale() {
|
||||
$suffix = self::get_suffix();
|
||||
$locale = get_locale();
|
||||
if ( file_exists( WP_LANG_DIR . '/plugins/ultimate-member/assets/js/pickadate/' . $locale . $suffix . '.js' ) || file_exists( UM_PATH . 'assets/libs/pickadate/translations/' . $locale . $suffix . '.js' ) ) {
|
||||
return $locale;
|
||||
}
|
||||
|
||||
if ( false !== strpos( $locale, 'es_' ) ) {
|
||||
$locale = 'es_ES';
|
||||
} elseif ( false !== strpos( $locale, 'de_' ) ) {
|
||||
$locale = 'de_DE';
|
||||
} else {
|
||||
switch ( $locale ) {
|
||||
case 'uk':
|
||||
$locale = 'uk_UA';
|
||||
break;
|
||||
case 'ja':
|
||||
$locale = 'ja_JP';
|
||||
break;
|
||||
case 'ka_GE':
|
||||
$locale = 'ge_GEO';
|
||||
break;
|
||||
case 'ary':
|
||||
$locale = 'ar';
|
||||
break;
|
||||
case 'ca':
|
||||
$locale = 'ca_ES';
|
||||
break;
|
||||
case 'el':
|
||||
$locale = 'el_GR';
|
||||
break;
|
||||
case 'et':
|
||||
$locale = 'et_EE';
|
||||
break;
|
||||
case 'eu':
|
||||
$locale = 'eu_ES';
|
||||
break;
|
||||
case 'fa_AF':
|
||||
$locale = 'fa_IR';
|
||||
break;
|
||||
case 'fi':
|
||||
$locale = 'fi_FI';
|
||||
break;
|
||||
case 'hr':
|
||||
$locale = 'hr_HR';
|
||||
break;
|
||||
case 'km':
|
||||
$locale = 'km_KH';
|
||||
break;
|
||||
case 'lv':
|
||||
$locale = 'lv_LV';
|
||||
break;
|
||||
case 'th':
|
||||
$locale = 'th_TH';
|
||||
break;
|
||||
case 'vi':
|
||||
$locale = 'vi_VN';
|
||||
break;
|
||||
case 'sr_SR':
|
||||
$locale = 'sr_RS_lt';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return apply_filters( 'um_get_pickadate_locale', $locale, $suffix );
|
||||
}
|
||||
|
||||
/**
|
||||
* Register common JS/CSS libraries.
|
||||
*
|
||||
@@ -130,13 +197,18 @@ class Enqueue {
|
||||
wp_register_script( 'um_datetime', $libs_url . 'pickadate/picker' . $suffix . '.js', array( 'jquery' ), UM_VERSION, true );
|
||||
wp_register_script( 'um_datetime_date', $libs_url . 'pickadate/picker.date' . $suffix . '.js', array( 'um_datetime' ), UM_VERSION, true );
|
||||
wp_register_script( 'um_datetime_time', $libs_url . 'pickadate/picker.time' . $suffix . '.js', array( 'um_datetime' ), UM_VERSION, true );
|
||||
|
||||
$common_js_deps = array( 'jquery', 'wp-util', 'wp-hooks', 'wp-i18n', 'um_tipsy', 'um_datetime_date', 'um_datetime_time' );
|
||||
|
||||
// Load a localized version for date/time.
|
||||
$locale = get_locale();
|
||||
$locale = $this->get_pickadate_locale();
|
||||
if ( $locale ) {
|
||||
if ( file_exists( WP_LANG_DIR . '/plugins/ultimate-member/assets/js/pickadate/' . $locale . $suffix . '.js' ) ) {
|
||||
wp_register_script( 'um_datetime_locale', content_url() . '/languages/plugins/ultimate-member/assets/js/pickadate/' . $locale . $suffix . '.js', array( 'jquery', 'um_datetime' ), UM_VERSION, true );
|
||||
$common_js_deps[] = 'um_datetime_locale';
|
||||
} elseif ( file_exists( UM_PATH . 'assets/libs/pickadate/translations/' . $locale . $suffix . '.js' ) ) {
|
||||
wp_register_script( 'um_datetime_locale', $libs_url . 'pickadate/translations/' . $locale . $suffix . '.js', array( 'jquery', 'um_datetime' ), UM_VERSION, true );
|
||||
$common_js_deps[] = 'um_datetime_locale';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,7 +216,7 @@ class Enqueue {
|
||||
wp_register_style( 'um_datetime_date', $libs_url . 'pickadate/default.date' . $suffix . '.css', array( 'um_datetime' ), UM_VERSION );
|
||||
wp_register_style( 'um_datetime_time', $libs_url . 'pickadate/default.time' . $suffix . '.css', array( 'um_datetime' ), UM_VERSION );
|
||||
|
||||
wp_register_script( 'um_common', $js_url . 'common' . $suffix . '.js', array( 'jquery', 'wp-util', 'wp-hooks', 'wp-i18n', 'um_tipsy', 'um_datetime_date', 'um_datetime_time' ), UM_VERSION, true );
|
||||
wp_register_script( 'um_common', $js_url . 'common' . $suffix . '.js', $common_js_deps, UM_VERSION, true );
|
||||
$um_common_variables = array(
|
||||
'locale' => get_locale(),
|
||||
);
|
||||
|
||||
@@ -116,7 +116,7 @@ final class Enqueue extends \um\common\Enqueue {
|
||||
|
||||
wp_register_script( 'um-gdpr', $this->js_baseurl . 'um-gdpr' . $suffix . '.js', array( 'jquery' ), UM_VERSION, false );
|
||||
wp_register_script( 'um_conditional', $this->js_baseurl . 'um-conditional' . $suffix . '.js', array( 'jquery', 'wp-hooks' ), UM_VERSION, true );
|
||||
wp_register_script( 'um_scripts', $this->js_baseurl . 'um-scripts' . $suffix . '.js', array( 'um_frontend_common', 'um_conditional', 'um_datetime', 'um_datetime_date', 'um_datetime_time', /*'um_datetime_legacy',*/ self::$select2_handle, 'um_raty' ), UM_VERSION, true );
|
||||
wp_register_script( 'um_scripts', $this->js_baseurl . 'um-scripts' . $suffix . '.js', array( 'um_frontend_common', 'um_conditional', self::$select2_handle, 'um_raty' ), UM_VERSION, true );
|
||||
|
||||
$max_upload_size = wp_max_upload_size();
|
||||
if ( ! $max_upload_size ) {
|
||||
|
||||
Reference in New Issue
Block a user