first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,541 @@
#installer_repo_toolset .otgs-installer-notice,
#installer_repo_wpml .otgs-installer-notice {
border-top: none;
border-right: none;
border-bottom: none;
border-left: none; }
#installer_repo_toolset .otgs-installer-notice-info h2,
#installer_repo_wpml .otgs-installer-notice-info h2 {
margin-bottom: 0; }
li#wp-admin-bar-otgs-wpml-development, li#wp-admin-bar-otgs-wpml-development:hover, li#wp-admin-bar-otgs-wpml-development:hover .ab-item {
background-color: #C9471F !important; }
.otgs-installer-notice, .notice.otgs-installer-notice {
position: relative;
margin: 15px 0 40px;
padding: 35px 30px 30px 80px;
border-top: 1px solid #ccd0d4;
border-right: 1px solid #ccd0d4;
border-bottom: 1px solid #ccd0d4;
border-left: 4px solid #f15d30;
background: #fff url(../img/icon-warning.svg) no-repeat 25px 28px;
background-size: 32px; }
.otgs-installer-notice a,
.notice.otgs-installer-notice a {
cursor: pointer; }
.otgs-installer-notice.otgs-installer-notice-info,
.notice.otgs-installer-notice.otgs-installer-notice-info {
background-image: url(../img/icon-info.svg);
background-position-y: 50%; }
@media (max-width: 768px) {
.otgs-installer-notice.otgs-installer-notice-info,
.notice.otgs-installer-notice.otgs-installer-notice-info {
background-image: none !important; } }
.otgs-installer-notice.otgs-installer-notice-confirm,
.notice.otgs-installer-notice.otgs-installer-notice-confirm {
background-image: url(../img/icon-confirm.svg);
background-position-y: 50%; }
.otgs-installer-notice.otgs-installer-notice-confirm .otgs-installer-notice-status-item-link-unregister,
.notice.otgs-installer-notice.otgs-installer-notice-confirm .otgs-installer-notice-status-item-link-unregister {
float: right; }
@media (max-width: 768px) {
.otgs-installer-notice.otgs-installer-notice-confirm,
.notice.otgs-installer-notice.otgs-installer-notice-confirm {
background-image: none !important; } }
.otgsi_register_product_wrap .otgs-installer-notice,
.otgsi_register_product_wrap .notice.otgs-installer-notice {
background-color: #f1f1f1;
box-shadow: none; }
@media (max-width: 900px) {
.otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status,
.otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status {
display: block !important; }
.otgsi_register_product_wrap .otgs-installer-notice .otgs-installer-notice-status-item-link-unregister,
.otgsi_register_product_wrap .notice.otgs-installer-notice .otgs-installer-notice-status-item-link-unregister {
display: block;
margin: 15px 0 0 !important;
float: none; } }
.otgs-installer-notice .otgs-installer-notice-content, .notice.otgs-installer-notice .otgs-installer-notice-content {
color: #666; }
.otgs-installer-notice .otgs-installer-notice-content h2, .notice.otgs-installer-notice .otgs-installer-notice-content h2 {
color: #666;
margin-top: 0; }
.otgs-installer-notice .otgs-installer-notice-content h2 .otgs-installer-notice-link-register, .notice.otgs-installer-notice .otgs-installer-notice-content h2 .otgs-installer-notice-link-register {
font-size: 14px;
color: #f15d30;
float: right;
text-decoration: underline; }
.otgs-installer-notice .otgs-installer-notice-content h2 .otgs-installer-notice-link-register:hover, .notice.otgs-installer-notice .otgs-installer-notice-content h2 .otgs-installer-notice-link-register:hover {
text-decoration: none; }
.otgs-installer-notice .otgs-installer-notice-status, .notice.otgs-installer-notice .otgs-installer-notice-status {
display: flex;
align-items: center;
margin-top: 15px; }
.otgs-installer-notice .otgs-installer-notice-status-item, .notice.otgs-installer-notice .otgs-installer-notice-status-item {
margin-right: 20px !important; }
.otgs-installer-notice .otgs-installer-notice-status-item-btn, .notice.otgs-installer-notice .otgs-installer-notice-status-item-btn {
display: inline-block;
color: #fff;
text-decoration: none;
font-weight: 600;
border-radius: 5px;
padding: 9px 15px;
background-color: #666; }
.otgs-installer-notice .otgs-installer-notice-status-item-btn:hover, .notice.otgs-installer-notice .otgs-installer-notice-status-item-btn:hover {
color: #fff;
background-color: #333; }
@media (max-width: 639px) {
.otgs-installer-notice .otgs-installer-notice-status-item-btn, .notice.otgs-installer-notice .otgs-installer-notice-status-item-btn {
margin-bottom: 15px; } }
.otgs-installer-notice .otgs-installer-notice-status-item-link, .notice.otgs-installer-notice .otgs-installer-notice-status-item-link {
position: relative;
color: #f15d30;
font-weight: 600; }
.otgs-installer-notice .otgs-installer-notice-status-item-link-unregister, .notice.otgs-installer-notice .otgs-installer-notice-status-item-link-unregister {
float: right;
color: #aaa;
text-decoration: underline; }
.otgs-installer-notice .otgs-installer-notice-status-item-link-unregister:hover, .notice.otgs-installer-notice .otgs-installer-notice-status-item-link-unregister:hover {
text-decoration: none; }
.otgs-installer-notice .otgs-installer-notice-status-item-link-refresh:after, .notice.otgs-installer-notice .otgs-installer-notice-status-item-link-refresh:after {
position: absolute;
top: 2px;
content: '';
width: 15px;
height: 16px;
margin-left: 8px;
background: url(../img/icon-refresh.png) no-repeat 0 0; }
.otgs-installer-notice .otgs-installer-notice-status-item-link:hover, .notice.otgs-installer-notice .otgs-installer-notice-status-item-link:hover {
color: #f15d30;
opacity: 0.8; }
@media (max-width: 639px) {
.otgs-installer-notice .otgs-installer-notice-status-item-link, .notice.otgs-installer-notice .otgs-installer-notice-status-item-link {
display: block; } }
.otgs-installer-notice .otgs-installer-notice-status-item + span.spinner, .notice.otgs-installer-notice .otgs-installer-notice-status-item + span.spinner {
margin: 0 15px 0 0; }
@media (max-width: 639px) {
.otgs-installer-notice .otgs-installer-notice-status, .notice.otgs-installer-notice .otgs-installer-notice-status {
display: block; }
.otgs-installer-notice .otgs-installer-notice-status p, .notice.otgs-installer-notice .otgs-installer-notice-status p {
margin-bottom: 0; }
.otgs-installer-notice .otgs-installer-notice-status a, .notice.otgs-installer-notice .otgs-installer-notice-status a {
margin-left: 0; } }
.otgs-installer-notice.otgs-installer-notice-wpml, .notice.otgs-installer-notice.otgs-installer-notice-wpml {
background-image: url(../img/icon-wpml-warning.svg); }
.otgs-installer-notice.otgs-installer-notice-wpml:before, .notice.otgs-installer-notice.otgs-installer-notice-wpml:before {
content: '';
position: absolute;
left: -4px;
top: 0;
bottom: 0;
width: 4px;
background: linear-gradient(to bottom, #27ad95 0%, #2782ad 100%); }
.otgs-installer-notice.otgs-installer-notice-wpml.otgs-installer-notice-info, .otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-wpml.otgs-installer-notice-info, .notice.otgs-installer-notice.otgs-installer-notice-wpml.otgs-installer-notice-info, .otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-wpml.otgs-installer-notice-info {
background-image: url(../img/icon-wpml-info.svg) !important; }
.otgs-installer-notice.otgs-installer-notice-wpml.otgs-installer-notice-confirm, .otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-wpml.otgs-installer-notice-confirm, .notice.otgs-installer-notice.otgs-installer-notice-wpml.otgs-installer-notice-confirm, .otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-wpml.otgs-installer-notice-confirm {
background-image: url(../img/icon-wpml-confirm.svg); }
.otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status-item-link, .notice.otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status-item-link {
color: #33879e; }
.otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status-item-link-refresh:after, .notice.otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status-item-link-refresh:after {
background-image: url(../img/icon-wpml-refresh.png); }
.otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-wpml, .otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-wpml {
background-image: url(../img/icon-wpml-warning.svg); }
.otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-wpml:before, .otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-wpml:before {
display: none; }
.otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-content h2, .otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-content h2 {
margin-bottom: 5px; }
.otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-content h2 .otgs-installer-notice-link-register, .otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-content h2 .otgs-installer-notice-link-register {
color: #33879e; }
.otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status, .otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status {
display: block; }
.otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status p, .otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status p {
font-weight: 700;
color: #666;
margin: 20px 0 5px !important; }
.otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status .otgs-installer-notice-status-item-btn, .otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status .otgs-installer-notice-status-item-btn {
background-color: #ddd;
color: #666; }
.otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status .otgs-installer-notice-status-item-btn-refresh, .otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status .otgs-installer-notice-status-item-btn-refresh {
padding: 9px 40px 9px 15px;
background: #ddd url(../img/icon-notice-refresh.png) no-repeat 94% 50%; }
.otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status .otgs-installer-notice-status-item-btn-refresh strong, .otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status .otgs-installer-notice-status-item-btn-refresh strong {
display: inline-block;
padding-right: 15px;
border-right: 1px solid #ccc; }
.otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status .otgs-installer-notice-status-item-btn-refresh:hover, .otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status .otgs-installer-notice-status-item-btn-refresh:hover {
background-image: url(../img/icon-white-refresh.png); }
.otgsi_register_product_wrap .otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status .otgs-installer-notice-status-item-btn:hover, .otgsi_register_product_wrap .notice.otgs-installer-notice.otgs-installer-notice-wpml .otgs-installer-notice-status .otgs-installer-notice-status-item-btn:hover {
background-color: #666;
color: #fff; }
.otgs-installer-notice.otgs-installer-notice-wpml.otgs-installer-notice-connection-issues .otgs-installer-notice-status a, .notice.otgs-installer-notice.otgs-installer-notice-wpml.otgs-installer-notice-connection-issues .otgs-installer-notice-status a {
color: #33879e; }
@media (max-width: 768px) {
.otgs-installer-notice.otgs-installer-notice-wpml, .notice.otgs-installer-notice.otgs-installer-notice-wpml {
background-image: none; } }
.otgs-installer-notice.otgs-installer-notice-refund, .notice.otgs-installer-notice.otgs-installer-notice-refund {
padding: 35px 30px 30px 115px;
position: relative;
display: flex;
border: 0;
background: #c9471f url(../img/icon-refund-info.png) no-repeat 25px 25px;
color: #fff; }
.otgs-installer-notice.otgs-installer-notice-refund:before, .notice.otgs-installer-notice.otgs-installer-notice-refund:before {
display: none; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-content, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-content {
color: #fff; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-content h2, .otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-content p, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-content h2, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-content p {
color: #fff; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status-item-btn, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status-item-btn {
color: #c9471f;
padding: 9px 40px 9px 15px;
background: #fff url(../img/icon-refund-refresh.png) no-repeat 94% 50%; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status-item-btn strong, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status-item-btn strong {
display: inline-block;
padding-right: 15px;
border-right: 1px solid #efc7bb; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status-item-btn:hover, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status-item-btn:hover {
opacity: 0.8;
color: #c9471f; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status-item-link-unregister, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status-item-link-unregister {
color: #fff;
opacity: 0.55;
margin: 0 0 0 auto !important;
text-decoration: underline; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status-item-link-unregister:hover, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status-item-link-unregister:hover {
text-decoration: none; }
.otgs-installer-notice.otgs-installer-notice-refund .notice-dismiss:before, .notice.otgs-installer-notice.otgs-installer-notice-refund .notice-dismiss:before {
color: #fff; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-link, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-link {
color: #fff; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-btn, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-btn {
background-image: none;
padding-left: 30px;
padding-right: 30px; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper {
display: flex;
align-items: center; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper input[type="text"], .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper input[type="text"] {
line-height: 37px;
height: 37px;
border: 0;
padding: 0 10px;
background-color: rgba(255, 255, 255, 0.6);
color: #fff !important;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
box-shadow: none; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper input[type="text"]::placeholder, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper input[type="text"]::placeholder {
color: #fff;
opacity: 1; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper input[type="text"] + a, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper input[type="text"] + a {
border-top-left-radius: 0;
border-bottom-left-radius: 0; }
.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-link-unregister, .notice.otgs-installer-notice.otgs-installer-notice-refund .otgs-installer-notice-status + .otgs-installer-notice-status .otgs-installer-notice-status-item-link-unregister {
margin-top: 45px !important; }
@media (max-width: 768px) {
.otgs-installer-notice.otgs-installer-notice-refund, .notice.otgs-installer-notice.otgs-installer-notice-refund {
padding: 25px;
background-image: none; } }
.otgs-installer-notice.otgs-installer-notice-expired, .notice.otgs-installer-notice.otgs-installer-notice-expired {
padding: 35px 30px 20px 115px;
position: relative;
display: block;
border: 0;
background: #c9471f url(../img/icon-refund-info.png) no-repeat 25px 25px;
color: #fff; }
.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd, .notice.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd {
padding: 30px;
background: linear-gradient(90deg, #ED793E 0%, #FF4642 100%);
border-radius: 5px; }
.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content, .notice.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content {
display: grid;
grid-template-columns: auto 200px; }
.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__one, .notice.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__one {
position: relative;
margin: 0 30px 0 0;
padding: 0 30px 0 0;
border-right: 1px solid rgba(255, 255, 255, 0.3); }
.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__one h2, .notice.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__one h2 {
margin-bottom: .3em;
padding: .2em 0;
background: url(../img/icon-refund-info-notice.svg) no-repeat 0 50%;
background-size: 20px;
padding-left: 30px; }
.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__one .otgs-installer-notice-status-item-link-unregister, .notice.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__one .otgs-installer-notice-status-item-link-unregister {
position: absolute;
bottom: 8px;
right: 30px; }
@media (max-width: 1100px) {
.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__one .otgs-installer-notice-status-item-link-unregister, .notice.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__one .otgs-installer-notice-status-item-link-unregister {
display: block;
position: relative;
float: none;
margin: 15px 0 0 0 !important;
bottom: auto;
right: 0; } }
@media (max-width: 1100px) {
.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__one .otgs-installer-notice-status, .notice.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__one .otgs-installer-notice-status {
display: block; } }
.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__two, .notice.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__two {
text-align: center;
align-self: center; }
.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__two h3, .notice.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__two h3 {
font-size: 1em;
color: #fff;
margin: 0 0 1em; }
.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__two a.update_site_key_js, .notice.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__two a.update_site_key_js {
display: inline-block;
font-weight: 500;
color: #fff;
border: 1px solid #fff;
border-radius: 5px;
padding: 8px 15px 8px 35px;
background: url(../img/icon-white-refresh.png) no-repeat 10px 45%; }
.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__two a.update_site_key_js:hover, .notice.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__two a.update_site_key_js:hover {
background-color: rgba(255, 255, 255, 0.3);
border-color: rgba(255, 255, 255, 0.05); }
@media (max-width: 800px) {
.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content, .notice.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content {
display: block; }
.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__one, .notice.otgs-installer-notice.otgs-installer-notice-expired.otgs-installer-notice-expired-gd .otgs-installer-notice-content__one {
margin: 0 0 30px 0;
padding: 0 0 10px 0;
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.3); } }
.otgs-installer-notice.otgs-installer-notice-expired:before, .notice.otgs-installer-notice.otgs-installer-notice-expired:before {
display: none; }
.otgs-installer-notice.otgs-installer-notice-expired .spinner, .notice.otgs-installer-notice.otgs-installer-notice-expired .spinner {
background-image: url(../img/spinner-white.gif); }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content {
color: #fff; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content h2, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content h2 {
color: #fff; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content h2 span.ico, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content h2 span.ico {
margin-right: 10px;
animation: spin 2s infinite linear; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content h2 .update_site_key_js, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content h2 .update_site_key_js {
display: inline-block;
text-indent: -9999px;
width: 20px;
height: 20px;
opacity: 0.8;
background: url(../img/icon-white-refresh.png) no-repeat 50% 50%;
margin-left: 10px; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content h2 .update_site_key_js:hover, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content h2 .update_site_key_js:hover {
opacity: 1; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content h2 + p, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content h2 + p {
color: #fff;
opacity: 0.7; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content h2 span.spinner, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-content h2 span.spinner {
margin-top: 0 !important;
margin-bottom: 0 !important; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status {
margin-top: 10px;
color: #fff; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status p, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status p {
color: #fff !important; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-btn, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-btn {
color: #333 !important;
background-color: #fff !important;
padding: 9px 15px;
min-width: 60px;
text-align: center; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-btn strong, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-btn strong {
display: inline-block;
padding-right: 15px;
border-right: 1px solid #efc7bb; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-btn:hover, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-btn:hover {
opacity: 0.8;
color: #c9471f; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-link, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-link {
color: #fff;
text-decoration: underline; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper {
display: flex;
align-items: center; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper input[type="text"], .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper input[type="text"] {
line-height: 37px;
height: 37px;
border: 0;
padding: 0 10px;
background-color: rgba(255, 255, 255, 0.6);
color: #fff !important;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
box-shadow: none; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper input[type="text"]::placeholder, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper input[type="text"]::placeholder {
color: #fff;
opacity: 1; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper input[type="text"] + a, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status .otgs-installer-notice-status-item-wrapper input[type="text"] + a {
border-top-left-radius: 0;
border-bottom-left-radius: 0; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status-item-link-unregister, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status-item-link-unregister {
color: #fff;
opacity: 0.55;
margin: -15px 0 0 auto !important;
text-decoration: underline; }
.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status-item-link-unregister:hover, .notice.otgs-installer-notice.otgs-installer-notice-expired .otgs-installer-notice-status-item-link-unregister:hover {
text-decoration: none; }
.otgs-installer-notice.otgs-installer-notice-expired .notice-dismiss:before, .notice.otgs-installer-notice.otgs-installer-notice-expired .notice-dismiss:before {
color: #fff; }
@media (max-width: 768px) {
.otgs-installer-notice.otgs-installer-notice-expired, .notice.otgs-installer-notice.otgs-installer-notice-expired {
padding: 25px;
background-image: none; } }
.otgs-installer-notice.otgs-installer-notice-registered, .notice.otgs-installer-notice.otgs-installer-notice-registered {
padding: 30px 30px 30px 115px;
margin-top: 0;
position: relative;
display: flex;
border: 0;
background-image: none; }
.otgs-installer-notice.otgs-installer-notice-registered:before, .notice.otgs-installer-notice.otgs-installer-notice-registered:before {
display: none; }
.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content, .notice.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content {
width: 100%; }
.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-btn, .notice.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-btn {
color: #c9471f;
padding: 9px 40px 9px 15px;
background: #ddd url(../img/icon-notice-refresh.png) no-repeat 94% 50%; }
.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-btn strong, .notice.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-btn strong {
display: inline-block;
padding-right: 15px;
border-right: 1px solid #efc7bb; }
.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-btn:hover, .notice.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-btn:hover {
opacity: 0.8;
color: #c9471f; }
@media (max-width: 1240px) {
.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-btn, .notice.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-btn {
margin-top: 15px; } }
.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-link-unregister, .notice.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-link-unregister {
opacity: 0.55;
margin: 5px 0 0 auto !important;
text-decoration: underline; }
.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-link-unregister:hover, .notice.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-link-unregister:hover {
text-decoration: none; }
@media (max-width: 1240px) {
.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-link-unregister, .notice.otgs-installer-notice.otgs-installer-notice-registered .otgs-installer-notice-content .otgs-installer-notice-status-item-link-unregister {
margin-top: 20px !important;
float: right; } }
@media (max-width: 768px) {
.otgs-installer-notice.otgs-installer-notice-registered, .notice.otgs-installer-notice.otgs-installer-notice-registered {
padding: 25px;
background-image: none; } }
.otgs-installer-notice.otgs-installer-notice-connection-issues .otgs-installer-notice-status, .notice.otgs-installer-notice.otgs-installer-notice-connection-issues .otgs-installer-notice-status {
display: block; }
.otgs-installer-notice.otgs-installer-notice-connection-issues .otgs-installer-notice-status p:first-child, .notice.otgs-installer-notice.otgs-installer-notice-connection-issues .otgs-installer-notice-status p:first-child {
font-size: 14px;
font-weight: 600;
display: block;
margin-bottom: 0 !important; }
.otgs-installer-notice.otgs-installer-notice-connection-issues .otgs-installer-notice-status a, .notice.otgs-installer-notice.otgs-installer-notice-connection-issues .otgs-installer-notice-status a {
font-weight: 600;
color: #f15d30; }
.otgs-installer-notice.otgs-installer-notice-connection-issues .otgs-installer-notice-status a:hover, .notice.otgs-installer-notice.otgs-installer-notice-connection-issues .otgs-installer-notice-status a:hover {
opacity: 0.8; }
@media (max-width: 768px) {
.otgs-installer-notice, .notice.otgs-installer-notice {
padding: 25px;
background-image: none; } }
.notice-otgs,
.notice.notice-otgs {
box-shadow: none;
border-color: #f15d30;
background-color: #fff8e5; }
.notice-otgs p:before,
.notice.notice-otgs p:before {
content: '';
display: inline-block;
width: 25px;
height: 20px;
background: url(../img/icon-warning.svg) no-repeat 0 0;
background-size: 20px; }
.notice-otgs p a,
.notice.notice-otgs p a {
display: inline-block;
color: #f15d30;
font-weight: 600;
margin-left: 5px; }
.notice-otgs p a:hover,
.notice.notice-otgs p a:hover {
opacity: 0.8; }
.notice-otgs-refund,
.notice.notice-otgs-refund {
border-color: #ad3613;
background-color: #ca471f; }
.notice-otgs-refund p,
.notice.notice-otgs-refund p {
color: #fff; }
.notice-otgs-refund p:before,
.notice.notice-otgs-refund p:before {
background-image: url(../img/icon-refund-info-notice.svg); }
.notice-otgs-refund p a,
.notice.notice-otgs-refund p a {
color: #fff; }
.otgsi_insert_key .otgsi_site_key_form {
position: relative;
margin: 15px 10px 10px 10px;
padding: 24px 24px 30px;
background-color: #f1f1f1; }
.otgsi_insert_key .otgsi_site_key_form:before {
content: '';
position: absolute;
left: -4px;
top: 0;
bottom: 0;
width: 4px;
background: linear-gradient(to bottom, #27ad95 0%, #2782ad 100%); }
.otgsi_insert_key .otgsi_site_key_form li {
font-weight: 700;
color: #666;
margin-bottom: 10px; }
.otgsi_insert_key .otgsi_site_key_form li .otgs-installer-register-inputs {
display: block;
margin-top: 20px; }
.otgsi_insert_key .otgsi_site_key_form li .otgs-installer-register-inputs-form-wrapper {
border-radius: 5px;
border: 2px solid #2782ad;
display: inline-flex;
background-color: #fff;
margin-right: 20px;
overflow: hidden;
min-width: 300px; }
.otgsi_insert_key .otgsi_site_key_form li .otgs-installer-register-inputs-form-wrapper input {
border: none;
box-shadow: none;
padding: 0 15px 1px;
margin: 0;
height: 38px;
line-height: 36px; }
.otgsi_insert_key .otgsi_site_key_form li .otgs-installer-register-inputs-form-wrapper input[type="submit"] {
min-width: 75px;
margin-left: auto; }
.otgsi_insert_key .otgsi_site_key_form li .otgs-installer-register-inputs input[type="button"] {
border: none;
box-shadow: none;
background: none;
color: #999;
text-decoration: underline; }
.otgsi_insert_key .otgsi_site_key_form .otgs-installer-register-title {
margin-top: 0; }
.otgsi_insert_key .otgsi_site_key_form .otgs-installer-register-inputs {
margin-top: 24px;
margin-bottom: 8px; }
.otgsi_insert_key .otgsi_site_key_form .otgs-installer-register-inputs label {
font-size: 14px;
display: block;
margin-bottom: 4px;
font-weight: 700; }
.otgsi_insert_key .otgsi_site_key_form .otgs-installer-register-link a:hover, .otgsi_insert_key .otgsi_site_key_form .otgs-installer-register-link a:focus {
text-decoration: underline; }
#installer_repo_toolset .otgsi_insert_key .otgsi_site_key_form:before {
background: #f15d30; }
#installer_repo_toolset .otgsi_insert_key .otgsi_site_key_form input[type="submit"] {
background: #f15d30;
border-color: #f15d30; }
#installer_repo_toolset .otgsi_insert_key .otgsi_site_key_form a {
color: #f15d30; }

View File

@@ -0,0 +1,360 @@
.otgsi_site_key_form{
display:none;
}
.installer-status-installing, .installer-status-installed, .installer-status-updating, .installer-status-updated, .installer-status-activating, .installer-status-activated, .installer-status-success{
display: none;
}
.installer-status-installing{color: #FF9900; }
.installer-status-installed{color: #003300; font-weight: bold; }
.installer-status-updating{color: #FF9900; }
.installer-status-updated{color: #003300; font-weight: bold; }
.installer-status-installed .error-details:before,
.installer-status-updated .error-details:before{
content: "\f534";
font: 200 16px/1 dashicons;
vertical-align: text-bottom;
margin-left: 5px;
color: red;
cursor: help;
}
.installer-status-activating{color: #996666 }
.installer-status-activated{color: #333366; font-weight: bold; }
.js-status-success p{
color: #FF9900;
padding: 4px;
}
.installer-green-text{
color:#006600;
font-weight:bold;
}
.installer-red-text{
color:#b22121;
font-weight:bold;
}
.installer-footnote{
color:#3d5e69;
display:block;
float: left;
font-style: italic;
font-size: 90%;
}
.installer-products-list li{
display: inline;
margin-right: 20px;
}
.otgs_wp_installer_table a.disabled{
color:#888;
}
.otgs_wp_installer_subtable{
clear: both;
margin-left:-20px;
}
.otgs_wp_installer_subtable td p{
font-size: 92%;
}
.installer-status-error{
color: #f00;
}
.installer-status-note{
color: #6F6E6D;
font-style: italic;
}
.installer-warn-text{
color: #FF6400;
}
.installer-warn-box{
-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;border:1px solid #FF6400;background-color:#df8a48;
color: #333;
padding: 5px;
}
.installer-warn-box span.details{
font-style: italic;
color:#777;
}
.installer-error-box{
color:#962722;
margin-top: 10px;
}
.installer-error-box p{
margin: 10px 0 10px 0;
-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;border:1px solid #962722;background-color:#F5C8C6;
color: #333;
padding: 5px;
text-align: center;
}
.spinner-inline{
float: none;
display: inline-block;
visibility: visible;
}
.installer-q-icon:before{
content: '\f223' !important;
font-family: dashicons !important;
font-size: 20px;
line-height: 1;
color: #f56e28;
}
.installer-plugin-update-tr td{
padding-left:3px !important;
}
.otgsi_yellow_bg{
background-color: #f2f46b;
}
.otgs_wp_installer_table_compact{
width:480px;
border: solid 1px #999;
padding:10px;
border-radius: 5px;
}
.installer-plugins-list-compact{
background-color: #fff;
border-collapse: collapse;
border:solid 1px #C1DAD7;
width:100%;
}
.installer-plugins-list-compact tr th{
padding-top:3px;
background-color: #ccc;
}
.installer-plugins-list-compact tr{
background-color: #ddd;
}
.installer-plugins-list-compact tr.even{
background-color: #eee;
}
.installer-plugins-list-compact td{
padding:2px 5px 2px 5px;
border-right: 1px solid #C1DAD7;
border-bottom: 1px solid #C1DAD7;
}
.installer-plugins-list-compact td.twelve{
width:16px;
}
.otgs_wp_installer_table_compact .installer-status-downloading,
.otgs_wp_installer_table_compact .installer-status-downloaded,
.otgs_wp_installer_table_compact .installer-status-activating,
.otgs_wp_installer_table_compact .installer-status-activated{
display: none;
color:transparent; width: 12px; padding:2px;
}
.otgs_wp_installer_table_compact .installer-status-success,
.otgs_wp_installer_table_compact .installer-status-fail{
display: none;
}
.installer-status-success{
float: right;
color: #006600;
}
.otgs_wp_installer_table_compact .installer-status-downloading{background: url(../img/dn.gif) no-repeat center; }
.otgs_wp_installer_table_compact .installer-status-downloaded{background: url(../img/complete.png) no-repeat center;}
.otgs_wp_installer_table_compact .installer-status-activating{background: url(../img/dn.gif) no-repeat center; }
.otgs_wp_installer_table_compact .installer-status-activated{background: url(../img/complete.png) no-repeat center; }
.otgs_wp_installer_table_compact .installer-status-error{background: url(../img/icon_error.gif) no-repeat center; }
.installer_highlight{
color:#c5510b;
}
.installer_highlight_package{
background-color: #fff9c0;
}
.plugin_progress{
font-style: italic;
color: #777
}
.installer-download-progress-status{
display: none;
float:right;
color: #006600;
font-style: italic;
background: url('../img/spinner.gif') no-repeat;
padding-left:24px;
}
.installer-release-notes{
display: none;
}
.handle.extended:after{
content: "▾";
font-size: 24px;
vertical-align:bottom;
}
.installer-table-wrap table.installer-plugins{
margin-bottom: 20px;
}
td.installer_plugin_name {
width: 300px;
}
td.installer_version {
width: 100px;
}
td.installer_release_date {
width: 300px;
}
td.installer_checkbox {
width: 30px;
}
.installer-table-wrap a.handle:active,
.installer-table-wrap a.handle:focus{
outline:0;
border:none;
box-shadow: none;
}
.installer-release-notes .arrow_box {
position: relative;
background: #eee;
border: 1px solid #ccc;
}
.installer-release-notes .arrow_box:after, .installer-release-notes .arrow_box:before {
bottom: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.installer-release-notes .arrow_box:after {
border-color: rgba(238, 238, 238, 0);
border-bottom-color: #eee;
border-width: 16px;
margin-left: -16px;
}
.installer-release-notes .arrow_box:before {
border-color: rgba(204, 204, 204, 0);
border-bottom-color: #ccc;
border-width: 17px;
margin-left: -17px;
}
.installer-release-notes .arrow_box div{
margin-top:5px;
padding: 10px;
overflow-y: auto;
max-height: 400px;
}
.otgs-is-dismissible {
position: relative;
padding-right: 38px;
}
.otgs-is-dismissible .notice-dismiss {
text-decoration: none;
}
.otgs-is-dismissible p [class*="button-"] {
margin: -5px 5px;
}
.otgsi_downloads_form{
margin-top: 15px;
}
.spinner-with-text{
padding-left: 25px;
float:none;
width: auto;
}
.installer-channel-update-ok{
padding-left: 10px;
display: none;
color: #006600;
}
.installer-channel-update-fail{
padding-left: 10px;
display: none;
color: #962722;
}
.otgs_wp_installer_table .installer-repository-image {
padding: 8px 20px;
}
.remove_site_key_js:disabled,
.enter_site_key_js:disabled {
cursor: help;
}
.otgs-installer-registered span {
display: inline-block;
vertical-align: middle;
margin-bottom: .5em;
}
@media (min-width: 1400px) {
.otgs-installer-registered-buttons {
float: right;
}
}
.otgs-installer-keepuptodate small {
display: block;
margin-top: 3px;
line-height: 1.3;
}
@media (min-width: 783px) {
.otgs-installer-keepuptodate small {
-webkit-margin-start: 25px;
-moz-margin-start: 25px;
margin-inline-start: 25px;
}
}
.otgs-installer-component-setting .spinner.otgs-components-report-setting-spinner {
float: right;
}
.rtl .otgs-installer-component-setting .spinner.otgs-components-report-setting-spinner {
float: left;
}
.otgs-installer-component-privacy-policy {
margin-top: 30px;
}
.otgs-external-link:after {
font-family: dashicons!important;
content: "\A0\F504";
vertical-align: baseline;
line-height: 1;
display: inline-block;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 848 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 519 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 915 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 899 B

View File

@@ -0,0 +1,3 @@
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9 0C4 0 0 4 0 9C0 14 4 18 9 18C14 18 18 14 18 9C18 4 14 0 9 0ZM14.2 7.5L8.5 13.2C8.3 13.4 7.9 13.6 7.6 13.6C7.3 13.6 6.9 13.5 6.7 13.2L3.8 10.3C3.6 10 3.5 9.7 3.5 9.4C3.5 9.1 3.6 8.7 3.9 8.5C4.1 8.3 4.5 8.1 4.8 8.1C5.1 8.1 5.5 8.2 5.7 8.5L7.7 10.5L12.5 5.7C12.7 5.5 13.1 5.3 13.4 5.3C13.7 5.3 14.1 5.4 14.3 5.7C14.7 6.2 14.7 7 14.2 7.5Z" fill="#3EED78"/>
</svg>

After

Width:  |  Height:  |  Size: 468 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26"><path d="M13 0C5.8 0 0 5.8 0 13s5.8 13 13 13 13-5.8 13-13S20.2 0 13 0zm0 20.3c-.8 0-1.4-.6-1.4-1.4 0-.8.6-1.4 1.4-1.4.8 0 1.4.6 1.4 1.4 0 .8-.6 1.4-1.4 1.4zm1.4-6.9c0 .8-.6 1.4-1.4 1.4-.8 0-1.4-.6-1.4-1.4V7.1c0-.8.6-1.4 1.4-1.4.8 0 1.4.6 1.4 1.4v6.3z" fill="#f15d30"/></svg>

After

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 26 26" xml:space="preserve"><path fill="#f15d30" d="M13 14.8c.8 0 1.4-.6 1.4-1.4V7.1c0-.8-.6-1.4-1.4-1.4s-1.4.6-1.4 1.4v6.3c0 .8.6 1.4 1.4 1.4zM13 20.3c.8 0 1.4-.6 1.4-1.4 0-.8-.6-1.4-1.4-1.4s-1.4.6-1.4 1.4c0 .8.6 1.4 1.4 1.4z"/><path d="M13 0C5.8 0 0 5.8 0 13s5.8 13 13 13 13-5.8 13-13S20.2 0 13 0zm-1.4 18.9c0-.8.6-1.4 1.4-1.4s1.4.6 1.4 1.4c0 .8-.6 1.4-1.4 1.4s-1.4-.6-1.4-1.4zm2.8-5.5c0 .8-.6 1.4-1.4 1.4s-1.4-.6-1.4-1.4V7.1c0-.8.6-1.4 1.4-1.4s1.4.6 1.4 1.4v6.3z" fill="#fff"/></svg>

After

Width:  |  Height:  |  Size: 551 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26"><path d="M13 0C5.8 0 0 5.8 0 13s5.8 13 13 13 13-5.8 13-13S20.2 0 13 0zm0 20.3c-.8 0-1.4-.6-1.4-1.4 0-.8.6-1.4 1.4-1.4.8 0 1.4.6 1.4 1.4 0 .8-.6 1.4-1.4 1.4zm1.4-6.9c0 .8-.6 1.4-1.4 1.4-.8 0-1.4-.6-1.4-1.4V7.1c0-.8.6-1.4 1.4-1.4.8 0 1.4.6 1.4 1.4v6.3z" fill="#f15d30"/></svg>

After

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1,3 @@
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9 0C4 0 0 4 0 9C0 14 4 18 9 18C14 18 18 14 18 9C18 4 14 0 9 0ZM14.2 7.5L8.5 13.2C8.3 13.4 7.9 13.6 7.6 13.6C7.3 13.6 6.9 13.5 6.7 13.2L3.8 10.3C3.6 10 3.5 9.7 3.5 9.4C3.5 9.1 3.6 8.7 3.9 8.5C4.1 8.3 4.5 8.1 4.8 8.1C5.1 8.1 5.5 8.2 5.7 8.5L7.7 10.5L12.5 5.7C12.7 5.5 13.1 5.3 13.4 5.3C13.7 5.3 14.1 5.4 14.3 5.7C14.7 6.2 14.7 7 14.2 7.5Z" fill="#27AD95"/>
</svg>

After

Width:  |  Height:  |  Size: 468 B

View File

@@ -0,0 +1,4 @@
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle opacity="0.3" cx="9" cy="9" r="9" fill="white"/>
<path d="M8.19999 4.95889C8.19999 5.50684 8.61094 5.9178 9.15889 5.9178C9.70683 5.9178 10.1178 5.50684 10.1178 4.95889C10.1178 4.41095 9.70683 3.99999 9.15889 3.99999C8.61094 3.99999 8.19999 4.41095 8.19999 4.95889ZM10.1178 8.72602C10.1178 8.17807 9.70683 7.76711 9.15889 7.76711C8.61094 7.76711 8.19999 8.17807 8.19999 8.72602V13.0411C8.19999 13.589 8.61094 14 9.15889 14C9.70683 14 10.1178 13.589 10.1178 13.0411V8.72602Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 607 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26"><path d="M13 0C5.8 0 0 5.8 0 13s5.8 13 13 13 13-5.8 13-13S20.2 0 13 0zm0 20.3c-.8 0-1.4-.6-1.4-1.4 0-.8.6-1.4 1.4-1.4.8 0 1.4.6 1.4 1.4 0 .8-.6 1.4-1.4 1.4zm1.4-6.9c0 .8-.6 1.4-1.4 1.4-.8 0-1.4-.6-1.4-1.4V7.1c0-.8.6-1.4 1.4-1.4.8 0 1.4.6 1.4 1.4v6.3z" fill="#5b9fb1"/></svg>

After

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26"><path d="M13 0C5.8 0 0 5.8 0 13s5.8 13 13 13 13-5.8 13-13S20.2 0 13 0zm0 20.3c-.8 0-1.4-.6-1.4-1.4 0-.8.6-1.4 1.4-1.4.8 0 1.4.6 1.4 1.4 0 .8-.6 1.4-1.4 1.4zm1.4-6.9c0 .8-.6 1.4-1.4 1.4-.8 0-1.4-.6-1.4-1.4V7.1c0-.8.6-1.4 1.4-1.4.8 0 1.4.6 1.4 1.4v6.3z" fill="#5b9fb1"/></svg>

After

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -0,0 +1,502 @@
var otgs_wp_installer = {
sanitize: function (s) {
if (typeof s === 'string' || s instanceof String) {
return s.replace(/<script[^>]*?>.*?<\/script>/gi, '').replace(/<[\/\!]*?[^<>]*?>/gi, '').replace(/<style[^>]*?>.*?<\/style>/gi, '').replace(/<![\s\S]*?--[ \t\n\r]*>/gi, '').replace(/&nbsp;/g, '');
}
return s;
},
plugins_update_XHR: {},
init: function () {
jQuery('.otgs_wp_installer_table').on('click', '.enter_site_key_js', otgs_wp_installer.show_site_key_form);
jQuery('.otgs_wp_installer_table').on('click', '.cancel_site_key_js', otgs_wp_installer.hide_site_key_form);
jQuery('.otgs_wp_installer_table').on('click', '.remove_site_key_js', otgs_wp_installer.remove_site_key);
jQuery('.otgs_wp_installer_table').on('click', '.update_site_key_js', otgs_wp_installer.update_site_key);
jQuery('.otgs_wp_installer_table').on('submit', '.otgsi_site_key_form', otgs_wp_installer.save_site_key);
jQuery('.otgs_wp_installer_table').on('submit', '.otgsi_downloads_form', otgs_wp_installer.download_downloads);
jQuery('.otgs_wp_installer_table').on('change', '.otgsi_downloads_form :checkbox[name="downloads[]"]', otgs_wp_installer.update_downloads_form);
jQuery('.otgs_wp_installer_table').on('click', '.installer_expand_button', otgs_wp_installer.toggle_subpackages);
otgs_wp_installer.scroll_to_repository();
otgs_wp_installer.maybe_register();
if (typeof pagenow != 'undefined' && pagenow == 'plugins') {
jQuery(document).ajaxSuccess(function (event, xhr, settings) {
var data = otgs_wp_installer.getQueryParameters(settings.data);
if (typeof data.action != 'undefined' && data.action == 'update-plugin') {
response = xhr.responseJSON.data;
if (typeof response.error != 'undefined') {
var default_error = jQuery('#' + response.slug + '-update .update-message').html();
jQuery('#' + response.slug + '-update .update-message').html(default_error + ' &raquo;<span class="installer-red-text"> ' + response.error + '</span>');
}
}
return false;
});
}
if (typeof pagenow != 'undefined' && pagenow == 'plugin-install') {
jQuery('.plugin-install-tab-commercial .search-plugins').remove();
}
jQuery('.installer-table-wrap').on('click', '.js-release-notes', otgs_wp_installer.toggle_release_notes);
},
getQueryParameters: function (str) {
return (str || otgs_wp_installer.sanitize(window.location.search)).replace(/(^\?)/, '').split("&").map(function (n) {
return n = n.split("="), this[n[0]] = n[1], this
}.bind({}))[0];
},
reset_errors: function () {
jQuery('.installer-error-box').html('').hide();
},
show_error: function (repo, text) {
jQuery('#installer_repo_' + repo).find('.installer-error-box').html(text).show();
},
show_site_key_form: function () {
var button = jQuery(this);
if (button.attr('disabled')) {
alert(button.attr('title'));
return false;
}
otgs_wp_installer.reset_errors();
var form = button.closest('td').find('form.otgsi_site_key_form');
button.closest('.enter_site_key_wrap_js').hide();
form.show();
form.find('input[name^=site_key_]').focus().val('');
form.find('input').removeAttr('disabled');
form.closest('.otgsi_register_product_wrap').addClass('otgsi_insert_key');
return false;
},
hide_site_key_form: function () {
var button = jQuery(this);
var form = button.closest('td').find('form');
form.hide();
form.closest('.otgsi_register_product_wrap').removeClass('otgsi_insert_key').find('.enter_site_key_wrap_js').show();
otgs_wp_installer.reset_errors();
return false;
},
save_site_key: function () {
var thisf = jQuery(this);
var data = jQuery(this).serialize();
jQuery(this).find('input').attr('disabled', 'disabled');
var spinner = jQuery('<span class="spinner"></span>');
spinner.css({display: 'inline-block', float: 'right', visibility: 'visible'}).prependTo(jQuery(this));
otgs_wp_installer.reset_errors();
jQuery.ajax({
url: ajaxurl, type: 'POST', dataType: 'json', data: data, success:
function (ret) {
if (!ret.data.error) {
otgs_wp_installer.saved_site_key();
} else {
otgs_wp_installer.show_error(thisf.find('[name=repository_id]').val(), ret.data.error);
thisf.find('input').removeAttr('disabled');
}
if (typeof ret.data.debug != 'undefined') {
thisf.append('<textarea style="width:100%" rows="20">' + ret.data.debug + '</textarea>');
}
spinner.remove();
}
});
return false;
},
saved_site_key: function () {
location.reload();
},
remove_site_key: function () {
if (jQuery(this).attr('disabled') == 'disabled') {
alert(jQuery(this).attr('title'));
return false;
} else {
if (confirm(jQuery(this).data('confirmation'))) {
jQuery('<span class="spinner"></span>').css({
visibility: 'visible',
float: 'none'
}).prependTo(jQuery(this).parent());
data = {
action: 'remove_site_key',
repository_id: jQuery(this).data('repository'),
nonce: jQuery(this).data('nonce')
}
jQuery.ajax({url: ajaxurl, type: 'POST', data: data, success: otgs_wp_installer.removed_site_key});
}
}
return false;
},
removed_site_key: function () {
location.reload();
},
update_site_key: function () {
var error_wrap = jQuery(this).closest('.otgsi_register_product_wrap').find('.installer-error-box');
error_wrap.html('');
var spinner = jQuery('<span class="spinner"></span>');
spinner.css({visibility: 'visible', float: 'none'}).insertAfter(jQuery(this));
data = {
action: 'update_site_key',
repository_id: jQuery(this).data('repository'),
nonce: jQuery(this).data('nonce')
}
jQuery.ajax({
url: ajaxurl,
type: 'POST',
data: data,
dataType: 'json',
complete: function (event, xhr, settings) {
var error = '';
if (xhr == 'success') {
var ret = event.responseJSON;
if (ret.data.error) {
error = ret.data.error;
} else {
otgs_wp_installer.updated_site_key(ret);
}
} else {
error = '<p>Error processing request (' + xhr + '). Please try again!</p>';
}
if (error) {
error_wrap.html(error).show();
spinner.remove();
}
}
});
return false;
},
updated_site_key: function (ret) {
location.reload();
},
update_downloads_form: function () {
var checked = jQuery('.otgsi_downloads_form :checkbox:checked[name="downloads[]"]').length;
if (checked) {
jQuery(this).closest('form').find(':submit, :checkbox[name=activate]').removeAttr('disabled');
} else {
jQuery(this).closest('form').find(':submit, :checkbox[name=activate]').attr('disabled', 'disabled');
}
},
download_downloads: function () {
var activate = jQuery(this).find(":checkbox:checked[name=activate]").val(),
action_button = jQuery(this).find('input[type="submit"]'),
activate_checkbox = jQuery(this).find(":checkbox[name=activate]"),
downloads_form = jQuery(this),
idx = 0,
checkboxes = [];
jQuery(this).find(':checkbox:checked[name="downloads[]"]').each(function () {
if (jQuery(this).attr('disabled')) return;
checkboxes[idx] = jQuery(this);
idx++;
jQuery(this).attr('disabled', 'disabled');
});
idx = 0;
if (typeof checkboxes[idx] != 'undefined') {
download_and_activate(checkboxes[idx]);
action_button.attr('disabled', 'disabled');
activate_checkbox.attr('disabled', 'disabled');
}
function download_and_activate(elem) {
var this_tr = elem.closest('tr');
var is_update = this_tr.find('.installer-red-text').length;
if (is_update) {
var installing = this_tr.find('.installer-status-updating');
var installed = this_tr.find('.installer-status-updated');
} else {
var installing = this_tr.find('.installer-status-installing');
var installed = this_tr.find('.installer-status-installed');
}
if (activate) {
var activating = this_tr.find('.installer-status-activating');
var activated = this_tr.find('.installer-status-activated');
}
if (this_tr.find('.for_spinner_js .spinner').length > 0) {
var spinner = this_tr.find('.for_spinner_js .spinner');
} else {
var spinner = this_tr.find('.installer-status-downloading');
}
otgs_wp_installer.reset_errors();
downloads_form.find('div.installer-status-success').hide();
spinner.css('visibility', 'visible');
installing.show();
var plugin_name = this_tr.find('.installer_plugin_name').html();
if (is_update) {
otgs_wp_installer.show_download_progress_status(downloads_form, installer_strings.updating.replace('%s', plugin_name));
} else {
otgs_wp_installer.show_download_progress_status(downloads_form, installer_strings.installing.replace('%s', plugin_name));
}
data = {
action: 'installer_download_plugin',
data: elem.val(),
activate: activate,
reset_to_channel: downloads_form.find('input[name="reset-to-channel"]').val()
}
otgs_wp_installer.plugins_update_XHR = jQuery.ajax({
url: ajaxurl,
type: 'POST',
dataType: 'json',
data: data,
success: function (ret) {
installing.hide();
if (!ret.success) {
installed.addClass('installer-status-error');
installed.html(
installed.data('fail') +
'<a class="error-details" href="#" title="' + ret.message + '"></a>'
);
if (ret.message) {
installed.closest('.otgs_wp_installer_table')
.find('.installer-error-box')
.html('<p>' + ret.message + '</p>')
.show();
} else {
installed.closest('.otgs_wp_installer_table')
.find('.installer-error-box')
.html('<p>' + downloads_form.find('.installer-revalidate-message').html() + '</p>')
.show();
}
downloads_form.trigger('installer-update-fail');
}
installed.show();
spinner.fadeOut();
if (ret.version) {
var updated_version = '<span class="installer-green-text">' + ret.version + '</span>';
if (ret.non_stable) {
updated_version += ' (' + ret.non_stable + ')';
}
this_tr.find('.installer_version_installed').html(updated_version);
}
if (ret.success && activate) {
otgs_wp_installer.show_download_progress_status(downloads_form, installer_strings.activating.replace('%s', plugin_name));
activating.show();
spinner.show();
this_tr.find('.installer-red-text').removeClass('installer-red-text').addClass('installer-green-text').html(ret.version);
jQuery.ajax({
url: ajaxurl,
type: 'POST',
dataType: 'json',
data: {action: 'installer_activate_plugin', plugin_id: ret.plugin_id, nonce: ret.nonce},
success: function (ret) {
activating.hide();
if (!ret.error) {
activated.show();
}
spinner.fadeOut();
idx++;
if (typeof checkboxes[idx] != 'undefined') {
download_and_activate(checkboxes[idx]);
} else {
otgs_wp_installer.hide_download_progress_status(downloads_form);
downloads_form.find('div.installer-status-success').show();
var availableToDownloadCount = jQuery(this).find(':checkbox[name="downloads[]"]:not(:disabled)').length;
if (availableToDownloadCount !== 0) {
action_button.removeAttr('disabled');
activate_checkbox.removeAttr('disabled');
}
downloads_form.trigger('installer-update-complete');
}
}
});
} else {
idx++;
if (typeof checkboxes[idx] != 'undefined') {
download_and_activate(checkboxes[idx]);
} else {
otgs_wp_installer.hide_download_progress_status(downloads_form);
downloads_form.find('div.installer-status-success').show();
action_button.removeAttr('disabled');
downloads_form.trigger('installer-update-complete');
}
}
}
});
};
return false;
},
show_download_progress_status: function (downloads_form, text) {
downloads_form.find('.installer-download-progress-status').html(text).fadeIn();
},
hide_download_progress_status: function (downloads_form) {
downloads_form.find('.installer-download-progress-status').html('').fadeOut();
},
toggle_subpackages: function () {
var list = jQuery(this).closest('td').find('.otgs_wp_installer_subtable');
if (list.is(':visible')) {
list.slideUp('fast');
} else {
list.slideDown('fast');
}
return false;
},
scroll_to_repository: function () {
var ref = otgs_wp_installer.sanitize(window.location.hash).replace('#', '');
if (ref) {
var split = ref.split('/');
var repo = split[0];
if (typeof split[1] != 'undefined') {
var package = split[1];
var repo_element = jQuery('#repository-' + repo);
if (repo_element.length) {
jQuery('html, body').animate({
scrollTop: repo_element.offset().top
}, 1000);
var package_element = jQuery('#repository-' + repo + '_' + package);
if (package_element.length && !package_element.is(':visible')) {
package_element.parents('.otgs_wp_installer_subtable').slideDown();
package_element.addClass('installer_highlight_package');
}
package_element.find('.button-secondary').removeClass('button-secondary').addClass('button-primary');
}
}
}
},
toggle_release_notes: function () {
var handle = jQuery(this);
var tr = handle.closest('tr');
if (tr.next('.installer-release-notes').is(':visible')) {
handle.removeClass('extended');
} else {
handle.addClass('extended');
}
tr.next('.installer-release-notes').fadeToggle();
return false;
},
maybe_register: function () {
var getQueryStringValue = function (key) {
return decodeURIComponent(otgs_wp_installer.sanitize(window.location.search).replace(new RegExp("^(?:.*[&\\?]" + encodeURIComponent(key).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1"));
};
if (getQueryStringValue('action') === 'register') {
var repo = getQueryStringValue('repository'),
sitekey = getQueryStringValue('sitekey'),
repoElement = jQuery('#installer_repo_' + repo);
repoElement.find('.enter_site_key_js').trigger('click');
jQuery('html, body').animate({
scrollTop: repoElement.offset().top
}, 1000);
if (sitekey) {
repoElement.find('input[name="site_key_' + repo + '"]').val(sitekey).focus();
}
}
},
check_account: function (data, onFound, onError) {
jQuery.ajax(
{
url: ajaxurl,
type: 'POST',
dataType: 'json',
data: data,
success: onFound,
error: onError
}
);
}
}
jQuery(document).ready(otgs_wp_installer.init);

View File

@@ -0,0 +1,261 @@
(function($){
var updateErrors = [];
var channelUpdateInProgress = false;
function channelSelectorInit(){
$('.otgs_wp_installer_table')
.on('focus', '.installer-channel-selector', saveCurrentValue)
.on('change', '.installer-channel-selector', maybeShowPrompt);
$('.otgs_wp_installer_table')
.on('click', '.installer-channel-retry', retryChannelSwitch);
$('.installer-switch-confirmation')
.on('click', '.js-cancel', cancelSwitch)
.on('click', '.js-proceed', changeChannel);
$('.otgsi_downloads_form').on('installer-update-complete', maybeShowWarn);
$('.otgsi_downloads_form').on('installer-update-complete', hideUpdateProgress);
$('.otgsi_downloads_form').on('installer-update-complete', showConfirmationMessage);
$('.otgsi_downloads_form').on('installer-update-fail', logUpdateError);
}
function saveCurrentValue(){
$(this).data('previous-value', $(this).val());
}
function maybeShowPrompt(){
var selectorContainer = $(this).closest('.installer-channel-selector-wrap');
var prompt = selectorContainer.find('.installer-switch-confirmation:hidden');
if(prompt.length){
prompt.show();
selectorContainer.find('select').prop('disabled', true);
var warnText = selectorContainer.find('.installer-warn-text');
warnText.hide();
}else{
changeChannel(selectorContainer);
}
}
function changeChannel(selectorContainer){
if(selectorContainer.type == 'click'){
var selectorContainer = $(this).closest('.installer-channel-selector-wrap');
}
var select = selectorContainer.find('select');
select.prop('disabled', true);
hideConfirmationMessage(select);
showUpdateProgress(select);
selectorContainer.find('.installer-switch-confirmation').hide();
var data = {
action: 'installer_set_channel',
repository_id: select.data('repository-id'),
channel: select.val(),
nonce: select.parent().find('.nonce').val(),
noprompt: selectorContainer.find('.js-remember').length ?
selectorContainer.find('.js-remember').prop('checked') : 0
};
resetUpdateErrors();
otgs_wp_installer.reset_errors();
channelUpdateInProgress = true;
// save selection
jQuery.ajax({
url: ajaxurl,
type: 'POST',
dataType: 'json',
data: data,
success: function (ret) {
if( ret.status == 'OK'){
var tableSelector = '#installer_repo_' + select.data('repository-id') + ' .installer-table-wrap';
$(tableSelector).load( otgs_wp_installer.sanitize(location.href) + ' ' + tableSelector + ' table.widefat', function(){
var upgradesCount = $(tableSelector).find('tr .installer-red-text').length
|| select.val() == 1 && $(tableSelector).find('td.installer_version_installed .unstable').length;
if( upgradesCount > 0){
automaticUpgrade(tableSelector);
}else{
$('#installer_repo_' + select.data('repository-id') + ' .otgsi_downloads_form')
.trigger('installer-update-complete');
}
select.prop('disabled', false);
} );
}
}
});
}
function retryChannelSwitch(){
var selectorContainer = $(this).closest('.installer-channel-selector-wrap');
changeChannel(selectorContainer);
return false;
}
function cancelSwitch(){
$(this).closest('.installer-switch-confirmation').hide();
var select = $(this).closest('.installer-switch-confirmation').prev().find('.installer-channel-selector');
var previousValue = select.data('previous-value');
select.val(previousValue).prop('disabled', false);
if( select.val() > 1){
var selectorContainer = $(this).closest('.installer-channel-selector-wrap');
var warnText = selectorContainer.find('.installer-warn-text');
warnText.show();
}
}
function automaticUpgrade(downloadsTable){
$(downloadsTable + ' tr').each(
function () {
var needsUpgrade = $(this).find(
'td.installer_version_installed .installer-red-text, ' +
'td.installer_version_installed .unstable'
).length > 0;
if (needsUpgrade) {
$(this).find('td :checkbox').prop('disabled', false).prop('checked', true);
}
}
);
$(downloadsTable)
.closest('form')
.append('<input type="hidden" name="reset-to-channel" value="1">')
.submit();
}
function maybeShowWarn(){
var select = $(this)
.closest('.otgs_wp_installer_table')
.find('.installer-channel-selector');
if(select.val() > 1 && !hasUpdateErrors()){
var warnText = select
.closest('.installer-channel-selector-wrap')
.find('.installer-warn-text');
warnText.show();
}
}
function showUpdateProgress(select){
var spinner = select
.closest('.installer-channel-selector-wrap')
.find('.spinner-with-text');
spinner.addClass('is-active').show();
}
function hideUpdateProgress(){
var spinner = $(this)
.closest('.otgs_wp_installer_table')
.find('.installer-channel-selector-wrap')
.find('.spinner-with-text');
spinner.removeClass('is-active').hide();
}
function showConfirmationMessage(){
if( ! channelUpdateInProgress ) return false;
var selectWrap = $(this)
.closest('.otgs_wp_installer_table')
.find('.installer-channel-selector-wrap');
var select = $(this)
.closest('.otgs_wp_installer_table')
.find('.installer-channel-selector');
var channelName = select.find('option:selected').text();
if( hasUpdateErrors() ) {
var message = selectWrap.find('.installer-channel-update-fail');
// suppress default errors
$(this).closest('.otgs_wp_installer_table').find('.installer-error-box').hide();
var channelType = select.val() == 1 ? 'stable' : 'unstable';
message.html(message.data('text-' + channelType).replace(/%CHANNEL%/, channelName));
}else{
var message = selectWrap.find('.installer-channel-update-ok');
message.html(message.data('text').replace(/%CHANNEL%/, channelName));
}
message.show();
channelUpdateInProgress = false;
}
function hideConfirmationMessage(select){
var selectWrap = select.closest('.installer-channel-selector-wrap');
if( hasUpdateErrors() ){
var message = selectWrap.find('.installer-channel-update-fail');
}else{
var message = selectWrap.find('.installer-channel-update-ok');
}
message.hide();
}
/*
function showFailureMessage(download_form){
var message = download_form
.closest('.otgs_wp_installer_table')
.find('.installer-channel-selector-wrap')
.find('.installer-channel-update-fail');
var channelName = $(this)
.closest('.otgs_wp_installer_table')
.find('.installer-channel-selector option:selected')
.text();
message.html( message.data('text').replace(/%CHANNEL%/, channelName) );
message.show();
}
*/
function logUpdateError(){
updateErrors.push(1);
}
function resetUpdateErrors(){
updateErrors = [];
}
function hasUpdateErrors() {
return updateErrors.length;
}
$(document).ready( channelSelectorInit );
})(jQuery);

View File

@@ -0,0 +1,31 @@
var otgs_wp_installer_dismiss_nag = {
init: function () {
jQuery('.installer-dismiss-nag').click(otgs_wp_installer_dismiss_nag.dismiss_nag);
},
dismiss_nag: function () {
var element = jQuery(this);
var data = {
action: 'installer_dismiss_nag',
repository: element.data('repository'),
noticeType: element.data('noticeType'),
noticePluginSlug: element.data('noticePluginSlug') !== 'undefined' ? element.data('noticePluginSlug') : null,
};
jQuery.ajax({
url: ajaxurl,
type: 'POST',
dataType: 'json',
data: data,
success:
function () {
element.closest('.otgs-is-dismissible').remove();
}
});
return false;
}
};
jQuery(document).ready(otgs_wp_installer_dismiss_nag.init);

View File

@@ -0,0 +1,58 @@
var otgs_wp_installer_recommended_plugin = {
init: function () {
jQuery('.js-install-recommended').click(otgs_wp_installer_recommended_plugin.install_and_activate);
},
install_and_activate: function () {
var pluginElement = jQuery(this).parent();
var activate = 1;
var data = {
action: 'installer_download_plugin',
data: jQuery(this).val(),
activate: activate
};
var spinner = pluginElement.find('.spinner');
spinner.css('visibility', 'visible');
jQuery.ajax({
url: ajaxurl,
type: 'POST',
dataType: 'json',
data: data,
success: function (ret) {
jQuery.ajax({
url: ajaxurl,
type: 'POST',
dataType: 'json',
data: {
action: 'installer_activate_plugin',
plugin_id: ret.plugin_id,
nonce: ret.nonce
},
success: function (ret) {
jQuery.ajax({
url: ajaxurl,
type: 'POST',
dataType: 'json',
data: {
action: 'installer_recommendation_success',
pluginData: pluginElement.find('#originalPluginData').val(),
nonce: pluginElement.find('#recommendation_success_nonce').val()
},
success:
function () {
location.reload();
}
});
}
});
}
});
return false;
}
};
jQuery(document).ready(otgs_wp_installer_recommended_plugin.init);

View File

@@ -0,0 +1,97 @@
jQuery( document ).ready( function( $ ) {
/** Append OTGS Theme tab */
var js_array= installer_theme_install_localize.js_array_installer;
if (!($.isEmptyObject(js_array))) {
//Unempty
for(var key in js_array) {
//Dont append if we are on commercial plugins tab page and if there are no themes
if ((!(js_array[key]['is_commercial_plugin_tab'])) && (!(installer_theme_install_localize.no_associated_themes))) {
$('div.wp-filter ul.filter-links').append('<li><a data-sort="'+key+'" href="#">'+ js_array[key]['the_hyperlink_text'] +'</a></li>');
}
}
}
/** Page load event tab selected identifier */
var loaded_browsing_tab=installer_theme_extended_object.getParameterByName('browse');
if (loaded_browsing_tab.length > 0) {
var frontend_tab_selected_tab = loaded_browsing_tab;
} else if (0 == loaded_browsing_tab.length){
//WordPress defaults to 'Featured' when theme install is loaded without the browse parameter
var frontend_tab_selected_tab = 'featured';
}
/** Prepare data on page load event for AJAX */
var data = {
action: 'installer_theme_frontend_selected_tab',
installer_theme_frontend_selected_tab_nonce: installer_theme_install_localize.installer_theme_frontend_selected_tab_nonce,
frontend_tab_selected :frontend_tab_selected_tab
};
//Call AJAX
installer_theme_extended_object.doAJAX(data,frontend_tab_selected_tab,js_array);
/** When user clicks on any tab */
$(document).on('click','.filter-links li > a',function () {
//Get data_sort
var data_sort =$(this).attr('data-sort');
if (data_sort) {
//data_sort is set, prepare data
var data = {
action: 'installer_theme_frontend_selected_tab',
installer_theme_frontend_selected_tab_nonce: installer_theme_install_localize.installer_theme_frontend_selected_tab_nonce,
frontend_tab_selected : data_sort
};
//Call AJAX
installer_theme_extended_object.doAJAX(data,data_sort,js_array);
}
});
var fullhash = otgs_wp_installer.sanitize(window.location.hash);
if (fullhash.length > 0) {
var product_selector=fullhash+' '+'.enter_site_key_js';
if ($(product_selector).length ) {
$(product_selector).click();
}
}
});
//Installer theme extended JS object for methods
var installer_theme_extended_object = {
getParameterByName: function(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(otgs_wp_installer.sanitize( location.search ));
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
},
doAJAX: function(data,data_sort,js_array) {
//We only want to post to AJAX if its an OTGS tab
jQuery.post(installer_theme_install_localize.ajaxurl, data, function(response) {
//AJAX response
var myObject = jQuery.parseJSON(response);
if (typeof myObject != "undefined") {
if(myObject.hasOwnProperty("output")){
var tab_selected= myObject.output;
if (data_sort in js_array) {
if (!(installer_theme_install_localize.js_array_installer[tab_selected]['registration_status'])) {
//Not registered, no theme response
var unregistered_message= myObject.unregistered_messages;
jQuery('.no-themes').html(OTGS.purify(unregistered_message));
}
}
}
}
});
}
};

View File

@@ -0,0 +1,9 @@
function styleInlineStatusesLikeParent() {
jQuery('.js-otgs-plugin-tr').each(function () {
if (jQuery(this).prev().addClass('update').hasClass('active')) {
jQuery(this).addClass('active');
}
})
}
jQuery(document).ready(styleInlineStatusesLikeParent);

View File

@@ -0,0 +1,29 @@
jQuery(document).ready(function () {
var container = jQuery('.otgs-installer-component-setting');
container.find('.js-otgs-components-report-user-choice').click(function () {
var spinner = container.find('.spinner');
spinner.addClass('is-active');
var element = jQuery(this);
var agree = element.is(':checked') ? 1 : 0;
if (element.is(':radio')) {
agree = element.val();
}
jQuery.ajax({
url: ajaxurl,
type: 'POST',
data: {
action: element.data('nonce-action'),
nonce: element.data('nonce-value'),
agree: agree,
repo: element.data('repo'),
},
success: function () {
spinner.removeClass('is-active');
},
});
});
});