rebase from live enviornment
This commit is contained in:
172
wp/plugins/wp-schema-pro/admin/bsf-core/assets/css/frosty.css
Normal file
172
wp/plugins/wp-schema-pro/admin/bsf-core/assets/css/frosty.css
Normal file
@@ -0,0 +1,172 @@
|
||||
/* ========================================================================
|
||||
* Frosty.js
|
||||
* https://owensbla.github.com/frosty
|
||||
* by Blake Owens (http://blakeowens.com/)
|
||||
* ======================================================================== */
|
||||
.bsf-has-tip,
|
||||
.has-tip {
|
||||
cursor: help;
|
||||
}
|
||||
.tip {
|
||||
background-color: black;
|
||||
background-color: rgba(0, 0, 0, 0.8);
|
||||
color: #eeeeee;
|
||||
font-size: 11px;
|
||||
line-height: 1.5em;
|
||||
max-width: 200px;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
.tip.success {
|
||||
background-color: #47fe42;
|
||||
background-color: rgba(71, 254, 66, 0.8);
|
||||
color: #025600;
|
||||
}
|
||||
.tip.error {
|
||||
background-color: #ff7f86;
|
||||
background-color: rgba(255, 127, 134, 0.8);
|
||||
color: #7f0006;
|
||||
}
|
||||
.tip.light {
|
||||
background-color: #ebebeb;
|
||||
background-color: rgba(235, 235, 235, 0.8);
|
||||
color: #222222;
|
||||
}
|
||||
.tip[class*="arrow"]:before {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
border: solid transparent;
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
border-width: 5px;
|
||||
border-color: black;
|
||||
border-color: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
.success[class*="arrow"]:before {
|
||||
border-color: #47fe42;
|
||||
border-color: rgba(71, 254, 66, 0.8);
|
||||
}
|
||||
.error[class*="arrow"]:before {
|
||||
border-color: #ff7f86;
|
||||
border-color: rgba(255, 127, 134, 0.8);
|
||||
}
|
||||
.light[class*="arrow"]:before {
|
||||
border-color: #ebebeb;
|
||||
border-color: rgba(235, 235, 235, 0.8);
|
||||
}
|
||||
.tip.arrow-right:before {
|
||||
border-right-color: transparent;
|
||||
border-top-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
margin-top: -5px;
|
||||
top: 50%;
|
||||
left: 100%;
|
||||
}
|
||||
.tip.arrow-left:before {
|
||||
border-left-color: transparent;
|
||||
border-top-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
margin-top: -5px;
|
||||
top: 50%;
|
||||
right: 100%;
|
||||
}
|
||||
.tip.arrow-top:before {
|
||||
border-top-color: transparent;
|
||||
border-left-color: transparent;
|
||||
border-right-color: transparent;
|
||||
margin-left: -5px;
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
}
|
||||
.tip.arrow-bottom:before {
|
||||
border-bottom-color: transparent;
|
||||
border-left-color: transparent;
|
||||
border-right-color: transparent;
|
||||
margin-left: -5px;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
}
|
||||
|
||||
/* Customizer Tooltip */
|
||||
.customize-support .tip {
|
||||
background-color: rgba(0, 148, 221, 0.95);
|
||||
color: #FFF;
|
||||
font-size: 13px;
|
||||
line-height: 1.5em;
|
||||
max-width: 200px;
|
||||
padding: 5px 11px;
|
||||
border: 1px solid #0094DD;
|
||||
border-radius: 1px;
|
||||
}
|
||||
.customize-support .tip[class*="arrow"]:before {
|
||||
border-width: 5px;
|
||||
border-color: #0094DD;
|
||||
border-color: rgba(0, 148, 221, 0.95);
|
||||
}
|
||||
.customize-support .tip.arrow-right:before {
|
||||
border-right-color: transparent;
|
||||
border-top-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
margin-top: -5px;
|
||||
top: 50%;
|
||||
left: 100%;
|
||||
}
|
||||
.customize-support .tip.arrow-left:before {
|
||||
border-left-color: transparent;
|
||||
border-top-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
margin-top: -5px;
|
||||
top: 50%;
|
||||
right: 100%;
|
||||
}
|
||||
.customize-support .tip.arrow-top:before {
|
||||
border-top-color: transparent;
|
||||
border-left-color: transparent;
|
||||
border-right-color: transparent;
|
||||
margin-left: -5px;
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
}
|
||||
.customize-support .tip.arrow-bottom:before {
|
||||
border-bottom-color: transparent;
|
||||
border-left-color: transparent;
|
||||
border-right-color: transparent;
|
||||
margin-left: -5px;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
}
|
||||
/*---close button tooltip--------*/
|
||||
.tip[class*="close-tip-content"]{
|
||||
border-radius:7px;
|
||||
max-width:300px;
|
||||
padding: 15px 30px;
|
||||
}
|
||||
.tip[class*="close-tip-content"]:before{
|
||||
border-width: 8px!important;
|
||||
margin-top: -8px!important;
|
||||
}
|
||||
|
||||
.tip[class*="close-tip-content"][class*="arrow-bottom"]{
|
||||
/* margin-top:-10px; */
|
||||
}
|
||||
.tip[class*="close-tip-content"][class*="arrow-bottom"]:before{
|
||||
margin-top: -1px!important;
|
||||
}
|
||||
.tip[class*="close-tip-content"][class*="arrow-right"]:before {
|
||||
left: 100%;
|
||||
left: calc(100% - 1px);
|
||||
}
|
||||
.cp-innertip.tip[class*="close-tip-content"][class*="arrow"]{
|
||||
margin-top: 30px!important;
|
||||
}
|
||||
@media (max-width:768px) {
|
||||
.tip[class*="close-tip-content"]{
|
||||
border-radius:7px;
|
||||
max-width:200px;
|
||||
padding: 5px 20px;
|
||||
}
|
||||
}
|
||||
@media (max-width:610px) {
|
||||
.tip[class*="close-tip-content"]{
|
||||
max-width:170px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
.bsf-core-license-form p {
|
||||
padding: 5px 0px 5px 0px;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.license-form-allow-email .submit-button-wrap > input,
|
||||
.license-form-allow-email .submit-button-wrap > p {
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.bsf-core-license-form .license-form-allow-email .purchase-license a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.license-form-allow-email {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.license-form-allow-email .license-form-external-links {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.license-form-field input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.bsf-core-license-form .license-form-allow-email h3 {
|
||||
font-size: 2em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.bsf-core-license-form .license-form-allow-email .purchase-license {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.bsf-core-license-form .license-form-allow-email .submit-button-wrap {
|
||||
padding: 20px 0px 10px 0px;
|
||||
}
|
||||
|
||||
.license-form-allow-email .bsf-core-license-form-inner, {
|
||||
padding: 10px 30px 30px;
|
||||
}
|
||||
|
||||
.bsf-core-license-form .bsf-core-license-form-overlay {
|
||||
background: #000;
|
||||
opacity: 0.7;
|
||||
filter: alpha(opacity=70);
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 100050;
|
||||
}
|
||||
|
||||
.bsf-core-license-form .bsf-core-license-form-inner {
|
||||
background: #fcfcfc;
|
||||
position: fixed;
|
||||
background-color: #fff;
|
||||
z-index: 999999999;
|
||||
padding: 2px 20px 20px;
|
||||
text-align: left;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
-webkit-transform: translateX(-50%) translateY(-50%);
|
||||
transform: translateX(-50%) translateY(-50%);
|
||||
-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
|
||||
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
|
||||
}
|
||||
|
||||
.bsf-core-license-form-close-btn {
|
||||
position: absolute;
|
||||
left: auto;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 29px;
|
||||
height: 29px;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
||||
-webkit-transform: translateX(100%) translateY(-100%);
|
||||
transform: translateX(100%) translateY(-100%);
|
||||
transition: color .1s ease-in-out, background .1s ease-in-out;
|
||||
color: #eee;
|
||||
}
|
||||
.bsf-core-license-form-close-btn:hover {
|
||||
color: #00a0d2;
|
||||
}
|
||||
.bsf-core-license-form-close-btn .dashicons {
|
||||
display: block;
|
||||
text-align: center;
|
||||
line-height: 29px;
|
||||
width: 29px;
|
||||
height: 29px;
|
||||
font-size: 29px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.bsf-core-license-form .license-form-field input.regular-text {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
/** License link */
|
||||
.bsf-core-license-form-btn.inactive {
|
||||
color: #3db634;
|
||||
font-weight: 500;
|
||||
}
|
||||
.bsf-core-license-form-btn {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.bsf-license-message.license-success {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bsf-system-info-wrapper {
|
||||
overflow: scroll;
|
||||
max-height: 60vh;
|
||||
}
|
||||
|
||||
.bsf-license-heading {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.bsf-license-not-active-astra-portfolio.bsf-license-heading {
|
||||
margin: 1em 0 0 0;
|
||||
}
|
||||
|
||||
.envato-license-registration form {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
.bsf-core-rollback-overlay {
|
||||
background: #000;
|
||||
opacity: 0.7;
|
||||
filter: alpha(opacity=70);
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 100050;
|
||||
}
|
||||
.bsf-confirm-rollback-popup-content {
|
||||
background: #fcfcfc;
|
||||
position: fixed;
|
||||
/* background-color: #fff; */
|
||||
z-index: 999999999;
|
||||
padding: 2px 20px 0px;
|
||||
text-align: left;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
-webkit-transform: translateX(-50%) translateY(-50%);
|
||||
transform: translateX(-50%) translateY(-50%);
|
||||
-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
|
||||
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
|
||||
border-radius: 2px;
|
||||
}
|
||||
.bsf-confirm-rollback-popup-buttons-wrapper .bsf-confirm-cancel{
|
||||
padding: 0px 16px;
|
||||
margin-right: 149px;
|
||||
}
|
||||
.bsf-confirm-text{
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.bsf-confirm-rollback-popup-buttons-wrapper .bsf-confirm-ok{
|
||||
margin-right: 0px;
|
||||
padding: 0px 16px;
|
||||
float: right;
|
||||
}
|
||||
.bsf-rollback-heading{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bsf-confirm-rollback-popup-header {
|
||||
font-size: 15px;
|
||||
color: #495157;
|
||||
padding: 30px 0 10px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
}
|
||||
.bsf-confirm-rollback-popup-message {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
min-height: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
.bsf-confirm-rollback-popup-buttons-wrapper {
|
||||
border-top: 1px solid #e4e4e4;
|
||||
width: 100%;
|
||||
padding: 9px 0px 9px 0px
|
||||
}
|
||||
.bsf-confirm-rollback-popup-button {
|
||||
font-family: Roboto, Arial, Helvetica, Verdana, sans-serif;
|
||||
width: 50%;
|
||||
border: none;
|
||||
background: none;
|
||||
color: #6d7882;
|
||||
font-size: 15px;
|
||||
cursor: pointer;
|
||||
padding: 13px 0;
|
||||
outline: 0;
|
||||
}
|
||||
.bsf-confirm-rollback-popup-button:hover {
|
||||
background:#e6e9ec6b
|
||||
}
|
||||
.bsf-confirm-rollback-popup-button.confirm-cancel {
|
||||
border-right: 1px solid #e6e9ec;
|
||||
}
|
||||
.bsf-confirm-rollback-popup-button.confirm-ok {
|
||||
color: rgb(74, 0, 224);
|
||||
}
|
||||
.bsf-confirm-rollback-popup.show {
|
||||
display: block;
|
||||
}
|
||||
1310
wp/plugins/wp-schema-pro/admin/bsf-core/assets/css/style.css
Normal file
1310
wp/plugins/wp-schema-pro/admin/bsf-core/assets/css/style.css
Normal file
File diff suppressed because it is too large
Load Diff
146
wp/plugins/wp-schema-pro/admin/bsf-core/assets/css/switch.css
Normal file
146
wp/plugins/wp-schema-pro/admin/bsf-core/assets/css/switch.css
Normal file
@@ -0,0 +1,146 @@
|
||||
input.form-control.smile-switch.switch + label.bsf-switch-btn:before {
|
||||
display: none;
|
||||
}
|
||||
input.form-control.smile-input.bsf-switch-input {
|
||||
display: none;
|
||||
}
|
||||
.switch-wrapper {
|
||||
width: 95px;
|
||||
}
|
||||
.shadow_type .onoffswitch-switch {
|
||||
width: 45px;
|
||||
}
|
||||
.shadow_type .onoffswitch-inactive .onoffswitch-switch:before {
|
||||
right: 45px;
|
||||
}
|
||||
.shadow_type .onoffswitch-active .onoffswitch-switch:before {
|
||||
left: 45px;
|
||||
}
|
||||
.ios-toggle, .ios-toggle:active {
|
||||
position:absolute;
|
||||
top:-5000px;
|
||||
height:0;
|
||||
width:0;
|
||||
opacity:0;
|
||||
border:none;
|
||||
outline:none;
|
||||
}
|
||||
|
||||
.checkbox-label {
|
||||
display:block;
|
||||
position:relative;
|
||||
padding:0px;
|
||||
margin: 0px;
|
||||
margin-bottom:20px;
|
||||
font-size:12px;
|
||||
line-height:16px;
|
||||
width:40px;
|
||||
height:20px;
|
||||
-webkit-border-radius:18px;
|
||||
-moz-border-radius:18px;
|
||||
border-radius:18px;
|
||||
background:#f8f8f8;
|
||||
cursor:pointer;
|
||||
-webkit-transition:.25s ease-in-out;
|
||||
-moz-transition:.25s ease-in-out;
|
||||
-o-transition:.25s ease-in-out;
|
||||
transition:.25s ease-in-out;
|
||||
}
|
||||
.checkbox-label:before {
|
||||
content:'';
|
||||
display:block;
|
||||
position:absolute;
|
||||
z-index:1;
|
||||
line-height:34px;
|
||||
text-indent:40px;
|
||||
height:20px;
|
||||
width:20px;
|
||||
-webkit-border-radius:100%;
|
||||
-moz-border-radius:100%;
|
||||
border-radius:100%;
|
||||
top:0px;
|
||||
left:0px;
|
||||
right:auto;
|
||||
background:white;
|
||||
-webkit-box-shadow:0 3px 3px rgba(0, 0, 0, .2), 0 0 0 2px #dddddd;
|
||||
-moz-box-shadow:0 3px 3px rgba(0, 0, 0, .2), 0 0 0 2px #dddddd;
|
||||
box-shadow:0 3px 3px rgba(0, 0, 0, .2), 0 0 0 2px #dddddd;
|
||||
-webkit-transition:.25s ease-in-out;
|
||||
-moz-transition:.25s ease-in-out;
|
||||
-o-transition:.25s ease-in-out;
|
||||
transition:.25s ease-in-out;
|
||||
}
|
||||
.checkbox-label:after {
|
||||
content: attr(data-off);
|
||||
font-size: 13px;
|
||||
display: block;
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
top: 0;
|
||||
left: 50px;
|
||||
padding: 0;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
width: 36px;
|
||||
text-align: left;
|
||||
color: #BFBFBF;
|
||||
white-space: nowrap;
|
||||
-webkit-transition: .25s ease-in-out;
|
||||
-moz-transition: .25s ease-in-out;
|
||||
-o-transition: .25s ease-in-out;
|
||||
transition: .25s ease-in-out;
|
||||
}
|
||||
/* Switch CHECKBOX */
|
||||
.switch-checkbox + .checkbox-label {
|
||||
-webkit-box-shadow:inset 0 0 0 18px #dddddd, 0 0 0 2px #dddddd;
|
||||
-moz-box-shadow:inset 0 0 0 18px #dddddd, 0 0 0 2px #dddddd;
|
||||
box-shadow:inset 0 0 0 18px #dddddd, 0 0 0 2px #dddddd;
|
||||
background: #dddddd;
|
||||
}
|
||||
.switch-checkbox:checked + .checkbox-label {
|
||||
-webkit-box-shadow:inset 0 0 0 18px #0094DD, 0 0 0 2px #0094DD;
|
||||
-moz-box-shadow:inset 0 0 0 18px #0094DD, 0 0 0 2px #0094DD;
|
||||
box-shadow:inset 0 0 0 18px #0094DD, 0 0 0 2px #0094DD;
|
||||
background: #0094DD;
|
||||
}
|
||||
.switch-checkbox:checked + .checkbox-label:after {
|
||||
color:#0094DD;
|
||||
-webkit-transition:.25s ease-in-out;
|
||||
-moz-transition:.25s ease-in-out;
|
||||
-o-transition:.25s ease-in-out;
|
||||
transition:.25s ease-in-out;
|
||||
}
|
||||
|
||||
/* Toggle Checkbox */
|
||||
.ios-toggle:checked + .checkbox-label {
|
||||
-webkit-box-shadow:inset 0 0 0 20px #0094DD, 0 0 0 2px #0094DD;
|
||||
-moz-box-shadow:inset 0 0 0 20px #0094DD, 0 0 0 2px #0094DD;
|
||||
box-shadow:inset 0 0 0 20px #0094DD, 0 0 0 2px #0094DD;
|
||||
}
|
||||
.ios-toggle:checked + .checkbox-label:before {
|
||||
left:calc(100% - 21px);
|
||||
-webkit-box-shadow:0 0 0 1px transparent, 0 2px 2px rgba(0, 0, 0, .3);
|
||||
-moz-box-shadow:0 0 0 1px transparent, 0 2px 2px rgba(0, 0, 0, .3);
|
||||
box-shadow:0 0 0 1px transparent, 0 2px 2px rgba(0, 0, 0, .3);
|
||||
-webkit-transition:.25s ease-in-out;
|
||||
-moz-transition:.25s ease-in-out;
|
||||
-o-transition:.25s ease-in-out;
|
||||
transition:.25s ease-in-out;
|
||||
}
|
||||
.ios-toggle:checked + .checkbox-label:after {
|
||||
content:attr(data-on);
|
||||
-webkit-transition:.25s ease-in-out;
|
||||
-moz-transition:.25s ease-in-out;
|
||||
-o-transition:.25s ease-in-out;
|
||||
transition:.25s ease-in-out;
|
||||
}
|
||||
.ios-toggle[type=checkbox] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.brainstorm-updater-switch {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>Generated by IcoMoon</metadata>
|
||||
<defs>
|
||||
<font id="icomoon" horiz-adv-x="1024">
|
||||
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
||||
<missing-glyph horiz-adv-x="1024" />
|
||||
<glyph unicode=" " d="" horiz-adv-x="512" />
|
||||
<glyph unicode="" d="M467.577-21.5c-2.284 7.369-0.104 15.762 7.18 20.556 10.155 6.679 25.5 20.586 84.534 27.952 35.525 4.396-8.694-54.877-3.142-34.181 1.955 7.287-25.91 1.952-25.91 1.952s-46.553-8.773-58.643-24.894c0 0-1.733 2.227-4.019 8.615zM138.271 557.027c0 0 15.887 237.492 368.384 222.11 0 0 146.319-12.099 215.165-56.96 0 0-293.96 10.546-583.551-165.149zM181.807 507.887c0 0 203.521 128.399 558.772 144.239 0 0 48.21-0.329 72.158-35.208 0 0 14.367-31.64 14.086-88.5 0 0-48.229-1.442-85.408-2.723 0 0-355.977-11.586-537.674-199.511 12.648 44.529-121.089 119.532-21.934 181.703zM255.72 238.57c0 0-14.079 43.451 43.498 69.493 54.329 24.572 127.831 96.191 426.625 133.305 0 0 124.558 25.427 48.884-54.439-84.28-88.948-100.337-111.947-100.337-111.947s-22.41-25.55-14.155 5.204c8.255 30.756-120.967 22.15-120.967 22.15s-201.788-45.676-252.733-113.604c0 0-21.178 22.924-30.816 49.839zM369.409 146.887c0 0 106.32 73.825 227.492 55.88 0 0 29.174-1.921-1.115-22.419-30.29-20.503-226.376-33.461-226.376-33.461zM418.719 53.659c0 0-11.482 30.506 7.413 36.941s36.903 30.834 136.907 41.988c40.619-4.038 1.169-110.607-7.296-79.135 2.763 10.295-10.126 9.762-10.126 9.762s-93.985-18.303-111.035-41.039c0 0-12.635 22.476-15.862 31.483zM899.013 687.749c92.851-208.867-26.868-487.037-271.661-536.994 233.968 65.7 273.711 363.944 218.284 497.451-81.853 197.157-343.286 268.698-505.34 206.428-162.056-62.269-203.018-122.175-238.522-224.811 32.087 89.126 91.171 209.056 273.127 278.972 181.958 69.917 431.262-12.179 524.112-221.047z" />
|
||||
</font></defs></svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
@@ -0,0 +1,32 @@
|
||||
jQuery( document ).on('click', '.bsf-envato-form-activation', function(event) {
|
||||
submitButton = jQuery( this ).parent('.submit-button-wrap');
|
||||
console.log(submitButton);
|
||||
product_id = submitButton.siblings( 'form input[name="product_id"]' ).val();
|
||||
url = submitButton.siblings( 'form input[name="url"]' ).val();
|
||||
redirect = submitButton.siblings( 'form input[name="redirect"]' ).val();
|
||||
privacyConsent = submitButton.siblings( 'input#bsf-license-privacy-consent').val();
|
||||
termsConditionConsent = submitButton.siblings( 'input#bsf-license-terms-conditions-consent').val();
|
||||
envato_activation_nonce = bsf_core.envato_activation_nonce;
|
||||
jQuery.ajax({
|
||||
url: ajaxurl,
|
||||
dataType: 'json',
|
||||
data: {
|
||||
action: 'bsf_envato_redirect_url',
|
||||
product_id: product_id,
|
||||
url: url,
|
||||
redirect: redirect,
|
||||
privacy_consent: privacyConsent,
|
||||
terms_conditions_consent: termsConditionConsent,
|
||||
envato_activation_nonce: envato_activation_nonce,
|
||||
}
|
||||
})
|
||||
.done(function( response ) {
|
||||
window.location = response.data.url;
|
||||
return true;
|
||||
})
|
||||
.fail(function(e) {
|
||||
return false;
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
@@ -0,0 +1,105 @@
|
||||
(function ($) {
|
||||
|
||||
var BSFExtensionInstaller = {
|
||||
|
||||
init: function () {
|
||||
$(document).on('click', '.bsf-install-button', BSFExtensionInstaller._installNow);
|
||||
$( document ).on('wp-plugin-installing' , BSFExtensionInstaller._pluginInstalling);
|
||||
$( document ).on('wp-plugin-install-error' , BSFExtensionInstaller._installError);
|
||||
$( document ).on('wp-plugin-install-success' , BSFExtensionInstaller._installSuccess);
|
||||
},
|
||||
|
||||
/**
|
||||
* Install Now
|
||||
*/
|
||||
_installNow: function (event) {
|
||||
event.preventDefault();
|
||||
|
||||
var $button = jQuery(event.target),
|
||||
$document = jQuery(document);
|
||||
|
||||
if ( $button.hasClass('updating-message') || $button.hasClass('button-disabled') ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (wp.updates.shouldRequestFilesystemCredentials && !wp.updates.ajaxLocked) {
|
||||
wp.updates.requestFilesystemCredentials(event);
|
||||
|
||||
$document.on('credential-modal-cancel', function () {
|
||||
var $message = $('.install-now.updating-message');
|
||||
|
||||
$message
|
||||
.removeClass('updating-message')
|
||||
.text(wp.updates.l10n.installNow);
|
||||
|
||||
wp.a11y.speak(wp.updates.l10n.updateCancel, 'polite');
|
||||
});
|
||||
}
|
||||
|
||||
wp.updates.installPlugin({
|
||||
slug: $button.data('slug')
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Install Success
|
||||
*/
|
||||
_installSuccess: function( event, response ) {
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
// Transform the 'Install' button into an 'Activate' button.
|
||||
var $init = $( '.bsf-extension-' + response.slug ).data('init');
|
||||
var nonce = $( '#bsf_activate_extension_nonce' ).val();
|
||||
|
||||
// WordPress adds "Activate" button after waiting for 1000ms. So we will run our activation after that.
|
||||
setTimeout( function() {
|
||||
|
||||
$.ajax({
|
||||
url: ajaxurl,
|
||||
type: 'POST',
|
||||
data: {
|
||||
'action' : 'bsf-extention-activate',
|
||||
'init' : $init,
|
||||
'security' : nonce
|
||||
},
|
||||
})
|
||||
.done(function (result) {
|
||||
|
||||
if( result.success ) {
|
||||
$ext = $('.bsf-extension-' + response.slug );
|
||||
$ext.addClass('bsf-plugin-installed');
|
||||
$ext.find('.bsf-install-button').addClass('bsf-plugin-installed-button').html('Installed <i class="dashicons dashicons-yes"></i>');
|
||||
$ext.find('.bsf-extension-start-install').removeClass('show-install');
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}, 1200 );
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Plugin Installation Error.
|
||||
*/
|
||||
_installError: function( event, response ) {
|
||||
var $card = $( '.bsf-extension-' + response.slug + ' .bsf-extension-start-install-content')
|
||||
$card.html( '<h2>' + response.errorMessage + '</h2>' );
|
||||
},
|
||||
|
||||
/**
|
||||
* Installing Plugin
|
||||
*/
|
||||
_pluginInstalling: function(event, args) {
|
||||
event.preventDefault();
|
||||
$('.bsf-extension-' + args.slug + ' .bsf-extension-start-install').addClass('show-install');
|
||||
},
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize BSFExtensionInstaller
|
||||
*/
|
||||
$(function () {
|
||||
BSFExtensionInstaller.init();
|
||||
});
|
||||
})(jQuery);
|
||||
263
wp/plugins/wp-schema-pro/admin/bsf-core/assets/js/frosty.js
Normal file
263
wp/plugins/wp-schema-pro/admin/bsf-core/assets/js/frosty.js
Normal file
@@ -0,0 +1,263 @@
|
||||
/* ========================================================================
|
||||
* Frosty.js v1.0
|
||||
* https://github.com/owensbla/frosty
|
||||
* http://labs.blakeowens.com/frosty
|
||||
*
|
||||
* Plugin boilerplate provied by: http://jqueryboilerplate.com/
|
||||
* ========================================================================
|
||||
* Copyright 2013 Blake Owens
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
||||
* and associated documentation files (the "Software"), to deal in the Software without restriction,
|
||||
* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all copies or
|
||||
* substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
||||
* LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
* ======================================================================== */
|
||||
;(function ($, window, document, undefined) {
|
||||
|
||||
var pluginName = "frosty";
|
||||
var defaults = {
|
||||
attribute: 'title',
|
||||
className: 'tip',
|
||||
content: '',
|
||||
delay: 0,
|
||||
hasArrow: true,
|
||||
html: false,
|
||||
offset: 30,
|
||||
position: 'left',
|
||||
removeTitle: true,
|
||||
selector: false,
|
||||
trigger: 'hover,focus',
|
||||
onHidden: function() {},
|
||||
onShown: function() {},
|
||||
|
||||
};
|
||||
|
||||
|
||||
function Frosty(anchor, options) {
|
||||
this.anchor = anchor;
|
||||
this.$anchor = $(anchor);
|
||||
this.options = $.extend({}, defaults, options, this.$anchor.data());
|
||||
this._defaults = defaults;
|
||||
this._name = pluginName;
|
||||
this.init();
|
||||
}
|
||||
|
||||
Frosty.prototype = {
|
||||
init: function () {
|
||||
this._createTip();
|
||||
this._bindEvents();
|
||||
},
|
||||
|
||||
show: function() {
|
||||
var _this = this,
|
||||
delay = typeof this.options.delay === 'object' ? parseInt(this.options.delay.show) : parseInt(this.options.delay);
|
||||
|
||||
clearTimeout(this.timeout);
|
||||
this.timeout = delay === 0 ?
|
||||
this._setState('visible') :
|
||||
setTimeout(function() { _this._setState('visible'); }, delay);
|
||||
},
|
||||
|
||||
hide: function() {
|
||||
var _this = this
|
||||
delay = typeof this.options.delay === 'object' ? parseInt(this.options.delay.hide) : parseInt(this.options.delay);
|
||||
|
||||
clearTimeout(this.timeout);
|
||||
this.timeout = delay === 0 ?
|
||||
this._setState('hidden') :
|
||||
setTimeout(function() { _this._setState('hidden'); }, delay);
|
||||
},
|
||||
|
||||
toggle: function() {
|
||||
this.state === 'visible' ? this.hide() : this.show();
|
||||
},
|
||||
|
||||
addClass: function(klass) {
|
||||
console.log("in");
|
||||
if (typeof klass === 'string') { this.$el.addClass(klass); }
|
||||
},
|
||||
|
||||
removeClass: function(klass) {
|
||||
if (typeof klass === 'string') { this.$el.removeClass(klass); }
|
||||
},
|
||||
|
||||
_setState: function(state) {
|
||||
this.state = state;
|
||||
switch (state) {
|
||||
case 'visible':
|
||||
this.$el.appendTo('body');
|
||||
this._checkContent();
|
||||
this._setPosition();
|
||||
this.options.onShown.call(this);
|
||||
this.$anchor.trigger('shown');
|
||||
break;
|
||||
case 'hidden':
|
||||
this.$el.detach();
|
||||
this.options.onHidden.call(this);
|
||||
this.$anchor.trigger('hidden');
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
_checkContent: function() {
|
||||
if (this.options.selector) {
|
||||
this.tipContent = $(this.options.selector).html();
|
||||
this.$el.html(this.tipContent);
|
||||
}
|
||||
},
|
||||
|
||||
_createTip: function() {
|
||||
if (this.options.html) {
|
||||
this.tipContent = this.options.content;
|
||||
} else if (this.options.selector) {
|
||||
this.tipContent = $(this.options.selector).html();
|
||||
} else {
|
||||
this.tipContent = this.$anchor.attr(this.options.attribute);
|
||||
if (this.options.attribute === 'title' && this.options.removeTitle) {
|
||||
this.$anchor.attr('data-original-title', this.tipContent);
|
||||
this.$anchor.removeAttr('title');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
this.$el = $('<div />', {
|
||||
'class': this.options.className,
|
||||
html: '<span class="cp_tooltip_text">'+this.tipContent+'</span>'
|
||||
}).css({
|
||||
'z-index': '9999999999',
|
||||
'left': '-9999px',
|
||||
'position': 'absolute',
|
||||
|
||||
});
|
||||
|
||||
this.$el.appendTo('body');
|
||||
var coords = this.getPosition();
|
||||
this.$el.detach().css(coords);
|
||||
|
||||
if (this.options.hasArrow) { this._addArrowClass(); }
|
||||
},
|
||||
|
||||
_addArrowClass: function() {
|
||||
switch (this.options.position) {
|
||||
case 'left':
|
||||
this.$el.addClass('arrow-right');
|
||||
break;
|
||||
case 'right':
|
||||
this.$el.addClass('arrow-left');
|
||||
break;
|
||||
case 'bottom':
|
||||
this.$el.addClass('arrow-top');
|
||||
break;
|
||||
default:
|
||||
this.$el.addClass('arrow-bottom');
|
||||
}
|
||||
},
|
||||
|
||||
_bindEvents: function() {
|
||||
switch (this.options.trigger) {
|
||||
case 'click':
|
||||
this.$anchor.click($.proxy(this.toggle, this));
|
||||
break
|
||||
case 'manual':
|
||||
break;
|
||||
case 'focus':
|
||||
this.$anchor.focus($.proxy(this.show, this));
|
||||
this.$anchor.blur($.proxy(this.hide, this));
|
||||
break;
|
||||
default:
|
||||
this.$anchor.hover($.proxy(this.show, this), $.proxy(this.hide, this));
|
||||
}
|
||||
|
||||
//$(window).resize($.proxy(this._setPosition, this));
|
||||
},
|
||||
|
||||
getPosition: function () {
|
||||
var coords = this.$anchor.offset();
|
||||
switch (this.options.position) {
|
||||
case 'left':
|
||||
coords.left = coords.left - this.$el.outerWidth() - this.options.offset;
|
||||
coords.top = coords.top + (this.$anchor.outerHeight() / 2) - (this.$el.outerHeight() / 2);
|
||||
break;
|
||||
case 'right':
|
||||
coords.left = coords.left + this.$anchor.outerWidth() + this.options.offset;
|
||||
coords.top = coords.top + (this.$anchor.outerHeight() / 2) - (this.$el.outerHeight() / 2);
|
||||
break;
|
||||
case 'bottom':
|
||||
coords.top = coords.top + this.$anchor.outerHeight() + this.options.offset;
|
||||
coords.left = coords.left + (this.$anchor.outerWidth() / 2) - (this.$el.outerWidth() / 2);
|
||||
break;
|
||||
default:
|
||||
coords.top = coords.top - this.$el.outerHeight() - this.options.offset;
|
||||
var left = coords.left + (this.$anchor.outerWidth() / 2) - (this.$el.outerWidth() / 2);
|
||||
if( left < 0 )
|
||||
left = 0;
|
||||
coords.left = left;
|
||||
}
|
||||
//console.log(coords);
|
||||
return coords;
|
||||
},
|
||||
|
||||
_setPosition: function() {
|
||||
this.$el.css(this.getPosition());
|
||||
}
|
||||
};
|
||||
|
||||
$.fn[pluginName] = function (options, args) {
|
||||
//console.log($.data(this, "plugin_" + pluginName));
|
||||
if (typeof options === 'string') {
|
||||
//console.log(options);
|
||||
switch (options) {
|
||||
case 'show':
|
||||
this.each(function() { $.data(this, "plugin_" + pluginName)['show'](); });
|
||||
break;
|
||||
case 'hide':
|
||||
this.each(function() { $.data(this, "plugin_" + pluginName)['hide'](); });
|
||||
break;
|
||||
case 'toggle':
|
||||
this.each(function() { $.data(this, "plugin_" + pluginName)['toggle'](); });
|
||||
break;
|
||||
case 'addClass':
|
||||
this.each(function() { $.data(this, "plugin_" + pluginName)['addClass'](args); });
|
||||
break;
|
||||
case 'removeClass':
|
||||
this.each(function() { $.data(this, "plugin_" + pluginName)['removeClass'](args); });
|
||||
break;
|
||||
}
|
||||
}
|
||||
return this.each(function () {
|
||||
if (!$.data(this, "plugin_" + pluginName)) {
|
||||
$.data(this, "plugin_" + pluginName, new Frosty(this, options));
|
||||
}
|
||||
});
|
||||
};
|
||||
})(jQuery, window, document);
|
||||
|
||||
(function($){
|
||||
$(document).ready(function(){
|
||||
$('.bsf-has-tip, .has-tip').each(function(i,tip){
|
||||
$tip = $(tip);
|
||||
var attribute = (typeof $tip.attr('data-attribute') != 'undefined') ? $tip.attr('data-attribute') : 'title';
|
||||
var offset = (typeof $tip.attr('data-offset') != 'undefined') ? $tip.attr('data-offset') : 10;
|
||||
var position = (typeof $tip.attr('data-position') != 'undefined') ? $tip.attr('data-position') : 'top';
|
||||
var trigger = (typeof $tip.attr('data-trigger')) ? $tip.attr('data-trigger') : 'hover,focus';
|
||||
var className = (typeof $tip.attr('data-classes') != 'undefined') ? 'tip '+$tip.attr('data-classes') : 'tip';
|
||||
$tip.frosty({
|
||||
className : className,
|
||||
attribute: attribute,
|
||||
offset: offset,
|
||||
position: position,
|
||||
trigger: trigger
|
||||
});
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
1
wp/plugins/wp-schema-pro/admin/bsf-core/assets/js/jquery-history.js
vendored
Normal file
1
wp/plugins/wp-schema-pro/admin/bsf-core/assets/js/jquery-history.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,151 @@
|
||||
(function($){
|
||||
|
||||
BSFCoreLicenseForm = {
|
||||
|
||||
/**
|
||||
* Init
|
||||
*/
|
||||
init: function()
|
||||
{
|
||||
this._showFormOnLoad();
|
||||
this._bind();
|
||||
},
|
||||
|
||||
/**
|
||||
* Binds events
|
||||
*/
|
||||
_bind: function()
|
||||
{
|
||||
$( document ).on('click', '.bsf-core-license-form-btn', BSFCoreLicenseForm._showFormOnClick);
|
||||
$( document ).on('click', '.bsf-core-license-form-close-btn', BSFCoreLicenseForm._closeForm);
|
||||
$( document ).on('click', '.bsf-core-license-form .bsf-core-license-form-overlay', BSFCoreLicenseForm._closeForm);
|
||||
},
|
||||
|
||||
_changeURL: function( url )
|
||||
{
|
||||
History.pushState(null, null, url);
|
||||
},
|
||||
|
||||
/**
|
||||
* Show form on Load
|
||||
*/
|
||||
_showFormOnLoad: function( e )
|
||||
{
|
||||
if( BSFCoreLicenseForm._getParamFromURL('bsf-inline-license-form') ) {
|
||||
var slug = BSFCoreLicenseForm._getParamFromURL('bsf-inline-license-form');
|
||||
BSFCoreLicenseForm._showForm( slug );
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Show form on Click
|
||||
*/
|
||||
_showFormOnClick: function( e )
|
||||
{
|
||||
// don't override click action if the link is not from the popup form.
|
||||
var licenseFormURl = $( this ).attr('href') || '';
|
||||
|
||||
if ( null !== BSFCoreLicenseForm._getParamFromURL('bsf-inline-license-form', licenseFormURl) ||
|
||||
true === $( this ).hasClass('bsf-core-plugin-link') ) {
|
||||
e.preventDefault();
|
||||
var slug = $( this ).attr('plugin-slug') || '';
|
||||
var url_params = {'bsf-inline-license-form':slug};
|
||||
BSFCoreLicenseForm._showForm( slug );
|
||||
|
||||
// Change URL.
|
||||
if( ! BSFCoreLicenseForm._getParamFromURL('bsf-inline-license-form') ) {
|
||||
var current_url = window.location.href;
|
||||
var current_url_separator = ( window.location.href.indexOf( "?" ) === -1 ) ? "?" : "&";
|
||||
|
||||
var new_url = current_url + current_url_separator + decodeURIComponent( $.param( url_params ) );
|
||||
|
||||
BSFCoreLicenseForm._changeURL( new_url );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Show form by slug
|
||||
*/
|
||||
_showForm: function( slug )
|
||||
{
|
||||
if( $(".bsf-core-license-form[plugin-slug='"+slug+"']").length ) {
|
||||
$(".bsf-core-license-form[plugin-slug='"+slug+"']").show();
|
||||
$('body').addClass('bsf-core-license-form-open');
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Close form.
|
||||
*/
|
||||
_closeForm: function( e )
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
$('.bsf-core-license-form').hide();
|
||||
$('body').removeClass('bsf-core-license-form-open');
|
||||
|
||||
if( BSFCoreLicenseForm._getParamFromURL('bsf-inline-license-form') ) {
|
||||
|
||||
var url_params = BSFCoreLicenseForm._getQueryStrings();
|
||||
delete url_params['bsf-inline-license-form'];
|
||||
delete url_params['bsf-inline-license-form'];
|
||||
delete url_params['license_action'];
|
||||
delete url_params['token'];
|
||||
delete url_params['product_id'];
|
||||
delete url_params['purchase_key'];
|
||||
delete url_params['success'];
|
||||
delete url_params['status'];
|
||||
delete url_params['message'];
|
||||
delete url_params['debug'];
|
||||
delete url_params['activation_method'];
|
||||
|
||||
var current_url = window.location.href;
|
||||
var root_url = current_url.substr(0, current_url.indexOf('?'));
|
||||
if( jQuery.isEmptyObject( url_params ) ) {
|
||||
var new_url = root_url + decodeURIComponent( $.param( url_params ) );
|
||||
} else {
|
||||
var current_url_separator = ( root_url.indexOf( "?" ) === -1 ) ? "?" : "&";
|
||||
var new_url = root_url + current_url_separator + decodeURIComponent( $.param( url_params ) );
|
||||
}
|
||||
|
||||
// Change URL.
|
||||
BSFCoreLicenseForm._changeURL( new_url );
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Get URL param.
|
||||
*/
|
||||
_getParamFromURL: function(name, url)
|
||||
{
|
||||
if (!url) url = window.location.href;
|
||||
name = name.replace(/[\[\]]/g, "\\$&");
|
||||
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
|
||||
results = regex.exec(url);
|
||||
if (!results) return null;
|
||||
if (!results[2]) return '';
|
||||
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
||||
},
|
||||
|
||||
/**
|
||||
* Get query strings.
|
||||
*/
|
||||
_getQueryStrings( str )
|
||||
{
|
||||
return (str || document.location.search).replace(/(^\?)/,'').split("&").map(function(n){return n = n.split("="),this[n[0]] = n[1],this}.bind({}))[0];
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Initialization
|
||||
*/
|
||||
$(function(){
|
||||
BSFCoreLicenseForm.init();
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
16
wp/plugins/wp-schema-pro/admin/bsf-core/assets/js/switch.js
Normal file
16
wp/plugins/wp-schema-pro/admin/bsf-core/assets/js/switch.js
Normal file
@@ -0,0 +1,16 @@
|
||||
jQuery(document).ready(function(){
|
||||
var switch_btn = jQuery(".bsf-switch-btn");
|
||||
jQuery(document).on('click', '.bsf-switch-btn', function(e){
|
||||
var id = jQuery(this).data('id');
|
||||
var value = jQuery(this).parents(".switch-wrapper").find("#"+id).val();
|
||||
|
||||
if( value == 1 || value == '1' ) {
|
||||
jQuery(this).parents(".switch-wrapper").find("#"+id).attr('value','0');
|
||||
} else {
|
||||
jQuery(this).parents(".switch-wrapper").find("#"+id).attr('value','1');
|
||||
}
|
||||
|
||||
jQuery(this).parents(".switch-wrapper").find(".bsf-switch-input").trigger('change');
|
||||
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,61 @@
|
||||
|
||||
(function($){
|
||||
var currentRollbackButton;
|
||||
|
||||
rollbackVersion = {
|
||||
init: function() {
|
||||
$( document ).on('change', '.bsf-rollback-version-select' , rollbackVersion.onSelectVersion );
|
||||
$( document ).on('click', '.bsf-rollback-button' , rollbackVersion.onRollbackClick );
|
||||
$( document ).on('click', '.bsf-confirm-cancel' , rollbackVersion.closeRollbackPopup );
|
||||
$( document ).on('click', '.bsf-confirm-ok' , rollbackVersion.onRollbackOk );
|
||||
},
|
||||
|
||||
onSelectVersion:function() {
|
||||
var selectRollback = jQuery( this );
|
||||
rollbackButton = selectRollback.next( '.bsf-rollback-button' )
|
||||
placeholderText = rollbackButton.data( 'placeholder-text' );
|
||||
placeholderUrl = rollbackButton.data( 'placeholder-url' );
|
||||
|
||||
rollbackButton.attr( 'href', placeholderUrl.replace( 'VERSION', selectRollback.val() ) );
|
||||
},
|
||||
|
||||
onRollbackClick: function ( e ) {
|
||||
e.preventDefault();
|
||||
var rollbackButton = jQuery( this );
|
||||
// This will update the current rollback button object.
|
||||
currentRollbackButton = rollbackButton;
|
||||
rollbackHeading = $('.bsf-confirm-heading');
|
||||
rollbackConfirmText = $('.bsf-rollback-text');
|
||||
closestDiv = rollbackButton.closest('.bsf-rollback-version');
|
||||
versionNumber = closestDiv.find('.bsf-rollback-version-select').val();
|
||||
selectProductName = closestDiv.find('#bsf-product-name').val();
|
||||
|
||||
// Rollback Heading text.
|
||||
rollbackHeadingdata = rollbackHeading.data('text').replace( '#PRODUCT_NAME#', selectProductName );
|
||||
rollbackHeading.html( rollbackHeadingdata );
|
||||
// Rollback Confirmation text.
|
||||
rollbackConfirmdata = rollbackConfirmText.data('text').replace( '#PRODUCT_NAME#', selectProductName );
|
||||
rollbackConfirmdata = rollbackConfirmdata.replace( '#VERSION#', versionNumber )
|
||||
rollbackConfirmText.html( rollbackConfirmdata );
|
||||
|
||||
document.querySelector('.bsf-confirm-rollback-popup').style.display = 'block';
|
||||
},
|
||||
|
||||
closeRollbackPopup: function ( e ) {
|
||||
document.querySelector('.bsf-confirm-rollback-popup').style.display = 'none';
|
||||
},
|
||||
|
||||
onRollbackOk:function ( e ) {
|
||||
e.preventDefault();
|
||||
if( currentRollbackButton ){
|
||||
var redirectUrl = currentRollbackButton.closest('.bsf-rollback-version').find('.bsf-rollback-button').attr('href');
|
||||
location.href = redirectUrl;
|
||||
}
|
||||
rollbackVersion.closeRollbackPopup( e );
|
||||
}
|
||||
}
|
||||
|
||||
$( document ).ready(function() {
|
||||
rollbackVersion.init();
|
||||
});
|
||||
})( jQuery );
|
||||
Reference in New Issue
Block a user