plugin updates
This commit is contained in:
@@ -1,619 +0,0 @@
|
||||
.bsf-aiosrs-schema-row td .bsf-aiosrs-schema-custom-text-wrap {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-custom-text-wrap .time-duration-wrap input,
|
||||
.aiosrs-pro-meta-fields-wrapper .time-duration-wrap input {
|
||||
width: 55px;
|
||||
font-size: 12px;
|
||||
padding-right: 0;
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-custom-text-wrap .aiosrs-pro-custom-field-rating input.bsf-rating-field,
|
||||
.aiosrs-pro-meta-fields-wrapper .aiosrs-pro-custom-field-rating input {
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-repeater-table .aiosrs-pro-custom-field-rating input.bsf-rating-field {
|
||||
width: 25% !important;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-custom-text-wrap .aiosrs-star-rating-wrap,
|
||||
.aiosrs-pro-meta-fields-wrapper .aiosrs-star-rating-wrap {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-custom-text-wrap .image-field-wrap,
|
||||
.aiosrs-pro-meta-fields-wrapper .image-field-wrap {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-custom-text-wrap .aiosrs-image-select .dashicons {
|
||||
font-size: 1.2em;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
line-height: 1;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-custom-text-wrap .aiosrs-image-remove,
|
||||
.aiosrs-pro-meta-fields-wrapper .aiosrs-image-remove {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-custom-text-wrap .aiosrs-image-remove {
|
||||
font-size: 15px;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-custom-text-wrap .bsf-custom-image-selected .aiosrs-image-select,
|
||||
.aiosrs-pro-meta-fields-wrapper .bsf-custom-image-selected .aiosrs-image-select {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-custom-text-wrap .bsf-custom-image-selected .aiosrs-image-remove,
|
||||
.aiosrs-pro-meta-fields-wrapper .bsf-custom-image-selected .aiosrs-image-remove {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-custom-text-wrap .bsf-custom-image-selected .aiosrs-image-select.img,
|
||||
.aiosrs-pro-meta-fields-wrapper .bsf-custom-image-selected .aiosrs-image-select.img {
|
||||
max-width: 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-custom-text-wrap .bsf-custom-image-selected .aiosrs-image-select.img img {
|
||||
max-height: 50px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrapper .bsf-custom-image-selected .aiosrs-image-select.img img {
|
||||
vertical-align: middle;
|
||||
max-width: 50px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrapper .inside,
|
||||
.aiosrs-pro-meta-fields-wrapper {
|
||||
margin-top: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrapper th,
|
||||
.aiosrs-pro-meta-fields-wrapper td {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid #eee;
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrapper .aiosrs-pro-custom-fields-dropdown-content th,
|
||||
.aiosrs-pro-meta-fields-wrapper .aiosrs-pro-custom-fields-dropdown-content td {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrapper th {
|
||||
border-right: 1px solid #eee;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-fixed-text-wrap input:not([type="checkbox"]),
|
||||
.bsf-aiosrs-schema-custom-text-wrap input:not([type="checkbox"]),
|
||||
.aiosrs-pro-meta-fields-wrapper input:not([type="checkbox"]),
|
||||
.bsf-aiosrs-schema-custom-text-wrap textarea,
|
||||
.aiosrs-pro-meta-fields-wrapper textarea {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Tooltips */
|
||||
.bsf-aiosrs-schema-heading-help {
|
||||
color: #0073aa;
|
||||
font-size: 18px;
|
||||
cursor: help;
|
||||
float: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
/* New Style Verticle Tabs */
|
||||
.aiosrs-pro-meta-fields-tabs-wrapper {
|
||||
display: inline-block;
|
||||
width: 15%;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-tabs-wrapper .aiosrs-pro-meta-fields-tab {
|
||||
padding: 8px 12px;
|
||||
border-bottom: 1px solid #eee;
|
||||
border-right: 1px solid #eee;
|
||||
margin-right: -1px;
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
background: #fff;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-tabs-wrapper .aiosrs-pro-meta-fields-tab.active {
|
||||
background: #f1f1f1;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrapper {
|
||||
width: 100%;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-tabs-wrapper ~ .aiosrs-pro-meta-fields-wrapper {
|
||||
display: inline-block;
|
||||
width: calc(85% - 1px);
|
||||
border-left: 1px solid #eee;
|
||||
}
|
||||
|
||||
#aiosrs-pro-custom-fields .inside {
|
||||
padding: unset;
|
||||
border: 1px solid #e2e4e7;
|
||||
}
|
||||
|
||||
#aiosrs-pro-custom-fields h2.hndle.ui-sortable-handle {
|
||||
border-bottom: unset;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrapper .form-table {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrap {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrap.open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-custom-text-wrap .multi-select-wrap select,
|
||||
.aiosrs-pro-meta-fields-wrapper .multi-select-wrap select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-custom-text-wrap .aiosrs-star-rating-wrap:not(.disabled) .aiosrs-star-rating,
|
||||
.aiosrs-pro-meta-fields-wrapper .aiosrs-star-rating-wrap:not(.disabled) .aiosrs-star-rating {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrapper .aiosrs-star-rating-wrap.disabled {
|
||||
padding: 0 0 5px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrapper .aiosrs-reset-rating {
|
||||
margin-left: 5px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field-rating .spinner {
|
||||
float: none;
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field-rating .aiosrs-reset-rating.reset-disabled {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.ui-timepicker-div .ui-widget-header {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.ui-timepicker-div dl {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.ui-timepicker-div dl dt {
|
||||
float: left;
|
||||
clear: left;
|
||||
padding: 0 0 0 15px;
|
||||
}
|
||||
|
||||
.ui-timepicker-div dl dd {
|
||||
margin: 15px 15px 12px 35%;
|
||||
}
|
||||
|
||||
.ui-timepicker-div td {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
.ui-tpicker-grid-label {
|
||||
background: none;
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.ui-timepicker-div .ui_tpicker_unit_hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input {
|
||||
background: none;
|
||||
color: inherit;
|
||||
border: none;
|
||||
outline: none;
|
||||
border-bottom: solid 1px #555;
|
||||
width: 95%;
|
||||
}
|
||||
|
||||
.ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input:focus {
|
||||
border-bottom-color: #aaa;
|
||||
}
|
||||
|
||||
.ui-timepicker-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.ui-timepicker-rtl dl {
|
||||
text-align: right;
|
||||
padding: 0 5px 0 0;
|
||||
}
|
||||
|
||||
.ui-timepicker-rtl dl dt {
|
||||
float: right;
|
||||
clear: right;
|
||||
}
|
||||
|
||||
.ui-timepicker-rtl dl dd {
|
||||
margin: 0 40% 10px 10px;
|
||||
}
|
||||
|
||||
.ui-timepicker-div.ui-timepicker-oneLine {
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_time,
|
||||
.ui-timepicker-div.ui-timepicker-oneLine dt {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_time_label {
|
||||
display: block;
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
||||
.ui-timepicker-div.ui-timepicker-oneLine dl {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.ui-timepicker-div.ui-timepicker-oneLine dl dd,
|
||||
.ui-timepicker-div.ui-timepicker-oneLine dl dd > div {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_minute::before,
|
||||
.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_second::before {
|
||||
content: ":";
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_millisec::before,
|
||||
.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_microsec::before {
|
||||
content: ".";
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide,
|
||||
.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
input.wpsp-time-duration-field,
|
||||
input.wpsp-date-field,
|
||||
input.wpsp-datetime-local-field {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.wpsp-connected-icon {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 0.375rem 0.75rem;
|
||||
margin-bottom: 0;
|
||||
font-size: 1rem;
|
||||
font-weight: 400;
|
||||
line-height: 1.5;
|
||||
color: #495057;
|
||||
white-space: nowrap;
|
||||
background-color: #e9ecef;
|
||||
border: 1px solid #ced4da;
|
||||
border-color: #7e8993;
|
||||
border-bottom-left-radius: 2px;
|
||||
border-top-left-radius: 2px;
|
||||
box-sizing: unset;
|
||||
}
|
||||
|
||||
.wpsp-connected-field {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.wpsp-connected-group {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.wpsp-connected-group > select {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-left: none;
|
||||
margin: 0;
|
||||
border-color: #7e8993 !important;
|
||||
}
|
||||
|
||||
.wpsp-field-close,
|
||||
.wpsp-custom-field-connect,
|
||||
.wpsp-specific-field-connect {
|
||||
align-items: center;
|
||||
color: #999;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
font-size: 18px;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
right: 28px;
|
||||
top: 7.5px;
|
||||
width: 5px;
|
||||
}
|
||||
|
||||
.wpsp-custom-field-connect {
|
||||
top: 6.5px;
|
||||
}
|
||||
|
||||
.wpsp-specific-field-connect {
|
||||
top: 5.5px;
|
||||
}
|
||||
|
||||
.wpsp-parent-field {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.wpsp-required-error-field {
|
||||
color: #f00 !important;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater .aiosrs-pro-repeater-table .bsf-aiosrs-schema-row-heading,
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater .aiosrs-pro-repeater-table .bsf-aiosrs-schema-row-content {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater .aiosrs-pro-repeater-table tr.bsf-aiosrs-schema-row.bsf-aiosrs-schema-row-text-type td.bsf-aiosrs-schema-row-heading {
|
||||
width: 16%;
|
||||
padding: 10px 12px;
|
||||
vertical-align: middle;
|
||||
border-right: 1px solid #eee;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater .aiosrs-pro-repeater-table tr.bsf-aiosrs-schema-row.bsf-aiosrs-schema-row-text-type td {
|
||||
width: 27%;
|
||||
padding: 10px 12px;
|
||||
margin-bottom: unset;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater .aiosrs-pro-repeater-table tr.bsf-aiosrs-schema-row.bsf-aiosrs-schema-row-text-type:first-child td {
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater table.aiosrs-pro-repeater-table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater table.aiosrs-pro-repeater-table tr.bsf-aiosrs-schema-row.bsf-aiosrs-schema-row-text-type {
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater-target .aiosrs-pro-repeater-table .bsf-aiosrs-schema-row-heading,
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater-target .aiosrs-pro-repeater-table .bsf-aiosrs-schema-row-content {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater-target .aiosrs-pro-repeater-table tr.bsf-aiosrs-schema-row.bsf-aiosrs-schema-row-text-type td.bsf-aiosrs-schema-row-heading {
|
||||
width: 5%;
|
||||
padding: 10px 12px;
|
||||
vertical-align: middle;
|
||||
border-right: 1px solid #eee;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater-target .aiosrs-pro-repeater-table tr.bsf-aiosrs-schema-row.bsf-aiosrs-schema-row-text-type td {
|
||||
width: 25%;
|
||||
padding: 10px 12px;
|
||||
margin-bottom: unset;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater-target table.aiosrs-pro-repeater-table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater-target table.aiosrs-pro-repeater-table tr.bsf-aiosrs-schema-row.bsf-aiosrs-schema-row-text-type {
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater-target .aiosrs-pro-repeater-table-wrap tr.bsf-aiosrs-schema-row td.bsf-aiosrs-schema-row-content .aiosrs-pro-custom-field input {
|
||||
width: 96%;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater-target .aiosrs-pro-repeater-table-wrap tr.bsf-aiosrs-schema-row td.bsf-aiosrs-schema-row-content .aiosrs-pro-custom-field textarea {
|
||||
width: 96%;
|
||||
}
|
||||
|
||||
.bsf-aiosrs-schema-heading-help.wpsp-show-repeater-field,
|
||||
.bsf-aiosrs-schema-heading-help.wpsp-hide-repeater-field,
|
||||
.bsf-aiosrs-schema-heading-help.wpsp-show-repeater-target-field,
|
||||
.bsf-aiosrs-schema-heading-help.wpsp-hide-repeater-target-field {
|
||||
cursor: pointer;
|
||||
padding: 5px;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
select[disabled] {
|
||||
background-image: none !important;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrap .wpsp-field-label {
|
||||
width: 17%;
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
border-right: 1px solid #eee;
|
||||
}
|
||||
|
||||
/* Added close button disable for repeater fields */
|
||||
#aiosrs-pro-custom-fields .bsf-repeater-close {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.wpsp-local-fields .aiosrs-pro-custom-field input {
|
||||
min-height: 33px;
|
||||
padding-right: 18%;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.wpsp-parent-field.wpsp-custom-field.wpsp-custom-field-image .wpsp-custom-field-connect {
|
||||
top: 0.5px;
|
||||
}
|
||||
|
||||
.wpsp-parent-field.wpsp-custom-field.wpsp-custom-field-textarea .wpsp-custom-field-connect {
|
||||
top: 12px;
|
||||
}
|
||||
|
||||
/*Toggle CSS for the Enable Schema Markup */
|
||||
|
||||
.wpsp-enable-schema-markup {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.wpsp-enable-schema-markup__field {
|
||||
margin-top: 8px;
|
||||
line-height: normal;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.wpsp-enable-schema-toggle {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.wpsp-enable-schema-toggle input.wpsp-enable-schema-toggle__input[type="checkbox"] {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
z-index: 1;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.wpsp-enable-schema-toggle .wpsp-enable-schema-toggle__track {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
vertical-align: top;
|
||||
background-color: #fff;
|
||||
border: 2px solid #6c7781;
|
||||
width: 36px;
|
||||
height: 18px;
|
||||
border-radius: 9px;
|
||||
transition: background 0.2s ease;
|
||||
}
|
||||
|
||||
.wpsp-enable-schema-toggle .wpsp-enable-schema-toggle__thumb {
|
||||
display: block;
|
||||
position: absolute;
|
||||
box-sizing: border-box;
|
||||
top: 4px;
|
||||
left: 4px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
transition: transform 0.1s ease;
|
||||
background-color: #6c7781;
|
||||
border: 5px solid #6c7781;
|
||||
}
|
||||
|
||||
.wpsp-enable-schema-toggle.is-checked .wpsp-enable-schema-toggle__track {
|
||||
background-color: #11a0d2;
|
||||
border: 9px solid transparent;
|
||||
}
|
||||
|
||||
.wpsp-enable-schema-toggle.is-checked .wpsp-enable-schema-toggle__thumb {
|
||||
background-color: #fff;
|
||||
border-width: 0;
|
||||
transform: translateX(18px);
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrap.is-enable-schema-markup {
|
||||
opacity: 0.2;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.rtl .wpsp-parent-field .wpsp-field-close {
|
||||
position: relative;
|
||||
right: -35px;
|
||||
}
|
||||
|
||||
.rtl .wpsp-specific-field-connect,
|
||||
.rtl .wpsp-parent-field .wpsp-custom-field-connect {
|
||||
position: absolute;
|
||||
right: 90%;
|
||||
}
|
||||
|
||||
.rtl .wpsp-parent-field .bsf-aiosrs-schema-meta-field {
|
||||
border-left: 1px solid #eee;
|
||||
}
|
||||
|
||||
.rtl .wpsp-local-fields .aiosrs-pro-custom-field input {
|
||||
padding-left: 18%;
|
||||
padding-right: 5%;
|
||||
}
|
||||
|
||||
@-moz-document url-prefix() {
|
||||
|
||||
.aiosrs-pro-meta-fields-wrapper th,
|
||||
.aiosrs-pro-meta-fields-wrapper td {
|
||||
width: 36%;
|
||||
}
|
||||
|
||||
.aiosrs-pro-meta-fields-wrap .wpsp-field-label {
|
||||
width: 14%;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater .aiosrs-pro-repeater-table tr.bsf-aiosrs-schema-row.bsf-aiosrs-schema-row-text-type td.bsf-aiosrs-schema-row-heading {
|
||||
width: 14%;
|
||||
}
|
||||
|
||||
.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater .aiosrs-pro-repeater-table tr.bsf-aiosrs-schema-row.bsf-aiosrs-schema-row-text-type td {
|
||||
width: 36%;
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
.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;
|
||||
}
|
||||
@@ -1,98 +0,0 @@
|
||||
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;
|
||||
}
|
||||
@@ -1,460 +0,0 @@
|
||||
.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;
|
||||
}
|
||||
}
|
||||
@@ -1,589 +0,0 @@
|
||||
body {
|
||||
margin: 100px auto 100px auto;
|
||||
box-shadow: none;
|
||||
background: #f1f1f1;
|
||||
padding: 0;
|
||||
max-width: 800px;
|
||||
border: unset;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#aiosrs-pro-logo {
|
||||
border: 0;
|
||||
margin: 0 0 24px;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#aiosrs-pro-logo a,
|
||||
#aiosrs-pro-logo a:active,
|
||||
#aiosrs-pro-logo a:focus {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
#aiosrs-pro-logo img {
|
||||
max-width: 30%;
|
||||
}
|
||||
|
||||
|
||||
/* Wizard Steps */
|
||||
|
||||
.aiosrs-pro-setup-wizard-steps,
|
||||
.aiosrs-pro-setup-steps {
|
||||
padding: 5px 0 24px;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
overflow: hidden;
|
||||
color: #ccc;
|
||||
width: 100%;
|
||||
display: -webkit-inline-flex;
|
||||
display: -ms-inline-flexbox;
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-steps li,
|
||||
.aiosrs-pro-setup-steps li {
|
||||
width: 33%;
|
||||
float: left;
|
||||
padding: 0 0 0.8em;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
border-bottom: 4px solid #ccc;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-steps li::before,
|
||||
.aiosrs-pro-setup-steps li::before {
|
||||
content: "";
|
||||
border: 4px solid #ccc;
|
||||
border-radius: 100%;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
margin-left: -6px;
|
||||
margin-bottom: -8px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-steps li.active,
|
||||
.aiosrs-pro-setup-steps li.active {
|
||||
border-color: #0085ba;
|
||||
color: #0085ba;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-steps li.active::before,
|
||||
.aiosrs-pro-setup-steps li.active::before {
|
||||
border-color: #0085ba;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-steps li.done,
|
||||
.aiosrs-pro-setup-steps li.done {
|
||||
border-color: #0085ba;
|
||||
color: #0085ba;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-steps li.done::before,
|
||||
.aiosrs-pro-setup-steps li.done::before {
|
||||
border-color: #0085ba;
|
||||
background: #0085ba;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content a,
|
||||
.aiosrs-pro-setup-content a {
|
||||
color: #0085ba;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content a:focus,
|
||||
.aiosrs-pro-setup-content a:focus,
|
||||
.aiosrs-pro-setup-wizard-content a:hover,
|
||||
.aiosrs-pro-setup-content a:hover {
|
||||
color: #111;
|
||||
}
|
||||
|
||||
|
||||
/* Wizard Content */
|
||||
|
||||
.aiosrs-pro-setup-wizard-content,
|
||||
.aiosrs-pro-setup-content {
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
|
||||
padding: 24px 24px 0;
|
||||
background: #fff;
|
||||
overflow: hidden;
|
||||
zoom: 1;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content h1,
|
||||
.aiosrs-pro-setup-content h1,
|
||||
.aiosrs-pro-setup-wizard-content h2,
|
||||
.aiosrs-pro-setup-content h2,
|
||||
.aiosrs-pro-setup-wizard-content h3,
|
||||
.aiosrs-pro-setup-content h3,
|
||||
.aiosrs-pro-setup-wizard-content table,
|
||||
.aiosrs-pro-setup-content table {
|
||||
margin: 0 0 24px;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
color: #666;
|
||||
clear: none;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content p,
|
||||
.aiosrs-pro-setup-content p {
|
||||
margin: 0 0 24px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content p,
|
||||
.aiosrs-pro-setup-content p,
|
||||
.aiosrs-pro-setup-wizard-content table,
|
||||
.aiosrs-pro-setup-content table {
|
||||
font-size: 1em;
|
||||
line-height: 1.75;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content .form-table th,
|
||||
.aiosrs-pro-setup-content .form-table th {
|
||||
width: 40%;
|
||||
vertical-align: top;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content .form-table td,
|
||||
.aiosrs-pro-setup-content .form-table td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content .form-table td input,
|
||||
.aiosrs-pro-setup-content .form-table td input,
|
||||
.aiosrs-pro-setup-wizard-content .form-table td select,
|
||||
.aiosrs-pro-setup-content .form-table td select {
|
||||
box-sizing: border-box;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content .form-table td input:not([type="checkbox"]),
|
||||
.aiosrs-pro-setup-wizard-content .form-table td select {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content .form-table td .description,
|
||||
.aiosrs-pro-setup-content .form-table td .description {
|
||||
line-height: 1.5;
|
||||
display: block;
|
||||
margin-top: 0.25em;
|
||||
color: #999;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content .form-table td .input-checkbox,
|
||||
.aiosrs-pro-setup-content .form-table td .input-checkbox,
|
||||
.aiosrs-pro-setup-wizard-content .form-table td .input-radio,
|
||||
.aiosrs-pro-setup-content .form-table td .input-radio {
|
||||
width: auto;
|
||||
box-sizing: inherit;
|
||||
padding: inherit;
|
||||
margin: 0 0.5em 0 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
/* Content Bottom Buttons */
|
||||
|
||||
.aiosrs-pro-setup-wizard .aiosrs-pro-setup-wizard-actions,
|
||||
.aiosrs-pro-setup .aiosrs-pro-setup-actions {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard .aiosrs-pro-setup-wizard-actions .button,
|
||||
.aiosrs-pro-setup .aiosrs-pro-setup-actions .button {
|
||||
float: right;
|
||||
font-size: 1em;
|
||||
padding: 0.5em 1em;
|
||||
line-height: 16px;
|
||||
margin-right: 0.5em;
|
||||
margin-bottom: 2px;
|
||||
height: auto;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard .aiosrs-pro-setup-wizard-actions .skip-button,
|
||||
.aiosrs-pro-setup .aiosrs-pro-setup-actions .skip-button {
|
||||
margin-left: 10px;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard .aiosrs-pro-setup-wizard-actions .button-primary,
|
||||
.aiosrs-pro-setup .aiosrs-pro-setup-actions .button-primary {
|
||||
float: right;
|
||||
margin: 0;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.aiosrs-pro-return-to-dashboard {
|
||||
font-size: 0.85em;
|
||||
color: #b5b5b5;
|
||||
margin: 1.18em 0;
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
/* Theme Config Page */
|
||||
|
||||
.wp-core-ui .aiosrs-pro-basic-config input.ast-color-picker {
|
||||
vertical-align: top;
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
.wp-core-ui .aiosrs-pro-basic-config input.wp-picker-clear {
|
||||
width: 70px;
|
||||
}
|
||||
|
||||
|
||||
/* Ready Page */
|
||||
|
||||
.aiosrs-pro-setup-wizard-content .twitter-share-button,
|
||||
.aiosrs-pro-setup-content .twitter-share-button {
|
||||
float: right;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Site Identity
|
||||
*/
|
||||
|
||||
.aiosrs-pro-setup-wizard-content select,
|
||||
.aiosrs-pro-setup-content select,
|
||||
.aiosrs-pro-setup-wizard-content input,
|
||||
.aiosrs-pro-setup-content input {
|
||||
border: 1px solid #f1f1f1;
|
||||
padding: 0.5em;
|
||||
border-radius: 3px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content .select2-container--default .select2-selection--single {
|
||||
border: 1px solid #f1f1f1;
|
||||
padding: 0.5em;
|
||||
border-radius: 3px;
|
||||
font-size: 14px;
|
||||
height: 33px;
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content .select2.select2-container.select2-container--default {
|
||||
width: 50% !important;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content .select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
color: unset;
|
||||
line-height: unset;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content .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;
|
||||
}
|
||||
|
||||
.wp-picker-active .wp-picker-holder {
|
||||
position: absolute;
|
||||
z-index: 9;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-next-steps .button-hero:last-child,
|
||||
.aiosrs-pro-setup-next-steps .button-hero:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-next-steps .button-hero,
|
||||
.aiosrs-pro-setup-next-steps .button-hero {
|
||||
width: 100%;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Step: Last
|
||||
*/
|
||||
|
||||
.aiosrs-pro-setup-wizard-next-steps-last ul,
|
||||
.aiosrs-pro-setup-next-steps-last ul {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-next-steps-last li i,
|
||||
.aiosrs-pro-setup-next-steps-last li i {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-next-steps-last li,
|
||||
.aiosrs-pro-setup-next-steps-last li {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Schema template
|
||||
*/
|
||||
|
||||
.aiosrs-pro-basic-config .aiosrs-pro-schema-temp-wrap {
|
||||
display: inline-block;
|
||||
background: #f1f1f1;
|
||||
border: 1px solid #d8d8d8;
|
||||
padding: 10px 5px;
|
||||
width: calc(33% - 8px);
|
||||
text-align: center;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 10px;
|
||||
cursor: pointer;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
vertical-align: middle;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-basic-config .aiosrs-pro-schema-temp-wrap:nth-child(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.aiosrs-pro-basic-config .aiosrs-pro-schema-temp-wrap.selected,
|
||||
.aiosrs-pro-basic-config .aiosrs-pro-schema-temp-wrap:hover {
|
||||
background: #d6d6d6;
|
||||
border-color: #b9b9b9;
|
||||
}
|
||||
|
||||
.aiosrs-pro-basic-config .aiosrs-pro-schema-temp-wrap i {
|
||||
font-size: 18px;
|
||||
height: 18px;
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.aiosrs-pro-basic-config td {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content table.bsf-aiosrs-schema-table,
|
||||
.aiosrs-pro-setup-content table.bsf-aiosrs-schema-table {
|
||||
border: 1px solid #e1e1e1;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content table.form-table th,
|
||||
.aiosrs-pro-setup-content table.aiosrs-pro-schema-ready th,
|
||||
.aiosrs-pro-setup-wizard-content table.form-table td,
|
||||
.aiosrs-pro-setup-content table.aiosrs-pro-schema-ready td,
|
||||
.aiosrs-pro-setup-wizard-content table.form-table .button-hero,
|
||||
.aiosrs-pro-setup-content table.aiosrs-pro-schema-ready .button-hero {
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content table.aiosrs-pro-schema-ready td,
|
||||
.aiosrs-pro-setup-content table.aiosrs-pro-schema-ready td {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard .wizard-close-link,
|
||||
.aiosrs-pro-setup .wizard-close-link {
|
||||
color: #ccc;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Hide tooltip text
|
||||
*/
|
||||
|
||||
.aiosrs-pro-setup-wizard .ui-helper-hidden-accessible,
|
||||
.aiosrs-pro-setup .ui-helper-hidden-accessible {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard .ui-widget-content.bsf-aiosrs-schema-ui-tooltip,
|
||||
.aiosrs-pro-setup .ui-widget-content.bsf-aiosrs-schema-ui-tooltip {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-schema-ready .button-primary.button-hero {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Schema Pro On-Boarding
|
||||
*/
|
||||
|
||||
.aiosrs-pro-setup-wizard .aiosrs-pro-setup-wizard-content .button-next,
|
||||
.aiosrs-pro-setup-wizard-content.welcome-content-wrap .button-close {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.social-profiles-content-wrap input[type="text"] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.success-content-wrap .form-table td {
|
||||
width: 45%;
|
||||
text-align: center;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.success-content-wrap .form-table td.space {
|
||||
width: 10%;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.general-setting-content-wrap .form-table select {
|
||||
min-width: 53%;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.general-setting-content-wrap .custom-field-wrapper {
|
||||
display: inline-block;
|
||||
width: 48%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Custom Image Select
|
||||
*/
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.general-setting-content-wrap .image-field-wrap {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.general-setting-content-wrap .aiosrs-image-select .dashicons {
|
||||
font-size: 1.2em;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
line-height: 22px;
|
||||
margin-right: 5px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.general-setting-content-wrap .aiosrs-image-remove {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
right: 0;
|
||||
font-size: 15px;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.general-setting-content-wrap .bsf-custom-image-selected .aiosrs-image-select {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.general-setting-content-wrap .bsf-custom-image-selected .aiosrs-image-remove {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.general-setting-content-wrap .bsf-custom-image-selected .aiosrs-image-select.img {
|
||||
max-width: 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.general-setting-content-wrap .bsf-custom-image-selected .aiosrs-image-select.img img {
|
||||
max-height: 75px;
|
||||
vertical-align: middle;
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.general-setting-content-wrap .bsf-custom-image-selected .aiosrs-image-select.default-image.img img {
|
||||
max-height: 150px;
|
||||
}
|
||||
|
||||
.close-button-wrapper {
|
||||
text-align: center;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.close-button-wrapper a.button-close .dashicons {
|
||||
vertical-align: middle;
|
||||
font-size: 1.3em;
|
||||
line-height: 0.9;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
}
|
||||
|
||||
.close-button-wrapper .button {
|
||||
font-size: 1em;
|
||||
padding: 5px 15px;
|
||||
height: auto;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.welcome-content-wrap ul {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.welcome-content-wrap ul li {
|
||||
font-size: inherit;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content .no-margin {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.global-schemas-content-wrap {
|
||||
overflow: initial;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.global-schemas-content-wrap .aiosrs-pro-setup-wizard-actions {
|
||||
padding-bottom: 24px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.social-profiles-content-wrap .form-table tr {
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.social-profiles-content-wrap .form-table tr th {
|
||||
vertical-align: middle;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.social-profiles-content-wrap .form-table tr td input {
|
||||
width: 120%;
|
||||
}
|
||||
|
||||
.aiosrs-pro-field-description {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.aiosrs-pro-setup-wizard #aiosrs-pro-logo .wpsp-setup-pro-title,
|
||||
.aiosrs-pro-setup #aiosrs-pro-logo .wpsp-setup-pro-title {
|
||||
color: #000;
|
||||
font-size: 26px;
|
||||
padding: 0;
|
||||
font-weight: 600;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
border: unset;
|
||||
}
|
||||
|
||||
@-moz-document url-prefix() {
|
||||
|
||||
.aiosrs-pro-setup-wizard-content.social-profiles-content-wrap .form-table tr {
|
||||
width: 50%;
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
@@ -1,388 +0,0 @@
|
||||
/* 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;
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 33 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 10 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 64 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 64 KiB |
@@ -1,704 +0,0 @@
|
||||
/* eslint-env jquery */
|
||||
(function ($) {
|
||||
$(window).on('load', function () {
|
||||
$(
|
||||
'.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater .aiosrs-pro-repeater-table-wrap'
|
||||
).hide();
|
||||
$(
|
||||
'.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater .bsf-repeater-add-new-btn'
|
||||
).hide();
|
||||
$(
|
||||
'.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater-target .aiosrs-pro-repeater-table-wrap'
|
||||
).hide();
|
||||
$(
|
||||
'.aiosrs-pro-custom-field.aiosrs-pro-custom-field-repeater-target .bsf-repeater-add-new-btn'
|
||||
).hide();
|
||||
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
const { __ } = wp.i18n;
|
||||
$('#wpsp-reset-dialog-confirmation').dialog({
|
||||
dialogClass: 'wp-dialog',
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
});
|
||||
|
||||
// Added support to repeater validation.
|
||||
|
||||
$(
|
||||
'.wpsp-custom-field-connect, .wpsp-field-close, .bsf-aiosrs-schema-meta-field, image-field-wrap, .aiosrs-pro-custom-field, .wpsp-custom-field-connect'
|
||||
).on('click focus change', function () {
|
||||
$('.wpsp-local-fields').each(function (index, repeater) {
|
||||
let fieldValue = $(repeater)
|
||||
.find('.wpsp-default-hidden-value')
|
||||
.val();
|
||||
const requiredPath = $(repeater)
|
||||
.parents('.bsf-aiosrs-schema-row-content')
|
||||
.prev();
|
||||
fieldValue = fieldValue.trim();
|
||||
if (fieldValue) {
|
||||
if ($('body').hasClass('block-editor-page')) {
|
||||
if (
|
||||
!$(repeater).find('.wpsp-required-error-field')
|
||||
.length
|
||||
) {
|
||||
let metaField;
|
||||
switch (fieldValue) {
|
||||
case 'post_title':
|
||||
metaField = $(
|
||||
'.editor-post-title__input'
|
||||
).val();
|
||||
break;
|
||||
case 'post_content':
|
||||
metaField =
|
||||
$(
|
||||
'p.block-editor-rich-text__editable'
|
||||
).text().length > 1
|
||||
? $(
|
||||
'p.block-editor-rich-text__editable'
|
||||
).text()
|
||||
: '';
|
||||
break;
|
||||
case 'post_excerpt':
|
||||
metaField = $(
|
||||
'.components-textarea-control__input'
|
||||
).val();
|
||||
break;
|
||||
case 'featured_img':
|
||||
if (
|
||||
'Set featured image' ===
|
||||
$(
|
||||
'.editor-post-featured-image__toggle'
|
||||
).text()
|
||||
) {
|
||||
metaField = '';
|
||||
} else {
|
||||
metaField = $(
|
||||
'.components-responsive-wrapper__content'
|
||||
).attr('src');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
requiredPath.removeClass(
|
||||
'wpsp-required-error-field'
|
||||
);
|
||||
}
|
||||
if (undefined !== metaField) {
|
||||
if ('' !== metaField) {
|
||||
requiredPath.removeClass(
|
||||
'wpsp-required-error-field'
|
||||
);
|
||||
} else if (
|
||||
requiredPath.find('.required').length
|
||||
) {
|
||||
requiredPath.addClass(
|
||||
'wpsp-required-error-field'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
requiredPath.removeClass('wpsp-required-error-field');
|
||||
}
|
||||
} else if (requiredPath.find('.required').length) {
|
||||
requiredPath.addClass('wpsp-required-error-field');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('.wpsp-show-repeater-field').click(function () {
|
||||
const parent = $(this).parents(
|
||||
'.aiosrs-pro-custom-field-repeater'
|
||||
);
|
||||
parent.find('.aiosrs-pro-repeater-table-wrap').show();
|
||||
parent.find('.bsf-repeater-add-new-btn').show();
|
||||
parent.find('.wpsp-show-repeater-field').addClass('bsf-hidden');
|
||||
parent
|
||||
.find('.wpsp-hide-repeater-field')
|
||||
.removeClass('bsf-hidden');
|
||||
});
|
||||
$('.wpsp-hide-repeater-field').click(function () {
|
||||
const parent = $(this).parents(
|
||||
'.aiosrs-pro-custom-field-repeater'
|
||||
);
|
||||
parent.find('.aiosrs-pro-repeater-table-wrap').hide();
|
||||
parent.find('.bsf-repeater-add-new-btn').hide();
|
||||
parent.find('.wpsp-hide-repeater-field').addClass('bsf-hidden');
|
||||
parent
|
||||
.find('.wpsp-show-repeater-field')
|
||||
.removeClass('bsf-hidden');
|
||||
});
|
||||
$('.wpsp-show-repeater-target-field').click(function () {
|
||||
const parent = $(this).parents(
|
||||
'.aiosrs-pro-custom-field-repeater-target'
|
||||
);
|
||||
parent.find('.aiosrs-pro-repeater-table-wrap').show();
|
||||
parent.find('.bsf-repeater-add-new-btn').show();
|
||||
parent
|
||||
.find('.wpsp-show-repeater-target-field')
|
||||
.addClass('bsf-hidden');
|
||||
parent
|
||||
.find('.wpsp-hide-repeater-target-field')
|
||||
.removeClass('bsf-hidden');
|
||||
});
|
||||
$('.wpsp-hide-repeater-target-field').click(function () {
|
||||
const parent = $(this).parents(
|
||||
'.aiosrs-pro-custom-field-repeater-target'
|
||||
);
|
||||
parent.find('.aiosrs-pro-repeater-table-wrap').hide();
|
||||
parent.find('.bsf-repeater-add-new-btn').hide();
|
||||
parent
|
||||
.find('.wpsp-hide-repeater-target-field')
|
||||
.addClass('bsf-hidden');
|
||||
parent
|
||||
.find('.wpsp-show-repeater-target-field')
|
||||
.removeClass('bsf-hidden');
|
||||
});
|
||||
$('input[type="checkbox"].wpsp-enable-schema-toggle__input').on(
|
||||
'click',
|
||||
function () {
|
||||
const parent = $(this).parents(
|
||||
'.wpsp-enable-schema-markup'
|
||||
);
|
||||
const thisVal = $(this).val();
|
||||
const togglebtn = parent.find('.wpsp-enable-schema-toggle');
|
||||
const togglehid = parent.find(
|
||||
'.wpsp-enable-schema-toggle__input-hidden'
|
||||
);
|
||||
const isChecked = togglebtn.hasClass('is-checked');
|
||||
|
||||
if (!isChecked && '1' === thisVal) {
|
||||
togglehid.attr('value', '1');
|
||||
togglebtn.addClass('is-checked');
|
||||
} else {
|
||||
togglehid.attr('value', 'disabled');
|
||||
togglebtn.removeClass('is-checked');
|
||||
}
|
||||
}
|
||||
);
|
||||
$(document).on('change click', function () {
|
||||
$('.wpsp-local-fields')
|
||||
.find('select, textarea, input')
|
||||
.on('change keyup', function (event) {
|
||||
if (
|
||||
event.isTrigger &&
|
||||
!$(this).hasClass('wpsp-specific-field') &&
|
||||
!$(this).hasClass('wpsp-date-field')
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const parent = $(this).parents('.wpsp-local-fields');
|
||||
parent
|
||||
.find('.wpsp-default-hidden-value')
|
||||
.val($(this).val());
|
||||
parent
|
||||
.find('.wpsp-default-hidden-fieldtype')
|
||||
.val(
|
||||
$(this)
|
||||
.parents('.wpsp-parent-field')
|
||||
.attr('data-type')
|
||||
);
|
||||
|
||||
if (
|
||||
$(this).is('select') &&
|
||||
$(this).parent().hasClass('wpsp-connect-field')
|
||||
) {
|
||||
const selectedOption = $(this).val();
|
||||
|
||||
if (
|
||||
'create-field' === selectedOption ||
|
||||
'specific-field' === selectedOption
|
||||
) {
|
||||
if ('create-field' === selectedOption) {
|
||||
displayCustomField(parent);
|
||||
parent
|
||||
.find('.wpsp-default-hidden-fieldtype')
|
||||
.val('custom-field');
|
||||
}
|
||||
if ('specific-field' === selectedOption) {
|
||||
displaySpecificField(parent);
|
||||
parent
|
||||
.find('.wpsp-default-hidden-fieldtype')
|
||||
.val('specific-field');
|
||||
}
|
||||
parent
|
||||
.find('.wpsp-default-hidden-value')
|
||||
.val('');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('select.bsf-aiosrs-schema-meta-field').change(function () {
|
||||
const parent = $(this).parents('.wpsp-local-fields');
|
||||
const label = parent.find('select option:selected').html();
|
||||
|
||||
const selectedOption = $(this).val();
|
||||
|
||||
if (
|
||||
'none' === selectedOption ||
|
||||
'create-field' === selectedOption ||
|
||||
'specific-field' === selectedOption
|
||||
) {
|
||||
parent
|
||||
.find('.bsf-aiosrs-schema-heading-help')
|
||||
.attr(
|
||||
'title',
|
||||
'Please connect any field to apply in the Schema Markup!'
|
||||
);
|
||||
} else {
|
||||
parent
|
||||
.find('.bsf-aiosrs-schema-heading-help')
|
||||
.attr(
|
||||
'title',
|
||||
'The ' +
|
||||
label +
|
||||
' value in this field will be added to the schema markup of this particular post/page.'
|
||||
);
|
||||
}
|
||||
});
|
||||
function displaySpecificField(parent) {
|
||||
parent.find('.wpsp-connect-field,.wpsp-custom-field').hide();
|
||||
parent
|
||||
.find('.wpsp-specific-field')
|
||||
.removeClass('bsf-hidden')
|
||||
.show()
|
||||
.find('select, textarea, input')
|
||||
.val('');
|
||||
}
|
||||
|
||||
function displayCustomField(parent) {
|
||||
parent
|
||||
.find('.wpsp-connect-field,.wpsp-specific-field')
|
||||
.hide();
|
||||
parent
|
||||
.find('.wpsp-custom-field')
|
||||
.removeClass('bsf-hidden')
|
||||
.show()
|
||||
.find('select, textarea, input')
|
||||
.val('');
|
||||
}
|
||||
|
||||
$(document).on('click', '.wpsp-field-close', function () {
|
||||
const parent = $(this).parents('.wpsp-local-fields');
|
||||
const select = parent
|
||||
.find('.wpsp-connect-field')
|
||||
.removeClass('bsf-hidden')
|
||||
.show()
|
||||
.find('select')
|
||||
.removeAttr('disabled');
|
||||
const selectVal = select.val();
|
||||
if ('specific-field' === selectVal) {
|
||||
parent.find('.wpsp-default-hidden-value').val('');
|
||||
parent
|
||||
.find('.wpsp-default-hidden-fieldtype')
|
||||
.val('specific-field');
|
||||
displaySpecificField(parent);
|
||||
return;
|
||||
}
|
||||
parent.find('.wpsp-default-hidden-value').val('');
|
||||
parent
|
||||
.find('.wpsp-default-hidden-fieldtype')
|
||||
.val('custom-field');
|
||||
displayCustomField(parent);
|
||||
});
|
||||
|
||||
$(document).on(
|
||||
'click',
|
||||
'.wpsp-specific-field-connect, .wpsp-custom-field-connect',
|
||||
function () {
|
||||
const parent = $(this).parents('.wpsp-local-fields');
|
||||
const select = parent
|
||||
.find('.wpsp-connect-field')
|
||||
.removeClass('bsf-hidden')
|
||||
.show()
|
||||
.find('select')
|
||||
.removeAttr('disabled');
|
||||
|
||||
let selectVal = select.val();
|
||||
|
||||
if (
|
||||
'create-field' === selectVal ||
|
||||
'specific-field' === selectVal
|
||||
) {
|
||||
selectVal = 'none';
|
||||
}
|
||||
|
||||
parent
|
||||
.find('.wpsp-default-hidden-value')
|
||||
.val(selectVal);
|
||||
parent
|
||||
.find('.wpsp-default-hidden-fieldtype')
|
||||
.val('global-field');
|
||||
parent
|
||||
.find('.wpsp-custom-field, .wpsp-specific-field')
|
||||
.hide();
|
||||
}
|
||||
);
|
||||
});
|
||||
$(document).on('change input', '.bsf-rating-field', function () {
|
||||
const starWrap = $(this).next('.aiosrs-star-rating-wrap'),
|
||||
value = $(this).val();
|
||||
let filled = value > 5 ? 5 : parseInt(value);
|
||||
|
||||
if (value > 5) {
|
||||
filled = 5;
|
||||
} else if (value < 0) {
|
||||
filled = 0;
|
||||
} else {
|
||||
filled = parseInt(value);
|
||||
}
|
||||
const half = value === filled || value > 5 || value < 0 ? 0 : 1;
|
||||
starWrap.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-half');
|
||||
} else {
|
||||
$(this).addClass('dashicons-star-empty');
|
||||
}
|
||||
});
|
||||
});
|
||||
$(document).on(
|
||||
'click',
|
||||
'.aiosrs-star-rating-wrap:not(.disabled) > .aiosrs-star-rating',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
const index = $(this).data('index');
|
||||
const starWrap = $(this).parent();
|
||||
const parent = $(this).parents('.wpsp-local-fields');
|
||||
starWrap.prev('.bsf-rating-field').val(index);
|
||||
parent.find('.wpsp-default-hidden-value').val(index);
|
||||
starWrap.find('.aiosrs-star-rating').each(function (i) {
|
||||
$(this).removeClass(
|
||||
'dashicons-star-filled dashicons-star-half dashicons-star-empty'
|
||||
);
|
||||
if (i < index) {
|
||||
$(this).addClass('dashicons-star-filled');
|
||||
} else {
|
||||
$(this).addClass('dashicons-star-empty');
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
$(document).on(
|
||||
'change',
|
||||
'#aiosrs-pro-custom-fields .aiosrs-pro-custom-field-checkbox input[type="checkbox"]',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
const siblings = $(this)
|
||||
.closest('tr.row')
|
||||
.siblings('tr.row');
|
||||
if ($(this).prop('checked')) {
|
||||
siblings.show();
|
||||
} else {
|
||||
siblings.hide();
|
||||
}
|
||||
}
|
||||
);
|
||||
$(
|
||||
'#aiosrs-pro-custom-fields .aiosrs-pro-custom-field-checkbox input[type="checkbox"]'
|
||||
).trigger('change');
|
||||
$(document.body).on(
|
||||
'change',
|
||||
'#aiosrs-pro-custom-fields .wpsp-enable-schema-markup input[type="checkbox"].wpsp-enable-schema-toggle__input',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
const parent = $(this).parents(
|
||||
'.wpsp-enable-schema-markup'
|
||||
);
|
||||
|
||||
if ($(this).prop('checked')) {
|
||||
parent
|
||||
.find('.wpsp-enable-schema-toggle')
|
||||
.addClass('is-checked');
|
||||
parent
|
||||
.find('.wpsp-enable-schema-toggle__input-hidden')
|
||||
.attr('value', '1');
|
||||
} else {
|
||||
parent
|
||||
.find('.wpsp-enable-schema-toggle')
|
||||
.removeClass('is-checked');
|
||||
parent
|
||||
.find('.wpsp-enable-schema-toggle__input-hidden')
|
||||
.attr('value', 'disabled');
|
||||
}
|
||||
}
|
||||
);
|
||||
$(
|
||||
'#aiosrs-pro-custom-fields .wpsp-enable-schema-markup input[type="checkbox"].wpsp-enable-schema-toggle__input'
|
||||
).trigger('change');
|
||||
$(document).on('click', '.aiosrs-reset-rating', function (e) {
|
||||
e.preventDefault();
|
||||
const thisObj = $(this);
|
||||
const parent = thisObj.closest('.aiosrs-pro-custom-field-rating');
|
||||
|
||||
const ajaxData = {
|
||||
action: 'aiosrs_reset_post_rating',
|
||||
post_id: thisObj.data('post-id'),
|
||||
schema_id: thisObj.data('schema-id'),
|
||||
nonce: thisObj.data('nonce'),
|
||||
};
|
||||
|
||||
$('#wpsp-reset-dialog-confirmation').dialog({
|
||||
resizable: false,
|
||||
title: __('Confirmation Required!', 'wp-schema-pro'),
|
||||
height: 'auto',
|
||||
width: 400,
|
||||
modal: true,
|
||||
open() {
|
||||
$(this)
|
||||
.closest('.ui-dialog')
|
||||
.find('.ui-dialog-titlebar-close')
|
||||
.hide();
|
||||
const markup =
|
||||
'<p><span class="dashicons dashicons-trash"></span> Do you really want to reset current post rating?</p>';
|
||||
$(this).html(markup);
|
||||
},
|
||||
buttons: {
|
||||
Yes() {
|
||||
thisObj.addClass('reset-disabled');
|
||||
parent.find('.spinner').addClass('is-active');
|
||||
jQuery
|
||||
.ajax({
|
||||
url: ajaxurl,
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: ajaxData,
|
||||
})
|
||||
.success(function (response) {
|
||||
if (
|
||||
'undefined' !== typeof response.success &&
|
||||
response.success === true
|
||||
) {
|
||||
const avgRating = response['rating-avg'],
|
||||
reviewCount =
|
||||
response['review-count'];
|
||||
parent
|
||||
.find('.aiosrs-rating')
|
||||
.text(avgRating);
|
||||
parent
|
||||
.find('.aiosrs-rating-count')
|
||||
.text(reviewCount);
|
||||
parent
|
||||
.find(
|
||||
'.aiosrs-star-rating-wrap > .aiosrs-star-rating'
|
||||
)
|
||||
.removeClass(
|
||||
'dashicons-star-filled dashicons-star-half dashicons-star-empty'
|
||||
)
|
||||
.addClass('dashicons-star-empty');
|
||||
} else {
|
||||
thisObj.removeClass('reset-disabled');
|
||||
}
|
||||
parent
|
||||
.find('.spinner')
|
||||
.removeClass('is-active');
|
||||
});
|
||||
$(this).dialog('close');
|
||||
},
|
||||
Cancel() {
|
||||
$(this).dialog('close');
|
||||
},
|
||||
},
|
||||
});
|
||||
$('#wpsp-reset-dialog-confirmation').dialog('open');
|
||||
});
|
||||
$(document).on('change', '.multi-select-wrap select', function () {
|
||||
const multiselectWrap = $(this).closest('.multi-select-wrap'),
|
||||
selectWrap = multiselectWrap.find('select'),
|
||||
inputField = multiselectWrap.find('input[type="hidden"]'),
|
||||
value = selectWrap.val();
|
||||
|
||||
if (
|
||||
'undefined' !== typeof value &&
|
||||
null !== value &&
|
||||
value.length > 0
|
||||
) {
|
||||
inputField.val(value.join(','));
|
||||
} else {
|
||||
inputField.val('');
|
||||
}
|
||||
});
|
||||
|
||||
// Verticle Tabs
|
||||
$(document).on(
|
||||
'click',
|
||||
'.aiosrs-pro-meta-fields-tab',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
const id = $(this).data('tab-id');
|
||||
$(this)
|
||||
.siblings('.aiosrs-pro-meta-fields-tab')
|
||||
.removeClass('active');
|
||||
$(this).addClass('active');
|
||||
|
||||
$('#aiosrs-pro-custom-fields')
|
||||
.find('.aiosrs-pro-meta-fields-wrap')
|
||||
.removeClass('open');
|
||||
$('#aiosrs-pro-custom-fields')
|
||||
.find('.' + id)
|
||||
.addClass('open');
|
||||
}
|
||||
);
|
||||
|
||||
// Toggle Js for Enable Schema Markup.
|
||||
|
||||
$(document.body).on(
|
||||
'change',
|
||||
'#aiosrs-pro-custom-fields .wpsp-enable-schema-markup .wpsp-enable-schema-toggle',
|
||||
function () {
|
||||
const parent = $(this).parents(
|
||||
'.aiosrs-pro-meta-fields-tab'
|
||||
);
|
||||
const parents = $(this).parents('.inside');
|
||||
const id = parent.data('tab-id');
|
||||
const hasClass = parents
|
||||
.find('.aiosrs-pro-meta-fields-wrapper')
|
||||
.find('.' + id)
|
||||
.hasClass('is-enable-schema-markup');
|
||||
const isChecked = parent
|
||||
.find('.wpsp-enable-schema-toggle')
|
||||
.hasClass('is-checked');
|
||||
|
||||
if (!hasClass && !isChecked) {
|
||||
parents
|
||||
.find('.aiosrs-pro-meta-fields-wrapper')
|
||||
.find('.' + id)
|
||||
.addClass('is-enable-schema-markup');
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
$(
|
||||
'#aiosrs-pro-custom-fields .wpsp-enable-schema-markup .wpsp-enable-schema-toggle'
|
||||
).trigger('change');
|
||||
|
||||
$('.wpsp-enable-schema-toggle').on('click', function () {
|
||||
const parent = $(this).parents('.aiosrs-pro-meta-fields-tab');
|
||||
const parents = $(this).parents('.inside');
|
||||
const id = parent.data('tab-id');
|
||||
|
||||
parents
|
||||
.find('.aiosrs-pro-meta-fields-wrapper')
|
||||
.find('.' + id)
|
||||
.toggleClass('is-enable-schema-markup');
|
||||
});
|
||||
|
||||
// Call Tooltip
|
||||
$('.bsf-aiosrs-schema-heading-help').tooltip({
|
||||
content() {
|
||||
return $(this).prop('title');
|
||||
},
|
||||
tooltipClass: 'bsf-aiosrs-schema-ui-tooltip',
|
||||
position: {
|
||||
my: 'center top',
|
||||
at: 'center bottom+10',
|
||||
},
|
||||
hide: {
|
||||
duration: 200,
|
||||
},
|
||||
show: {
|
||||
duration: 200,
|
||||
},
|
||||
});
|
||||
|
||||
let fileFrame;
|
||||
window.inputWrapper = '';
|
||||
|
||||
$(document.body).on(
|
||||
'click',
|
||||
'.image-field-wrap .aiosrs-image-select',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
window.inputWrapper = $(this).closest(
|
||||
'.bsf-aiosrs-schema-custom-text-wrap, .aiosrs-pro-custom-field-image'
|
||||
);
|
||||
|
||||
// Create the media frame.
|
||||
fileFrame = wp.media({
|
||||
button: {
|
||||
text: 'Select Image',
|
||||
close: false,
|
||||
},
|
||||
states: [
|
||||
new wp.media.controller.Library({
|
||||
title: __('Select Custom Image', 'wp-schema-pro'),
|
||||
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);
|
||||
|
||||
const parent = window.inputWrapper.parents(
|
||||
'.wpsp-local-fields'
|
||||
);
|
||||
parent
|
||||
.find('.wpsp-default-hidden-value')
|
||||
.val(attachment.id);
|
||||
parent
|
||||
.find('.wpsp-default-hidden-fieldtype')
|
||||
.val(
|
||||
window.inputWrapper
|
||||
.parents('.wpsp-parent-field')
|
||||
.attr('data-type')
|
||||
);
|
||||
|
||||
fileFrame.close();
|
||||
});
|
||||
|
||||
fileFrame.open();
|
||||
}
|
||||
);
|
||||
|
||||
$(document).on('click', '.aiosrs-image-remove', function (e) {
|
||||
e.preventDefault();
|
||||
const parent = $(this).closest(
|
||||
'.bsf-aiosrs-schema-custom-text-wrap, .aiosrs-pro-custom-field-image'
|
||||
);
|
||||
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 = '';
|
||||
});
|
||||
})(jQuery);
|
||||
@@ -1,147 +0,0 @@
|
||||
/* 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);
|
||||
@@ -1,26 +0,0 @@
|
||||
/* 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' );
|
||||
}
|
||||
);
|
||||
} );
|
||||
@@ -1,783 +0,0 @@
|
||||
/* eslint-env jquery */
|
||||
(function ($) {
|
||||
/**
|
||||
* AIOSRS Schema
|
||||
*
|
||||
* @class AIOSRSSchema
|
||||
* @since 1.0
|
||||
*/
|
||||
const AIOSRSSchema = {
|
||||
/**
|
||||
* Initializes a AIOSRS Schema.
|
||||
*
|
||||
* @since 1.0
|
||||
* @function init
|
||||
*/
|
||||
container: '',
|
||||
|
||||
init() {
|
||||
const self = this;
|
||||
|
||||
self.container = $(
|
||||
'#aiosrs-schema-settings, #aiosrs-pro-custom-fields'
|
||||
);
|
||||
|
||||
// Init backgrounds.
|
||||
$(document).ready(function () {
|
||||
$('.select2-class').select2();
|
||||
const selectOption = ['Site Meta', 'Post Meta (Basic Fields)'];
|
||||
const customOptionGroup = $('#bsf-aiosrs-schema-type').val();
|
||||
if ('custom-markup' === customOptionGroup) {
|
||||
for (let i = 0; i < selectOption.length; i++) {
|
||||
$(
|
||||
'#bsf-aiosrs-custom-markup-custom-markup optgroup[label="' +
|
||||
selectOption[i] +
|
||||
'"]'
|
||||
).remove();
|
||||
}
|
||||
}
|
||||
const customMarkupSchemId = $(
|
||||
'#custom-schema-schema-field'
|
||||
).val();
|
||||
if (customMarkupSchemId) {
|
||||
for (let i = 0; i < selectOption.length; i++) {
|
||||
$(
|
||||
'#custom-markup-' +
|
||||
customMarkupSchemId +
|
||||
'-custom-markup-connected optgroup[label="' +
|
||||
selectOption[i] +
|
||||
'"]'
|
||||
).remove();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
self.container.on(
|
||||
'change',
|
||||
'select.bsf-aiosrs-schema-meta-field',
|
||||
function () {
|
||||
const selfFun = $(this),
|
||||
parent = selfFun.parent(),
|
||||
value = selfFun.val();
|
||||
|
||||
const textwrapperCustom = parent.find(
|
||||
'.bsf-aiosrs-schema-custom-text-wrap'
|
||||
);
|
||||
if ('custom-text' === value) {
|
||||
textwrapperCustom.removeClass('bsf-hidden-field');
|
||||
} else if (
|
||||
!textwrapperCustom.hasClass('bsf-hidden-field')
|
||||
) {
|
||||
textwrapperCustom.addClass('bsf-hidden-field');
|
||||
}
|
||||
|
||||
const textWrapperFixed = parent.find(
|
||||
'.bsf-aiosrs-schema-fixed-text-wrap'
|
||||
);
|
||||
if ('fixed-text' === value) {
|
||||
textWrapperFixed.removeClass('bsf-hidden-field');
|
||||
} else if (!textWrapperFixed.hasClass('bsf-hidden-field')) {
|
||||
textWrapperFixed.addClass('bsf-hidden-field');
|
||||
}
|
||||
|
||||
const specificMetaWrapper = parent.find(
|
||||
'.bsf-aiosrs-schema-specific-field-wrap'
|
||||
);
|
||||
if ('specific-field' === value) {
|
||||
specificMetaWrapper.removeClass('bsf-hidden-field');
|
||||
} else if (
|
||||
!specificMetaWrapper.hasClass('bsf-hidden-field')
|
||||
) {
|
||||
specificMetaWrapper.addClass('bsf-hidden-field');
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
self.container.on(
|
||||
'change',
|
||||
'.bsf-aiosrs-schema-row-rating-type select.bsf-aiosrs-schema-meta-field',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
$(this)
|
||||
.closest('.bsf-aiosrs-schema-table')
|
||||
.find('.bsf-aiosrs-schema-row')
|
||||
.css('display', '');
|
||||
if ('accept-user-rating' === $(this).val()) {
|
||||
const reviewCountWrap = $(this)
|
||||
.closest('.bsf-aiosrs-schema-row')
|
||||
.next('.bsf-aiosrs-schema-row'),
|
||||
name = reviewCountWrap
|
||||
.find('.bsf-aiosrs-schema-meta-field')
|
||||
.attr('name');
|
||||
|
||||
const selectedSchemaType = jQuery(
|
||||
'.bsf-aiosrs-review-schema-type'
|
||||
).val();
|
||||
if (selectedSchemaType) {
|
||||
const prepareName =
|
||||
'bsf-aiosrs-review[' +
|
||||
selectedSchemaType +
|
||||
'-review-count]';
|
||||
|
||||
if (name.indexOf(prepareName) >= 0) {
|
||||
reviewCountWrap.hide();
|
||||
}
|
||||
}
|
||||
|
||||
if (name.indexOf('[review-count]') >= 0) {
|
||||
reviewCountWrap.hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
self.container
|
||||
.find('select.bsf-aiosrs-schema-meta-field')
|
||||
.trigger('change');
|
||||
|
||||
$('select.bsf-aiosrs-schema-select2').each(function (index, el) {
|
||||
self.init_target_rule_select2(el);
|
||||
});
|
||||
|
||||
self.container.on(
|
||||
'click',
|
||||
'.bsf-repeater-add-new-btn',
|
||||
function (event) {
|
||||
event.preventDefault();
|
||||
self.add_new_repeater($(this));
|
||||
self.prepare_event_schmea_fields();
|
||||
}
|
||||
);
|
||||
|
||||
self.container.on('click', '.bsf-repeater-close', function (event) {
|
||||
event.preventDefault();
|
||||
self.add_remove_repeater($(this));
|
||||
});
|
||||
|
||||
self.schemaTypeDependency();
|
||||
self.bindTooltip();
|
||||
if (!$('body').hasClass('post-type-aiosrs-schema')) {
|
||||
self.field_validation();
|
||||
}
|
||||
},
|
||||
field_validation() {
|
||||
$(
|
||||
'.wpsp-custom-field-connect, .wpsp-field-close, .bsf-aiosrs-schema-meta-field, image-field-wrap, .aiosrs-pro-custom-field, .wpsp-custom-field-connect'
|
||||
).on('click focus change', function () {
|
||||
$('.bsf-aiosrs-schema-type-wrap').each(function (
|
||||
index,
|
||||
repeater
|
||||
) {
|
||||
let fieldValue = $(repeater)
|
||||
.find('.wpsp-default-hidden-value')
|
||||
.val();
|
||||
const requiredPath = $(repeater)
|
||||
.parents('.bsf-aiosrs-schema-row-content')
|
||||
.prev();
|
||||
if (undefined !== fieldValue) {
|
||||
fieldValue = fieldValue.trim();
|
||||
if (fieldValue) {
|
||||
if ($('body').hasClass('block-editor-page')) {
|
||||
if (
|
||||
!$(repeater).find(
|
||||
'.wpsp-required-error-field'
|
||||
).length
|
||||
) {
|
||||
let metaField;
|
||||
switch (fieldValue) {
|
||||
case 'post_title':
|
||||
metaField = $(
|
||||
'.editor-post-title__input'
|
||||
).val();
|
||||
break;
|
||||
case 'post_content':
|
||||
metaField =
|
||||
$(
|
||||
'p.block-editor-rich-text__editable'
|
||||
).text().length > 1
|
||||
? $(
|
||||
'p.block-editor-rich-text__editable'
|
||||
).text()
|
||||
: '';
|
||||
break;
|
||||
case 'post_excerpt':
|
||||
metaField = $(
|
||||
'.components-textarea-control__input'
|
||||
).val();
|
||||
break;
|
||||
case 'featured_img':
|
||||
if (
|
||||
'Set featured image' ===
|
||||
$(
|
||||
'.editor-post-featured-image__toggle'
|
||||
).text()
|
||||
) {
|
||||
metaField = '';
|
||||
} else {
|
||||
metaField = $(
|
||||
'.components-responsive-wrapper__content'
|
||||
).attr('src');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
requiredPath.removeClass(
|
||||
'wpsp-required-error-field'
|
||||
);
|
||||
requiredPath
|
||||
.find('label')
|
||||
.removeClass(
|
||||
'wpsp-required-error-field'
|
||||
);
|
||||
}
|
||||
|
||||
if (undefined !== metaField) {
|
||||
if ('' !== metaField) {
|
||||
requiredPath.removeClass(
|
||||
'wpsp-required-error-field'
|
||||
);
|
||||
requiredPath
|
||||
.find('label')
|
||||
.removeClass(
|
||||
'wpsp-required-error-field'
|
||||
);
|
||||
} else if (
|
||||
requiredPath.find('.required')
|
||||
.length
|
||||
) {
|
||||
requiredPath
|
||||
.find('label')
|
||||
.addClass(
|
||||
'wpsp-required-error-field'
|
||||
);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
requiredPath.removeClass(
|
||||
'wpsp-required-error-field'
|
||||
);
|
||||
requiredPath
|
||||
.find('label')
|
||||
.removeClass(
|
||||
'wpsp-required-error-field'
|
||||
);
|
||||
}
|
||||
} else {
|
||||
requiredPath.removeClass(
|
||||
'wpsp-required-error-field'
|
||||
);
|
||||
requiredPath
|
||||
.find('label')
|
||||
.removeClass('wpsp-required-error-field');
|
||||
}
|
||||
} else if (requiredPath.find('.required').length) {
|
||||
requiredPath
|
||||
.find('label')
|
||||
.addClass('wpsp-required-error-field');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
hide_review_count() {
|
||||
$(this)
|
||||
.closest('.bsf-aiosrs-schema-table')
|
||||
.find('.bsf-aiosrs-schema-row')
|
||||
.css('display', '');
|
||||
if ('accept-user-rating' === $(this).val()) {
|
||||
const reviewCountWrap = $(this)
|
||||
.closest('.bsf-aiosrs-schema-row')
|
||||
.next('.bsf-aiosrs-schema-row'),
|
||||
name = reviewCountWrap
|
||||
.find('.bsf-aiosrs-schema-meta-field')
|
||||
.attr('name');
|
||||
|
||||
const selectedSchemaType = jQuery(
|
||||
'.bsf-aiosrs-review-schema-type'
|
||||
).val();
|
||||
if (selectedSchemaType) {
|
||||
const prepareName =
|
||||
'bsf-aiosrs-review[' +
|
||||
selectedSchemaType +
|
||||
'-review-count]';
|
||||
|
||||
if (name.indexOf(prepareName) >= 0) {
|
||||
reviewCountWrap.hide();
|
||||
}
|
||||
}
|
||||
|
||||
if (name.indexOf('[review-count]') >= 0) {
|
||||
reviewCountWrap.hide();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
add_new_repeater(selector) {
|
||||
const self = 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(
|
||||
'.bsf-aiosrs-schema-custom-text-wrap, .bsf-aiosrs-schema-specific-field-wrap'
|
||||
)
|
||||
.each(function () {
|
||||
if (!$(this).hasClass('bsf-hidden-field')) {
|
||||
$(this).addClass('bsf-hidden-field');
|
||||
}
|
||||
});
|
||||
|
||||
template
|
||||
.find('select.bsf-aiosrs-schema-meta-field')
|
||||
.each(function () {
|
||||
$(this).val('none');
|
||||
|
||||
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
|
||||
.find(
|
||||
'input, textarea, select:not(.bsf-aiosrs-schema-meta-field)'
|
||||
)
|
||||
.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.find('span.select2-container').each(function () {
|
||||
$(this).remove();
|
||||
});
|
||||
|
||||
template.insertBefore(selector);
|
||||
template
|
||||
.find('select.bsf-aiosrs-schema-select2')
|
||||
.each(function (index, el) {
|
||||
self.init_target_rule_select2(el);
|
||||
});
|
||||
|
||||
AIOSRSSchema.init_date_time_fields();
|
||||
},
|
||||
|
||||
add_remove_repeater(selector) {
|
||||
const 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();
|
||||
|
||||
if ('aiosrs-pro-custom-fields' === this.container.attr('id')) {
|
||||
// Reset index to avoid duplicate names.
|
||||
parentWrap
|
||||
.find('> .aiosrs-pro-repeater-table-wrap')
|
||||
.each(function (wrapIndex, repeaterWap) {
|
||||
$(repeaterWap).each(function (
|
||||
elementIndex,
|
||||
element
|
||||
) {
|
||||
$(element)
|
||||
.find(
|
||||
'input, textarea, select:not(.bsf-aiosrs-schema-meta-field)'
|
||||
)
|
||||
.each(function (elIndex, el) {
|
||||
const fieldName =
|
||||
'undefined' !==
|
||||
typeof $(el).attr('name')
|
||||
? $(el)
|
||||
.attr('name')
|
||||
.replace(
|
||||
/\[\d+]/,
|
||||
'[' +
|
||||
wrapIndex +
|
||||
']'
|
||||
)
|
||||
: '';
|
||||
$(el).attr('name', fieldName);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
bindTooltip() {
|
||||
// Call Tooltip
|
||||
$('.bsf-aiosrs-schema-heading-help').tooltip({
|
||||
content() {
|
||||
return $(this).prop('title');
|
||||
},
|
||||
tooltipClass: 'bsf-aiosrs-schema-ui-tooltip',
|
||||
position: {
|
||||
my: 'center top',
|
||||
at: 'center bottom+10',
|
||||
},
|
||||
hide: {
|
||||
duration: 200,
|
||||
},
|
||||
show: {
|
||||
duration: 200,
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
schemaTypeDependency() {
|
||||
const container = this.container;
|
||||
this.container.on(
|
||||
'change',
|
||||
'select[name="bsf-aiosrs-schema-type"]',
|
||||
function () {
|
||||
container
|
||||
.find('.bsf-aiosrs-schema-meta-wrap')
|
||||
.css('display', 'none');
|
||||
const schemaType = $(this).val();
|
||||
if (
|
||||
'undefined' !== typeof schemaType &&
|
||||
'' !== schemaType
|
||||
) {
|
||||
container
|
||||
.find('#bsf-' + schemaType + '-schema-meta-wrap')
|
||||
.css('display', '');
|
||||
}
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
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_Rating.specified_field,
|
||||
q: params.term, // search term
|
||||
page: params.page,
|
||||
action: 'bsf_get_specific_meta_fields',
|
||||
};
|
||||
},
|
||||
processResults(data) {
|
||||
return {
|
||||
results: data,
|
||||
};
|
||||
},
|
||||
cache: true,
|
||||
},
|
||||
minimumInputLength: 2,
|
||||
});
|
||||
},
|
||||
|
||||
get_review_item_type_html(itemType) {
|
||||
jQuery
|
||||
.post({
|
||||
url: ajaxurl,
|
||||
data: {
|
||||
action: 'fetch_item_type_html',
|
||||
itemType,
|
||||
nonce: AIOSRS_Rating.security,
|
||||
post_id: jQuery('#post_ID').val(),
|
||||
},
|
||||
})
|
||||
.done(function (response) {
|
||||
$('.bsf-review-item-type-field').remove();
|
||||
$(response).insertAfter(
|
||||
jQuery('#bsf-aiosrs-review-schema-type')
|
||||
.parent()
|
||||
.parent()
|
||||
.closest('tr')
|
||||
);
|
||||
$('select.bsf-aiosrs-schema-select2').each(function (
|
||||
index,
|
||||
el
|
||||
) {
|
||||
AIOSRSSchema.init_target_rule_select2(el);
|
||||
});
|
||||
|
||||
const itemSpecificType =
|
||||
'.bsf-aiosrs-review-' + itemType + '-rating';
|
||||
$(itemSpecificType).each(function () {
|
||||
$(this)
|
||||
.closest('.bsf-aiosrs-schema-table')
|
||||
.find('.bsf-aiosrs-schema-row')
|
||||
.css('display', '');
|
||||
if ('accept-user-rating' === $(this).val()) {
|
||||
const reviewCountWrap = $(this)
|
||||
.closest('.bsf-aiosrs-schema-row')
|
||||
.next('.bsf-aiosrs-schema-row'),
|
||||
name = reviewCountWrap
|
||||
.find('.bsf-aiosrs-schema-meta-field')
|
||||
.attr('name');
|
||||
|
||||
const selectedSchemaType = jQuery(
|
||||
'.bsf-aiosrs-review-schema-type'
|
||||
).val();
|
||||
if (selectedSchemaType) {
|
||||
const prepareName =
|
||||
'bsf-aiosrs-review[' +
|
||||
selectedSchemaType +
|
||||
'-review-count]';
|
||||
|
||||
if (name.indexOf(prepareName) >= 0) {
|
||||
reviewCountWrap.hide();
|
||||
}
|
||||
}
|
||||
|
||||
if (name.indexOf('[review-count]') >= 0) {
|
||||
reviewCountWrap.hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
AIOSRSSchema.init_date_time_fields();
|
||||
AIOSRSSchema.prepare_event_schmea_fields();
|
||||
})
|
||||
.fail(function () { });
|
||||
},
|
||||
|
||||
prepare_event_schmea_fields() {
|
||||
$(
|
||||
'.wpsp-dropdown-event-status, .wpsp-dropdown-bsf-aiosrs-event-event-status'
|
||||
).change(function () {
|
||||
const parent = $(this).parents(
|
||||
'.bsf-aiosrs-schema-meta-wrap, .aiosrs-pro-meta-fields-wrap'
|
||||
);
|
||||
|
||||
parent
|
||||
.find(
|
||||
'td.wpsp-event-status-rescheduled, td.bsf-aiosrs-review-bsf-aiosrs-event-previous-date'
|
||||
)
|
||||
.hide();
|
||||
if (!this.value) {
|
||||
this.value = 'EventScheduled';
|
||||
}
|
||||
|
||||
if ('EventRescheduled' === this.value) {
|
||||
parent
|
||||
.find(
|
||||
'td.wpsp-event-status-rescheduled, td.bsf-aiosrs-review-bsf-aiosrs-event-previous-date'
|
||||
)
|
||||
.show();
|
||||
}
|
||||
|
||||
const eventStatus = $(
|
||||
'.wpsp-dropdown-event-attendance-mode, .wpsp-dropdown-bsf-aiosrs-event-event-attendance-mode'
|
||||
).val();
|
||||
|
||||
if (
|
||||
'EventMovedOnline' === this.value ||
|
||||
'OfflineEventAttendanceMode' !== eventStatus
|
||||
) {
|
||||
parent.find('td.wpsp-event-status-offline').hide();
|
||||
parent.find('td.wpsp-event-status-online').show();
|
||||
parent.find('td.wpsp-online-event-timezone').show();
|
||||
parent
|
||||
.find(
|
||||
'.wpsp-dropdown-event-attendance-mode, .wpsp-dropdown-bsf-aiosrs-event-event-attendance-mode'
|
||||
)
|
||||
.val('OnlineEventAttendanceMode');
|
||||
} else {
|
||||
parent.find('td.wpsp-event-status-offline').show();
|
||||
parent.find('td.wpsp-event-status-online').hide();
|
||||
parent.find('td.wpsp-online-event-timezone').hide();
|
||||
}
|
||||
});
|
||||
$(
|
||||
'.wpsp-dropdown-event-attendance-mode, .wpsp-dropdown-bsf-aiosrs-event-event-attendance-mode'
|
||||
).change(function () {
|
||||
const parent = $(this).parents(
|
||||
'.bsf-aiosrs-schema-meta-wrap, .aiosrs-pro-meta-fields-wrap'
|
||||
);
|
||||
parent.find('td.wpsp-event-status-rescheduled').hide();
|
||||
const eventStatus = $(
|
||||
'.wpsp-dropdown-event-status, .wpsp-dropdown-bsf-aiosrs-event-event-status'
|
||||
).val();
|
||||
|
||||
if ('EventMovedOnline' !== eventStatus) {
|
||||
parent.find('td.wpsp-event-status-offline').show();
|
||||
parent.find('td.wpsp-event-status-online').hide();
|
||||
parent.find('td.wpsp-online-event-timezone').hide();
|
||||
}
|
||||
|
||||
if ('OfflineEventAttendanceMode' !== this.value) {
|
||||
parent.find('td.wpsp-event-status-offline').hide();
|
||||
parent.find('td.wpsp-event-status-online').show();
|
||||
parent.find('td.wpsp-online-event-timezone').show();
|
||||
}
|
||||
|
||||
if ('MixedEventAttendanceMode' === this.value) {
|
||||
parent.find('td.wpsp-event-status-offline').show();
|
||||
parent.find('td.wpsp-event-status-online').show();
|
||||
parent.find('td.wpsp-online-event-timezone').show();
|
||||
}
|
||||
});
|
||||
|
||||
$(
|
||||
'.wpsp-dropdown-event-attendance-mode, .wpsp-dropdown-bsf-aiosrs-event-event-attendance-mode'
|
||||
).trigger('change');
|
||||
},
|
||||
|
||||
init_date_time_fields() {
|
||||
$(
|
||||
'.wpsp-datetime-local-field, .wpsp-date-field, .wpsp-time-duration-field'
|
||||
).each(function () {
|
||||
$(this).removeClass('hasDatepicker');
|
||||
});
|
||||
|
||||
const startDateSelectors =
|
||||
'.wpsp-date-published-date, .wpsp-datetime-local-event-start-date, .wpsp-date-start-date, .wpsp-datetime-local-start-date';
|
||||
const endDateSelectors =
|
||||
'.wpsp-date-modified-date, .wpsp-datetime-local-event-end-date, .wpsp-date-end-date, .wpsp-datetime-local-end-date';
|
||||
|
||||
$(document).on('focus', '.wpsp-time-duration-field', function () {
|
||||
$(this).timepicker({
|
||||
timeFormat: 'HH:mm:ss',
|
||||
hourMin: 0,
|
||||
hourMax: 99,
|
||||
oneLine: true,
|
||||
currentText: 'Clear',
|
||||
onSelect() {
|
||||
updateTimeFormat(this);
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on(
|
||||
'focus',
|
||||
'.wpsp-datetime-local-field, .wpsp-date-field',
|
||||
function () {
|
||||
$(this).datetimepicker({
|
||||
dateFormat: 'yy-mm-dd',
|
||||
timeFormat: 'hh:mm TT',
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
showOn: 'focus',
|
||||
showButtonPanel: true,
|
||||
closeText: 'Done',
|
||||
currentText: 'Clear',
|
||||
yearRange: '-100:+10', // last hundred year
|
||||
onClose(dateText, inst) {
|
||||
const thisEle = '#' + inst.id;
|
||||
if (jQuery(thisEle).is(startDateSelectors)) {
|
||||
$(endDateSelectors).datetimepicker(
|
||||
'option',
|
||||
'minDate',
|
||||
new Date(dateText)
|
||||
);
|
||||
} else if (jQuery(thisEle).is(endDateSelectors)) {
|
||||
$(startDateSelectors).datetimepicker(
|
||||
'option',
|
||||
'maxDate',
|
||||
new Date(dateText)
|
||||
);
|
||||
}
|
||||
jQuery(thisEle)
|
||||
.parents('.wpsp-local-fields')
|
||||
.find('.wpsp-default-hidden-value')
|
||||
.val(dateText);
|
||||
},
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
$.datepicker._gotoToday = function (id) {
|
||||
$(id).datepicker('setDate', '').datepicker('hide').blur();
|
||||
};
|
||||
|
||||
function updateTimeFormat(thisEle) {
|
||||
const durationWrap = $(thisEle).closest(
|
||||
'.aiosrs-pro-custom-field-time-duration'
|
||||
);
|
||||
const inputField = durationWrap.find('.time-duration-field');
|
||||
let value = $(thisEle).val();
|
||||
value = value.replace(/:/, 'H');
|
||||
value = value.replace(/:/, 'M');
|
||||
value = 'PT' + value + 'S';
|
||||
inputField.val(value);
|
||||
|
||||
// Post/pages related support.
|
||||
const parent = $(thisEle).parents('.wpsp-local-fields');
|
||||
parent.find('.wpsp-default-hidden-value').val(value);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
/* Initializes the AIOSRS Schema. */
|
||||
$(function () {
|
||||
AIOSRSSchema.init();
|
||||
|
||||
if (!$('body').hasClass('aiosrs-pro-setup')) {
|
||||
AIOSRSSchema.init_date_time_fields();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
let parent = $('.aiosrs-pro-meta-fields-wrap');
|
||||
parent.each(function (index, value) {
|
||||
let labelMarkup = $(value).find('.wpsp-field-label');
|
||||
let label = labelMarkup.text();
|
||||
if ('Image License' === label.trim()) {
|
||||
labelMarkup.attr('style', 'width:6%');
|
||||
}
|
||||
});
|
||||
$('#bsf-aiosrs-review-schema-type').change(function () {
|
||||
const itemVal = $(this).val().trim();
|
||||
if (!itemVal) {
|
||||
$('.bsf-review-item-type-field').remove();
|
||||
return;
|
||||
}
|
||||
AIOSRSSchema.get_review_item_type_html(itemVal);
|
||||
});
|
||||
$('#bsf-aiosrs-review-schema-type').change();
|
||||
|
||||
AIOSRSSchema.prepare_event_schmea_fields();
|
||||
});
|
||||
})(jQuery);
|
||||
@@ -1,415 +0,0 @@
|
||||
/* 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);
|
||||
@@ -1,32 +0,0 @@
|
||||
/* 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
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
.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:gold}.aiosrs-rating-wrap .aiosrs-star-rating-wrap:not(.disabled) .aiosrs-star-rating{cursor:pointer}.aiosrs-rating-wrap .success-msg{color:#0f0;margin-left:5px}
|
||||
@@ -1 +0,0 @@
|
||||
body.aiosrs-pro-license-form-open{overflow:hidden}#aiosrs-pro-license-form p{padding:5px 0}#aiosrs-pro-license-form .aiosrs-pro-license-form-overlay{background:#000;opacity:.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:#fff;position:fixed;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,.3);box-shadow:0 3px 6px rgba(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:0 0;cursor:pointer;outline:0;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;-webkit-transform:translateX(100%);transform:translateX(100%);transition:color .1s ease-in-out,background .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}.bsf-current-license-error-wp-schema-pro,.bsf-current-license-success-wp-schema-pro{display:block;margin-bottom:.5em}.bsf-current-license-error-wp-schema-pro{color:#f44336}.bsf-current-license-success-wp-schema-pro{color:green}#aiosrs-pro-license-form-btn.active{color:#3db634}#aiosrs-pro-license-form-btn.inactive{color:#f44336}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
!function(e){const s={container:"",init(){const a=this;jQuery(document).on("click",".aiosrs-rating-wrap .aiosrs-star-rating",function(s){s.preventDefault(),a.star_rating(this)}),jQuery(document).on("mouseover",".aiosrs-rating-wrap .aiosrs-star-rating",function(s){s.preventDefault(),a.hover_star_rating(this)}),jQuery(document).on("mouseout",".aiosrs-rating-wrap .aiosrs-star-rating-wrap",function(s){s.preventDefault(),e(this).hasClass("disabled")||(s=e(this).parent().find(".aiosrs-rating").text(),a.update_stars(e(this),s))})},hover_star_rating(s){var a=e(s).closest(".aiosrs-star-rating-wrap"),s=e(s).data("index");a.hasClass("disabled")||this.update_stars(a,s)},update_stars(s,a){let t=5<a?5:parseInt(a);const r=a===(t=5<a?5:a<0?0:parseInt(a))||5<a||a<0?0:1;s.find("span").each(function(s){e(this).removeClass("dashicons-star-filled dashicons-star-half dashicons-star-empty"),s<t?e(this).addClass("dashicons-star-filled"):(s===t&&r,e(this).addClass("dashicons-star-empty"))})},star_rating(s){const n=this,a=e(s).closest(".aiosrs-rating-wrap").data("schema-id"),i=e(s).closest(".aiosrs-star-rating-wrap"),t=e(s).data("index");i.hasClass("disabled")||(n.update_stars(i,t),i.addClass("disabled"),e.ajax({url:AIOSRS_Frontend.ajaxurl,type:"POST",data:{action:"aiosrs_user_rating",rating:t,schemaId:a,post_id:AIOSRS_Frontend.post_id,nonce:AIOSRS_Frontend.user_rating_nonce}}).success(function(s){var a,t,r;!0===s.success&&(a=i.next(".aiosrs-rating-summary-wrap"),t=s.rating,r=s["rating-avg"],s=s["review-count"],a.find(".aiosrs-rating").text(r),a.find(".aiosrs-rating-count").text(s),0===i.next(".success-msg").length&&i.after('<span class="success-msg">'+AIOSRS_Frontend.success_msg+"</span>"),setTimeout(function(){i.parent().find(".success-msg").remove(),i.removeClass("disabled")},5e3),n.update_stars(i,t))}))}};e(function(){s.init()})}(jQuery);
|
||||
@@ -1 +0,0 @@
|
||||
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 one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
!function(s){jQuery(document).ready(function(){s(document).on("click",".aiosrs-pro-schema-temp-wrap",function(e){e.preventDefault(),s(".aiosrs-pro-schema-temp-wrap").removeClass("selected"),s(".aiosrs-pro-setup-actions").find(".button-next").removeAttr("disabled"),s(this).addClass("selected");var e=s(this).data("schema-type"),t=s(this).data("schema-title");s(document).find(".bsf-aiosrs-schema-type").val(e),s(document).find(".bsf-aiosrs-schema-title").val(t)})})}(jQuery);
|
||||
Reference in New Issue
Block a user