plugin updates

This commit is contained in:
Tony Volpe
2024-02-21 16:19:46 +00:00
parent c72f206574
commit 21d4c85c00
1214 changed files with 102269 additions and 179257 deletions

View File

@@ -1,21 +1,21 @@
.aiosrs-rating-wrap .aiosrs-star-rating-wrap {
display: inline-block;
vertical-align: middle;
}
.aiosrs-rating-wrap .aiosrs-star-rating-wrap ~ .aiosrs-star-rating-wrap {
float: right;
}
.aiosrs-rating-wrap .aiosrs-star-rating-wrap .aiosrs-star-rating {
color: #ffd700;
}
.aiosrs-rating-wrap .aiosrs-star-rating-wrap:not(.disabled) .aiosrs-star-rating {
cursor: pointer;
}
.aiosrs-rating-wrap .success-msg {
color: #0f0;
margin-left: 5px;
}
.aiosrs-rating-wrap .aiosrs-star-rating-wrap {
display: inline-block;
vertical-align: middle;
}
.aiosrs-rating-wrap .aiosrs-star-rating-wrap ~ .aiosrs-star-rating-wrap {
float: right;
}
.aiosrs-rating-wrap .aiosrs-star-rating-wrap .aiosrs-star-rating {
color: #ffd700;
}
.aiosrs-rating-wrap .aiosrs-star-rating-wrap:not(.disabled) .aiosrs-star-rating {
cursor: pointer;
}
.aiosrs-rating-wrap .success-msg {
color: #0f0;
margin-left: 5px;
}

View File

@@ -1,98 +1,98 @@
body.aiosrs-pro-license-form-open {
overflow: hidden;
}
#aiosrs-pro-license-form p {
padding: 5px 0 5px 0;
}
#aiosrs-pro-license-form .aiosrs-pro-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;
}
#aiosrs-pro-license-form .aiosrs-pro-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);
}
#aiosrs-pro-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 0.1s ease-in-out, background 0.1s ease-in-out;
-webkit-transform: translateX(100%);
transform: translateX(100%);
transition: color 0.1s ease-in-out, background 0.1s ease-in-out;
color: #eee;
}
#aiosrs-pro-license-form-close-btn:hover {
color: #00a0d2;
}
#aiosrs-pro-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;
}
#aiosrs-pro-license-form .license-form-field input.regular-text {
margin-right: 10px;
}
/** Validation Messages */
.bsf-current-license-error-wp-schema-pro,
.bsf-current-license-success-wp-schema-pro {
display: block;
margin-bottom: 0.5em;
}
.bsf-current-license-error-wp-schema-pro {
color: #f44336;
}
.bsf-current-license-success-wp-schema-pro {
color: #008000;
}
/** License link */
#aiosrs-pro-license-form-btn.active {
color: #3db634;
}
#aiosrs-pro-license-form-btn.inactive {
color: #f44336;
}
body.aiosrs-pro-license-form-open {
overflow: hidden;
}
#aiosrs-pro-license-form p {
padding: 5px 0 5px 0;
}
#aiosrs-pro-license-form .aiosrs-pro-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;
}
#aiosrs-pro-license-form .aiosrs-pro-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);
}
#aiosrs-pro-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 0.1s ease-in-out, background 0.1s ease-in-out;
-webkit-transform: translateX(100%);
transform: translateX(100%);
transition: color 0.1s ease-in-out, background 0.1s ease-in-out;
color: #eee;
}
#aiosrs-pro-license-form-close-btn:hover {
color: #00a0d2;
}
#aiosrs-pro-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;
}
#aiosrs-pro-license-form .license-form-field input.regular-text {
margin-right: 10px;
}
/** Validation Messages */
.bsf-current-license-error-wp-schema-pro,
.bsf-current-license-success-wp-schema-pro {
display: block;
margin-bottom: 0.5em;
}
.bsf-current-license-error-wp-schema-pro {
color: #f44336;
}
.bsf-current-license-success-wp-schema-pro {
color: #008000;
}
/** License link */
#aiosrs-pro-license-form-btn.active {
color: #3db634;
}
#aiosrs-pro-license-form-btn.inactive {
color: #f44336;
}

View File

@@ -1,460 +1,460 @@
.bsf-aiosrs-pro {
max-width: 1200px;
}
.bsf-aiosrs-pro .aiosrs-help-link {
font-size: 1.2em;
}
.bsf-aiosrs-pro .aiosrs-help-link:focus {
box-shadow: none;
}
.bsf-aiosrs-pro .form-table th {
width: 280px;
}
.bsf-aiosrs-pro .form-table td.schema-contact-type-option {
display: block;
}
.bsf-aiosrs-pro .form-table td.schema-contact-type-option-change {
margin-bottom: unset;
padding-bottom: 0;
}
.sp-required {
color: #dc3232;
font-size: 14px;
margin-left: 2px;
}
.bsf-aiosrs-pro .select2-selection__choice {
line-height: 1.7;
}
.bsf-aiosrs-pro .select2-container * {
vertical-align: middle;
}
.bsf-aiosrs-pro .select2-container .select2-selection__choice__remove {
vertical-align: initial;
}
.wp-schema-pro-global-schemas .form-table select,
.wp-schema-pro-general-settings .form-table input[type="text"],
.wp-schema-pro-general-settings .form-table select,
.wp-schema-pro-breadcrumb-setting .form-table select,
.wp-schema-pro-advanced-settings .form-table select,
.wp-schema-pro-social-profiles .form-table input[type="url"] {
min-width: 50%;
}
.wp-schema-pro-corporate-contact .form-table input[type="url"],
.wp-schema-pro-corporate-contact .form-table input[type="text"],
.wp-schema-pro-corporate-contact .form-table input[type="email"],
.wp-schema-pro-corporate-contact .form-table select {
min-width: 64%;
}
#wp-schema-pro-setting-links {
margin-top: 10px;
margin-left: 5px;
}
#wp-schema-pro-setting-links a {
text-decoration: none;
box-shadow: none;
}
#wp-schema-pro-setting-links a.active {
color: inherit;
pointer-events: none;
font-weight: 600;
}
.wp-schema-pro-general-settings .custom-field-wrapper {
display: inline-block;
width: 48%;
vertical-align: middle;
}
.wp-schema-pro-general-settings .site-logo-custom-wrap {
vertical-align: top;
}
/**
* Custom Image Select
*/
.wp-schema-pro-general-settings .image-field-wrap,
.wp-schema-pro-advanced-settings .image-field-wrap {
position: relative;
display: inline-block;
}
.wp-schema-pro-general-settings .aiosrs-image-select .dashicons,
.wp-schema-pro-advanced-settings .aiosrs-image-select .dashicons {
font-size: 1.2em;
width: 1em;
height: 1em;
line-height: 16px;
margin-right: 5px;
vertical-align: middle;
}
.wp-schema-pro-general-settings .aiosrs-image-remove,
.wp-schema-pro-advanced-settings .aiosrs-image-remove {
display: none;
position: absolute;
background: rgba(255, 255, 255, 0.7);
right: 0;
font-size: 15px;
width: 1em;
height: 1em;
}
.wp-schema-pro-general-settings .bsf-custom-image-selected .aiosrs-image-select,
.wp-schema-pro-advanced-settings .bsf-custom-image-selected .aiosrs-image-select {
display: none;
}
.wp-schema-pro-general-settings .bsf-custom-image-selected .aiosrs-image-remove,
.wp-schema-pro-advanced-settings .bsf-custom-image-selected .aiosrs-image-remove {
display: inline-block;
}
.wp-schema-pro-general-settings .bsf-custom-image-selected .aiosrs-image-select.img,
.wp-schema-pro-advanced-settings .bsf-custom-image-selected .aiosrs-image-select.img {
max-width: 100%;
display: inline-block;
}
.wp-schema-pro-general-settings .bsf-custom-image-selected .aiosrs-image-select.img img {
max-height: 75px;
}
.wp-schema-pro-general-settings .bsf-custom-image-selected .aiosrs-image-select.img img,
.wp-schema-pro-advanced-settings .bsf-custom-image-selected .aiosrs-image-select.img img {
vertical-align: middle;
max-width: 300px;
}
/**
* Default Image
*/
.wp-schema-pro-advanced-settings .bsf-custom-image-selected .aiosrs-image-select.img img,
.wp-schema-pro-general-settings .bsf-custom-image-selected .aiosrs-image-select.default-image.img img {
max-height: 150px;
}
/**
* Repeater Style
*/
.aiosrs-pro-repeater-table-wrap {
position: relative;
margin-bottom: 1em;
border: 1px solid #f1f1f1;
padding: 10px;
}
.aiosrs-pro-repeater-table-wrap .bsf-repeater-close {
position: absolute;
top: 0;
right: 0;
padding: 2px;
border: 1px solid #f1f1f1;
}
.bsf-repeater-add-new-btn {
float: right;
width: 100px;
}
.aiosrs-pro-repeater-table-wrap .form-table th,
.aiosrs-pro-repeater-table-wrap .form-table td {
border: 0;
padding: 0;
width: 100%;
display: inline-block;
}
.aiosrs-pro-repeater-table-wrap .form-table td input,
.aiosrs-pro-repeater-table-wrap .form-table td select {
min-width: 70%;
}
.bsf-aiosrs-schema-type-wrap .aiosrs-pro-repeater-table-wrap:first-of-type:last-of-type .bsf-repeater-close {
opacity: 0.3;
filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
pointer-events: none;
}
/**
* Tooltip
*/
.wp-schema-pro-tooltip-wrapper {
position: relative;
display: inline-block;
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-description {
opacity: 0;
visibility: hidden;
transition: 0.3s;
position: absolute;
background: #333;
color: #dedede;
left: calc(100% - 2.4em);
bottom: calc(100% - 0.75em);
border-radius: 3px;
box-shadow: 0 0 1px 0 #333;
font-weight: 400;
min-width: 300px;
z-index: 9999;
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-icon {
cursor: pointer;
font-size: 18px;
}
.wp-schema-pro-tooltip-wrapper.activate .wp-schema-pro-tooltip-icon {
pointer-events: none;
}
.wp-schema-pro-tooltip-wrapper .dashicons.dashicons-arrow-down {
position: absolute;
font-size: 3em;
top: calc(100% - 0.5em);
left: 0;
color: #333;
line-height: initial;
z-index: -1;
}
.wp-schema-pro-tooltip-wrapper.activate .wp-schema-pro-tooltip-description {
opacity: 1;
visibility: visible;
bottom: calc(100% + 0.75em);
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-content {
padding: 8px 12px;
}
.wp-schema-pro-tooltip-wrapper h2.wp-schema-pro-tooltip-heading ~ .wp-schema-pro-tooltip-content {
min-height: 50px;
}
.wp-schema-pro-tooltip-wrapper h2.wp-schema-pro-tooltip-heading {
color: #dedede;
font-weight: 600;
border-bottom: 1px solid #eee;
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-content a {
text-decoration: none;
box-shadow: none;
font-size: inherit;
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-content img {
max-width: 100%;
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-content .tooltip-image {
margin-top: 10px;
}
.tooltip-with-image-wrapper .wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-description {
min-width: 400px;
}
.rtl .wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-description {
right: calc(100% - 2.4em);
left: 0;
}
.rtl .wp-schema-pro-tooltip-wrapper .dashicons.dashicons-arrow-down {
right: 0;
}
.hndle .wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-icon {
color: #f00;
}
.hndle .wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-icon::before {
content: "\f534";
}
.wp-schema-pro-yoast-compatibilty-wrap th {
display: flex;
}
.wp-schema-pro-yoast-compatibilty-wrap td {
vertical-align: top;
padding-top: 20px;
}
.wp-schema-pro-tooltip-content ol {
margin-top: 0.5em;
}
.schema-branding input::placeholder,
.contact-form input::placeholder {
font-style: italic;
}
.aiosrs-menu-page-wrapper #aiosrs-menu-page .wrap .wpsp-pro-logo {
vertical-align: middle;
}
.aiosrs-menu-page-wrapper #aiosrs-menu-page .wrap .wpsp-pro-title {
display: inline-block;
font-size: 20px;
}
.aiosrs-menu-page-wrapper #aiosrs-menu-page .wrap .wpsp-pro-logo img {
max-width: 12%;
margin: 20px 3px 20px 0;
}
#aiosrs-menu-page .schema-version {
font-size: 13px;
background-color: #fff;
padding: 2px;
}
.form-table td.breadcrumb-title {
padding: 0;
}
.wpsp-required-error-field {
color: #f00 !important;
}
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr {
width: 50%;
display: inline-block;
}
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr td input {
width: 135%;
}
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr th {
width: 34%;
}
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr:last-child {
width: auto;
display: block;
}
.wpsp-text-strong {
font-weight: 700;
}
.bsf-aiosrs-pro .postbox.wp-schema-pro-general-settings .hndle,
.bsf-aiosrs-pro .postbox.wp-schema-pro-breadcrumb-setting .hndle,
.bsf-aiosrs-pro .postbox.wp-schema-pro-advanced-settings .hndle,
.bsf-aiosrs-pro .postbox.wp-schema-pro-branding-settings .hndle,
.bsf-aiosrs-pro .postbox.wp-schema-pro-social-profiles .hndle,
.bsf-aiosrs-pro .postbox.wp-schema-pro-corporate-contact .hndle,
.bsf-aiosrs-pro .postbox.wp-schema-pro-global-schemas .hndle,
.bsf-aiosrs-pro .postbox-container .postbox .hndle {
border-bottom: 1px solid #ccd0d4;
}
.wp-schema-pro-general-settings .select2-container--default .select2-selection--single {
box-shadow: 0 0 0 transparent;
border-radius: 4px;
padding: 0.5em;
font-size: 14px;
height: 33px;
border: 1px solid #7e8993;
background-color: #fff;
color: #32373c;
}
.wp-schema-pro-general-settings .select2.select2-container.select2-container--default {
width: 50% !important;
}
.wp-schema-pro-general-settings .select2-container--default .select2-selection--single .select2-selection__rendered {
color: unset;
line-height: unset;
}
.wp-schema-pro-general-settings .select2-container--default .select2-selection--single .select2-selection__arrow {
top: 4px;
}
.select2-container--default .select2-selection.select2-selection--single:focus {
border-color: #007cba;
box-shadow: 0 0 0 1px #007cba;
outline: 2px solid transparent;
}
/**
* dynamic social profile repeater.
*/
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr th.wpsp-other-th {
width: 33% !important;
}
a#add-row {
float: right;
margin-right: 30px;
}
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr td input.wpsp-other {
width: 132% !important;
}
span.wpsp-field-close.dashicons.dashicons-dismiss {
color: #999;
cursor: pointer;
display: inline-flex;
font-size: 18px;
justify-content: center;
position: relative;
top: -22px;
left: 140%;
width: 5px;
}
@media screen and ( min-width: 783px) {
.wp-schema-pro-tooltip-wrapper {
float: right;
}
.rtl .wp-schema-pro-tooltip-wrapper {
float: left;
}
.hndle .wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-description {
min-width: 400px;
}
.hndle .wp-schema-pro-tooltip-wrapper {
float: none;
}
}
@-moz-document url-prefix() {
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr {
width: 50%;
float: left;
}
}
.bsf-aiosrs-pro {
max-width: 1200px;
}
.bsf-aiosrs-pro .aiosrs-help-link {
font-size: 1.2em;
}
.bsf-aiosrs-pro .aiosrs-help-link:focus {
box-shadow: none;
}
.bsf-aiosrs-pro .form-table th {
width: 280px;
}
.bsf-aiosrs-pro .form-table td.schema-contact-type-option {
display: block;
}
.bsf-aiosrs-pro .form-table td.schema-contact-type-option-change {
margin-bottom: unset;
padding-bottom: 0;
}
.sp-required {
color: #dc3232;
font-size: 14px;
margin-left: 2px;
}
.bsf-aiosrs-pro .select2-selection__choice {
line-height: 1.7;
}
.bsf-aiosrs-pro .select2-container * {
vertical-align: middle;
}
.bsf-aiosrs-pro .select2-container .select2-selection__choice__remove {
vertical-align: initial;
}
.wp-schema-pro-global-schemas .form-table select,
.wp-schema-pro-general-settings .form-table input[type="text"],
.wp-schema-pro-general-settings .form-table select,
.wp-schema-pro-breadcrumb-setting .form-table select,
.wp-schema-pro-advanced-settings .form-table select,
.wp-schema-pro-social-profiles .form-table input[type="url"] {
min-width: 50%;
}
.wp-schema-pro-corporate-contact .form-table input[type="url"],
.wp-schema-pro-corporate-contact .form-table input[type="text"],
.wp-schema-pro-corporate-contact .form-table input[type="email"],
.wp-schema-pro-corporate-contact .form-table select {
min-width: 64%;
}
#wp-schema-pro-setting-links {
margin-top: 10px;
margin-left: 5px;
}
#wp-schema-pro-setting-links a {
text-decoration: none;
box-shadow: none;
}
#wp-schema-pro-setting-links a.active {
color: inherit;
pointer-events: none;
font-weight: 600;
}
.wp-schema-pro-general-settings .custom-field-wrapper {
display: inline-block;
width: 48%;
vertical-align: middle;
}
.wp-schema-pro-general-settings .site-logo-custom-wrap {
vertical-align: top;
}
/**
* Custom Image Select
*/
.wp-schema-pro-general-settings .image-field-wrap,
.wp-schema-pro-advanced-settings .image-field-wrap {
position: relative;
display: inline-block;
}
.wp-schema-pro-general-settings .aiosrs-image-select .dashicons,
.wp-schema-pro-advanced-settings .aiosrs-image-select .dashicons {
font-size: 1.2em;
width: 1em;
height: 1em;
line-height: 16px;
margin-right: 5px;
vertical-align: middle;
}
.wp-schema-pro-general-settings .aiosrs-image-remove,
.wp-schema-pro-advanced-settings .aiosrs-image-remove {
display: none;
position: absolute;
background: rgba(255, 255, 255, 0.7);
right: 0;
font-size: 15px;
width: 1em;
height: 1em;
}
.wp-schema-pro-general-settings .bsf-custom-image-selected .aiosrs-image-select,
.wp-schema-pro-advanced-settings .bsf-custom-image-selected .aiosrs-image-select {
display: none;
}
.wp-schema-pro-general-settings .bsf-custom-image-selected .aiosrs-image-remove,
.wp-schema-pro-advanced-settings .bsf-custom-image-selected .aiosrs-image-remove {
display: inline-block;
}
.wp-schema-pro-general-settings .bsf-custom-image-selected .aiosrs-image-select.img,
.wp-schema-pro-advanced-settings .bsf-custom-image-selected .aiosrs-image-select.img {
max-width: 100%;
display: inline-block;
}
.wp-schema-pro-general-settings .bsf-custom-image-selected .aiosrs-image-select.img img {
max-height: 75px;
}
.wp-schema-pro-general-settings .bsf-custom-image-selected .aiosrs-image-select.img img,
.wp-schema-pro-advanced-settings .bsf-custom-image-selected .aiosrs-image-select.img img {
vertical-align: middle;
max-width: 300px;
}
/**
* Default Image
*/
.wp-schema-pro-advanced-settings .bsf-custom-image-selected .aiosrs-image-select.img img,
.wp-schema-pro-general-settings .bsf-custom-image-selected .aiosrs-image-select.default-image.img img {
max-height: 150px;
}
/**
* Repeater Style
*/
.aiosrs-pro-repeater-table-wrap {
position: relative;
margin-bottom: 1em;
border: 1px solid #f1f1f1;
padding: 10px;
}
.aiosrs-pro-repeater-table-wrap .bsf-repeater-close {
position: absolute;
top: 0;
right: 0;
padding: 2px;
border: 1px solid #f1f1f1;
}
.bsf-repeater-add-new-btn {
float: right;
width: 100px;
}
.aiosrs-pro-repeater-table-wrap .form-table th,
.aiosrs-pro-repeater-table-wrap .form-table td {
border: 0;
padding: 0;
width: 100%;
display: inline-block;
}
.aiosrs-pro-repeater-table-wrap .form-table td input,
.aiosrs-pro-repeater-table-wrap .form-table td select {
min-width: 70%;
}
.bsf-aiosrs-schema-type-wrap .aiosrs-pro-repeater-table-wrap:first-of-type:last-of-type .bsf-repeater-close {
opacity: 0.3;
filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
pointer-events: none;
}
/**
* Tooltip
*/
.wp-schema-pro-tooltip-wrapper {
position: relative;
display: inline-block;
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-description {
opacity: 0;
visibility: hidden;
transition: 0.3s;
position: absolute;
background: #333;
color: #dedede;
left: calc(100% - 2.4em);
bottom: calc(100% - 0.75em);
border-radius: 3px;
box-shadow: 0 0 1px 0 #333;
font-weight: 400;
min-width: 300px;
z-index: 9999;
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-icon {
cursor: pointer;
font-size: 18px;
}
.wp-schema-pro-tooltip-wrapper.activate .wp-schema-pro-tooltip-icon {
pointer-events: none;
}
.wp-schema-pro-tooltip-wrapper .dashicons.dashicons-arrow-down {
position: absolute;
font-size: 3em;
top: calc(100% - 0.5em);
left: 0;
color: #333;
line-height: initial;
z-index: -1;
}
.wp-schema-pro-tooltip-wrapper.activate .wp-schema-pro-tooltip-description {
opacity: 1;
visibility: visible;
bottom: calc(100% + 0.75em);
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-content {
padding: 8px 12px;
}
.wp-schema-pro-tooltip-wrapper h2.wp-schema-pro-tooltip-heading ~ .wp-schema-pro-tooltip-content {
min-height: 50px;
}
.wp-schema-pro-tooltip-wrapper h2.wp-schema-pro-tooltip-heading {
color: #dedede;
font-weight: 600;
border-bottom: 1px solid #eee;
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-content a {
text-decoration: none;
box-shadow: none;
font-size: inherit;
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-content img {
max-width: 100%;
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-content .tooltip-image {
margin-top: 10px;
}
.tooltip-with-image-wrapper .wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-description {
min-width: 400px;
}
.rtl .wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-description {
right: calc(100% - 2.4em);
left: 0;
}
.rtl .wp-schema-pro-tooltip-wrapper .dashicons.dashicons-arrow-down {
right: 0;
}
.hndle .wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-icon {
color: #f00;
}
.hndle .wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-icon::before {
content: "\f534";
}
.wp-schema-pro-yoast-compatibilty-wrap th {
display: flex;
}
.wp-schema-pro-yoast-compatibilty-wrap td {
vertical-align: top;
padding-top: 20px;
}
.wp-schema-pro-tooltip-content ol {
margin-top: 0.5em;
}
.schema-branding input::placeholder,
.contact-form input::placeholder {
font-style: italic;
}
.aiosrs-menu-page-wrapper #aiosrs-menu-page .wrap .wpsp-pro-logo {
vertical-align: middle;
}
.aiosrs-menu-page-wrapper #aiosrs-menu-page .wrap .wpsp-pro-title {
display: inline-block;
font-size: 20px;
}
.aiosrs-menu-page-wrapper #aiosrs-menu-page .wrap .wpsp-pro-logo img {
max-width: 12%;
margin: 20px 3px 20px 0;
}
#aiosrs-menu-page .schema-version {
font-size: 13px;
background-color: #fff;
padding: 2px;
}
.form-table td.breadcrumb-title {
padding: 0;
}
.wpsp-required-error-field {
color: #f00 !important;
}
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr {
width: 50%;
display: inline-block;
}
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr td input {
width: 135%;
}
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr th {
width: 34%;
}
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr:last-child {
width: auto;
display: block;
}
.wpsp-text-strong {
font-weight: 700;
}
.bsf-aiosrs-pro .postbox.wp-schema-pro-general-settings .hndle,
.bsf-aiosrs-pro .postbox.wp-schema-pro-breadcrumb-setting .hndle,
.bsf-aiosrs-pro .postbox.wp-schema-pro-advanced-settings .hndle,
.bsf-aiosrs-pro .postbox.wp-schema-pro-branding-settings .hndle,
.bsf-aiosrs-pro .postbox.wp-schema-pro-social-profiles .hndle,
.bsf-aiosrs-pro .postbox.wp-schema-pro-corporate-contact .hndle,
.bsf-aiosrs-pro .postbox.wp-schema-pro-global-schemas .hndle,
.bsf-aiosrs-pro .postbox-container .postbox .hndle {
border-bottom: 1px solid #ccd0d4;
}
.wp-schema-pro-general-settings .select2-container--default .select2-selection--single {
box-shadow: 0 0 0 transparent;
border-radius: 4px;
padding: 0.5em;
font-size: 14px;
height: 33px;
border: 1px solid #7e8993;
background-color: #fff;
color: #32373c;
}
.wp-schema-pro-general-settings .select2.select2-container.select2-container--default {
width: 50% !important;
}
.wp-schema-pro-general-settings .select2-container--default .select2-selection--single .select2-selection__rendered {
color: unset;
line-height: unset;
}
.wp-schema-pro-general-settings .select2-container--default .select2-selection--single .select2-selection__arrow {
top: 4px;
}
.select2-container--default .select2-selection.select2-selection--single:focus {
border-color: #007cba;
box-shadow: 0 0 0 1px #007cba;
outline: 2px solid transparent;
}
/**
* dynamic social profile repeater.
*/
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr th.wpsp-other-th {
width: 33% !important;
}
a#add-row {
float: right;
margin-right: 30px;
}
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr td input.wpsp-other {
width: 132% !important;
}
span.wpsp-field-close.dashicons.dashicons-dismiss {
color: #999;
cursor: pointer;
display: inline-flex;
font-size: 18px;
justify-content: center;
position: relative;
top: -22px;
left: 140%;
width: 5px;
}
@media screen and ( min-width: 783px) {
.wp-schema-pro-tooltip-wrapper {
float: right;
}
.rtl .wp-schema-pro-tooltip-wrapper {
float: left;
}
.hndle .wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-description {
min-width: 400px;
}
.hndle .wp-schema-pro-tooltip-wrapper {
float: none;
}
}
@-moz-document url-prefix() {
.bsf-aiosrs-pro .wp-schema-pro-social-profiles table.form-table tr {
width: 50%;
float: left;
}
}

View File

@@ -1,388 +1,388 @@
/* Meta Box Heading
------------------------------------------------------*/
#aiosrs-schema-settings .inside {
margin: 0;
padding: 0;
}
#aiosrs-schema-settings .nav-tab-wrapper {
border-bottom: 0;
}
#aiosrs-schema-settings .nav-tab-wrapper ul {
margin: 0;
}
/* Tooltips */
.bsf-aiosrs-schema-heading-help {
color: #0073aa;
float: unset;
font-size: 18px;
cursor: help;
}
.ui-widget-content.bsf-aiosrs-schema-ui-tooltip {
background: #333;
border-width: 1px;
border-color: #333;
-webkit-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 1px 0 2px 0 rgba(214, 214, 214, 0.5);
box-shadow: 1px 0 2px 0 rgba(214, 214, 214, 0.5);
color: #dedede;
max-width: 250px;
text-align: center;
padding: 7px;
text-rendering: optimizeLegibility;
text-shadow: none;
z-index: 9999;
}
/* Table */
.bsf-aiosrs-schema-table {
border: none;
border-bottom: 5px solid #f0f0f0;
}
.bsf-aiosrs-schema-table:last-of-type {
border-bottom-width: 0;
}
.bsf-aiosrs-schema-table.widefat {
border-width: 0;
border-bottom-width: 2px;
}
.bsf-aiosrs-schema-table.widefat:last-child {
border-bottom-width: 1px;
}
/* Rows */
.bsf-aiosrs-schema-row td::before,
.bsf-aiosrs-schema-row td::after {
display: table;
content: " ";
}
.bsf-aiosrs-schema-row td::after {
clear: both;
}
.bsf-aiosrs-schema-row td {
zoom: 1;
vertical-align: middle;
}
.bsf-aiosrs-schema-row td * {
vertical-align: middle;
}
.bsf-aiosrs-schema-row:last-child td {
border-bottom: none;
}
/* Row Heading */
.bsf-aiosrs-schema-row-heading {
border-right: 1px solid #e1e1e1;
padding: 15px;
width: 25%;
vertical-align: middle;
}
.bsf-aiosrs-schema-row td.bsf-aiosrs-schema-row-heading.title {
padding-bottom: 0;
border-bottom: 0;
}
.bsf-aiosrs-schema-row-heading label {
display: inline-block;
font-size: 13px;
line-height: 22px;
font-weight: 700;
padding: 0;
margin: 0 0 3px;
color: #333;
}
/* Row Content */
.bsf-aiosrs-schema-table .bsf-aiosrs-schema-row-content {
padding: 15px 10px;
position: relative;
width: 75%;
}
.bsf-aiosrs-schema-row-content p:last-child {
margin-bottom: 0;
}
.bsf-aiosrs-schema-padding {
width: 110px;
}
.bsf-aiosrs-schema-padding-bottom-wrap {
margin-top: 5px;
}
/* Row Inputs */
.bsf-aiosrs-schema-row-content select {
width: 100%;
}
.bsf-aiosrs-schema-row-content .bsf-aiosrs-schema-action-desc.ast-no-desc {
margin-top: 0;
}
.bsf-aiosrs-schema-row-content .bsf-aiosrs-schema-action-desc {
margin-top: 10px;
}
/*Title CSS for the Enable on*/
.bsf-aiosrs-schema-row-select-target h2.bsf-aiosrs-schema-row-heading-select-target {
border-bottom: 1px solid #ccd0d4;
font-weight: 600 !important;
padding: 10px 12px !important;
}
.bsf-aiosrs-schema-row-select-target h2.bsf-aiosrs-schema-row-heading-select-target label {
vertical-align: initial;
}
/* Settings Meta Box
------------------------------------------------------*/
#bsf-aiosrs-schema-settings .inside {
margin: 0;
padding: 0;
}
/* Builder Buttons Meta Box
------------------------------------------------------*/
#bsf-aiosrs-schema-buttons .inside {
margin: 0;
padding: 15px;
}
#bsf-aiosrs-schema-buttons .button {
margin-right: 5px;
}
/* Rule Settings
------------------------------------------------------*/
/* Rule Forms */
.bsf-aiosrs-schema-saved-rule {
-js-display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
padding: 0 0 8px 0;
}
.bsf-aiosrs-schema-saved-rule-select {
width: 100%;
}
.bsf-aiosrs-schema-rule-objects {
display: none;
}
.bsf-aiosrs-schema-rule-objects-visible {
-js-display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
}
.bsf-aiosrs-schema-row-content .bsf-aiosrs-schema-rule-objects-visible select {
width: 50%;
}
.bsf-aiosrs-schema-rule-objects-visible .bsf-aiosrs-schema-rule-objects {
display: inline;
margin-left: 7px;
}
.bsf-aiosrs-schema-remove-rule-button {
display: none;
margin-top: 5px;
text-align: right;
width: 33px;
}
.bsf-aiosrs-schema-remove-rule {
color: #000;
cursor: pointer;
opacity: 0.2;
}
.bsf-aiosrs-schema-remove-rule:hover {
color: #d54e21;
opacity: 1;
}
.bsf-aiosrs-schema-add-rule {
float: left;
margin-right: 8px;
min-width: 150px;
}
.bsf-aiosrs-schema-add-rule .button {
text-align: center;
width: 100%;
}
/* Location Rules */
.bsf-aiosrs-schema-locations-form {
display: none;
}
/* Exclusion Rules */
.bsf-aiosrs-schema-exclusion-rules {
display: none;
}
/* Color Picker */
.bsf-aiosrs-schema-row .wp-picker-holder {
position: absolute;
z-index: 1;
}
.bsf-aiosrs-schema-row .iris-border .iris-picker-inner {
right: 0;
}
.bsf-aiosrs-schema-row-content .bsf-aiosrs-schema-type {
width: auto;
}
.bsf-aiosrs-schema-table .bsf-aiosrs-schema-fixed-text-wrap,
.bsf-aiosrs-schema-table .bsf-aiosrs-schema-custom-text-wrap {
width: calc(55% - 5px);
display: inline-block;
}
.bsf-aiosrs-schema-table .bsf-aiosrs-schema-meta-field {
width: calc(45% - 5px);
display: inline-block;
}
.bsf-aiosrs-schema-table .bsf-aiosrs-schema-custom-text-wrap input {
width: 100%;
}
.bsf-aiosrs-schema-table .bsf-custom-remove-image,
.bsf-aiosrs-schema-table .update-custom-image,
.bsf-aiosrs-schema-table .bsf-hidden-field,
.bsf-custom-image-selected button.bsf-custom-select-image {
display: none;
}
.bsf-custom-image-selected .bsf-custom-remove-image {
display: inline-block;
}
.select-custom-image,
.bsf-custom-image-selected .update-custom-image {
display: block;
}
.bsf-custom-remove-image .dashicons {
padding: 0;
}
.bsf-custom-image-label {
margin-left: 5px;
display: inline-block;
}
.bsf-aiosrs-schema-specific-field-wrap {
display: inline-block;
width: 50%;
}
.bsf-aiosrs-guideline-link i {
font-size: 1rem;
width: auto;
}
/**
* Repeater Style
*/
.aiosrs-pro-repeater-table {
width: 100%;
border: 1px solid #f1f1f1;
padding: 10px;
}
.aiosrs-pro-repeater-table-wrap {
position: relative;
margin-bottom: 1em;
}
.bsf-aiosrs-schema-row:first-child {
line-height: 0;
height: 0;
}
.bsf-repeater-close {
position: absolute;
top: 0;
right: 0;
padding: 2px;
border: 1px solid #f1f1f1;
}
.bsf-repeater-add-new-btn {
float: right;
width: 100px;
}
.aiosrs-pro-repeater-table .bsf-aiosrs-schema-row-heading,
.aiosrs-pro-repeater-table .bsf-aiosrs-schema-row-content {
border: 0;
padding: 0;
width: 100%;
display: inline-block;
}
.aiosrs-pro-repeater-table .bsf-aiosrs-schema-row-heading label,
.aiosrs-pro-repeater-table .bsf-aiosrs-schema-row-content {
line-height: 1;
}
.aiosrs-pro-repeater-table .bsf-aiosrs-schema-row td::before,
.aiosrs-pro-repeater-table .bsf-aiosrs-schema-row td::after {
display: none;
}
.bsf-aiosrs-schema-type-wrap .aiosrs-pro-repeater-table-wrap:first-of-type:last-of-type .bsf-repeater-close {
opacity: 0.3;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
pointer-events: none;
}
.bsf-aiosrs-schema-row-repeater-type > .bsf-aiosrs-schema-row-heading {
vertical-align: top;
padding-top: 25px;
}
.wp-schema-pro-tooltip-wrapper {
font-size: 14px;
line-height: 18px;
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-icon {
line-height: 1.5;
vertical-align: middle;
}
.aiosrs-pro-setup-wizard-content.advanced-settings-content-wrap .label-wrapper {
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
}
/* Meta Box Heading
------------------------------------------------------*/
#aiosrs-schema-settings .inside {
margin: 0;
padding: 0;
}
#aiosrs-schema-settings .nav-tab-wrapper {
border-bottom: 0;
}
#aiosrs-schema-settings .nav-tab-wrapper ul {
margin: 0;
}
/* Tooltips */
.bsf-aiosrs-schema-heading-help {
color: #0073aa;
float: right;
font-size: 18px;
cursor: help;
}
.ui-widget-content.bsf-aiosrs-schema-ui-tooltip {
background: #333;
border-width: 1px;
border-color: #333;
-webkit-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 1px 0 2px 0 rgba(214, 214, 214, 0.5);
box-shadow: 1px 0 2px 0 rgba(214, 214, 214, 0.5);
color: #dedede;
max-width: 250px;
text-align: center;
padding: 7px;
text-rendering: optimizeLegibility;
text-shadow: none;
z-index: 9999;
}
/* Table */
.bsf-aiosrs-schema-table {
border: none;
border-bottom: 5px solid #f0f0f0;
}
.bsf-aiosrs-schema-table:last-of-type {
border-bottom-width: 0;
}
.bsf-aiosrs-schema-table.widefat {
border-width: 0;
border-bottom-width: 2px;
}
.bsf-aiosrs-schema-table.widefat:last-child {
border-bottom-width: 1px;
}
/* Rows */
.bsf-aiosrs-schema-row td::before,
.bsf-aiosrs-schema-row td::after {
display: table;
content: " ";
}
.bsf-aiosrs-schema-row td::after {
clear: both;
}
.bsf-aiosrs-schema-row td {
zoom: 1;
vertical-align: middle;
}
.bsf-aiosrs-schema-row td * {
vertical-align: middle;
}
.bsf-aiosrs-schema-row:last-child td {
border-bottom: none;
}
/* Row Heading */
.bsf-aiosrs-schema-row-heading {
border-right: 1px solid #e1e1e1;
padding: 15px;
width: 25%;
vertical-align: middle;
}
.bsf-aiosrs-schema-row td.bsf-aiosrs-schema-row-heading.title {
padding-bottom: 0;
border-bottom: 0;
}
.bsf-aiosrs-schema-row-heading label {
display: inline-block;
font-size: 13px;
line-height: 22px;
font-weight: 700;
padding: 0;
margin: 0 0 3px;
color: #333;
}
/* Row Content */
.bsf-aiosrs-schema-table .bsf-aiosrs-schema-row-content {
padding: 15px 10px;
position: relative;
width: 75%;
}
.bsf-aiosrs-schema-row-content p:last-child {
margin-bottom: 0;
}
.bsf-aiosrs-schema-padding {
width: 110px;
}
.bsf-aiosrs-schema-padding-bottom-wrap {
margin-top: 5px;
}
/* Row Inputs */
.bsf-aiosrs-schema-row-content select {
width: 100%;
}
.bsf-aiosrs-schema-row-content .bsf-aiosrs-schema-action-desc.ast-no-desc {
margin-top: 0;
}
.bsf-aiosrs-schema-row-content .bsf-aiosrs-schema-action-desc {
margin-top: 10px;
}
/*Title CSS for the Enable on*/
.bsf-aiosrs-schema-row-select-target h2.bsf-aiosrs-schema-row-heading-select-target {
border-bottom: 1px solid #ccd0d4;
font-weight: 600 !important;
padding: 10px 12px !important;
}
.bsf-aiosrs-schema-row-select-target h2.bsf-aiosrs-schema-row-heading-select-target label {
vertical-align: initial;
}
/* Settings Meta Box
------------------------------------------------------*/
#bsf-aiosrs-schema-settings .inside {
margin: 0;
padding: 0;
}
/* Builder Buttons Meta Box
------------------------------------------------------*/
#bsf-aiosrs-schema-buttons .inside {
margin: 0;
padding: 15px;
}
#bsf-aiosrs-schema-buttons .button {
margin-right: 5px;
}
/* Rule Settings
------------------------------------------------------*/
/* Rule Forms */
.bsf-aiosrs-schema-saved-rule {
-js-display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
padding: 0 0 8px 0;
}
.bsf-aiosrs-schema-saved-rule-select {
width: 100%;
}
.bsf-aiosrs-schema-rule-objects {
display: none;
}
.bsf-aiosrs-schema-rule-objects-visible {
-js-display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
}
.bsf-aiosrs-schema-row-content .bsf-aiosrs-schema-rule-objects-visible select {
width: 50%;
}
.bsf-aiosrs-schema-rule-objects-visible .bsf-aiosrs-schema-rule-objects {
display: inline;
margin-left: 7px;
}
.bsf-aiosrs-schema-remove-rule-button {
display: none;
margin-top: 5px;
text-align: right;
width: 33px;
}
.bsf-aiosrs-schema-remove-rule {
color: #000;
cursor: pointer;
opacity: 0.2;
}
.bsf-aiosrs-schema-remove-rule:hover {
color: #d54e21;
opacity: 1;
}
.bsf-aiosrs-schema-add-rule {
float: left;
margin-right: 8px;
min-width: 150px;
}
.bsf-aiosrs-schema-add-rule .button {
text-align: center;
width: 100%;
}
/* Location Rules */
.bsf-aiosrs-schema-locations-form {
display: none;
}
/* Exclusion Rules */
.bsf-aiosrs-schema-exclusion-rules {
display: none;
}
/* Color Picker */
.bsf-aiosrs-schema-row .wp-picker-holder {
position: absolute;
z-index: 1;
}
.bsf-aiosrs-schema-row .iris-border .iris-picker-inner {
right: 0;
}
.bsf-aiosrs-schema-row-content .bsf-aiosrs-schema-type {
width: auto;
}
.bsf-aiosrs-schema-table .bsf-aiosrs-schema-fixed-text-wrap,
.bsf-aiosrs-schema-table .bsf-aiosrs-schema-custom-text-wrap {
width: calc(55% - 5px);
display: inline-block;
}
.bsf-aiosrs-schema-table .bsf-aiosrs-schema-meta-field {
width: calc(45% - 5px);
display: inline-block;
}
.bsf-aiosrs-schema-table .bsf-aiosrs-schema-custom-text-wrap input {
width: 100%;
}
.bsf-aiosrs-schema-table .bsf-custom-remove-image,
.bsf-aiosrs-schema-table .update-custom-image,
.bsf-aiosrs-schema-table .bsf-hidden-field,
.bsf-custom-image-selected button.bsf-custom-select-image {
display: none;
}
.bsf-custom-image-selected .bsf-custom-remove-image {
display: inline-block;
}
.select-custom-image,
.bsf-custom-image-selected .update-custom-image {
display: block;
}
.bsf-custom-remove-image .dashicons {
padding: 0;
}
.bsf-custom-image-label {
margin-left: 5px;
display: inline-block;
}
.bsf-aiosrs-schema-specific-field-wrap {
display: inline-block;
width: 50%;
}
.bsf-aiosrs-guideline-link i {
font-size: 1rem;
width: auto;
}
/**
* Repeater Style
*/
.aiosrs-pro-repeater-table {
width: 100%;
border: 1px solid #f1f1f1;
padding: 10px;
}
.aiosrs-pro-repeater-table-wrap {
position: relative;
margin-bottom: 1em;
}
.bsf-aiosrs-schema-row:first-child {
line-height: 0;
height: 0;
}
.bsf-repeater-close {
position: absolute;
top: 0;
right: 0;
padding: 2px;
border: 1px solid #f1f1f1;
}
.bsf-repeater-add-new-btn {
float: right;
width: 100px;
}
.aiosrs-pro-repeater-table .bsf-aiosrs-schema-row-heading,
.aiosrs-pro-repeater-table .bsf-aiosrs-schema-row-content {
border: 0;
padding: 0;
width: 100%;
display: inline-block;
}
.aiosrs-pro-repeater-table .bsf-aiosrs-schema-row-heading label,
.aiosrs-pro-repeater-table .bsf-aiosrs-schema-row-content {
line-height: 1;
}
.aiosrs-pro-repeater-table .bsf-aiosrs-schema-row td::before,
.aiosrs-pro-repeater-table .bsf-aiosrs-schema-row td::after {
display: none;
}
.bsf-aiosrs-schema-type-wrap .aiosrs-pro-repeater-table-wrap:first-of-type:last-of-type .bsf-repeater-close {
opacity: 0.3;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
pointer-events: none;
}
.bsf-aiosrs-schema-row-repeater-type > .bsf-aiosrs-schema-row-heading {
vertical-align: top;
padding-top: 25px;
}
.wp-schema-pro-tooltip-wrapper {
font-size: 14px;
line-height: 18px;
}
.wp-schema-pro-tooltip-wrapper .wp-schema-pro-tooltip-icon {
line-height: 1.5;
vertical-align: middle;
}
.aiosrs-pro-setup-wizard-content.advanced-settings-content-wrap .label-wrapper {
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
}

View File

@@ -1,147 +1,147 @@
/* eslint-env jquery */
(function ($) {
/**
* AIOSRS Frontend
*
* @class WPSchemaProFrontend
* @since 1.0
*/
const WPSchemaProFrontend = {
/**
* Initializes a AIOSRS Frontend.
*
* @since 1.0
* @function init
*/
container: '',
init() {
const self = this;
jQuery(document).on(
'click',
'.aiosrs-rating-wrap .aiosrs-star-rating',
function (e) {
e.preventDefault();
self.star_rating(this);
}
);
jQuery(document).on(
'mouseover',
'.aiosrs-rating-wrap .aiosrs-star-rating',
function (e) {
e.preventDefault();
self.hover_star_rating(this);
}
);
jQuery(document).on(
'mouseout',
'.aiosrs-rating-wrap .aiosrs-star-rating-wrap',
function (e) {
e.preventDefault();
if (!$(this).hasClass('disabled')) {
const index = $(this)
.parent()
.find('.aiosrs-rating')
.text();
self.update_stars($(this), index);
}
}
);
},
hover_star_rating(field) {
const self = this,
parent = $(field).closest('.aiosrs-star-rating-wrap'),
index = $(field).data('index');
if (!parent.hasClass('disabled')) {
self.update_stars(parent, index);
}
},
update_stars(wrap, rating) {
let filled = rating > 5 ? 5 : parseInt(rating);
if (rating > 5) {
filled = 5;
} else if (rating < 0) {
filled = 0;
} else {
filled = parseInt(rating);
}
const half = rating === filled || rating > 5 || rating < 0 ? 0 : 1;
wrap.find('span').each(function (index) {
$(this).removeClass(
'dashicons-star-filled dashicons-star-half dashicons-star-empty'
);
if (index < filled) {
$(this).addClass('dashicons-star-filled');
} else if (index === filled && half === 1) {
$(this).addClass('dashicons-star-empty');
} else {
$(this).addClass('dashicons-star-empty');
}
});
},
star_rating(field) {
const self = this,
schemaId = $(field)
.closest('.aiosrs-rating-wrap')
.data('schema-id'),
parent = $(field).closest('.aiosrs-star-rating-wrap'),
index = $(field).data('index');
if (!parent.hasClass('disabled')) {
self.update_stars(parent, index);
parent.addClass('disabled');
$.ajax({
url: AIOSRS_Frontend.ajaxurl,
type: 'POST',
data: {
action: 'aiosrs_user_rating',
rating: index,
schemaId,
post_id: AIOSRS_Frontend.post_id,
nonce: AIOSRS_Frontend.user_rating_nonce,
},
}).success(function (response) {
if (response.success === true) {
const summaryWrap = parent.next(
'.aiosrs-rating-summary-wrap'
),
rating = response.rating,
avgRating = response['rating-avg'],
reviewCount = response['review-count'];
summaryWrap.find('.aiosrs-rating').text(avgRating);
summaryWrap
.find('.aiosrs-rating-count')
.text(reviewCount);
if (parent.next('.success-msg').length === 0) {
parent.after(
'<span class="success-msg">' +
AIOSRS_Frontend.success_msg +
'</span>'
);
}
setTimeout(function () {
parent.parent().find('.success-msg').remove();
parent.removeClass('disabled');
}, 5000);
self.update_stars(parent, rating);
}
});
}
},
};
/* Initializes the AIOSRS Frontend. */
$(function () {
WPSchemaProFrontend.init();
});
})(jQuery);
/* eslint-env jquery */
(function ($) {
/**
* AIOSRS Frontend
*
* @class WPSchemaProFrontend
* @since 1.0
*/
const WPSchemaProFrontend = {
/**
* Initializes a AIOSRS Frontend.
*
* @since 1.0
* @function init
*/
container: '',
init() {
const self = this;
jQuery(document).on(
'click',
'.aiosrs-rating-wrap .aiosrs-star-rating',
function (e) {
e.preventDefault();
self.star_rating(this);
}
);
jQuery(document).on(
'mouseover',
'.aiosrs-rating-wrap .aiosrs-star-rating',
function (e) {
e.preventDefault();
self.hover_star_rating(this);
}
);
jQuery(document).on(
'mouseout',
'.aiosrs-rating-wrap .aiosrs-star-rating-wrap',
function (e) {
e.preventDefault();
if (!$(this).hasClass('disabled')) {
const index = $(this)
.parent()
.find('.aiosrs-rating')
.text();
self.update_stars($(this), index);
}
}
);
},
hover_star_rating(field) {
const self = this,
parent = $(field).closest('.aiosrs-star-rating-wrap'),
index = $(field).data('index');
if (!parent.hasClass('disabled')) {
self.update_stars(parent, index);
}
},
update_stars(wrap, rating) {
let filled = rating > 5 ? 5 : parseInt(rating);
if (rating > 5) {
filled = 5;
} else if (rating < 0) {
filled = 0;
} else {
filled = parseInt(rating);
}
const half = rating === filled || rating > 5 || rating < 0 ? 0 : 1;
wrap.find('span').each(function (index) {
$(this).removeClass(
'dashicons-star-filled dashicons-star-half dashicons-star-empty'
);
if (index < filled) {
$(this).addClass('dashicons-star-filled');
} else if (index === filled && half === 1) {
$(this).addClass('dashicons-star-empty');
} else {
$(this).addClass('dashicons-star-empty');
}
});
},
star_rating(field) {
const self = this,
schemaId = $(field)
.closest('.aiosrs-rating-wrap')
.data('schema-id'),
parent = $(field).closest('.aiosrs-star-rating-wrap'),
index = $(field).data('index');
if (!parent.hasClass('disabled')) {
self.update_stars(parent, index);
parent.addClass('disabled');
$.ajax({
url: AIOSRS_Frontend.ajaxurl,
type: 'POST',
data: {
action: 'aiosrs_user_rating',
rating: index,
schemaId,
post_id: AIOSRS_Frontend.post_id,
nonce: AIOSRS_Frontend.user_rating_nonce,
},
}).success(function (response) {
if (response.success === true) {
const summaryWrap = parent.next(
'.aiosrs-rating-summary-wrap'
),
rating = response.rating,
avgRating = response['rating-avg'],
reviewCount = response['review-count'];
summaryWrap.find('.aiosrs-rating').text(avgRating);
summaryWrap
.find('.aiosrs-rating-count')
.text(reviewCount);
if (parent.next('.success-msg').length === 0) {
parent.after(
'<span class="success-msg">' +
AIOSRS_Frontend.success_msg +
'</span>'
);
}
setTimeout(function () {
parent.parent().find('.success-msg').remove();
parent.removeClass('disabled');
}, 5000);
self.update_stars(parent, rating);
}
});
}
},
};
/* Initializes the AIOSRS Frontend. */
$(function () {
WPSchemaProFrontend.init();
});
})(jQuery);

View File

@@ -1,26 +1,26 @@
/* eslint-env jquery */
jQuery( document ).ready( function () {
jQuery( '#aiosrs-pro-license-form-btn' ).on( 'click', function ( e ) {
e.preventDefault();
jQuery( '#aiosrs-pro-license-form' ).show();
jQuery( 'body' ).addClass( 'aiosrs-pro-license-form-open' );
} );
jQuery( '#aiosrs-pro-license-form-close-btn' ).on( 'click', function ( e ) {
e.preventDefault();
jQuery( '#aiosrs-pro-license-form' ).hide();
jQuery( 'body' ).removeClass( 'aiosrs-pro-license-form-open' );
} );
jQuery( '#aiosrs-pro-license-form .aiosrs-pro-license-form-overlay' ).on(
'click',
function ( e ) {
e.preventDefault();
jQuery( '#aiosrs-pro-license-form' ).hide();
jQuery( 'body' ).removeClass( 'aiosrs-pro-license-form-open' );
}
);
} );
/* eslint-env jquery */
jQuery( document ).ready( function () {
jQuery( '#aiosrs-pro-license-form-btn' ).on( 'click', function ( e ) {
e.preventDefault();
jQuery( '#aiosrs-pro-license-form' ).show();
jQuery( 'body' ).addClass( 'aiosrs-pro-license-form-open' );
} );
jQuery( '#aiosrs-pro-license-form-close-btn' ).on( 'click', function ( e ) {
e.preventDefault();
jQuery( '#aiosrs-pro-license-form' ).hide();
jQuery( 'body' ).removeClass( 'aiosrs-pro-license-form-open' );
} );
jQuery( '#aiosrs-pro-license-form .aiosrs-pro-license-form-overlay' ).on(
'click',
function ( e ) {
e.preventDefault();
jQuery( '#aiosrs-pro-license-form' ).hide();
jQuery( 'body' ).removeClass( 'aiosrs-pro-license-form-open' );
}
);
} );

File diff suppressed because it is too large Load Diff

View File

@@ -1,415 +1,415 @@
/* eslint-env jquery */
(function ($) {
const { __ } = wp.i18n;
const temp = {
person: __('Website Owner Name'),
organization: __('Organization Name', 'wp-schema-pro'),
Webshop: __('Webshop Name', 'wp-schema-pro'),
personblog: __('Website Owner Name', 'wp-schema-pro'),
Smallbusiness: __('Blog Website Name', 'wp-schema-pro'),
Otherbusiness: __('Business Name', 'wp-schema-pro'),
};
/**
* AIOSRS Frontend
*
* @class WPSchemaProSettings
* @since 1.0
*/
const WPSchemaProSettings = {
init() {
const self = this;
this.customFieldDependecy();
this.customImageSelect();
this.initRepeater();
this.toolTips();
this.regenerateSchema();
$('select.wp-select2').each(function (index, el) {
self.init_target_rule_select2(el);
});
},
regenerateSchema() {
$('#wpsp-regenerate-schema').click(function () {
$(this).next('span.spinner').addClass('is-active');
jQuery
.ajax({
url: ajaxurl,
type: 'post',
dataType: 'json',
data: {
action: 'regenerate_schema',
nonce: $(this).data('nonce'),
},
})
.success(function () {
$('#wpsp-regenerate-schema')
.next('span.spinner')
.removeClass('is-active');
$('#wpsp-regenerate-notice')
.show()
.delay(2000)
.fadeOut();
});
});
},
toolTips() {
$(document).on(
'click',
'.wp-schema-pro-tooltip-icon',
function (e) {
e.preventDefault();
$('.wp-schema-pro-tooltip-wrapper').removeClass('activate');
$(this).parent().addClass('activate');
}
);
$(document).on('click', function (e) {
if (
!$(e.target).hasClass(
'wp-schema-pro-tooltip-description'
) &&
!$(e.target).hasClass('wp-schema-pro-tooltip-icon') &&
$(e.target).closest('.wp-schema-pro-tooltip-description')
.length === 0
) {
$('.wp-schema-pro-tooltip-wrapper').removeClass('activate');
}
});
},
customImageSelect() {
let fileFrame;
window.inputWrapper = '';
$(document.body).on(
'click',
'.image-field-wrap .aiosrs-image-select',
function (e) {
e.preventDefault();
window.inputWrapper = $(this).closest('td');
// Create the media frame.
fileFrame = wp.media({
button: {
text: 'Select Image',
close: false,
},
states: [
new wp.media.controller.Library({
title: 'Select Custom Image',
library: wp.media.query({ type: 'image' }),
multiple: false,
}),
],
});
// When an image is selected, run a callback.
fileFrame.on('select', function () {
const attachment = fileFrame
.state()
.get('selection')
.first()
.toJSON();
const image = window.inputWrapper.find(
'.image-field-wrap img'
);
if (image.length === 0) {
window.inputWrapper
.find('.image-field-wrap')
.append(
'<a href="#" class="aiosrs-image-select img"><img src="' +
attachment.url +
'" /></a>'
);
} else {
image.attr('src', attachment.url);
}
window.inputWrapper
.find('.image-field-wrap')
.addClass('bsf-custom-image-selected');
window.inputWrapper
.find('.single-image-field')
.val(attachment.id);
fileFrame.close();
});
fileFrame.open();
}
);
$(document).on('click', '.aiosrs-image-remove', function (e) {
e.preventDefault();
const parent = $(this).closest('td');
parent
.find('.image-field-wrap')
.removeClass('bsf-custom-image-selected');
parent.find('.single-image-field').val('');
parent.find('.image-field-wrap img').removeAttr('src');
});
window.inputWrapper = '';
},
customFieldDependecy() {
jQuery(document).on(
'change',
'#post-body-content .wp-schema-pro-custom-option-select, .aiosrs-pro-setup-wizard-content.general-setting-content-wrap .wp-schema-pro-custom-option-select',
function () {
const customWrap = jQuery(this).next(
'.custom-field-wrapper'
);
customWrap.css('display', 'none');
if ('custom' === jQuery(this).val()) {
customWrap.css('display', '');
}
}
);
jQuery(document).on(
'change',
'select[name="wp-schema-pro-general-settings[site-represent]"]',
function () {
const wrapper = jQuery(this).closest('table'),
logoWrap = wrapper.find(
'.wp-schema-pro-site-logo-wrap'
),
companyNameWrap = wrapper.find(
'.wp-schema-pro-site-name-wrap'
),
personNameWrap = wrapper.find(
'.wp-schema-pro-person-name-wrap'
);
companyNameWrap.css('display', 'none');
personNameWrap.css('display', 'none');
if ('' !== jQuery(this).val()) {
if (
'organization' === jQuery(this).val() ||
'Webshop' === jQuery(this).val() ||
'Smallbusiness' === jQuery(this).val() ||
'Otherbusiness' === jQuery(this).val()
) {
logoWrap.css('display', '');
companyNameWrap.css('display', '');
} else {
personNameWrap.css('display', '');
logoWrap.css('display', '');
}
}
}
);
jQuery(document).on(
'change',
'select[name="wp-schema-pro-general-settings[site-represent]"]',
function () {
const organizationType = jQuery(this).val();
if ('' !== jQuery(this).val()) {
if (organizationType in temp) {
$('.wpsp-organization-label').text(
temp[organizationType]
);
}
}
}
);
jQuery(document).on(
'change',
'select[name="wp-schema-pro-corporate-contact[contact-type]"]',
function () {
const wrapper = jQuery(this).closest('table'),
contactPointWrap = wrapper.find(
'.wp-schema-pro-other-wrap'
);
contactPointWrap.css('display', 'none');
if ('' !== jQuery(this).val()) {
if ('other' === jQuery(this).val()) {
contactPointWrap.css('display', '');
}
}
}
);
$('#add-row').on('click', function () {
const row = $('.empty-row.screen-reader-text').clone(true);
row.removeClass('empty-row screen-reader-text');
row.insertBefore('#repeatable-fieldset-one >tr:last');
return false;
});
$('.remove-row').on('click', function () {
$(this).parents('tr').remove();
return false;
});
},
initRepeater() {
$(document).on(
'click',
'.bsf-repeater-add-new-btn',
function (event) {
event.preventDefault();
const selector = $(this),
parentWrap = selector.closest(
'.bsf-aiosrs-schema-type-wrap'
),
totalCount = parentWrap.find(
'.aiosrs-pro-repeater-table-wrap'
).length,
template = parentWrap
.find('.aiosrs-pro-repeater-table-wrap')
.first()
.clone();
template.find('input, textarea, select').each(function () {
$(this).val('');
const fieldName =
'undefined' !== typeof $(this).attr('name')
? $(this)
.attr('name')
.replace(
'[0]',
'[' + totalCount + ']'
)
: '',
fieldClass =
'undefined' !== typeof $(this).attr('class')
? $(this)
.attr('class')
.replace(
'-0-',
'-' + totalCount + '-'
)
: '',
fieldId =
'undefined' !== typeof $(this).attr('id')
? $(this)
.attr('id')
.replace(
'-0-',
'-' + totalCount + '-'
)
: '';
$(this).attr('name', fieldName);
$(this).attr('class', fieldClass);
$(this).attr('id', fieldId);
});
template.insertBefore(selector);
}
);
$(document).on('click', '.bsf-repeater-close', function (event) {
event.preventDefault();
const selector = $(this),
parentWrap = selector.closest(
'.bsf-aiosrs-schema-type-wrap'
),
repeaterCount = parentWrap.find(
'> .aiosrs-pro-repeater-table-wrap'
).length;
if (repeaterCount > 1) {
selector
.closest('.aiosrs-pro-repeater-table-wrap')
.remove();
}
});
},
init_target_rule_select2(selector) {
$(selector).select2({
placeholder: 'Search Fields...',
ajax: {
url: ajaxurl,
dataType: 'json',
method: 'post',
delay: 250,
data(params) {
return {
nonce_ajax: AIOSRS_search.search_field,
q: params.term, // search term
page: params.page,
action: 'bsf_get_specific_pages',
};
},
processResults(data) {
return {
results: data,
};
},
cache: true,
},
minimumInputLength: 2,
});
},
};
const loadDefaultValues = function () {
const field = jQuery(
'select[name="wp-schema-pro-general-settings[site-represent]"]'
),
wrapper = field.closest('table'),
logoWrap = wrapper.find('.wp-schema-pro-site-logo-wrap'),
companyNameWrap = wrapper.find('.wp-schema-pro-site-name-wrap'),
personNameWrap = wrapper.find('.wp-schema-pro-person-name-wrap');
companyNameWrap.css('display', 'none');
personNameWrap.css('display', 'none');
if ('' !== field.val()) {
if (
'organization' === field.val() ||
'Webshop' === field.val() ||
'Smallbusiness' === field.val() ||
'Otherbusiness' === field.val()
) {
logoWrap.css('display', '');
companyNameWrap.css('display', '');
} else {
personNameWrap.css('display', '');
logoWrap.css('display', '');
}
}
};
const loadDefaultOrganizationLabel = function () {
const field = jQuery(
'select[name="wp-schema-pro-general-settings[site-represent]"]'
),
organizationType = field.val();
if ('' !== field) {
if (organizationType in temp) {
$('.wpsp-organization-label').text(temp[organizationType]);
}
}
};
$(document).ready(function () {
$('.wp-select2').select2();
$('.wpsp-setup-configuration-settings').select2();
loadDefaultValues();
loadDefaultOrganizationLabel();
$('#add-row').on('click', function () {
const row = $('.empty-row.screen-reader-text').clone(true);
row.removeClass('empty-row screen-reader-text');
row.insertBefore('#repeatable-fieldset-one tbody>tr:last');
return false;
});
$('.remove-row').on('click', function () {
$(this).parents('tr').remove();
return false;
});
});
/* Initializes the AIOSRS Frontend. */
$(function () {
WPSchemaProSettings.init();
});
})(jQuery);
/* eslint-env jquery */
(function ($) {
const { __ } = wp.i18n;
const temp = {
person: __('Website Owner Name'),
organization: __('Organization Name', 'wp-schema-pro'),
Webshop: __('Webshop Name', 'wp-schema-pro'),
personblog: __('Website Owner Name', 'wp-schema-pro'),
Smallbusiness: __('Blog Website Name', 'wp-schema-pro'),
Otherbusiness: __('Business Name', 'wp-schema-pro'),
};
/**
* AIOSRS Frontend
*
* @class WPSchemaProSettings
* @since 1.0
*/
const WPSchemaProSettings = {
init() {
const self = this;
this.customFieldDependecy();
this.customImageSelect();
this.initRepeater();
this.toolTips();
this.regenerateSchema();
$('select.wp-select2').each(function (index, el) {
self.init_target_rule_select2(el);
});
},
regenerateSchema() {
$('#wpsp-regenerate-schema').click(function () {
$(this).next('span.spinner').addClass('is-active');
jQuery
.ajax({
url: ajaxurl,
type: 'post',
dataType: 'json',
data: {
action: 'regenerate_schema',
nonce: $(this).data('nonce'),
},
})
.success(function () {
$('#wpsp-regenerate-schema')
.next('span.spinner')
.removeClass('is-active');
$('#wpsp-regenerate-notice')
.show()
.delay(2000)
.fadeOut();
});
});
},
toolTips() {
$(document).on(
'click',
'.wp-schema-pro-tooltip-icon',
function (e) {
e.preventDefault();
$('.wp-schema-pro-tooltip-wrapper').removeClass('activate');
$(this).parent().addClass('activate');
}
);
$(document).on('click', function (e) {
if (
!$(e.target).hasClass(
'wp-schema-pro-tooltip-description'
) &&
!$(e.target).hasClass('wp-schema-pro-tooltip-icon') &&
$(e.target).closest('.wp-schema-pro-tooltip-description')
.length === 0
) {
$('.wp-schema-pro-tooltip-wrapper').removeClass('activate');
}
});
},
customImageSelect() {
let fileFrame;
window.inputWrapper = '';
$(document.body).on(
'click',
'.image-field-wrap .aiosrs-image-select',
function (e) {
e.preventDefault();
window.inputWrapper = $(this).closest('td');
// Create the media frame.
fileFrame = wp.media({
button: {
text: 'Select Image',
close: false,
},
states: [
new wp.media.controller.Library({
title: 'Select Custom Image',
library: wp.media.query({ type: 'image' }),
multiple: false,
}),
],
});
// When an image is selected, run a callback.
fileFrame.on('select', function () {
const attachment = fileFrame
.state()
.get('selection')
.first()
.toJSON();
const image = window.inputWrapper.find(
'.image-field-wrap img'
);
if (image.length === 0) {
window.inputWrapper
.find('.image-field-wrap')
.append(
'<a href="#" class="aiosrs-image-select img"><img src="' +
attachment.url +
'" /></a>'
);
} else {
image.attr('src', attachment.url);
}
window.inputWrapper
.find('.image-field-wrap')
.addClass('bsf-custom-image-selected');
window.inputWrapper
.find('.single-image-field')
.val(attachment.id);
fileFrame.close();
});
fileFrame.open();
}
);
$(document).on('click', '.aiosrs-image-remove', function (e) {
e.preventDefault();
const parent = $(this).closest('td');
parent
.find('.image-field-wrap')
.removeClass('bsf-custom-image-selected');
parent.find('.single-image-field').val('');
parent.find('.image-field-wrap img').removeAttr('src');
});
window.inputWrapper = '';
},
customFieldDependecy() {
jQuery(document).on(
'change',
'#post-body-content .wp-schema-pro-custom-option-select, .aiosrs-pro-setup-wizard-content.general-setting-content-wrap .wp-schema-pro-custom-option-select',
function () {
const customWrap = jQuery(this).next(
'.custom-field-wrapper'
);
customWrap.css('display', 'none');
if ('custom' === jQuery(this).val()) {
customWrap.css('display', '');
}
}
);
jQuery(document).on(
'change',
'select[name="wp-schema-pro-general-settings[site-represent]"]',
function () {
const wrapper = jQuery(this).closest('table'),
logoWrap = wrapper.find(
'.wp-schema-pro-site-logo-wrap'
),
companyNameWrap = wrapper.find(
'.wp-schema-pro-site-name-wrap'
),
personNameWrap = wrapper.find(
'.wp-schema-pro-person-name-wrap'
);
companyNameWrap.css('display', 'none');
personNameWrap.css('display', 'none');
if ('' !== jQuery(this).val()) {
if (
'organization' === jQuery(this).val() ||
'Webshop' === jQuery(this).val() ||
'Smallbusiness' === jQuery(this).val() ||
'Otherbusiness' === jQuery(this).val()
) {
logoWrap.css('display', '');
companyNameWrap.css('display', '');
} else {
personNameWrap.css('display', '');
logoWrap.css('display', '');
}
}
}
);
jQuery(document).on(
'change',
'select[name="wp-schema-pro-general-settings[site-represent]"]',
function () {
const organizationType = jQuery(this).val();
if ('' !== jQuery(this).val()) {
if (organizationType in temp) {
$('.wpsp-organization-label').text(
temp[organizationType]
);
}
}
}
);
jQuery(document).on(
'change',
'select[name="wp-schema-pro-corporate-contact[contact-type]"]',
function () {
const wrapper = jQuery(this).closest('table'),
contactPointWrap = wrapper.find(
'.wp-schema-pro-other-wrap'
);
contactPointWrap.css('display', 'none');
if ('' !== jQuery(this).val()) {
if ('other' === jQuery(this).val()) {
contactPointWrap.css('display', '');
}
}
}
);
$('#add-row').on('click', function () {
const row = $('.empty-row.screen-reader-text').clone(true);
row.removeClass('empty-row screen-reader-text');
row.insertBefore('#repeatable-fieldset-one >tr:last');
return false;
});
$('.remove-row').on('click', function () {
$(this).parents('tr').remove();
return false;
});
},
initRepeater() {
$(document).on(
'click',
'.bsf-repeater-add-new-btn',
function (event) {
event.preventDefault();
const selector = $(this),
parentWrap = selector.closest(
'.bsf-aiosrs-schema-type-wrap'
),
totalCount = parentWrap.find(
'.aiosrs-pro-repeater-table-wrap'
).length,
template = parentWrap
.find('.aiosrs-pro-repeater-table-wrap')
.first()
.clone();
template.find('input, textarea, select').each(function () {
$(this).val('');
const fieldName =
'undefined' !== typeof $(this).attr('name')
? $(this)
.attr('name')
.replace(
'[0]',
'[' + totalCount + ']'
)
: '',
fieldClass =
'undefined' !== typeof $(this).attr('class')
? $(this)
.attr('class')
.replace(
'-0-',
'-' + totalCount + '-'
)
: '',
fieldId =
'undefined' !== typeof $(this).attr('id')
? $(this)
.attr('id')
.replace(
'-0-',
'-' + totalCount + '-'
)
: '';
$(this).attr('name', fieldName);
$(this).attr('class', fieldClass);
$(this).attr('id', fieldId);
});
template.insertBefore(selector);
}
);
$(document).on('click', '.bsf-repeater-close', function (event) {
event.preventDefault();
const selector = $(this),
parentWrap = selector.closest(
'.bsf-aiosrs-schema-type-wrap'
),
repeaterCount = parentWrap.find(
'> .aiosrs-pro-repeater-table-wrap'
).length;
if (repeaterCount > 1) {
selector
.closest('.aiosrs-pro-repeater-table-wrap')
.remove();
}
});
},
init_target_rule_select2(selector) {
$(selector).select2({
placeholder: 'Search Fields...',
ajax: {
url: ajaxurl,
dataType: 'json',
method: 'post',
delay: 250,
data(params) {
return {
nonce_ajax: AIOSRS_search.search_field,
q: params.term, // search term
page: params.page,
action: 'bsf_get_specific_pages',
};
},
processResults(data) {
return {
results: data,
};
},
cache: true,
},
minimumInputLength: 2,
});
},
};
const loadDefaultValues = function () {
const field = jQuery(
'select[name="wp-schema-pro-general-settings[site-represent]"]'
),
wrapper = field.closest('table'),
logoWrap = wrapper.find('.wp-schema-pro-site-logo-wrap'),
companyNameWrap = wrapper.find('.wp-schema-pro-site-name-wrap'),
personNameWrap = wrapper.find('.wp-schema-pro-person-name-wrap');
companyNameWrap.css('display', 'none');
personNameWrap.css('display', 'none');
if ('' !== field.val()) {
if (
'organization' === field.val() ||
'Webshop' === field.val() ||
'Smallbusiness' === field.val() ||
'Otherbusiness' === field.val()
) {
logoWrap.css('display', '');
companyNameWrap.css('display', '');
} else {
personNameWrap.css('display', '');
logoWrap.css('display', '');
}
}
};
const loadDefaultOrganizationLabel = function () {
const field = jQuery(
'select[name="wp-schema-pro-general-settings[site-represent]"]'
),
organizationType = field.val();
if ('' !== field) {
if (organizationType in temp) {
$('.wpsp-organization-label').text(temp[organizationType]);
}
}
};
$(document).ready(function () {
$('.wp-select2').select2();
$('.wpsp-setup-configuration-settings').select2();
loadDefaultValues();
loadDefaultOrganizationLabel();
$('#add-row').on('click', function () {
const row = $('.empty-row.screen-reader-text').clone(true);
row.removeClass('empty-row screen-reader-text');
row.insertBefore('#repeatable-fieldset-one tbody>tr:last');
return false;
});
$('.remove-row').on('click', function () {
$(this).parents('tr').remove();
return false;
});
});
/* Initializes the AIOSRS Frontend. */
$(function () {
WPSchemaProSettings.init();
});
})(jQuery);

View File

@@ -1,32 +1,32 @@
/* eslint-env jquery */
/**
* File setup-wizard.js
*
* Handles Color Picker
*
* @package
*/
( function ( $ ) {
jQuery( document ).ready( function () {
$( document ).on(
'click',
'.aiosrs-pro-schema-temp-wrap',
function ( e ) {
e.preventDefault();
$( '.aiosrs-pro-schema-temp-wrap' ).removeClass( 'selected' );
$( '.aiosrs-pro-setup-actions' )
.find( '.button-next' )
.removeAttr( 'disabled' );
$( this ).addClass( 'selected' );
const type = $( this ).data( 'schema-type' ),
title = $( this ).data( 'schema-title' );
$( document ).find( '.bsf-aiosrs-schema-type' ).val( type );
$( document ).find( '.bsf-aiosrs-schema-title' ).val( title );
}
);
} );
} )( jQuery );
/* eslint-env jquery */
/**
* File setup-wizard.js
*
* Handles Color Picker
*
* @package
*/
( function ( $ ) {
jQuery( document ).ready( function () {
$( document ).on(
'click',
'.aiosrs-pro-schema-temp-wrap',
function ( e ) {
e.preventDefault();
$( '.aiosrs-pro-schema-temp-wrap' ).removeClass( 'selected' );
$( '.aiosrs-pro-setup-actions' )
.find( '.button-next' )
.removeAttr( 'disabled' );
$( this ).addClass( 'selected' );
const type = $( this ).data( 'schema-type' ),
title = $( this ).data( 'schema-title' );
$( document ).find( '.bsf-aiosrs-schema-type' ).val( type );
$( document ).find( '.bsf-aiosrs-schema-title' ).val( title );
}
);
} );
} )( jQuery );

File diff suppressed because one or more lines are too long